FS
Documentation

Backup3G/DA-Oracle/User Guide/Searching and Restoring Oracle Backups

This page was last modified 08:06, 3 September 2007.

From Documentation

< Backup3G(Difference between revisions)
Jump to: navigation, search
Revision as of 02:28, 18 April 2006
Moff (Talk | contribs)
(To Search for Backups of an Oracle Object)
← Previous diff
Current revision
Moff (Talk | contribs)
(To Restore from an Oracle Backup)
Line 29: Line 29:
<br> <br>
=== To Search for Backups of an Oracle Object === === To Search for Backups of an Oracle Object ===
-#Select Search > Oracle. The ‘Search media contents for Oracle objects’ prompt form is displayed.+#Select {{cnav|Search > Oracle}}. The ‘Search media contents for Oracle objects’ prompt form is displayed.
#Enter the following search fields. #Enter the following search fields.
#;Object type:Select the type of object you want to search for. #;Object type:Select the type of object you want to search for.
Line 51: Line 51:
== Selecting Oracle Backups to Restore == == Selecting Oracle Backups to Restore ==
-'''Caution -''' Don’t restore files to an online database. Only restore files to an offline database to ensure that database integrity will be maintained.+{{Caution|Don’t restore files to an online database. Only restore files to an offline database to ensure that database integrity will be maintained.}}
<br> <br>
=== Target Host and Directory === === Target Host and Directory ===
Some backup3G users have restrictions on which hosts and directories they can restore to (see Restricting Recovery Destinations by Role in the [[backup3G]] User Guide for more details). For example users with the Operator role may be restricted to restoring Some backup3G users have restrictions on which hosts and directories they can restore to (see Restricting Recovery Destinations by Role in the [[backup3G]] User Guide for more details). For example users with the Operator role may be restricted to restoring
-files to the /tmp directory on any host, and to any directory on host ‘playpen’.+files to the <code>/tmp</code> directory on any host, and to any directory on host ‘playpen’.
If you have any such restrictions, backup3G will ask to choose a target host and directory from the list of permitted destinations. If you have no restrictions you can choose any host and directory in the ‘Recovery Details’ prompt form. If you have any such restrictions, backup3G will ask to choose a target host and directory from the list of permitted destinations. If you have no restrictions you can choose any host and directory in the ‘Recovery Details’ prompt form.
Line 73: Line 73:
=== To Restore from an Oracle Backup === === To Restore from an Oracle Backup ===
#From the Recovery module, select the media set containing the backup to be restored. #From the Recovery module, select the media set containing the backup to be restored.
-#Select Contents > Open to list the contents of the media set. Each file in the media set corresponds to an item in the backup job.+#Select {{cnav|Contents > Open}} to list the contents of the media set. Each file in the media set corresponds to an item in the backup job.
#Select the files to restore: #Select the files to restore:
#:To select a file &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- click on it. #:To select a file &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- click on it.
Line 80: Line 80:
#:To extend the selection &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- Shift-click on another file. #:To extend the selection &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- Shift-click on another file.
#:To select all files &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- press Control-Shift-Button1 #:To select all files &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- press Control-Shift-Button1
-#Select Recover > Background.+#Select {{cnav|Recover > Background}}.
#If you have any recovery restrictions, backup3G will list which directories and hosts you can restore to. Choose a destination.<br>If you have no restrictions, this step is skipped. #If you have any recovery restrictions, backup3G will list which directories and hosts you can restore to. Choose a destination.<br>If you have no restrictions, this step is skipped.
#Fill in these fields in the ‘Recovery Details’ prompt form. #Fill in these fields in the ‘Recovery Details’ prompt form.
Line 92: Line 92:
---- ----
 +Copyright © 1997-{{CURRENTYEAR}} Functional Software. All rights reserved.
 +
{| cellpadding="10" cellspacing="5" {| cellpadding="10" cellspacing="5"
|- |-
-|[[Defining Oracle Backups|Previous Section]]+|[[Backup3G/DA-Oracle/User Guide/Defining Oracle Backups|Previous Section]]
|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-|[[DA-Oracle Command Reference|Next Section]]+|[[Backup3G/DA-Oracle/Command Reference|Next Section]]
|} |}

Current revision

Backup3G’s Recovery module lists all the current backups in the media database, including Oracle backups.


Contents

Searching Oracle Backups

You use the backup3G Recovery module to search for and restore from Oracle backups. You can open a media set to view its contents and restore all or selected files.


To launch the Recovery module

From the backup3G button bar (GUI)

From the backup3G main menu (CUI)


What Oracle Objects Can You Search For

If you don’t know which media set contains the correct backup, you can search the media contents table for all backups of a particular Oracle object.

These are the types of Oracle object you can search for:

SID
An entire instance.
You can’t specify a pattern search when searching for a SID. Simply choose a SID to display all matching backups.
tablespace
Tablespaces are listed in the media contents table in the form: TABLESPACENAME:filename.
To search for a particular tablespace, enter the name in the Pattern field followed by /*.
Example - To search for a set of tablespaces with similar names, use the * wildcard in the tablespace name.
control
A control file, which records the name, location, and state of all data files and redo log files in the database.
redo
Online redo log files, which record recent changes to the database.
archive
Archived or ‘offline’ redo log files.


To Search for Backups of an Oracle Object

  1. Select Search > Oracle . The ‘Search media contents for Oracle objects’ prompt form is displayed.
  2. Enter the following search fields.
    Object type
    Select the type of object you want to search for.
    SID
    Choose the SID.
    Pattern
    For objects other than whole SIDs you can specify a pattern. Only objects whose name matches the pattern will be returned. The type of pattern matching is determined by the Pattern type field.
    Press Choose to list the names of all backups of this object type.
    Choose one.
    Leave the pattern as is to search for all backups for this object. If you wish you can use wild cards to broaden the search.
    Host
    Choose a host, or leave this field blank to search all hosts.
    Written on or after
    Limit the search to backups written from this date until today.
    Written on or before
    Limit the search to backups written on this date or earlier.
    Pattern type
    Select ‘filepat’ to treat the contents of the Pattern field as a shell file pattern. Select ‘regexp’ to treat the contents of Pattern as a regular expression.
  3. Press Accept to initiate the search.

Backup3G lists each media set containing a backup of this object type and SID that matches the pattern. You can restore selected directories in background or interactive mode from this list.

If the list is long, use the Search function to jump to a particular backup by entering all or part of the name.


Selecting Oracle Backups to Restore


Caution
Caution!
Don’t restore files to an online database. Only restore files to an offline database to ensure that database integrity will be maintained.


Target Host and Directory

Some backup3G users have restrictions on which hosts and directories they can restore to (see Restricting Recovery Destinations by Role in the backup3G User Guide for more details). For example users with the Operator role may be restricted to restoring files to the /tmp directory on any host, and to any directory on host ‘playpen’.

If you have any such restrictions, backup3G will ask to choose a target host and directory from the list of permitted destinations. If you have no restrictions you can choose any host and directory in the ‘Recovery Details’ prompt form.


Symbolic Links

DA-Oracle follows symbolic links during an online or offline backup. That is, it backs up the target of the link, not just the link itself.

When you restore from backup the target of a symbolic link, make sure you restore the data to its original location, and not to the location of the link.

Example: /usr/orahome/dbs/log1WG73.log is a link to the redo log file /var/B1/dbs/log1.log.

When you restore this redo log from an online backup, select the file name from the media contents and specify the target directory as /var/B1/dbs. If the link /usr/orahome/dbs/log1WG73.log has been removed you will need to recreate it.


To Restore from an Oracle Backup

  1. From the Recovery module, select the media set containing the backup to be restored.
  2. Select Contents > Open to list the contents of the media set. Each file in the media set corresponds to an item in the backup job.
  3. Select the files to restore:
    To select a file                        - click on it.
    To select several files              - click and drag from the first file down to the last.
    To add a file to the selection   - Control-click on it.
    To extend the selection           - Shift-click on another file.
    To select all files                      - press Control-Shift-Button1
  4. Select Recover > Background .
  5. If you have any recovery restrictions, backup3G will list which directories and hosts you can restore to. Choose a destination.
    If you have no restrictions, this step is skipped.
  6. Fill in these fields in the ‘Recovery Details’ prompt form.
    Recover to host
    Select the name of the host to which the files should be restored. The default is the original host.
    Into directory
    Specify where the restored files should go. The target directory will be created if it doesn’t already exist.
    When you restore the backup files, any existing files of the same name in the target directory will be overwritten. Therefore, it is best to restore to a temporary directory first.
    Drive/Pool
    Press Choose to see the list of valid drives and drive pools.
    Choose a drive and press Accept.
    Auto unload
    Select ‘yes’ to unload the backup tape from the drive after the recovery has finished.



Copyright © 1997-2024 Functional Software. All rights reserved.

Previous Section            Next Section