Oracle expdp command
Http://blog.csdn.net/zftang/article/details/6387325
Oracle expdp command usage details
Related Parameters and export examples:
1. Directory
Specifies the directory where the dump and log files are locatedDirectory = directory_objectDirectory_object is used to specify the directory object name. Note that the directory object is an object created using the create directory statement, not an OS directory.Expdp Scott/tiger directory = DMP
This article introduces the import and export of Oracle Data IMP and exp commands, describes the corresponding parameters, and then uses some examples for further understanding.At last, the article discusses the problems that may occur when using these two commands (such as insufficient permissions and different Oracle versions), and puts forward corresponding solutions;The content in this article is excerpted from the Internet. Thanks for your experience;
I. Description
The Oracle exp/IMP comma
This article introduces the import and export of Oracle Data IMP and exp commands, describes the corresponding parameters, and then uses some examples for further understanding.At last, the article discusses the problems that may occur when using these two commands (such as insufficient permissions and different Oracle versions), and puts forward corresponding solutions;The content in this article is excerpted from the Internet. Thanks for your experience;
I. Description
The Oracle exp/IMP comma
1. DIRECTORYSpecifies the directory where the dump and log files are located
DIRECTORY = directory_object
Directory_object is used to specify the DIRECTORY object name. Note that the DIRECTORY object is an object created using the create directory statement, not an OS DIRECTORY.
Expdp scott/tiger DIRECTORY = dmp dumpfile = a. dump
Create or replace directory dmpAs 'd:/dmp'
Expdp zftang/zftang @ zftang dire
the value is metadata_only, only the object definition is exported.
Expdp Scott/tiger directory = dump dumpfile = A. Dump
Content = metadata_only
3. Directory
Specifies the directory where the dump and log files are located
Directory = directory_object
Directory_object is used to specify the directory object name. Note that the directory object is an object created using the create directory statement, not an OS directory.
Expdp Scott/tiger directory = dump dumpfile = A. Dump
Create a directory
Use the exp;impcommand to export and import racledata databases and execute them in the environment of the local or sqlplus.exe command. The exp command can export data from the remote database server to a local dmp file, and the imp command can import the dmp file from the local to a distant database server. The command line executes the Import and Export commands through the imp.exeand exp.exe programs un
recommended naming method is the current date of the original table name, which makes it more readable. See parameter remap_table instructions for use:650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M02/8D/FF/wKioL1iy2vnh8ll-AAA9Nj2z6tA976.png-wh_500x0-wm_ 3-wmp_4-s_4282534755.png "title=" 11.png "alt=" Wkiol1iy2vnh8ll-aaa9nj2z6ta976.png-wh_50 "/>650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M00/8D/FF/wKioL1iy2xWiC9W6AAAUT1bE6AE284.png-wh_500x0-wm_ 3-wmp_4-s_139014653.png "tit
Function: Oracle Data Import/Export imp/exp is equivalent to Oracle data restoration and backup.
In most cases, you can use ORACLE data import and export to back up and restore data (without causing data loss ).
Oracle has a benefit. Although your computer is not a server, you have installed an Oracle client and established a connection.(Use the local -- gt; service name in net8 assistant to add the correct service nameIn fact, you can think that the client and the server have built a path, an
Importing and exporting Oracle Data imp/exp is equivalent to restoring and backing up ORACLE data. The exp command can export data from the remote database server to the local DMP file, and the IMP command can import the DMP file from the local to the distant database server. This function can be used to build two identical databases, one for testing and the other for formal use.Execution environment: it ca
Database backup and recovery:Note:For oracle databases installed on windows, when using the exp BACKUP command, enter the bin directory in dos.For oracle databases installed on linux, after environment variables are configured, they can be directly configured on the terminal.If the linux version is later than 5, tables = "(emp)" needs to be added with double quotation marks during query,Otherwise, bashsyntax error near unexpected token' (error(1) Export exp
Routine: EXP userid = SCOTT/TIGER @ 'd
, an error message is not displayed.Transport_tablespacesSpecifies that the table space mode export is performedVERSIONSpecifies the database version of the exported object, the default value is compatible.version={compatible | LATEST | Version_string}When compatible, the object metadata is generated according to the initialization parameter compatible, and for latest, object metadata is generated based on the actual version of the database. Version_string is used to specify the database version
Oracleimpexp command details
How to import dmp database files in oracle?
Importing and exporting oracle Data imp/exp is equivalent to restoring and backing up oracle data. The exp command can export data from the remote database server to the local dmp file, and the imp command can import the dmp file from the local to the distant database server. This function c
Recently, because the Oracle database backup problem is involved every day in the re-project, and the server runs remotely, it is very time-consuming to manually back up data every day, so I checked some information about Oracle database backup. I feel that I am not very clear about it in many places on the Internet. Here I will talk about Oracle's automatic backup.
The running environment of the server is Windows-Server 2003, and the database is 9I (some parameters may change in other versions
Basic syntax and example: 1. Exp:
There are three main methods (complete, user, table)1. Complete:Exp icdmain/ICD rows = y indexes = n compress = n buffer = 65536 feedback = 100000 full = y file = exp _. dmp log = exp. Log
To perform full export, you must have special permissions.2. User Mode:Exp icdmain/ICD owner = icdmain rows = y indexes = n compress = n buffer = 65536 feedback = 100000 file = exp. dmp
and exporting Oracle Data imp/exp is equivalent to restoring and backing up oracle data. The exp command can export data from the remote database server to the local dmp file, and the imp command can import the dmp file from the local to the distant database server. This function can be used to build two identical databases, one for testing and the other for formal use.
The following describes the Import a
equivalent characters in US7ASCII, so all Chinese characters will be lost and become "?" In this way, the generated Dmp file has been lost.Therefore, if you want to Export the source database data correctly, the user session character set during the Export process should be equal to the source database character set or the superset of the source database Character Set3.3 import conversion process(1) determine the environment for exporting database ch
session character set during the Export process (set through NLS_LANG)(3) user session character set during Import (set through NLS_LANG)(4) target database Character Set 3.2 export the conversion processDuring the Export process, if the source database character set is inconsistent with the Export user session character set, the character set conversion will occur, and the Export user session Character Set ID will be stored in several bytes in the header of the exported file. Data may be lost
Introduction: oracleIn addition to using graphical methods in the Oracle EditorImport and ExportIn addition to the data mode of Arts and Sciences files, you can also use command lines to import and export databases.SyntaxExample:
Imp [username [/password [@ service]
Step: 1. First, go to dos and switch to the directory where the physical file of the oracle database is located (the directory where the dmp file is located ). Enter the following statemen
a 16-bit Character Set and US7ASCII is a 7-bit character set, chinese characters cannot find equivalent characters in US7ASCII, so all Chinese characters will be lost and become "?" In this way, the generated Dmp file has been lost.Therefore, if you want to Export the source database data correctly, the user session character set during the Export process should be equal to the source database character set or the superset of the source database Char
conversion process.
For example, if the source database uses ZHS16GBK and the Export user session Character Set uses US7ASCII, because ZHS16GBK is a 16-bit Character Set and US7ASCII is a 7-bit character set, chinese characters cannot find equivalent characters in US7ASCII, so all Chinese characters will be lost and become "?" In this way, the generated Dmp file has been lost.
Therefore, if you want to Export the source database data correctly, the u
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.