insert all into 表1@链接名 values(A)
into 表2@链接名 values(B)select A,B from 表怎么会报 ora -02021 ?????????????单独执行insert into 表1@链接名 values(A)没有错

解决方案 »

  1.   

    ORA-02021:
    DDL operations are not allowed on a remote database
    Cause:  An attempt was made to use a DDL operation on a remote database. For example, "CREATE TABLE tablename@remotedbname ...".
    Action:  To alter the remote database structure, you must connect to the remote database with the appropriate privileges.
      

  2.   

    insert all按说也不应该算是DDL啊
    你看看是不是有其他什么操作
      

  3.   

    insert all不支持远程数据库操作。
      

  4.   

    没有,我在Oracle sqldeveloper工具中单独测试的
      

  5.   

    insert all不支持远程数据库操作。????????????
    有人能说说一条语句能多表插入远程数据库操作的吗
      

  6.   

    一条insert语句是可以的,
    但是insert all就是不行,
    这是ORACLE的限制,不能想当然。既然一条不支持,那么可以多条,写成一个事务就行了放入PL/SQL块或存储过程就行了。
      

  7.   

    Restrictions on Multitable Inserts 
    Multitable inserts are subject to the following restrictions:•You can perform multitable inserts only on tables, not on views or materialized views.•You cannot perform a multitable insert into a remote table.•You cannot specify a table collection expression when performing a multitable insert.•In a multitable insert, all of the insert_into_clauses cannot combine to specify more than 999 target columns.•Multitable inserts are not parallelized if any target table is index organized or if any target table has a bitmap index defined on it.•Plan stability is not supported for multitable insert statements.•The subquery of the multitable insert statement cannot use a sequence.