I just re-installed the system yesterday, so I had a whim to install Oracle to see if I could install Oracle on other Linux. I. When installing the system, I should give the software development item
I just re-installed the system yesterday, so I had a whim to install Oracle to see if I could install Oracle on other Linux. I. When installing the system, I should give the software development item
I just re-installed the system yesterday, so I was wondering if I could install Oracle.
Oracle has been installed on other Linux systems.
1. Select software development when installing the system, because tools such as gcc are required for installing Oracle. Remember to select it.
2. Preparations for installing Oracle
First, ensure that the/tmp directory has a space greater than MB, and the memory should be greater than 2 GB (I have to machine 1 GB, and can also install ). The disk space must be large enough. You can run the command to view the df-
1. Add users and groups
Groupadd oinstall
Groupadd dba
Useradd-g oinstall-G dba Oracle
Passwd Oracle
2. Create an installation directory
Mkdir-p/u01/ppt/Oracle
Chown-R Oracle. oinstall/u01
3. Modify the. bash_profile of an Oracle user
Export PATH
Unset USERNAME
Export Oracle_BASE =/0u1/app/Oracle
Export Oracle_HOME = $ Oracle_BASE/product/10.2.0/db_1
Export Oracle_SID = ora10g
Export PATH = $ PATH: $ HOME/BIN: $ Oracle_HOME/bin
4. Adjust the Kernel Parameter/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 = 262144
Net. core. rmem_max = 262144
Net. core. wmem_default = 262144
Net. core. wmem_max = 262144
Sysctl-p to make the parameter take effect
5. edit/etc/security/limits. conf.
Oracle soft nproc 65536
Hard nproc 65536
Oracle soft nofile 65536
Oracle soft nofile 65536
Nofile: Maximum number of files that an operating system user can open simultaneously
Nproc: Number of processes that a single user can open at the same time
6. edit/etc/pam. d/login.
Add the following in the last line:
Session required pam_limits.so
7. If no RedHat-release exists in/etc, create RedHat-release (mainly used to fool Oracle)
Vim/etc/redhat-release
Redhat-4
All the preliminary work is ready. You can log on to X with an Oracle user to install it.
Open a terminal and run cd in the Oracle software directory./runInstaller.
The installation of other images is simple, so you don't need to write it.
,