How to install Oracle software

Source: Internet
Author: User

If you are not familiar with installing the Oracle software in silent mode, you can use the following articles to learn about its practical application and functions. The following is a detailed introduction of the article.

Sometimes it is inconvenient to log on to the Linux/Unix graphical interface to install the database, and the GUI installation makes it impossible for us to know what operations are actually performed, we can install and delete Oracle software in command mode instead of OUI), create and delete databases instead of dbca ).

Platform: RHEL4.5, Oracle10.2.0.1

1. Upload and decompress the Oracle software. If it is stored in the/home directory

 
 
  1. $ cd /home  
  2. $ unzip 10201_database_linux32.zip  

2. Set the required operating system information for installing Oracle software, such as group, user, system kernel parameters, directory, and user initialization parameters.

Add group and user

 
 
  1. # groupadd oinstall  
  2. # groupadd dba  
  3. # useradd -g oinstall -G dba Oracle  
  4. # passwd Oracle  

Modify system kernel parameters

 
 
  1. # vi /etc/sysctl.conf  
  2. kernel.shmall = 2097152 
  3. kernel.shmmax = 2147483648 
  4. kernel.shmmni = 4096 
  5. kernel.sem = 250 32000 100 128  
  6. fs.file-max = 65536 
  7. net.ipv4.ip_local_port_range = 1024 65000  
  8. net.core.rmem_default = 1048576 
  9. net.core.rmem_max = 1048576 
  10. net.core.wmem_default = 262144 
  11. net.core.wmem_max = 262144 

/Sbin/sysctl-p to make the parameter take effect)

Add shell restrictions for Oracle users to improve performance

 
 
  1. # Vi/etc/security/limits. conf
  2. Oracle soft nproc 2047
  3. Hard nproc 16384
  4. Oracle soft nofile 1024
  5. Oracle hard nofile 65536
  6. # Vi/etc/pam. d/login
  7. Session required/lib/security/pam_limits.so
  8. Session required pam_limits.so
  9. # Vi/etc/profile
  10. If [$ USER = "Oracle"]; then
  11. If [$ SHELL = "/bin/bash"]; then
  12. Ulimit-p 16384
  13. Ulimit-n 65536
  14. Else
  15. Ulimit-u 16384-n 65536
  16. Fi
  17. Fi
  18. # Vi/etc/selinux/config invalidates the Secure linux flag)
  19. SELINUX = disabled

Create the Oracle_BASE directory

 
 
  1. # mkdir -p /opt/Oracle  
  2. # chown -R Oracle:oinstall /opt/Oracle  
  3. # chmod -R 775 /opt/Oracle  

Setting the. bash_profile file of an Oracle user

 
 
  1. # su - Oracle  
  2. $ vi ~/.bash_profile  
  3. umask 022  
  4. export Oracle_BASE=/opt/Oracle  
  5. export Oracle_HOME=/opt/Oracle/product/10.2.0/db_1  
  6. export Oracle_SID=WENDING 
  7. export PATH=$Oracle_HOME/bin:$PATH  
  8. $ . ~/.bash_profile  

3. Create an oraInst. loc File

 
 
  1. $ Su-
  2. # Vi/etc/oraInst. loc add or modify the following content, where/opt/Oracle is Oracle_BASE)
  3. Inventory_loc =/opt/Oracle/oraInventory
  4. Inst_group = oinstall
  5. # Chmod 664/etc/oraInst. loc

4. Create a response file. After decompression, the Oracle software's response directory contains various response file templates)

 
 
  1. # Su-Oracle
  2. $ Cd/home/database/response
  3. $ Cp enterprise. rsp enterprise_temp.rsp
  4. $ Vi required ise_temp.rsp the following parameters must be set)
  5. UNIX_GROUP_NAME = "oinstall"
  6. Oracle_HOME = "/opt/Oracle/product/10.2.0/db_1"
  7. Oracle_HOME_NAME = "OraDb10g_home1"
  8. S_nameForDBAGrp = "dba"
  9. S_nameForDBAGrp = "dba"
  10. N_configurationOption = 3

5. Running OUI-noconfig through the response file indicates that no configuration assistant is run and only software is installed)

 
 
  1. $ cd /home/database  
  2. $ ./runInstaller -silent -noconfig -responseFile /home/database/response/enterprise_temp.rsp  

After the installation is complete, run root. sh under $ Oracle_HOME as the root user:

 
 
  1. $ su -  
  2. # /opt/Oracle/product/10.2.0/db_1/root.sh  
  3. # exit  

6. Run NetCA through the response File

 
 
  1. $ Cd/home/database/response
  2. $ Cp netca. rsp netca_temp.rsp
  3. $ Vi netca_temp.rsp if you want to modify the listening name or port here, you generally do not need to modify anything)
  4. $ Oracle_HOME/bin/netca/silent/responsefile
    /Home/database/response/netca_temp.rsp

After the listener is executed, the listener is started. The above content describes how to install the Oracle software in silent mode. I hope it will help you in this regard.

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.