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
- $ cd /home
- $ 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
- # groupadd oinstall
- # groupadd dba
- # useradd -g oinstall -G dba Oracle
- # passwd Oracle
Modify system kernel parameters
- # vi /etc/sysctl.conf
- kernel.shmall = 2097152
- kernel.shmmax = 2147483648
- kernel.shmmni = 4096
- kernel.sem = 250 32000 100 128
- fs.file-max = 65536
- net.ipv4.ip_local_port_range = 1024 65000
- net.core.rmem_default = 1048576
- net.core.rmem_max = 1048576
- net.core.wmem_default = 262144
- net.core.wmem_max = 262144
/Sbin/sysctl-p to make the parameter take effect)
Add shell restrictions for Oracle users to improve performance
- # Vi/etc/security/limits. conf
- Oracle soft nproc 2047
- Hard nproc 16384
- Oracle soft nofile 1024
- Oracle hard nofile 65536
- # Vi/etc/pam. d/login
- Session required/lib/security/pam_limits.so
- Session required pam_limits.so
- # Vi/etc/profile
- If [$ USER = "Oracle"]; then
- If [$ SHELL = "/bin/bash"]; then
- Ulimit-p 16384
- Ulimit-n 65536
- Else
- Ulimit-u 16384-n 65536
- Fi
- Fi
- # Vi/etc/selinux/config invalidates the Secure linux flag)
- SELINUX = disabled
Create the Oracle_BASE directory
- # mkdir -p /opt/Oracle
- # chown -R Oracle:oinstall /opt/Oracle
- # chmod -R 775 /opt/Oracle
Setting the. bash_profile file of an Oracle user
- # su - Oracle
- $ vi ~/.bash_profile
- umask 022
- export Oracle_BASE=/opt/Oracle
- export Oracle_HOME=/opt/Oracle/product/10.2.0/db_1
- export Oracle_SID=WENDING
- export PATH=$Oracle_HOME/bin:$PATH
- $ . ~/.bash_profile
3. Create an oraInst. loc File
- $ Su-
- # Vi/etc/oraInst. loc add or modify the following content, where/opt/Oracle is Oracle_BASE)
- Inventory_loc =/opt/Oracle/oraInventory
- Inst_group = oinstall
- # Chmod 664/etc/oraInst. loc
4. Create a response file. After decompression, the Oracle software's response directory contains various response file templates)
- # Su-Oracle
- $ Cd/home/database/response
- $ Cp enterprise. rsp enterprise_temp.rsp
- $ Vi required ise_temp.rsp the following parameters must be set)
- UNIX_GROUP_NAME = "oinstall"
- Oracle_HOME = "/opt/Oracle/product/10.2.0/db_1"
- Oracle_HOME_NAME = "OraDb10g_home1"
- S_nameForDBAGrp = "dba"
- S_nameForDBAGrp = "dba"
- N_configurationOption = 3
5. Running OUI-noconfig through the response file indicates that no configuration assistant is run and only software is installed)
- $ cd /home/database
- $ ./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:
- $ su -
- # /opt/Oracle/product/10.2.0/db_1/root.sh
- # exit
6. Run NetCA through the response File
- $ Cd/home/database/response
- $ Cp netca. rsp netca_temp.rsp
- $ Vi netca_temp.rsp if you want to modify the listening name or port here, you generally do not need to modify anything)
- $ 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.