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: In s
Oracle data export and import are often used in work, especially in database backup.
Exp and imp usage collection network, or that sentence, "Come out and mix, always have to pay back ".
I. Definition
The oracle exp/imp command is used to export/import databases;The exp command is used to export data from a remote database server to a local machine to generate a dmp file;The imp command is used to import the dmp
sample is located:
C: \ Program Files (x86) \ IBM \ cognosdeveloper \ webcontent \ Samples
The path's datasource \ oracle contains the DMP data file of the sample data. In the subsequent configuration, the DMP data backup file (excluding the cstatd. DMP and gs_db_ora) are imported to Oracle..
1.4 install Oracle 11g Release 2 (11.2) for Microsoft Windows x64 (6
C:/> imp neohkdev1/XML full = y file = C:/neo.20070411.dmp
Import: Release 10.2.0.1.0-production on Thursday April 12 10:06:45 2007
Copyright (c) 1982,200 5, Oracle. All rights reserved.
Connect to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0-ProductionWith the partitioning, OLAP and Data Mining options
Export File Created by export: v09.02.00 in the direct pathThe zhs16gbk Character Set and al16utf16 nchar character set have been import
OracleDatabaseImp/exp commandThe usage is what we will introduce in this article. Next we will introduce these content through examples. For example, export table 1, table 2, and table 3 in Database Service abc, user, and password psd to the Directory d: \ data, and export the file name to test. dmp. The statement is:
expuser/psd@adcfile=d:\data\test.dmptables=(table1,table2,table3)。
The restore statement for the above files is:
expuser
Exp/imp three modes-full, user, and table ORACLE databases have two backup methods. The first type is physical backup. This method enables complete database recovery, but the database must run in the recovery mode (the business database runs in the non-recovery mode ), this method requires a large number of external storage devices, such as tape libraries. The second type of backup mode is logical backup, which is used by the business database. This method does not require the database to run in
Basic syntax and example of Oracle exp and imp usage: 1. EXP: There are three main methods (complete, user, table) 1. Complete: exp system/manager buffer = 64000 FILE = C: \ FULL. dmp full = Y if you want to perform FULL export, you must have special permissions. 2. User Mode: exp sonic/sonic buffer = 64000 FILE = C: \ SONIC. dmp owner = SONIC so that all the objects of the user SONIC are output to the file
Basic syntax and example: 1. Exp: There are three main methods (full, user, table) 1. Full: EXP system/Manager Buffer = 64000 file = c: \ full. DMP full = y if you want to perform full export, you must have special permissions. 2. User Mode: EXP Sonic/sonic buffer = 64000 file = c: \ sonic. DMP owner = Sonic so that all the objects of the user Sonic are output to the file. 3. Table mode: EXP Sonic/sonic buf
I. Notes about expdp and impdp when using expdp and impdp:Exp and IMP are client tool programs that can be used either on the client or on the server.Expdp and impdp are tool programs on the server. They can only be used on the Oracle server, but not on the client.IMP only applies to exp exported files, not expdp exported files; impdp only applies to expdp exported files, not exp exported files.When you run the expdp or impdp command, you can leave the username/password @ Instance name as the id
EXP/IMP Command Parameters
1. Exp:1. Complete:Exp system/Manager Buffer = 64000 file = C:/full. dmp full = yTo perform full export, you must have special permissions.
2. User Mode:Exp Sonic/sonic buffer = 64000 file = C:/sonic. dmp owner = sonicIn this way, all the sonic objects are output to the file.
3. Table mode:Exp Sonic/sonic buffer = 64000 file = C:/sonic. dmp
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 Character Set3.3 import conversion process(1) deter
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. 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 can be
1. Create the physical directory Dp_dir on Linux and store the database. dmp file;Log in as root, switch to Oracle user, create a physical directory with Oralce identity as follows:[Email protected] oracle]# su-oracle[Email protected] ~]$ Mkdir/home/oracle/dp_dirBack up the database files to/home/oracle/dp_dir by using WINSCP to Telnet to the host. The DMP file is dragged to the directory but is displayed.
special setting, it will be consistent with nls_instance_parameters. The client's character set requires consistency with the server in order to correctly display non-ASCII characters of the database. If multiple settings exist, ALTER session> environment variable > registry > Parameter File Character sets require consistency, but language settings can be different, and language settings are recommended in English. If the character set is ZHS16GBK, then Nls_lang can be AMERICAN_AMERICA.ZHS1
equivalent character in the Us7ascii, so all Chinese words will be lost and become "?? "Form, the resulting DMP file after conversion has already occurred with data loss. Therefore, if you want to export the source database data correctly, the user session character set in the export process should be equal to the source database character set or the superset of the source database character set 3.3 Import conversion process (1) Determine the
set conversion occurs. and stores the ID number of the export user session character set in several bytes of the header of the exported file. The loss of data may occur during this conversion. 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, the conversion process Chinese characters are not able to find the equivalent character in the Us7ascii, so all Chin
and Us7ascii is a 7-bit character set, the Chinese characters cannot find the equivalent character in Us7ascii during this conversion , so all Chinese characters will be lost and become "?? "Form, the resulting DMP file after conversion has already occurred with data loss. Therefore, if you want to export the source database data correctly, the user session character set in the export process should be equal to the source database character set or th
Using expimp in plsql to export oracle Data to import Oracle data import and export impexp is equivalent to oracle data restoration and backup. 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
Using exp/imp in pl/SQL to export/import oracle d
Oralce export script command, regular execution, oralce export script command
@ Echo off @ echo ========================================== ==================
@ Echo automatic backup script for Oracle databases in windows
@ Echo 1. The file is automatically named by the current date when it is backed up and exported.
@ Echo 2. urls is a temporary directory, url is the final directory to be saved, and the temporary directory will be deleted after being saved.
@ Echo 3. This is the Oracle 11g Expor
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
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.