Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: rman backup restore questions and problems
"Tilwen" <tilwenbr_at_netscape.net> wrote in message
news:8a41a7df.0211261755.45874920_at_posting.google.com...
> I have a database about 100 gb in size. I do a full database backup
> every night. The other day, we had some corruption after a crash and
> it took a long time to do a restore on a tablespace, say 12 hours. I
> looked this up on metalink and there is a bug about the CKP table
> being over 10,000 records. They sent us a script to clean up this
> table. Well, that didn't help. I'm doing a test restore right now and
> it's going to take just as long to do it. The tablespace is only about
> 8gb in size. here is the commands we use to back it up.
> run
> { #ENV is case sensitive
> allocate channel t1 type 'sbt_tape' parms
> 'ENV=(DSMO_NODE=rx_r50,
> DSMI_CONFIG=/usr/tivoli/tsm/client/ba/bin/dsm.opt,
> DSMO_PSWDPATH=/usr/tivoli/tsm/client/oracle/bin,
> DSMI_DIR=/usr/tivoli/tsm/client/ba/bin,
> DSMO_AVG_SIZE=1000)';
> allocate channel t2 type 'sbt_tape' parms
> 'ENV=(DSMO_NODE=rx_r50,
> DSMI_CONFIG=/usr/tivoli/tsm/client/ba/bin/dsm.opt,
> DSMO_PSWDPATH=/usr/tivoli/tsm/client/oracle/bin,
> DSMI_DIR=/usr/tivoli/tsm/client/ba/bin,
> DSMO_AVG_SIZE=1000)';
> allocate channel t3 type 'sbt_tape' parms
> 'ENV=(DSMO_NODE=rx_r50,
> DSMI_CONFIG=/usr/tivoli/tsm/client/ba/bin/dsm.opt,
> DSMO_PSWDPATH=/usr/tivoli/tsm/client/oracle/bin,
> DSMI_DIR=/usr/tivoli/tsm/client/ba/bin,
> DSMO_AVG_SIZE=1000)';
> allocate channel t4 type 'sbt_tape' parms
> 'ENV=(DSMO_NODE=rx_r50,
> DSMI_CONFIG=/usr/tivoli/tsm/client/ba/bin/dsm.opt,
> DSMO_PSWDPATH=/usr/tivoli/tsm/client/oracle/bin,
> DSMI_DIR=/usr/tivoli/tsm/client/ba/bin,
> DSMO_AVG_SIZE=1000)';
> backup database;
> sql "alter system archive log current";
> backup archivelog all delete input;
> release channel t1;
> release channel t2;
> release channel t3;
> release channel t4;
> }
> here is the restore script.
> run
> { #ENV is case sensitive
> allocate channel t1 type 'sbt_tape' parms
> 'ENV=(DSMO_NODE=rx_r50,
> DSMI_CONFIG=/usr/tivoli/tsm/client/ba/bin/dsm.opt,
> DSMO_PSWDPATH=/usr/tivoli/tsm/client/oracle/bin,
> DSMI_DIR=/usr/tivoli/tsm/client/ba/bin,
> DSMO_AVG_SIZE=1000)';
> sql "alter tablespace d_cqm offline immediate";
> restore tablespace d_cqm;
> recover tablespace d_cqm;
> sql "alter tablespace d_cqm online";
> release channel t1;
> }
> i do realize that I should being doing the restore in parallel also,
> but I don't think that that would cut down the restore into a 3rd. it
> might, but I doubt it.
>
>
This may not be an RMAN be the issue. How long does it take to do a restore of a file using OS utilities? We've found that restores take about 4 times longer than backups using RMAN or tar (we are AIX 4.3.4). Received on Wed Nov 27 2002 - 10:21:19 CST