- 论坛徽章:
- 0
|
baidu到一个解释- It depends, from where you call it:
- - in SQL*Plus, you can use both CALL or EXEC
- - in PL/SQL, you cannot use any of them; just call procedure by its name
- - in pure SQL (eg. through JDBC), you can use only CALL
复制代码 看起来好像是call>=exec
但是为什么在plsql里执行的话出现以下情况?谢谢
sqlplus "/as sysdba"
SQL> call dbms_system.set_sql_trace_in_session(13,8301,true);
call dbms_system.set_sql_trace_in_session(13,8301,true)
*
ERROR 位于第 1 行:
ORA-06576: 不是有效的函数或过程名
SQL> exec dbms_system.set_sql_trace_in_session('13','8301',false);
PL/SQL 过程已成功完成。 |
|