探索Oracle之数据库升级三
回退升级操作(11.2.0.4Downgrade 11.2.0.3)
我们可以选择2种回退办法:
1. 通过restore point还原到11.2.0.1的数据库
2. 执行catdwgrd.sql降级数据字典
第一种方法:
- [oracle@db01 dbs]$ sqlplus /as sysdba
-
-
-
- SQL*Plus: Release 11.2.0.4.0Production on Sat Oct 4 04:53:22 2014
-
- Copyright (c) 1982, 2013,Oracle. All rights reserved.
-
-
-
- Connected to:
-
- Oracle Database 11gEnterprise Edition Release 11.2.0.4.0 - 64bit Production
-
- With the Partitioning, OLAP,Data Mining and Real Application Testing options
-
-
-
- SQL> select * fromv$restore_point;
-
-
-
- SCN DATABASE_INCARNATION# GUASTORAGE_SIZE
-
- ------------------------------- --- ------------
-
- TIME
-
- ---------------------------------------------------------------------------
-
- RESTORE_POINT_TIME PRE
-
- ------------------------------------------------------------------------------
-
- NAME
-
- --------------------------------------------------------------------------------
-
- 1187867 2 YES 629145600
-
- 04-OCT-14 02.41.43.000000000AM
-
- YES
-
- MACLEAN_ROLLBACK
-
-
-
-
-
- SQL>flashback database torestore point MACLEAN_ROLLBACK;
-
- Flashback complete
-
- SQL> alter database openresetlogs;
-
- Database altered.
以上通过restorepoint的方法是我所推荐的,这种方法简单、省时省力、高效且问题少少,是一种绿色方案。
针对第二种方法:
catdwgrd.sql的运行有诸多限制,其所消耗的时间可能要略长于catupgrd.sql。而且该脚本在运行过程中可能遇到各种错误,不推荐使用这种方法。
关于使用catdwgrd.sql脚本降级数据库11.2.0.2到11.2.0.1;可以参考MOSnote 。
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/20674423/viewspace-1358095/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/20674423/viewspace-1358095/