【PL/SQL 学习】PLS-00201
2023-09-14 08:57:16 时间
aliim@im1 ALTER PACKAGE IM_UTL COMPILE BODY;
Warning: Package Body altered with compilation errors.
aliim@im1 SHOW ERROR
Errors for PACKAGE BODY IM_UTL:
LINE/COL ERROR
-------- -----------------------------------------------------------------
356/15 PLS-00201: identifier AREA_LIST must be declared
356/15 PL/SQL: Item ignored
357/17 PLS-00201: identifier AREA_LIST must be declared
357/17 PL/SQL: Item ignored
363/5 PL/SQL: SQL Statement ignored
363/95 PL/SQL: ORA-00942: table or view does not exist
365/5 PL/SQL: Statement ignored
365/9 PLS-00320: the declaration of the type of this expression is
incomplete or malformed
370/5 PL/SQL: Statement ignored
370/9 PLS-00320: the declaration of the type of this expression is
incomplete or malformed
aliim@im1 alter view viewname compile;
Enter value for viewname: alter view viewname compile;
old 1: alter view viewname compile
new 1: alter view alter view viewname compile; compile
alter view alter view viewname compile; compile
*
ERROR at line 1:
ORA-00999: invalid view name
aliim@im1 /
Enter value for viewname: V_AREA_LIST
old 1: alter view viewname compile
new 1: alter view V_AREA_LIST compile
Warning: View altered with compilation errors.
aliim@im1 show error
No errors.
aliim@im1
解决办法重新赋予 aliim select any table 权限,这里查出 aliim对AREA_LIST没有访问权限,导致报错。
SQL server 2008 最小化安装(学习专用) 之后下载这两个安装包,根据电脑实际情况下载,这里我选择x64版本的两个轻量级安装包,其他版本比较大,学习的话这两个版本就够了
Warning: Package Body altered with compilation errors.
aliim@im1 SHOW ERROR
Errors for PACKAGE BODY IM_UTL:
LINE/COL ERROR
-------- -----------------------------------------------------------------
356/15 PLS-00201: identifier AREA_LIST must be declared
356/15 PL/SQL: Item ignored
357/17 PLS-00201: identifier AREA_LIST must be declared
357/17 PL/SQL: Item ignored
363/5 PL/SQL: SQL Statement ignored
363/95 PL/SQL: ORA-00942: table or view does not exist
365/5 PL/SQL: Statement ignored
365/9 PLS-00320: the declaration of the type of this expression is
incomplete or malformed
370/5 PL/SQL: Statement ignored
370/9 PLS-00320: the declaration of the type of this expression is
incomplete or malformed
aliim@im1 alter view viewname compile;
Enter value for viewname: alter view viewname compile;
old 1: alter view viewname compile
new 1: alter view alter view viewname compile; compile
alter view alter view viewname compile; compile
*
ERROR at line 1:
ORA-00999: invalid view name
aliim@im1 /
Enter value for viewname: V_AREA_LIST
old 1: alter view viewname compile
new 1: alter view V_AREA_LIST compile
Warning: View altered with compilation errors.
aliim@im1 show error
No errors.
aliim@im1
解决办法重新赋予 aliim select any table 权限,这里查出 aliim对AREA_LIST没有访问权限,导致报错。
SQL server 2008 最小化安装(学习专用) 之后下载这两个安装包,根据电脑实际情况下载,这里我选择x64版本的两个轻量级安装包,其他版本比较大,学习的话这两个版本就够了
相关文章
- 【SQL 学习】去掉重复行
- 【SQL 学习】INTERSECT,MINUS ,
- SQL Server 2005基础应用视频教程下载学习
- Oracle之PL/SQL学习笔记
- 【MySql】sql_slave_skip_counter 参数的用法解析
- pandas.DataFrame.to_sql
- sql server案例总结
- PL/SQL经典练习
- 通过EasyUI Tree说明SQL GUID和自增列ID的使用场景
- 【学习总结】SQL的学习-4-常用函数介绍
- 【学习总结】SQL学习总结之认识SQL
- PL/SQL 存储过程
- 【学习总结】SQL的连接:join -- 内连接外连接左连接右连接
- 【学习总结】SQL的学习-5-性能调优常用方法介绍与数据导入导出
- 【学习总结】SQL的学习-2-sql操作
- 淘宝数据库OceanBase SQL编译器部分 源码阅读--生成逻辑计划
- 通过一个小问题来学习SQL关联查询
- SQL SERVER服务器链接连接(即sql server的跨库连接)
- 你能答对几道SQL题?
- SQL基础【十八、事物】(sql事物慎用,还是写业务逻辑代码好一些,入伙涉及到更换数据啥的很麻烦!)
- PL/SQL个人学习笔记
- Java学习路线-42:SQL进阶:约束、关系、连接
- Sql一行拆分转多行
- MySql数据库SQL语句将编码
- SQL注入 Access数据库
- SQL注入攻击成功判定