Data Guard備庫日志的實(shí)時應(yīng)用與非實(shí)時應(yīng)用
發(fā)布日期:
2019-01-01


在Dataguard的備庫上應(yīng)用日志的時候,通常有兩個語句,但是這兩個語句是有區(qū)別的,一個是實(shí)時應(yīng)用,一個是非實(shí)時應(yīng)用。

alter database recover managed standby database disconnect from session;

alter database recover managed standby database using current logfile disconnect;


測試?

--在備庫上啟用實(shí)時應(yīng)用日志,并創(chuàng)建表?

alter database recover managed standby database using current logfile disconnect;?


--在主庫上創(chuàng)建表

19:23:46 SYS@test>create table zbb.t3(id number);

?

Table created.


--在備庫上查看表,立刻生效

ZBB@test_stdby>set time on?

19:24:02 ZBB@test_stdby>desc t3

?Name? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Null?? ? Type

?----------------------------------------- -------- ----------------------------

?ID? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?NUMBER


相關(guān)推薦

【DTCC2019】數(shù)據(jù)風(fēng)云,十年變遷 - 第十屆中國數(shù)據(jù)庫技術(shù)大會隆重啟動
作為國內(nèi)備受關(guān)注的數(shù)據(jù)庫及大數(shù)據(jù)領(lǐng)域技術(shù)盛會,第十屆中國數(shù)據(jù)...
董明珠談小米做空調(diào):質(zhì)量和技術(shù)比他們好,沒壓力
董明珠稱,格力啟動九萬員工開網(wǎng)店的模式后,格力業(yè)績當(dāng)月賣了2...
近20年數(shù)據(jù)被黑客全部清空 美國電郵商 VFEmail宣布倒閉
數(shù)據(jù),對于企業(yè)來講是至關(guān)重要的,如果企業(yè)的數(shù)據(jù)庫被黑客攻陷,...
半年墜毀兩架,波音737MAX-8你還敢坐嗎?
當(dāng)?shù)貢r間3月10日上午,埃塞俄比亞航空公司的一架載有149名...