Oralce backup and recovery!

Source: Internet
Author: User
Oracle database backup and recovery

Backup
1. Conn sys/*** as sysdba
2. Select dbid, name, log_mode, current_scn from V $ database; -- Note that if log_mode is noarchivelog, perform the following operations.
3. Select name from V $ datafile Union select name from V $ controlfile; -- searches all data files and control files.
4. Shutdown immediate
5. Host copy
6. startup

Restore
1. Conn sys/*** as sysdba
2. Shutdown immediate
3. Host copy
4. startup Mount
5. revover database until cancel
6. Alter database open resetlogs

Logical backup and recovery
1. create directory dump dir as 'd: Dump ';
Grant read, wirte on directory dump_dir to Scott;

2. Run in DOS environment
3. D: oracleproduct10.1.0db _ 1bin> expdp zzh48182/z86589947 tables = ttextperson directory = test_dir dumpfile = ttextperson. dmp

4. D: oracleproduct10.1.0db _ 1bin> impdp zzh48182/z86589947 directory = test_dir dumpfile = ttextperson. dmp tables = ttextperson remap_schema = zzh48182: rhx

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.