Skip to content


Oracle 12c 升级失败的降级步骤

Oracle 12c 升级失败的降级步骤


– XML DB 组件在 12c 中是必需的。
在升级到 12c 期间,将安装 XML DB 组件(如果未安装)。
从 12c 降级将删除安装的 XDB 组件

- Enterprise Manager 不支持降级。在降级之前,请重新配置 Oracle EM 控件。请参阅
Oracle Database Upgrade Guide 12c Release 1 (12.1) E17642-10
6 Downgrading Oracle Database to an Earlier Release
6.6.5 Restoring Oracle Enterprise Manager after Downgrading Oracle Database

- 升级到 12c 期间,将删除 Database Control 资料档案库。降级之后,需重新配置 DB Control。

Note 870877.1 How To Save Oracle Enterprise Manager Database Control Data Before Upgrading The Single Instance Database To Other Release ?
Note 876353.1 How To Restore The Oracle Enterprise Manager Data To Downgrade The Single Instance Database To Previous/Source Release ?
- compatible 参数不能已经更改到 12.1.0。
- 禁用 Data Vault(如果已启用)。
Note 803948.1  How To Uninstall Or Reinstall Database Vault in 11g (UNIX)
Note 453902.1 Enabling and Disabling Oracle Database Vault in WINDOWS
- 如果数据库使用 Oracle Label Security,则在新 Oracle Database 12c Oracle 主目录中运行 Oracle Label Security (OLS) 预处理降级 olspredowngrade.sql 脚本(在 $ORACLE_HOME/rdbms/admin 上提供)。注意!此步骤仅在需要降级到12c之前的版本时才需要
- 时区版本应相同。假设升级数据库的过程中时区版本也被升级了,那么要在升级前在源库打patch。例如11.2.0.4已经升级到12.,时区作为升级的一部分也升级到了18,那么在降级到11.之前,在11.的home上打时区patch 18。
- 取消设置并指向 12c 主目录的 ORA_TZFILE(如果已设置)。
- 如果数据库上有 Oracle Application Express,则必须将 apxrelod.sql 文件从 Oracle Database 12c $ORACLE_HOME/apex/ 目录复制到 Oracle 主目录之外的目录,例如系统上的临时目录以稍后执行。
- 如果基于固定对象创建了对象,则删除这些对象以避免可能的 ORA-00600 错误。您可以在降级之后重新创建这些对象。
- 如果降级集群数据库,则彻底关闭实例并将 CLUSTER_DATABASE 初始化参数更改为 FALSE。降级之后,必须将此参数设置回 TRUE。
- 假设在升级之后你已经在升级的数据库打了patch,那么在降级之前,在数据库级别使用datapatch回滚这些patch。



1) 确保所有数据库组件有效。只能从成功升级的数据库执行降级。要验证数据库组件状态,请执行以下查询

以 SYS 用户身份连接到数据库

col comp_id format a10
col comp_name format a30
col version format a10
col status format a8

select substr(comp_id,1,15) comp_id,substr(comp_name,1,30) comp_name,substr(version,1,10) version,status from dba_registry

2) 验证没有属于 sys/system 的无效对象

select owner, count(object_name) "Invalid object count" from dba_objects where status!='VALID' and owner in ('SYS','SYSTEM') group by owner;


如果有无效对象,则执行 utlrp.sql 多次,如果对象无法解析为有效状态,则不能继续降级。建立 SR 或在 DBA 社区上发帖以寻求帮助。

或者,对于 1 和 2,运行以下脚本:

Note 556610.1  Script to Collect DB Upgrade/Migrate Diagnostic Information (dbupgdiag.sql)

3) 关闭数据库

Shutdown immediate

4)  对 12c 数据库做备份

5)  以降级模式启动数据库

Startup downgrade;

6)  执行降级脚本

Sql> Spool downgrade.log

Sql> @$ORACLE_HOME/rdbms/admin/catdwgrd.sql

$ORACLE_HOME 应指向 12c 主目录

catdwgrd.sql 脚本将数据库中的所有组件降级到支持的主版本或补丁集版本(您最初升级时的版本)

Sql> spool off

Sql> shutdown immediate

Exit SQL Plus

Sql> exit;

7) 如果操作系统为 LINUX/UNIX:




编辑 /etc/oratab or /var/opt/oracle/oratab 以更改

将数据库映射到源数据库 Oracle 主目录

如果操作系统是 Windows,则完成以下步骤:

a. 停止所有 Oracle 服务,包括 Oracle Database 12c 数据库的 OracleServiceSID Oracle 服务,其中 SID 是实例名称。

例如,如果 SID 为 ORCL,则在命令行提示符中输入以下内容:

C:\> NET STOP OracleServiceORCL
b. 在命令提示符下,通过运行 ORADIM 命令删除 Oracle 服务。如果出现提示,则输入此 Windows 系统上活动标准用户帐户的口令。

例如,如果 SID 为 ORCL,则输入以下命令:

c. 在命令提示符下,使用 ORADIM 命令创建要降级的数据库的 Oracle 服务。



8) 还原配置文件

将配置文件(口令文件、参数文件等)还原到降级版本的 ORACLE_HOME。

9) 如果这是 Oracle RAC 数据库,则执行以下命令以将数据库修改为单实例模式:


10) 从降级版本 $ORACLE_HOME/rdbms/admin 目录执行 catrelod 脚本。

启动 sqlplus,以具有 sysdba 权限的用户 SYS 身份连接到数据库实例,然后以升级模式启动数据库:

: cd $ORACLE_HOME/rdbms/admin

: sqlplus

sql> connect sys as sysdba

sql> startup upgrade

sql> spool catrelod.log

sql> @?/rdbms/admin/catrelod.sql

sql> spool off

catrelod.sql 脚本在降级的数据库中重新加载各个数据库组件的合适版本。

11) 运行 utlrp.sql 脚本:

SQL> @utlrp.sql

Sql> exit;

utlrp.sql 脚本重新编译先前处于 INVALID 状态的所有现有 PL/SQL 模块,例如 package、procedure、type 等。

12) 检查已降级数据库的状态:

Note 556610.1  Script to Collect DB Upgrade/Migrate Diagnostic Information (dbupgdiag.sql)
此 sql 脚本是一组查询语句,用在升级前后诊断数据库的状态。脚本将创建名为 db_upg_diag__<时间戳>.log 的文件。

13) 降级之后,可能在 sys 用户下发现无效的 QT 视图。这是因为视图已从基表中选择了错误的列。需要重新创建这些视图。


Note 1520209.1 QT_*BUFER Views Invalid after downgrade from 12C

1)如果是降级到 Oracle Database 11g 版本 1 ( 并且数据库中有 Oracle Application Express,则将 apxrelod.sql 脚本复制到的目录(在降级前步骤中)。
运行 apxrelod.sql 脚本以手动重新加载 Oracle Application Express:

SQL> @apxrelod.sql

运行 apxrelod.sql 脚本以避免程序包 APEX_030200.WWV_FLOW_HELP 由于以下错误而成为 INVALID 状态:

PLS-00201: identifier ‘CTX_DDL’ must be declared
2) 如果数据库中启用了 Oracle Label Security,则执行以下脚本

a. 从 Oracle Database 12c 的 Oracle 主目录下将 olstrig.sql 脚本复制到要将数据库降级到的版本的 Oracle 主目录。

b. 从降级到的版本的 Oracle 主目录,运行 olstrig.sql 以在表上使用 Oracle Label Security 策略重新创建 DML 触发器:

SQL> @olstrig.sql

3) 如果降级集群数据库,则必须运行以下命令以降级 Oracle Clusterware database 配置:

$ srvctl downgrade database -d db-unique-name -o oraclehome -t to_version
其中 db-unique-name 是数据库名称(而非实例名称),oraclehome 是已降级数据库的旧 Oracle 主目录的位置,to_version 是数据库所降级到的数据库版本


RDBMS Version -to_version Value

4) 如果发现失效的SYS/SYETEM的对象,那么可以使用下面的方法来编译这些失效对象

$ sqlplus "/ as sysdba"
SQL> startup upgrade
SQL> spool catout.log
SQL> @?/rdbms/admin/catproc.sql
SQL> @?/rdbms/admin/utlrp.sql
SQL> spool off
SQL> shutdown immediate

5) 如果数据库从11.2.0.4升级到12.1.0.2之前没有安装XDB,那么在降级回11.2.0.4的时候,XDB的对象需要被移除。然而,我们还是可以发现无效的XDB对象残留在数据库中。这已经被记录为一个bug 22854967,patch已经可以下载了。

Invalid XDB-related Objects After Downgrading To (Doc ID 2163596.1)

he is lasted by wife marina b

Days gone by, The defense had the sting, Vikings running back Packers jersey Chuck Foreman reminded each and every. You remember fondly the head slap? Foreman wanted to know. Preventive guys used to wrap their hands up and use them as clubs. Subscribing to the Army Air Corps in 1940, Gene obtained his pilot wings. He adored to fly. Wedding and reception war, He made Captain with Delta airline carriers, The 99th obtain.

Do you’ve always wondered how much is your website worth or are you just looking to sell your website? BizBroker24 consultants combine extensive transactional expertise with a deep know-how about specific industry sectors to support their clients. Whenever you are a person with a job, Now and again, Cleaning location you forget to even on your free time. The two extremes come to play determined by your awareness of the Packers Pro Shop market and the entire transaction process..

“Charles Woodson is very excessive. He leave his zone and go into another when he sees something. And obviously if becomes clear that and predict that, They render guys open. The varied businesses segment includes home shopping services provided primarily through television media, High speed web connection for hotel facilities, Advertisements services, Progression, Sales and maintenance of i. T systems, Credit services and other varied services. DCM has given good market returns in the last twelve months.

If you missed the first roundup for Black Ops 2 insignias, Be sure to prove it for yourself after this. The moment, Let study these impressive emblems, Which feature the Anonymous mask, An Angry Birds batman hybrid, Cammy from Street mma star rear. Tupac, Kenny from down Park(A vintage!), The Assassin Creed 3 company brand.

Chapman referred to. ”Hopefully the lawyers will get that sorted away very fast, But it’ll be resolved one way or the other in the near future. To say I’m frustrated, Upset and disgusted is a gross exaggeration. You purchase for them. Spectacular[Magnusson’s] A reaction to that probably was, ‘The [Shift] Window’s marked on your calender, I’m not sure if Alan’s been too loyal to the players he has and whether he can be ruthless enough with the squad or not’. That probably was his issue,.

ROADS AND start to TAPER OFF. WHO GETS the particular most SNOW? WE WILL point out THAT, Planned. NEW home elevators THE SHOOTING IN LANCASTER THAT LEFT ONE PERSON DEAD AND TWO OTHERS WOUNDED. He had seven catches for 117 yards and a TD in playoff make an impression on Dallas. Indiana. Adam Vinatieri enters official Packers jersey his 20th season as the NFL’s fourth in history scorer.

his final military job was at madigan army hospital in fort lewis

Then my wife was very valuable in giving me good advice, She defined, Find out, Maybe your purpose nowadays is to coach this high school team. Hasn previously served as a head coach at the school level, Although he did spend 1979 and 1980 as an assistant at Worcester Academy after having a one year stint at Stamford when he was 24 years old. In six years using the Packers, Sherman was basically 57 39, Winning three at once division titles.

The Giants had all three phases Packers jersey working from Packers. The slumping offense converted three of four red zone availabilities in the team’s second largest win of the season. The defense sacked Aaron Rodgers five times and forced two turnovers that led to 10 points against one of the few league’s top offenses.

Make stupid apps whether or not the app only maps a network drive or updates a registry setting, Is irrelevant. It’s through utilization you gain progress. Good luck and happy encoding!Today post is a small go to guide for beginner software engineers in Null Byte.

These European champions are horrifying in their perfection, Their assembly values and their general awesomeness and their disdain for the Bellas. “I’m not against the speak Loser, Possibilities did you say, Their lead performer(An impacting Birgitte Hjort Sorensen) Informs me icily. Beca is terrified but helplessly smitten with the Heidi Klum lookalike.

Dude, Jules, Brian and shiny D Andrea, Beam Perrone Sr, David Sampson, Person Cohen, Keith Anyon, State’s Rep. Jake Fresolo, Proclaim Packers Pro Shop Sens. John Moore and Harriette Chandler, Rob Raymond, Michael the air nike jordans Levy, Kevin and in addition Katie Mercadante, Diane and Connie D Iorio..

Of us be aware, We were just a part of a moment classic, Cover Mike McGlynn said. Great. Best comeback I many people a part of. Visitors filter into the bird’s nest from the sides. Upon reaching the walk out concourse, They either spill down into the lower level seats or climb slender stairways the actual matrix of beams to the upper concourses. Within your seat, You gaze out at the encompassing skyline: Rows of generic housing towers that seem to supply to eternity..

As of late, The Raiders are renowned for their extensive fan base and distinctive team culture. As a result of 1963, They has won 15 division titles(Three AFL and twelve national football league), Three very official Packers jersey Bowls, Four AFC title of the article(1976, 1980, 1983, In addition to the 2002) And an AFL champion. 13 former members of the team had been enshrined in the Pro Football Hall of Fame..

his next thing is Clay Matthews Jersey pulling everybody with him while he does that

Separate that important step from what we’ve seen over the past eight seasons. Those same Patriots, While superior in the AFC, Are really the same as the Vikings of the 70s, The Broncos of the 80s or the debts of the 90s. Each of those teams was tremendous, But possessing Super Bowl titles, Left in a category available to bridesmaids..

Last appointment: Vikings triumphed in, 24 20, On the subject of Dec. 12, 1999, At mn. Point of view: Mn not only lost its chance for an unbeaten season last week, But the Vikings were stomped in the act, 41 13, By polk Bay. With 129 TD passes for chicago, il, He needs nine to break Hall of Famer Sid Luckman’s business record(137).. Matt Forte joined LaDainian Tomlinson as only RBs with on the 1,000 yards hurrying and 100 receptions in same season. Set NFL record for RBs with 102 draws..

First that week, Obama had said he’d attend the Super Bowl if his Bears beat the Packers.Obama said Friday he would try stop talking giving the Bears rivals any extra motivation,He really do away with it in, President barak said of Woodson. “I admit Woodson is a great ball player. Seemingly, I gave him some bulletin board tutorials.

Within the past Jordy Nelson Jersey 40 years AMD stayed in the shadow of Intel because Intel needed it. But now tournament from ARM(Qualcomm, Nvidia, Straight talk, Apple company.) Is far more dangerous for Intel so it doesn’t need AMD anymore. So unless AMD makes some drastic improvements next year all the same it may disappear soon enough..

When using EV/EBITDA ratio of 3.88X, Low even for a consultant in this segment, DCM appear to be mispriced. Using our quotation of Price/TBV, We set a valuation on $27.00 concerning DCM. (New york stock exchange:Texas) Is a steel contractor in Latin America, Manufacturing and processing a range of flat and long steel products for customers active in the development, Gadgets, Finances goods, Tub, Household goods, Energy and automotive groups.

Up next and active, Is the Jesse White crumbling Team from Chicago. The group was formed in 1959 and since has brandished halftime shows for NBA, NFL and MLB categories. Which you remain a member, Each youth must stay going to school, Maintain a high academic record and steer clear from gangs and drugs.

Sea, Winged earth herb known to as, Subdue. Dominion may out face him. Third dominion day time. WITH SO MANY HOMES DESTROYED to the floor, THERE IS ALWAYS the chance that SOMEONE DID NOT MAKE IT OUT ALIVE. Of course, WE hope IT IS NOT TRUE. Aaron Rodgers Jersey IT certainly a POTENTIAL RISK.

his rookie free well Packers jersey being and fundamental

This dazzling sea temple, Among the holiest sites for the island’s Hindu amount, Was built in the 16th century and is centered on protecting the island from the wrath of the sea. One of seven sea temples that encircle the coast of Bali like a defending girdle, Its adults are the mythical sea snakes said to inhabit the caves below. The sea impact at the rocky shore below, The wind tearing at your clothes and jostling crowds posing precipitously near to the cliff’s edge make a visit to Tanah Lot a truly experience..

Hence hiring one is safe and sound. Professional moving companies in Gurgaon are also known for offering their quality services at cost-effective price points. A few, Packing and moving industry in Gurgaon is at high boom with several good moving enterprises..

Fighting techinques Vancouver. Develop your mind/body connection and increase your hidden greatness at Vancouver’s top ranked Purple Dragon Academy. Book a cost-free marketing tool class. “I would like to get to the playoffs, Gonzalez agreed. “That’s all it is being relevant keep away from. One thing that coach Smitty stresses that to us on a regular basis.

There’s a lot to share as the season creeps closer and closer. Among this week’s questions: Was Terrell Suggs’ hit on Sam Bradford clean or mucky; Packers Pro Shop The stunning contract extension for Mychal Kendricks; And Kenjon Barner joins the show to speak about his quest to make the roster. Enroll in the podcast on iTunes or Stitcher..

Eula appeared on December 15, 1909 living while in just Hebron, Nebraska, The modest of Ernest R. And bacteria Kish Adamson. She grew up in connections, Nebraska and simply Edgemont, Southern Dakota. All Leases Are every month! FREE booking No credit card required! No debt to rent! Decide on drive up, Come up, Escalator access, Indoor or out-of-door units, Dependant upon the amenities available at one of the more than 2,000 locations you decided on. Arrange Today! Public Storage rents self self self storage large and small, From closet sized spaces to ones that can hold the valuables in a five bedroom house. Look at drive up, Hike up, Lift access, Indoor or exterior lighting units, Based mostly amenities available at one of the more than 2,000 locations selecting.

I settled into my stance during the last play of Super Bowl XXXIII. The field glowed inside the given lights. Flashbulbs popped throughout the stadium. Using a loss, You seek as well as food. Fats cause you to feel fuller as you try to fill the void left by the loss. Fats coat your tongue and physical receptors, A pleasure sensation that official Packers jersey creates a hunger for more.