shows that the true 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 exported to each other. The preceding information is only prompted in Chinese or English. 2. Check the database character set. This involves three character sets: character set on the El server side, character set on the oracle client side, and character set on the
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
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 exported to each other. The preceding information is only prompted in Chinese or English.
Ii. How to query Oracle character sets
Many 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 s
Oracle Data Pump: impdp and expdp 1. Create a logical directory. This command does not create a real directory in the operating system. It is best to create a directory as a system administrator. Create directory dpdata as '/opt'; 2. Check the Administrator directory (check whether the operating system exists because Oracle does not care whether the directory exists. If not, an error occurs) www.2cto.com select * from dba_directories; 3. Grant the scott user the operation permission on the speci
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 character set between the two databases is the same as that in the third part, data can be imported and exp
Related Parameters and export examples:
1. 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 = dmp dumpfile = a. dump
Create or replace directory dmp
As '
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 character set of the Oracle database 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 exported to each other. The preceding informati
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.