db refresh using hotback
I want to know the steps to do a database refresh or create a test database using hotbackup of production database. Can somebody please let me know the steps how to achieve that ?
1. alter db backup controlfile to trace (from primary)
2. precreate test db and shutdown
3. edit init.ora
4. restore hotbackup inc. arch files
5. edit trace file
6. recreate controlfile using trace file and recover db
So, I do this way...
CREATE CONTROLFILE set DATABASE "TEST" RESETLOGS noARCHIVELOG
GROUP 1 (
) SIZE 128M,
GROUP 2 (
) SIZE 128M,
GROUP 3 (
) SIZE 128M
CHARACTER SET WE8ISO8859P1;
RECOVER DATABASE using backup controlfile until cancel;
ALTER DATABASE OPEN resetlogs;
ALTER TABLESPACE TEMP ADD TEMPFILE '/dvl/oracle/db1/temp02.dbf'
SIZE 1024M REUSE AUTOEXTEND OFF;
when i do from colbackup, i wont use RECOVER DATABASE using backup controlfile until cancel;
so, in this case of hotbackup, I have to use RECOVER DATABASE using backup controlfile until cancel;
Waiting for input..
Make sure you include UNDO related parameters in the parameter file else create controlfile will fail.
UNDO related parameters applies to 9i right not for 8i ??
also I will be just doing alter backup controlfile to trace from PROD and then edit it to be run in TEST.
and when I do RECOVER DATABASE using backup controlfile until cancel, i guess I have to supply the archive logs ??
Thank you very much, if there is anything else that needs to be looked into,pls let me know.
Click Here to Expand Forum to Full Width