Linux (Redhat 6.5) command line (silent) install Oracle 11gR2

Source: Internet
Author: User

1.modifying operating system core parameters

Under root user, perform the following steps:

1.1Modify the user'sSHELLThe Restrictions

Modify The/etc/security/limits.conf file

input command:vi/etc/security/limits.conf, press i to enter edit mode, add the following content to the file.

Oracle Soft Nproc 2047163841024x76865536
1.2Modify/etc/pam.d/loginfile

input command:vi/etc/pam.d/login, press i to enter edit mode, add the following content to the file.

session required /lib/security/pam_limits.so session required pam_limits.so1.3ModifyLinuxKernel

modify /etc/sysctl.conf file, enter command i Enter edit mode and add the following to the file

Fs.file-max = 6815744 fs.aio-max-nr = 1048576= 2097152= 2147483648= 4096= 32000= 9000 65500 = 4194304= 4194304= 262144= 1048576
PS: To make the/etc/sysctl.conf change take effect immediately, execute the following command. Input:
Sysctl-p
Can make the information of the Linux kernel immediately effective 1.4Edit/etc/profile
if $USER " Oracle "  ]; Then     if$SHELL"/bin/ksh"  ]; Then         -P         16384-n 65536     else             -u 16384-n 65536      Fi fi            
1.5create related users and Groups
-G oinstall-g Dba-m Oracle

Change Password:passwdoracle
然后会让你输入密码,密码任意输入2次,但必须保持一致,回车确认;
1.6 Creating a database software directory and data file storage directory
//Create the installation directory#mkdir-p/home/app/oracle/product/11.2.0/dbhome_1//data File storage directory#mkdir-p/home/app/oracle/oradata//Data Recovery Catalog#mkdir-p/home/app/oracle/recovery_area//log directory during database creation and use#mkdir-p/home/app/oracle/orainventory//Modify installation directory permissions#chown-r oracle:oinstall/home/app/oracle    #chmod 775/home/app/oracle//Log in to Oracle user, set environment variables#su-oracle    $vim. bash_profile
Paste the following contents into the . Bash_profile #===============================================#
Export Oracle_base=/home/app/Oracle Export Oracle_home=$ORACLE _base/product/11.2.0/dbhome_1 Export PATH=$PATH:$ORACLE _home/Bin Export CLASSPATH=$ORACLE _home/JRE:$ORACLE _home/jlib:$ORACLE _home/rdbms/Jlib Export Ld_library_path=$ORACLE _home/lib:/lib64:/usr/lib64:/usr/local/lib64 Export Oracle_sid=Wetalk #根据具体的填写#If you set Nls_lang, it is easy to generate an import SQL or DMP error, because other environments are not UTF8 export Nls_lang=American_america. Al32utf8

#===============================================#
$source . Bash_profile//Make settings effective
1.7 Downloads ORACLE11GR2

Official website: http://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-linx8664soft-100572.html

2, Installation oracle11g

2.1 Unpacking the installation package

Unzip Linux.x64_11gR2_database_1of2.zipunzip Linux.x64_11gR2_database_2of2.zip

2.2 Database Installation

The three configuration files that are silently installed are in the corresponding response directory:

DB_INSTALL.RSP Installation Answer profile

DBCA.RSP Creating a Database answer

NETCA.RSP setting up the listening, local service name and other network setup responses

2.2.1 Modify the configuration file Db_install.rsp and install

(1) Vim DB_INSTALL.RSP The main need to modify the place as shown below, specific detailed documents can refer to another article ""

oracle.install.option=Install_db_swonlyoracle_hostname=Db_m2unix_group_name=oinstallinventory_location=/home/app/oracle/orainventoryselected_languages=En,zh_cnoracle_home=/home/app/oracle/product/11.2.0/Db_1oracle_base=/home/app/oracleoracle.install.db.InstallEdition=EEoracle.install.db.DBA_GROUP=Dbaoracle.install.db.OPER_GROUP=Oinstalloracle.install.db.config.starterdb.characterSet=AL32UTF8oracle.install.db.config.starterdb.storageType=FILE_SYSTEM_STORAGEoracle.install.db.config.starterdb.fileSystemStorage.dataLocation=/home/app/oracle/oradataoracle.install.db.config.starterdb.fileSystemStorage.recoveryLocation=/home/app/oracle/recovery_datadecline_security_updates=trueBe sure to set to True

(2) Log in to the Oracle user and perform the installation

./runinstaller  -responsefile/home/cctv/software/database/response/db_install.rsp   -ignorePrereq  - Silent
During the installation, if [WARNING] is not heeded, the installer is still in progress, and if [FATAL] is present, the Setup program has stopped.
Open another terminal, execute the command
# Tailf/home/app/oracle/orainventory/logs/installactions......log
//You can track the installation logs in real time to see the progress of the installation. //when the following words appear, you can follow the instructions in the other window as root: The following configuration scripts need to be"Root"the user's identity is executed. #!/bin/sh   #the Root script to run/home/app/oracle/orainventory/orainstroot.sh/home/app/oracle/product/11.2.0/dbhome_1/root.sh to execute the configuration script, do the following:1. Open a terminal window2. In"Root"Identity Login3. Run the script4. Return to this window and press"Enter"key to continue successfully Setup software.

(3) Configuring the Monitoring profile RESPONSE/NETCA.RSP

 [email protected] database]$ netca/silent/responsefile/home/database/response/ NETCA.RSP parsing command-line arguments: Parameter   " silent   " = true   parameter   " responsefile   " =/home/database/response/NETCA.RSP completes parsing the command-line arguments. Oracle Net Services Configuration: Complete profile configuration. Oracle Net Listener Startup: Running monitoring program: /opt/app/oracle/product/11.2.0/db_1/bin/lsnrct    L Start LISTENER Monitoring program is complete. The listener has successfully started. The listener configuration is complete. The Oracle Net Services configuration was successfully completed.    The exit code is 0PS: The path must be written in absolute path, or it will always be an error. The profile cannot be found. The Oracle Net configuration Assistant cannot find a response file at a given location. Oracle Net Services configuration failed. The exit code is 1 
after running successfully, generate the Sqlnet.ora and Listener.ora two files in the/opt/oracle/11.2.0/network/admin directory. // after completion through the command "NETSTAT-TLNP |grep 1521" can be viewed to 1521 ports open TCP  0   0:   :: 5477/tnslsnr 

(4) Modify the configuration file Response/dbca.rsp, create a new library silently

Responsefile_version ="11.2.0"//Cannot change Operation_type="CreateDatabase"Gdbname="orcl11gabc.us.oracle.com"Name of the global database =sid+Host Domain SID="ORCL11GABC"//the corresponding instance name templatename="General_purpose.dbc"//template files for building libraries Datafiledestination=/home/oracle/oradata//data File storage directory Recoveryareadestination=/home/oracle/recovery_data//Recover Data storage directory CHARACTERSET="Al32utf8"Character sets, Important!!!After you build the library, you can't change it, so make sure it's clear before you build it. TotalMemory="5120"Oracle Memory 5120MB

After the configuration is complete, execute the command to start silently installing the new database

$DBCA -SILENT-RESPONSEFILE/HOME/DATABASE/RESPONSE/DBCA.RSP

1% completed
3% completed
11% completed
18% completed
26% completed
37% completed
Creating and Starting Oracle instance
40% completed
45% completed
50% completed
55% completed
56% completed
60% completed
62% completed
Database creation in progress

66% completed
70% completed
73% completed
85% completed
96% completed
100% completed
For more information, see log File "/home/app/oracle/cfgtoollogs/dbca/wang/wang.log".

PS: Note the TAILF log to observe the progress of the installation in real time

Reference blog:

Http://blog.chinaunix.net/uid-23886490-id-3565998.html

Http://www.cnblogs.com/yingsong/p/6031235.html

Http://www.jb51.net/article/53769.htm

http://blog.csdn.net/ziele_008/article/details/51910671

Https://wenku.baidu.com/view/974926d98762caaedc33d424.html

Linux (Redhat 6.5) command line (silent) install Oracle 11gR2

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.