不起介面,用response file的方式升級資料庫
本文主要討論如何透過response檔案,在不起介面的方式升級資料庫。
具體步驟如下:
一、把下載的補丁集解壓,修改
vi /software/Disk1/response/patchset.rsp
把如下值修改為你實際的值:
UNIX_GROUP_NAME=oinstall
FROM_LOCATION=/software/Disk1/stage/products.xml
ORACLE_HOME=/u01/oracle/product/10.2.0/db_1
ORACLE_HOME_NAME=OraDb10g_home1 --從安裝日誌中找
RESTART_SYSTEM=false
CLUSTER_NODES={}
OUI_HOSTNAME=standby
REMOVE_HOMES={}
二、執行如下命令來啟動補丁安裝:
[oracle@standby Disk1]$ ./runInstaller -silent -responseFile /software/Disk1/response/patchset.rsp
Starting Oracle Universal Installer...
Checking installer requirements...
Checking operating system version: must be redhat-3, SuSE-9, SuSE-10, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
Passed
All installer requirements met.
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2007-06-14_12-04-34AM. Please wait ...[oracle@standby Disk1]$ Oracle Universal Installer, Version 10.2.0.3.0 Production
Copyright (C) 1999, 2006, Oracle. All rights reserved.
You can find a log of this install session at:
/u01/oracle/oraInventory/logs/installActions2007-06-14_12-04-34AM.log
.................................................................................................... 100% Done.
Loading Product Information
..................................................................................................................... 100% Done.
Analyzing dependencies
.................................................................................................... 100% Done.
-----------------------------------------------------------------------------
Summary
Global Settings
Source: /software/Disk1/stage/products.xml
Oracle Home: /u01/oracle/product/10.2.0/db_1 (OraDb10g_home1)
Product Languages
English
Simplified Chinese
Space Requirements
/ Required 825MB (includes 33MB temporary) : Available 1.62GB
New Installations (61 products)
Oracle Notification Service Patch 10.2.0.3.0
Database Configuration and Upgrade Assistants Patch 10.2.0.3.0
Character Set Migration Utility Patch 10.2.0.3.0
Oracle Database 10g Patch 10.2.0.3.0
Oracle JDBC/OCI Instant Client Patch 10.2.0.3.0
Oracle Database 10g Patch 10.2.0.3.0
SQL*Plus 10.2.0.3.0
HAS Common Files Patch 10.2.0.3.0
HAS Files for DB Patch 10.2.0.3.0
Oracle Java Client Patch 10.2.0.3.0
Oracle JVM Patch 10.2.0.3.0
Oracle Internet Directory Client Patch 10.2.0.3.0
Oracle Net Patch 10.2.0.3.0
Oracle Net Listener Patch 10.2.0.3.0
Oracle Wallet Manager Patch 10.2.0.3.0
Precompiler Common Files Patch 10.2.0.3.0
......
......
Oracle Containers for Java 10.2.0.1.0
Java Runtime Environment 1.4.2.8.0
Sun JDK 1.4.2.0.8
-----------------------------------------------------------------------------
Deinstall in progress (Thu Jun 14 00:04:58 CST 2007)
............................................................... 0% Done.
............................................................... 28% Done.
............................................................... 57% Done.
.............................. 100% Done.
Deinstall successful
Installation in progress (Thu Jun 14 00:04:59 CST 2007)
............................................................... 28% Done.
............................................................... 57% Done.
.............................................. 78% Done.
Install successful
End of install phases.(Thu Jun 14 00:12:32 CST 2007)
WARNING:
The following configuration scripts need to be executed as the "root" user.
#!/bin/sh
#Root script to run
/u01/oracle/product/10.2.0/db_1/root.sh
To execute the configuration scripts:
1. Open a terminal window
2. Log in as "root"
3. Run the scripts
三、執行root.sh
[root@standby response]# /u01/oracle/product/10.2.0/db_1/root.sh
Running Oracle10 root.sh script...
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/oracle/product/10.2.0/db_1
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying dbhome to /usr/local/bin ...
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying coraenv to /usr/local/bin ...
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.sh script.
Now product-specific root actions will be performed.
四、升級資料庫
如果已經安裝了資料庫,則執行如下命令來呼叫dbua在非介面下升級資料庫:
SQL> STARTUP UPGRADE
[oracle@standby Disk1]$ dbua -silent -dbname standby -oracleHome /u01/oracle/product/10.2.0/db_1 -sysDBAUserName sys -sysDBAPassword mypassword -recompile_invalid_objects true
當然,這一步可以不用dbua,你可以使用手工執行sql語句的方式來升級,具體步驟就不羅列了,大家可以參考文件。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/231499/viewspace-63815/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 靜默方式安裝、升級oracle(三): 升級資料庫軟體及資料庫Oracle資料庫
- 【資料庫】mysql5.6升級至5.7(物理方式)資料庫MySql
- 靜默方式安裝、升級oracle(二): 建立資料庫Oracle資料庫
- 資料庫升級之-Dataguard滾動升級資料庫
- 資料庫升級之-資料泵資料庫
- 資料庫升級之-XTTS資料庫TTS
- 資料庫升級和工具資料庫
- android資料庫如何進行版本升級?架構之資料庫框架升級Android資料庫架構框架
- 13 使用SQL Apply 升級資料庫SQLAPP資料庫
- oracle資料庫11.2.0.3升級到11.2.0.4Oracle資料庫
- 資料庫升級-物理重新整理資料字典資料庫
- iOS 資料庫升級資料遷移解決方案iOS資料庫
- Android 資料庫綜述(一) 資料庫片的升級與資料的遷移操作Android資料庫
- Oracle資料庫升級或資料遷移的方法探討Oracle資料庫
- Android 中的升級資料庫最佳方法實踐Android資料庫
- Oracle 12c系列(九) | 通過unplug與plug方式升級pdb資料庫Oracle資料庫
- 用begin backup的方式遷移資料庫資料庫
- 自定義開發資料庫升級程式資料庫
- 故障分析 | MySQL 資料庫升級後,資料庫怎麼卡住了MySql資料庫
- phpStudy2018 升級資料庫 MySQL5.7PHP資料庫MySql
- 【資料庫升級】Oracle指令碼升級12c CDB to 19c CDB資料庫Oracle指令碼
- 如何理解騰訊雲資料庫戰略升級?資料庫
- iOS CoreData (二) 版本升級和資料庫遷移iOS資料庫
- 成為MySQL DBA 部落格系列-資料庫升級MySql資料庫
- LinkedIn大資料工程的升級大資料
- oracle資料庫升級的時候oracle universal installer has detected........Oracle資料庫
- win10升級後應用打不開怎麼辦_win10升級後應用打不開的解決方法Win10
- NoSQL資料庫興起SQL資料庫
- Sanic response file() 函式用法和示例函式
- 超級實用的Excel技巧,不會的趕緊get起來Excel
- Oracle資料庫由dataguard備庫引起的log file sync等待Oracle資料庫
- 某保險公司的核心繫統國產資料庫升級之路資料庫
- 大資料:小白升級版大資料
- 阿里雲Polardb國產資料庫補丁升級 實踐阿里資料庫
- 雲資料庫PostgreSQL版重磅升級開年釋出會資料庫SQL
- postgresql資料庫利用方式SQL資料庫
- 3 個用於資料科學的頂級 Python 庫資料科學Python
- Realm 升級資料庫,為表新增新的Field遇到的異常記錄資料庫