Archivelog

Ver sequência de Archivelog STANDBY SQL> SELECT MAX(SEQUENCE#) FROM V$ARCHIVED_LOG; PROD SQL> SELECT MAX(SEQUENCE#) FROM V$LOG WHERE ARCHIVED = 'YES'; Ver parâmetros SQL> SHOW PARAMETERS LOG; Ver modo SQ> SELECT LOG_MODE FROM V$DATABASE; Ver modo – Para pegar print

Continue reading

Oratop

Download http://andrespadini.com.br/oracle/oratop.zip Parâmetros [oracle@bancora ~]$ ./oratop.RDBMS_12.1_LINUX_X64 -f -i 2 / as sysdba http://eduardolegatti.blogspot.com.br/2015/12/um-pouco-sobre-o-oratop-utilitario-para.html Executar o oratop nas versões 12.2 e superiores [oracle@db ~]$ $ORACLE_HOME/suptools/oratop/oratop -f -i2 / AS SYSDBA

Continue reading

Controlfiles

Ver parâmetros SQL> show parameter control;  Alterar caminho SQL > alter system set control_files='/u01/oracle/oradata/NBS/control01.ctl','/u02/oracle/oradata/NBS/control02.ctl' scope=spfile; Alterar fisicamente no S.O [oracle@bancora u01]$ cp /u01/oracle/flash_recovery_area/nbs/control02.ctl /u02/oracle/oradata/nbs

Continue reading

REDO Logs

Ver redo logs atuais SQL> select sequence#,group#, members,FIRST_CHANGE#, bytes/1024/1024, status from v$log order by 2; Ver arquivos de Redo Adicionar novo redolog SQL> alter database add logfile group 4 '/u01/app/oracle/oradata/orcl/redo04.log' size 500M; Adicionar um membro ao grupo existente SQL> alter database add logfile member '/u02/fra/apollo/oradata/redo01_b.log' to group 1;

Continue reading