
Originally Posted by
PAVB
pl/sql code to take a hot backup?
You can either use the rman solution suggested by previous poster or do it the good-n-old way.
Put tablespaces in backup mode
Copy datafiles
Take tablespaces out of backup mode
Be sure your database is in archivelog mode and you are backing up your archivelogs.
I wrote our current backup script to use PL/SQL to generate the SQL backup script which is then run to put each tablespace into backup mode so that its datafiles can be backed up and gzipped. So yes PL/SQL might make sense.
Although, we are in the process of converting to RMAN. The feature set in 10g and especially 11g is just too good. I have a script that either clones or sets up a standby database all using RMAN, on the same or a different server as the source db.
this space intentionally left blank
Bookmarks