Two ways to install Oracle under Linux------GUI installation and silent installation

Source: Internet
Author: User
Tags chmod iptables sqlplus

This article refers to the article

http://blog.csdn.net/zonej/article/details/50680857

http://blog.csdn.net/tongzidane/article/details/43852705

Http://www.cnblogs.com/sopost/archive/2012/07/19/2598981.html

The maintenance of copyright starts with me.

Pre-installation Preparation work  1, modify the hostname (not required) #vi  /etc/hosts   //and add the corresponding hostname of the intranet IP address, as follows 127.0.0.1            localhost::1                    localhost  localhost.localdomain localhost6 localhost6.localdomain6192.168.8.151     Oracledb 2, modify the/etc/sysconfig/iptables file, open 1521 port: # vi/etc/sysconfig/iptables-a input -m  state --state new -m tcp -p tcp --dport 1521 -j accept  3, restart Iptables service: #service  iptables restart 4, install dependency pack #yum -y install  gcc  gcc-c++ make binutilscompat-libstdc++-33 elfutils-libelf elfutils-libelf-devel  Glibc glibc-commonglibc-devel libaio libaio-devel libgcclibstdc++ libstdc++-devel  unixodbc unixodbc-devel See if the package is installed on the system andnbsp;  #rpm-Q package_name 5, edit/etc/sysctl.conf file   # vim/etc/sysctl.conf Add the following at the bottom of the open file    fs.file-max = 6815744  kernel.shmmax = 536870912  kernel.sem  = 250 32000 100 128  net.core.rmem_default = 262144   net.core.wmem_default = 262144   change the current system kernel parameter values (let/etc/sysctl.conf take effect immediately)    #sysctl-P  6, modify/etc/security/limits.conf file    Add the following at the bottom of the open file   oracle soft     Nproc   & nbsp;2047oracle              hard     nproc    16384  oralce              soft     Nofile    1024oracle               hard    nofile     65536  oracle   &nbsP;          soft     Stacks     10240    7, set up user group and user # groupadd oinstall# groupadd dba# useradd -g  oinstall -g dba -d /home/oracle oracle# passwd oracle           //Set the Oracle password with the above command cannot user directory and user environment variable file can use the following #useradd -m -g  oinstall -G dba -p password -d /home/oracle -s /bin/bash  Oracle  8, creating the installation directory # mkdir -p /opt/oracle_11/app/  # mkdir -p / opt/oracle_11/orainventory/ # chown-r oracle:oinstall/opt/oracle_11/app/# chmod -r 775  /opt/oracle_11/app/  # Chown-r oracle:oinstall/opt/oracle_11/orainventory/# chmod -r  775 /opt/oracle_11/orainventory/   9, edit  /home/oracle/.bash_profile   Configure Oracle User variables # Vi /home/oraCle/.bash_profile Add the following in the open file   export ORACLE_BASE=/opt/oracle_11/app  export  ORACLE_SID=ORCL    Make it effective #source/home/oracle/.bash_profile edit  /etc/pam.d/login#vi/etc/pam.d/login   Add the following to the open file   session required/lib/security/pam_limits.sosession required PAM_ Limits.so Configure Environment Variables #vim /etc/profile Add the following  if [  $USER  =  Oracle  ]; then    if [$SHELL = "/bin/ksh"];    then          ulimit -p 16384 ulimit-n 65536       else Ulimit-u 16384-n 65536   Fifi make the modified content effective #source/etc/profile   second, Unzip start to install the graphical interface using the root user to see if the user has set the display variable   If a value appears, then the display variable is set; otherwise, you need to manually set the display  the following command allows all users to use the graphical interface #  xhost +   #su-oracle$ unzip p10404530_112030_linux-x86-64_1of7.zip$ unzip  P10404530_112030_linux-x86-64_2of7.zip  $ export display=:0  $ ./database/runinstaller    Enter the graphical interface of the installation, please refer to http://blog.itpub.net/29742691/viewspace-1214803/               silent installation without graphical interface (recommended) First, modify the silent installation of the template $ cp -r /home/oracle/database/response /home/oracle            //Copy a template $ cd /home/oracle/response$ vi db_ install.rsp                                        //Modify the installation answer file three files are: db_install.rsp: Install answer DBCA.RSP: Create DATABASE Answer NETCA.RSP: Set up a listener, Local Service name and other network settings answer these three files are ready for everyone, note: I am installed under/opt/oracle_11/, if you install in other directories, please modify the above environment variable configuration path and the path of these files   second, install $cd/home/ oracle/database$./runinstaller-silent-responsefile/home/oracle/response/db_install.rsp //when the following information appears in the installation interface   Open another terminal window the installation of oracle database 11g was successful. please check  '/home/oracle/orainventory/logs/silentinstall2016-02-04_09-21-13am.log '  for  More details. As a root&nBsp;user, execute the following script (s):  1. /home/oracle/orainventory/ Orainstroot.sh 2. /home/oracle/app/oracle/product/11.2.0/dbhome_1/root.shsuccessfully setup  software. //execute the following script in the newly opened root login window #/opt/oracle_11/orainventory/orainstroot.sh#/opt/oracle_11/app/ oracle/product/11.2.0/dbhome_1/root.sh//after executing the above script, go back to the Installation Terminal window Press ENTER to continue   third, configure the monitoring $cd /home/oracle/response The following success occurs $NETCA &NBSP;/SILENT&NBSP;/RESPONSEFILE&NBSP;/HOME/ORACLE/RESPONSE/NETCA.RSP parsing command  line arguments:    parameter  "Silent"  = true     parameter  "Responsefile"  = /opt/database/response/netca.rspDone parsing command  Line arguments. Oracle net services configuration:profile configuration complete. listener  "Listener"  already exists. Oracle net services configuration successful. the exit code is 0  viewing the Listening status $lsnrctl status$dbca -silent -responsefile /home/oracle/ response/dbca.rsp   Four, start the database $ sqlplus / as sysdba  //as there is a space before the [email  protected] ~]$ sqlplus / as sysdbaSQL*Plus: Release 11.2.0.1.0  production on mon feb 16 14:26:57 2015copyright  (c)  1982, 2009,  oracle.  all rights reserved. Connected to an idle instance. Sql> startsp2-1506: start, @ or @@ command has no argumentssql > startuporacle instance started. total system global area 3290345472 bytesfixed size                   2217832 bytesvariable  size            1795164312 bytesdatabase buffers         1476395008  bytesredo buffers                16568320 bytesdatabase mounted. database opened. sql>  use show parameter; or select table_name from dba_tables to see if it's normal    Some error summary: 1, Java.lang.NoClassDefFoundError Solution: Change a terminal window switch to Oracle continue installation 2, Checking swap space:0 MB available, MB required.& nbsp;   Failed <<<< Solutions:

DD If=/dev/zero of=/home/swapfile bs=1m count=512
Mkswap/home/swapfile
Swapon/home/swapfile

/home/swapfile swap swap defaults 0 0

3.

Error in writing to directory/tmp/orainstall2012-09-16_01-54-05am. Please ensure the This directory iswritable and have atleast MB of disk space.

Solve:

Permissions issues, check permissions and Paths

4.

[SEVERE]-Email Address not Specified

If you are downloading the template I provided, this issue will not occur.

This is because the decline_security_updates in DB_INSTALL.RSP is not set or false.

Note: decline_security_updates=true

Two ways to install Oracle under Linux------GUI installation and silent installation

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.