手机版
你好,游客 登录 注册
背景:
阅读新闻

Oracle 10g stored outline迁移到11g

[日期:2013-04-08] 来源:Linux社区  作者:luoping [字体:大 中 小]

3,把测试数据导入到11G SCOTT用户下面

  1. [Oracle11g@rhel4 sql]$ impdp scott/oracle directory=dumpdumpfile=test1.dmp TABLE_EXISTS_ACTION=appendlogfile=imdp.log
  2. Import: Release 11.2.0.3.0 - Production on Sat Apr 6 21:51:08 2013
  3. Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
  4. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
  5. With the Partitioning, OLAP, Data Mining and Real Application Testing options
  6. Master table "SCOTT"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
  7. Starting "SCOTT"."SYS_IMPORT_FULL_01": scott/******** directory=dumpdumpfile=test1.dmp TABLE_EXISTS_ACTION=appendlogfile=imdp.log
  8. Processing object type TABLE_EXPORT/TABLE/TABLE
  9. Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
  10. . . imported "SCOTT"."TEST1" 4.636 MB 50091 rows
  11. Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
  12. Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
  13. Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
  14. Job "SCOTT"."SYS_IMPORT_FULL_01" successfully completed at 21:51:12

4,把stored outline数据导入到11G OUTLN用户中

  1. [oracle11g@rhel4 sql]$ impdp outln/oracle directory=dumpdumpfile=outln.dmp TABLE_EXISTS_ACTION=append
  2. Import: Release 11.2.0.3.0 - Production on Sat Apr 6 21:51:52 2013
  3. Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
  4. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
  5. With the Partitioning, OLAP, Data Mining and Real Application Testing options
  6. Master table "OUTLN"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
  7. Starting "OUTLN"."SYS_IMPORT_FULL_01": outln/******** directory=dumpdumpfile=outln.dmp TABLE_EXISTS_ACTION=append
  8. Processing object type TABLE_EXPORT/TABLE/TABLE
  9. Table "OUTLN"."OL$" exists. Data will be appended to existing table but all dependent metadata will be skipped due to table_exists_action of append
  10. Table "OUTLN"."OL$NODES" exists. Data will be appended to existing table but all dependent metadata will be skipped due to table_exists_action of append
  11. Table "OUTLN"."OL$HINTS" exists. Data will be appended to existing table but all dependent metadata will be skipped due to table_exists_action of append
  12. Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
  13. . . imported "OUTLN"."OL$HINTS" 11.59 KB 5 rows
  14. . . imported "OUTLN"."OL$" 9.070 KB 1 rows
  15. . . imported "OUTLN"."OL$NODES" 7.078 KB 1 rows
  16. Processing object type TABLE_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
  17. Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
  18. Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
  19. Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
  20. Processing object type TABLE_EXPORT/TABLE/POST_TABLE_ACTION
  21. Job "OUTLN"."SYS_IMPORT_FULL_01" successfully completed at 21:52:00
  22. 查看是否已经生成new_outline_1
  23. SQL> @sql_outline
  24. Wrote file sqlplusset
  25. CATEGORY
  26. ---------------
  27. DEFAULT
  28. Enter value for owner: scott
  29. Enter value for category: default
  30. Enter value for used:
  31. CREATE
  32. NAME OWNER CATEGORY USED TIME COMPATIBLE ENABLED FORMAT SQL_TEXT
  33. ----------------------------- --------------- --------------- ------ -------- ------------ -------- ------ ----------------------------------------------------------------------
  34. NEW_OUTLINE_1 SCOTT DEFAULT USED 13 04-06 COMPATIBLE ENABLED NORMAL select /*+ full(t)*/ count(*) from test1 t where object_id=1
linux
相关资讯       ORACLE 10G  Oracle 11g 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款