{"id":209916,"date":"2022-08-22T02:36:30","date_gmt":"2022-08-21T18:36:30","guid":{"rendered":"https:\/\/www.keaglegz.com\/209916.html"},"modified":"2026-07-15T07:08:06","modified_gmt":"2026-07-14T23:08:06","slug":"oracle%e4%b8%adimp%e5%af%bc%e5%85%a5%e6%95%b0%e6%8d%ae%e6%97%b6%e6%8f%90%e7%a4%ba%e5%ad%97%e7%ac%a6%e9%9b%86%e4%b8%8d%e4%b8%80%e8%87%b4%e8%a7%a3%e5%86%b3","status":"publish","type":"post","link":"https:\/\/www.dongwubaike.cn\/fanhao\/209916.html","title":{"rendered":"Oracle\u4e2dIMP\u5bfc\u5165\u6570\u636e\u65f6\u63d0\u793a\u5b57\u7b26\u96c6\u4e0d\u4e00\u81f4\u89e3\u51b3"},"content":{"rendered":"\n<p>\u751f\u4ea7\u73af\u5883\u4e2d\u7ecf\u5e38\u4f7f\u7528\u5230Oracle\u7684IMP\u5bfc\u5165\u548cEXP\u5bfc\u51fa\u6765\u529f\u80fd\u6765\u8fbe\u5230\u6570\u636e\u8fc1\u79fb\u7684\u76ee\u7684,\u901a\u5e38\u5728\u6e90\u6570\u636e\u5e93\u548c\u76ee\u6807\u6570\u636e\u5e93\u4e2d\u67e5\u8be2\u5b57\u7b26\u96c6\u662f\u5426\u81f4,<\/p>\n<p>\u6d4b\u8bd5\u73af\u5883\u4e2d\u5bfc\u5165IMP\u5bfc\u5165\u62a5\u9519\u4fe1\u606f\u5982\u4e0b:<\/p>\n<p>\u5bfc\u5165\u547d\u4ee4\u5982\u4e0b:<\/p>\n<p>[oracle@localhost.localdomain:\/soft]$<span style=\"background-color: #ffff00\">imp scott\/scott file=\/soft\/scott_v1.dmp log=\/soft\/scott_v1.log ignore=y full=y<br \/><\/span><br \/>Import: Release 11.2.0.4.0 &#8211; Production on Sun Oct 22 16:26:27 2017<\/p>\n<p>Copyright (c) 1982, 2011, Oracle and\/or its affiliates.&nbsp; All rights reserved.<\/p>\n<p>Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 &#8211; 64bit Production<br \/>With the Partitioning, OLAP, Data Mining and Real Application Testing options<\/p>\n<p>Export file created by EXPORT:V11.02.00 via conventional path<br \/>import done in<span style=\"background-color: #ffff00\"> ZHS16GBK<\/span> character set and<span style=\"background-color: #ffff00\"> AL16UTF16<\/span> NCHAR character set &#8211;\u63d0\u793a\u5b57\u7b26\u96c6\u4e0d\u4e00\u81f4<br \/>. importing SCOTT&#8217;s objects into SCOTT<br \/>. . importing table&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#8220;BONUS&#8221;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 rows imported<br \/>. . importing table&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &#8220;DEPT&#8221;<br \/>IMP-00019: row rejected due to ORACLE error 1<br \/>IMP-00003: ORACLE error 1 encountered<br \/>ORA-00001: unique constraint (SCOTT.PK_DEPT) violated&#8211;<span style=\"background-color: #ffff00\">\u63d0\u793a\u5404\u79cd\u4e71\u7801\u95ee\u9898<\/span><br \/>Column 1 10<br \/>Column 2 \u01ce<br \/>Column 3 <br \/>IMP-00019: row rejected due to ORACLE error 1<br \/>IMP-00003: ORACLE error 1 encountered<br \/>ORA-00001: unique constraint (SCOTT.PK_DEPT) violated<br \/>Column 1 20<br \/>Column 2 \u0432<br \/>Column 3 &plusmn;&plusmn;<br \/>IMP-00019: row rejected due to ORACLE error 1<br \/>IMP-00003: ORACLE error 1 encountered<br \/>ORA-00001: unique constraint (SCOTT.PK_DEPT) violated<br \/>Column 1 30<br \/>Column 2 \u043a<br \/>Column 3 <br \/>IMP-00019: row rejected due to ORACLE error 1<br \/>IMP-00003: ORACLE error 1 encountered<br \/>ORA-00001: unique constraint (SCOTT.PK_DEPT) violated<br \/>Column 1 40<br \/>Column 2 <br \/>Column 3 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 rows imported<br \/>. . importing table&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#8220;EMP&#8221;<br \/>IMP-00019: row rejected due to ORACLE error 1<br \/>IMP-00003: ORACLE error 1 encountered<br \/>ORA-00001: unique constraint (SCOTT.PK_EMP) violated<br \/>Column 1 7369<br \/>Column 2 itpux01<br \/>Column 3 &tau;<br \/>Column 4 7902<br \/>Column 5 17-DEC-1980:00:00:00<br \/>Column 6 800<br \/>Column 7 <br \/>Column 8 20<br \/>IMP-00019: row rejected due to ORACLE error 1<br \/>IMP-00003: ORACLE error 1 encountered<br \/>ORA-00001: unique constraint (SCOTT.PK_EMP) violated<br \/>Column 1 7499<br \/>Column 2 itpux02<br \/>Column 3 \u043a<br \/>Column 4 7698<br \/>Column 5 20-FEB-1981:00:00:00<br \/>Column 6 1600<br \/>Column 7 300<br \/>Column 8 30<br \/>IMP-00019: row rejected due to ORACLE error 1<br \/>IMP-00003: ORACLE error 1 encountered<br \/>ORA-00001: unique constraint (SCOTT.PK_EMP) violated<br \/>Column 1 7521<br \/>Column 2 itpux03<br \/>Column 3 \u043a<br \/>Column 4 7698<br \/>Column 5 22-FEB-1981:00:00:00<br \/>Column 6 1250<br \/>Column 7 500<br \/>Column 8 30<br \/>IMP-00019: row rejected due to ORACLE error 1<br \/>IMP-00003: ORACLE error 1 encountered<br \/>ORA-00001: unique constraint (SCOTT.PK_EMP) violated<br \/>Column 1 7566<br \/>Column 2 itpux04<br \/>Column 3 <br \/>Column 4 7839<br \/>Column 5 02-APR-1981:00:00:00<br \/>Column 6 2975<br \/>Column 7 <br \/>Column 8 20<br \/>IMP-00019: row rejected due to ORACLE error 1<br \/>IMP-00003: ORACLE error 1 encountered<br \/>ORA-00001: unique constraint (SCOTT.PK_EMP) violated<br \/>Column 1 7654<br \/>Column 2 itpux05<br \/>Column 3 \u043a<br \/>Column 4 7698<br \/>Column 5 28-SEP-1981:00:00:00<br \/>Column 6 1250<br \/>Column 7 1400<br \/>Column 8 30<br \/>IMP-00019: row rejected due to ORACLE error 1<br \/>IMP-00003: ORACLE error 1 encountered<br \/>ORA-00001: unique constraint (SCOTT.PK_EMP) violated<br \/>Column 1 7698<br \/>Column 2 itpux06<br \/>Column 3 <br \/>Column 4 7839<br \/>Column 5 01-MAY-1981:00:00:00<br \/>Column 6 2850<br \/>Column 7 <br \/>Column 8 30<br \/>IMP-00019: row rejected due to ORACLE error 1<br \/>IMP-00003: ORACLE error 1 encountered<br \/>ORA-00001: unique constraint (SCOTT.PK_EMP) violated<br \/>Column 1 7782<br \/>Column 2 itpux07<br \/>Column 3 <br \/>Column 4 7839<br \/>Column 5 09-JUN-1981:00:00:00<br \/>Column 6 2450<br \/>Column 7 <br \/>Column 8 10<br \/>IMP-00019: row rejected due to ORACLE error 1<br \/>IMP-00003: ORACLE error 1 encountered<br \/>ORA-00001: unique constraint (SCOTT.PK_EMP) violated<br \/>Column 1 7788<br \/>Column 2 itpux08<br \/>Column 3 &middot;<br \/>Column 4 7566<br \/>Column 5 19-APR-1987:00:00:00<br \/>Column 6 3000<br \/>Column 7 <br \/>Column 8 20<br \/>IMP-00019: row rejected due to ORACLE error 1<br \/>IMP-00003: ORACLE error 1 encountered<br \/>ORA-00001: unique constraint (SCOTT.PK_EMP) violated<br \/>Column 1 7839<br \/>Column 2 itpux09<br \/>Column 3 <br \/>Column 4 <br \/>Column 5 17-NOV-1981:00:00:00<br \/>Column 6 5000<br \/>Column 7 <br \/>Column 8 10<br \/>IMP-00019: row rejected due to ORACLE error 1<br \/>IMP-00003: ORACLE error 1 encountered<br \/>ORA-00001: unique constraint (SCOTT.PK_EMP) violated<br \/>Column 1 7844<br \/>Column 2 itpux10<br \/>Column 3 \u043a<br \/>Column 4 7698<br \/>Column 5 08-SEP-1981:00:00:00<br \/>Column 6 1500<br \/>Column 7 0<br \/>Column 8 30<br \/>IMP-00019: row rejected due to ORACLE error 1<br \/>IMP-00003: ORACLE error 1 encountered<br \/>ORA-00001: unique constraint (SCOTT.PK_EMP) violated<br \/>Column 1 7876<br \/>Column 2 itpux11<br \/>Column 3 &tau;<br \/>Column 4 7788<br \/>Column 5 23-MAY-1987:00:00:00<br \/>Column 6 1100<br \/>Column 7 <br \/>Column 8 20<br \/>IMP-00019: row rejected due to ORACLE error 1<br \/>IMP-00003: ORACLE error 1 encountered<br \/>ORA-00001: unique constraint (SCOTT.PK_EMP) violated<br \/>Column 1 7900<br \/>Column 2 itpux12<br \/>Column 3 &tau;<br \/>Column 4 7698<br \/>Column 5 03-DEC-1981:00:00:00<br \/>Column 6 950<br \/>Column 7 <br \/>Column 8 30<br \/>IMP-00019: row rejected due to ORACLE error 1<br \/>IMP-00003: ORACLE error 1 encountered<br \/>ORA-00001: unique constraint (SCOTT.PK_EMP) violated<br \/>Column 1 7902<br \/>Column 2 itpux13<br \/>Column 3 &middot;<br \/>Column 4 7566<br \/>Column 5 03-DEC-1981:00:00:00<br \/>Column 6 3000<br \/>Column 7 <br \/>Column 8 20<br \/>IMP-00019: row rejected due to ORACLE error 1<br \/>IMP-00003: ORACLE error 1 encountered<br \/>ORA-00001: unique constraint (SCOTT.PK_EMP) violated<br \/>Column 1 7934<br \/>Column 2 itpux14<br \/>Column 3 &tau;<br \/>Column 4 7782<br \/>Column 5 23-JAN-1982:00:00:00<br \/>Column 6 1300<br \/>Column 7 <br \/>Column 8 10&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 rows imported<br \/>. . importing table&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &#8220;SALGRADE&#8221;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 5 rows imported<br \/>About to enable constraints&#8230;<br \/>Import terminated successfully with warnings.<\/p>\n<p><strong>\u5982\u4f55\u67e5\u8be2\u5b57\u7b26\u96c6<\/strong><\/p>\n<p>\u65b9\u6cd51:\u67e5\u8be2\u8868(\u5728\u77e5\u9053\u6e90\u6570\u636e\u5e93\u548c\u76ee\u6807\u6570\u636e\u5e93):<\/p>\n<p>select * from nls_database_parameters;<\/p>\n<p>1&nbsp;  &nbsp;NLS_LANGUAGE&nbsp;  &nbsp; &nbsp; &nbsp; &nbsp; AMERICAN<br \/>2&nbsp;  &nbsp;NLS_TERRITORY&nbsp;  &nbsp;  &nbsp;  &nbsp; AMERICA<br \/>3&nbsp;  &nbsp;NLS_CURRENCY&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $<br \/>4&nbsp;  &nbsp;NLS_ISO_CURRENCY&nbsp;  &nbsp;AMERICA<br \/>5&nbsp;  &nbsp;NLS_NUMERIC_CHARACTERS&nbsp;  &nbsp;.,<br \/><span style=\"background-color: #ffff00\">6&nbsp;  &nbsp;NLS_CHARACTERSET&nbsp;  &nbsp;ZHS16GBK &#8211;\u6b64\u5904\u662f\u663e\u793a\u5b57\u7b26\u96c6<\/span><br \/>7&nbsp;  &nbsp;NLS_CALENDAR&nbsp;  &nbsp;GREGORIAN<br \/>8&nbsp;  &nbsp;NLS_DATE_FORMAT&nbsp;  &nbsp;DD-MON-RR<br \/>9&nbsp;  &nbsp;NLS_DATE_LANGUAGE&nbsp;  &nbsp;AMERICAN<br \/>10&nbsp;  &nbsp;NLS_SORT&nbsp;  &nbsp;BINARY<br \/>11&nbsp;  &nbsp;NLS_TIME_FORMAT&nbsp;  &nbsp;HH.MI.SSXFF AM<br \/>12&nbsp;  &nbsp;NLS_TIMESTAMP_FORMAT&nbsp;  &nbsp;DD-MON-RR HH.MI.SSXFF AM<br \/>13&nbsp;  &nbsp;NLS_TIME_TZ_FORMAT&nbsp;  &nbsp;HH.MI.SSXFF AM TZR<br \/>14&nbsp;  &nbsp;NLS_TIMESTAMP_TZ_FORMAT&nbsp;  &nbsp;DD-MON-RR HH.MI.SSXFF AM TZR<br \/>15&nbsp;  &nbsp;NLS_DUAL_CURRENCY&nbsp;  &nbsp;$<br \/>16&nbsp;  &nbsp;NLS_COMP&nbsp;  &nbsp;BINARY<br \/>17&nbsp;  &nbsp;NLS_LENGTH_SEMANTICS&nbsp;  &nbsp;BYTE<br \/>18&nbsp;  &nbsp;NLS_NCHAR_CONV_EXCP&nbsp;  &nbsp;FALSE<br \/>19&nbsp;  &nbsp;NLS_NCHAR_CHARACTERSET&nbsp;  &nbsp;AL16UTF16<br \/>20&nbsp;  &nbsp;NLS_RDBMS_VERSION&nbsp;  &nbsp;11.2.0.4.0<\/p>\n<p>\u65b9\u6cd52:\u5728\u4e0d\u77e5\u9053dmp\u4e2d\u5b57\u7b26\u96c6\u662f\u4ec0\u4e48,\u5982\u4f55\u67e5\u770b<\/p>\n<p>1\u3000\u3000\u67e5\u770bdmp\u6587\u4ef6\u7684\u4e2d\u5b57\u7b26\u96c6<\/p>\n<p>cat &#8216;<span style=\"background-color: #ffff00\">\/home\/soft\/scott.dmp<\/span>&#8216; |od -x|head -1|awk &#8216;{print $2 $3}&#8217;|cut -c 3-6<\/p>\n<p>\u7ed3\u679c\u4e3a\uff1a0345<\/p>\n<p>2\u3000\u3000\u7136\u540e\u7528\u4ee5\u4e0bSQL\u67e5\u51fa\u5b83\u5bf9\u5e94\u7684\u5b57\u7b26\u96c6:<\/p>\n<p>SQL&gt; select nls_charset_name(to_number(&#8216;0354&#8242;,&#8217;xxxx&#8217;)) from dual;<br \/>NLS_CHARSET_NAME(TO_NUMBER(&#8216;0354&#8242;,&#8217;XXXX&#8217;<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/><span style=\"background-color: #ffff00\">ZHS16GBK<\/span><\/p>\n<p><strong>\u5982\u4f55\u4fee\u6539\u5b57\u7b26\u96c6<\/strong><\/p>\n<p>\u4fee\u6539\u5b57\u7b26\u96c6\u6709\u51e0\u79cd\u65b9\u6cd5<\/p>\n<p>\u65b9\u6cd51\u3001\u4fee\u6539\u670d\u52a1\u5668\u7aef\u4e2d\u7684\u73af\u5883\u53d8\u91cf\u4e2d\u7684\u5b57\u7b26\u96c6\u8bbe\u7f6e\uff08\u670d<span style=\"background-color: #ffff00\">\u52a1\u5668\u7aef\u5bfc\u5165\u53ea\u8981\u914d\u7f6e\u670d\u52a1\u5668\u7aef\uff0c\u5ba2\u6237\u7aef\u5bfc\u5165\u7684\u8bdd\u8fd8\u8981\u8bbe\u7f6e\u5ba2\u6237\u7aef\u5b57\u7b26\u96c6<\/span>\uff09\uff0c\u6ce8\uff1a\u6b64\u65b9\u6cd5\u5728\u670d\u52a1\u5668\u4fee\u6539\u540e\u518d\u53ca\u65f6\u4fee\u6539\u56de\u53bb<\/p>\n<p>\u65b9\u6cd52\u3001\u4fee\u6539\u6570\u636e\u5e93\u4e2d\u5b57\u7b26\u96c6<\/p>\n<p>\u65b9\u6cd53\u3001\u4fee\u6539dmp\u6587\u4ef6\u4e2d\u5b57\u7b26\u96c6<\/p>\n<p>&nbsp;<\/p>\n<p>\u672c\u73af\u5883\u662f\u5728\u670d\u52a1\u5668\u7aef\u5bfc\u5165\u7684\uff0c\u6240\u4ee5\u91c7\u7528\u65b9\u6cd51<\/p>\n<p>1\u3001\u67e5\u8be2\u5f53\u524d\u73af\u5883\u53d8\u91cf<\/p>\n<p>[oracle@localhost.localdomain:\/soft]$cat ~\/.bash_profile <br \/># .bash_profile<\/p>\n<p># Get the aliases and functions<br \/>if [ -f ~\/.bashrc ]; then<br \/>&nbsp;  &nbsp;. ~\/.bashrc<br \/>fi<\/p>\n<p># User specific environment and startup programs<\/p>\n<p>PATH=$PATH:$HOME\/bin<\/p>\n<p>export PATH<\/p>\n<p># Oracle Settings oracle<br \/>TMP=\/tmp; export TMP<br \/>TMPDIR=$TMP; export TMPDIR<br \/>PS1=&#8221;[`whoami`@`hostname`:&#8221;&#8216;$PWD]$&#8217;<br \/>alias sqlplus=&#8221;rlwrap sqlplus&#8221;<br \/>alias rman=&#8221;rlwrap rman&#8221;<br \/>alias alert=&#8221;cd \/oracle\/app\/oracle\/diag\/rdbms\/db01\/db01\/trace&#8221;<br \/>alias lsnrctl=&#8221;rlwrap lsnrctl&#8221;<br \/>alias adrci=&#8221;rlwrap adrci&#8221;<br \/>export LANG=en_US<br \/>ORACLE_BASE=\/oracle\/app\/oracle; export ORACLE_BASE<br \/>ORACLE_HOME=$ORACLE_BASE\/product\/11.2.0; export ORACLE_HOME<br \/>ORACLE_SID=db01; export ORACLE_SID<br \/>ORACLE_TERM=xterm; export ORACLE_TERM<\/p>\n<p>PATH=\/usr\/sbin:$PATH; export PATH<br \/>PATH=$ORACLE_HOME\/bin:$PATH; export PATH<\/p>\n<p>LD_LIBRARY_PATH=$ORACLE_HOME\/lib:\/lib:\/usr\/lib; export LD_LIBRARY_PATH<br \/>CLASSPATH=$ORACLE_HOME\/JRE:$ORACLE_HOME\/jlib:$ORACLE_HOME\/rdbms\/jlib; export CLASSPATH<br \/>NLS_DATE_FORMAT=&#8221;yyyy-mm-dd HH24:MI:SS&#8221;; export NLS_DATE_FORMAT<br \/><span style=\"background-color: #ffff00\">NLS_LANG=AMERICAN_AMERICA.ZHS16GBK;export NLS_LANG<\/span><\/p>\n<p>if [ $USER = &#8220;oracle&#8221; ] || [ $USER = &#8220;grid&#8221; ]; then<br \/>&nbsp; &nbsp; &nbsp; &nbsp; if [ $SHELL = &#8220;\/bin\/ksh&#8221; ]; then<br \/>&nbsp; &nbsp; &nbsp; &nbsp;  ulimit -p 16384<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ulimit -n 65536<br \/>&nbsp; &nbsp; &nbsp; &nbsp; else<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ulimit -u 16384 -n 65536<br \/>&nbsp; &nbsp; &nbsp; &nbsp; fi<br \/>&nbsp; &nbsp; &nbsp; &nbsp; umask 022<br \/>fi<\/p>\n<p>&nbsp;<\/p>\n<p>2\u3001\u914d\u7f6e\u73af\u5883\u53d8\u91cf<br \/>[oracle@localhost.localdomain:\/soft]$vi ~\/.bash_profile<\/p>\n<p>3\u3001\u67e5\u8be2\u914d\u7f6e\u540e\u4fe1\u606f<\/p>\n<p>[oracle@localhost.localdomain:\/soft]$cat ~\/.bash_profile <br \/># .bash_profile<\/p>\n<p># Get the aliases and functions<br \/>if [ -f ~\/.bashrc ]; then<br \/>&nbsp;  &nbsp;. ~\/.bashrc<br \/>fi<\/p>\n<p># User specific environment and startup programs<\/p>\n<p>PATH=$PATH:$HOME\/bin<\/p>\n<p>export PATH<\/p>\n<p># Oracle Settings oracle<br \/>TMP=\/tmp; export TMP<br \/>TMPDIR=$TMP; export TMPDIR<br \/>PS1=&#8221;[`whoami`@`hostname`:&#8221;&#8216;$PWD]$&#8217;<br \/>alias sqlplus=&#8221;rlwrap sqlplus&#8221;<br \/>alias rman=&#8221;rlwrap rman&#8221;<br \/>alias alert=&#8221;cd \/oracle\/app\/oracle\/diag\/rdbms\/db01\/db01\/trace&#8221;<br \/>alias lsnrctl=&#8221;rlwrap lsnrctl&#8221;<br \/>alias adrci=&#8221;rlwrap adrci&#8221;<br \/>export LANG=en_US<br \/>ORACLE_BASE=\/oracle\/app\/oracle; export ORACLE_BASE<br \/>ORACLE_HOME=$ORACLE_BASE\/product\/11.2.0; export ORACLE_HOME<br \/>ORACLE_SID=db01; export ORACLE_SID<br \/>ORACLE_TERM=xterm; export ORACLE_TERM<\/p>\n<p>PATH=\/usr\/sbin:$PATH; export PATH<br \/>PATH=$ORACLE_HOME\/bin:$PATH; export PATH<\/p>\n<p>LD_LIBRARY_PATH=$ORACLE_HOME\/lib:\/lib:\/usr\/lib; export LD_LIBRARY_PATH<br \/>CLASSPATH=$ORACLE_HOME\/JRE:$ORACLE_HOME\/jlib:$ORACLE_HOME\/rdbms\/jlib; export CLASSPATH<br \/>NLS_DATE_FORMAT=&#8221;yyyy-mm-dd HH24:MI:SS&#8221;; export NLS_DATE_FORMAT<br \/><span style=\"background-color: #c00000\">#NLS_LANG=AMERICAN_AMERICA.ZHS16GBK;export NLS_LANG<\/span><br \/><span style=\"background-color: #ffff00\">NLS_LANG=AMERICAN_AMERICA.AL16UTF16;export NLS_LANG<\/span><\/p>\n<p>if [ $USER = &#8220;oracle&#8221; ] || [ $USER = &#8220;grid&#8221; ]; then<br \/>&nbsp; &nbsp; &nbsp; &nbsp; if [ $SHELL = &#8220;\/bin\/ksh&#8221; ]; then<br \/>&nbsp; &nbsp; &nbsp; &nbsp;  ulimit -p 16384<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ulimit -n 65536<br \/>&nbsp; &nbsp; &nbsp; &nbsp; else<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ulimit -u 16384 -n 65536<br \/>&nbsp; &nbsp; &nbsp; &nbsp; fi<br \/>&nbsp; &nbsp; &nbsp; &nbsp; umask 022<br \/>fi<\/p>\n<p>4\u3001\u914d\u7f6e\u540e\u53ef\u4ee5\u901a\u8fc7SQL\u67e5\u8be2\u4fee\u6539\u540e\u5b57\u7b26\u96c6\u662f\u5426\u53d8\u66f4<\/p>\n<p>select * from nls_database_parameters;<\/p>\n<p>5\u3001\u518d\u6b21\u91cd\u542f\u5bfc\u5165\u6570\u636e<\/p>\n<p>[oracle@localhost.localdomain:\/soft]$imp scott\/scott file=\/soft\/scott_v1.dmp log=\/soft\/scott_v1.log1 ignore=y full=y<\/p>\n<p>Import: Release 11.2.0.4.0 &#8211; Production on Sun Oct 22 16:46:17 2017<\/p>\n<p>Copyright (c) 1982, 2011, Oracle and\/or its affiliates.&nbsp; All rights reserved.<\/p>\n<p>Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 &#8211; 64bit Production<br \/>With the Partitioning, OLAP, Data Mining and Real Application Testing options<\/p>\n<p>Export file created by EXPORT:V11.02.00 via conventional path<br \/>import done in ZHS16GBK character set and AL16UTF16 NCHAR character set<br \/>. importing SCOTT&#8217;s objects into SCOTT<br \/>. . importing table&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#8220;BONUS&#8221;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 rows imported<br \/>. . importing table&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &#8220;DEPT&#8221;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4 rows imported<br \/>. . importing table&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#8220;EMP&#8221;&nbsp; &nbsp; &nbsp; &nbsp;  14 rows imported<br \/>. . importing table&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &#8220;SALGRADE&#8221;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 5 rows imported<br \/>About to enable constraints&#8230;<br \/>Import terminated successfully without warnings.<span style=\"background-color: #ffff00\">&#8211;\u6b64\u65f6\u5bfc\u5165\u6bd4\u8f83\u6210\u529f\uff0c\u6ca1\u6709\u62a5\u9519\u4e86<\/span><\/p>\n<p><strong>\u77e5\u8bc6\u5ef6\u4f38\u9605\u8bfb<\/strong><\/p>\n<p>\u6d4b\u8bd5\u7684\u65f6\u5019\uff0c\u672c\u673aoracle\u5b89\u88c5\u91c7\u7528\u4e86utf8\u5b57\u7b26\u96c6\uff0c\u800c\u9879\u76ee\u7684\u8981\u6c42\u662fgbk\u5b57\u7b26\u96c6\uff0c\u4e3a\u4e86\u9632\u6b62\u4ee5\u540e\u6709\u4e0d\u540c\u5b57\u7b26\u96c6\u6570\u636e\u4fe1\u606f\u5bfc\u5165\u5bfc\u51fa\u7684\u95ee\u9898\uff0c\u6574\u7406\u4ee5\u4e0b\u6587\u6863\u3002<br \/>\u4fee\u6539oracle\u5b57\u7b26\u96c6\u65b0\u88c5\u4e86oracle,\u88c5\u4e3aAL32UTF8\u683c\u5f0f,\u65e0\u5948\u4e00\u4e2a\u5de5\u7a0b\u5bfc\u51fa\u5305\u662fZHS16GBK\u683c\u5f0f,\u60f3\u4e86\u60f3\u529e\u6cd5\u8f6c\u6362,\u4ee5\u4e0b\u662f\u5b66\u4e60 <br \/>\u4e00\u3001\u4ec0\u4e48\u662foracle\u5b57\u7b26\u96c6<br \/>\u3000\u3000Oracle\u5b57\u7b26\u96c6\u662f\u4e00\u4e2a\u5b57\u8282\u6570\u636e\u7684\u89e3\u91ca\u7684\u7b26\u53f7\u96c6\u5408,\u6709\u5927\u5c0f\u4e4b\u5206,\u6709\u76f8\u4e92\u7684\u5305\u5bb9\u5173\u7cfb\u3002ORACLE \u652f\u6301\u56fd\u5bb6\u8bed\u8a00\u7684\u4f53\u7cfb\u7ed3\u6784\u5141\u8bb8\u4f60\u4f7f\u7528\u672c\u5730\u5316\u8bed\u8a00\u6765\u5b58\u50a8\uff0c\u5904\u7406\uff0c\u68c0\u7d22\u6570\u636e\u3002\u5b83\u4f7f\u6570\u636e\u5e93\u5de5\u5177\uff0c\u9519\u8bef\u6d88\u606f\uff0c\u6392\u5e8f\u6b21\u5e8f\uff0c\u65e5\u671f\uff0c\u65f6\u95f4\uff0c\u8d27\u5e01\uff0c\u6570\u5b57\uff0c\u548c\u65e5\u5386\u81ea\u52a8\u9002\u5e94\u672c\u5730\u5316\u8bed\u8a00\u548c\u5e73\u53f0\u3002<\/p>\n<p>\u3000\u3000\u5f71\u54cdoracle\u6570\u636e\u5e93\u5b57\u7b26\u96c6\u6700\u91cd\u8981\u7684\u53c2\u6570\u662fNLS_LANG\u53c2\u6570\u3002\u5b83\u7684\u683c\u5f0f\u5982\u4e0b:<\/p>\n<p>\u3000\u3000NLS_LANG = language_territory.charset<\/p>\n<p>\u3000\u3000\u5b83\u6709\u4e09\u4e2a\u7ec4\u6210\u90e8\u5206(\u8bed\u8a00\u3001\u5730\u57df\u548c\u5b57\u7b26\u96c6)\uff0c\u6bcf\u4e2a\u6210\u5206\u63a7\u5236\u4e86NLS\u5b50\u96c6\u7684\u7279\u6027\u3002\u5176\u4e2d:<\/p>\n<p>\u3000\u3000Language \u6307\u5b9a\u670d\u52a1\u5668\u6d88\u606f\u7684\u8bed\u8a00\uff0cterritory \u6307\u5b9a\u670d\u52a1\u5668\u7684\u65e5\u671f\u548c\u6570\u5b57\u683c\u5f0f\uff0ccharset \u6307\u5b9a\u5b57\u7b26\u96c6\u3002\u5982:AMERICAN _ AMERICA. ZHS16GBK<\/p>\n<p>\u3000\u3000\u4eceNLS_LANG\u7684\u7ec4\u6210\u6211\u4eec\u53ef\u4ee5\u770b\u51fa\uff0c\u771f\u6b63\u5f71\u54cd\u6570\u636e\u5e93\u5b57\u7b26\u96c6\u7684\u5176\u5b9e\u662f\u7b2c\u4e09\u90e8\u5206\u3002\u6240\u4ee5\u4e24\u4e2a\u6570\u636e\u5e93\u4e4b\u95f4\u7684\u5b57\u7b26\u96c6\u53ea\u8981\u7b2c\u4e09\u90e8\u5206\u4e00\u6837\u5c31\u53ef\u4ee5\u76f8\u4e92\u5bfc\u5165\u5bfc\u51fa\u6570\u636e\uff0c\u524d\u9762\u5f71\u54cd\u7684\u53ea\u662f\u63d0\u793a\u4fe1\u606f\u662f\u4e2d\u6587\u8fd8\u662f\u82f1\u6587\u3002<\/p>\n<p>\u3000\u3000\u4e8c\u3001\u5982\u4f55\u67e5\u8be2Oracle\u7684\u5b57\u7b26\u96c6<\/p>\n<p>\u3000\u3000\u5f88\u591a\u4eba\u90fd\u78b0\u5230\u8fc7\u56e0\u4e3a\u5b57\u7b26\u96c6\u4e0d\u540c\u800c\u4f7f\u6570\u636e\u5bfc\u5165\u5931\u8d25\u7684\u60c5\u51b5\u3002\u8fd9\u6d89\u53ca\u4e09\u65b9\u9762\u7684\u5b57\u7b26\u96c6\uff0c\u4e00\u662foracel server\u7aef\u7684\u5b57\u7b26\u96c6\uff0c\u4e8c\u662foracle client\u7aef\u7684\u5b57\u7b26\u96c6;\u4e09\u662fdmp\u6587\u4ef6\u7684\u5b57\u7b26\u96c6\u3002\u5728\u505a\u6570\u636e\u5bfc\u5165\u7684\u65f6\u5019\uff0c\u9700\u8981\u8fd9\u4e09\u4e2a\u5b57\u7b26\u96c6\u90fd\u4e00\u81f4\u624d\u80fd\u6b63\u786e\u5bfc\u5165\u3002\u5f00\u59cb&mdash;\u8fd0\u884c&mdash;sqlplus\uff0c\u7528\u6237\u540d\u8f93\u5165\uff1asystem as sysdba <br \/>\u5bc6\u7801\uff1aXXXX<\/p>\n<p>\u3000\u30001\u3001\u67e5\u8be2oracle server\u7aef\u7684\u5b57\u7b26\u96c6<\/p>\n<p>\u3000\u3000\u6709\u5f88\u591a\u79cd\u65b9\u6cd5\u53ef\u4ee5\u67e5\u51faoracle server\u7aef\u7684\u5b57\u7b26\u96c6\uff0c\u6bd4\u8f83\u76f4\u89c2\u7684\u67e5\u8be2\u65b9\u6cd5\u662f\u4ee5\u4e0b\u8fd9\u79cd:SQL&gt;select userenv(&lsquo;language&rsquo;) from dual;<\/p>\n<p>\u3000\u3000\u7ed3\u679c\u7c7b\u4f3c\u5982\u4e0b:AMERICAN _ AMERICA. ZHS16GBK \uff08\u672c\u673a\u7ed3\u679cSIMPLIFIED CHINESE_CHINA.AL32UTF8\uff09<\/p>\n<p>\u3000\u30002\u3001\u5982\u4f55\u67e5\u8be2dmp\u6587\u4ef6\u7684\u5b57\u7b26\u96c6<\/p>\n<p>\u3000\u3000\u7528oracle\u7684exp\u5de5\u5177\u5bfc\u51fa\u7684dmp\u6587\u4ef6\u4e5f\u5305\u542b\u4e86\u5b57\u7b26\u96c6\u4fe1\u606f\uff0cdmp\u6587\u4ef6\u7684\u7b2c2\u548c\u7b2c3\u4e2a\u5b57\u8282\u8bb0\u5f55\u4e86dmp\u6587\u4ef6\u7684\u5b57\u7b26\u96c6\u3002\u5982\u679cdmp\u6587\u4ef6\u4e0d\u5927\uff0c\u6bd4\u5982\u53ea\u6709\u51e0M\u6216\u51e0\u5341M\uff0c\u53ef\u4ee5\u7528UltraEdit\u6253\u5f00(16\u8fdb\u5236\u65b9\u5f0f)\uff0c\u770b\u7b2c2\u7b2c3\u4e2a\u5b57\u8282\u7684\u5185\u5bb9\uff0c\u59820354\uff0c\u7136\u540e\u7528\u4ee5\u4e0bSQL\u67e5\u51fa\u5b83\u5bf9\u5e94\u7684\u5b57\u7b26\u96c6:<\/p>\n<p>\u3000\u3000SQL&gt; select nls_charset_name(to_number(&#8216;0354&#8242;,&#8217;xxxx&#8217;)) from dual;<\/p>\n<p>\u3000\u3000ZHS16GBK<\/p>\n<p>\u3000\u3000\u5982\u679cdmp\u6587\u4ef6\u5f88\u5927\uff0c\u6bd4\u5982\u67092G\u4ee5\u4e0a(\u8fd9\u4e5f\u662f\u6700\u5e38\u89c1\u7684\u60c5\u51b5)\uff0c\u7528\u6587\u672c\u7f16\u8f91\u5668\u6253\u5f00\u5f88\u6162\u6216\u8005\u5b8c\u5168\u6253\u4e0d\u5f00\uff0c\u53ef\u4ee5\u7528\u4ee5\u4e0b\u547d\u4ee4(\u5728unix\u4e3b\u673a\u4e0a):<\/p>\n<p>\u3000\u3000cat exp.dmp |od -x|head -1|awk &#8216;{print $2 $3}&#8217;|cut -c 3-6<\/p>\n<p>\u3000\u3000\u7136\u540e\u7528\u4e0a\u8ff0SQL\u4e5f\u53ef\u4ee5\u5f97\u5230\u5b83\u5bf9\u5e94\u7684\u5b57\u7b26\u96c6\u3002<\/p>\n<p>\u3000\u30003\u3001\u67e5\u8be2oracle client\u7aef\u7684\u5b57\u7b26\u96c6<\/p>\n<p>\u3000\u3000\u8fd9\u4e2a\u6bd4\u8f83\u7b80\u5355\u3002\u5728windows\u5e73\u53f0\u4e0b\uff0c\u5c31\u662f\u6ce8\u518c\u8868\u91cc\u9762HKEY_LOCAL_MACHINESOFTWAREORACLEHOME0NLS_LANG \u3002\u8fd8\u53ef\u4ee5\u5728dos\u7a97\u53e3\u91cc\u9762\u81ea\u5df1\u8bbe\u7f6e\uff0c\u6bd4\u5982:<\/p>\n<p>\u3000\u3000set nls_lang=AMERICAN_AMERICA.ZHS16GBK<\/p>\n<p>\u3000\u3000\u8fd9\u6837\u5c31\u53ea\u5f71\u54cd\u8fd9\u4e2a\u7a97\u53e3\u91cc\u9762\u7684\u73af\u5883\u53d8\u91cf\u3002<\/p>\n<p>\u3000\u3000\u5728unix\u5e73\u53f0\u4e0b\uff0c\u5c31\u662f\u73af\u5883\u53d8\u91cfNLS_LANG\u3002<\/p>\n<p>\u3000\u3000$echo $NLS_LANG<\/p>\n<p>\u3000\u3000AMERICAN_AMERICA.ZHS16GBK<\/p>\n<p>\u3000\u3000\u5982\u679c\u68c0\u67e5\u7684\u7ed3\u679c\u53d1\u73b0server\u7aef\u4e0eclient\u7aef\u5b57\u7b26\u96c6\u4e0d\u4e00\u81f4\uff0c\u8bf7\u7edf\u4e00\u4fee\u6539\u4e3a\u540cserver\u7aef\u76f8\u540c\u7684\u5b57\u7b26\u96c6\u3002<\/p>\n<p>\u3000\u3000\u4e09\u3001\u4fee\u6539oracle\u7684\u5b57\u7b26\u96c6<\/p>\n<p>\u3000\u3000\u4e0a\u6587\u8bf4\u8fc7\uff0coracle\u7684\u5b57\u7b26\u96c6\u6709\u4e92\u76f8\u7684\u5305\u5bb9\u5173\u7cfb\u3002\u5982us7ascii\u5c31\u662fzhs16gbk\u7684\u5b50\u96c6,\u4eceus7ascii\u5230zhs16gbk\u4e0d\u4f1a\u6709\u6570\u636e\u89e3\u91ca\u4e0a\u7684\u95ee\u9898,\u4e0d\u4f1a\u6709\u6570\u636e\u4e22\u5931\u3002\u5728\u6240\u6709\u7684\u5b57\u7b26\u96c6\u4e2dutf8\u5e94\u8be5\u662f\u6700\u5927,\u56e0\u4e3a\u5b83\u57fa\u4e8eunicode,\u53cc\u5b57\u8282\u4fdd\u5b58\u5b57\u7b26(\u4e5f\u56e0\u6b64\u5728\u5b58\u50a8\u7a7a\u95f4\u4e0a\u5360\u7528\u66f4\u591a)\u3002<\/p>\n<p>\u3000\u3000\u4e00\u65e6\u6570\u636e\u5e93\u521b\u5efa\u540e\uff0c\u6570\u636e\u5e93\u7684\u5b57\u7b26\u96c6\u7406\u8bba\u4e0a\u8bb2\u662f\u4e0d\u80fd\u6539\u53d8\u7684\u3002\u56e0\u6b64\uff0c\u5728\u8bbe\u8ba1\u548c\u5b89\u88c5\u4e4b\u521d\u8003\u8651\u4f7f\u7528\u54ea\u4e00\u79cd\u5b57\u7b26\u96c6\u5341\u5206\u91cd\u8981\u3002\u6839\u636eOracle\u7684\u5b98\u65b9\u8bf4\u660e\uff0c\u5b57\u7b26\u96c6\u7684\u8f6c\u6362\u662f\u4ece\u5b50\u96c6\u5230\u8d85\u96c6\u53d7\u652f\u6301,\u53cd\u4e4b\u4e0d\u884c\u3002\u5982\u679c\u4e24\u79cd\u5b57\u7b26\u96c6\u4e4b\u95f4\u6839\u672c\u6ca1\u6709\u5b50\u96c6\u548c\u8d85\u96c6\u7684\u5173\u7cfb\uff0c\u90a3\u4e48\u5b57\u7b26\u96c6\u7684\u8f6c\u6362\u662f\u4e0d\u53d7oracle\u652f\u6301\u7684\u3002\u5bf9\u6570\u636e\u5e93server\u800c\u8a00\uff0c\u9519\u8bef\u7684\u4fee\u6539\u5b57\u7b26\u96c6\u5c06\u4f1a\u5bfc\u81f4\u5f88\u591a\u4e0d\u53ef\u6d4b\u7684\u540e\u679c\uff0c\u53ef\u80fd\u4f1a\u4e25\u91cd\u5f71\u54cd\u6570\u636e\u5e93\u7684\u6b63\u5e38\u8fd0\u884c\uff0c\u6240\u4ee5\u5728\u4fee\u6539\u4e4b\u524d\u4e00\u5b9a\u8981\u786e\u8ba4\u4e24\u79cd\u5b57\u7b26\u96c6\u662f\u5426\u5b58\u5728\u5b50\u96c6\u548c\u8d85\u96c6\u7684\u5173\u7cfb\u3002\u4e00\u822c\u6765\u8bf4\uff0c\u9664\u975e\u4e07\u4e0d\u5f97\u5df2\uff0c\u6211\u4eec\u4e0d\u5efa\u8bae\u4fee\u6539oracle\u6570\u636e\u5e93server\u7aef\u7684\u5b57\u7b26\u96c6\u3002\u7279\u522b\u8bf4\u660e\uff0c\u6211\u4eec\u6700\u5e38\u7528\u7684\u4e24\u79cd\u5b57\u7b26\u96c6ZHS16GBK\u548cZHS16CGB231280\u4e4b\u95f4\u4e0d\u5b58\u5728\u5b50\u96c6\u548c\u8d85\u96c6\u5173\u7cfb\uff0c\u56e0\u6b64\u7406\u8bba\u4e0a\u8bb2\u8fd9\u4e24\u79cd\u5b57\u7b26\u96c6\u4e4b\u95f4\u7684\u76f8\u4e92\u8f6c\u6362\u4e0d\u53d7\u652f\u6301\u3002<\/p>\n<p>\u3000\u30001\u3001\u4fee\u6539server\u7aef\u5b57\u7b26\u96c6(\u4e0d\u5efa\u8bae\u4f7f\u7528)<\/p>\n<p>\u3000\u3000\u5728oracle 8\u4e4b\u524d\uff0c\u53ef\u4ee5\u7528\u76f4\u63a5\u4fee\u6539\u6570\u636e\u5b57\u5178\u8868props$\u6765\u6539\u53d8\u6570\u636e\u5e93\u7684\u5b57\u7b26\u96c6\u3002\u4f46oracle8\u4e4b\u540e\uff0c\u81f3\u5c11\u6709\u4e09\u5f20\u7cfb\u7edf\u8868\u8bb0\u5f55\u4e86\u6570\u636e\u5e93\u5b57\u7b26\u96c6\u7684\u4fe1\u606f\uff0c\u53ea\u6539props$\u8868\u5e76\u4e0d\u5b8c\u5168\uff0c\u53ef\u80fd\u5f15\u8d77\u4e25\u91cd\u7684\u540e\u679c\u3002\u6b63\u786e\u7684\u4fee\u6539\u65b9\u6cd5\u5982\u4e0b:<\/p>\n<p>\u3000\u3000$sqlplus \/nolog<\/p>\n<p>\u3000\u3000SQL&gt;conn \/ as sysdba;<\/p>\n<p>\u4ee5\u4e0a\u65b9\u6cd5\u6d4b\u8bd5\u4e0d\u884c\uff0c\u7528scott\/tiger\u767b\u9646sqlplus\u7136\u540econnect sys\/sys as sysdba\uff0c\u7136\u540e\u8f93\u5165\u547d\u4ee4\u5373\u53ef<\/p>\n<p>\u3000\u3000\u82e5\u6b64\u65f6\u6570\u636e\u5e93\u670d\u52a1\u5668\u5df2\u542f\u52a8\uff0c\u5219\u5148\u6267\u884cSHUTDOWN IMMEDIATE\u547d\u4ee4\u5173\u95ed\u6570\u636e\u5e93\u670d\u52a1\u5668\uff0c\u7136\u540e\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4:<\/p>\n<p>\u3000\u3000SQL&gt;STARTUP MOUNT;<\/p>\n<p>\u3000\u3000SQL&gt;ALTER SYSTEM ENABLE RESTRICTED SESSION;<\/p>\n<p>\u3000\u3000SQL&gt;ALTER SYSTEM SET JOB_QUEUE_PROCESSES=0;<\/p>\n<p>\u3000\u3000SQL&gt;ALTER SYSTEM SET AQ_TM_PROCESSES=0;<\/p>\n<p>\u3000\u3000SQL&gt;ALTER DATABASE OPEN;<\/p>\n<p>\u3000\u3000SQL&gt;ALTER DATABASE CHARACTER SET INTERNAL_USE ZHS16GBK; \/\/\u8df3\u8fc7\u8d85\u5b50\u96c6\u68c0\u6d4b<\/p>\n<p>\u3000\u3000SQL&gt;ALTER DATABASE national CHARACTER SET INTERNAL ZHS16GBK;<\/p>\n<p>\u8fd9\u4e00\u884c\u4e0d\u8d77\u4f5c\u7528\uff0c\u6267\u884c\u540e\u51fa\u9519ORA-00933: SQL \u547d\u4ee4\u672a\u6b63\u786e\u7ed3\u675f\uff0c\u4e0d\u8fc7\u6267\u884c\u4e0a\u4e00\u884c\u547d\u4ee4\u5df2\u7ecf\u751f\u6548\uff0c\u5176\u4ed6\u6587\u7ae0\u91cc\u672a\u63d0\u5230\u672c\u884c\u3002<\/p>\n<p>\u3000\u3000SQL&gt;SHUTDOWN IMMEDIATE;<\/p>\n<p>\u3000\u3000SQL&gt;STARTUP<\/p>\n<p>\u3000\u30002\u3001\u4fee\u6539dmp\u6587\u4ef6\u5b57\u7b26\u96c6<\/p>\n<p>\u3000\u3000\u4e0a\u6587\u8bf4\u8fc7\uff0cdmp\u6587\u4ef6\u7684\u7b2c2\u7b2c3\u5b57\u8282\u8bb0\u5f55\u4e86\u5b57\u7b26\u96c6\u4fe1\u606f\uff0c\u56e0\u6b64\u76f4\u63a5\u4fee\u6539dmp\u6587\u4ef6\u7684\u7b2c2\u7b2c3\u5b57\u8282\u7684\u5185\u5bb9\u5c31\u53ef\u4ee5&lsquo;\u9a97&rsquo;\u8fc7oracle\u7684\u68c0\u67e5\u3002\u8fd9\u6837\u505a\u7406\u8bba\u4e0a\u4e5f\u4ec5\u662f\u4ece\u5b50\u96c6\u5230\u8d85\u96c6\u53ef\u4ee5\u4fee\u6539\uff0c\u4f46\u5f88\u591a\u60c5\u51b5\u4e0b\u5728\u6ca1\u6709\u5b50\u96c6\u548c\u8d85\u96c6\u5173\u7cfb\u7684\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u4fee\u6539\uff0c\u6211\u4eec\u5e38\u7528\u7684\u4e00\u4e9b\u5b57\u7b26\u96c6\uff0c\u5982US7ASCII\uff0cWE8ISO8859P1\uff0cZHS16CGB231280\uff0cZHS16GBK\u57fa\u672c\u90fd\u53ef\u4ee5\u6539\u3002\u56e0\u4e3a\u6539\u7684\u53ea\u662fdmp\u6587\u4ef6\uff0c\u6240\u4ee5\u5f71\u54cd\u4e0d\u5927\u3002<\/p>\n<p>\u3000\u3000\u5177\u4f53\u7684\u4fee\u6539\u65b9\u6cd5\u6bd4\u8f83\u591a\uff0c\u6700\u7b80\u5355\u7684\u5c31\u662f\u76f4\u63a5\u7528UltraEdit\u4fee\u6539dmp\u6587\u4ef6\u7684\u7b2c2\u548c\u7b2c3\u4e2a\u5b57\u8282\u3002\u6bd4\u5982\u60f3\u5c06dmp\u6587\u4ef6\u7684\u5b57\u7b26\u96c6\u6539\u4e3aZHS16GBK\uff0c\u53ef\u4ee5\u7528\u4ee5\u4e0bSQL\u67e5\u51fa\u8be5\u79cd\u5b57\u7b26\u96c6\u5bf9\u5e94\u768416\u8fdb\u5236\u4ee3\u7801:<\/p>\n<p>\u3000\u3000SQL&gt; select to_char(nls_charset_id(&#8216;ZHS16GBK&#8217;), &#8216;xxxx&#8217;) from dual;<\/p>\n<p>\u3000\u30000354<\/p>\n<p>\u3000\u3000\u7136\u540e\u5c06dmp\u6587\u4ef6\u76842\u30013\u5b57\u8282\u4fee\u6539\u4e3a0354\u5373\u53ef\u3002<\/p>\n<p>\u3000\u3000\u5982\u679cdmp\u6587\u4ef6\u5f88\u5927\uff0c\u7528ue\u65e0\u6cd5\u6253\u5f00\uff0c\u5c31\u9700\u8981\u7528\u7a0b\u5e8f\u7684\u65b9\u6cd5\u4e86\u3002\u7f51\u4e0a\u6709\u4eba\u7528java\u5b58\u50a8\u8fc7\u7a0b\u5199\u4e86\u8f6c\u6362\u7684\u7a0b\u5e8f(\u7528java\u5b58\u50a8\u8fc7\u7a0b\u7684\u597d\u5904\u662f\u901a\u7528\u6027\u6559\u597d\uff0c\u7f3a\u70b9\u662f\u6bd4\u8f83\u9ebb\u70e6)\u3002\u6211\u5728windows\u4e0b\u6d4b\u8bd5\u901a\u8fc7\u3002\u4f46\u8981\u6c42oracle\u6570\u636e\u5e93\u4e00\u5b9a\u8981\u5b89\u88c5JVM\u9009\u9879\u3002\u6709\u5174\u8da3\u7684\u670b\u53cb\u53ef\u4ee5\u7814\u7a76\u4e00\u4e0b\u7a0b\u5e8f\u4ee3\u7801<\/p>\n<p>&nbsp; &nbsp; &nbsp; \u5728\u6ce8\u518c\u8868\u4e2d\u66f4\u6539ORACLE\u7684\u5b57\u7b26\u96c6\u7f16\u7801\u65b9\u5f0f\u7684\u64cd\u4f5c\uff1aregedit<br \/>&nbsp; &nbsp; &nbsp; \u6ce8\u518c\u8868\u8def\u5f84\uff1aHKEY_LOCAL_MACHINESOFTWAREORACLEHOME0<br \/>&nbsp; &nbsp; &nbsp; \u628a NLS_LANG \u7684\u503c\u4ece SIMPLIFIED CHINESE_CHINA.ZHS16GBK<br \/>&nbsp; &nbsp; &nbsp; \u6539\u4e3a AMERICAN_AMERICA.US7ASCII&nbsp;  american_america.we8dec<br \/>PS:<br \/>Oracle UTF8 \u7f16\u7801\u95ee\u9898<br \/>\u5176\u5b9e\u8fd9\u662f\u4e00\u4e2a\u8001\u95ee\u9898\uff0c\u5904\u7406\u8fc7\u591a\u6b21\u4e86\uff0c\u6bcf\u6b21\u90fd\u6ca1\u6709\u8bb0\u4f4f\uff0c\u8fd9\u6b21\u51b3\u5b9a\u5199\u4e0b\u6765\u4e86\u3002 \u5176\u5b9e\u5f88\u7b80\u5355\uff0c <br \/>1\uff09Oracle\u5176\u5b9e\u975e\u5e38\u597d\uff0c\u5b83\u4f1a\u81ea\u52a8\u5904\u7406\u7f16\u7801\u7684\u8f6c\u6362\u3002<br \/>2\uff09\u5ba2\u6237\u7aef\uff08\u8f93\u5165\u6570\u636e\u7684\u673a\u5668\uff09\u4fdd\u8bc1\u81ea\u7ed3\u6570\u636e\u4e0d\u51fa\u9519\u5c31\u597d\u4e86\u3002<br \/>\u5728\u8fd9\u4e2a\u57fa\u7840\u4e0a\uff0c\u8981\u7528Oracle,\u5e76\u4e14\u7528UTF8\uff08\u591a\u6570\u60c5\u51b5\u4e0b\u662f\u4e3a\u4e86\u5e94\u4ed8\u591a\u8bed\u8a00\uff09\u5b58\u50a8\u6570\u636e\uff0c\u53ea\u9700\u8981\u505a\u4e24\u4ef6\u4e8b\u60c5\uff1a<br \/>a)Oracle\u6570\u636e\u5e93\u7684\u5b9e\u4f8b\u7684\u7f16\u7801\u8bbe\u7f6e\u4e3aUTF8;(NLS_LANG=AMERICAN _ AMERICA.UTF8)<br \/>b)\u6570\u636e\u6587\u4ef6\u662f\u4ec0\u4e48\u7f16\u7801\uff0c\u5c31\u5c06\u5ba2\u6237\u7aef\u8bbe\u7f6e\u4e3a\u4ec0\u4e48\u7f16\u7801\uff08\u4f8b\u5982NLS_LANG=AMERICAN _ AMERICA.ZHS16GBK&nbsp; \u5728\u6ce8\u518c\u8868\u4e2d\u4fee\u6539\uff09\uff0c\u7136\u540e\u7528\u5de5\u5177\u5bfc\u5165\u6570\u636e\u3002<br \/>\u5c31\u53ef\u4ee5\u4e86&#8211;\u5728Java\u7a0b\u5e8f\u4e2d\u53ef\u4ee5\u5c3d\u60c5\u4f7f\u7528UTF8\u6765\u663e\u793a\u4e2d\u65e5\u97e9\u7b49\u591a\u56fd\u8bed\u8a00\u4e86<\/p>\n<p><span><span style=\"color: #ff0000\">\u66f4\u591aOracle\u76f8\u5173\u4fe1\u606f\u89c1<\/span><span style=\"color: #0000ff\">Oracle<\/span><span style=\"color: #ff0000\"> \u4e13\u9898\u9875\u9762 <\/span><span style=\"color: #0000ff\">http:\/\/www.linuxidc.com\/topicnews.aspx?tid=12<\/span><\/span><\/p>\n<p><span style=\"font-size: small\"><strong>\u672c\u6587\u6c38\u4e45\u66f4\u65b0\u94fe\u63a5\u5730\u5740<\/strong><\/span>\uff1ahttp:\/\/www.linuxidc.com\/Linux\/2018-01\/150043.htm<\/p>\n<p><a href=\"https:\/\/www.dongwubaike.cn\/fanhao\/wp-content\/uploads\/2024\/06\/haode23331722333222223.jpg\" data-fancybox=\"images\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dongwubaike.cn\/fanhao\/wp-content\/uploads\/2024\/06\/haode23331722333222223.jpg\" width=\"15\" height=\"17\" alt=\"Oracle\u4e2dIMP\u5bfc\u5165\u6570\u636e\u65f6\u63d0\u793a\u5b57\u7b26\u96c6\u4e0d\u4e00\u81f4\u89e3\u51b3\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u751f\u4ea7\u73af\u5883\u4e2d\u7ecf\u5e38\u4f7f\u7528\u5230Oracle\u7684IMP\u5bfc\u5165\u548cEXP\u5bfc\u51fa\u6765\u529f\u80fd\u6765\u8fbe\u5230\u6570\u636e\u8fc1\u79fb\u7684\u76ee\u7684,\u901a\u5e38\u5728\u6e90\u6570\u636e\u5e93\u548c\u76ee\u6807\u6570\u636e\u5e93\u4e2d\u67e5\u8be2\u5b57\u7b26\u96c6\u662f\u5426\u81f4,<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-209916","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.dongwubaike.cn\/fanhao\/wp-json\/wp\/v2\/posts\/209916","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dongwubaike.cn\/fanhao\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dongwubaike.cn\/fanhao\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dongwubaike.cn\/fanhao\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dongwubaike.cn\/fanhao\/wp-json\/wp\/v2\/comments?post=209916"}],"version-history":[{"count":1,"href":"https:\/\/www.dongwubaike.cn\/fanhao\/wp-json\/wp\/v2\/posts\/209916\/revisions"}],"predecessor-version":[{"id":308326,"href":"https:\/\/www.dongwubaike.cn\/fanhao\/wp-json\/wp\/v2\/posts\/209916\/revisions\/308326"}],"wp:attachment":[{"href":"https:\/\/www.dongwubaike.cn\/fanhao\/wp-json\/wp\/v2\/media?parent=209916"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dongwubaike.cn\/fanhao\/wp-json\/wp\/v2\/categories?post=209916"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dongwubaike.cn\/fanhao\/wp-json\/wp\/v2\/tags?post=209916"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}