Recently the company used Oracle, installed in the UBUNTU64 bit, encountered some problems, on the Internet to find some answers, here as notes recorded.
1. First download Oracle and unzip no more.
2. Installing dependent Packages
sudo apt-get install alien binutils build-essential cpp-4.4 debhelper g++-4.4 gawk gcc-4.4 gcc-4.4-base gettext html2text Ia32-libs Intltool-debian ksh lesstif2 lib32bz2-dev lib32z1-dev libaio-dev libaio1 libbeecrypt7 libc6 libc6-dev Libc6-dev -i386 libdb4.8 libelf-dev libelf1 libltdl-dev libltdl7 libmotif4 libodbcinstq4-1 libodbcinstq4-1:i386 libqt4-core Libqt4-gui libsqlite3-0 libstdc++5 libstdc++6 libstdc++6-4.4-dev lsb lsb-core lsb-cxx lsb-desktop lsb-graphics lsb-qt4 ma KE odbcinst pax po-debconf rpm Rpm-common sysstat unixodbc Unixodbc-dev Unzip
3. Create user (I use my own user, slightly)
4. Configure the system kernel and other parameters
Add the corresponding data in the/etc/sysctl.conf
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
Run the command to update the kernel parameters
Sysctl-p
Modifying the kernel Limits of Oracle
Add the following data to the/etc/security/limits.conf file (Oracle is the user name you are in and should make the appropriate changes)
Oracle Soft Nproc 2047
Oracle Hard Nproc 16384
Oracle Soft Nofile 1024
Oracle Hard Nofile 65536
Oracle Soft Stack 10240
5. Add Environment variables
Export oracle_base= "/home/lenovo/oracle"
Export oracle_home= "$ORACLE _base/server"
Export oracle_sid= "ORCL"
Export ORACLE_UNQNAME=ORCL
Export oracle_owner= "Lenovo"
Export nls_lang=. Al32utf8
Export path= $PATH: $ORACLE _home/bin
6. Add soft links to some libraries
Mkdir/usr/lib64
Ln-s/ETC/ETC/RC.D
Ln-s/lib/x86_64-linux-gnu/libgcc_s.so.1/lib64/
Ln-s/usr/bin/awk/bin/awk
Ln-s/usr/bin/basename/bin/basename
Ln-s/usr/bin/rpm/bin/rpm
Ln-s/usr/lib/x86_64-linux-gnu/libc_nonshared.a/usr/lib64/
Ln-s/usr/lib/x86_64-linux-gnu/libpthread_nonshared.a/usr/lib64/
Ln-s/usr/lib/x86_64-linux-gnu/libstdc++.so.6/lib64/
Ln-s/usr/lib/x86_64-linux-gnu/libstdc++.so.6/usr/lib64/
Echo ' Red Hat Linux release 5′>/etc/redhat-release
7. Start the installation
Run the./runinstaller in the installation directory, follow the prompts step-by-step installation:
The first step of the mail can be unchecked, skip directly,
The second step selects the installation database and creates the instance.
The eighth step is to select ignore directly.
Precautions:
1. The operating system swap partition is large enough, or it will fail to install
2. Installation Phase Select the user class, all with the current user, unified.
3. Installation to 69% may be prompted to fail, do not close, reopen a terminal, run as follows:
Sed-i ' S/^\ (\s*\$ (mk_emagent_nmectl) \) \s*$/\1-lnnz11/g ' $ORACLE _home/sysman/lib/ins_emagent.mk
Sed-i ' s/^\ (\ $LD \ $LD _runtime\) \ (\ $LD _opt\)/\1-wl,–no-as-needed \2/g ' $ORACLE _home/bin/genorasdksh
Sed-i ' s/^\ (\s*\) \ (\$ (Ocrlibs_default) \)/\1-wl,–no-as-needed \2/g ' $ORACLE _home/srvm/lib/ins_srvm.mk
Sed-i ' S/^\ (tnslsnr_linkline.*\$ (tnslsnr_ofiles) \) \ (\$ (linkttlibs) \)/\1-wl,–no-as-needed \2/g ' $ORACLE _home/ Network/lib/env_network.mk
Sed-i ' S/^\ (oracle_linkline.*\$ (oracle_linker) \) \ (\$ (pl_flags) \)/\1-wl,–no-as-needed \2/g ' $ORACLE _home/rdbms/lib /env_rdbms.mk
4. Do not forget to execute two scripts in the final step.