Brief process of installing Oracle 11G in 64-bit Ubuntu:
1: Set the environment
Sudo apt-get install rpm libaio1 ksh libtool libstdc ++ 5 build-essential
2:Set directory structure and symbolic link
- Sudo ln-s/usr/bin/awk
- Sudo ln-s/usr/bin/rpm
- Sudo ln-s/usr/bin/basename
- Sudo mkdir/etc/rc. d
- Sudo ln-s/etc/rc0.d/etc/rc. d/rc0.d
- ......
- Sudo ln-s/etc/rc6.d/etc/rc. d/rc6.d
- It can also be:
- # For I in 0 1 2 3 4 5 6; do sudo ln-s/etc/rc $ I. d/etc/rc. d/rc $ I. d; done
If you do not connect to the following .. The file cannot be found... Error
- Sudo ln-s/usr/lib/x86_64-linux-gnu/libc_nonshared.a/usr/lib64/
- Sudo ln-s/usr/lib/x86_64-linux-gnu/libpthread_nonshared.a/usr/lib64/
- Sudo ln-s/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5/libgcc_s.so/lib64/libgcc_s.so.1
- Sudo ln-s/usr/lib/x86_64-linux-gnu/libstdc ++. so.6.0.14/lib64/libstdc ++. so.6
- Sudo ln-s/usr/lib/x86_64-linux-gnu/libstdc ++. so.6.0.14/usr/lib64/libstdc ++. so.6
3: Set System Parameters
Modify /Etc/sysctl. conf
- Fs. aio-max-nr=1048576
- Fs. file-max=6815744
- Kernel. shmall=2097152
- Kernel. shmmax=536870912
- Kernel. shmmni=4096
- Kernel. sem=25032000 100 128
- Net. ipv4.ip _ local_port_range=900065500
- Net. core. rmem_default=262144
- Net. core. rmem_max=4194304
- Net. core. wmem_default=262144
- Net. core. wmem_max=1048586
ModifyEtC/security/limits. conf
Modify "/etc/security/limits. conf" and add the following content. "jasmine" is the user name, which can be adjusted according to the actual situation.
- Jasmine soft nproc2047
- Jasmine hard nproc16384
- Jasmine soft nofile1024
- Jasmine hard nofile65536
Modify"/Etc/pam. d/login", Add the following content:
- Session required/lib/security/pam_limits.so
- Session required pam_limits.so
Then run the following command:
Sudo sysctl-p
Next, set the necessary environment variables, modify the ". profile" file in the user directory, and add the following content:
- Export ORACLE_BASE ="/Home/oracle_11g"
- Export ORACLE_HOME ="/Home/oracle_11g/server"
- Export ORACLE_SID ="Orcl"
- Export ORACLE_OWNER ="Orcl"
- Export NLS_LANG ="Simplified chinese_china.al32utf8"
Now the system parameters and environment variables are set.
5: Install cd to the decompressed directory of oracle
./RunInstaller-jreloc/usr/lib/jvm/java_1.6.0_openjdk/jre
Jreloc specifies the jre instead of the built-in jdk.
Otherwise, garbled characters will appear.
So far OK.