我在linux系统上导出特定表
我只想导出hcp_开头的表,这样的表非常多,所以不便用列表,可我下面的写法却把HCPSDF_1这种表也导出来了,相当于把hcp开头的导出了,那个'_'没起到作用,请帮忙看看到底应该怎么写?
rpt@oracle:/opt/oracle/hcp>exp \'/ as sysdba\' tables=hcp_% file=hcp.dmp log=hcp.log
Export: Release 9.2.0.4.0 - Production on Mon Oct 18 11:18:29 2010
Copyright (c) 1982, 2002, Oracle Corporation.All rights reserved.
Connected to: Oracle9i Release 9.2.0.4.0 - Production
JServer Release 9.2.0.4.0 - Production
Export done in ZHS16CGB231280 character set and AL16UTF16 NCHAR character set
server uses ZHS16GBK character set (possible charset conversion)
About to export specified tables via Conventional Path ...
. . exporting table
HCPSDF_1
0 rows exported
. . exporting table
HCP_1
0 rows exported
. . exporting table
HCP_TEST
2 rows exported
Export terminated successfully without warnings.
[ 本帖最后由 浪漫双鱼 于 2010-10-18 11:24 编辑 ]
试过,也不行
rpt@oracle:/opt/oracle/hcp>exp \'/ as sysdba\' tables=hcp\_% file=hcp.dmp log=hcp.log
Export: Release 9.2.0.4.0 - Production on Mon Oct 18 12:08:05 2010
Copyright (c) 1982, 2002, Oracle Corporation.All rights reserved.
Connected to: Oracle9i Release 9.2.0.4.0 - Production
JServer Release 9.2.0.4.0 - Production
Export done in ZHS16CGB231280 character set and AL16UTF16 NCHAR character set
server uses ZHS16GBK character set (possible charset conversion)
About to export specified tables via Conventional Path ...
. . exporting table
HCPSDF_1
0 rows exported
. . exporting table
HCP_1
0 rows exported
. . exporting table
HCP_TEST
2 rows exported
Export terminated successfully without warnings.
SQL> select table_name from dba_tables where table_name like 'T\_%' escape '\';
未选定行
SQL> select table_name from dba_tables where table_name like 'TTS\_%' escape '\';
TABLE_NAME
------------------------------
TTS_USR$
TTS_TBS$
TTS_ERROR$
SQL>
rpt@oracle:/opt/oracle/hcp>exp \'/ as sysdba\' tables=hcp\_% escape '\' file=hcp.dmp log=hcp.log
Export: Release 9.2.0.4.0 - Production on Mon Oct 18 14:05:23 2010
Copyright (c) 1982, 2002, Oracle Corporation.All rights reserved.
Connected to: Oracle9i Release 9.2.0.4.0 - Production
JServer Release 9.2.0.4.0 - Production
Export done in ZHS16CGB231280 character set and AL16UTF16 NCHAR character set
server uses ZHS16GBK character set (possible charset conversion)
About to export specified tables via Conventional Path ...
. . exporting table
HCPSDF_1
0 rows exported
. . exporting table
HCP_1
0 rows exported
. . exporting table
HCP_TEST
2 rows exported
EXP-00011: SYS.ESCAPE does not exist
Export terminated successfully with warnings.
还是不行,exp中没得escape这个参数得
[ 本帖最后由 浪漫双鱼 于 2010-10-18 14:10 编辑 ]