Ubuntu 14.04 (32-bit) installs Oracle 11g (32-bit) entire process

Source: Internet
Author: User


1. Update the system to the latest:
sudo apt-get update
sudo apt-get dist-upgrade
2. Install the dependent packages required by Oracle:
sudo apt-get install Automake
sudo apt-get install Autotools-dev
sudo apt-get install binutils
sudo apt-get install bzip2
sudo apt-get install elfutils
sudo apt-get install expat
sudo apt-get install gawk
sudo apt-get install gcc
sudo apt-get install Gcc-multilib
sudo apt-get install G++-multilib
sudo apt-get install Ia32-libs
sudo apt-get install Ksh
sudo apt-get install less
sudo apt-get install Lesstif2
sudo apt-get install Lesstif2-dev
sudo apt-get install lib32z1
sudo apt-get install Libaio1
sudo apt-get install Libaio-dev
sudo apt-get install Libc6-dev
sudo apt-get install libc6-dev-i386
sudo apt-get install libc6-i386
sudo apt-get install Libelf-dev
sudo apt-get install Libltdl-dev
sudo apt-get install Libmotif4
sudo apt-get install libodbcinstq4-1 libodbcinstq4-1:i386
sudo apt-get install Libpth-dev
sudo apt-get install Libpthread-stubs0
sudo apt-get install Libpthread-stubs0-dev
sudo apt-get install libstdc++5
sudo apt-get install Lsb-cxx
sudo apt-get install make
sudo apt-get install Openssh-server
sudo apt-get install Pdksh
sudo apt-get install Rlwrap
sudo apt-get install rpm
sudo apt-get install Sysstat
sudo apt-get install Unixodbc
sudo apt-get install Unixodbc-dev
sudo apt-get install unzip
sudo apt-get install x11-utils
sudo apt-get install ZLIBC
Many of them are already brought in by Ubuntu, so be cautious and do it all over again.
3. Check System Variables
/sbin/sysctl-a | grep sem
/sbin/sysctl-a | grep SHM
/sbin/sysctl-a | grep File-max
/sbin/sysctl-a | grep Aio-max
/sbin/sysctl-a | grep ip_local_port_range
/sbin/sysctl-a | grep Rmem_default
/sbin/sysctl-a | grep Rmem_max
/sbin/sysctl-a | grep Wmem_default
/sbin/sysctl-a | grep Wmem_max
Then add the corresponding data in the/etc/sysctl.conf according to the parameter values obtained from the above command, for example:
FS.AIO-MAX-NR = 1048576
Fs.file-max = 6815744
Kernel.shmall = 2097152kernel.shmmax = 536870912
Kernel.shmmni = 4096kernel.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:
4. Add the following data to the/etc/security/limits.conf file for the kernel limit of the current user (assuming the user name is ZHS)
ZHS Soft Nproc 2047
ZHS Hard Nproc 16384
ZHS Soft Nofile 1024
ZHS Hard Nofile 65536
ZHS Soft Stack 10240
5. View the/etc/pam.d/login and add the following lines (with no increase):
Session Required Pam_limits.so
Also check the/ETC/PAM.D/SU, without the following lines on their own add:
Session Required Pam_limits.so
6. Create the desired folder (to install Oracle) and set its ownership:
sudo mkdir-p/opt/oracle
sudo mkdir-p/opt/orainventory
sudo chown-r zhs:zhs/opt/oracle
sudo chown-r zhs:zhs/opt/orainventory
In the next two steps, the first ZHS represents the current user, the second ZHS represents the group that the current user is in, and Linux users typically belong to several groups, one with the same group name and user name. These two steps may not be performed, because the two directories themselves are created by ZHS.
7. Installing the JRE Environment
If you don't have a JRE installed on Ubuntu, you'll need to install the JRE (I've installed the JDK directly here, in the case of JDK):
Download JDK6 to Oracle website (for compatibility issues, install 6):
Download Jdk-6u45-linux-i586.bin this file. In the home directory, enter the terminal:
$sudo chmod 777 Jdk-6u37-linux-x64.bin//Assigning files to run permissions
$sudo-S./JDK-6U37-LINUX-X64.BIN/USR/LIB/JDK//Install the JDK into the/USR/LIB/JDK directory.
Note: After the final installation is complete, it may be installed in the home folder, which is copied to the/USR/LIB/JDK directory using the command. (If you don't have permissions, use sudo chmod 777 to get permissions and then copy)
To configure the environment variables for the JDK, use the editor to open the. BASHRC profile (hidden) in the home folder and add the following to it:
Export Android_java_home= $JAVA _home
Export classpath=.:${java_home}/lib: $JRE _home/lib: $CLASSPATH
Export Java_path=${java_home}/bin:${jre_home}/bin
Export Java_home;
Export Jre_home;
Export Path=${path}:${java_path}:${home_bin};
Please check that the directory structure is correct.
The new environment variable takes effect and executes the command at the terminal: source. BASHRC
Finally verify that the JDK is installed correctly:
The JDK version information appears to be correct.
8. Configure environment variables for Oracle. Also include the following in the. BASHRC configuration file in the home folder:
Export Oracle_base=/opt/oracle
Export Oracle_home= $ORACLE _base/product/11.2.0/dbhome_1
Export nls_lang=. Al32utf8
Export path=${path}:${oracle_home}/bin/;
The new environment variable takes effect and executes the command at the terminal: source. BASHRC
The 9.oracle itself does not support Ubuntu to install, so it is intended to spoof the Oracle installation program (sudo execution):
sudo touch/etc/redhat-release
sudo echo ' Red Hat Linux release 5 ' >/etc/redhat-release
Because Ubuntu stores some library files based on 32-bit systems and 64-bit systems, Oracle only/usr/lib and/lib directories, so the above soft links are required.
10. Download the 32-bit (x86) Oracle for Linux installer and extract the database folder
11. Setting the locale in the terminal
Export Lang=en_us or Export LANG=ZH_CN.GBK
If this step is not set, the startup interface of the Oracle Setup program may be garbled.
12. Assign executable permissions to the Runinstaller file under the database folder:
sudo chmod 777 Runinstaller
Jump to database directory and execute under Terminal:
13. Appear The email address of the interface, email address do not fill in and check box do not tick, click the "Next" button. Pop-up hints with a cross sign click the "YES" button to proceed to the next step.
14. The rest of the process is basically smooth, only need to set a password on the line, the other settings are completed before starting the installation program, do not make changes!
15. The dependency check will be listed in the graphical interface when a lot of dependency check failed, unable to enter the next step, at this time, select "Ignore All" in the upper right corner to enter the next step.
16. Two errors in the installation process (close to 70%)
First error:
Error in invoking target ' agent NMHS ' of makefile ' opt/oracle/product/11.2.0/dbhome_1/sysman/lib/ins_emagent.mk '. See '/opt/orainventory/logs/installactions2014-08-09_03-15-56am.log ' for details.
Open a new terminal and enter the following command:
Sed-i ' S/^\ (\s*\$ (mk_emagent_nmectl) \) \s*$/\1-lnnz11/g ' $ORACLE _home/sysman/lib/ins_emagent.mk
Then click on ' Retry ' in the graphical interface to proceed with the installation.
A second error:
Error in invoking target ' ALL_NO_ORCL ' of makefile '/opt/oracle/product/11.2.0/dbhome_1/rdbms/lib/ins_rdbms.mk '. See '/opt/orainventory/logs/installactions2014-08-09_03-16-32am.log ' for details.
Enter the following four commands in the new terminal:
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
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
Then click on ' Retry ' in the graphical interface to proceed with the installation.
There is no problem with the installation process below.
17. Finally it should be completed successfully, follow the installer prompt to execute the last two scripts:
The installation is complete.

Ubuntu 14.04 (32-bit) installs Oracle 11g (32-bit) entire process

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

Tags Index: