ORA-14047

报错
SYS@orcl> alter table test rename to sys.test_bak;
alter table test rename to sys.test_bak
*
ERROR at line 1:
ORA-14047: ALTER TABLE|INDEX RENAME may not be combined with other operations

要这样操作,不要带目标表的schema
SYS@orcl> alter table test rename to test_bak;

Table altered.

原因
The operation is regarded as a combined operation as indicated by the full error message description:

$ oerr ora 14047
14047, 00000, "ALTER TABLE|INDEX RENAME may not be combined with other operations"
// Cause: ALTER TABLE or ALTER INDEX statement attempted to combine
// a RENAME operation with some other operation which is illegal
//
Action: Ensure that RENAME operation is the sole operation specified in
// ALTER TABLE or ALTER INDEX statement;

The combination of actions appear to be:

the actual table rename
specifiying the schema name of the target

文档号
ORA-14047: ALTER TABLE | INDEX RENAME May Not Be Combined With Other Operations (文档 ID 400398.1)

转载于:https://blog.51cto.com/roidba/2354522

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值