最好有详细的步骤

解决方案 »

  1.   

    exp/imp吗??还是其他    这个应该差不多吧
      

  2.   


    Backing Up an ARCHIVELOG Database特别需要注意一点:
    When you perform this initial whole database backup, make sure that the database is in ARCHIVELOG mode first. Otherwise, the backup control files will contain the NOARCHIVELOG mode setting.  
      

  3.   

    When you restore a datafile, the header has a record of the most recent datafile checkpoint that occurred before the online tablespace backup, not any that occurred during it. As a result, Oracle asks for the appropriate set of redo log files to apply should recovery be needed. 
    下面是详细步骤
    To back up online read-write tablespaces in an open database:Before beginning a backup of a tablespace, identify all of the tablespace's datafiles using the DBA_DATA_FILES data dictionary view. For example, assume that you want to back up the USERS tablespace. Enter the following: SELECT tablespace_name, file_name
    FROM sys.dba_data_files
    WHERE tablespace_name = 'USERS';
     
    TABLESPACE_NAME                     FILE_NAME
    -------------------------------   --------------------
    USERS                             /oracle/dbs/tbs_21.f
    USERS                             /oracle/dbs/tbs_22.fIn this example, /oracle/dbs/tbs_21.f and /oracle/dbs/tbs_22.f are fully specified filenames corresponding to the datafiles of the USERS tablespace. Mark the beginning of the online tablespace backup. For example, the following statement s the start of an online backup for the tablespace USERS: ALTER TABLESPACE users BEGIN BACKUP;
    --------------------------------------------------------------------------------
    WARNING: 
    If you forget to  the beginning of an online tablespace backup, or neglect to assure that the BEGIN BACKUP statement has completed before backing up an online tablespace, then the backup datafiles are not useful for subsequent recovery operations. Attempting to recover such a backup is risky and can return errors that result in inconsistent data. For example, the attempted recovery operation will issue a "fuzzy files" warning, and lead to an inconsistent database that will not open.  --------------------------------------------------------------------------------
     
     
    Back up the online datafiles of the online tablespace using operating system commands. For example, UNIX users might enter: % cp /oracle/dbs/tbs_21.f /oracle/backup/tbs_21.backup
    % cp /oracle/dbs/tbs_22.f /oracle/backup/tbs_22.backupAfter backing up the datafiles of the online tablespace, indicate the end of the online backup using the SQL statement ALTER TABLESPACE with the END BACKUP option. For example, the following statement ends the online backup of the tablespace USERS: ALTER TABLESPACE users END BACKUP;