
文档解释
ORA-42041: cannot online redefine table “string”.”string” with nested table columns
Cause: An attempt was made to redefine a table with nested table columns.
Action: Do not attempt to online redefine a table with nested table columns.
ORA-42041:无法使用嵌套表列在线重定义表“string”。“string”
官方解释
ORA-42041:不可以有任何嵌套表列的表使用ALTER TABLE语句的 REDEFINE 子句来进行重定义。
常见案例
假设有一张表 Tab1 包含嵌套表示的列,如下所示:
CREATE TABLE Tab1 (col1 INTEGER, col2 NESTED TABLE NTCol99);
此时,当尝试使用 ALTER TABLE 语句来重定义 Tab1 时,将导致ORA-42041。
一般处理方法及步骤
1)将嵌套表中的列删除,或者将嵌套表转换为普通表列。
2)尝试使用 ALTER TABLE 语句的 REDEFINE 子句来重定义表。
香港美国云服务器首选树叶云,2H2G首月10元开通。
树叶云(shuyeidc.com)提供简单好用,价格厚道的香港/美国云服务器和独立服务器。IDC+ISP+ICP资质。ARIN和APNIC会员。成熟技术团队15年行业经验。
文章来源网络,作者:运维,如若转载,请注明出处:https://shuyeidc.com/wp/242983.html<