Importing and exporting Oracle Data impexp 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. Executive
Importing and expo
I. Preface:
Oracle provides exp and imp commands for data backup and recovery. exp commands can export data from a remote database server to a local dmp file, the imp command can import the dmp file locally to a database server in a distance. This function can be used to build two identical databases, one for testing and the other for formal use.
Ii. Use
1. There are three export methods for the exp command
= language_territory.charset
It has three components (language, region, and Character Set), each of which controls the NLS subset features. Where:
Language specifies the language of the server message, territory specifies the date and number format of the server, and charset specifies the character set. For example: American _ America. zhs16gbk
From the composition of nls_lang, we can see that the real impact on the database character set is actually the third part. Therefore, if the char
Basic syntax and example:1. EXP:There are three main methods (complete, user, table)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:
which controls the NLS subset features. Where:
Language specifies the language of the server message, territory specifies the date and number format of the server, and charset specifies the character set. For example: American _ America. zhs16gbk
From the composition of nls_lang, we can see that the real impact on the database character set is actually the third part. Therefore, if the character set between the two databases is the same as that in the third part, data can be imported and export
part.
Therefore, if the character set between the two databases is the same as that in the third part, data can be imported and exported to each other. The preceding information is only prompted in Chinese or English.
2. view database character sets
This involves three character sets,
The first is the character set of the kernel El server;
The second is the character set of the Oracle client;
The third is the DMP file character set.
During data impor
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
Basic syntax and example:
1 , Exp:
There are three main methods (complete, user, table)
1 , Complete:
Exp system/Manager Buffer =
64000 File = c: \ full. dmp full = y
To perform full export, you must have special permissions.
2 , User mode:
Exp Sonic/sonic buffer =
64000 File = c: \ sonic. dmp owner = sonic
In this way, all the sonic objects are output to the file.
3 , Table mode:
Exp Sonic/sonic
Buffer: the buffer for downloading data, in bytes. It is dependent on the operating system by default.
Consistent: the data involved during the download process is read only. The default value is n.
Direct: Use the pass-through method. The default value is n.
Feeback: displays the number of processing records. The default value is 0, that is, it is not displayed.
File: output file. The default value is expdat. dmp.
Filesize: size of the output file. T
. Therefore, if the character set between the two databases is the same as that in the third part, data can be imported and exported to each other. The preceding information is only prompted in Chinese or English.Ii. How to query Oracle character setsMany people have encountered data import failures due to different character sets. This involves three character sets: one is the character set on the El server side, the other is the character set on the Oracle client side, and the other is the
a 7-bit character set, the Chinese character cannot find the equivalent characters in the US7ASCII during the conversion process. , so all Chinese characters will be lost and become "?? form so that the DMP file generated after the conversion has lost data.
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 a superset of the
-bit character set, the Chinese character cannot find the equivalent characters in the US7ASCII during the conversion process. , so all Chinese characters will be lost and become "?? form so that the DMP file generated after the conversion has lost data.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 a superset of the sourc
process Chinese characters are not able to find the 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
character set, which may be a parameter file, an environment variable, or a registry Session Character Set Environment select * from Nls_session_parameters, which originates from V$nls_parameters, represents the session's own settings, which may be the session's environment variable or alter session completion, If the session does not have a special setting, it will be consistent with nls_instance_parameters. The client's character set requires consistency with the server to correctly display
replaces BCDW Wxpesetupldr with the following command. BIN, note here to write the absolute path of the disc. The original xp.bif file can be deleted.
Ii. How to integrate the second WinPE of old Peaches:
Because the old Peaches's WinPE, the startup file is the same, so you need to rename it. To integrate the old Peaches Bootcd_070305.iso as an example, with UltraISO open save boot file for xp305.bif put to D:bootezboot, Wxpesetupldr.bin extract renamed setupldr.
winnt.xpe, load Winpe.is_, Then wxpentdetect.com start WinPE, ie: XP. Bif->setupldr. Bin->winnt. Xpe->winpe.is_->ntdetect.com (Note: easyboot from version 5.08, joined the BCDW command, if your easyboot version than 5.08 New, are supported by the BCDW command. Copy Bcdw.bin to the top d:bootezboot from the Easyboot installation directory and use Run XP in the menu. BIF replaces BCDW Wxpesetupldr with the following command. BIN, note here to write the absolute path of the disc. The original xp.b
newer than 5.08, is supported by the BCDW command. Copy the Bcdw.bin from the Easyboot installation directory to the top d:bootezboot and use Run XP in the menu. BIF Replace BCDW Wxpesetupldr with the following command. BIN, note here to write the absolute path of the disc. The original xp.bif file can be deleted).
Ii. How to integrate the second WinPE of old Peaches:
Because the old Peaches WinPE, the boot file is the same, so it needs to be renamed. Take the integration of old Peaches Bootc
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
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.