通过 dblink 将所有内容插入表中..这可能吗?
当我执行以下命令时:
INSERT ALL INTO table@database_link(columnName) VALUES (columnValue)
SELECT columnValue FROM localTable;
出现错误
SQL 错误:ORA-02021:远程不允许 DDL 操作 数据库 02021. 00000 - “远程数据库上不允许进行 DDL 操作” *原因:尝试在远程数据库上使用 DDL 操作。 例如,“CREATE TABLE 表名@remotedbname ...”。 *操作:要更改远程数据库结构,您必须连接到 具有适当权限的远程数据库。
请注意,当我执行常规操作(而不是全部插入)时...插入通过数据库链接进行。 (补助金有效)。
两个表上也没有触发器。
我明确需要 INSERT ALL INTO,以允许插入到多个表中。
是否不允许对数据库链接表进行 INSERT ALL INTO 操作?
When I execute the following:
INSERT ALL INTO table@database_link(columnName) VALUES (columnValue)
SELECT columnValue FROM localTable;
I get an error
SQL Error: ORA-02021: DDL operations are not allowed on a remote
database
02021. 00000 - "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.
Note that when I do a regular (not an insert ALL into) ... the insert works over the database link. (Grants are valid).
There are also NO triggers on either tables.
And I explicitly need the INSERT ALL INTO, to allow for the ability to insert into multiple tables.
Are INSERT ALL INTO operations not allowed into database link tables?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
此消息有点误导,但无论如何根据 Oracle SQL参考
This message is a little misleading but anyway according to the Oracle SQL Reference
不幸的是没有。请注意此列表中的第二项:
来源:Oracle 9i 文档
Unfortunately not. Note the second item in this list:
Source: Oracle 9i documentation