Install ORACLE12CR1 on the Oracle Linux 6.5 in VirtualBox

Source: Internet
Author: User

My Oralce Linux 6.5 is running on VirtualBox. Basic settings is 4G memory, 50G hard-disk, auto partition when install OL6.5.

* * Following series of operations need root privilege.

1. Edit/etc/host

ADD your hostname. For example, your host name Ol65.localdomain then

127.0.0.1 localhost localhost.localdomain ol65 ol65.localdomain  :: 1 localhost localhost.localdomain ol65 ol65.localdomain

When you install the Oracle linux6.5 there is one step ask domain name. You should add it into/etc/hosts before you start installing. If There is no this domain name there would be a error, installation can ' t continue.

Prvf-00002:could not retrieve local nodename

cause: Unable to determine local host name using Java network functions.

Action: Ensure that hostname is defined correctly using the ' hostname ' command.


2. Add or amend the following lines to the/etc/sysctl.conf
Fs.file-max = 6815744kernel.sem = 32000 128kernel.shmmni = 4096kernel.shmall = 1073741824kernel.shmmax = 439804651 1104net.core.rmem_default = 262144net.core.rmem_max = 4194304net.core.wmem_default = 262144net.core.wmem_max = 1048576FS.AIO-MAX-NR = 1048576net.ipv4.ip_local_port_range = 9000 65500
3. Run The following command to change the current kernel parameters
/sbin/sysctl-p
4. Add the following lines to the/etc/security/limits.conf
Oracle   Soft   nofile   1024oracle   hard   nofile   65536oracle   soft   nproc    2047oracle   hard   nproc    16384oracle   soft   stack    10240oracle   hard   stack    32768
5. Check and install following packages
Yum Install Binutils-yyum install Compat-libcap1-yyum install Compat-libstdc++-33-yyum install compat-libstdc++-33.i68 6-yyum Install Gcc-yyum install gcc-c++-yyum install Glibc-yyum install Glibc.i686-yyum install Glibc-devel-yyum INS Tall Glibc-devel.i686-yyum Install Ksh-yyum install Libgcc-yyum install Libgcc.i686-yyum install libstdc++-yyum Insta ll Libstdc++.i686-yyum install Libstdc++-devel-yyum install Libstdc++-devel.i686-yyum install Libaio-yyum install Liba Io.i686-yyum Install Libaio-devel-yyum Install Libaio-devel.i686-yyum install Libxext-yyum install Libxext.i686-yyum Install Libxtst-yyum install Libxtst.i686-yyum install Libx11-yyum install Libx11.i686-yyum install Libxau-yyum Insta ll Libxau.i686-yyum install Libxcb-yyum install Libxcb.i686-yyum install Libxi-yyum install Libxi.i686-yyum install m Ake-yyum Install Sysstat-yyum install Unixodbc-yyum install unixodbc-devel-y
6. Create New Group and user **i Install Oracle for learning so I simplified this, only created one new user who'll be is in charge of all Oracle re lated operations. This is not a suitable to product environment.
Groupadd-g 54321 oracleuseradd-u 54321-g Oracle ORACLEPASSWD Oracle
7. Amend the/etc/security/limits.d/90-nproc.conf
# change this*          soft    nproc    1024# to this*-Nproc 16384
8. Change the setting of SELinux to permissive by editing The/etc/selinux/config
Selinux=permissive
9. Set firewall to enable Oracle DB portsOpen 1521 and 5500, up to you.10. Create a new file and change its owner
Touch/etc/oratabchown-r Oracle:oracle/etc/oratab
One . Create Install directory
Mkdir-p/u01chown-r oracle:oracle/u01


* * Login as OracleUnzip installer and run Installerunzip Linuxamd64_12102_database_1of2.zip and LINUXAMD64_12102_DATABASE_2OF2.ZIPGO into database folder Run./runinstaller

Install.






















* * Stop here! Open console, login as root, run these, scripts


1)/u01/app/orainventory/orainstroot.sh

[Email protected] orainventory]#/orainstroot.shchanging permissions of/u01/app/orainventory.adding read,write Permissions for group. Removing Read,write,execute permissions for the world. Changing groupname of/u01/app/orainventory to Oracle. The execution of the script is complete.

2)/u01/app/oracle/product/12.1.0/dbhome_1/root.sh

[Email protected] dbhome_1]#./root.shperforming Root user operation. The following environment variables is set as:   oracle_owner= ORACLE   oracle_home=  /u01/app/oracle/product  /12.1.0/dbhome_1enter the full pathname of the local bin directory: [/usr/local/bin]:  Copying dbhome To/usr/local/bin ...  Copying oraenv to/usr/local/bin  ... Copying coraenv To/usr/local/bin ... Creating/etc/oratab file ... Entries'll be added to The/etc/oratab file as needed bydatabase Configuration Assistant when a database is Createdfinis Hed running generic part of root script. Now product-specific root actions would be performed.







completed! Access EM Database Express URL to test

Login as Oracle and edit ~/.bash_profileADD below part inside
# oracle12c Settingsexport tmp=/tmpexport tmpdir= $TMPexport oracle_hostname=oracle12c.localdomainexport ORACLE_ Unqname=oracle12cexport oracle_base=/u01/app/oracleexport oracle_home= $ORACLE _base/product/12.1.0/dbhome_1export Oracle_sid=orclexport path=/usr/sbin: $PATH: $ORACLE _home/binexport ld_library_path= $ORACLE _home/lib:/lib:/usr/ Libexport classpath= $ORACLE _home/jlib: $ORACLE _home/rdbms/jlib
Set Auto Startuplogin as Root

1) Edit/etc/oratab, change N to Y as below

Orcl:/u01/app/oracle/product/12.1.0/dbhome_1:y

2) Create file /etc/init.d/dbora and add following content

#!/bin/sh# chkconfig:345 from 10# Description:service to start and stop Oracle Database and listener## processname:oracle# config:/etc/oratab# pidfile:/var/run/oracle.pid# Source function Library. /etc/init.d/functionsretval=0ora_owner= "Oracle" Ora_home= "/u01/app/oracle/product/12.1.0/dbhome_1" # See how we Were called.prog= "Oracle" Start () {echo-n $ "starting $prog:" su-$ORA _owner-c "$ORA _home/bin/dbstart $ORA _home" retval=$? echo[$RETVAL-eq 0] && touch/var/lock/subsys/dborareturn $RETVAL}stop () {echo-n $ "stopping $prog:" su-$ORA _o Wner-c "$ORA _home/bin/dbshut $ORA _home" retval=$?echo[$RETVAL-eq 0] && rm-r/var/lock/subsys/dborareturn $RETV Al}restart () {stopstart}case "$" instart) start; stop) stop;; restart) restart;; *) echo $ "Usage: $ Start|stop|restart}" Exit 1esacexit $? 
Ora-owner and ora_home should math your own condition.

Next you need to run the following commands to change permissions and make the service active.

Chgrp oracle/etc/init.d/dbora chmod 755/etc/init.d/dbora chkconfig--level 345 Dbora on

3) Reboot Server
Reboot

congratulation!

Install ORACLE12CR1 on the Oracle Linux 6.5 in VirtualBox

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.