靜默安裝Oracle11.2.0.2 for Oracle Linux6 x86_64
以前安裝過Linux上64位的Oracle11.2.0.1,這次在新的Linux6上安裝11.2.0.2,還取樣靜默安裝方式,差別還是比較大的。
Enterprise Linux 5 X86-64上安裝Oracle11.2:http://yangtingkun.itpub.net/post/468/491071
首先還是檢查系統是否滿足安裝需要,這裡只列出結果,詳細含義可以參考上面給出的連結。
[root@Oracle111 ~]# grep MemTotal /proc/meminfo
MemTotal: 8178860 kB
[root@Oracle111 ~]# grep SwapTotal /proc/meminfo
SwapTotal: 8388600 kB
[root@Oracle111 ~]# df -h /dev/shm
Filesystem Size Used Avail Use% Mounted on
tmpfs 3.9G 260K 3.9G 1% /dev/shm
[root@Oracle111 ~]# uname -m
x86_64
[root@Oracle111 ~]# df -k /tmp
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda7 8063408 149104 7504704 2% /tmp
[root@Oracle111 ~]# df -k /opt
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 20158332 7384532 11749800 39% /opt
[root@Oracle111 ~]# df -k /data1
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 80634688 5584236 70954452 8% /data1
[root@Oracle111 ~]# more /etc/issue
Oracle Linux Server release 6.0
Kernel \r on an \m
[root@Oracle111 ~]# cat /proc/version
Linux version 2.6.32-71.el6.x86_64 (mockbuild@ca-build19.us.oracle.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Dec 15 12:36:54 EST 2010
[root@Oracle111 ~]# uname -r
2.6.32-71.el6.x86_64
檢查系統包,由於Oracle官方文件還沒有Linux6上所需的包,只能按照Linux5上的包進行檢查:
binutils-2.17.50.0.6
elfutils-libelf-0.125
elfutils-libelf-devel-0.125
gcc-4.1.2
gcc-c++-4.1.2
glibc-2.5-24
glibc-common-2.5
glibc-devel-2.5
glibc-headers-2.5
libaio-0.3.106
libgcc-4.1.2
libstdc++-4.1.2
libstdc++-devel 4.1.2
make-3.81
sysstat-7.0.2
需要建立oracle使用者和oinstall、dba組,這些與其他版本的安裝沒有任何的區別,這裡就不重複介紹了。
對於Oracle安裝來說,基本上已經不需要設定什麼環境變數了,大部分環境變數的內容都可以在安裝的時候指定,除了DISPLAY資訊。而當前取樣預設按照,因此也不需要DISPLAY環境變數。
更改/etc/security/limits.conf檔案,新增下面的內容:
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
編輯/etc/pam.d/login檔案,新增下面的內容:
session required pam_limits.so
Oracle的Linux系統自然會對Oracle資料庫支援的比較好,因此係統核心引數一般情況下不需要設定,檢查可以發現預設情況下/etc/sysctl.conf中設定的值是符合Oracle推薦值的,因此這個步驟可以跳過。
由於11.2中修改了responseFile方式對應引數的要求,像以前那樣僅指定需要的引數將會導致安裝的錯誤,於是取樣了直接命令列方式提供引數的方法。
由於11.2.0.2是可以直接安裝的補丁,因此進入database目錄後,直接開始安裝:
oracle@Oracle111 database]$ ./runInstaller -silent -debug -force \
> FROM_LOCATION=/data1/database/stage/products.xml \
> oracle.install.option=INSTALL_DB_SWONLY \
> UNIX_GROUP_NAME=oinstall \
> INVENTORY_LOCATION=/opt/oracle/oraInventory \
> ORACLE_HOME=/opt/oracle/product/11.2.0/db \
> ORACLE_HOME_NAME="Oracle111" \
> ORACLE_BASE=/opt/oracle \
> oracle.install.db.InstallEdition=EE \
> oracle.install.db.isCustomInstall=false \
> oracle.install.db.DBA_GROUP=dba \
> oracle.install.db.OPER_GROUP=dba \
> DECLINE_SECURITY_UPDATES=true
Unable to get absolute path for /data1/database/stage/prereq
: No such file or directory
Unable to get absolute path for /opt/oracle/oraInventory
: No such file or directory
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 120 MB. Actual 7120 MB Passed
Checking swap space: must be greater than 150 MB. Actual 8191 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2011-02-16_11-29-01PM. Please wait ...Archive: ../stage/Components/oracle.jdk/1.5.0.24.08/1/DataFiles/filegroup5.jar
inflating: /tmp/OraInstall2011-02-16_11-29-01PM/jdk/THIRDPARTYLICENSEREADME.txt
inflating: /tmp/OraInstall2011-02-16_11-29-01PM/jdk/ENTITLEMENT
inflating: /tmp/OraInstall2011-02-16_11-29-01PM/jdk/Perpetual_Entitlement_Desktop
inflating: /tmp/OraInstall2011-02-16_11-29-01PM/jdk/COPYRIGHT
inflating: /tmp/OraInstall2011-02-16_11-29-01PM/jdk/.manifest
inflating: /tmp/OraInstall2011-02-16_11-29-01PM/jdk/LICENSE
.
.
.
plugin id = ADR Setup Utility
oracle home = /opt/oracle/product/11.2.0/db
top level comp name = oracle.rdbms.util
comp name = oracle.rdbms.util
action name = configuration
step index = 0
micro step index = 0
command with arg =
msg =
OiifbConfigController::setting the status for UI install configuration
OiifbConfigController::sMsg 1 =
sMsg 2 =
sMsg3 =
silent Message =
OiifbConfigController::MyProgress: Action end event received
OiifbConfigController::MyProgress: Action status = PERFORMED_SUCCESS
OiifbConfigController:: actionEnd event received from config fw , actionID.getSelfID() = configuration action State = 0
OiifbConfigController::Action state is TOOLS SUCCEEDED
OiifbConfigController::It is not a silent install and not a deinstall session,
so trying to have the UI updation done by calling GraphicConfigPageHandler.handleActionEnd()
OiifbConfigController::Trying to close the output stream
OiifbConfigController::launchAggregatesForAdditionalUtil end
OiifbConfigController:: launchConfigToolsForAdditionalUtilityExecution end with return value0
As a root user, execute the following script(s):
1. /opt/oracle/oraInventory/orainstRoot.sh
2. /opt/oracle/product/11.2.0/db/root.sh
Successfully Setup Software.
copying /opt/oracle/oraInventory/logs/oraInstall2011-02-16_11-33-14PM.err to /opt/oracle/product/11.2.0/db/cfgtoollogs/oui/oraInstall2011-02-16_11-33-14PM.err
copying /opt/oracle/oraInventory/logs/oraInstall2011-02-16_11-33-14PM.out to /opt/oracle/product/11.2.0/db/cfgtoollogs/oui/oraInstall2011-02-16_11-33-14PM.out
copying /opt/oracle/oraInventory/logs/installActions2011-02-16_11-33-14PM.log to /opt/oracle/product/11.2.0/db/cfgtoollogs/oui/installActions2011-02-16_11-33-14PM.log
安裝完成,下面用root執行兩個指令碼:
[root@Oracle111 opt]# /opt/oracle/oraInventory/orainstRoot.sh
Changing permissions of /opt/oracle/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /opt/oracle/oraInventory to dba.
The execution of the script. is complete.
[root@Oracle111 opt]# /opt/oracle/product/11.2.0/db/root.sh
Check /opt/oracle/product/11.2.0/db/install/root_Oracle111_2011-02-16_23-36-38.log for the output of root script
可以看到,對於靜默安裝,執行root.sh的結果也不一樣,執行結果輸出到檔案中,檢查這個檔案的內容:
[root@Oracle111 opt]# more /opt/oracle/product/11.2.0/db/install/root_Oracle111_2011-02-16_23-36-38.log
Running Oracle 11g root script...
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /opt/oracle/product/11.2.0/db
Creating /etc/oratab file...
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.
Finished product-specific root actions.
檢查安裝版本:
[oracle@Oracle111 database]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.2.0 Production on Wed Feb 16 23:37:08 2011
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to an idle instance.
SQL> exit
Disconnected
至此,silent安裝資料庫過程完成。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/4227/viewspace-688403/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 靜默建庫Oracle11.2.0.2 for Oracle Linux6 x86_64OracleLinux
- Oracle 靜默安裝Oracle
- Oracle靜默安裝Oracle
- 靜默安裝ORACLE(文件)Oracle
- oracle靜默安裝raw裝置Oracle
- 靜默安裝oracle時報錯Oracle
- ORACLE 11.2.0.4靜默安裝Oracle
- 靜默安裝oracle軟體Oracle
- Oracle靜默安裝(單機)Oracle
- 靜默安裝ORACLE 軟體Oracle
- Oracle靜默安裝說明Oracle
- Android靜默安裝和靜默解除安裝Android
- oracle 19C 靜默安裝Oracle
- oracle 12c 靜默安裝Oracle
- Oracle 11g 靜默安裝Oracle
- 靜默安裝oracle10gOracle
- oracle10g 靜默安裝Oracle
- Oracle 10g 靜默安裝Oracle 10g
- 【靜默】在RHEL 6.5上靜默安裝Oracle 18cOracle
- 【oracle】靜默安裝 oracle 11gr2Oracle
- rac靜默安裝
- dbca 靜默安裝
- centos 7.4靜默安裝oracle 19.3CentOSOracle
- 使用responseFile進行oracle靜默安裝Oracle
- Oracle 11g Database靜默安裝OracleDatabase
- oracle11g靜默安裝(修正)Oracle
- oracle安裝:使用響應檔案靜默安裝Oracle
- 靜默方式安裝、升級oracle(一): 安裝oracle軟體Oracle
- RHEL5 Oracle 11G R2 RAC 靜默安裝 (二)GI靜默安裝Oracle
- Android靜默安裝應用和靜默解除安裝應用Android
- PackageInstaller 5.0原始碼分析靜默安裝與靜默解除安裝Package原始碼
- oracle客戶端無人值守安裝 靜默安裝Oracle客戶端
- OEL6下靜默安裝Oracle 11g,靜默配置監聽Oracle
- RedHat上靜默安裝Oracle11gRedhatOracle
- CentOS 7.5靜默安裝Oracle 11gCentOSOracle
- CentOS 7.2靜默安裝Oracle11gCentOSOracle
- RedHat 7 靜默安裝Oracle11gRedhatOracle
- Oracle資料庫靜默安裝實踐Oracle資料庫