【发布时间】:2013-07-16 20:49:23
【问题描述】:
我收到错误消息:
ORA-03001: unimplemented feature
ORA-06512: at "SYS.CHANGE_SSAN", line 127
ORA-06512: at line 2
Process exited.
在这一行:
alter_constraints_disable(hosm_list.hosm);
这是程序:
PROCEDURE alter_constraints_disable (hosm_cd IN VARCHAR2)
IS
BEGIN
for constraint_list IN (select table_name, constraint_name
from dba_constraints
where owner=hosm_cd
and constraint_name in ('List of constraints removed for space.'))
LOOP
execute immediate 'alter table '||hosm_cd||'.'||constraint_list.table_name||' DISABLE constraint '||constraint_list.constraint_name;
END LOOP;
END;
问题似乎来自下一行,而不是调用 alter_constraints_disable。
立即执行'select person_id bulk collect into dup_ssan from '||hosm_list.hosm||'.dod_per order by 1 asc';
批量收集有什么我遗漏的地方
【问题讨论】:
-
您不应在 SYS 模式中构建自己的对象。该架构是 Oracle 安装的一部分,弄乱它可能会破坏您的数据库。
-
它只在用于打乱 PII 并触及数据库中每个模式的服务器上。暂时把它放在那里似乎是有意义的。
标签: oracle stored-procedures plsql