Silent Installation of Oracle 11g Database Software

Source: Internet
Author: User

1. Prepare files
1. Copy the linux.x64_11gR2_database_1of2.zip file.
Linux.x64_11gr2_database204 f2.zip to the/Oracle directory;

2. decompress the package (you can right-click to decompress the package, or use the password, cd/oracle)
[Root @ jyrac1/] # uzip linux.x64_11gR2_database_1of2.zip
[Root @ jyrac1/] # uzip linux.x64_11gr2_databasesilicate f2.zip
 
3. Create an oraInst. loc file under the/etc directory. The content of the file (two lines of code) is as follows:
Inventory_loc = ORACLE_BASE/oraInventory
Inst_group = oinstall
[Root @ jyrac1/] # vi/etc/oraInst. loc
Nventory_loc = ORACLE_BASE/oraInventory
Inst_group = oinstall
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"/Etc/oraInst. loc" [New] 2L, 59C written
 
4. Enter the following command to set the appropriate owner, group, and permissions on the oraInst. loc file:
[Root @ jyrac1/] # cd/etc
[Root @ jyrac1 etc] # chown oracle: oinstall oraInst. loc
[Root @ jyrac1 etc] # chmod 664 oraInst. loc
 
Ii. Check hardware requirements
1. Check the system physical memory. The following output shows that there is 2 GB memory, and the minimum memory requirement is 1 GB.
[Root @ jyrac1 etc] # grep MemTotal/proc/meminfo
MemTotal: 2059568 kB
 
2. Check the swap space size. The following output shows that there is 2 GB swap space. The optimal setting of the swap space is related to your physical memory size. For details, see the installation documentation.
[Root @ jyrac1 etc] # grep SwapTotal/proc/meminfo
SwapTotal: 2096472 kB
 
3. view available physical memory and swap space
[Root @ jyrac1 etc] # free
Total used free shared buffers cached
Mem: 2059568 856296 1203272 0 59336 574832
-/+ Buffers/cache: 222128 1837440
Swap: 2096472 120740 1975732
 
4. view the mounted temporary partition Space
[Root @ jyrac1 etc] # df
Filesystem 1K-blocks Used Available Use % Mounted on
/Dev/sda1 16246428 10361032 5046808 68%/
/Dev/sda2 2030768 1124784 801160 59%/tmp
Tmpfs 1029784 0 1029784 0%/dev/shm
/Dev/sdb 10321208 162284 9634636 2%/u01
 
Iii. check software requirements
1. view the Linux version
[Root @ jyrac1 etc] # cat/etc/issue
Red Hat Enterprise Linux Server release 5.4 (Tikanga)
Kernel \ r on an \ m
 
2. view the kernel version
[Root @ jyrac1 etc] # uname-
Linux jyrac1 2.6.18-164. el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
 
4. Configure the kernel and other parameters
1. vi/etc/sysctl. conf
Kernel. shmall = 4294967296
Kernel. shmmni = 4096
Kernel. sem = 250 32000 100 128
Fs. file-max = 6815744
Net. ipv4.ip _ local_port_range = 9000 65500
Net. core. rmem_default = 262144
Net. core. rmem_max = 4194304
Net. core. wmem_default = 262144
Net. core. wmem_max = 1048576
Fs. aio-max-nr = 3145728
 
[Root @ jyrac1/] #/sbin/sysctl-p

2. vi/etc/security/limits. conf
Oracle soft nproc 2047
Hard nproc 16384
Oracle soft nofile 1024
Oracle hard nofile 65536
 
3. vi/etc/pam. d/login
Session required pam_selinux.so open
Session optional pam_keyinit.so force revoke
Session required pam_limits.so
 
4. vi/etc/selinux/config
SELINUX = disabled
 
5. Add User Groups and users and Set passwords for oracle users
[Root @ lym Server] # groupadd oinstall
[Root @ lym Server] # groupadd dba
[Root @ lym Server] # groupadd plugin
[Root @ lym Server] # useradd-g oinstall-G dba oracle
[Root @ lym Server] # passwd oracle
Changing password for user oracle.
New UNIX password:
Retype new UNIX password:
Passwd: all authentication tokens updated successfully.

 
6. Create a folder for installing Oracle and set its permissions to Oracle users.
[Root @ jyrac1/] # mkdir-p/u01/app/oracle/11.2.0/db
[Root @ jyrac1/] # chown-R oracle. oinstall/u01
[Root @ jyrac1/] # chmod 775/u01
 
7. Set Oracle environment variables
[Oracle @ jyrac1 ~] $ Vi. bash_profile
#. Bash_profile

# Get the aliases and functions
If [-f ~ /. Bashrc]; then
.~ /. Bashrc
Fi

# User specific environment and startup programs

PATH = $ PATH: $ HOME/bin

Export PATH
TEMP =/u01/tmp
TMPDIR =/u01/tmp
Export TEMP TMPDIR
Export LD_ASSUME_KERNEL = 2.6.9
Export ORACLE_BASE =/u01/app/oracle
Export ORACLE_HOME =/u01/app/oracle/11.2.0/db
Export ORACLE_SID = jycs
Export NLS_LANG = AMERICAN_AMERICA.ZHS16GBK
Export ORA_NLS33 = $ ORACLE_HOME/ocommon/nls/admin/data
LD_LIBRARY_PATH = $ ORACLE_HOME/lib:/usr/lib
LD_LIBRARY_PATH = $ LD_LIBRARY_PATH:/usr/local/lib
Export LD_LIBRARY_PATH
Export PATH = $ PATH: $ ORACLE_HOME/bin
CLASSPATH = $ ORACLE_HOME/JRE: $ ORACLE_HOME/jlib: $ ORACLE_HOME/rdbms/jlib
CLASSPATH = $ CLASSPATH: $ ORACLE_HOME/network/jlib
Export CLASSPATH
 
8. log out of the root user, log on to the oracle user, and create a file named enterprisejy in the/home/oracle directory. rsp file. The specific content is as follows (see the db_install.rsp file under the/oracle/database/response directory.
 
[Oracle @ jyrac1 ~] $ Vi enterprisejy. rsp
# Do not change the following parameters
Racle. install. responseFileVersion =/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0
Oracle. install. option = INSTALL_DB_SWONLY
DECLINE_SECURITY_UPDATES = false
# The following parameters are modified based on actual conditions.
UNIX_GROUP_NAME = oinstall
INVENTORY_LOCATION =/u01/oraInventory
Selected_ages = en, zh_CN, zh_TW
ORACLE_HOME =/u01/app/oracle/11.2.0/db
ORACLE_BASE =/u01/app/oracle
Oracle. install. db. InstallEdition = EE
Oracle. install. db. isCustomInstall = true
Oracle. install. db. customComponents = oracle. rdbms. partitioning: 11.2.0.1.0, oracle. oraolap: 11.2.0.1.0, oracle. rdbms. lbac: 11.2.0.1.0, oracle. rdbms. dm: 11.2.0.1.0, oracle. rdbms. dv: 11.2.0.1.0, oracle. rdbms. rat: 11.2.0.1.0
Oracle. install. db. DBA_GROUP = dba
Oracle. install. db. OPER_GROUP = oinstall
~
~
~
~
~
"Enterprisejy. rsp" [New] 15L, 679C written

 
The parameter meanings are as follows:
-Silent indicates silent Installation Without any prompt
-Force allows installation to a non-empty directory
-Noconfig indicates that the configuration assistant netca is not run.
-ResponseFile indicates which response file to use and must use an absolute path.
Oracle. install. responseFileVersion: the version of the response file template. Do not change this parameter.
Oracle. install. option Installation option. In this example, only the oracle software is installed. Do not change this parameter.
Whether online security update is required for DECLINE_SECURITY_UPDATES. Set this parameter to false. Do not change this parameter.
ORACLE_HOSTNAME
UNIX_GROUP_NAME name of the group used by the oracle user to install software
INVENTORY_LOCATION oracle product list directory
SELECTED_LANGUAGES oracle operating language environment, generally including citation and simplified and Traditional Chinese
ORACLE_HOME Oracle Installation Directory
ORACLE_BASE basic oracle directory
Oracle. install. db. InstallEdition
Whether oracle. install. db. isCustomInstall is customized or not. The default options include Partitioning, OLAP, and RAT.
Oracle. install. db. customComponents custom installation component list: In addition to the above default, you can add Label Security and Database Vault
Oracle. install. db. DBA_GROUP name of the group used by oracle users to grant OSDBA Permissions
Oracle. install. db. OPER_GROUP the group name that oracle users use to grant OSOPER Permissions

9. Perform Silent Installation
Oracle @ jyrac1 database] $./runInstaller-silent-force-responseFile/home/oracle/enterprisejy. rsp
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 120 MB. Actual 9408 MB Passed
Checking swap space: must be greater than 150 MB. Actual 1929 MB Passed
Preparing to launch Oracle Universal Installer from/u01/tmp/OraInstall2014-04-08_03-35-12PM. Please wait...

 
Run the following two scripts under the root account:
/U01/oraInventory/orainstRoot. sh
/U01/oracle/root. sh

10. Silent configuration listening
Run netca in the response file to generate the sqlnet. ora and listener. ora files in the $ ORACLE_HOME/network/admin directory:
# Su-oracle
$ ORACLE_HOME/bin/netca/silent/responsefile/u01/database/netca. rsp
$ Ll $ ORACLE_HOME/network/admin/*. ora
$ Lsnrctl status

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.