meta données pour cette page
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| oracle:database:rman [04/12/2024 09:51] – mdl | oracle:database:rman [04/12/2024 10:10] (Version actuelle) – mdl | ||
|---|---|---|---|
| Ligne 19: | Ligne 19: | ||
| where status=' | where status=' | ||
| order by session_key; | order by session_key; | ||
| + | |||
| + | SESSION_KEY SESSION_RECID SESSION_STAMP INPUT_TYPE | ||
| + | ----------- ------------- ------------- ------------- -------------------- ---------- ---------------- ---------------- ------ ---------- ---------- | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| </ | </ | ||
| \\ | \\ | ||
| - | == Job Detail | + | == Kill runing jobs == |
| + | <code PLSQL> | ||
| + | ### Check what Session will be killed | ||
| + | select s.sid, s.serial#, s.username, | ||
| + | | ||
| + | p.pid oraclepid, p.spid " | ||
| + | | ||
| + | | ||
| + | from v$session s, v$process p | ||
| + | where s.paddr=p.addr | ||
| + | and s.program like ' | ||
| + | order by s.sid | ||
| + | |||
| + | ### Generate simple command | ||
| + | select '! kill -9 ' | ||
| + | from v$session s, v$process p | ||
| + | where s.paddr=p.addr | ||
| + | and s.program like ' | ||
| + | order by s.sid | ||
| + | |||
| + | |||
| + | KILL_RMAN_PROCESS | ||
| + | ---------------------------------- | ||
| + | ! kill -9 2516 | ||
| + | ! kill -9 2517 | ||
| + | ! kill -9 2497 | ||
| + | </ | ||
| + | \\ | ||
| + | == Job Summary | ||
| <code PLSQL> | <code PLSQL> | ||
| set lines 220 | set lines 220 | ||
| Ligne 51: | Ligne 102: | ||
| 3336 L NO 1 2024-12-02 20:14 2024-12-02 20: | 3336 L NO 1 2024-12-02 20:14 2024-12-02 20: | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | == Job Detail with SESSION_RECID and SESSION_STAMP == | ||
| + | <code PLSQL> | ||
| + | set lines 200 | ||
| + | set pages 1000 | ||
| + | select output | ||
| + | from GV$RMAN_OUTPUT | ||
| + | where session_recid = & | ||
| + | and session_stamp = & | ||
| + | order by recid; | ||
| + | |||
| + | OUTPUT | ||
| + | ---------------------------------------------------------------------------------------------------------------------------------- | ||
| + | connected to target database: C1DIGDEV (DBID=1272122079) | ||
| + | connected to recovery catalog database | ||
| + | PL/SQL package RMAN_C1DIGDEV.DBMS_RCVCAT version 19.21.00.00. in RCVCAT database is not current | ||
| + | PL/SQL package RMAN_C1DIGDEV.DBMS_RCVMAN version 19.21.00.00 in RCVCAT database is not current | ||
| + | |||
| + | |||
| + | resync only records later than timestamp 1186107934 | ||
| + | RMAN configuration parameters for database with db_unique_name C1DIGDEV are: | ||
| + | CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default | ||
| + | CONFIGURE BACKUP OPTIMIZATION ON; | ||
| + | CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default | ||
| + | CONFIGURE CONTROLFILE AUTOBACKUP ON; | ||
| + | CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE ' | ||
| + | CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO ' | ||
| + | CONFIGURE DEVICE TYPE ' | ||
| + | CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default | ||
| + | CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default | ||
| + | CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default | ||
| + | CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default | ||
| + | CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default | ||
| + | CONFIGURE CHANNEL DEVICE TYPE DISK MAXPIECESIZE 2 G; | ||
| + | CONFIGURE CHANNEL DEVICE TYPE ' | ||
| + | CONFIGURE MAXSETSIZE TO UNLIMITED; # default | ||
| + | CONFIGURE ENCRYPTION FOR DATABASE OFF; # default | ||
| + | CONFIGURE ENCRYPTION ALGORITHM ' | ||
| + | CONFIGURE COMPRESSION ALGORITHM ' | ||
| + | CONFIGURE RMAN OUTPUT TO KEEP FOR 90 DAYS; | ||
| + | CONFIGURE ARCHIVELOG DELETION POLICY TO BACKED UP 1 TIMES TO ' | ||
| + | CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/ | ||
| + | [...] | ||
| + | Finished backup at 02-DEC-24 | ||
| + | |||
| + | Starting Control File and SPFILE Autobackup at 02-DEC-24 | ||
| + | released channel: ch00 | ||
| + | RMAN-00571: =========================================================== | ||
| + | RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== | ||
| + | RMAN-00571: =========================================================== | ||
| + | RMAN-03009: failure of Control File and SPFILE Autobackup command on ch00 channel at 12/04/2024 10:57:29 | ||
| + | ORA-19506: failed to create sequential file, name=" | ||
| + | ORA-27027: sbtremove2 returned error | ||
| + | ORA-19511: non RMAN, but media manager or vendor specific failure, error text: | ||
| + | | ||
| </ | </ | ||
| \\ | \\ | ||