[20190427]表改名与ora-14047错误.txt --//改表名失败,做一个记录: 1.环境: SCOTT@book> @ ver1 PORT_STRING VERSION BANNER ------------------------------ -------------- -------------------------------------------------------------------------------- x86_64/Linux 2.4.xx 11.2.0.4.0 Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production create table t as select rownum id from dual ; create unique index pk_t on t(id); SCOTT@book> alter table scott.t rename to scott.ttx; alter table scott.t rename to scott.ttx * ERROR at line 1: ORA-14047: ALTER TABLE|INDEX RENAME may not be combined with other operations --//这个报错很奇怪,什么是其它操作...注意*号出现位置. --//想一下,表改名oracle目前不会支持修改schema模式的.修改如下ok: SCOTT@book> alter table scott.t rename to ttx; Table altered. --或者 SCOTT@book> alter table ttx rename to tty; Table altered. --//实际上遇到这类问题,使用toad + sql_track操作跟踪看看就知道了,不过好像toad执行如下: SCOTT@book> rename tty to ttz; Table renamed. SCOTT@book> rename ttz to scott.tta; rename ttz to scott.tta * ERROR at line 1: ORA-01765: specifying owner's name of the table is not allowed $ oerr ora 01765 01765, 00000, "specifying owner's name of the table is not allowed" // *Cause: An attempt was made to rename the object with dotted object name. // *Action: Do not specify username.tablename in query for table name. --//这个提示就很清晰!!实际上手边有一份oracle sql参考手册函数很有必要的.
[20190427]表改名与ora-14047错误.txt
来源:这里教程网
时间:2026-03-03 13:29:12
作者:
编辑推荐:
- Debian DNS区域文件配置(手把手教你搭建本地DNS服务器)03-03
- [20190427]表改名与ora-14047错误.txt03-03
- [20190430]注意sql hint写法.txt03-03
- [20190428]恢复oraInventory.txt03-03
- oracle 10.2.0.4 sql关联查询语句中含有 connect by 导致报错出现ORA-0060003-03
- [20190423]oradebug peek测试脚本.txt03-03
- OGG for kafka op_ts 和current_ts相差较大03-03
- 使用DBUA把数据库从11g升级到19c的non-cdb简示(单实例版)03-03
下一篇:
相关推荐
-
雷神推出 MIX PRO II 迷你主机:基于 Ultra 200H,玻璃上盖 + ARGB 灯效
2 月 9 日消息,雷神 (THUNDEROBOT) 现已宣布推出基于英
-
制造商 Musnap 推出彩色墨水屏电纸书 Ocean C:支持手写笔、第三方安卓应用
2 月 10 日消息,制造商 Musnap 现已在海外推出一款 Oce
热文推荐
- Debian DNS区域文件配置(手把手教你搭建本地DNS服务器)
Debian DNS区域文件配置(手把手教你搭建本地DNS服务器)
26-03-03 - oracle 10.2.0.4 sql关联查询语句中含有 connect by 导致报错出现ORA-00600
- 使用DBUA把数据库从11g升级到19c的non-cdb简示(单实例版)
使用DBUA把数据库从11g升级到19c的non-cdb简示(单实例版)
26-03-03 - Oracle Rac 修改SGA_TARGET值无变化
Oracle Rac 修改SGA_TARGET值无变化
26-03-03 - 13-oracle_数据库存储过程和包的开发
13-oracle_数据库存储过程和包的开发
26-03-03 - 12-oracle_分区
12-oracle_分区
26-03-03 - Debian Zabbix:企业级监控(手把手教你从零搭建开源监控系统)
Debian Zabbix:企业级监控(手把手教你从零搭建开源监控系统)
26-03-03 - 万字详解Oracle架构、原理、进程,学会世间再无复杂架构
万字详解Oracle架构、原理、进程,学会世间再无复杂架构
26-03-03 - oracle数据库exp
oracle数据库exp
26-03-03 - Debian Partclone 教程(手把手教你使用 Partclone 在 Debian 系统中进行分区克隆与备份)
