ORA-39921: Default Partition (Table) Tablespace USERS for TP not contained in transportable set

本文介绍了解决Oracle数据库中运输表空间(TTS)时出现的ORA-39921错误的方法。通过更改分区表的默认表空间,确保其包含在所需的运输集内,最终解决了运输检查过程中的违规问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

When doing transportable tablespace, I get the following errors when run the TTS set check procedure:

SQL> EXECUTE dbms_tts.transport_set_check('TS_D1,TS_D2,TS_D3,TS_D4',TRUE); 

PL/SQL procedure successfully completed.

SQL> select * from sys.transport_set_violations;


VIOLATIONS
------------------------------------------------------------------------------------------------
ORA-39921: Default Partition (Table) Tablespace USERS for TP not contained in transportable set.

    The problem is that the default tablespace of the partition table is not in the tablespace we need transported, we should change it:

ALTER TABLE ... MODIFY DEFAULT ATTRIBUTES TABLESPACE ...; 
ALTER TABLE TP MODIFY DEFAULT ATTRIBUTES TABLESPACE ts_d1;

After I change it, I run the TTS set check procedure again,it's OK:

SQL> EXECUTE dbms_tts.transport_set_check('TS_D1,TS_D2,TS_D3,TS_D4',TRUE); 

PL/SQL procedure successfully completed.

SQL> select * from sys.transport_set_violations;

no rows selected

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值