通过Xen理解Oracle VM原理
2011-02-25 15:21
579 查看
add new table with simple step:
SQL> set numwidth 20
SQL> select dbms_flashback.get_system_change_number() from dual;
DBMS_FLASHBACK.GET_SYSTEM_CHANGE_NUMBER()
-----------------------------------------
8331188817820
$> expdp sgreports/sgreports tables=sgreports.test2 directory=expdir logfile=test2.log dumpfile=test2.dmp flashback_scn=8331188817820
On the destination system:
1. As the system user, create the Oracle directory for the export dump file. Make sure the physical directory exists on the filesystem.
create directory impdir as '/oracle/ora_backup';
Copy the export dump file, test.dmp from the source system to /oracle/ora_backup
scp test2.dmp oracle@nazar.prc.sun.com:/oracle/ora_backup
3. Import the application schema:
$> impdp system/sys directory=impdir dumpfile=test2.dmp logfile=test2.log
connect strmadmin/strmadmin@stream1 BEGIN DBMS_STREAMS_ADM.ADD_TABLE_RULES( table_name => 'sgreports.test2', streams_type => 'capture', streams_name => 'capture_stream1', queue_name => 'capture_stream1_queue', include_dml => true, source_database=>'henry.sun.net', include_ddl => true, inclusion_rule => true); END; /
BEGIN
DBMS_STREAMS_ADM.ADD_TABLE_RULES(
table_name => 'sgreports.test2',
streams_type => 'apply',
streams_name => 'apply_stream11',
queue_name => 'capture_stream1_queue',
include_dml => true,
include_ddl => true,
source_database => 'henry.sun.net',
inclusion_rule => true);
END;
/
相关文章推荐
- 通过Xen理解Oracle VM原理
- .通过Xen理解Oracle VM原理
- 通过汇编码理解switch语句的原理
- 通过SmartInvoke运用java与flex轻松构建cs程序(理解SmartInvoke的运行原理)
- 通过源码深入理解 Spring 事务的实现原理
- Photoshop:通过图片理解通道原理
- 通过Servlet理解MVC框架的基本实现原理
- 通过NBU恢复Oracle理解的恢复原理 推荐
- HashMap实现原理分析--通过面试题深入理解
- 通过python代码理解rabbitmq消息收发原理
- 通过JVM原理理解字符串的比较
- 3分钟通过一个App的演示深入理解区块链运行原理
- 通过JVM原理理解字符串的比较
- 通过协议分析理解端口扫描原理
- Lua的系统学习(杂)_通过Lua调用C#方法(热更新最直观的原理理解)_简单的随机数实现
- 单步调试理解webpack里通过require加载nodejs原生模块实现原理
- 通过实例理解AOP原理
- 深入理解函数内部原理(4)——通过new操作符调用构造函数
- 通过JVM原理理解字符串的比较
- 通过C++和python场景实例理解装饰器设计模式。