Monitoring RMAN Backups
To correlate a process with a channel during a backup, perform. the following steps:
1. Start Recovery Manager and connect to the target database and, optionally, the recovery
catalog.
2. Set the COMMAND ID parameter after allocating the channels and then copy the desired
object. The string specified by the SET COMMAND ID command is entered into the
V$SESSION.CLIENT_INFO column of all allocated channels.
run {
allocate channel t1 type disk;
set command id to 'rman';
backup datafile 1;
release channel t1;}
3. Query the V$PROCESS and V$SESSION views to get the session identifier (SID) and the
operating system process identifier (SPID) for the channels using the previously
specified COMMAND ID string.
SELECT sid, spid, client_info
FROM v$process p, v$session s
WHERE p.addr = s.paddr
AND client_info LIKE '%id=rman%';
4. Query the V$SESSION_LONGOPS view to get the status of the copy.
SELECT sid, serial#, context, sofar, totalwork,
round(sofar/totalwork*100,2) "% Complete"
FROM V$SESSION_LONGOPS
WHERE opname LIKE 'RMAN:%'
AND opname NOT LIKE 'RMAN: aggregate%'
AND totalwork != 0;
5. If you use a channel of type sbt and the copy process appears to hang, query
V$SESSION_WAIT by using the SID obtained in step 3 to determine whether RMAN is
waiting for a media manager function call to complete.
SELECT * FROM V$SESSION_WAIT WHERE event LIKE '%sbt%';
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/21584437/viewspace-716755/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- RMAN Fast Incremental BackupsASTREM
- Making Whole Database Backups with RMANDatabase
- Rman Backups When The Directory Structures Are DifferentStruct
- HowTo Restore RMAN Disk backups of RACREST
- Using RMAN Incremental Backups to Refresh a Standby DatabaseREMDatabase
- Using RMAN Incremental Backups to Roll Forward a Physical Standby DatabaseREMForwardDatabase
- RMAN: Monitoring Recovery Manager Jobs [ID 144640.1]
- Restore Rman Backups On A Different Node When The Directory Are Diff_419137.1REST
- HowTo Restore RMAN Disk backups of RAC Database to Single Instance On Another NoRESTDatabase
- HowTo Restore RMAN Disk backups of RAC Database to Single Instance On Another Node [ID 415579.1]RESTDatabase
- RMAN之環境配置(二)---Backups to a Media Manager備份到介質管理器
- Using mysqldump for backupsMySql
- STREAMS MONITORING
- Column Monitoring
- Oracle:TABLE MONITORINGOracle
- oracle index monitoringOracleIndex
- Monitoring WebSite StateWeb
- Oracle EBS Monitoring ScriptsOracle
- Monitoring an SAP instance
- sql monitoring實驗SQL
- Monitoring Core Process...
- Monitoring Open and Cached Cursors
- Simple Automated Backups for MongoDB Replica SetsMongoDB
- Description of restoring file and filegroup backups in SQL ServerRESTSQLServer
- Go: sysmon, Runtime MonitoringGo
- Oracle Real Time SQL MonitoringOracleSQL
- Monitoring Open and Cached Cursors(zt)
- Oracle9i Table monitoring 及10g table預設monitoring屬性Oracle
- PostgreSQL DBA(77) - Locks(Lock Monitoring)SQL
- 對索引開啟monitoring方法索引
- Top DBA Shell Scripts for Monitoring the DatabaseDatabase
- Monitoring Open and Cached Cursors(轉載)
- Java Monitoring, Management and Troubleshooting ToolsJava
- Create a trigger TO monitoring DDL
- xtrabackup:error:streaming incremental backups are incompatible with the tarErrorREM
- 11G新特性 -- archival(long-term)backups
- Monitoring Tempdb in SQL Server 2005SQLServer
- ORACLE 10G 新特性(INCREMENTALLY UPDATED BACKUPS)學習Oracle 10gREM