今天在用exp導出庫中的數據時,遇到一些問題,特記錄之。
$ exp system/oracle owner=system file=/oracle/full.dmp statistics=estimate
Export: Release 10.2.0.5.0 - Production on Sun Apr 28 12:46:16 2013
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit 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 ZHS16GBK character set (possible charset conversion)
About to export specified users ...
. exporting pre-schema procedural objects and actions
. exporting foreign function library names for user SYSTEM
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting object type definitions for user SYSTEM
About to export SYSTEM's objects ...
. exporting database links
. exporting sequence numbers
. exporting cluster definitions
EXP-00056: ORACLE error 1157 encountered
ORA-01157: cannot identify/lock data file 201 - see DBWR trace file
以上問題一般是因爲數據庫丟失臨時表空間,或臨時表空間太小。解決辦法是增加臨時表空間或增大臨時表空間數據文件的大小。