Cuando se generen inconvenientes en su empresa y por A o B razón deben bajar las bases de datos, la forma segura de realizar esto es siguiendo los siguientes pasos:
1.-Ingresar al servidor
ssh o por telnet para ingresar al SQLPlus* ya sea por putty , SSH-Security o cualquier herramienta que maneje su negocio para administrar servidores
2.-Cargar las variables de ambiente
Nota:Este paso es necesario cuando el ambiente de oracle no se encuentra cargado en la sesión actual de sistema operativo
[oracle@docec admin]$ cd
[oracle@docec ~]$ . ./.bash_profile
[oracle@docec ~]$ . oraenv
ORACLE_SID = [nueva] ? nueva
ORACLE_HOME = [/home/oracle] ? /u01/app/oracle/product/11.2.0/dbhome_1
The Oracle base remains unchanged with value /u01/app/oracle
ORACLE_SID = [nueva] ? nueva
ORACLE_HOME = [/home/oracle] ? /u01/app/oracle/product/11.2.0/dbhome_1
The Oracle base remains unchanged with value /u01/app/oracle
3.-Detener el listener
Esta acción permite que usuarios nuevos no puedan conectarse
[oracle@docec ~]$ lsnrctl stop
LSNRCTL for Linux: Version 12.1.0.1.0 - Production on 21-MAY-2014 14:24:08
Copyright (c) 1991, 2013, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1521)))
The command completed successfully
The command completed successfully
4.-Apagar la base de forma segura
[oracle@docec ~]$ sqlplus / as sysdba
SQL*Plus: Release 12.1.0.1.0 Production on Wed May 21 14:25:16 2014
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
Database dismounted.
ORACLE instance shut down.
SQL> exit
5.- Apagar el sistema operativo
[oracle@docec ~]$ poweroff
Nota: Realizar los pasos 2 y 4 por cada Instancia (SID) que se tenga en el servidor
No hay comentarios:
Publicar un comentario