【PL/SQL 学习】PLS-00201

简介:
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没有访问权限,导致报错。
相关文章
|
24天前
|
SQL Perl
PL/SQL经典练习
PL/SQL经典练习
13 0
|
24天前
|
SQL Perl
PL/SQL编程基本概念
PL/SQL编程基本概念
13 0
|
29天前
|
SQL Perl
PL/SQL Developer 注册机+汉化包+用户指南
PL/SQL Developer 注册机+汉化包+用户指南
16 0
|
2月前
|
SQL 缓存 关系型数据库
MySQL技能完整学习列表6、查询优化——3、查询缓存——4、SQL优化技巧
MySQL技能完整学习列表6、查询优化——3、查询缓存——4、SQL优化技巧
63 0
|
3月前
|
SQL 测试技术 项目管理
轻松学习SQL外键约束的核心原理和实用技巧
轻松学习SQL外键约束的核心原理和实用技巧
47 0
|
2月前
|
SQL 关系型数据库 MySQL
MySQL技能完整学习列表3、SQL语言基础——1、SQL(Structured Query Language)简介——2、基本SQL语句:SELECT、INSERT、UPDATE、DELETE
MySQL技能完整学习列表3、SQL语言基础——1、SQL(Structured Query Language)简介——2、基本SQL语句:SELECT、INSERT、UPDATE、DELETE
49 0
|
1月前
|
SQL 数据库 内存技术
学习数据库要掌握的54条SQL查询语句
学习数据库要掌握的54条SQL查询语句
14 0
|
2月前
|
SQL 安全 关系型数据库
MySQL技能完整学习列表3、SQL语言基础——3、SQL运算符和函数
MySQL技能完整学习列表3、SQL语言基础——3、SQL运算符和函数
35 0
|
10月前
|
SQL 关系型数据库 MySQL
15天学习MySQL计划-SQL语言学习(基础篇)-第二天
15天学习MySQL计划-SQL语言学习(基础篇)-第二天
129 1
|
SQL 网络协议 Ubuntu
简单学习SQL语言
简单学习SQL语言
117 0