Oracle的導出實用程序(Export utility)允許從數據庫提取數據
exp help=y
exp system/manager file=bible_db log=dible_db full=y
exp system/manager file=bible_db log=dible_db full=y rows=n
exp system/manager file=seapark log=seapark owner=seapark
exp system/manager file=seapark log=seapark owner=(seapark
注意
SET LINESIZE
SET PAGESIZE
SET TRIMSPOOL ON
SPOOL c:\seapark
SELECT
||
FROM dba_synonyms
WHERE table_owner =
SPOOL OFF
exp seapark/seapark file=tank log=tank tables=tank
exp system/manager file=tank log=tank tables=seapark
exp system/manager file=tank log=tank tables=(seapark
全部表總字節數
SELECT sum(bytes)
FROM dba_segments
WHERE segment_type =
seapark用戶所屬表的總字節數
SELECT sum(bytes)
FROM dba_segments
WHERE owner =
AND segment_type =
seapark用戶下的aquatic_animal表的字節數
SELECT sum(bytes)
FROM dba_segments
WHERE owner =
AND segment_type =
AND segment_name =
NT系統
exp system/manager query=
file=fruit log=fruit
UNIX系統
exp system/manager query=\
file=fruit log=fruit
exp system/manager
file=(paycheck_
log=paycheck
exp system/manager parfile=bible_tables
bible_tables
#Export the sample tables used for the Oracle
file=bible_tables
log=bible_tables
tables=(
amy
amy
seapark
ems
)
exp system/manager inctype=complete file=
exp system/manager inctype=incremental file=
exp system/manager inctype=cumulative file=
From:http://tw.wingwit.com/Article/program/Oracle/201311/17383.html