ORACLE 经常使用的命令工具-第七章:数据整理

上一篇 / 下一篇  2009-01-07 22:27:12 / 个人分类:Oracle

  • 文件版本: V1.0
  • 开发商: 本站原创
  • 文件来源: 本地
  • 界面语言: 简体中文
  • 授权方式: 免费
  • 运行平台: Win9X/Win2000/WinXP
第七章:数据整理 51Testing软件测试网(GIv lg NH d

  1.using expoty

/?-}E.X%I V-rj0 51Testing软件测试网8{(W n$Y_

  $exp scott/tiger tables(dept,emp) file=c:\emp.dmp log=exp.log compress=n direct=y51Testing软件测试网0?X_y#[9W^o-Q`o

^/T2{$jN0  2.using import51Testing软件测试网!BIU"F4R HGgp

k2S_$f-W.TOM!^9} [0  $imp scott/tiger tables(dept,emp) file=emp.dmp log=imp.log ignore=y

%g|vX;bqG;i0

^ G_e-EI0  3.transporting a tablespace51Testing软件测试网"H!s-j,hos.R"h!C

51Testing软件测试网^%dFU g-zP

  sql>alter tablespace sales_ts read only;51Testing软件测试网9_nN+u+[K

+e1[^ vr)c0  $exp sys/.. file=xay.dmp transport_tablespace=y tablespace=sales_ts

VHC3k2l8oJP0 51Testing软件测试网!qYno|(GtPe _'J1O

  triggers=n constraints=n51Testing软件测试网uDT1Nh\

51Testing软件测试网 ~/D,_}2w~8a

  $copy datafile51Testing软件测试网o&O_K7lfz"e\p

$v/@So7j0  $imp sys/.. file=xay.dmp transport_tablespace=y datafiles=(/disk1/sles01.dbf,/disk251Testing软件测试网U4P}UhSC#Z

51Testing软件测试网!N)U%eXu5J(l _

  /sles02.dbf)

ON6sQd0

DdAo'Ifd X&d]0  sql> alter tablespace sales_ts read write;

V'H Ky2MH zVu0

*eMP G"x2[ g,XD0  4.checking transport set

v'^r2u"DV#o+\]0 51Testing软件测试网3h-q z \D0WwM#U;x

  sql> DBMS_tts.transport_set_check(ts_list =>'sales_ts' ..,incl_constraints=>true);

D6u\5WdHi0 51Testing软件测试网R-b \z&p

  在表transport_set_violations 中查看51Testing软件测试网/X4JX)hc5nT'{

51Testing软件测试网6Ihf%Xxw4_

  sql> dbms_tts.isselfcontained 为true 是, 表示自包含

0S*v!i6]g!D0

TAG: Oracle

 

评分:0

我来说两句

Open Toolbar