溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

exp日常操作有哪些

發(fā)布時間:2021-11-25 09:31:26 來源:億速云 閱讀:153 作者:小新 欄目:關(guān)系型數(shù)據(jù)庫

小編給大家分享一下exp日常操作有哪些,相信大部分人都還不怎么了解,因此分享這篇文章給大家參考一下,希望大家閱讀完這篇文章后大有收獲,下面讓我們一起去了解一下吧!

1、跟蹤exp導(dǎo)出操作

strace -o sexp.txt exp user/password file=exptable.dmp buffer=4096000

or

ps -ef |grep exp 

strace -c -p exp_pid

eg:

[oracle@orcl ~]$ strace -c -p 3859

Process 3859 attached - interrupt to quit

Process 3859 detached

% time     seconds  usecs/call     calls    errors syscall

------ ----------- ----------- --------- --------- ----------------

 87.38    0.004672        2336         2           brk

  6.62    0.000354           0      2045           write

  6.00    0.000321           0      1882           read

  0.00    0.000000           0         5           close

  0.00    0.000000           0        18           lseek

  0.00    0.000000           0         4           munmap

  0.00    0.000000           0         1           rt_sigaction

  0.00    0.000000           0         2           rt_sigprocmask

------ ----------- ----------- --------- --------- ----------------

100.00    0.005347                  3959           total

2、EXP-00091: Exporting questionable statistics

[oracle@orcl ~]$ exp lineqi/lineqi file=/home/oracle/aaa.dmp tables=aaa  query=\" where id=2 \"

Export: Release 11.2.0.4.0 - Production on Sat Oct 21 13:22:12 2017

……………………

About to export specified tables via Conventional Path ...

. . exporting table                            AAA          1 rows exported

EXP-00091: Exporting questionable statistics

導(dǎo)出部分表中數(shù)據(jù),提示統(tǒng)計信息有問題,這里可以加上statistics=none參數(shù)

exp lineqi/lineqi file=/home/oracle/aaa.dmp tables=aaa  query=\" where id=2 \" statistics=none

About to export specified tables via Conventional Path ...

. . exporting table                            AAA          1 rows exported

Export terminated successfully without warnings.

出現(xiàn)EXP-00091還有可能是數(shù)據(jù)庫字符集與客戶字符集(NLS_LANG)不一致,

select * from v$nls_parameters where parameter like 'NLS_CHARACTERSET%';

NLS_CHARACTERSET                AL32UTF8

[oracle@orcl ~]$ echo $NLS_LANG

AMERICAN_AMERICA.ZHS16GBK

[oracle@orcl ~]$ exp lineqi/lineqi@satdb file=/home/oracle/aaa04.dmp tables=aaa  

Export: Release 11.2.0.4.0 - Production on Sat Oct 21 13:36:18 2017

About to export specified tables via Conventional Path ...

. . exporting table                            AAA         14 rows exported

EXP-00091: Exporting questionable statistics.

Export terminated successfully with warnings.

3、獲取exp導(dǎo)出dump文件中表信息

strings test02.dmp |grep "CREATE TABLE"|awk '{print $3}'|sed 's/"//g'

AAA

BFW_TEST

CBC_TEST

EMP1

PAGE

strings test02.dmp |grep "CREATE TABLE"|awk '{print $3}'|sed 's/"//g'|awk '{if(FNR==1) print "table="$1;else print ","$1}'

table=AAA

,BFW_TEST

,CBC_TEST

,EMP1

,PAGE

以上是“exp日常操作有哪些”這篇文章的所有內(nèi)容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內(nèi)容對大家有所幫助,如果還想學(xué)習(xí)更多知識,歡迎關(guān)注億速云行業(yè)資訊頻道!

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

exp
AI