麻烦大家帮我看看这个错误呀

fitzanepeng1 2010-11-11 03:49:12
SET ECHO ON
SET FEEDBACK 1
SET NUMWIDTH 10
SET LINESIZE 80
SET TRIMSPOOL ON
SET TAB OFF
SET PAGESIZE 100

set serveroutput off;
declare

par r_c1.part_type;
begin

par.no_fact_col := %strp_no_fact_col% ;
par.clone_fact := %strp_clone_fact%; -- Should be greater than 1 always.
par.level_of_nesting := %strp_level_of_nesting%;
par.rangepart := true; -- Should always be true as it is range or range_hash parittioned table.
par.range_hash := false;
par.total_rows := %strp_total_rows%;
par.total_rangep := %strp_total_rangep%;
par.total_subhashp :=%strp_total_subhashp%; --cnt;
par.local_index := %strp_local_index% ; --true;
par.req_local_index := %strp_req_local_index%;
par.global_range_index := %strp_global_range_index%; --true;
par.total_global_range := %strp_total_global_range%;
par.total_global_rangep := %strp_total_global_rangep%;
par.global_hash_index := %strp_global_hash_index%;
par.total_global_hash := %strp_total_global_hash%;
par.total_global_hashp := %strp_total_global_hashp%;
par.btree_index := %strp_btree_index%;
par.total_btree_index := %strp_total_btree_index%;
par.func_index := %strp_func_index%;
par.total_func_index :=%strp_total_func_index%;
par.exch_part_no := 4;
r_c1.part_proc(par);
end;
执行的时候我吧里面的变量%strp******%都替换了相应的值
但是出现了一下错误



par r_c1.part_type;
*
ERROR at line 3:
ORA-06550: line 3, column 7:
PLS-00201: identifier 'R_C1.PART_TYPE' must be declared
ORA-06550: line 3, column 7:
PL/SQL: Item ignored
ORA-06550: line 6, column 9:
PLS-00320: the declaration of the type of this expression is incomplete or
malformed
ORA-06550: line 6, column 9:
PL/SQL: Statement ignored
ORA-06550: line 7, column 9:
PLS-00320: the declaration of the type of this expression is incomplete or
malformed
ORA-06550: line 7, column 9:
PL/SQL: Statement ignored
ORA-06550: line 8, column 9:
PLS-00320: the declaration of the type of this expression is incomplete or
malformed
ORA-06550: line 8, column 9:
PL/SQL: Statement ignored
ORA-06550: line 9, column 9:
PLS-00320: the declaration of the type of this expression is incomplete or
malformed
ORA-06550: line 9, column 9:
PL/SQL: Statement ignored
ORA-06550: line 10, column 9:
PLS-00320: the declaration of the type of this expression is incomplete or
malformed
ORA-06550: line 10, column 9:
PL/SQL: Statement ignored
ORA-06550: line 11, column 9:
PLS-00320:
请大家帮我看看吧
sql文件应该不会有错的,因为这是别人的sql我只是换了%%里面的内容继续跑测试。
...全文
149 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
--2楼3楼都是人才啊
identifier 'R_C1.PART_TYPE' must be declared
这个就是提示你说 你没有定义R_C1.PART_TYPE 这样类型
心中的彩虹 2010-11-12
  • 打赏
  • 举报
回复
[Quote=引用楼主 fitzanepeng1 的回复:]
SET ECHO ON
SET FEEDBACK 1
SET NUMWIDTH 10
SET LINESIZE 80
SET TRIMSPOOL ON
SET TAB OFF
SET PAGESIZE 100

set serveroutput off;
declare

par r_c1.part_type;
begin

par.no_fact_col :=……
[/Quote]
你调用r_c1包的类型 是否存在 ;或者不是你当前用户创建的 有访问权限否
r_c1.part_type
「已注销」 2010-11-12
  • 打赏
  • 举报
回复
汗、、、
sunlaji008 2010-11-11
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 ngx20080110 的回复:]

你的數據庫裡沒有這個r_c1包吧
[/Quote]
94
crazylaa 2010-11-11
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 ngx20080110 的回复:]

你的數據庫裡沒有這個r_c1包吧
[/Quote]42
ngx20080110 2010-11-11
  • 打赏
  • 举报
回复
你的數據庫裡沒有這個r_c1包吧

17,086

社区成员

发帖
与我相关
我的任务
社区描述
Oracle开发相关技术讨论
社区管理员
  • 开发
  • Lucifer三思而后行
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧