Self-created:
Step 1 Modify the host name
[Email protected] ~]# sed-i "s/hostname=localhost.localdomain/hostname=oracledb/"/etc/sysconfig/network
[Email protected] ~]# hostname oracledb
Step 2 Add host name and IP corresponding record
[Email protected] ~]# vi/etc/hosts
192.168.204.128 OracleDB
Installation:
Step One: Check if the RPM packages required to install Oracle are present
Check that the RPM Package command required to install Oracle is: RPM-Q the specified RPM package.
The RPM packages you need to check are as follows:
- Binutils-2.17.50.0.6
- Compat-libstdc++-33-3.2.3
- Elfutils-libelf-0.125
- Elfutils-libelf-devel-0.125
- Elfutils-libelf-devel-static-0.125
- GCC-4.1.2
- gcc-c++-4.1.2
- glibc-2.5-24
- glibc-common-2.5
- glibc-devel-2.5
- glibc-headers-2.5
- Kernel-headers-2.6.18
- Ksh-20060214
- Libaio-0.3.106
- Libaio-devel-0.3.106
- LIBGCC-4.1.2
- Libgomp-4.1.2
- LIBSTDC++-4.1.2
- LIBSTDC++-devel-4.1.2
- Make-3.81
- pdksh-5.2.14-1.i386.rpm
- Sysstat-7.0.2
- unixodbc-2.2.14-12.el6_3.i686.rpm
- unixodbc-devel-2.2.14-12.el6_3.i686.rpm
If the above RPM packages are not installed, please find these packages in the ISO file of CentOS5.5 and upload them to the Linux system.
Step Two: Configure the Oinstall Group
Configure the Oinstall group with the following command:
- /user/sbin/groupadd oinstall
- /user/sbin/Groupadd dba
- /user/sbin/groupadd oper
Step four: Create a user Oracle and authorize
Create the user Oracle and authorize the command as follows:
Useradd -G oinstall -G DBA, oper Oracle
Step five: Set the password for the Oracle user
Set the password for the Oracle user, with the following command:
- passwd Oracle
Step six: Determine that the nobody user does not exist
To determine that the nobody user does not exist, the command is as follows:
- ID Nobody
Step Seven: Edit the sysctl.conf file
Edit the sysctl.conf file with the following command:
- VI /etc/sysctl. conf
Add the following content:
- Kernel. sem = 32000
- 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 = 1048576
Step eight: Make kernel parameters effective immediately
- Sysctl- P
Step nine: Edit the limits.conf file
Use VI to edit the limits.conf file with the following command:
- VI/etc/security/limits. conf
Add the following content:
- Oracle Soft Nproc 2047
- Oracle Hard Nproc 16384
- Oracle Soft nofile 1024x768
- Oracle Hard Nofile 65536
Step Ten: Edit the Login file
To edit the login file using VI, the command is as follows:
- VI /etc/pam. D/login
Add the following options:
- Session required Pam_limits. so
Step 11: Create a folder to install Oracle
Create the folder where Oracle is installed, with the following command:
- mkdir -p /opt/db/oracle
Step 12: Change Permissions
To change permissions, the command is as follows:
- Chown- R Oracle:oinstall /opt/db/oracle
- chmod- R 775 /opt/db/oracle
Step 13: Edit Profile
- [Email protected] ~]# vi /etc/profile
- If [$USER = "Oracle"]; Then
- If [$SHELL = "/bin/ksh"]; Then
- Ulimit- P 16384
- Ulimit- P 65536
- Else
- Ulimit- u 16384- n 65536
- Fi
- Umask 022
- Fi
Step 14: Edit the. bash_profile file
- PATH= $PATH:$HOME/bin; Export PATH
- Oracle_base=/opt/oracle; Export oracle_base
- Oracle_home= $ORACLE _base/db01; export oracle_home
- Oracle_sid=testdb; Export Oracle_sid
- PATH=$ORACLE _home/bin: $PATH:$HOME/bin; Export PATH
- DISPLAY=192.168.1.88:0.0; Export DISPLAY
Run: source. Bash_profile #立即生效
Step 15: Upload Oracle to/OPT directory
Log in as root or assign/OPT permissions to Oracle:
- Chown- R Oracle:oinstall /opt/db/oracle
Step 16: Check the upload status
To view the upload situation, the command is as follows:
- CD /opt
- Ls
Step 17: Unzip the uploaded Oracle installation package
After uploading, use the unzip command to extract the Oracle installation package (if you do not assign/OPT permissions to Oracle then it will not be able to extract), unzip the command as follows:
- Unzip linux_11gr2_database_1of2. zip
- Unzip linux_11gr2_database_2of2. zip
- Run the script./Runinstaller
After the installation is complete, you will be prompted to execute the following two scripts
Log in with the root user and execute the script in the following two directories
Script path
/opt/oracle/orainventory/orainstroot.sh
/opt/oracle/app/product/11.2.0/dbhome_1/root.sh
Verify
After installation, verify, use system user login, query v$tablespace Name field.
DIY CentOS-6.5 installation oracle11g R2