I installed Oracle 11g on SUSE Enterprise Linux 11 Enterprise Edition. This is already very rare.
I remember that 10 years ago, if you could install Oracle on Linux, it would be awesome. Now it is much simpler to install Oracle in linux than before, and the documentation is also very complete.
Record the entire process. If someone makes a script, that would be awesome.
Software Used
Vmware workstation 7.1
SuSE enterprise 11 sp1 DVD
Oracle 11gR2
Linux_11gR2_database_1of2.zip
Linux_11gr2_databasesilicate f2.zip
1: Install SuSE 11 sp1
I installed it in vmware workstation, 40 Gb hard disk, 2 GB memory, and the whole process of installation, basically use the default, the installation process is basically not adjustable.
To reduce the trouble, I installed it in English, so as to avoid problems encountered by the author. In addition, it is much easier to open the ssh port.
2: Install necessary software
After it is started, enter the graphic interface and install several software packages. The installation process may fail. Go to the command line,
Zypper install binutils-2.19 gcc-4.3 gcc-c ++-4.3 glibc-2.9 glibc-devel-2.9 ksh-93t libaio-0.3.104 libstdc ++ 33-3.3.3 libstdc ++ 43-4.3.3_20081022 libstdc ++ 43-devel-4.3.3_20081022 libaio-devel-0.3.104 libgcc43-4.3.3_20081022 devel-4.3 sysstat-8.1.5 unixODBC-32bit-2.2.12 unixODBC-devel-32bit-2.2.12
3: Perform basic settings
/Etc/sysctl. confAdd the following content
Fs. aio-max-nr = 1048576
Fs. file-max = 6815744
Kernel. shmall = 2097152
Kernel. shmmax = 536870912
Kernel. shmmni = 4096
Kernel. sem = 250 32000 100 128
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 = 1048586
Net. ipv4.tcp _ wmem = 262144 262144 262144
Net. ipv4.tcp _ rmem = 4194304 4194304 4194304
#/Sbin/chkconfig boot. sysctl onLetSuseLoad at startup/Etc/sysctl. conf
#/Sbin/sysctl-pMake the modified parameters take effect immediately
CreateOracleUsers and groups and installation Directories
# Groupadd oinstall(Create a user groupOinstall)
#Groupadd dba(Create a user groupDba)
#Useradd-g oinstall-G dba-MOracle(The first question is here.-m must be added.)
#Passwd oracle (Set Password)
#Mkdir-p/fantlam/oracle
#Chown-R oracle: oinstall/fantlam(Change directory group)
#Su-oracle
Oracle @ linuxsight:/home/oracle> vi. profile add
ORACLE_BASE =/fantlam
ORACLE_HOME = $ ORACLE_BASE/oracle
ORACLE_SID = fantlam
PATH = $ ORACLE_HOME/bin: $ PATH
Export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH
Oracle @ linuxsight:/home/oracle>Exit(Log out and make the settings take effect)
#Su-oracle
Oracle @ linuxsight:/home/oracle>Env | grep ORA
ORACLE_SID = fantlam
ORACLE_BASE =/fantlam
ORACLE_HOME =/fantlam/oracle