eygle.com   eygle.com
eygle.com  
 
eygle.com - 留言簿 - 回复留言 - Powered by eYgLe.Com
返回留言簿
回 复 留 言
留言ID:
留言原文:
To:
  eygle,幫我看一下面的測試..
SQL> conn scott/tiger
已連線.
SQL> create or replace procedure pro_tt
  2is
  3
  4begin
  5insert into test values('test');
  6
  7execute immediate '
  8begin
  9execute immediate ''alter session set current_schema=system'';
10pro_tt;------------ 我在這里指定的是 system 中的 pro_tt存儲過程
11insert into test values(''test22'');
12end;
13';
14commit;
15
16end;
17/

已建立程序.

SQL> show user
USER 為 "SCOTT"
SQL> exec pro_tt;
BEGIN pro_tt; END;

*
ERROR 在行 1:
ORA-00036: 已超過遞迴 SQL 級次 (50) 的最大數目
ORA-06512: 在 line 3
ORA-06512: 在 "SCOTT.PRO_TT", line 7
ORA-06512: 在 line 4
ORA-06512: 在 "SCOTT.PRO_TT", line 7
ORA-06512: 在 line 4
ORA-06512: 在 "SCOTT.PRO_TT", line 7
ORA-06512: 在 line 4
ORA-06512: 在 "SCOTT.PRO_TT", line 7
ORA-06512: 在 line 4
ORA-06512: 在 "SCOTT.PRO_TT", line 7
ORA-06512: 在 line 4
ORA-06512: 在 "SCOTT.PRO_TT", line 7
ORA-06512: 在 line 4
ORA-06512: 在 "SCOTT.PRO_TT", line 7
ORA-06512: 在 line 4
ORA-06512: 在 "SCOTT.PRO_TT", line 7
ORA-06512: 在 line 4
ORA-06512: 在 "SCOTT.PRO_TT", line 7
ORA-06512: 在 line 4
ORA-06512: 在 "SCOTT.PRO_TT", line 7
ORA-06512: 在 line 4
ORA-06512: 在 "SCOTT.PRO_TT", line 7
ORA-06512: 在 line 4
ORA-06512: 在 "SCOTT.PRO_TT", line 7
ORA-06512: 在 line 4
ORA-06512: 在 "SCOTT.PRO_TT", line 7
ORA-06512: 在 line 4
ORA-06512: 在 "SCOTT.PRO_TT", line 7
ORA-06512: 在 line 4
ORA-06512: 在 "SCOTT.PRO_TT", line 7
ORA-06512: 在 line 4
通過
''alter session set current_schema=system'' 來設置 schema 為 system
就是想調用 system.pro_tt存儲過程.為何調 用不成功。而對
system的表操作又是可以的.
是不是 對程序調用有限制還是另有方法 ....
以上謝謝...
From: zyong
2005.12.07 03:47
管理密码: 请输入管理密码, 否则无法回复.
斑竹昵称:
信息图标: ( 随机 )


BB 代码:
内容:

如果想删除回复, 请点击最下面的删除回复按钮.
删 除 回 复
管理密码: 请输入管理员密码, 只有版主才能删除回复.
Copyright © 2003~2012 eygle.com All Rights Reserved.
Powered by: www.eygle.com