Under root user, perform the following steps:
1) Modify the user's shell limit, 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 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
Press ESC when editing is complete and enter ": Wq" to eject
2) Modify the/etc/pam.d/login file, enter the command: Vi/etc/pam.d/login, press the I key to enter the editing mode, the following content to join the file.
session required /lib/security/pam_limits.so
session required pam_limits.so
Press ESC when editing is complete and enter ": Wq" to eject
3) Modify the Linux kernel, modify the/etc/sysctl.conf file, enter the command: vi/etc/sysctl.conf, press the I key to enter the editing mode, add the following content to the file
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
Press ESC when editing is complete and enter ": Wq" to eject
4) to make the/etc/sysctl.conf change take effect immediately, execute the following command. Input: Sysctl-p display as follows:
linux:~ # sysctl -p
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.conf.all.rp_filter = 1
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
5) Edit/etc/profile, enter the command: Vi/etc/profile, press the I key to enter the editing mode, the following content to join the file.
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
Press ESC when editing is complete and enter ": Wq" to eject
6) Create the relevant users and groups as the owner of the software installation and Support group.
To create an Oracle user and password, enter the command:
useradd
-g oinstall -g dba -m oracle
passwd
oracle
Then will let you enter the password, the password any input 2 times, but must be consistent, enter the confirmation.
7) Create database software directory and data file directory, directory location, according to their own situation, pay attention to disk space, here I put it under the Oracle user, for example:
Enter the command:
mkdir
/home/oracle/app
mkdir
/home/oracle/app/oracle
mkdir
/home/oracle/app/oradata
mkdir
/home/oracle/app/oracle/product
8) Change Directory owner is owned by Oracle user, enter command:
chown
-R oracle:oinstall
/home/oracle/app
9) Configure the environment variables for the Oracle user, first, switch to the newly created Oracle user,
Input: Su–oracle, and then directly in the input: Vi. bash_profile
Press I to edit. Bash_profile, enter edit mode to add the following:
export ORACLE_BASE=/usr/oracle/app
export ORACLE_HOME=$ORACLE_BASE/oracle/product/11.2.0/dbhome_1
export ORACLE_SID=orcl
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib
Press ESC when editing is complete and enter ": Wq" to eject
Second, the installation process
1) When the above system requires that the operation is complete, log off the system and log in with the Oracle user on the graphical interface. First copy the downloaded Oracle installation package to Linux and copy it with other SSH FTP tools.
Open a terminal and run the unzip command to extract the Oracle installation files, such as:
Enter the command:
unzip linux.x64_11gR2_database_1of2.zip
unzip linux.x64_11gR2_database_2of2.zip
After the decompression is complete, the CD enters its extracted directory.
Enter the command:
CD Database
Use the LS command to view the files contained in the extracted database, such as:
2) Perform the installation, enter the command:./runinstaller
In this step, you can see that there are a lot of RPM packages available, we can find the missing packages from the Linux CD or ISO (or go to D:\linux_oracle11g_Package), use FTP to upload to Linux, and then use RPM–IVH xxx.rpm--nodeps–force to install (with the addition of--nodeps-Force on behalf of the mandatory installation, is in direct use RPM–IVH XXX.RPM installation is unsuccessful) wait until the package is all installed, again in the Oracle graphical interface, perform the installation process 2, down in the environmental inspection process, passed.
During the installation process 86% may encounter errors such as error (Error in invoking target ' mkldflags ntcontab.o nnfgt.o ' of makefile) executed in the following sequence of steps.
Upload the installation image Rhel-server-6.1-x86_64-dvd.iso,
Then hang the image file, such as/mnt
?
| 1234567891011121314151617181920212223242526272829 |
# mount -o loop rhel-server-6.1-x86_64-dvd.iso /mnt# cd /mnt/Packages# rpm -ivh glibc-common-2.12-1.25.el6.x86_64.rpm# rpm -ivh kernel-headers-2.6.32-131.0.15.el6.x86_64.rpm# rpm -ivh libgcc-4.4.5-6.el6.x86_64.rpm# rpm -ivh glibc-2.12-1.25.el6.x86_64.rpm# rpm -ivh libgomp-4.4.5-6.el6.x86_64.rpm # rpm -ivh nscd-2.12-1.25.el6.x86_64.rpm# rpm -ivh glibc-headers-2.12-1.25.el6.x86_64.rpm# rpm -ivh glibc-devel-2.12-1.25.el6.x86_64.rpm# rpm -ivh mpfr-2.4.1-6.el6.x86_64.rpm# rpm -ivh ppl-0.10.2-11.el6.x86_64.rpm# rpm -ivh cloog-ppl-0.15.7-1.2.el6.x86_64.rpm# rpm -ivh cpp-4.4.5-6.el6.x86_64.rpm# rpm -ivh gcc-4.4.5-6.el6.x86_64.rpm |
Note: The above is the installation of GCC, the software installation sequence can not be wrong.
?
| 1234567 |
******************************************# rpm -ivh libstdc++-4.4.5-6.el6.x86_64.rpm # rpm -ivh libstdc++-devel-4.4.5-6.el6.x86_64.rpm# rpm -ivh gcc-c++-4.4.5-6.el6.x86_64.rpm |
Note: The above is the installation gcc-c++
The error was resolved according to this method.
After the installation is complete, you will be prompted to execute 2 shell scripts with root privileges. Follow the path to its prompt to find its location, such as: Mine is/home/oracle/app/oracle/product/11.2.0/dbhome_1/root.sh.
And/home/oracle/orainventory/orainstroot.sh a new terminal, enter the command:
?
| 123456789 |
su– root cd /home/oracle/app/oracle/product/11.2.0/dbhome_1 sh root.sh cd /home/oracle/oraInventorysh orainstRoot.sh |
Third, database Building library
Linux Installation Oracle