0% found this document useful (0 votes)
86 views

Database

The document discusses how to backup an Oracle database using the export utility and how to put a database into ARCHIVELOG mode. To backup a database using export, one uses the Oracle export utility to extract data and logical definitions into a file in a logical backup. It is best to do full exports that include more information. To put a database into ARCHIVELOG mode, one issues commands as the SYS user to mount the database exclusively, alter it to ARCHIVELOG mode, start archiving logs, and then open the database. Alternatively, these commands can be added to the startup script.

Uploaded by

papusaha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
86 views

Database

The document discusses how to backup an Oracle database using the export utility and how to put a database into ARCHIVELOG mode. To backup a database using export, one uses the Oracle export utility to extract data and logical definitions into a file in a logical backup. It is best to do full exports that include more information. To put a database into ARCHIVELOG mode, one issues commands as the SYS user to mount the database exclusively, alter it to ARCHIVELOG mode, start archiving logs, and then open the database. Alternatively, these commands can be added to the startup script.

Uploaded by

papusaha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

How does one backup a database using the export utility?

Oracle exports are "logical" database backups (not physical) as they extract dat
a and logical definitions from the database into a file. Other backup strategies
normally back-up the physical data files.
One of the advantages of exports is that one can selectively re-import tables, h
owever one cannot roll-forward from an restored export. To completely restore a
database from an export file one practically needs to recreate the entire databa
se.
Always do full system level exports (FULL=YES). Full exports include more inform
ation about the database in the export file than user level exports. For more in
formation about the Oracle export and import utilities, see the Import/ Export F
AQ.
[edit] How does one put a database into ARCHIVELOG mode?
The main reason for running in archivelog mode is that one can provide 24-hour a
vailability and guarantee complete data recoverability. It is also necessary to
enable ARCHIVELOG mode before one can start to use on-line database backups.
Issue the following commands to put a database into ARCHIVELOG mode:
SQL> CONNECT sys AS SYSDBA
SQL> STARTUP MOUNT EXCLUSIVE;
SQL> ALTER DATABASE ARCHIVELOG;
SQL> ARCHIVE LOG START;
SQL> ALTER DATABASE OPEN;
Alternatively, add the above commands into your database's startup command scrip
t, and bounce the database.

You might also like