You are on page 1of 47

Terminal

cd /oracle/oraInventory/
[root@VGE5 oraInventory]# ls
ContentsXML

logs

oraInst.loc

oui

install.platform oraInstaller.properties orainstRoot.sh


[root@VGE5 oraInventory]# ./orainstRoot.sh
Changing 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]# ls
apex

deinstall

jdev

OPatch

jdk

opmn

assistants demo
bin

diagnostics

ccr

dv

cdata

jlib
ldap

emcli

cfgtoollogs has

lib
log

clone

hs

md

config

ide

mesg

crs
csmig

install

mgw

scheduler
slax

oracore

sqldeveloper

oraInst.loc sqlj
ord

sqlplus

oui

srvm

owb

sysman

owm
perl

timingframework
ucp

install.platform network plsql

css

instantclient

nls

precomp

ctx

inventory

oc4j

racg

cv

j2ee

dbs
dc_ocm

odbc

rdbms

javavm

olap

relnotes

jdbc

ons

root.sh

uix
utl
wwg
xdk

[root@VGE5 db_1]# ./root.sh


Running 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 by
Database Configuration Assistant when a database is created
Finished 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_1
export ORACLE_BASE=/oracle

ORACLE_HOSTNAME=VGE5.hp.com; export ORACLE_HOSTNAME


ORACLE_UNQNAME=/oracle; export ORACLE_UNQNAME
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME
ORACLE_SID=TESTORCL; export ORACLE_SID

PATH=/usr/sbin:$PATH;export PATH

PATH=$ORACLE_HOME/bin:$PATH; export PATH


LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH

Oracle Network Configuration Wizard


Cd /oracle/product/11.2.0/db_1/bin
./netca

Network Configuration
Cd /oracle/product/11.2.1/db_1/bin
./netca

ORCL

database configuration
cd /oracle/product/11.2.0/db_1/bin
./dbca

password:oracleadmin

You might also like