2011-02-17 102 views

回答

3

你不能,你不应该通过数据库链接执行DDL。 DDL执行隐式提交,并且不允许在远程站点上进行提交。

ORA-02021: DDL operations are not allowed on a remote database 

您可以使用作业队列 - 以便在远程系统上进行交易,例如:

[email protected](l_job, 'execute immediate ''create table t (x int)'''); 
commit; 

Ask Tom

+0

我相信你的意思是不是[email protected] DBMS_JOB @ remote.submit。 – 2011-02-17 08:58:03