Recently, I became the loyal fans of linus, And the linux lady was handsome. I found the feeling of Character Control. Installing linux in Oracle was a tough task, it took two days for free time. Share with you.
First of all, it is a Linux package. The gcc package and java package must be installed. Otherwise, an error will be reported !!!
1. Check the size of RAM and swap space:
Grep MemTotal/proc/meminfo
Grep SwapTotal/proc/meminfo
2. Create an Oracle group and User Account
Groupadd oinstall
Groupadd dba
Useradd-m-u 500 (others can also be)-g oinstall-G dba oracle
Id oracle
3. Modify the password of an oracle account
Passwd oracle
4. Create a directory
Mkdir-p/u01/app/oracle
Mkdir-p/archive
Chown-R oracle: oinstall/u01/archive
Chmod-R 775/u01/archive
5. modify oracle Software Directory Permissions
Mkdir-P/soft/oracle
Copy the oracle Installation File to the/soft/oracle directory, and then run the following command:
Chown-R oracle: oinstall/soft/oracle
6. Configure Linux kernel parameters (2147483648 is 2 GB)
Edit the/etc/sysctl. conf file and add the following content:
Kernel. shmall = 2097152
Kernel. shmmax = 8589934592
Kernel. shmmni = 4096
Kernel. sem = 25032000100128
Fs. file-max = 65535
Net. ipv4.ip _ local_port_range = 102465000
Net. core. rmem_default = 262144
Net. core. wmem_default = 262144
Net. core. rmem_max = 262144
Net. core. wmem_max = 262144
Run/sbin/sysctl-p to check parameters
7. To improve shell restrictions for oracle users
Edit the/etc/security/limits. conf file and add the following content:
Oracle soft nproc 2047
Hard nproc 16384
Oracle soft nofile 1024
Oracle hard nofile 65536
Edit the/etc/profile file with the following content:
If [$ USER = "oracle"]; then
If [$ SHELL = "/bin/ksh"]; then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Fi
8. Configure oracle user environment variables (Log On As an oracle user)
Run su-oracle
Edit the/home/oracle/. bash_profile file with the following content:
Export ORACLE_BASE =/u01/app/oracle
Export ORACLE_HOME = $ ORACLE_BASE/10.2.0/db_1
Export ORACLE_SID = orcl
Export PATH = $ ORACLE_HOME/bin: $ PATH
9. Install oracle
After the configuration is complete, restart the server, log on to the oracle user, open the terminal, enter the/soft/oracle/database directory, and run./runInstaller.
You should be familiar with the graphical installation.
So far, all over, hey, I hope it will help you. I love you.