Update z_oracle.sh
on ne fait plus export ORACLE_SID
This commit is contained in:
@@ -23,8 +23,9 @@ if [ $USER = "grid" ] || [ $USER = "oracle" ] || [ $USER = "root" ] ; then
|
|||||||
umask 022
|
umask 022
|
||||||
|
|
||||||
# export ORACLE_HOME et ORACLE_SID
|
# export ORACLE_HOME et ORACLE_SID
|
||||||
ORACLE_SID=$(ps -ef | grep pmon | egrep -v 'grep|ASM|APX' | cut -d_ -f3 | head -1)
|
## désactivation de l'export de ORACLE_SID
|
||||||
if [ -n "$ORACLE_SID" ]; then export ORACLE_SID; fi
|
# ORACLE_SID=$(ps -ef | grep pmon | egrep -v 'grep|ASM|APX' | cut -d_ -f3 | head -1)
|
||||||
|
# if [ -n "$ORACLE_SID" ]; then export ORACLE_SID; fi
|
||||||
if [ -e "/etc/oraInst.loc" ]; then
|
if [ -e "/etc/oraInst.loc" ]; then
|
||||||
INV_LOC=$(cat /etc/oraInst.loc | grep inventory_loc | cut -d= -f2)
|
INV_LOC=$(cat /etc/oraInst.loc | grep inventory_loc | cut -d= -f2)
|
||||||
if [ -e "${INV_LOC}/ContentsXML/inventory.xml" ]; then
|
if [ -e "${INV_LOC}/ContentsXML/inventory.xml" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user