oracle Backup and Restore

It can be done with exp command, but depends on the specific backup.
  1. export a full database
    exp System / File Manager = Y = log = dible_db Full bible_db
  
  2. database definition without exporting the data derived
    exp System / File Manager bible_db = log Y = dible_db Full = n-rows =
  
  3. derive one or a group specifies all the tables user belongs, indexes and other objects
    exp System / Manager File = Seapark log = Seapark owner = Seapark
    exp System / Manager File = Seapark log = Seapark owner = (Seapark, Amy, amyc, Harold)
  Note: export when the user, although this has been the object of all users, but still can not get these object reference any synonyms. The solution is to use the following SQL * Plus to create a command script file, run the script file can get a rebuild all public synonyms executable script seapark belongs to the object, and then run the script can be rebuilt synonyms in the target database.
  
    132 LINESIZE the SET
    the SET 0 of PAGESIZE
    the SET trimspool the ON
    the SPOOL C: \ seapark.syn
    the SELECT 'public synonym for the Create' and synonym_name ||
    || 'for' table_owner || || || || table_name '.' ';'
    The FROM dba_synonyms
    the WHERE table_owner = 'Seapark' the AND owner = 'the PUBLIC';
    the SPOOL OFF
  
  4. deriving one or more designated tables
    exp seapark / File = log = Tank Seapark Tables Tank Tank =
    exp System / File Manager = log = Tank Tank Tables seapark.tank =
    exp System / File Manager = Tank Tank = Tables = log (seapark.tank, amy.artist)
  
  5. The estimates derived file size
  of all tables total number of bytes:
  the SELECT SUM (bytes)
  the FROM DBA_SEGMENTS
  the WHERE the segment_type = 'tABLE';
  
  total bytes seapark user belongs tables:
  the SELECT SUM (bytes)
  the FROM DBA_SEGMENTS
  the WHERE owner = 'Seapark'
  the AND the segment_type = 'TABLE';
  
  The number of bytes in the table aquatic_animal seapark user:
  the SELECT SUM (bytes)
  DBA_SEGMENTS the FROM
  the WHERE owner = 'Seapark'
  the AND the segment_type = 'TABLE'
  the AND segment_name = 'AQUATIC_ANIMAL';
  
  subset 6. export table data (Oracle8i above)
  NT system:
  
  exp System / Query Manager = '= the Where salad_type' FRUIT '' = amy.salad_type Tables
    file = log = Fruit Fruit
  the UNIX system:
  
  exp system / Query Manager = \ "the Where salad_type = \ 'FRUIT \' \" = amy.salad_type Tables
    file = log = Fruit Fruit
  
  7. The splitting a plurality of files an export file
    exp System / Manager
    file = (paycheck_1, paycheck_2, paycheck_3, paycheck_4)
    log = paycheck, Tables. 1G = filesize = hr.paycheck
  
  8. The parameter file
    exp System / Manager parfile = bible_tables.par
  bible_tables.par profile:
  
    The Sample Used for the Tables at The #export at The Oracle8i Database Administrator's Bible.
    File = bible_tables
    log = bible_tables
    the Tables = (
    amy.artist
    amy.books
    seapark.checkup
    seapark.items
    )
  
  9. incremental export
  "full" incremental export (complete), i.e., entire database backup
  exp System / = Complete File Manager INCTYPE 990702.dmp =
  "incremental" incremental export (incremental), i.e., the last backup changed data backup
  exp System / File Manager INCTYPE = the incremental = 990702.dmp
  " accumulative "incremental export (cumulative), i.e. a backup" completely changed after export "data
  exp system / manager inctype = cumulative file = 990702.dmp

Guess you like

Origin www.cnblogs.com/nietzsche2019/p/10969237.html