Oracle exp imp backup and recovery of table space data

Source: Internet
Author: User

Oracle exp imp backup and recovery of table space data

Oracle backup is divided into logical backup and physical backup. Logical backup is exp/imp; physical backup includes cold backup, hot backup, and RMAN backup. Exp/imp has three modes: Table mode, user mode, and full database mode.

Oracle Import and Export expdp IMPDP details

Solution to Oracle 10g expdp export error ORA-4031

Oracle 10gr2 rac expdp error UDE-00008 ORA-31626

Use of expdp/impdp to back up databases in Oracle

1. Use exp/imp to back up the tablespace

Exp user/password @ server file = filefullpathname log = logfullpathname

For example, to export a table space with the username "bsm", password "forebsm", and sid "bsm", run the following command on Linux:

Exp bsm/forebsm @ bsm owner = bsm file =/home/bsm. ump log =/home/bsmexp. log

(Bsm/forebsm @ bsm

Username/password @ Instance name, the same below)

The backup file bsm. mmp will be generated in the directory/home.

2. Use exp/imp to restore the tablespace

Imp user/password @ server ignore = y rows = y full = y commit = y buffer = 4096000 file = filefullpathname

In the preceding example, the Linux platform command is as follows:

Imp bsm/forebsm @ bsm fromuser = bsm touser = bsm file =/home/bsm. ump log =/home/bsmimp. log

When porting tablespaces in two databases, you must note which database to create a tablespace must be greater than or equal to the tablespace in the original database. Otherwise, an error is returned.

Note: When exp/imp is used to recover data, you must first create a database in the three modes, then create a tablespace, create a user, and then use the statements described above to restore the database.

Related Article

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.