Академический Документы
Профессиональный Документы
Культура Документы
Configure database
The last setup is to create new database ORA11G
Prepare directories for database datafiles and flash recovery area
mkdir /ora01/app/oracle/oradata
mkdir /ora01/app/oracle/flash_recovery_area
backup original response file for dbca
cd /home/oracle/database/response
cp dbca.rsp dbca.rsp.bck
vi dbca.rsp
############################
the dbca.rsp file contains are the
set own parameters
--global database name
GDBNAME = "ORA11G.dbaora.com"
--instance database name
SID = "ORA11G"
--template name used to create database
TEMPLATENAME = "General_Purpose.dbc"
--password for user sys
SYSPASSWORD = "oracle"
--password for user system
SYSTEMPASSWORD = "oracle"
--creates database console
EMCONFIGURATION = "LOCAL"
--password for sysman user
SYSMANPASSWORD = "oracle"
--password for dbsnmp user
DBSNMPPASSWORD = "oracle"
--storage used to create database
--FS - it means OS data files
STORAGETYPE=FS
--default directory for oracle database datafiles
DATAFILEDESTINATION=/ora01/app/oracle/oradata
--default directory for flashback dataa
RECOVERYAREADESTINATION=/ora01/app/oracle/flash_recovery_area
STORAGETYPE=FS
--database character set
CHARACTERSET = "AL32UTF8"
--national database character set
NATIONALCHARACTERSET= "AL16UTF16"
--listener name to register database to
LISTENERS = "LISTENER"
--force to install sample schemas on the database
SAMPLESCHEMA=TRUE
--specify database type
--has influence on some instance parameters
DATABASETYPE = "OLTP"
--force to use autmatic mamory management
AUTOMATICMEMORYMANAGEMENT = "TRUE"
--defines size of memory used by the database
TOTALMEMORY = "800"
then run the following command
dbca -silent -responseFile /home/oracle/database/response/dbca.rsp
Example output
dbca -silent -responseFile /home/oracle/database/response/dbca.rsp
Copying database files
1% complete
3% complete
37% complete
Creating and starting Oracle instance
40% complete
45% complete
50% complete
55% complete
56% complete
57% complete
60% complete
62% complete
Completing Database Creation
66% complete
70% complete
73% complete
85% complete
96% complete
100% complete
Look at the log file
"/ora01/app/oracle/cfgtoollogs/dbca/ORA11G/ORA11G.log"
for further details.
Verify connection
sqlplus / as sysdba
show parameter db_name
Check status of database console
[oracle@oel6 ~]$ emctl status dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.4.0
Copyright (c) 1996, 2013 Oracle Corporation. All rights reserved.
https://oel6.dbaora.com:1158/em/console/aboutApplication
Oracle Enterprise Manager 11g is running.
Edit the /etc/oratab file to set restart flag for ORA11G to Y.
ORA11G:/ora01/app/oracle/product/11.2.0/db_1:Y
Oracle 11gR2 Enterprise edition database home installation on Linux (RHEL5) x86_
64.
1) Customize value in response file
important note: copy from Oracle sample file: <oracle_installation_dir>/database
/response/db_install.rsp
oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_sch
ema_v11_2_0
oracle.install.option=INSTALL_DB_SWONLY
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/oracle/OraInventory
ORACLE_HOME=/oracle/product/11.2.0/template
ORACLE_BASE=/oracle
oracle.install.db.InstallEdition=EE
oracle.install.db.DBA_GROUP=dba
oracle.install.db.OPER_GROUP=dba
DECLINE_SECURITY_UPDATES=true
*********************************************
*********************************************
2) Silent installation
*********************************************
*********************************************
./runInstaller -silent -noconfig -responseFile /u01/download/db11ginstall.rsp
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 120 MB. Actual 22753 MB Passed
Checking swap space: must be greater than 150 MB. Actual 3817 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2011-06-17_09
-02-07PM. Please wait ..
$ You can find the log of this install session at:
/oracle/OraInventory/logs/installActions2011-06-17_09-02-07PM.log
The following configuration scripts need to be executed as the "root" user.
#!/bin/sh
#Root scripts to run
/oracle/product/11.2.0/template/root.sh
To execute the configuration scripts:
1. Open a terminal window
2. Log in as "root"
3. Run the scripts
4. Return to this window and hit "Enter" key to continue
Successfully Setup Software.
/ * tricks and tips */
Trick 1 # If oracle home is not empty and we didnt use runInstaller *** -force op
tion, it will die with following messages
CAUSE: The chosen installation conflicted with software already installed in the
given Oracle home.
ACTION: Install into a different Oracle home.
Trick 2 # If system are not satisfied with Oracle installation requirement, it
will show following messages.
CAUSE: Some of the optional prerequisites are not met. See logs for details. /or
acle/OraInventory/logs/log
ACTION: Identify the list of failed prerequisite checks from the log: /oracle
/OraInventory/logs/.log. Then either from the log file or from installation manua
l find the appropriate configuration to meet the prerequisites and fix it manual
ly.
[WARNING] [INS-13014] Target environment do not meet some optional requirements.
Trick 3 # If DECLINE_SECURITY_UPDATES is not set to FALSE, Oracle will try to se
t up OCM (Oracle configuration management with metalink credential), it will die
with following messages.
[SEVERE] Email Address Not Specified
Trick 4 # If DBA and OS group is not specified properly, it may die with followi
ng messages
CAUSE: User is not a member of one or more of the chosen OS groups.
ACTION: Please choose OS groups of which user is a member.
Conclusion
Silent installation is still easy with patience.
Update at Sept 9, 2013
For Oracle 11.2.0.4 silent installation, I record response file and it shows off
following related parameters.
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
DECLINE_SECURITY_UPDATES=true
oracle.installer.autoupdates.option=SKIP_UPDATES
***********************
***********************
There are four phases to getting Oracle up and running on your server:
Prepare the server
Install the Oracle software and latest patch set
Create a database
Complete the server configuration
Response File Description
ENTERPRISE.RSP Enterprise Edition installation of Oracle Database
CUSTOM.RSP Custom installation of Oracle Database
DBCA.RSP Database Configuration Assistant
NETCA.RSP Oracle Net Services Configuration Assistant