Oracle command Summary-data migration

Source: Internet
Author: User
Chapter 6: load data
    1.loading data using direct_load insert 
    sql> insert /*+append */ into emp nologging 
    sql> select * from emp_old; 
    2.parallel direct-load insert 
    sql> alter session enable parallel dml; 
    sql> insert /*+parallel(emp,2) */ into emp nologging 
    sql> select * from emp_old; 
    3.using sql*loader 
    sql> sqlldr scott/tiger \ 
    sql> control = ulcase6.ctl \ 
    sql> log = ulcase6.log direct=true 
Chapter 7: reorganizing data
    1.using expoty 
    $exp scott/tiger tables(dept,emp) file=c:\emp.dmp log=exp.log compress=n direct=y 
    2.using import 
    $imp scott/tiger tables(dept,emp) file=emp.dmp log=imp.log ignore=y 
    3.transporting a tablespace 
    sql>alter tablespace sales_ts read only; 
    $exp sys/.. file=xay.dmp transport_tablespace=y tablespace=sales_ts 
    triggers=n constraints=n 
    $copy datafile 
    $imp sys/.. file=xay.dmp transport_tablespace=y datafiles=(/disk1/sles01.dbf,/disk2 
    /sles02.dbf) 
    sql> alter tablespace sales_ts read write; 
    4.checking transport set 
    sql> dbms_tts.transport_set_check(ts_list =>''sales_ts'' ..,incl_constraints=>true); 
View in Table transport_set_violations
SQL> If dbms_tts.isselfcontained is true, it indicates self-contained

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.