在oracle9i中,删除某个存储过程或者更新(create or replace procedure)某个存储过程时,没有任何反应,也不报错,
有时重启计算机可以解决。过程如下:
create or replace procedure p_copytablere is
begin
insert into sysdmlreceive@dblink select sysid,syssql,0,sdate from sysdmlsend;
insert into sysdmlreceiveblob@dblink select sysid,startsql,blobcontent,endsql from sysdmlsendblob;
commit;
execute immediate 'truncate table sysdmlsend';
execute immediate 'truncate table sysdmlsendblob';
commit;
exception
when others then
null;
end;
过程中用到的数据库链接dblink是处于激活状态的。
有时重启计算机可以解决。过程如下:
create or replace procedure p_copytablere is
begin
insert into sysdmlreceive@dblink select sysid,syssql,0,sdate from sysdmlsend;
insert into sysdmlreceiveblob@dblink select sysid,startsql,blobcontent,endsql from sysdmlsendblob;
commit;
execute immediate 'truncate table sysdmlsend';
execute immediate 'truncate table sysdmlsendblob';
commit;
exception
when others then
null;
end;
过程中用到的数据库链接dblink是处于激活状态的。
在oracle中直接对过程编辑后,点击“应用”或“确定”也不行
即使有毛病,总不会删除不了吧,是不是Oracle出什么问题,难道要重新装Oracle???
when others then
null; 这句要去掉,或进行其他的处理,比如向一个日志表插入一条数据等等,否则一出现异常就转到NULL,自然“没有任何反应,也不报错”了
在PL/SQL Developer中提示一直在执行,在oracle中的Worksheet中没有任何反应
结果是过程没有创建上去,或者更新不了,或者也删不了
将该存储过程保存成一个txt文件,例如1.txt,然后在PL/SQL中打开命令文件,选择1.txt,执行(F8)
提示如下:
SQL>
13
====================================================================================如果你需要帮助或想和我一起学习的请联系
联系方式QQ:370140387
QQ群: 85837884(注明:数据库)
电子邮件:[email protected]
网站: http://www.inthirties.com