网创优客建站品牌官网
为成都网站建设公司企业提供高品质网站建设
热线:028-86922220
成都专业网站建设公司

定制建站费用3500元

符合中小企业对网站设计、功能常规化式的企业展示型网站建设

成都品牌网站建设

品牌网站建设费用6000元

本套餐主要针对企业品牌型网站、中高端设计、前端互动体验...

成都商城网站建设

商城网站建设费用8000元

商城网站建设因基本功能的需求不同费用上面也有很大的差别...

成都微信网站建设

手机微信网站建站3000元

手机微信网站开发、微信官网、微信商城网站...

建站知识

当前位置:首页 > 建站知识

exp日常操作有哪些

小编给大家分享一下exp日常操作有哪些,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!

创新互联自2013年起,是专业互联网技术服务公司,拥有项目网站建设、做网站网站策划,项目实施与项目整合能力。我们以让每一个梦想脱颖而出为使命,1280元阿拉尔做网站,已为上家服务,为阿拉尔各地企业和个人服务,联系电话:028-86922220

1、跟踪exp导出操作

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

导出部分表中数据,提示统计信息有问题,这里可以加上statistics=none参数

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.

出现EXP-00091还有可能是数据库字符集与客户字符集(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导出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日常操作有哪些”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注创新互联行业资讯频道!


名称栏目:exp日常操作有哪些
分享网址:http://bjjierui.cn/article/gojccs.html

其他资讯