Create table spaces, users, directories, import \ Export files, and more from the Oracle database

Source: Internet
Author: User

1. CREATE TABLE Space

Create Tablespace Ts_aw

Logging

DataFile ' d:\app\Administrator\product\tablespace\ts_aw.dbf '

Size 10M

Autoextend on

Next 5M

MaxSize 20480M;

2. Create user

Create user HB identified by HB

Default Tablespace Ts_aw;

3, to the user authorization limit

Grant CONNECT,RESOURCE,DBA to HB;

4. Create a Directory

Create or replace directory Data_pump_dir as

' E:\data_pump_dir ';

Grant Read,write on directory Data_pump_dir to HB;

Grant Exp_full_database,imp_full_database to HB;

Exit

5. Import files

Imp userid=hb/[email protected] file=f:\c3\project\tzhb\hb.dmp full=y;

Or

IMPDP HB/HB Directory=data_pump_dir

DUMPFILE=GTS.MP Table_exists_action=append

Data_options=skip_constraint_errors nologfile=y;

6. Export File

EXPDP HB/HB Directory=data_dump_dir dumpfile=hb.dmp

Logfile=hb.log

Compression=all SCHEMAS=HB include=table: "\like ' gt% ' \";

Or

Exp HB/HB file= file path \xxx.dmp;



Original link: http://www.cnblogs.com/wush-2015/p/4499424.html

Create table spaces, users, directories, import \ Export files, and more from the Oracle 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.