ubuntu10.04 Install Oracle 11g r2____oracle

Source: Internet
Author: User
Tags addgroup dba mkdir

From http://blog.chinaunix.net/u3/114361/showart_2227746.html (with modifications)

Installation steps: The first step: in the terminal input: Xhost +127.0.0.1 The second step: Install the necessary tools: Terminal input: sudo apt-get install build-essential libaio1 gawk ksh libmotif3 A Lien Libtool lsb-rpm (for software sources that have copyright and legitimacy limitations and proprietary drivers for devices) step three: Modify the default connection for some Ubuntu/bin/sh: Terminal input: root@zhanghc-ubuntu:~# CD/ Bin root@zhanghc-ubuntu:/bin# ls-l/bin/sh lrwxrwxrwx 1 root root 4 2008-04-28 19:59/bin/sh-> Dash Root@zhanghc-ubun tu:/bin# ln-sf bash/bin/sh root@zhanghc-ubuntu:/bin# ls-l/bin/sh lrwxrwxrwx 1 root root 4 2008-05-01 22:51/bin/sh-&G T Bash Step Fourth: Add Users and Groups: Terminal input: root@zhanghc-ubuntu:/bin# cd/root root@zhanghc-ubuntu:~# addgroup oinstall root@zhanghc-ubuntu: ~# AddGroup dba root@zhanghc-ubuntu:~# addgroup Nobody root@zhanghc-ubuntu:~# usermod-g nobody nobody root@zhanghc-ubunt u:~# useradd-g oinstall-g dba-p password-d/home/oracle-s/bin/bash Oracle root@zhanghc-ubuntu:~# mkdir/home/oracle root@zhanghc-ubuntu:~# chown-r oracle:dba/home/oracle root@zhanghc-ubuntu:~# ln-s/usr/bin/awk/bin/awk root@zhanghc-ubuntu:~# ln-s/usr/bin/rpm/bin/rpm root@zhanghc-ubuntu:~# ln-s/usr/bin/basename/bin/basename root@zhanghc-ubuntu:~# mkdir/etc/rc.d root@zhanghc-ubuntu:~# 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@zhanghc-ubuntu:~# mkdir-p/u01/app/oracle root@zhanghc-ubuntu:~# chown-r oracle:dba/u01 Eighth Step: System defaults: (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 = 32000 128 net.ipv4.ip_local_port_range = 1024 65535 Net.core.rmem_default = 1048576 Net.core.rmem_max = 104 8576 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 Oracle Hard nproc 16383 Oracle Soft nofile 1023 Oracle Hard Nofile 65535 (3) Add the following to the end of/etc/pam.d/login file: Sessio N required/lib/security/pam_limits.so Session Required pam_limits.so add complete the following command: Sysctl-p step nineth: (1) Extract source files: oracle11g installation package extract to/home/oracle/install/directory (2) Change permissions: Chown-r oracle:dba Install (3) Set display parameters: Export display=127.0.0.1:0.0   (Here I set up: 0.0, because the Internet said this can automatically find the appropriate, installation interface can be started, but switch users to Oracle will not be able to start, appear to say that color settings are not normal, estimated to be Some settings, no way, I had to use the user Oracle login GDM, you can use the command gdmflexserver to start a GDM desktop, and then install the installation interface again, you can not perform the tenth step: 
Reboot and enter the Oracle user.
(1) Terminal input:./runinstaller-jreloc/usr/lib/jvm/java-6-sun/jre/... (2) Graphical installation interface appears ... (3) Ignore errors and warnings in the pre-test ... (4) Select "Create a database" to install the databases. (the original is through NETCA set up monitoring, DBCA build a library, I also do this the first time, DBCA build the library will be an error, because Ubutunbu does not support the RPM package) ...     During the installation of a makefile error, a library file has not been compiled, but can continue to install, it is estimated that later use will be problematic; In addition, there will be a configuration link at the end of the installation and so long, only one advertising box, do not think the problem (5) after completion. Su Wangjian (This is my sudo permission user, you install as the case) terminal input:/u01/app/oracle/product/11.2.0/dbhome_1/root.sh exit Oui 11th: Modify Profile:/etc/ Profile Export oracle_home=/u01/app/oracle/product/11.2.0/dbhome_1 export path= $PATH: $ORACLE _home/bin 12th step: (1) Create a startup script: Create a file under/u01/app/oracle/product/11.2.0/dbhome_1/bin: OracleDB, Content: #!/bin/bash # #/etc/init.d/oracledb # Run-level Startup script for the Oracle Listener and instances # IT relies on the information on/etc/oratab export Oracle _base=/u01/app/oracle Export oracle_home= u01/app/oracle/product/11.2.0/dbhome_1 export oracle_ownr=oracle Export Path= $PATH: $ORACLE _home/bin if [!-F $ORACLE _home/bin/dbstart-o!-d $ORACLE _home] then echo "OrAcle startup:cannot Start "Exit 1 fi case" ' in Start # Oracle Listener and Instance startup Echo-n ' starting Oracle: "Su $ORACLE _ownr-c" $ORACLE _home/bin/lsnrctl start "su $ORACLE _ownr-c" $ORACLE _home/bin/dbstart $ORACLE _home "touch/v Ar/lock/oracle echo "OK";; STOP) # Oracle Listener and instance shutdown echo-n shutdown Oracle: "su $ORACLE _ownr-c" $ORACLE _home/bin/lsnrctl sto P "su $ORACLE _ownr-c" $ORACLE _home/bin/dbshut $ORACLE _home "Rm-f/var/lock/oracle echo" OK "; Reload|restart) $ Stop $ start

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.

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.