Error(30,13): PLS-00323: subprogram or cursor 'XXXXX' is declared in a package spec
2012-12-06 17:24
513 查看
ORACLE 中的PLS_00320错误是包头和包体的头部参数变量名定义不一致,导致的错误,把包头和包体部分部参数名保持一致就行了。
如:包头这样定义:
包体头部这样定义时,就会出现这样错误:
这进ORACLE就会出现PLS_00320这样的错误。原因是:
头部定义的参数:
p_up_partiton_name VARCHAR2,
和包体中的定义不一致,如:
p_up_partition_name VARCHAR2,
。修改成一致就可以了。
如:包头这样定义:
PROCEDURE proc_statistics_by_mas( p_up_partiton_name VARCHAR2, p_down_partition_name VARCHAR2, p_create_time DATE );
包体头部这样定义时,就会出现这样错误:
PROCEDURE proc_statistics_by_mas( p_up_partition_name VARCHAR2, p_down_partition_name VARCHAR2, p_create_time DATE ) AS BEGIN NULL; END;
这进ORACLE就会出现PLS_00320这样的错误。原因是:
头部定义的参数:
p_up_partiton_name VARCHAR2,
和包体中的定义不一致,如:
p_up_partition_name VARCHAR2,
。修改成一致就可以了。
相关文章推荐
- subprogram or cursor is declared in a package specification and must be defined in the package body
- About Derby "ERROR 42X51: The class '***' does not exist or is inaccessible. This can hap pen if the class is not public."
- PLS-00313: 'XXXXX' not declared in this scope
- [安卓]error: 'memcpy' was not declared in this scope
- ORACLE 11G 触发器调试记录Error: PLS-00201: identifier'SYS.DBMS_SYSTEM' must be declared
- 'sessionFactory' or 'hibernateTemplate' is required & Error applying BeanValidation relational cons
- error: 'memcpy' was not declared in this scope
- [生产环境数据恢复]innobackupex: fatal error: OR no 'datadir' option in group 'mysqld' in MySQL options
- common.h:178:47: error: 'UINT64_C' was not declared in this scope
- c++ error: 'malloc' was not declared in this scope
- error: 'memcpy' was not declared in this scope的解决
- error: internal error: unable to execute QEMU command 'migrate': this feature or command is not cur
- error: '_localtime_not_threadsafe_' was not declared in this scope
- rapidxml 在mac下的编译error: call to function 'print_pi_node' that is neither visible in the template def
- C++报错集合:error: 'CppUnit::TestFixture' is an inaccessible base of 'LMQueryConnectionTest'
- python TypeError: 'builtin_function_or_method' object is not iterable keys
- no copy constructor available or copy constructor is declared 'explicit'
- error: 'UINT64_C' was not declared in this scope
- Server Error in '/' Application. Access to the Path Is Denied" error message appears
- VS2005中编译出错:Error 1 error C3872: '0x3000': this character is not allowed in an identifier