-- Add comments to the table comment on table BN_SEQUENCE is 'This table stores the current sequence value of the business number.';-- Add comments to the columns comment on column BN_SEQUENCE.BN_RULE_GID is 'BN_RULE_GID contains the unique identifier for the Business Number (BN) rule.';-- Create/Recreate primary, unique and foreign key constraints alter table BN_SEQUENCE add constraint PK_BN_SEQUENCE primary key (BN_RULE_GID, BN_CONTEXT, BN_SEQUENCE_ID) using indextablespace INDX pctfree 10 initrans 2 maxtrans 255 storage ( initial 1M next 1M minextents 1 maxextents unlimited pctincrease 0 );alter table BN_SEQUENCE add constraint FK_BN_SEQRULE_GID foreign key (BN_RULE_GID) references BN_RULE (BN_RULE_GID);-- Grant/Revoke object privileges grant select, insert, update, delete on BN_SEQUENCE to APP_USER;grant select on BN_SEQUENCE to APP_USER_SELECT;grant select, insert, update, delete on BN_SEQUENCE to EXT_USER;....7、校验数据

结果:数据全部迁移了,保留了去年6月19号到现在的数据,整个过程10分钟
8、drop表建议保留一段时间后再执行 。
推荐阅读
- cmd重启电脑命令 CMD中如何实现重新启动
- oracle环境变量设置方法 oracle密码永不过期语句
- shell连接oracle执行sql脚本 linux连接oracle数据库命令
- 手机总是自动重启该如何解决 手机无故关机重启怎么回事
- 超级机器人大战T快速重启方法 机战T怎么快速重启游戏
- 2022年江苏省考面试重启
- 光环无限设置无法保存怎么办 重启后设置无法保存解决方法分享
- 伊川县重启4处监控设备用于抓拍逆行
- 附咨询电话 贵州省2022省考笔试重启时间
- 附最新省考时间 2022湖北省省考什么时间重启?
