Oracle Database Build Table

Source: Internet
Author: User

Create or replace directory Dumpdir as ' E:\oracle\dumpdir ';
Create temporary tablespace ydxt_temp
Tempfile ' E:\oracle\product\10.2.0\oradata\ydxt\ydxt_temp.dbf '
Size 50m
Autoextend on
Next 50m maxsize 20480m
Extent management Local;
Create Tablespace YDXT
Logging
DataFile ' E:\oracle\product\10.2.0\oradata\ydxt\ydxt.dbf '
Size 50m
Autoextend on
Next 50m maxsize 20480m
Extent management Local;
Create user Ydxt identified by hfzt123456
Default Tablespace YDXT
Temporary tablespace ydxt_temp;
Grant CONNECT,RESOURCE,DBA to YDXT;
Data Pump Import
IMPDP Hfzt/[email protected] dumpfile =ydxt-20161011. DMPDP Logfile=ydxt-20161011.log Directory=dumpdir
Data Pump Export
EXPDP Pgys/[email protected] Directory=dumpdir dumpfile=pgys20161213.dmp Logfile=pgys20161213.log


Delete User
Drop Userxxcascade
Log on as DBA
Sqlplus/nolog
Conn Sys/[email protected] database as SYSDBA
Or
Sqlplus "/as sysdba"

Oracle Database Build table

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.