1. 程式人生 > >ORACLE RAC升級(12.1.0.1升級至12.1.0.2)

ORACLE RAC升級(12.1.0.1升級至12.1.0.2)

  1. 檢視當前版本

Crs

[[email protected] ~]$ crsctl query crs activeversion

Oracle Clusterware active version on the cluster is [12.1.0.1.0]

[[email protected] ~]$ crsctl query crs releaseversion

Oracle High Availability Services release version on the local node is [12.1.0.1.0]

[[email protected] ~]$ crsctl query crs softwareversion

Oracle Clusterware version on node [rac1] is [12.1.0.1.0] 

Db

SQL> select BANNER from v$version;

 BANNER

-----------------------------------------------------------------------------------------------------

Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production

PL/SQL Release 12.1.0.1.0 - Production

CORE    12.1.0.1.0      Production

TNS for Linux: Version 12.1.0.1.0 – Production

NLSRTL Version 12.1.0.1.0 - Production

  1. 升級前準備

SQL> @?/rdbms/admin/preupgrd.sql

Loading Pre-Upgrade Package...

Executing Pre-Upgrade Checks...

Pre-Upgrade Checks Complete.

      ************************************************************

Results of the checks are located at:

 /u01/app/oracle/cfgtoollogs/rac12c/preupgrade/preupgrade.log

Pre-Upgrade Fixup Script (run in source database environment):

 /u01/app/oracle/cfgtoollogs/rac12c/preupgrade/preupgrade_fixups.sql

Post-Upgrade Fixup Script (run shortly after upgrade):

 /u01/app/oracle/cfgtoollogs/rac12c/preupgrade/postupgrade_fixups.sql

      ***********************************************************

         Fixup scripts must be reviewed prior to being executed.

      ************************************************************

      ************************************************************

                   ====>> USER ACTION REQUIRED  <<====

      ************************************************************

 The following are *** ERROR LEVEL CONDITIONS *** that must be addressed

                    prior to attempting your upgrade.

            Failure to do so will result in a failed upgrade.

 1) Check Tag:    OLS_SYS_MOVE

    Check Summary: Check if SYSTEM.AUD$ needs to move to SYS.AUD$ before upgrade

    Fixup Summary:

     "Execute olspreupgrade.sql script prior to upgrade."

    +++ Source Database Manual Action Required +++

            You MUST resolve the above error prior to upgrade

      ************************************************************

執行以上提示的修復指令碼,檢視日誌

SQL>@/u01/app/oracle/cfgtoollogs/rac12c/preupgrade/preupgrade_fixups.sql

SQL>@?/rdbms/admin/olspreupgrade.sql

[[email protected] ~]$ cat /u01/app/oracle/cfgtoollogs/rac12c/preupgrade/preupgrade.log

  1. 升級Cluster

分別在兩個節點建立升級用的目錄

[[email protected] ~]# mkdir p /u01/12.1.0.2/grid

[[email protected] ~]# chmod 775 -R /u01/12.1.0.2/grid

[[email protected] ~]# chown grid:oinstall R /u01/12.1.0.2/grid

上傳介質,並解壓

[[email protected] software]# unzip linuxamd64_12102_grid_1of2.zip

[[email protected] software]# unzip linuxamd64_12102_grid_2of2.zip

[[email protected] software # chmod 777 R grid/

[[email protected] software]# su - grid

[[email protected] ~]$ export DISPLAY=192.168.24.23:0.0

[[email protected] ~]$ cd /u01/software/grid

[[email protected] grid]$ ./runInstaller

 

 

寫成升級後的軟體目錄


  1. 執行指令碼

[[email protected] 12.1.0.2]# /u01/12.1.0.2/grid/rootupgrade.sh

Performing root user operation.

The following environment variables are set as:

    ORACLE_OWNER= grid

    ORACLE_HOME=  /u01/12.1.0.2/grid

Enter the full pathname of the local bin directory: [/usr/local/bin]:

The contents of "dbhome" have not changed. No need to overwrite.

The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)

[n]: y

   Copying oraenv to /usr/local/bin ...

The contents of "coraenv" have not changed. No need to overwrite.

Entries will be added to the /etc/oratab file as needed by

Database Configuration Assistant when a database is created

Finished running generic part of root script.

Now product-specific root actions will be performed.

Using configuration parameter file: /u01/12.1.0.2/grid/crs/install/crsconfig_params

2014/08/12 17:13:19 CLSRSC-4015: Performing install or upgrade action for Oracle Trace File Analyzer (TFA) Collector.

2014/08/12 17:13:46 CLSRSC-4003: Successfully patched Oracle Trace File Analyzer (TFA) Collector.

2014/08/12 17:13:52 CLSRSC-464: Starting retrieval of the cluster configuration data

2014/08/12 17:14:01 CLSRSC-465: Retrieval of the cluster configuration data has successfully completed.

2014/08/12 17:14:01 CLSRSC-363: User ignored prerequisites during installation

2014/08/12 17:14:18 CLSRSC-515: Starting OCR manual backup.

2014/08/12 17:14:21 CLSRSC-516: OCR manual backup successful.

2014/08/12 17:14:26 CLSRSC-468: Setting Oracle Clusterware and ASM to rolling migration mode

2014/08/12 17:14:26 CLSRSC-482: Running command: '/u01/12.1.0/grid/bin/crsctl start rollingupgrade 12.1.0.2.0'

CRS-1131: The cluster was successfully set to rolling upgrade mode.

2014/08/12 17:14:31 CLSRSC-482: Running command: '/u01/12.1.0.2/grid/bin/asmca -silent -upgradeNodeASM -nonRolling false -oldCRSHome /u01/12.1.0/grid -oldCRSVersion 12.1.0.1.0 -nodeNumber 1 -firstNode true -startRolling false'

ASM configuration upgraded in local node successfully.

2014/08/12 17:14:36 CLSRSC-469: Successfully set Oracle Clusterware and ASM to rolling migration mode

2014/08/12 17:14:36 CLSRSC-466: Starting shutdown of the current Oracle Grid Infrastructure stack

2014/08/12 17:16:04 CLSRSC-467: Shutdown of the current Oracle Grid Infrastructure stack has successfully completed.

OLR initialization - successful

2014/08/12 17:18:50 CLSRSC-329: Replacing Clusterware entries in file 'oracle-ohasd.conf'

CRS-4133: Oracle High Availability Services has been stopped.

CRS-4123: Oracle High Availability Services has been started.

2014/08/12 17:23:13 CLSRSC-472: Attempting to export the OCR

2014/08/12 17:23:13 CLSRSC-482: Running command: 'ocrconfig -upgrade grid oinstall'

2014/08/12 17:23:18 CLSRSC-473: Successfully exported the OCR

2014/08/12 17:23:24 CLSRSC-486:

 At this stage of upgrade, the OCR has changed.

 Any attempt to downgrade the cluster after this point will require a complete cluster outage to restore the OCR.

2014/08/12 17:23:24 CLSRSC-541:

 To downgrade the cluster:

 1. All nodes that have been upgraded must be downgraded.

2014/08/12 17:23:24 CLSRSC-542:

 2. Before downgrading the last node, the Grid Infrastructure stack on all other cluster nodes must be down.

2014/08/12 17:23:24 CLSRSC-543:

 3. The downgrade command must be run on the node rac1 with the '-lastnode' option to restore global configuration data.

2014/08/12 17:23:50 CLSRSC-343: Successfully started Oracle Clusterware stack

clscfg: EXISTING configuration version 5 detected.

clscfg: version 5 is 12c Release 1.

Successfully taken the backup of node specific configuration in OCR.

Successfully accumulated necessary OCR keys.

Creating OCR keys for user 'root', privgrp 'root'..

Operation successful.

2014/08/12 17:24:06 CLSRSC-474: Initiating upgrade of resource types

2014/08/12 17:24:12 CLSRSC-482: Running command: 'upgrade model  -s 12.1.0.1.0 -d 12.1.0.2.0 -p first'

2014/08/12 17:24:12 CLSRSC-475: Upgrade of resource types successfully initiated.

2014/08/12 17:24:19 CLSRSC-325: Configure Oracle Grid Infrastructure for a Cluster ... succeeded

[[email protected] 12.1.0.2]# /u01/12.1.0.2/grid/rootupgrade.sh

Performing root user operation.

The following environment variables are set as:

    ORACLE_OWNER= grid

    ORACLE_HOME=  /u01/12.1.0.2/grid

Enter the full pathname of the local bin directory: [/usr/local/bin]:

The contents of "dbhome" have not changed. No need to overwrite.

The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)

[n]: y

   Copying oraenv to /usr/local/bin ...

The contents of "coraenv" have not changed. No need to overwrite.

Entries will be added to the /etc/oratab file as needed by

Database Configuration Assistant when a database is created

Finished running generic part of root script.

Now product-specific root actions will be performed.

Using configuration parameter file: /u01/12.1.0.2/grid/crs/install/crsconfig_params

2014/08/12 17:24:45 CLSRSC-4015: Performing install or upgrade action for Oracle Trace File Analyzer (TFA) Collector.

2014/08/12 17:25:11 CLSRSC-4003: Successfully patched Oracle Trace File Analyzer (TFA) Collector.

2014/08/12 17:25:14 CLSRSC-464: Starting retrieval of the cluster configuration data

2014/08/12 17:25:23 CLSRSC-465: Retrieval of the cluster configuration data has successfully completed.

2014/08/12 17:25:23 CLSRSC-363: User ignored prerequisites during installation

ASM configuration upgraded in local node successfully.

2014/08/12 17:25:38 CLSRSC-466: Starting shutdown of the current Oracle Grid Infrastructure stack

2014/08/12 17:27:01 CLSRSC-467: Shutdown of the current Oracle Grid Infrastructure stack has successfully completed.

OLR initialization - successful

2014/08/12 17:27:27 CLSRSC-329: Replacing Clusterware entries in file 'oracle-ohasd.conf'

CRS-4133: Oracle High Availability Services has been stopped.

CRS-4123: Oracle High Availability Services has been started.

2014/08/12 17:30:48 CLSRSC-343: Successfully started Oracle Clusterware stack

clscfg: EXISTING configuration version 5 detected.

clscfg: version 5 is 12c Release 1.

Successfully taken the backup of node specific configuration in OCR.

Successfully accumulated necessary OCR keys.

Creating OCR keys for user 'root', privgrp 'root'..

Operation successful.

2014/08/12 17:30:54 CLSRSC-478: Setting Oracle Clusterware active version on the last node to be upgraded

2014/08/12 17:30:54 CLSRSC-482: Running command: '/u01/12.1.0.2/grid/bin/crsctl set crs activeversion'

Started to upgrade the Oracle Clusterware. This operation may take a few minutes.

Started to upgrade the CSS.

The CSS was successfully upgraded.

Started to upgrade Oracle ASM.

Started to upgrade the CRS.

The CRS was successfully upgraded.

Successfully upgraded the Oracle Clusterware.

Oracle Clusterware operating version was successfully set to 12.1.0.2.0

2014/08/12 17:31:59 CLSRSC-479: Successfully set Oracle Clusterware active version

2014/08/12 17:32:05 CLSRSC-476: Finishing upgrade of resource types

2014/08/12 17:32:12 CLSRSC-482: Running command: 'upgrade model  -s 12.1.0.1.0 -d 12.1.0.2.0 -p last'

2014/08/12 17:32:12 CLSRSC-477: Successfully completed upgrade of resource types

PRCN-3004 : Listener MGMTLSNR already exists

2014/08/12 17:32:42 CLSRSC-325: Configure Oracle Grid Infrastructure for a Cluster ... Succeeded

  1. 升級資料庫

在兩個節點分別建立所需目錄

[[email protected] ~]# mkdir -p /u01/12.1.0.2/oracle

[[email protected] ~]# chmod 775 –R /u01/12.1.0.2/oracle

[[email protected] ~]# chown oracle:oinstall –R /u01/12.1.0.2/oracle 

上傳介質,解壓後升級

[[email protected] ~]# cd /u01/software/

[[email protected] software]# unzip linuxamd64_12102_database_1of2.zip

[[email protected] software]# unzip linuxamd64_12102_database_2of2.zip

[[email protected] software]# cd database/

[[email protected] database]# export DISPLAY=192.168.24.23:0.0

[[email protected] database]# ./runInstaller

 

 修改為升級的目錄


兩個節點分別執行指令碼

[[email protected] ~]# /u01/12.1.0.2/oracle/product/db_1/root.sh

Performing root user operation.

The following environment variables are set as:

    ORACLE_OWNER= oracle

    ORACLE_HOME=  /u01/12.1.0.2/oracle/product/db_1

Enter the full pathname of the local bin directory: [/usr/local/bin]:

The contents of "dbhome" have not changed. No need to overwrite.

The contents of "oraenv" have not changed. No need to overwrite.

The contents of "coraenv" have not changed. No need to overwrite.

Entries will be added to the /etc/oratab file as needed by

Database Configuration Assistant when a database is created

Finished running generic part of root script.

Now product-specific root actions will be performed.

[[email protected] ~]# /u01/12.1.0.2/oracle/product/db_1/root.sh

Performing root user operation.

The following environment variables are set as:

    ORACLE_OWNER= oracle

    ORACLE_HOME=  /u01/12.1.0.2/oracle/product/db_1

Enter the full pathname of the local bin directory: [/usr/local/bin]:

The contents of "dbhome" have not changed. No need to overwrite.

The contents of "oraenv" have not changed. No need to overwrite.

The contents of "coraenv" have not changed. No need to overwrite.

Entries will be added to the /etc/oratab file as needed by

Database Configuration Assistant when a database is created

Finished running generic part of root script.

Now product-specific root actions will be performed.

  1. 上述最後一步自動呼叫DBUA


可以選擇升級前後要執行的指令碼

配置Express

 

 

上述完成後,點Results


升級完關閉視窗,並驗證

SQL> select distinct object_name from dba_invalid_objects;

no rows selected

SQL> select banner from v$version;

BANNER

--------------------------------------------------------------------------------

Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production

PL/SQL Release 12.1.0.2.0 - Production

CORE    12.1.0.2.0      Production

TNS for Linux: Version 12.1.0.2.0 - Production

NLSRTL Version 12.1.0.2.0 - Production

SQL> select comp_name,version,status from dba_registry;

COMP_NAME                                VERSION                STATUS

----------------------------------------        ------------------------------         ----------------------

Oracle Database Vault                     12.1.0.2.0                     VALID

Oracle Application Express                 4.2.5.00.08                    VALID

Oracle Label Security                      12.1.0.2.0                     VALID

Spatial                                  12.1.0.2.0                     VALID

Oracle Multimedia                        12.1.0.2.0                     VALID

Oracle Text                              12.1.0.2.0                     VALID

Oracle Workspace Manager                 12.1.0.2.0                     VALID

Oracle XML Database                      12.1.0.2.0                     VALID

Oracle Database Catalog Views              12.1.0.2.0                     VALID

Oracle Database Packages and Types          12.1.0.2.0                     VALID

JServer JAVA Virtual Machine                12.1.0.2.0                     VALID

Oracle XDK                               12.1.0.2.0                     VALID

Oracle Database Java Packages               12.1.0.2.0                     VALID

OLAP Analytic Workspace                   12.1.0.2.0                     VALID

Oracle OLAP API                           12.1.0.2.0                     VALID

Oracle Real Application Clusters              12.1.0.2.0                     VALID

相關推薦

Oracle RAC HMHang Manager

oracl nag ora- 詳細 整數 incident analyze off 診斷 在Oracle數據庫中,掛起(hang)指某一個進程由於無法獲得申請的資源而進入的等待狀態,這種等待狀態只有在獲得申請的資源後才能夠解除,HM實現對hang的管理,包括了對於hang的

EasyDarwin開源流媒體伺服器gettimeofday效能優化3000萬/秒次優化8000萬次/秒

—本文由EasyDarwin開源團隊成員貢獻 一、問題描述 Easydarwin中大量使用gettimeofday來獲取系統時間,對系統性能造成了一定的影響。我們來做個測試: While(1) { Gettimeofday(&t

ORACLE RAC升級12.1.0.1升級12.1.0.2

檢視當前版本 Crs [[email protected] ~]$ crsctl query crs activeversion Oracle Clusterware active version on the cluster is [12.1.0.1.0] [[email prot

Oracle GoldenGate 12.2.0.1 安裝、升級和刪除

OGG安裝 OGG升級 OGG刪除 OGG12.2 1、準備工作選擇正確的版本:OGG與數據庫廠商和數據庫版本對照表。 下載軟件:在Oracle Technology Network(OTN)或者使用CSI在 http://edelivery.oracle.com 中進行下載。 上傳軟件到服務

Oracle RAC 11.2.0.4版本 For AIX 6.1安裝手冊

 【部分引用別人的文件修改而成,實際經過安裝驗證的文件】 Oracle Rac 11GR2(11.2.0.4) For AIX6.1+ASM安裝手冊 部分截圖採用了網上別人的圖片以及部分章節 2 安裝環境說明 節點 節點

rhel 6.7 安裝Oracle RAC 12.2.0.1

RHEL 6.7上安裝Oracle RAC 12.2.0.1 1.  作業系統及儲存配置 1.1需要安裝的OS package ################################# Table 4-4 x86-64 Red Hat Enterprise

LinuxCentOS 7+ Nginx1.10.2+ Mysql5.7.16+ PHP7.0.12完整環境搭建

首先安裝Linux系統,我以虛擬機器安裝來做示例,先去下載 VitualBox,這是一款開源的虛擬機器軟體,https://www.virtualbox.org 官網地址。或者是VMware,www.vmware.com,不過這個軟體是收費的。當然同時還要去下載一個Linux

Vue2.0專案升級1-初始化專案

將公司基於Vue1.0的移動專案升級到2.0,這或許將要花費不少的時間,順便學習一下新的東西,畢竟前端更新比較快,要隨時站好腳步! 1.使用codding託管(https://coding.net/)

nginx從1.6.3升級1.12.2版本安裝也可參考此文

準備環境:(僅針對沒有安裝過nginx的系統)檢查並安裝所需的依賴軟體 1).gcc:nginx編譯依賴gcc環境   安裝命令:yum -y install gcc-c++ 2).pcre:(Perl Compatible Regular Expressions)是一個Pe

Linux系統Oracle 12cR2 RAC集群安裝與維護管理12.2專題

oracle教程 oracle培訓 oracle數據庫教程 oracle工程師培訓 oracle數據庫培訓 風哥Linux系統Oracle 12cR2 RAC集群安裝與維護管理(12.2)專題包括內容:Oracle數據庫12cR2(項目實戰之一):在Windows上安裝Oracle12.2

Shell特殊位置變量$0,$1$2,$*,$#,$$,$?,$@,${}

shell$0 文件名及路徑$1,$2 參數1,參數2$# 傳遞給腳本或函數的參數個數$$ 當前Shell進程ID$? 判斷上個命令的執行成功與否,0為成功。$@ 傳遞腳本或函數的所有參數$* 傳遞腳本或函數的所有參數${}註:$@和$*都是傳遞腳本或函數的所有參數。

免費SSL證書支持1.01.11.2

logs 免費 設置 重啟 cloud 下載 需要 微信小程序 .html 由於公司要開發微信小程序,而微信小程序的接口需要https協議的,並且要支持TLS1.0、TLS1.1、TLS1.2。如果僅僅是為了開發小程序,安全等級又不用太高,可以選擇免費的SSL證書 在這裏選

Storm的StreamID使用樣例版本1.0.2

alt constant rate fields olt topology next blog for 隨手嘗試了一下StreamID的的用法。留個筆記。 ==數據樣例== { "Address": "小橋鎮小橋中學對面", "CityCode": "

Linux/Centos mysql5.1升級到5.6rpm安裝的mysql升級

Mysql Linux Centos 系統 運維 升級之前,先把整個數據庫備份一下,有備無患 備份數據庫,升級MySQL通常不會丟失數據,但保險起見,我們需要做這一步。輸入命令: mkdir /software 建立一個文件夾存放備份文件 mysqldump -u root -p -

Windows基礎環境_安裝配置教程Windows7 64、JDK1.8、Android SDK23.0、TortoiseSVN 1.9.5

tools 直接 x86_64 ase php JD network not using Windows基礎環境_安裝配置教程(Windows7 64、JDK1.8、Android SDK23.0、TortoiseSVN 1.9.5) 安裝包版本 1) JDK版

將 ASP.NET Core 2.0 項目升級 ASP.NET Core 2.1.3X

微信公眾號 code ima microsoft 訪問 nload 操作 更新 解決辦法 在上一篇文章ASP.Net Core 運行錯誤 Http Error 502.5 解決辦法的最後有提到說,最推薦的升級辦法是從2.0升級到2.1X版本. 操作如下 項目的例子直接使用h

從零寫分散式RPC框架 系列 1.0 2RPC-Common模組設計實現

RPC-Common模組提供RPC-Server和RPC-Client的通用物件,封裝統一規則,使RPC Server和RPC Client 可以基於同一協議通訊。主要包含底層通訊的Netty所需的編碼解碼器(RpcEncoder,RpcDecoder),實現自定義協議的傳輸物件(Rpc

阿里巴巴中國總裁葉朋 B2B從1 02 0升級 閱讀整理

分享一下我老師大神的人工智慧教程!零基礎,通俗易懂!http://blog.csdn.net/jiangjunshow 也歡迎大家轉載本篇文章。分享知識,造福人民,實現我們中華民族偉大復興!        

Oracle儲存過程1

(一)儲存過程的基本語法   1  CREATE OR REPLACE PROCEDURE 儲存過程名   2  IS   3  BEGIN   4  

Ubuntu18.04 + CUDA9.0 + cuDNN7.3 + Tensorflow-gpu-1.12 + Jupyter Notebook深度學習環境配置

uri onf 設備 har import strong sof 比較 理論 目錄 一、Ubuntu18.04 LTS系統的安裝 1. 安裝文件下載 2. 制作U盤安裝鏡像文件 3. 開始安裝 二、設置軟件源的國內鏡像 1. 設置方法 2.關於ubuntu鏡像的小知識