Install Oracle11g version 2 in Ubuntu10.04

Source: Internet
Author: User
Tags addgroup
I am ready to go to work. I want to learn how to use Oracle in Linux, search for information from the Internet, and add my own installation process in Ubuntu10.04 to write down the log. Installation Steps: Step 1:

I am ready to go to work. I want to learn how to use Oracle in Linux, search for information from the Internet, and add my own installation process in Ubuntu 10.04, and write down the log. Installation Steps: Step 1:

I am ready to go to work. I want to learn how to use Oracle in Linux, search for information from the Internet, and add my own installation process in Ubuntu 10.04, and write down the log.

Installation steps:
Step 1:
Modify the default settings of X server. Choose System> Administration> Login Window from the menu, and select the Security tab, cancel the check box "Deny TCP connections to the Xserver (refuse TCP connection to X Server)" and restart the Xserver (or restart the system ). Then
Terminal input: xhost + 127.0.0.1
Step 2:
Install necessary tools:
Terminal input: sudo apt-get install build-essential libaio1 gawk ksh libmotif3 alien libtool lsb-rpm
Step 3:
Modify the default connection of some Ubuntu/bin/sh:
Terminal input:
Root @:~ # Cd/bin
Root @:/bin # ls-l/bin/sh
Lrwxrwxrwx 1 root 4 2008-04-28 :59/bin/sh-> dash
Root @:/bin # ln-sf bash/bin/sh
Root @:/bin # ls-l/bin/sh
Lrwxrwxrwx 1 root 4 2008-05-01/bin/sh-> bash
Step 4:
Add users and groups:
Terminal input:
Root @:/bin # cd/root
Root @:~ # Addgroup oinstall
Root @:~ # Addgroup dba
Root @:~ # Addgroup nobody
Root @:~ # Usermod-g nobody
Root @:~ # Useradd-g oinstall-G dba-p password-d/home/oracle-s/bin/bash oracle
Root @:~ # Mkdir/home/oracle
Root @:~ # Chown-R oracle: dba/home/oracle
Root @:~ # Ln-s/usr/bin/awk
Root @:~ # Ln-s/usr/bin/rpm
Root @:~ # Ln-s/usr/bin/basename
Root @:~ # Mkdir/etc/rc. d
Root @:~ # For I in 0 1 2 3 4 5 6 S; do ln-s/etc/rc $ I. d/etc/rc. d/rc $ I. d; done
Root @:~ # Mkdir-p/u01/app/oracle
Root @:~ # Chown-R oracle: dba/u01
Step 8:
Default Value:
(1) Add the following to the end of the/etc/sysctl. conf file:
Fs. file-max = 65535
Kernel. shmall = 2097152
Kernel. shmmax = 2147483648
Kernel. shmmni = 4096
Kernel. sem = 250 32000 100 128
Net. ipv4.ip _ local_port_range = 1024 65535
Net. core. rmem_default = 1048576
Net. core. rmem_max = 1048576
Net. core. wmem_default = 262144
Net. core. wmem_max = 262144
(2) Add the following to the end of the/etc/security/limits. conf file:
Oracle soft nproc 2047
Hard nproc 16383
Oracle soft nofile 1023
Oracle hard nofile 65535
(3) add the following to the end of the/etc/pam. d/login file:
Session required/lib/security/pam_limits.so
Session required pam_limits.so
Run the following command: sysctl-p
Step 9:
(1) extract the source file: unzip the oracle11g installation package to the/home/oracle/install/directory.
(2) Change permission: chown-R oracle: dba install
(3) set the DISPLAY parameter: export DISPLAY = 127.0.0.1: 0.0 (here I set it to: 0.0, because it is said on the Internet that this can automatically find the appropriate, the installation interface can be started, however, if you switch the user to oracle, it cannot be started. The color setting is not normal. It is estimated that some environments are set, and there is no way to do this. I have to use the user oracle to log on to the machine learning platform for AI, you can run the gdmflexserver command to start an additional machine learning platform for AI desktop. Then, the installation page appears)
Step 10:
(1) terminal input:./runInstaller-jreLoc/usr/lib/jvm/java-6-sun/jre/
......
(2) Graphical installation interface appears
.....
(3) Ignore errors and warnings during pre-check
.....
(4) Select "Create a Database" to install the Database. (The original article uses netca to establish a listener and dbca to create a database. For the first time, I did the same. An error will be reported when dbca creates a database because ubutunbu does not support RPM packages ).
.......

A makefile error occurs during the installation process. A library file is not compiled, but you can continue to install it. It is estimated that problems will occur in future use; in addition, there will be a configuration link at the end of the installation for a long time, there is only one advertisement box, do not think the problem is wrong
(5) after completion.
Terminal input:/u01/app/oracle/product/11.1.0/db_1/root. sh
Exit OUI

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.