Oracle backup and recovery of single or multi-table data

Source: Internet
Author: User
Oracle backup, recovery of single or multi-table data steps, applicable to Oracle8, 9, 10.

Oracle backup, recovery of single or multi-table data steps, applicable to Oracle 8, 9, 10.

Oracle backup, recovery of single or multi-table data steps, applicable to Oracle 8, 9, 10.

* Back up single or multi-table data:

Exp user/password @ server file = filefullpathname log = logfullpathname tables = (tablespacename. table1, tablespacename. table2 ,...)

For example, the author wants to export data from table 1 and table 2 in table 1 in table 1 in table 1 in table 1 in table 1 in table 1 in table 1 in table 1 in table 1 in table 1 in table 1 in table 2 in user name sybj, and the command in CMD in win is as follows:

F:/oralce/ora92/bin> exp sybj/sybj @ lyzz file = G:/tmps/test009.tmp log = G:/tmps/test009.log tables = (sybj. table1, sybj. table2)

The backup file test009.tmp will be generated under the directory G:/tmps.

* Single-table or multi-table data recovery:

If the recovered table already exists, delete it first. Otherwise, the "IMP-0015" error is reported. The Import fails. The single-table or multi-table data recovery command is as follows:

Imp user/password @ server file = filefullpathname log = logfullpathname full = y

In the preceding example, recover data from table1 and table2. The CMD command in win is as follows:

F:/oralce/ora92/bin> imp sybj/sybj @ lyzz file = G:/tmps/test009.tmp log = G:/tmps/test009imp. log full = y

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.