Oracle Data Import and Export Learning

Source: Internet
Author: User
I. Oracle data export: (1. Completely export the data in the linuxidc database. The username and password of the database are linuxidc and exported to the local E: data.

1. Oracle data export: (1. Completely export the data in the linuxidc database, and export the username and password of the database to the local E: \ data.

1. Oracle data export:

(1) completely export the data of the linuxidc database, the username of the database linuxidc, And the password linuxidc to the local E: \ data. dmp.

Exp linuxidc/linuxidc @ linuxidc file = E: \ data. dmp full = y

(2) export the tables of linuxidc users and sys users in the database

Exp linuxidc/linuxidc @ linuxidc file = E: \ data. dmp owner = (linuxidc, sys)

(3) Export tables table1 and table2 in the database

Exp linuxidc/linuxidc @ linuxidc file = E: \ data. dmp tables = (table1, table2)

(4) export the data with the field "area" in table 1 in the database as "Nanchang"

Exp system/manager @ TEST file = E: \ data. dmp tables = (table1) query = \ "where area = 'nanchang '\"

The preceding commands can cope with common export operations. If you want to compress the exported data file dmp, you can use zip or WinRAR, you can also append the command parameter compress = y after the preceding command to compress.

Ii. Oracle data import:

(1) import the data in E: \ data. dmp to the linuxidc database.

Imp linuxidc/linuxidc @ linuxidc file = E: \ data. dmp

Some warnings or problems may occur during the import process. For example, if a table already exists, an error is reported, so the table is not imported. At this time, the import operation will stop, but we want to continue the subsequent import, you can add ignore = y after a warning, problem:

Imp linuxidc/linuxidc @ linuxidc full = y file = E: \ data. dmp ignore = y

For more information about Oracle, see the Oracle topic page? Tid = 12

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.