Oracle export table structure and data

Source: Internet
Author: User

Oracle export table structure and data exp/imp tool: with parameters: rows = y -- with data export import; rows = n -- without data export import, only transplantation structure. For example, export the structure of only three tables: exp user/pasword @ dbServerName owner = user tables = (table1, table2, table3) rows = n file = c: \ 1.dmp associated data export: exp user/pasword @ dbServerName owner = user tables = (table1, table2, table3) rows = y file = c: \ 2.dmp imp user2/pasword @ dbServerName2 fromuser = user touser = user2 file = c: \ 1.dmp or imp user2/pasword @ dbServerName2 fromuser = user touser = user2 file = c: \ 2.dmp common command for exporting all table data of a user Exp user/password @ instance File = file. dmp rows = y log = log_name where username/password is the username and password of the exported user. Instance is the name of the exported Instance. Export the table structure of a user to an SQL file. Use the command as if all exported are dmp. you can use plsql software in tools --? Export user object if you do not want table space everywhere, do not include storage to select the exported path file name, export can be used to directly export all the table data of a user. The commonly used command Imp username/password file = file. dmp fromuser = user1 touser = user2 rows = y in which username/password is the user name and password used to import data to the database. Fromuser is the user Touser used to back up the database. Generally, it is the same as username.

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.