| 導購 | 订阅 | 在线投稿
分享
 
 
當前位置: 王朝網路 >> oracle >> Oracle 10g使用RMAN創建physical standby
 

Oracle 10g使用RMAN創建physical standby

2008-08-07 07:35:04  編輯來源:互聯網  简体版  手機版  評論  字體: ||
 
 
  1.試驗環境

  SQL> select * from v$version;

  BANNER

  ----------------------------------------------------------------

  Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod

  PL/SQL Release 10.2.0.1.0 - Production

  CORE 10.2.0.1.0 Production

  TNS for Linux: Version 10.2.0.1.0 - Production

  NLSRTL Version 10.2.0.1.0 - Production

  2.確認主庫處于歸檔模式

  SQL> archive log list;

  Database log mode Archive Mode

  Automatic archival Enabled

  Archive destination /u02/arch

  Oldest online log sequence 154

  Next log sequence to archive 156

  Current log sequence 156

  3.創建備庫instance

  windows平台利用oradim工具創建一個新的instance,

  unix/linux平台設置新的ORACLE_SID即可

  4.准備好主備庫的參數文件

  主庫:

  orcl.__db_cache_size=184549376

  orcl.__java_pool_size=4194304

  orcl.__large_pool_size=4194304

  orcl.__shared_pool_size=88080384

  orcl.__streams_pool_size=0

  *.audit_file_dest='/u01/oracle/admin/orcl/adump'

  *.background_dump_dest='/u01/oracle/admin/orcl/bdump'

  *.compatible='10.2.0.1.0'

  *.control_files='/u01/oracle/oradata/orcl/control01.ctl','

  /u01/oracle/oradata/orcl/control02.ctl','

  /u01/oracle/oradata/orcl/control03.ctl'

  *.core_dump_dest='/u01/oracle/admin/orcl/cdump'

  *.db_block_size=8192

  *.db_domain=''

  *.db_file_multiblock_read_count=16

  *.db_name='orcl'

  *.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'

  *.job_queue_processes=10

  *.log_archive_dest_1='LOCATION=/u02/arch'

  *.log_archive_format='%t_%s_%r.dbf'

  *.nls_language='SIMPLIFIED CHINESE'

  *.nls_territory='CHINA'

  *.open_cursors=300

  *.pga_aggregate_target=94371840

  *.processes=150

  *.remote_login_passwordfile='EXCLUSIVE'

  *.sga_target=285212672

  *.undo_management='AUTO'

  *.undo_tablespace='UNDOTBS1'

  *.user_dump_dest='/u01/oracle/admin/orcl/udump'

  #################################

  db_unique_name=node1

  service_names=orcl

  log_archive_config='dg_config=(node1,node2)'

  log_archive_dest_2='service=dbstandby

  valid_for=(online_logfiles,primary_role) db_unique_name=node2'

  log_archive_dest_state_1=enable

  log_archive_dest_state_2=enable

  fal_server=dbstandby

  standby_file_management=AUTO

  備庫:

  orcl.__db_cache_size=184549376

  orcl.__java_pool_size=4194304

  orcl.__large_pool_size=4194304

  orcl.__shared_pool_size=88080384

  orcl.__streams_pool_size=0

  *.audit_file_dest='/u01/oracle/admin/orcl/adump'

  *.background_dump_dest='/u01/oracle/admin/orcl/bdump'

  *.compatible='10.2.0.1.0'

  *.control_files='/u01/oracle/oradata/orcl/control01.ctl','

  /u01/oracle/oradata/orcl/control02.ctl','

  /u01/oracle/oradata/orcl/control03.ctl'

  *.core_dump_dest='/u01/oracle/admin/orcl/cdump'

  *.db_block_size=8192

  *.db_domain=''

  *.db_file_multiblock_read_count=16

  *.db_name='orcl'

  *.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'

  *.job_queue_processes=10

  *.log_archive_dest_1='LOCATION=/u02/arch'

  *.log_archive_format='%t_%s_%r.dbf'

  *.nls_language='SIMPLIFIED CHINESE'

  *.nls_territory='CHINA'

  *.open_cursors=300

  *.pga_aggregate_target=94371840

  *.processes=150

  *.remote_login_passwordfile='EXCLUSIVE'

  *.sga_target=285212672

  *.undo_management='AUTO'

  *.undo_tablespace='UNDOTBS1'

  *.user_dump_dest='/u01/oracle/admin/orcl/udump'

  #################################

  db_unique_name=node2

  service_names=orcl

  log_archive_config='dg_config=(node1,node2)'

  log_archive_dest_2='service=dbprimary

  valid_for=(online_logfiles,primary_role) db_unique_name=node1'

  log_archive_dest_state_1=enable

  log_archive_dest_state_2=enable

  fal_server=dbprimary

  fal_client=dbstandby

  standby_file_management=AUTO

  5.生成password file

  c:/>orapwd file=d:/oracle/ora92/DATABASE/PWDtest.ORA password=pass

  或者直接將主庫上的密碼文件copy一份到備庫上

  6.配置網絡

  配置主備庫的listener.ora,tnsnames.ora。修改完listener.ora後需要重啓監聽器。

  主庫:

  listener.ora

  SID_LIST_LISTENER =

  (SID_LIST =

  (SID_DESC =

  (SID_NAME = PLSExtProc)

  (ORACLE_HOME = /u01/oracle/product/10.2.0)

  (PROGRAM = extproc)

  )

  )

  LISTENER =

  (DESCRIPTION_LIST =

  (DESCRIPTION =

  (ADDRESS = (PROTOCOL = TCP)(HOST = s1.gti.com)(PORT = 1521))

  (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))

  )

  )

  tnsnames.ora

  dbprimary =

  (DESCRIPTION =

  (ADDRESS_LIST =

  (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.131)(PORT = 1521))

  )

  (CONNECT_DATA =

  (SERVICE_NAME = orcl)

  )

  )

  dbstandby =

  (DESCRIPTION =

  (ADDRESS_LIST =

  (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.132)(PORT = 1521))

  )

  (CONNECT_DATA =

  (SERVICE_NAME = orcl)

  )

  )

  備庫:

  listener.ora

  SID_LIST_LISTENER =

  (SID_LIST =

  (SID_DESC =

  (SID_NAME = orcl)

  (ORACLE_HOME = /u01/oracle/product/10.2.0)

  )

  )

  LISTENER =

  (DESCRIPTION_LIST =

  (DESCRIPTION =

  (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.132)(PORT = 1521))

  (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))

  )

  )

  tnsnames.ora

  dbprimary =

  (DESCRIPTION =

  (ADDRESS_LIST =

  (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.131)(PORT = 1521))

  )

  (CONNECT_DATA =

  (SERVICE_NAME = orcl)

  )

  )

  dbstandby =

  (DESCRIPTION =

  (ADDRESS_LIST =

  (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.132)(PORT = 1521))

  )

  (CONNECT_DATA =

  (SERVICE_NAME = orcl)

  )

  )

  7.使用rman備份主庫

  [oracle@s1 ~]$ rman target /

  Recovery Manager: Release 10.2.0.1.0 - Production on Thu May 29 19:52:37 2008

  Copyright (c) 1982, 2005, Oracle. All rights reserved.

  connected to target database: ORCL (DBID=1171867028)

  RMAN> backup full format='/u02/db_%U'

  database include current controlfile for standby;

  ...................

  8.歸檔主庫當前日志

  SQL> alter system archive log current;

  System altered.

  9.啓動備庫到nomount

  sqlplus "/ as sysdba"

  Connected to an idle instance.

  SQL> startup nomount

  Total System Global Area 285212672 bytes

  Fixed Size 1218992 bytes

  Variable Size 96470608 bytes

  Database Buffers 184549376 bytes

  Redo Buffers 2973696 bytes

  10.利用rman恢複備庫

  [oracle@s1 ~]$ rman target /

  Recovery Manager: Release 10.2.0.1.0 - Production on Thu May 29 19:53:21 2008

  Copyright (c) 1982, 2005, Oracle. All rights reserved.

  connected to target database: ORCL (DBID=1171867028)

  RMAN> connect auxiliary sys/a@dbstandby

  connected to auxiliary database: ORCL (DBID=1171867028, not mount)

  RMAN> duplicate target database for standby nofilenamecheck;

  .............................

  如果第8步沒有歸檔當前日志,duplicate時可能出現錯誤:

  RMAN-05507: standby controlfile checkpoint (710256) is more recent than duplicat

  ion point in time (709530)

  至此,備庫創建成功。

  11.將備庫置于自動恢複狀態

  SQL> conn / as sysdba

  Connected.

  SQL>alter database recover managed standby database disconnect from session;

  Media recovery complete.

  12.switchover

  物理STANDBY的SWITCHOVER切換會把當前的一個物理STANDBY切換爲PRIMARY數據庫,而PRIMARY數據庫且變成物理STNADBY數據庫。

  一般SWITCHOVER切換都是計劃中的切換,特點是在切換後,不會丟失任何的數據,而且這個過程是可逆的,整個DATA GUARD環境不會被破壞,原來DATA GUARD環境中的所有物理和邏輯STANDBY都可以繼續工作。

  在進行DATA GUARD的物理STANDBY切換前需要注意:

  確認主庫和從庫間網絡連接通暢;

  確認沒有活動的會話連接在數據庫中;

  PRIMARY數據庫處于打開的狀態,STANDBY數據庫處于MOUNT狀態;

  確保STANDBY數據庫處于ARCHIVELOG模式;

  如果設置了REDO應用的延遲,那麽將這個設置去掉;

  確保配置了主庫和從庫的初始化參數,使得切換完成後,DATA GUARD機制可以順利的運行。

  主庫:

  [oracle@s1 ~]$ sqlplus "/ as sysdba"

  SQL*Plus: Release 10.2.0.1.0 - Production on Thu May 29 19:55:02 2008

  Copyright (c) 1982, 2005, Oracle. All rights reserved.

  Connected to:

  Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production

  With the Partitioning, OLAP and Data Mining options

  SQL> alter database commit to switchover to physical standby;

  Database altered.

  SQL> shutdown immediate;

  ORA-01507: database not mounted

  ORACLE instance shut down.

  SQL> startup nomount

  ORACLE instance started.

  Total System Global Area 285212672 bytes

  Fixed Size 1218992 bytes

  Variable Size 96470608 bytes

  Database Buffers 184549376 bytes

  Redo Buffers 2973696 bytes

  SQL> alter database mount standby database;

  Database altered.

  SQL> alter database recover managed standby database disconnect from session;

  Database altered.

  備庫:

  SQL> alter database commit to switchover to primary;

  Database altered.

  SQL> shutdown immediate;

  ORA-01109: database not open

  Database dismounted.

  ORACLE instance shut down.

  SQL> startup

  ORACLE instance started.

  Total System Global Area 285212672 bytes

  Fixed Size 1218992 bytes

  Variable Size 96470608 bytes

  Database Buffers 184549376 bytes

  Redo Buffers 2973696 bytes

  Database mounted.

  Database opened.

  SQL>

  至此完成自由切換。
 
 
 
上一篇《linux安裝Oracle啓動圖形界面問題的解決》
下一篇《Oracle、SQL Server中如何鎖定DB和解鎖DB》
 
 
 
日版寵物情人插曲《Winding Road》歌詞

日版寵物情人2017的插曲,很帶節奏感,日語的,女生唱的。 最後聽見是在第8集的時候女主手割傷了,然後男主用嘴幫她吸了一下,插曲就出來了。 歌手:Def...

兄弟共妻,我成了他們夜裏的美食

老鍾家的兩個兒子很特別,就是跟其他的人不太一樣,魔一般的執著。兄弟倆都到了要結婚的年齡了,不管自家老爹怎麽磨破嘴皮子,兄弟倆說不娶就不娶,老父母爲兄弟兩操碎了心...

如何磨出破洞牛仔褲?牛仔褲怎麽剪破洞?

把牛仔褲磨出有線的破洞 1、具體工具就是磨腳石,下面墊一個硬物,然後用磨腳石一直磨一直磨,到把那塊磨薄了,用手撕開就好了。出來的洞啊很自然的。需要貓須的話調幾...

我就是掃描下圖得到了敬業福和愛國福

先來看下敬業福和愛國福 今年春節,支付寶再次推出了“五福紅包”活動,表示要“把欠大家的敬業福都還給大家”。 今天該活動正式啓動,和去年一樣,需要收集“五福”...

冰箱異味産生的原因和臭味去除的方法

有時候我們打開冰箱就會聞到一股異味,冰箱裏的這種異味是因爲一些物質發出的氣味的混合體,聞起來讓人惡心。 産生這些異味的主要原因有以下幾點。 1、很多人有這種習...

《極品家丁》1-31集大結局分集劇情介紹

簡介 《極品家丁》講述了現代白領林晚榮無意回到古代金陵,並追隨蕭二小姐化名“林三”進入蕭府,不料卻陰差陽錯上演了一出低級家丁拼搏上位的“林三升職記”。...

李溪芮《極品家丁》片尾曲《你就是我最愛的寶寶》歌詞

你就是我最愛的寶寶 - 李溪芮 (電視劇《極品家丁》片尾曲) 作詞:常馨內 作曲:常馨內 你的眉 又鬼馬的挑 你的嘴 又壞壞的笑 上一秒吵鬧 下...

烏梅的功效與作用以及烏梅的食用禁忌有哪些?

烏梅,又稱春梅,中醫認爲,烏梅味酸,性溫,無毒,具有安心、除熱、下氣、祛痰、止渴調中、殺蟲的功效,治肢體痛、肺痨病。烏梅泡水喝能治傷寒煩熱、止吐瀉,與幹姜一起制...

什麽是脂肪粒?如何消除臉部脂肪粒?

什麽是脂肪粒 在我們的臉上總會長一個個像脂肪的小顆粒,弄也弄不掉,而且顔色還是白白的。它既不是粉刺也不是其他的任何痘痘,它就是脂肪粒。 脂肪粒雖然也是由油脂...

網絡安全治理:國家安全保障的主要方向是打擊犯罪,而不是處置和懲罰受害者

來源:中國青年報 新的攻擊方法不斷湧現,黑客幾乎永遠占據網絡攻擊的上風,我們不可能通過技術手段杜絕網絡攻擊。國家安全保障的主要方向是打擊犯罪,而不是處置和懲罰...

 
 
 
1.試驗環境 SQL> select * from v$version; BANNER ---------------------------------------------------------------- Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod PL/SQL Release 10.2.0.1.0 - Production CORE 10.2.0.1.0 Production TNS for Linux: Version 10.2.0.1.0 - Production NLSRTL Version 10.2.0.1.0 - Production 2.確認主庫處于歸檔模式 SQL> archive log list; Database log mode Archive Mode Automatic archival Enabled Archive destination /u02/arch Oldest online log sequence 154 Next log sequence to archive 156 Current log sequence 156 3.創建備庫instance windows平台利用oradim工具創建一個新的instance, unix/linux平台設置新的ORACLE_SID即可 4.准備好主備庫的參數文件 主庫: orcl.__db_cache_size=184549376 orcl.__java_pool_size=4194304 orcl.__large_pool_size=4194304 orcl.__shared_pool_size=88080384 orcl.__streams_pool_size=0 *.audit_file_dest='/u01/oracle/admin/orcl/adump' *.background_dump_dest='/u01/oracle/admin/orcl/bdump' *.compatible='10.2.0.1.0' *.control_files='/u01/oracle/oradata/orcl/control01.ctl',' /u01/oracle/oradata/orcl/control02.ctl',' /u01/oracle/oradata/orcl/control03.ctl' *.core_dump_dest='/u01/oracle/admin/orcl/cdump' *.db_block_size=8192 *.db_domain='' *.db_file_multiblock_read_count=16 *.db_name='orcl' *.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)' *.job_queue_processes=10 *.log_archive_dest_1='LOCATION=/u02/arch' *.log_archive_format='%t_%s_%r.dbf' *.nls_language='SIMPLIFIED CHINESE' *.nls_territory='CHINA' *.open_cursors=300 *.pga_aggregate_target=94371840 *.processes=150 *.remote_login_passwordfile='EXCLUSIVE' *.sga_target=285212672 *.undo_management='AUTO' *.undo_tablespace='UNDOTBS1' *.user_dump_dest='/u01/oracle/admin/orcl/udump' ################################# db_unique_name=node1 service_names=orcl log_archive_config='dg_config=(node1,node2)' log_archive_dest_2='service=dbstandby valid_for=(online_logfiles,primary_role) db_unique_name=node2' log_archive_dest_state_1=enable log_archive_dest_state_2=enable fal_server=dbstandby standby_file_management=AUTO 備庫: orcl.__db_cache_size=184549376 orcl.__java_pool_size=4194304 orcl.__large_pool_size=4194304 orcl.__shared_pool_size=88080384 orcl.__streams_pool_size=0 *.audit_file_dest='/u01/oracle/admin/orcl/adump' *.background_dump_dest='/u01/oracle/admin/orcl/bdump' *.compatible='10.2.0.1.0' *.control_files='/u01/oracle/oradata/orcl/control01.ctl',' /u01/oracle/oradata/orcl/control02.ctl',' /u01/oracle/oradata/orcl/control03.ctl' *.core_dump_dest='/u01/oracle/admin/orcl/cdump' *.db_block_size=8192 *.db_domain='' *.db_file_multiblock_read_count=16 *.db_name='orcl' *.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)' *.job_queue_processes=10 *.log_archive_dest_1='LOCATION=/u02/arch' *.log_archive_format='%t_%s_%r.dbf' *.nls_language='SIMPLIFIED CHINESE' *.nls_territory='CHINA' *.open_cursors=300 *.pga_aggregate_target=94371840 *.processes=150 *.remote_login_passwordfile='EXCLUSIVE' *.sga_target=285212672 *.undo_management='AUTO' *.undo_tablespace='UNDOTBS1' *.user_dump_dest='/u01/oracle/admin/orcl/udump' ################################# db_unique_name=node2 service_names=orcl log_archive_config='dg_config=(node1,node2)' log_archive_dest_2='service=dbprimary valid_for=(online_logfiles,primary_role) db_unique_name=node1' log_archive_dest_state_1=enable log_archive_dest_state_2=enable fal_server=dbprimary fal_client=dbstandby standby_file_management=AUTO 5.生成password file c:/>orapwd file=d:/oracle/ora92/DATABASE/PWDtest.ORA password=pass 或者直接將主庫上的密碼文件copy一份到備庫上 6.配置網絡 配置主備庫的listener.ora,tnsnames.ora。修改完listener.ora後需要重啓監聽器。 主庫: listener.ora SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = PLSExtProc) (ORACLE_HOME = /u01/oracle/product/10.2.0) (PROGRAM = extproc) ) ) LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = s1.gti.com)(PORT = 1521)) (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0)) ) ) tnsnames.ora dbprimary = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.131)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = orcl) ) ) dbstandby = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.132)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = orcl) ) ) 備庫: listener.ora SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = orcl) (ORACLE_HOME = /u01/oracle/product/10.2.0) ) ) LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.132)(PORT = 1521)) (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0)) ) ) tnsnames.ora dbprimary = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.131)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = orcl) ) ) dbstandby = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.132)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = orcl) ) ) 7.使用rman備份主庫 [oracle@s1 ~]$ rman target / Recovery Manager: Release 10.2.0.1.0 - Production on Thu May 29 19:52:37 2008 Copyright (c) 1982, 2005, Oracle. All rights reserved. connected to target database: ORCL (DBID=1171867028) RMAN> backup full format='/u02/db_%U' database include current controlfile for standby; ................... 8.歸檔主庫當前日志 SQL> alter system archive log current; System altered. 9.啓動備庫到nomount sqlplus "/ as sysdba" Connected to an idle instance. SQL> startup nomount Total System Global Area 285212672 bytes Fixed Size 1218992 bytes Variable Size 96470608 bytes Database Buffers 184549376 bytes Redo Buffers 2973696 bytes 10.利用rman恢複備庫 [oracle@s1 ~]$ rman target / Recovery Manager: Release 10.2.0.1.0 - Production on Thu May 29 19:53:21 2008 Copyright (c) 1982, 2005, Oracle. All rights reserved. connected to target database: ORCL (DBID=1171867028) RMAN> connect auxiliary [url=mailto:sys/a@dbstandby]sys/a@dbstandby[/url] connected to auxiliary database: ORCL (DBID=1171867028, not mount) RMAN> duplicate target database for standby nofilenamecheck; ............................. 如果第8步沒有歸檔當前日志,duplicate時可能出現錯誤: RMAN-05507: standby controlfile checkpoint (710256) is more recent than duplicat ion point in time (709530) 至此,備庫創建成功。 11.將備庫置于自動恢複狀態 SQL> conn / as sysdba Connected. SQL>alter database recover managed standby database disconnect from session; Media recovery complete. 12.switchover 物理STANDBY的SWITCHOVER切換會把當前的一個物理STANDBY切換爲PRIMARY數據庫,而PRIMARY數據庫且變成物理STNADBY數據庫。 一般SWITCHOVER切換都是計劃中的切換,特點是在切換後,不會丟失任何的數據,而且這個過程是可逆的,整個DATA GUARD環境不會被破壞,原來DATA GUARD環境中的所有物理和邏輯STANDBY都可以繼續工作。 在進行DATA GUARD的物理STANDBY切換前需要注意: 確認主庫和從庫間網絡連接通暢; 確認沒有活動的會話連接在數據庫中; PRIMARY數據庫處于打開的狀態,STANDBY數據庫處于MOUNT狀態; 確保STANDBY數據庫處于ARCHIVELOG模式; 如果設置了REDO應用的延遲,那麽將這個設置去掉; 確保配置了主庫和從庫的初始化參數,使得切換完成後,DATA GUARD機制可以順利的運行。 主庫: [oracle@s1 ~]$ sqlplus "/ as sysdba" SQL*Plus: Release 10.2.0.1.0 - Production on Thu May 29 19:55:02 2008 Copyright (c) 1982, 2005, Oracle. All rights reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production With the Partitioning, OLAP and Data Mining options SQL> alter database commit to switchover to physical standby; Database altered. SQL> shutdown immediate; ORA-01507: database not mounted ORACLE instance shut down. SQL> startup nomount ORACLE instance started. Total System Global Area 285212672 bytes Fixed Size 1218992 bytes Variable Size 96470608 bytes Database Buffers 184549376 bytes Redo Buffers 2973696 bytes SQL> alter database mount standby database; Database altered. SQL> alter database recover managed standby database disconnect from session; Database altered. 備庫: SQL> alter database commit to switchover to primary; Database altered. SQL> shutdown immediate; ORA-01109: database not open Database dismounted. ORACLE instance shut down. SQL> startup ORACLE instance started. Total System Global Area 285212672 bytes Fixed Size 1218992 bytes Variable Size 96470608 bytes Database Buffers 184549376 bytes Redo Buffers 2973696 bytes Database mounted. Database opened. SQL> 至此完成自由切換。
󰈣󰈤
 
 
 
  免責聲明:本文僅代表作者個人觀點,與王朝網路無關。王朝網路登載此文出於傳遞更多信息之目的,並不意味著贊同其觀點或證實其描述,其原創性以及文中陳述文字和內容未經本站證實,對本文以及其中全部或者部分內容、文字的真實性、完整性、及時性本站不作任何保證或承諾,請讀者僅作參考,並請自行核實相關內容。
 
 
竹林裏的甜美養眼美女
MM尖尖的下巴
靓麗的草根美女
超靓迷人的大眼睛美女
海南(二)
霧繞三清山
Oldtime
美麗婺源
 
>>返回首頁<<
 
 熱帖排行
 
 
 
 
© 2005- 王朝網路 版權所有