--- 1. Preparations for installing Oracle
Content of the oracle user. bash_profile File
Umask 022
PATH =/bin:/usr/local/bin:/usr/X11R6/bin
LD_LIBRARY_PATH =/usr/lib:/usr/X11R6/lib
ORACLE_BASE =/u01/app
ORACLE_HOME = $ ORACLE_BASE/product/10.2.0.1/db_1
ORACLE_SID = ora11g
PATH = $ ORACLE_HOME/bin: $ PATH
Export PATH LD_LIBRARY_PATH
Export ORACLE_BASE ORACLE_HOME ORACLE_SID
2. After the installation environment is configured, copy the installation media of oracle11gr2 to the server and decompress the package. The two packages are resolved together. Run the command for Silent Installation
./RunInstaller-silent-noconfig-responseFile/u01/app/db_install.rsp
The following problems occur during execution:
-----------------------------
[Oracle @ localhost database] $./runInstaller-silent-force-noconfig-responseFile/home/oracle/db_install.rsp
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 80 MB. Actual 127047 MB Passed
Checking swap space: must be greater than 150 MB. Actual 4000 MB Passed
Preparing to launch Oracle Universal Installer from/tmp/OraInstall2009-11-30_08-48-47PM. Please wait... [oracle @ localhost database] $ [SEVERE]-Email Address Not Specified
The following parameters are configured in the responsefile file:
DECLINE_SECURITY_UPDATES = true
The above operations only install the oracle 11g R2 database software. Create a database manually.
--------------------
3. Create a database in nomount state. Therefore, you need to create a parameter file for instance startup. Modify the default parameter file of the program: Rename the rule initSID. ora.
Initora11g. ora
Db_name = 'ora11g' -- modify
# Memory_target = 500 m -- Comment out
Sga_target = 200 m -- add
Pga_aggregate_target = 60 m -- add
Processes = 150
Audit_file_dest = '/u01/app/admin/ora11g/adump' -- create a directory
Audit_trail = 'db'
DB _ block_size = 8192
Db_domain =''
Db_recovery_file_dest = '/u01/app/flash_recovery_area' -- create a directory
Db_recovery_file_dest_size = 2G
Diagnostic_dest = '/u01/app' --- modify
Dispatchers = '(PROTOCOL = TCP) (SERVICE = ORCLXDB )'
Open_cursors = 300
Remote_login_passwordfile = 'clusive'
Undo_tablespace = 'undotbs1'
Create a directory
Mkdir-p/u01/app/admin/ora11g/adump
Mkdir-p/u01/app/admin/ora11g/dpdump
Mkdir-p/u01/app/flash_recovery_area
---------------------------------------------------------------------------
4. Create a password file: orapwSID naming rules
Orapw + Instance name in linux
Pwd + Instance name in windows
[Oracle @ bkjia dbs] $ orapwd file = orapwora11g password = oracle
[Oracle @ bkjia dbs] $ ls
Hc_ora11g.dat initora11g. ora lkORA11G ora_control1 ora_control2 orapwora11g peshm_ora11g_0