Oracle Database Backup

Source: Internet
Author: User

Create a temporary table space
Create temporary tablespace test_temp
Tempfile ' D:\oracle\data\test\test_temp.dbf '
Size 32m
Autoextend on
Next 32m
Extent management Local;


Create a data table space
Create Tablespace Test_data
Logging
DataFile ' D:\oracle\data\test\test_data.dbf '
Size 1024m
Autoextend on
Next 32m
Extent management Local;

To create a user:
Create user test_user identified by 123456;
Grant DBA to Test_user;

To create an import/export path:
Create directory My_dire as ' D:\db_bak\dump ';
Grant read, write on directory my_dire to Test_user;

Import, Export

EXPDP test_user/123456 directory=my_dire dumpfile=test_user.dmp logfile=test_user_exp.log

IMPDP test_user/123456 directory=my_dire dumpfile=test_user.dmp logfile=test_user_imp.log remap_schema=test_user: Test_user2 Remap_tablespace = Test_data:test_data2

Oracle Database Backup

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.