[Backup and recovery] for Oracle databases]

Source: Internet
Author: User
Tags sql loader
Rman features are powerful and operations are relatively complicated. For common developers, it is generally not required for daily work. interested colleagues can view Oracle-related resources.

Rman features are powerful and operations are relatively complicated. For common developers, it is generally not required for daily work. interested colleagues can view Oracle-related resources.

I. Physical backup tool rman (Recovery Manager)

Rman features are powerful and operations are relatively complicated. For common developers, it is generally not required for daily work. interested colleagues can view Oracle-related information for details.

Ii. Logical backup tool exp & imp

Exp & imp tool programs are easy to use and are generally used by database-related developers. This course mainly introduces exp & imp.

Iii. Data Loading tool SQL Loader

SQL Loader is mainly used to load text files to the database.

Next we will focus on exp & imp
1. Precautions for using exp & imp
To use exp and imp, you must ensure that the character set of the server and client is consistent. When exporting through exp, the Client Version is best consistent with that of the server, the database version recovered through imp cannot be lower than the original database version.

  • -- 2. Back up the specified table
  • -- 3. Backup by user
  • -- 4. Full-Database Backup
  • -- 5. Back up the specified tablespace
  • -- 6. Export based on conditions
  • -- 7. Restore the data of the specified table from the backup file
  • -- 8. Restore the entire backup file
  • The following describes the data loading tool SQL Loader.
    1. Basic Steps
    Data migration using SQL Loader is generally divided into three steps:
    1. Generate a text file.
    2. Write control files.
    Third, the import command.
    2. Write Control Files
    Load data infile "D: \ t_card_bill.txt"
    Append into table t_Card_bill fields terminated ','
    Optionally enclosed '"'
    (Uaccountno, billtype, clerk, serviceno, fee_date 'yyyy-MM-DD HH24: MI: ss ',
    Fee_enddate date 'yyyy-MM-DD HH24: MI: ss', caller_number, called_number, duration)
    3. Import commands
    Sqlldr username/password @ database control = control file path \ control File Name
    Readsize = 5000000 bindsize = 5000000 rows = 1000

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.