Prerequisite: When installing CentOS, it is best to install all the installation packages of the system. The following commands need to be entered manually, not copied and pasted.
1. Log in to centos5.5 's operating system as root and create Oracle user groups and users.
Groupadd Oinstall
Useradd–g oinstall–s/bin/bash–d/opt/oracle Oracle
passwd Oracle
2. Log in to the system as root, modify the system kernel parameters, and add the following:
Vi/etc/sysctl.conf
Fs.file-max = 6815744
FS.AIO-MAX-NR = 1048576
Kernel.shmall = 2097152
Kernel.shmmax = 2147483648
Kernel.shmmni = 4096
Kernel.sem = 250 32000 100 128
Net.ipv4.ip_local_port_range = 9000 65500
Net.core.rmem_default = 4194304
Net.core.rmem_max = 4194304
Net.core.wmem_default = 262144
Net.core.wmem_max = 1048576
3. To make the/etc/sysctl.conf change effective immediately, execute the following command. Input: Sysctl-p
4. Edit/etc/security/limits.conf and add the following:
Vi/etc/security/limits.conf
Oracle Soft Nproc 2047
Oracle Hard Nproc 16384
Oracle Soft Nofile 1024
Oracle Hard Nofile 65536
5. Edit/etc/pam.d/login and add the following:
Vi/etc/pam.d/login
Session Required Pam_limits.so
6. Edit the system environment configuration file/etc/profile, and add the following at the end:
if [$USER = " oracle ]; then if [$SHELL = " " ]; then Ulimit -p 16384 Ulimit -n 65536 else Ulimit -u 16384 -N 65536 fi fi
After editing is complete, execute the source profile to make it effective.
7. Edit the/etc/csh.login and add the following at the end:
if " Oracle " Then 1638465536 endif
8. With Orcale user login system, edit/opt/oracle/.bash_profile, at last add the following content, use Source/opt/oracle/.bash_profile to make it effective.
022 Export Oracle_base=/opt/Oracle export oracle_home= $ORACLE _home/app/product/11.2. 0Export oracle_sid=ORCL export PATH
Note: The Oracle_sid value here is the SID of the database that needs to be used.
9. With the Oracle user login system, the package of oracle11g client is uploaded to the/opt directory, and the file permissions of the unpacked package are modified.
Unzip linux_11gr2_client. Zip chmod 755 Client
10. Enter the installation directory and execute the./runinstall;
CD Client
./Runinstall
Start the graphical interface and click Next.
11. Language default 中文版, next step;
12. Select "Administrator (1.38GB)" Installation type, click Next;
13. Set the Oracle base directory and Oracle home directory and click Next.
14. The installer automatically reads the directories and user groups set up in the Oracle user environment variable;
Select Directory/opt/oracle/orainventory directory, user group defaults to Oinstall, click Next
15. Verify that the installation of Oracle installation environment found that the kernel is missing some parameters, the system is missing some installation packages, if missing, please install.
16. After the installation is complete, check again if there is a failure, if not, perform the next step;
17. The system starts to install, in the end, the system will first prompt you to execute 2 shell scripts with root privileges:
Open the terminal, switch to the root user, execute two scripts according to the path, as follows:
#/opt/oracle/orainventory/orainstroot.sh
Changing permissions of/opt/oracle/orainventory to 770.
changing groupname of/opt/oracle/orainventory to DBA.
The execution of the script is complete
#/opt/oracle/oracle/product/11.1.0/root.sh
Running Oracle 11g root.sh script ...
The following environment variables is set as:
Oracle_owner=oracle
oracle_home=/opt/oracle/oracle/product/11.1.0
Enter the full pathname of the local bin directory: [/usr/local/bin]: [Enter directly]
Copying dbhome To/usr/local/bin ...
Copying oraenv To/usr/local/bin ...
Copying coraenv To/usr/local/bin ...
Creating/etc/oratab file ...
Entries'll be added to The/etc/oratab file as needed by Database Configuration Assistant when a Database is created Fin Ished running generic part of root.sh script. Now product-specific root actions would be performed.
18. Click Finsh to complete the installation.
19. Reopen a new terminal and use the NETCA command to configure the listener and the local net service.
20. After the local net service configuration is complete, the test is successful with the Sqlplus connection.
2015-01-20 13:11:28
ORACLE11G Client for CentOS 5.5 installation documentation