有人可以向我解释为什么我继续为以下简单的程序获得此PLS-00905错误?谢谢。
create or replace procedure copy_table(
table_name IN varchar2,
database_link IN varchar2,
suffix IN varchar2,
table_owner IN varchar2)
IS
begin
execute immediate 'create table ' || table_name || '_' || suffix ||
' as select * from ' || table_owner || '.' || table_name || '@' || database_link ;
end;
/
SQL> execute myschema.copy_table;
BEGIN myschema.copy_table; END;
*
ERROR at line 1:
ORA-06550: line 1, column 15:
PLS-00905: object myschema.copy_table is invalid
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
答案 0 :(得分:3)
摆脱斜杠 - 这是针对SQLPlus命令终止的