(If applicable)
Other Text:
(Examples or comments displayed on slide, if any).
(If applicable)
Other Text:
(Examples or comments displayed on slide, if any).
(If applicable)
Other Text:
(Examples or comments displayed on slide, if any).
(If applicable)
Other Text:
(Examples or comments displayed on slide, if any).
(If applicable)
Other Text:
(Examples or comments displayed on slide, if any).
RMAN> spool log to test.log <br>RMAN> run { <br>2> allocate channel d1 type disk maxopenfiles 1 format <br>3> backup tag='spool_test' tablespace ts1; } <br>RMAN> <br>RMAN> spool log off<br>C:\>rman log=weeklyfull.log cmdfile=weeklyfull.rman <br>RMAN> 2> 3> <br>C:\><br>
(If applicable)
Other Text:
(Examples or comments displayed on slide, if any).
(If applicable)
Other Text:
(Examples or comments displayed on slide, if any).
(If applicable)
Other Text:
(Examples or comments displayed on slide, if any).
RMAN> run { <br>2> allocate channel t1 type sbt MAXOPENFILES 1 <br>3> PARMS="BLKSIZE=16000"; <br>4> set command id to 'daves test'; <br>5> backup force tag='pgatest' tablespace ts5; } <br> <br>RMAN-00571: =========================================================== <br>RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== <br>RMAN-00571: =========================================================== <br>RMAN-03009: failure of allocate command on t1 channel at 11/29/2003 16:11:51 <br>ORA-19554: error allocating device, device type: SBT_TAPE, device name: <br>ORA-27018: BLKSIZE is not a multiple of the minimum physical block size <br>Additional information: 16000 <br>Additional information: 16384<br>
(If applicable)
Other Text:
(Examples or comments displayed on slide, if any).
See the RMAN Tuning lesson for additional uses of these views.<br>
(If applicable)
Other Text:
(Examples or comments displayed on slide, if any).
R2<br>
(If applicable)
Other Text:
(Examples or comments displayed on slide, if any).
system@TEST> select p.pid, p.spid, s.program <br> 2 from v$process p, v$session s <br> 3 where p.addr = s.paddr <br> 4 / <br> <br> PID SPID PROGRAM <br>---------- ------------ ---------------------- <br> 8 1743 oracle@beatles (CJQ0) <br> 9 1745 oracle@beatles (QMN0) <br> 14 2257 sqlplus.exe <br> PID SPID PROGRAM <br>---------- ------------ ----------------------- <br> 8 1743 oracle@beatles (CJQ0) <br> 9 1745 oracle@beatles (QMN0) <br> 14 2257 sqlplus.exe <br> 15 2288 RMAN.EXE <br> 16 2290 RMAN.EXE <br>One process to run RMAN ops; One “shadow” process to log progress<br>
(If applicable)
Other Text:
(Examples or comments displayed on slide, if any).
system@TEST> / <br> <br> PID SPID PROGRAM <br>---------- ------------ -------------------- <br> 8 1743 oracle@beatles (CJQ0) <br> 9 1745 oracle@beatles (QMN0) <br> 14 2257 sqlplus.exe <br> 15 2288 RMAN.EXE <br> 16 2290 RMAN.EXE <br> 17 2334 RMAN.EXE <br>PGA_USED_MEM PGA_MAX_MEM <br>------------ ----------- <br>142721 471245 <br>337573 737781 <br>344857 685365 <br>411697 931881 <br>276581 687441 <br>17149857 21769153<br>One session started for every channel<br>Use Unix “ps” command to see process 2334<br>
(If applicable)
Other Text:
(Examples or comments displayed on slide, if any).
RMAN> run { <br>2> allocate channel d1 type disk; <br>3> set command id to 'dave test'; <br>4> backup tablespace users;}<br> 1 select p.pid as sid, s.serial#, p.spid as osid, <br> 2 s.program, s.client_info <br> 3 from v$process p, v$session s <br> 4 where p.addr = s.paddr <br> 5* and (s.program like '%RMAN%' or s.program is null) <br> <br> SID SERIAL# OSID PROGRAM CLIENT_INFO <br>---------- ---------- ----- ---------- ----------------------------- <br> 16 375 10338 RMAN.EXE id=daves test <br> 17 147 10340 RMAN.EXE <br> 18 341 10342 RMAN.EXE id=daves test,rman channel=d1<br>Helps identify processes<br>OSID is the Linux process id<br>
(If applicable)
Other Text:
(Examples or comments displayed on slide, if any).
system@TEST> SELECT sid, serial#, context, sofar, totalwork, <br> 2 round(sofar/totalwork*100,2) "% Complete" <br> 3 FROM v$session_longops <br> 4 WHERE totalwork != 0 <br> 5 AND sofar <> totalwork; <br> <br> SID SERIAL# CONTEXT SOFAR TOTALWORK % Complete <br>---------- ---------- ---------- ---------- ---------- ---------- <br> 19 346 4 0 124960 0 <br> 15 383 1 49805 124960 39.86 <br>system@TEST> / <br> <br> SID SERIAL# CONTEXT SOFAR TOTALWORK % Complete <br>---------- ---------- ---------- ---------- ---------- ---------- <br> 19 346 4 0 124960 0 <br> 15 383 1 100063 124960 80.08<br>re-execute query<br>Total for all channels if multiple channels are allocated<br>
(If applicable)
Other Text:
(Examples or comments displayed on slide, if any).
system@TEST> SELECT sid, seconds_in_wait AS sec_wait, event <br> 2 FROM v$session_wait <br> 3 WHERE wait_time = 0 <br> 4 ORDER BY sid; <br> <br> SID SEC_WAIT EVENT <br>---------- ---------- ------------------------------------- <br> 1 82491 pmon timer <br>. . . <br> 12 1006 SQL*Net message from client <br> 16 0 SQL*Net message from client <br> 17 1006 imm op <br> 18 1006 sbtbackup<br>
(If applicable)
Other Text:
(Examples or comments displayed on slide, if any).
(If applicable)
Other Text:
(Examples or comments displayed on slide, if any).
RMAN> run { <br>2> allocate channel t1 type sbt MAXOPENFILES 8 parms= <br>3> backup tag='test' tablespace ts6; } <br> <br>allocated channel: t1 <br>channel t1: sid=17 devtype=SBT_TAPE <br>channel t1: NMO v3.5.0.1 <br> <br>Starting backup at 29-NOV-03 <br>. . . <br>channel t1: starting piece 1 at 29-NOV-03 <br>^C <br>C:\OracleScripts\RMAN><br>CTRL+C on Windows client terminates RMAN<br>
(If applicable)