Label:Oracle data import and export imp/exp is equivalent to Oracle data restore and backup. The EXP command can export data from a remote database server to a local DMP file, and the IMP command can import the DMP file from a local to a distant database server. With this feature you can build two identical databases, one for testing and one for formal use.Execution environment: can be executed in SQLPLUS.E
This command is always forgotten, so I wrote it directly on my blog for future reference. Every time I use it in the province, I will check it online.
After summing up, the following command can basically solve the problem:
/Home/Oracle/product/bin/IMP username/password full = y file = backup file path ignore = yReplace the preceding Chinese characters with the values of your actual environment. remember that the path of the Oracle imp command is in/home/Oracle/product/bin, which is also the
-00008:unrecognized statement in the export file:. Importing SH ' s objects into SH. . Importing table "countries" rows importedImport terminated successfully with warnings.[Email protected] ~]$[Email protected]> Conn Sh/shConnected.[Email protected]> DESC COUNTRIESName Null? Type----------------------------------------- -------- ----------------------------country_id not NULL numberCountry_iso_code not NULL CHAR (2)Country_name not NULL VARCHAR2 (40)Country_subregion not NULL VARCHAR2 (30)count
You can import the table structure and table data of one or more database tables into the export at the same time by importing and exporting DMP files. Here's how to import and export.
First enter the command line, click Start, enter cmd:
Enter, the command line window appears:
The Import command is: IMP username/password @ NETWORK service name File=xxx.dmp full=y;
Such as:
The exported command is: Exp username/password @ NET
Tags: User name student three ways to prompt RAC DMI test NIS user1. Command line ParametersFor example: Exp scott/[email protected] tables=emp file=d:\test.dmp2. Interactive promptFor example: C:\users\administrator>exp + ENTEREnter user name, carriage returnInput password, enterEnterEnter the path of the exportEnterEnter...3. parameter fileCreate a new file Par.txtInside Input:Userid=scott/[email protected]Tables=studentFile=d:\test.dmpSaveBack to the command line: Input D: Enter, return to D
under a user:Drop User xxx cascade;Drop tablespace XXXX including CONTENTS;To create a user :Create user username identified by password;Authorized users :Grant Create session,create any table,create any view,create any index,create any procedure,create any trigger,create any Type,create any sequence,alter any table,alter any procedure,alter any trigger,alter any type, alter any sequence,drop any Table,drop any view,drop any index,drop any procedure,drop any trigger,drop any type,drop any seque
Do you have this kind of trouble, want to turn the company project into its own project resource pool. But the project was completely copied down to its own machine to run, found the inability to access the remote database error, in order to solve this problem, the author tried to import the remote database into the local database operation, encountered a little trouble, make a record.Import Script:--Table SpaceCREATEtablespace ecdatafile'd:\tablespace\ec.dbf'size 3000M EXTENT MANAGEMENT LOCAL S
user session is active, Repeat steps (2) and (3 ).
2. Create the CRM_USER in the Oracle Admin Console. The user roles and permissions are set as follows.
Name CRM_USER
Profile DEFAULT
Authentication Password
Default Tablespace mirin01
Temporary Tablespace TEMP
Status UNLOCK
Default Consumer Group None
Roles
Role Admin Option Default
CONNECT N Y
DBA N Y
RESOURCE N Y
System Privileges
System Privilege Admin Option
CREATE MATERIALIZED VIEW N
CREATE PROCEDURE N
CR
Place the DMP file of expdp from the ASM disk to the local file system.
Reference Original:
How to extract DataPump file from ASM diskgroup to local filesystem? (Docid 566941.1)
Applicable:
Oracle Database-Enterprise Edition-version 11.1.0.6 to 11.1.0.7 [release 11.1]
Information in this document applies to any platform.
Information in this document applies to any platform.
Objectives:
Starting from 11.1.0.6, asmcmd provides the CP command, which is
Data Import
1. Import the data in D: "daochu. dmp to the test database.
IMP system/manager @ test file = D: "daochu. dmp
IMP aichannel/aichannel @ HUST full = y file = D: "data" newsmgnt. 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.
How to migrate the database objects in oracle10g to 9i. The 10g and 9i servers are respectively built on two machines in the LAN for mutual access.
How to migrate the database objects in oracle 10g to 9i. The 10g and 9i servers are respectively built on two machines in the LAN for mutual access.
Problem description: How to migrate the database objects in Oracle 10g to 9i. The 10g and 9i servers are respectively built on two machines on the LAN for mutual access.
Problem Analysis: Some infor
character set, it is exported directly without transcoding and the character set of the exported file is the same as the preceding two items; if the client operating system parameter Nls_lang is different from the Oracle database's character set, The Oracle database then converts the data file from the character set encoding format of the Oracle database to the specified encoding format for the client operating system parameter Nls_lang. In a word: The character set format of the exported file
Tags: manager Oracle space nameFirst ask the table space name and size of the other database, then create the appropriate tablespace in your Oracle, and finally use the command to import and export the data.Add:1. To create a new database;Oracle data import and export imp/exp is equivalent to Oracle data restore and backup. The EXP command can beTo export data from the remote database server to a local DMP file, the IMP command can take the
An error occurred while importing the dmp exported from Oracle 11G to the 10g Database.(IMP-00010: Failed header verification because it is not a valid exported file) SolutionBecause the server has oracle 11 GB and oracle 10 Gb locally, the dmp files exported from the server are displayed as: IMP-00010: it is not a valid file to be exported. After the header verification fails, I found the following informa
Oracle Data Import and Export dmp
1: Start-> Run-> cmd-> exp-> User Name/password @ connection word (DBA permission is required for full Database Export)-> press ENTER-> enter the export path (C: /AA. DMP)-> select (E, U or T) as required-> press ENTER or enter yes or no as required.IMP is also a similar execution method.
Or remember the following command to execute import and export.
2: import:For
When importing a DMP file from someone else
In a DOS environment
Imp em/[email protected] fromuser = em touser = em file = C: \ em1013.dmp
Error reported as title
The reason is that the person was exported at oracle11g.
The database I imported is oracle11g, but the client is Oracle10g.
Solution:
Replace the original client with the oracle11g client.
Appendix: Create tablespaces, users, and permi
Oracle Data Import Export IMP/EXP is equivalent to Oracle data restore and backup. The EXP command can export data from a remote database server to a local DMP file, and IMP commands the DMP file to be imported locally into a distant database server. With this feature, you can build two identical databases, one for testing and one for formal use.
Execution environment: can be executed in SQLPLUS.EXE or DOS
protected]File=d:\daochu.dmp owner= (System,sys)3 Exporting Tables Table1, table2 in the databaseExp system/[email protected]File=d:\daochu.dmp tables= (Table1,table2)4 Export the field filed1 in table table1 in the database with data beginning with "00"Exp system/[email protected]File=d:\daochu.dmp tables= (table1) query=\ "where filed1 like ' 0% ' \"The above is a common export, for compression I do not care, with WinZip to the DMP file can be very
local;
Description
1) zd_temp temp Table space Name2)/u01/app/oralce/oradata/orcl/the place where the database files are stored, usually after the database is installed, there are control files, data files and log files in the folder, plus the name of the table space to create +DBF (data file)3) Initial size of 1024m table space4) Auto-grow size of 100m table space5) Maximum size of 10240m table space
2. Create a data table space
Create tabl
The local server does not have the Orcale database and client installed, and Plsql is not installed. Therefore the imp command of CMD cannot be used.
Install the Orcale client locally, install, configure path, and then import the DMP file with the IMP command after installation.
Install Instantclient_11_2, and unzip OK;
Install Plsql,, unzip the direct punch card Plsqldev.exe, the interface is English, can be changed to Chinese. Confi
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.