使用靜默方式安裝11g資料庫
LINUX 6.3
oracle11g 11.2.0.3
現象:
在安裝資料庫時,無法啟動資料庫安裝的圖形介面,一直報could not execute auto check for display colors using command /usr/bin/xdpyinfo,導致無法啟動oracle的安裝介面。
採用靜默方式安裝資料庫
1)修改rsp檔案,下面是我修改的rsp檔案內容
oracle.install.option=INSTALL_DB_SWONLY
ORACLE_HOSTNAME=r11g
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/u01/app/oracle/oraInventory
ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
ORACLE_BASE=/u01/app/oracle
oracle.install.db.InstallEdition=EE
oracle.install.db.DBA_GROUP=dba
oracle.install.db.OPER_GROUP=oinstall
oracle.install.db.config.starterdb.password.ALL=oracle
2)安裝資料庫軟體
執行命令
[oracle@r11g database]$ ./runInstaller
-silent -responseFile /opt/setup/database/init.rsp
tail -100f
/u01/app/oracle/oraInventory/logs/installActions2013-11-08_11-37-44PM.log
Please check
'/u01/app/oracle/oraInventory/logs/silentInstall2013-11-08_11-37-44PM.log' for
more details.
As a root user, execute the following
script(s):
1. /u01/app/oracle/oraInventory/orainstRoot.sh
2. /u01/app/oracle/product/11.2.0/db_1/root.sh
Successfully Setup Software.
[root@r11g ~]# /u01/app/oracle/oraInventory/orainstRoot.sh
Changing permissions of
/u01/app/oracle/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for
world.
Changing groupname of
/u01/app/oracle/oraInventory to oinstall.
The execution of the script is complete.
Check
/u01/app/oracle/product/11.2.0/db_1/install/root_r11g_2013-11-08_23-47-49.log
for the output of root script
檢查root.sh指令碼執行情況
[root@r11g ~]# more
/u01/app/oracle/product/11.2.0/db_1/install/root_r11g_2013-11-08_23-47-49.log
Performing root user operation for Oracle
11g
The following environment variables are set
as:
ORACLE_OWNER= oracle
ORACLE_HOME=
/u01/app/oracle/product/11.2.0/db_1
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@r11g ~]$ sqlplus "/as
sysdba"
SQL*Plus: Release 11.2.0.3.0 Production on
Fri Nov 8 23:49:57 2013
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to an idle instance.
SQL>
db_name='db'
db_block_size=8192
memory_target=1G
memory_max_target=1G
processes = 150
control_files =
('/u01/app/oracle/oradata/control/control01.ctl',
'/u01/app/oracle/oradata/control/control02.ctl')
job_queue_processes=10
open_cursors=300
fast_start_mttr_target=500
undo_tablespace='UNDOTBS1'
undo_management=AUTO
remote_login_passwordfile='EXCLUSIVE'
audit_file_dest='/u01/app/oracle/admin/db/adump'
audit_trail ='db'
db_domain=''
db_recovery_file_dest='/u01/app/oracle/flash_recovery_area'
db_recovery_file_dest_size=2G
diagnostic_dest='/u01/app/oracle'
dispatchers='(PROTOCOL=TCP)
(SERVICE=ORCLXDB)'
compatible ='11.2.0'
mkdir -p /u01/app/oracle/oradata/control
mkdir -p /u01/app/oracle/admin/db/adump
mkdir -p /u01/app/oracle/flash_recovery_area
在建庫指令碼中的路徑,也需要提前建立。
CREATE DATABASE db
USER SYS IDENTIFIED BY oracle
USER SYSTEM IDENTIFIED BY oracle
LOGFILE GROUP 1
('/u01/app/oracle/oradata/redolog/redo01a.log','/u01/app/oracle/oradata/redolog/redo01b.log')
SIZE 100M,
GROUP 2
('/u01/app/oracle/oradata/redolog/redo02a.log','/u01/app/oracle/oradata/redolog/redo02b.log')
SIZE 100M,
GROUP 3
('/u01/app/oracle/oradata/redolog/redo03a.log','/u01/app/oracle/oradata/redolog/redo03b.log')
SIZE 100M
MAXLOGFILES 5
MAXLOGMEMBERS 5
MAXLOGHISTORY 1
MAXDATAFILES 200
CHARACTER SET ZHS16GBK
NATIONAL CHARACTER SET AL16UTF16
EXTENT
MANAGEMENT LOCAL
DATAFILE '/u01/app/oracle/oradata/db/system01.dbf' SIZE 500M
SYSAUX DATAFILE '/u01/app/oracle/oradata/db/sysaux01.dbf' SIZE 500M
DEFAULT TABLESPACE users
DATAFILE '/u01/app/oracle/oradata/db/users01.dbf'
SIZE 500M AUTOEXTEND off
DEFAULT TEMPORARY TABLESPACE tempts1
TEMPFILE '/u01/app/oracle/oradata/db/temp01.dbf'
SIZE 20M
UNDO TABLESPACE UNDOTBS1
DATAFILE '/u01/app/oracle/oradata/db/undotbs01.dbf'
SIZE 200M AUTOEXTEND off;
使用sys使用者執行下面指令碼
@?/rdbms/admin/catalog.sql
@?/rdbms/admin/catproc.sql
使用system使用者執行下面指令碼
@?/sqlplus/admin/pupbld.sql
說明:
-responseFile 引數必須是絕對路徑
執行過程中,這個頁面不要動,也不要關閉。可以在新的頁面進行日誌監控
指令碼執行完後,有如下提示
[oracle@r11g ~]$ The installation of Oracle
Database 11g was successful.
3)執行相關指令碼
[root@r11g ~]#
/u01/app/oracle/product/11.2.0/db_1/root.sh
4)軟體安裝後測試
5)編輯初始化引數檔案
6)建立相關目錄
7)執行建庫指令碼
8)執行指令碼建立資料字典檢視
至此,資料庫安裝完成
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29306197/viewspace-1062988/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 靜默安裝Oracle資料庫11gOracle資料庫
- 靜默方式安裝oracle 11g 完整攻略Oracle
- 靜默方式安裝、升級oracle(二): 建立資料庫Oracle資料庫
- 【11g 單庫解除安裝、靜默安裝】實驗
- CentOS 7.5靜默安裝Oracle 11gCentOSOracle
- 靜默方式安裝、升級oracle(三): 升級資料庫軟體及資料庫Oracle資料庫
- 靜默安裝Oracle11g資料庫Oracle資料庫
- 19c(19.3) 單機資料庫靜默安裝資料庫
- 靜默方式安裝11gR2
- 靜默安裝and手動建庫
- 【配置安裝】靜默安裝Oracle資料庫軟體12c&19cOracle資料庫
- 【配置上線】靜默安裝資料庫Oracle 11gR2資料庫Oracle
- Oracle靜默安裝Oracle
- rac靜默安裝
- Windows 7平臺靜默安裝11.2.0.4軟體及靜默建庫Windows
- 靜默方式安裝、升級oracle(一): 安裝oracle軟體Oracle
- 【配置上線】Oracle靜默建庫 for 11gOracle
- 靜默安裝11.2.0.1資料庫軟體報[FATAL] [INS-32035] Unable to create資料庫
- Linux下靜默安裝OraceLinux
- 【靜默】在RHEL 6.5上靜默安裝Oracle 18cOracle
- tar方式安裝資料庫資料庫
- AnolisOS 7.9 靜默安裝Oacle 11.2.0.4
- centos 7.4靜默安裝oracle 19.3CentOSOracle
- oracle 19C 靜默安裝Oracle
- 靜默安裝oracle時報錯Oracle
- Oracle 11G資料庫單例項安裝Oracle資料庫單例
- Oracle Linux 7.1 靜默安裝Weblogic 12.2.1.3OracleLinuxWeb
- 靜默安裝Oracle建庫時報Template General Purpose does not existOracle
- 【配置安裝】Oracle靜默建庫for 12c&19c CDBOracle
- 2.3.3 關於使用非互動式/靜默DBCA建立資料庫資料庫
- weblogic靜默方式建立域Web
- oracle 11g 單例項資料庫的安裝Oracle單例資料庫
- win10如何禁止靜默執行_win10禁止靜默安裝方法Win10
- RedHat上靜默安裝Oracle11gRedhatOracle
- CentOS 7.2靜默安裝Oracle11gCentOSOracle
- redhat7.2靜默安裝Oracle11.2.0.4RedhatOracle
- 靜默安裝19C RAC的指令碼指令碼
- oracle11g客戶端靜默安裝Oracle客戶端
- Oracle Linux 7.1 靜默安裝Oracle 18c RACOracleLinux