Oracle Data Import and Export imp/expsp2-0734: the beginning of an unknown command imp

Source: Internet
Author: User
Importing and exporting impexpsp2-0734 with Oracle Data today: an Unknown command starts with imp ignoring the default category of the remaining rows. Let's look at the solution below.

Today I'm using Oracle Data to import and export imp/exp sp2-0734: Unknown command starting with \ 'Imp ignores the default classification of the remaining lines, so let's look at the solution below.

Today I'm using Oracle Data to import and export imp/exp sp2-0734: Unknown command starting with \ 'Imp ignores the default classification of the remaining lines, so let's look at the solution below.

Sp2-0734: Unknown command starting with 'Imp ignored the default category for the remaining lines

It should be executed at the doscommand prompt in cmd, rather than in sqlplus ...... However, the format must be similar:

Imp PERSONNEL_MANAGE/MWQ @ DBSQL full = y file = C: personnel_manage.dmpignore = y

I would like to commemorate my carelessness ..... I am wrong.

The imp command is executed at the dos prompt.
Run the command directly after cmd instead of in SQL.


Data export:
1. Export the database TEST completely, and the username system Password manager is exported to D: daochu. dmp.
Exp system/manager @ TEST file = d: daochu. dmp full = y
2. Export the tables of system users and sys users in the database
Exp system/manager @ TEST file = d: daochu. dmp owner = (system, sys)
3. Export the inner_policy and policy_staff_relat tables in the database.
Exp aichannel/aichannel @ TESTDB2 file = d: datanewsmgnt. dmp tables = (inner_policy, policy_staff_relat)

4. Export the data with the field filed1 in table 1 in the database starting with "00"
Exp system/manager @ TEST file = d: daochu. dmp tables = (table1) query = "where filed1 like '201312 '"

The above is a commonly used export. For compression, you can use winzip to compress the dmp file.
You can also add compress = y to the command above.

Data Import
1. import data from D: daochu. dmp to the TEST database.
Imp system/manager @ TEST file = d: daochu. dmp
Imp aichannel/aichannel @ HUST full = y file = d: datanewsmgnt. dmp ignore = y
The above may be a problem, because some tables already exist, and then it will report an error, the table will not be imported.
Add ignore = y to the end.
2. Import table 1 in d: daochu. dmp
Imp system/manager @ TEST file = d: daochu. dmp tables = (table1)

The preceding import and export operations are sufficient. In many cases, you must first completely delete the table and then import it.

Note:
If the operator has sufficient permissions, a prompt is displayed.
Databases can be connected. You can use tnsping TEST to obtain whether the database TEST can be connected.


Of course, the above method may export a large package when exporting data, because your user may grant DBA permissions during authorization, therefore, you can use the following method to back up the database:

Database Backup
We recommend that you back up the data every week after the system transition. Or back up the data table to be changed before the data table changes significantly.
Perform the following steps to back up the data.
In the command line, type "cmd" and press enter to enter the command line window.
In the window, enter:
Exp mas/123456 @ mas

System prompt: enter an array to extract the buffer size: 4096>
You can press enter directly;

System prompt: Export File: EXPDAT. DMP>
Enter the location of the exported file. The path must exist. Oracle will not automatically create the path here, but the file name can be created. The backup file is suffixed with dmp.
Input content such as: e: workmas_db_090925v1.dmp press ENTER

System prompt: (1) E (complete database), (2) U (User) or (3) T (table): (2) U> u
You can enter u or press enter, because the default value is U.

System prompt: Export Permission (yes/no): yes> press ENTER

System prompt: export table data (yes/no): yes> press ENTER

System prompt: compression zone (yes/no): yes> press ENTER

System prompt: user to be exported: (RETURN to exit)> mas

System prompt: user to be exported: (RETURN to exit)> press ENTER

At this time, the system will automatically back up

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.