exp,imp 出现问题?
SQL> conn scott/tiger
已连接。
SQL> create table a (a varchar2(20));
表已创建。
SQL> insert into a values (utl_raw.cast_to_varchar2('EC290575786a37ec4e5fe638d2c44b7b')) ;
已创建 1 行。
SQL> select * from a;
A
--------------------
?uxj7霳_?夷K{
SQL> commit;
提交完成。
----exp scott/tiger tables=a file=c;
Export: Release 9.2.0.1.0 - Production on 星期四 4月 12 11:07:07 2007
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
连接到: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, Oracle Label Security, OLAP and Data Mining options
已导出 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集
即将导出指定的表通过常规路径 ...
. . 正在导出表 A 1 行被导出
在没有警告的情况下成功终止导出。
SQL> create table b as select * from a;
表已创建。
SQL> drop table a;
表已丢弃。
-----imp scott/tiger tables=a file=c;
SQL> select * from a;
A
--------------------
?uxj7霳_?夷K{
SQL> select * from b;
A
--------------------
?uxj7霳_?夷K{
SQL> select * from a minus select * from b;
未选定行
SQL> create table c (a varchar2(20));
表已创建。
SQL> insert into c values(utl_raw.cast_to_varchar2('3F2180BA5A1E0FE062F5E0E292C9BDDD'));
已创建 1 行。
SQL> select * from c;
A
--------------------
?!€篫郻踵鈷山
SQL> commit;
提交完成。
-----exp scott/tiger tables=c file=c;
SQL> create table d as select * from c;
表已创建。
SQL> drop table c;
表已丢弃。
-----imp scott/tiger tables=c file=c;
SQL> select * from d;
A
--------------------
?!€篫郻踵鈷山
SQL> select * from c;
A
--------------------
?!€篫郻踵鈷山
SQL> select * from d minus select * from c;
A
--------------------
?!€篫郻踵鈷山
SQL> select utl_raw.cast_to_raw(c.a),utl_raw.cast_to_raw(d.a) from d,c;
UTL_RAW.CAST_TO_RAW(C.A)
--------------------------------------------------------------------------------
UTL_RAW.CAST_TO_RAW(D.A)
--------------------------------------------------------------------------------
3F2180BA5A1E0FE062F5E0E292C9BD
3F2180BA5A1E0FE062F5E0E292C9BDDD
---这里不一样了---
也就是说有时候好用有时候不好用。
为什么呢。
SQL> conn scott/tiger
已连接。
SQL> create table a (a varchar2(20));
表已创建。
SQL> insert into a values (utl_raw.cast_to_varchar2('EC290575786a37ec4e5fe638d2c44b7b')) ;
已创建 1 行。
SQL> select * from a;
A
--------------------
?uxj7霳_?夷K{
SQL> commit;
提交完成。
----exp scott/tiger tables=a file=c;
Export: Release 9.2.0.1.0 - Production on 星期四 4月 12 11:07:07 2007
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
连接到: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, Oracle Label Security, OLAP and Data Mining options
已导出 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集
即将导出指定的表通过常规路径 ...
. . 正在导出表 A 1 行被导出
在没有警告的情况下成功终止导出。
SQL> create table b as select * from a;
表已创建。
SQL> drop table a;
表已丢弃。
-----imp scott/tiger tables=a file=c;
SQL> select * from a;
A
--------------------
?uxj7霳_?夷K{
SQL> select * from b;
A
--------------------
?uxj7霳_?夷K{
SQL> select * from a minus select * from b;
未选定行
SQL> create table c (a varchar2(20));
表已创建。
SQL> insert into c values(utl_raw.cast_to_varchar2('3F2180BA5A1E0FE062F5E0E292C9BDDD'));
已创建 1 行。
SQL> select * from c;
A
--------------------
?!€篫郻踵鈷山
SQL> commit;
提交完成。
-----exp scott/tiger tables=c file=c;
SQL> create table d as select * from c;
表已创建。
SQL> drop table c;
表已丢弃。
-----imp scott/tiger tables=c file=c;
SQL> select * from d;
A
--------------------
?!€篫郻踵鈷山
SQL> select * from c;
A
--------------------
?!€篫郻踵鈷山
SQL> select * from d minus select * from c;
A
--------------------
?!€篫郻踵鈷山
SQL> select utl_raw.cast_to_raw(c.a),utl_raw.cast_to_raw(d.a) from d,c;
UTL_RAW.CAST_TO_RAW(C.A)
--------------------------------------------------------------------------------
UTL_RAW.CAST_TO_RAW(D.A)
--------------------------------------------------------------------------------
3F2180BA5A1E0FE062F5E0E292C9BD
3F2180BA5A1E0FE062F5E0E292C9BDDD
---这里不一样了---
也就是说有时候好用有时候不好用。
为什么呢。