How Oracle databases are exported and re-import

Source: Internet
Author: User
Tags dba oracle database
Oracle database Export and re-import one, export database?
1 2 3 4 5 6 1, the database TEST completely exported, user name Scott password Tiger, exported to d:testdb.dmp: [plain] exp scott/tiger@test file=d:testdb.dmp full=y 2, To export the table EMP in the database: [plain] exp scott/tiger@test file=d:testdb.dmp tables= (EMP)

Second, import the database
1 2 3 4 5 6 1. Import a full database [plain] imp scott/tiger@test file=d:testdb.dmp full=y ignore=y 2, import a table emp [plain] imp scott/tiger@test file=d : Testdb.dmp tables= (EMP)

Report:
1 2 3 4 5 6 7 8 9 1. Cascade Delete user scott: [SQL] drop user Scott Cascade;  2. Create user Scott, password tiger: [SQL] Create user Scott identified by Tiger; 3. Give Scott DBA Authority: [SQL] Grant DBA to Scott;

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.