17,381
社区成员
发帖
与我相关
我的任务
分享
-- 用这个语句查询你某一模式下的所有表:
SQL> SELECT object_name||',' as user_object
2 from user_objects where object_type='TABLE';
USER_OBJECT
--------------------------------------------------------------------------------
DEPT,
EMP,
BONUS,
SALGRADE,
T1,
T2,
T3,
T4,
T,
[oracle@sztyora exp]$ exp "scott/bee56915 file=/u02/exp/scott.dmp indexes=n grants=n constraints=n direct=n TABLES=(emp,bonus) QUERY='WHERE rownum<=100'"
Export: Release 10.2.0.4.0 - Production on Fri Jun 11 20:44:29 2010
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Export done in US7ASCII character set and AL16UTF16 NCHAR character set
server uses AL32UTF8 character set (possible charset conversion)
Note: grants on tables/views/sequences/roles will not be exported
Note: indexes on tables will not be exported
Note: constraints on tables will not be exported
About to export specified tables via Conventional Path ...
. . exporting table EMP 14 rows exported
EXP-00091: Exporting questionable statistics.
. . exporting table BONUS 0 rows exported
EXP-00091: Exporting questionable statistics.
Export terminated successfully with warnings.
[oracle@sztyora exp]$
[oracle@sztyora exp]$ exp "scott/bee56915 TABLES=(emp,bonus) QUERY='WHERE rownum<=100'"
Export: Release 10.2.0.4.0 - Production on Fri Jun 11 20:38:38 2010
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Export done in US7ASCII character set and AL16UTF16 NCHAR character set
server uses AL32UTF8 character set (possible charset conversion)
About to export specified tables via Conventional Path ...
. . exporting table EMP 14 rows exported
EXP-00091: Exporting questionable statistics.
EXP-00091: Exporting questionable statistics.