简体   繁体   English

Oracle UNUSABLE 索引问题与批量插入

[英]Oracle UNUSABLE Index Problem With Bulk Insertion

I have a postgresql database and I have 1TB data.我有一个 postgresql 数据库,我有1TB数据。 I want to migrate this data from postgresql to Oracle.我想将此数据从 postgresql 迁移到 Oracle。 I can handle it via DMS(Database Migration Service).我可以通过 DMS(数据库迁移服务)处理它。 When I migrate my data, Oracle indexes look like UNUSABLE then I try to rebuild it I got error because data is too big.当我迁移我的数据时,Oracle 索引看起来像UNUSABLE然后我尝试重建它我收到错误,因为数据太大。 Do you have any suggestion?你有什么建议吗?

Please post exact error number and DDL of table and indexes.请张贴准确的错误号和表和索引的 DDL。

Found why index state changed from VALID to UNUSABLE http://www.dba-oracle.com/t_indexes_invalid_unusable.htm找到为什么索引 state 从VALID更改为UNUSABLE http://www.dba-oracle.com/t_indexes_invalid_unusable.htm

And solved on AWS DMS, set DMS Endpoints → Target(Oracle) → Modify → Endpoint settings → Key ( useDirectPathFullLoad ) Value( false ).并在 AWS DMS 上解决,设置 DMS Endpoints → Target(Oracle) → Modify → Endpoint settings → Key ( useDirectPathFullLoad ) Value( false )。 For more detail: https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Oracle.html更多详情: https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Oracle.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM