ITPub博客

首页 > 应用开发 > IT综合 > transport tablespace into another user

transport tablespace into another user

原创 IT综合 作者:itpremier 时间:2010-11-25 11:10:07 0 删除 编辑

something need to keep in mind about transportable-tablespace migrate.
1, execute dbms_tts.transport_set_check . -- check tablespace integrity.
2, alter tablespace ts_1 read only -- set tablespace in read only mode.
-- transport tablespace need sysdba privilege.
3, exp '/ as sysdba ' file=ts1.dmp tablespaces=ts_1 transport_tablespace=y
4, host copy datafile .-- this is only assumed when datafile is an os file.
-- import a transport tablespace need sysdba privilege.
-- tts_owners specify the schema who own the segments in the transport tablespace(ts_1).
5, imp '/ as sysdba ' file=ts1.dmp tablespaces=ts_1 transport_tablespace=y datafiles='e:ts_1.dmp' tts_owners=test
-- If you want to import segments to a new user in the destination , do as the following .
-- Assume you want to import segments from user test to scott.
imp '/ as sysdba ' file=ts1.dmp tablespaces=ts_1 transport_tablespace=y datafiles='e:ts_1.dmp' tts_owners=test

fromuser=test touser=scott.

-- convert byte-order in cross-platform transport tablespace.

-- do convert in source system .

http://tech.ccidnet.com/art/1105/20070307/1031109_2.html

http://blog.csdn.net/wangdeng1314/archive/2010/05/20/5612552.aspx

http://yangtingkun.itpub.net/post/468/13902

[@more@]

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/350519/viewspace-1042058/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: Oracle中RAISE异常
请登录后发表评论 登录
全部评论

注册时间:2008-11-27

  • 博文量
    253
  • 访问量
    773714