Response File
Response File
instance ========================================
oracle.install.responseFileVersion=/oracle/install/
rspfmt_dbinstall_response_schema_v11_2_0
oracle.install.option=INSTALL_DB_SWONLY
ORACLE_HOSTNAME=tltor11.oracle.de
UNIX_GROUP_NAME=dba
oracle.install.db.DBA_GROUP=dba
oracle.install.db.OPER_GROUP=dba
INVENTORY_LOCATION=/u01/app/oraInventory
SELECTED_LANGUAGES=en
ORACLE_HOME=/u01/app/oracle/product/11.2.0.1
ORACLE_BASE=/u01/app/oracle
oracle.install.db.InstallEdition=EE
DECLINE_SECURITY_UPDATES=true
oracle.install.db.isCustomInstall=true
cd /home/oracle/shared/linux.x64_11gR2_grid/grid/sshsetup
---------------------
ORACLE_HOSTNAME=racm11.example.com
INVENTORY_LOCATION=/u01/app/oraInventory
SELECTED_LANGUAGES=en
oracle.install.option=CRS_CONFIG
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/grid/11.2.0.1
oracle.install.asm.OSDBA=asmdba
oracle.install.asm.OSOPER=asmoper
oracle.install.asm.OSASM=asmadmin
oracle.install.crs.config.gpnp.scanName=racm1-scan.example.com
oracle.install.crs.config.gpnp.scanPort=1521
oracle.install.crs.config.clusterName=racm1-cluster
oracle.install.crs.config.clusterNodes=racm11:racm11-vip,racm12:racm12-vip
oracle.install.crs.config.privateInterconnects=eth1:10.10.10.0:2,eth0:192.168.56.0:
1
oracle.install.crs.config.storageOption=ASM_STORAGE
oracle.install.asm.SYSASMPassword=oracle
oracle.install.asm.diskGroup.name=data
oracle.install.asm.diskGroup.redundancy=EXTERNAL
oracle.install.asm.diskGroup.disks=/dev/oracleasm/disks/ASM1,/dev/oracleasm/disks/
ASM2
oracle.install.asm.diskGroup.diskDiscoveryString=/dev/oracleasm/disks/*
oracle.install.asm.monitorPassword=oracle
*/
All should return positive results, all resources shoud be ONLINE except the gsd
resources.
After running root.sh on all nodes, back to node1, as grid user, follow these
steps:
2. Open the file with a text editor, and cut and paste the password template,
modifying as needed.
As per oracle documentation;
http://download.oracle.com/docs/cd/E11882_01/install.112/e24660/scripts.htm,
section Example B-1 Password response file for Oracle Real Application Clusters
[grid@bcndb01 ~]$ vi /u01/app/oracle/cfgtoollogs/cfgrsp.properties
oracle.assistants.server|S_SYSPASSWORD=oracle
oracle.assistants.server|S_SYSTEMPASSWORD=oracle
oracle.assistants.server|S_SYSMANPASSWORD=oracle
oracle.assistants.server|S_DBSNMPPASSWORD=oracle
oracle.assistants.server|S_HOSTUSERPASSWORD=oracle
oracle.assistants.server|S_ASMSNMPPASSWORD=oracle
/u01/grid/11.2.0.1/cfgtoollogs/configToolAllCommands
RESPONSE_FILE=/u01/app/oracle/cfgtoollogs/cfgrsp.properties
rm -rf /u01
rm -rf /etc/oraInst.loc
rm -rf /etc/oratab
rm -rf /etc/oracle/ocr.loc
mkdir -p /u01/app/oraInventory
chown -R grid:oinstall /u01/app/oraInventory
chmod -R 775 /u01/app/oraInventory
mkdir -p /u01/grid/11.2.0.1
chown -R grid:oinstall /u01/grid/11.2.0.1
chmod -R 775 /u01/grid/11.2.0.1
mkdir -p /u01/app/oracle
mkdir /u01/app/oracle/cfgtoollogs
chown -R oracle:oinstall /u01/app/oracle
chmod -R 775 /u01/app/oracle
mkdir -p /u01/app/oracle/product/11.2.0.1
chown -R oracle:oinstall /u01/app/oracle/product/11.2.0.1
chmod -R 775 /u01/app/oracle/product/11.2.0.1
Overwrite the header for the relevant partitions using the "dd" command.
oracle.install.responseFileVersion=/oracle/install/
rspfmt_dbinstall_response_schema_v11_2_0
oracle.install.option=INSTALL_DB_SWONLY
ORACLE_HOSTNAME=ocmract1.oracle.de
UNIX_GROUP_NAME=dba
oracle.install.db.DBA_GROUP=dba
oracle.install.db.OPER_GROUP=dba
INVENTORY_LOCATION=/u01/app/oraInventory
SELECTED_LANGUAGES=en
ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
ORACLE_BASE=/u01/app/oracle
oracle.install.db.InstallEdition=EE
DECLINE_SECURITY_UPDATES=true
oracle.install.db.isCustomInstall=true
oracle.install.db.CLUSTER_NODES=ocmract1,ocmract2
OPERATION_TYPE = "createDatabase"
GDBNAME = "dbracp2.oracle.de"
SID = "dbracp2"
NODELIST=ocmract1.oracle.de,ocmract2.oracle.de
SYSPASSWORD = "oracle"
SYSMANPASSWORD = "oracle"
STORAGETYPE=ASM
DISKGROUPNAME=DATA
CHARACTERSET = "AL32UTF8"
NATIONALCHARACTERSET= "AL16UTF16"
TOTALMEMORY = "800"
Output:
/u01/app/oracle/oradata/hvdumot0/system01.dbf
/u01/app/oracle/oradata/hvdumot0/sysaux01.dbf
/u01/app/oracle/oradata/hvdumot0/undotbs01.dbf
/u01/app/oracle/oradata/hvdumot0/users01.dbf
/u01/app/oracle/oradata/hvdumot0/redo03.log
/u01/app/oracle/oradata/hvdumot0/redo02.log
/u01/app/oracle/oradata/hvdumot0/redo01.log
db_recovery_file_dest string
/u01/app/oracle/flash_recovery_area
db_recovery_file_dest_size big integer 3882M
The tip for the responds file is INSTALL_TYPE. If you want to have the custom
listener name and port instead of default name <LISTENER> and port 1521.
RESPONSEFILE_VERSION="11.2"
CREATE_TYPE="CUSTOM"
SHOW_GUI=false
LOG_FILE=""/oracle11gHome/network/tools/log/netca.log""
INSTALLED_COMPONENTS={"server","net8","javavm"}
INSTALL_TYPE=""typical""
LISTENER_NUMBER=1
LISTENER_NAMES={"LISTENER123"}
LISTENER_PROTOCOLS={"TCP;1521"}
LISTENER_START=""LISTENER123""
NAMING_METHODS={"TNSNAMES","ONAMES","HOSTNAME"}
NSN_NUMBER=1
NSN_NAMES={"EXTPROC_CONNECTION_DATA"}
NSN_SERVICE={"PLSExtProc"}
NSN_PROTOCOLS={"TCP;HOSTNAME;1521"}
LISTENER_HAHA=
(DESCRIPTION=
(ADDRESS_LIST=
(ADDRESS=(PROTOCOL=tcp)(HOST=tltor11)(PORT=1521))
(ADDRESS=(PROTOCOL=ipc)(KEY=extproc))))
SID_LIST_LISTENER=
(SID_LIST=
(SID_DESC=
(GLOBAL_DBNAME=hvdumot0)
(ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1)
(SID_NAME=hvdumot0))
(SID_DESC=
(SID_NAME=plsextproc)
(ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1)
(PROGRAM=extproc)))
ADR_BASE_LISTENER_ORACLEDB1 = /u01/app/oracle
1. create pfile
2. create required directories
2. startup nomount
3. create database script
4. spool create.lis
5. create data dictionary {
@?/rdbms/admin/catalog.sql
@?/rdbms/admin/catproc.sql
}
6. Check Errors
7. As system create user profile tables by running: @?/sqlplus/admin/pupbld
8. Create a listener
++++++++++++++++++++++++++++++++++++
mkdir -p /u01/app/oracle/oradata
mkdir -p /u01/app/oracle/flash_recovery_area
Pfile:
vi $ORACLE_HOME/dbs/init<sid>.ora
control_files='/u01/app/oracle/oradata/oraunip1/control01.ctl','/u01/app/oracle/
fast_recovery_area/oraunip1/control02.ctl'
db_name=oraunip1
db_block_size=8192
sga_target=600M
sga_max_size=600M
pga_aggregate_target=200M
processes=200
job_queue_processes=10
open_cursors=300
undo_management=AUTO
undo_tablespace=UNDOTBS1
remote_login_passwordfile=EXCLUSIVE
db_create_file_dest='/u01/app/oracle/oradata'
db_recovery_file_dest='/u01/app/oracle/fast_recovery_area'
db_recovery_file_dest_size=4G
log_archive_dest_2='location=USE_DB_RECOVERY_FILE_DEST'
log_archive_format='%t_%s_%r.arc'
diagnostic_dest='/u01/app/oracle'
os_authent_prefix=''
===================
CREATE DATABASE orasyst5
USER SYS IDENTIFIED BY oracle
USER SYSTEM IDENTIFIED BY oracle
LOGFILE GROUP 1 ('/u01/app/oracle/oradata/orasyst5/redo1.log') SIZE 50M,
GROUP 2 ('/u01/app/oracle/oradata/orasyst5/redo2.log') SIZE 50M,
GROUP 3 ('/u01/app/oracle/oradata/orasyst5/redo3.log') SIZE 50M,
GROUP 4 ('/u01/app/oracle/oradata/orasyst5/redo4.log') SIZE 50M,
GROUP 5 ('/u01/app/oracle/oradata/orasyst5/redo5.log') SIZE 50M
MAXLOGFILES 5
MAXLOGMEMBERS 5
MAXLOGHISTORY 1
MAXDATAFILES 100
CHARACTER SET AL32UTF8
NATIONAL CHARACTER SET AL16UTF16
EXTENT MANAGEMENT LOCAL
DATAFILE '/u01/app/oracle/oradata/orasyst5/system01.dbf' SIZE 500M REUSE
SYSAUX DATAFILE '/u01/app/oracle/oradata/orasyst5/sysaux01.dbf' SIZE 500M REUSE
DEFAULT TABLESPACE USERS DATAFILE '/u01/app/oracle/oradata/orasyst5/users01.dbf'
SIZE 100M REUSE AUTOEXTEND ON MAXSIZE UNLIMITED
DEFAULT TEMPORARY TABLESPACE TEMP TEMPFILE
'/u01/app/oracle/oradata/orasyst5/temp01.dbf' SIZE 100M REUSE
UNDO TABLESPACE UNDOTBS1 DATAFILE
'/u01/app/oracle/oradata/orasyst5/undotbs01.dbf'
SIZE 100M REUSE AUTOEXTEND ON MAXSIZE UNLIMITED;
then run
spool create.lis
5. create data dictionary {
@?/rdbms/admin/catalog.sql
@?/rdbms/admin/catproc.sql
}
6. As system create user profile tables by running: @?/sqlplus/admin/pupbld
7. Add control_files parameter in pfile with the correct location and then start
the database and create a spfile from current pfile.
*.control_files=('','')
===================================================== Grid
Infrastructure(grid_install.rsp)
=====================================================
oracle.install.responseFileVersion=/oracle/install/
rspfmt_crsinstall_response_schema_v12.1.0
ORACLE_HOSTNAME=pandora.krenger.ch
INVENTORY_LOCATION=/etc/oraInventory
SELECTED_LANGUAGES=en
oracle.install.option=CRS_SWONLY
ORACLE_BASE=/u01/app/grid
ORACLE_HOME=/u01/app/grid/product/12.1.0/grid_1
oracle.install.asm.OSDBA=oinstall
oracle.install.asm.OSOPER=asmoper
oracle.install.asm.OSASM=asmadmin
oracle.installer.autoupdates.option=SKIP_UPDATES
mkdir -p /u01/app/oracle/oradata/orasyst5
/u01/app/oracle/fast_recovery_area/orasyst5
control_files='/u01/app/oracle/oradata/orasyst5/control01.ctl','/u01/app/oracle/
fast_recovery_area/orasyst5/control02.ctl'
db_name=orasyst5
db_block_size=8192
sga_target=600M
sga_max_size=600M
pga_aggregate_target=200M
processes=200
job_queue_processes=10
open_cursors=300
undo_management=AUTO
undo_tablespace=UNDOTBS1
remote_login_passwordfile=EXCLUSIVE
db_create_file_dest='/u01/app/oracle/oradata'
db_recovery_file_dest='/u01/app/oracle/fast_recovery_area'
db_recovery_file_dest_size=4G
log_archive_dest_2='location=USE_DB_RECOVERY_FILE_DEST'
log_archive_format='%t_%s_%r.arc'
diagnostic_dest='/u01/app/oracle'
os_authent_prefix=''
@?/rdbms/admin/catalog.sql
@?/rdbms/admin/catproc.sql
conn system/oracle
@?/sqlplus/admin/pupbld
As the clusterware user on all nodes, enter the following SQL*Plus commands.