Oracle DB Install

47

description

Oracle DB install

Transcript of Oracle DB Install

Terminalcd /oracle/oraInventory/[root@VGE5 oraInventory]# lsContentsXML logs oraInst.loc ouiinstall.platform oraInstaller.properties orainstRoot.sh[root@VGE5 oraInventory]# ./orainstRoot.shChanging permissions of /oracle/oraInventory.Adding read,write permissions for group.Removing read,write,execute permissions for world.

Changing groupname of /oracle/oraInventory to dba.The execution of the script is complete.[root@VGE5 oraInventory]# cd ..[root@VGE5 oracle]# cd ..[root@VGE5 /]# cd /oracle/product/11.2.0/db_1/[root@VGE5 db_1]# LS-bash: LS: command not found[root@VGE5 db_1]# lsapex deinstall jdev OPatch schedulerassistants demo jdk opmn slaxbin diagnostics jlib oracore sqldeveloperccr dv ldap oraInst.loc sqljcdata emcli lib ord sqlpluscfgtoollogs has log oui srvmclone hs md owb sysmanconfig ide mesg owm timingframeworkcrs install mgw perl ucpcsmig install.platform network plsql uixcss instantclient nls precomp utlctx inventory oc4j racg wwgcv j2ee odbc rdbms xdkdbs javavm olap relnotesdc_ocm jdbc ons root.sh[root@VGE5 db_1]# ./root.shRunning Oracle 11g root.sh script...

The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /oracle/product/11.2.0/db_1

Enter 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 will be added to the /etc/oratab file as needed byDatabase Configuration Assistant when a database is createdFinished running generic part of root.sh script.Now product-specific root actions will be performed.Finished product-specific root actions.[root@VGE5 db_1]#

Vi .bash_profile

export ORACLE_HOME=/oracle/product/11.2.0/db_1export ORACLE_BASE=/oracle

ORACLE_HOSTNAME=VGE5.hp.com; export ORACLE_HOSTNAMEORACLE_UNQNAME=/oracle; export ORACLE_UNQNAMEORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOMEORACLE_SID=TESTORCL; export ORACLE_SID

PATH=/usr/sbin:$PATH;export PATHPATH=$ORACLE_HOME/bin:$PATH; export PATHLD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATHCLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH

Oracle Network Configuration WizardCd /oracle/product/11.2.0/db_1/bin./netca

Network ConfigurationCd /oracle/product/11.2.1/db_1/bin./netca

ORCL

database configurationcd /oracle/product/11.2.0/db_1/bin./dbca

password:oracleadmin