Exportamos las variables de Grid:
. oraenv
ORACLE_SID = [] ?+ASM ó +ASM1 (depende del tipo de instalación)
ORACLE_SID = [] ?+ASM ó +ASM1 (depende del tipo de instalación)
ORACLE_HOME = [] ? /oracle/DB/dbhome_1
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH
for f in $( adrci exec="show homes" | grep -v "ADR Homes:" );
 do
 echo "Purging ${f}:";
 adrci exec="set home $f; purge -age 0 ;" ;
 done
Purging
diag/tnslsnr/bmbdpt01/listener:
Purging
diag/asm/+asm/+ASM:
Purging
diag/crs/bmbdpt01/crs:
Exportamos las variables de Base de Datos Oracle:
. oraenv
ORACLE_SID =  [] ?+BD1 ó +BD2 (Nombre de la Base de Datos)
ORACLE_HOME = [] ?/grid/GI/12.0.1
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH
for
f in $( adrci exec="show homes" | grep -v "ADR Homes:" );
 do
 echo "Purging ${f}:";
 adrci exec="set home $f; purge -age 0
;" ;
 done
Lo cual genera una salida como esta:
Purging
diag/rdbms/BD1/BD1:
Purging
diag/clients/user_oracle/host_2343385924_82:
 
 
No hay comentarios:
Publicar un comentario