What is the procedure for doing a hot backup when the database is up?

    Requires Free Membership to View

There are two ways. The preferred way with Oracle's databases today is to use RMAN. The following will perform a hot backup using RMAN:

rman target /
run {
   allocate channel t1 type disk format '/dir/%d_FULL_%U ';
   backup database;
}

Alternatively, you can place a tablespace in hot backup mode by the following:

ALTER TABLESPACE ts_name BEGIN BACKUP;

Once a tablespace is in backup mode, you can use any OS utility to copy the tablespace's datafiles to the backup location. Once the tablespace backup is done, end the tablespace backup:

ALTER TABLESPACE ts_name END BACKUP;

Repeat for each tablespace.

Read more about hot backups and other backup and recovery issues in our Database storage management All-in-One Guide.

This was first published in June 2008

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: