SlideShare uma empresa Scribd logo
1 de 25
Baixar para ler offline
04/15/2000
Configuring and Managing an Oracle 8i
Read-Only Standby Database
Bill Schott
Detroit Edison
Prepared for presentation at the ECO/SEOC 2000 Conference, March 21, 2000
© 2000, The Detroit Edison Company, All Rights Reserved
04/15/2000
Purpose and Overview
uReview Standby Database Basics
uNew Oracle 8i Capabilities
uHow to Setup
uOperational Issues
uTroubleshooting
1
2
Why Use a Standby Database?
u Provide a current, ready-to-go
database should regular server
fail
u Hardware Independent,
Software solution
u Remote Backup Data Center
2
3
Standby Database - The Picture
Server A
PR01
Instance
PR01
Archive
Storage
Server B
Archive Logs
Via Net8
SB01
Instance
PR01
Archive
Storage
4
Standby Basics
u Start with a copy of Database
u Keep it in continuous recovery mode
u Feed and apply archive logs as soon as
generated
u Standby only as good as last applied
Archive Log
5
Utilizing Wasted Hardware
u Failures are infrequent
u Lots of $$$ tied up
u Demand for reports
u Regular
u Ad Hoc
u What if...Open Read Only
6
New Capabilities in Oracle8i
u Alter Database Open Read Only
u Managed Recovery
u Archive Log Path via Net8
u Up to 5 Archive Log Paths
u Mandatory or Optional
u Enable or Defer
u Locally Managed Tablespace
7
Getting Started - Planning
u Plan your Filenames
(DB_FILE_NAME_CONVERT)
u Setup Standby Server
u Oracle version and patch
level
u Physical Path name mapping
u init.ora for Standby Instance
8
PR01 Archive Log Parameters
u log_archive_max_processes = 2 (or more)
u log_archive_dest_1= 'LOCATION=
/oracle/a01/pr01/archive/arch mandatory reopen=5'
u log_archive_dest_state_1 = enable
u log_archive_dest_2= 'SERVICE=sb01 optional
reopen=60’
u log_archive_dest_state_2 = enable
u log_min_succeed_dest=1
9
Standby Init.Ora Details
u Different Values for Redo Logs and Controlfiles
u New Parameters
u standby_log_dest=(same as log_archive_dest)
u log_archive_format=arch%t_%s.dbf
u Remove Dual Archive Log paths
u Audit_trail=FALSE or OS
u All others Identical
u compatible=8.1.5 in both
10
Getting Started - Preparing
u Create Tablespace TEMP tempfile ‘…’ extent
management local uniform size 5m;
u Copy primary database files to Standby system
u ALTER DATABASE CREATE STANDBY
CONTROLFILE AS 'standby.ctl';
u Rcp standby.ctl to location of all control files on
Server B.
u Alter System Switch Logfile
11
Getting Started - Starting up
u STARTUP NOMOUNT pfile=initsb01.ora
u ALTER DATABASE MOUNT STANDBY
DATABASE;
u RECOVER STANDBY DATABASE;
u ALTER DATABASE OPEN READ ONLY;
12
Operational Issues - Cautions
u Always keep Standby Instance running
u If log switch on pr01 while sb01 not running, must
manually copy archive log and RECOVER
STANDBY DATABASE.
u Any incomplete recovery on pr01 invalidates sb01
13
Operational Issues - Updating
u To update and re-open read only:
u RECOVER MANAGED STANDBY DATABASE
TIMEOUT 1;
u ALTER DATABASE OPEN READ ONLY;
u To use as a pure standby database,
u RECOVER MANAGED STANDBY DATABASE;
14
Operational Issues - Troubleshooting
u Architecture appears solid
u Able to recover every mess I’ve tried.
u Use Creating new Standby Controlfile as a
Last Resort.
15
Operational Issues - Physical Changes
u New Tablespace or Data File
u rcp file to Server B *before* attempting recovery
u Managed Recovery WILL FAIL;
u alter database create datafile '/oracle/d11/pr01/users02.dbf'
as '/oracle/d11/pr01/users02.dbf';
u Resume Managed Recovery
u File Resizing is not a problem.
16
An Interesting Example - PR01 Commands
SQL> Alter Tablespace users add datafile ‘…pr01/users02…’ size 2M;
SQL> Create table ac4 Tablespace users as select * from ac3;
SQL> @extents_by_file users02
FID File Name (/oracle/...) Block Segment Name ExID Bytes
---- ------------------------ ------- ------------- ---- -------
8 d11/pr01/users02 2 AC4 1 143,360
d11/pr01/users02 37 AC4 2 131,072
d11/pr01/users02 69 AC4 3 131,072
SQL> select {…} from dba_segments where segment_name = 'AC4';
OWNER SEGMENT_NAME SEGMENT_TYPE TABLESPACE_NAME
------ ------------ ------------ ---------------
ORACLE AC4 TABLE USERS
SQL> select count(*) from oracle.ac4;
712
17
An Interesting Example - Recover SB01
SQL> recover managed standby database timeout 1;
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01194: file 8 needs more recovery to be consistent
ORA-01110: data file 8: '/oracle/d11/dvd6/users02.dbf'
ORA-16016: archived log for thread 1 sequence# 213 unavailable
WHAT WAS WRITTEN TO THE ALERT LOG:
Media Recovery Start: Managed Standby Recovery
WARNING! Recovering data file 8 from a fuzzy file. If not the current file
it might be an online backup taken without entering the begin backup command.
Media Recovery Log
Media Recovery Log /oracle/x01/dv08/archive/arch1_211.dbf
Media Recovery Log /oracle/x01/dv08/archive/arch1_212.dbf
Media Recovery Waiting for thread 1 seq# 213
Thu Jul 29 09:35:25 1999
Wait timeout: thread 1 sequence# 213
ORA-1547 signalled during: ALTER DATABASE RECOVER managed standby database ...
18
An Interesting Example - Recover SB01
Continuing the recovery of SB01 from the earlier slide…
SQL> connect internal;
Connected
SQL> alter database create datafile /oracle/d11/pr01/users02.dbf’ as
'/oracle/d11/pr01/users02.dbf';
SQL> recover managed standby database timeout 1;
ORA-00283: recovery session canceled due to errors
ORA-16016: archived log for thread 1 sequence# 213 unavailable
SQL> alter database open read only;
Database altered.
19
An Interesting Example - SB01 Queries
SQL> select count(*) from oracle.ac4;
ERROR at line 1: ORA-00942: table or view does not exist
SQL> @extents_by_file users02
FID File Name (/oracle/...) Block Segment Name ExID Bytes
---- ------------------------ ------- ------------- ---- -------
8 d11/pr01/users02 2 AC4 1 143,360
d11/pr01/users02 37 AC4 2 131,072
d11/pr01/users02 69 AC4 3 131,072
SQL> select {…} from dba_segments where segment_name = 'AC4';
OWNER SEGMENT_NAME SEGMENT_TYPE TABLESPACE_NAME
------ ------------ ------------ ---------------
ORACLE AC4 TABLE USERS
SQL> descr oracle.ac4
ERROR: ORA-04043: object oracle.ac4 does not exist
20
An Interesting Example - What Happened?
u What happened?
u How can a table be there, but
not exist?
21
An Interesting Example - Log Switch
u What happened?
u How can a table be there, but
not exist?
u Lesson Learned: If you want
your Standby to look like your
primary, force a log switch
before Managed recovery
22
Summary, Commentary, Conclusions
u Standby Database Support has matured
greatly in Oracle8i
u Open Read Only is a powerful tool
u Requires care to setup properly
u Some operational issues
u No showstopper bugs encountered
u Documentation is pretty good
u Remember to force log switch
23
For More Information...
u Email address: bschott@corecomm.net
u Web page: www.corecomm.net/
~bschott/standby.html
24
The ECO/OUR Conference is moving to the
fall in 2001
u The Conference will be held at the Opryland Hotel in
Nashville, TN
u Dates are September 30 thru October 3, 2001
u For more information call 910 452-0006 or visit us
on the web at www.oracle-users.com

Mais conteúdo relacionado

Mais procurados

10g rac asm
10g rac asm10g rac asm
10g rac asmVictor
 
12c database migration from ASM storage to NON-ASM storage
12c database migration from ASM storage to NON-ASM storage12c database migration from ASM storage to NON-ASM storage
12c database migration from ASM storage to NON-ASM storageMonowar Mukul
 
Oracle 12c: Database Table Rows Archiving testing
Oracle 12c: Database Table Rows Archiving testingOracle 12c: Database Table Rows Archiving testing
Oracle 12c: Database Table Rows Archiving testingMonowar Mukul
 
Oracle data guard configuration in 12c
Oracle data guard configuration in 12cOracle data guard configuration in 12c
Oracle data guard configuration in 12cuzzal basak
 
Backup andrecoverychecklist
Backup andrecoverychecklistBackup andrecoverychecklist
Backup andrecoverychecklistpraveen_01236
 
Dba 3+ exp qus
Dba 3+ exp qusDba 3+ exp qus
Dba 3+ exp quskrreddy21
 
使用Prm恢复受损的oracle数据表几个例子
使用Prm恢复受损的oracle数据表几个例子使用Prm恢复受损的oracle数据表几个例子
使用Prm恢复受损的oracle数据表几个例子maclean liu
 
آموزش مدیریت بانک اطلاعاتی اوراکل - بخش پانزدهم
آموزش مدیریت بانک اطلاعاتی اوراکل - بخش پانزدهمآموزش مدیریت بانک اطلاعاتی اوراکل - بخش پانزدهم
آموزش مدیریت بانک اطلاعاتی اوراکل - بخش پانزدهمfaradars
 
Oracle 12c far sync standby instance
Oracle 12c far sync standby instanceOracle 12c far sync standby instance
Oracle 12c far sync standby instanceMonowar Mukul
 
Sql Performance Tuning with ASH & AWR: Real World Use Cases
Sql Performance Tuning with ASH & AWR: Real World Use CasesSql Performance Tuning with ASH & AWR: Real World Use Cases
Sql Performance Tuning with ASH & AWR: Real World Use Casesvbarun01
 
Oracle flashback
Oracle flashbackOracle flashback
Oracle flashbackCambodia
 
Flashback - The Time Machine..
Flashback - The Time Machine..Flashback - The Time Machine..
Flashback - The Time Machine..Navneet Upneja
 
Adventures in Dataguard
Adventures in DataguardAdventures in Dataguard
Adventures in DataguardJason Arneil
 

Mais procurados (20)

10g rac asm
10g rac asm10g rac asm
10g rac asm
 
12c database migration from ASM storage to NON-ASM storage
12c database migration from ASM storage to NON-ASM storage12c database migration from ASM storage to NON-ASM storage
12c database migration from ASM storage to NON-ASM storage
 
Oracle 12c: Database Table Rows Archiving testing
Oracle 12c: Database Table Rows Archiving testingOracle 12c: Database Table Rows Archiving testing
Oracle 12c: Database Table Rows Archiving testing
 
Oracle data guard configuration in 12c
Oracle data guard configuration in 12cOracle data guard configuration in 12c
Oracle data guard configuration in 12c
 
Xpp b tspitr
Xpp b tspitrXpp b tspitr
Xpp b tspitr
 
Backup andrecoverychecklist
Backup andrecoverychecklistBackup andrecoverychecklist
Backup andrecoverychecklist
 
Dba 3+ exp qus
Dba 3+ exp qusDba 3+ exp qus
Dba 3+ exp qus
 
使用Prm恢复受损的oracle数据表几个例子
使用Prm恢复受损的oracle数据表几个例子使用Prm恢复受损的oracle数据表几个例子
使用Prm恢复受损的oracle数据表几个例子
 
Les 08 tune_rman
Les 08 tune_rmanLes 08 tune_rman
Les 08 tune_rman
 
آموزش مدیریت بانک اطلاعاتی اوراکل - بخش پانزدهم
آموزش مدیریت بانک اطلاعاتی اوراکل - بخش پانزدهمآموزش مدیریت بانک اطلاعاتی اوراکل - بخش پانزدهم
آموزش مدیریت بانک اطلاعاتی اوراکل - بخش پانزدهم
 
Oracle backup
Oracle backupOracle backup
Oracle backup
 
Les 01 core
Les 01 coreLes 01 core
Les 01 core
 
121 Pdfsam
121 Pdfsam121 Pdfsam
121 Pdfsam
 
Oracle 12c far sync standby instance
Oracle 12c far sync standby instanceOracle 12c far sync standby instance
Oracle 12c far sync standby instance
 
Sql Performance Tuning with ASH & AWR: Real World Use Cases
Sql Performance Tuning with ASH & AWR: Real World Use CasesSql Performance Tuning with ASH & AWR: Real World Use Cases
Sql Performance Tuning with ASH & AWR: Real World Use Cases
 
Oracle flashback
Oracle flashbackOracle flashback
Oracle flashback
 
Flashback - The Time Machine..
Flashback - The Time Machine..Flashback - The Time Machine..
Flashback - The Time Machine..
 
61 Rac
61 Rac61 Rac
61 Rac
 
Analyzing awr report
Analyzing awr reportAnalyzing awr report
Analyzing awr report
 
Adventures in Dataguard
Adventures in DataguardAdventures in Dataguard
Adventures in Dataguard
 

Destaque

医用画像情報イントロダクション Ver.1 0_20160726
医用画像情報イントロダクション Ver.1 0_20160726医用画像情報イントロダクション Ver.1 0_20160726
医用画像情報イントロダクション Ver.1 0_20160726Tatsuaki Kobayashi
 
8ink 기획서V1 0 김수현,유지은
8ink 기획서V1 0 김수현,유지은8ink 기획서V1 0 김수현,유지은
8ink 기획서V1 0 김수현,유지은jin_yoo
 
効果的なXPの導入を目的とした プラクティス間の相互作用の分析
効果的なXPの導入を目的とした プラクティス間の相互作用の分析効果的なXPの導入を目的とした プラクティス間の相互作用の分析
効果的なXPの導入を目的とした プラクティス間の相互作用の分析Makoto SAKAI
 
PEDIDO DE PROVIDÊNCIA 814
PEDIDO DE PROVIDÊNCIA 814PEDIDO DE PROVIDÊNCIA 814
PEDIDO DE PROVIDÊNCIA 814vereadoreduardo
 
XVII Jornadas de Estudios de Lingüística: lenguaje y deporte
XVII Jornadas de Estudios de Lingüística: lenguaje y deporteXVII Jornadas de Estudios de Lingüística: lenguaje y deporte
XVII Jornadas de Estudios de Lingüística: lenguaje y deporteMaría del Carmen Méndez Santos
 
Day 1 Reflection at #SXSW 2013 -- #SXSWOgilvy
Day 1 Reflection at #SXSW 2013 -- #SXSWOgilvy Day 1 Reflection at #SXSW 2013 -- #SXSWOgilvy
Day 1 Reflection at #SXSW 2013 -- #SXSWOgilvy Ogilvy Consulting
 
Excel dad6 8
Excel dad6 8Excel dad6 8
Excel dad6 8daalt209
 
Profile Optimisation
Profile OptimisationProfile Optimisation
Profile OptimisationLinkedIn
 
Presentación final
Presentación finalPresentación final
Presentación finaldocentecis
 
8 kl vostochno-evropeyskaya_ravnina
8 kl vostochno-evropeyskaya_ravnina8 kl vostochno-evropeyskaya_ravnina
8 kl vostochno-evropeyskaya_ravninaones123
 
Boston p camp introducing pmf v3.3 - Steve Wells at ProductCamp Boston, Ap...
Boston p camp   introducing pmf  v3.3 - Steve Wells at ProductCamp Boston, Ap...Boston p camp   introducing pmf  v3.3 - Steve Wells at ProductCamp Boston, Ap...
Boston p camp introducing pmf v3.3 - Steve Wells at ProductCamp Boston, Ap...ProductCamp Boston
 
8 Truths About Exercising presented by Terry Febrey
8 Truths About Exercising presented by Terry Febrey8 Truths About Exercising presented by Terry Febrey
8 Truths About Exercising presented by Terry FebreyTerry Febrey
 
Information wants to be free
Information wants to be freeInformation wants to be free
Information wants to be freeEric Tachibana
 
The sps code of conduct 2011
The sps code of conduct 2011The sps code of conduct 2011
The sps code of conduct 2011bambangsaja
 
Recommendation Letter - Xiuting
Recommendation Letter - XiutingRecommendation Letter - Xiuting
Recommendation Letter - XiutingXiuting Hao
 
Smokeless Tobacco and Oral Cancer
Smokeless Tobacco and Oral CancerSmokeless Tobacco and Oral Cancer
Smokeless Tobacco and Oral CancerSteven Kizior
 

Destaque (20)

医用画像情報イントロダクション Ver.1 0_20160726
医用画像情報イントロダクション Ver.1 0_20160726医用画像情報イントロダクション Ver.1 0_20160726
医用画像情報イントロダクション Ver.1 0_20160726
 
8ink 기획서V1 0 김수현,유지은
8ink 기획서V1 0 김수현,유지은8ink 기획서V1 0 김수현,유지은
8ink 기획서V1 0 김수현,유지은
 
効果的なXPの導入を目的とした プラクティス間の相互作用の分析
効果的なXPの導入を目的とした プラクティス間の相互作用の分析効果的なXPの導入を目的とした プラクティス間の相互作用の分析
効果的なXPの導入を目的とした プラクティス間の相互作用の分析
 
3º A 2015
3º A 20153º A 2015
3º A 2015
 
PEDIDO DE PROVIDÊNCIA 814
PEDIDO DE PROVIDÊNCIA 814PEDIDO DE PROVIDÊNCIA 814
PEDIDO DE PROVIDÊNCIA 814
 
XVII Jornadas de Estudios de Lingüística: lenguaje y deporte
XVII Jornadas de Estudios de Lingüística: lenguaje y deporteXVII Jornadas de Estudios de Lingüística: lenguaje y deporte
XVII Jornadas de Estudios de Lingüística: lenguaje y deporte
 
Day 1 Reflection at #SXSW 2013 -- #SXSWOgilvy
Day 1 Reflection at #SXSW 2013 -- #SXSWOgilvy Day 1 Reflection at #SXSW 2013 -- #SXSWOgilvy
Day 1 Reflection at #SXSW 2013 -- #SXSWOgilvy
 
Ms word1
Ms word1Ms word1
Ms word1
 
Excel dad6 8
Excel dad6 8Excel dad6 8
Excel dad6 8
 
Profile Optimisation
Profile OptimisationProfile Optimisation
Profile Optimisation
 
Entonar
EntonarEntonar
Entonar
 
Presentación final
Presentación finalPresentación final
Presentación final
 
8 kl vostochno-evropeyskaya_ravnina
8 kl vostochno-evropeyskaya_ravnina8 kl vostochno-evropeyskaya_ravnina
8 kl vostochno-evropeyskaya_ravnina
 
Boston p camp introducing pmf v3.3 - Steve Wells at ProductCamp Boston, Ap...
Boston p camp   introducing pmf  v3.3 - Steve Wells at ProductCamp Boston, Ap...Boston p camp   introducing pmf  v3.3 - Steve Wells at ProductCamp Boston, Ap...
Boston p camp introducing pmf v3.3 - Steve Wells at ProductCamp Boston, Ap...
 
8 Truths About Exercising presented by Terry Febrey
8 Truths About Exercising presented by Terry Febrey8 Truths About Exercising presented by Terry Febrey
8 Truths About Exercising presented by Terry Febrey
 
Information wants to be free
Information wants to be freeInformation wants to be free
Information wants to be free
 
The sps code of conduct 2011
The sps code of conduct 2011The sps code of conduct 2011
The sps code of conduct 2011
 
Recommendation Letter - Xiuting
Recommendation Letter - XiutingRecommendation Letter - Xiuting
Recommendation Letter - Xiuting
 
Smokeless Tobacco and Oral Cancer
Smokeless Tobacco and Oral CancerSmokeless Tobacco and Oral Cancer
Smokeless Tobacco and Oral Cancer
 
日本
日本日本
日本
 

Semelhante a 8i standby

br_test_lossof-datafile_10g.doc
br_test_lossof-datafile_10g.docbr_test_lossof-datafile_10g.doc
br_test_lossof-datafile_10g.docLucky Ally
 
Less04 instance
Less04 instanceLess04 instance
Less04 instanceImran Ali
 
Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Your tuning arsenal: AWR, ADDM, ASH, Metrics and AdvisorsYour tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Your tuning arsenal: AWR, ADDM, ASH, Metrics and AdvisorsJohn Kanagaraj
 
11thingsabout11g 12659705398222 Phpapp01
11thingsabout11g 12659705398222 Phpapp0111thingsabout11g 12659705398222 Phpapp01
11thingsabout11g 12659705398222 Phpapp01Karam Abuataya
 
11 Things About11g
11 Things About11g11 Things About11g
11 Things About11gfcamachob
 
12c db upgrade from 11.2.0.4
12c db upgrade from 11.2.0.412c db upgrade from 11.2.0.4
12c db upgrade from 11.2.0.4uzzal basak
 
My SYSAUX tablespace is full - please help
My SYSAUX tablespace is full - please helpMy SYSAUX tablespace is full - please help
My SYSAUX tablespace is full - please helpMarkus Flechtner
 
Ash masters : advanced ash analytics on Oracle
Ash masters : advanced ash analytics on Oracle Ash masters : advanced ash analytics on Oracle
Ash masters : advanced ash analytics on Oracle Kyle Hailey
 
Pluggable database tutorial 2
Pluggable database tutorial 2Pluggable database tutorial 2
Pluggable database tutorial 2Osama Mustafa
 
D17316 gc20 l05_phys_sql
D17316 gc20 l05_phys_sqlD17316 gc20 l05_phys_sql
D17316 gc20 l05_phys_sqlMoeen_uddin
 
D73549GC10_06.pptx
D73549GC10_06.pptxD73549GC10_06.pptx
D73549GC10_06.pptxVLQuyNhn
 
Creating a physical standby database 11g on windows
Creating a physical standby database 11g on windowsCreating a physical standby database 11g on windows
Creating a physical standby database 11g on windowsRoo Wall
 

Semelhante a 8i standby (20)

Less04 Instance
Less04 InstanceLess04 Instance
Less04 Instance
 
Less04_Database_Instance.ppt
Less04_Database_Instance.pptLess04_Database_Instance.ppt
Less04_Database_Instance.ppt
 
br_test_lossof-datafile_10g.doc
br_test_lossof-datafile_10g.docbr_test_lossof-datafile_10g.doc
br_test_lossof-datafile_10g.doc
 
RMAN – The Pocket Knife of a DBA
RMAN – The Pocket Knife of a DBA RMAN – The Pocket Knife of a DBA
RMAN – The Pocket Knife of a DBA
 
Xpp c user_rec
Xpp c user_recXpp c user_rec
Xpp c user_rec
 
Rmoug ashmaster
Rmoug ashmasterRmoug ashmaster
Rmoug ashmaster
 
Less04 instance
Less04 instanceLess04 instance
Less04 instance
 
Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Your tuning arsenal: AWR, ADDM, ASH, Metrics and AdvisorsYour tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
 
11thingsabout11g 12659705398222 Phpapp01
11thingsabout11g 12659705398222 Phpapp0111thingsabout11g 12659705398222 Phpapp01
11thingsabout11g 12659705398222 Phpapp01
 
11 Things About11g
11 Things About11g11 Things About11g
11 Things About11g
 
oracle dba
oracle dbaoracle dba
oracle dba
 
12c db upgrade from 11.2.0.4
12c db upgrade from 11.2.0.412c db upgrade from 11.2.0.4
12c db upgrade from 11.2.0.4
 
Using Statspack and AWR for Memory Monitoring and Tuning
Using Statspack and AWR for Memory Monitoring and TuningUsing Statspack and AWR for Memory Monitoring and Tuning
Using Statspack and AWR for Memory Monitoring and Tuning
 
My SYSAUX tablespace is full - please help
My SYSAUX tablespace is full - please helpMy SYSAUX tablespace is full - please help
My SYSAUX tablespace is full - please help
 
Ash masters : advanced ash analytics on Oracle
Ash masters : advanced ash analytics on Oracle Ash masters : advanced ash analytics on Oracle
Ash masters : advanced ash analytics on Oracle
 
Pluggable database tutorial 2
Pluggable database tutorial 2Pluggable database tutorial 2
Pluggable database tutorial 2
 
D17316 gc20 l05_phys_sql
D17316 gc20 l05_phys_sqlD17316 gc20 l05_phys_sql
D17316 gc20 l05_phys_sql
 
D73549GC10_06.pptx
D73549GC10_06.pptxD73549GC10_06.pptx
D73549GC10_06.pptx
 
Creating a physical standby database 11g on windows
Creating a physical standby database 11g on windowsCreating a physical standby database 11g on windows
Creating a physical standby database 11g on windows
 
les_01_core.ppt
les_01_core.pptles_01_core.ppt
les_01_core.ppt
 

Mais de Anil Pandey

National health policy_2017
National health policy_2017National health policy_2017
National health policy_2017Anil Pandey
 
Class 3-computer-pt3-rev-ws-56
Class 3-computer-pt3-rev-ws-56Class 3-computer-pt3-rev-ws-56
Class 3-computer-pt3-rev-ws-56Anil Pandey
 
Class 3-social-pt3-rev-ws-for-uploading
Class 3-social-pt3-rev-ws-for-uploadingClass 3-social-pt3-rev-ws-for-uploading
Class 3-social-pt3-rev-ws-for-uploadingAnil Pandey
 
Class 3-science-pt3-rev-ws-for-uploading
Class 3-science-pt3-rev-ws-for-uploadingClass 3-science-pt3-rev-ws-for-uploading
Class 3-science-pt3-rev-ws-for-uploadingAnil Pandey
 
Class 3-math-pt3-rev-ws-for-uploading
Class 3-math-pt3-rev-ws-for-uploadingClass 3-math-pt3-rev-ws-for-uploading
Class 3-math-pt3-rev-ws-for-uploadingAnil Pandey
 
Class 3-hindi-pt3-rev-ws-for-uploading
Class 3-hindi-pt3-rev-ws-for-uploadingClass 3-hindi-pt3-rev-ws-for-uploading
Class 3-hindi-pt3-rev-ws-for-uploadingAnil Pandey
 
Class 3-english-pt3-rev-ws-for-uploading
Class 3-english-pt3-rev-ws-for-uploadingClass 3-english-pt3-rev-ws-for-uploading
Class 3-english-pt3-rev-ws-for-uploadingAnil Pandey
 
Art of indexing_in_o8i
Art of indexing_in_o8iArt of indexing_in_o8i
Art of indexing_in_o8iAnil Pandey
 
Apps session wait_tables
Apps session wait_tablesApps session wait_tables
Apps session wait_tablesAnil Pandey
 
Application sql issues_and_tuning
Application sql issues_and_tuningApplication sql issues_and_tuning
Application sql issues_and_tuningAnil Pandey
 
Appliance whitepaper 8_i
Appliance whitepaper 8_iAppliance whitepaper 8_i
Appliance whitepaper 8_iAnil Pandey
 

Mais de Anil Pandey (20)

26 bg2020
26 bg202026 bg2020
26 bg2020
 
National health policy_2017
National health policy_2017National health policy_2017
National health policy_2017
 
Class 3-computer-pt3-rev-ws-56
Class 3-computer-pt3-rev-ws-56Class 3-computer-pt3-rev-ws-56
Class 3-computer-pt3-rev-ws-56
 
Class 3-social-pt3-rev-ws-for-uploading
Class 3-social-pt3-rev-ws-for-uploadingClass 3-social-pt3-rev-ws-for-uploading
Class 3-social-pt3-rev-ws-for-uploading
 
Class 3-science-pt3-rev-ws-for-uploading
Class 3-science-pt3-rev-ws-for-uploadingClass 3-science-pt3-rev-ws-for-uploading
Class 3-science-pt3-rev-ws-for-uploading
 
Class 3-math-pt3-rev-ws-for-uploading
Class 3-math-pt3-rev-ws-for-uploadingClass 3-math-pt3-rev-ws-for-uploading
Class 3-math-pt3-rev-ws-for-uploading
 
Class 3-hindi-pt3-rev-ws-for-uploading
Class 3-hindi-pt3-rev-ws-for-uploadingClass 3-hindi-pt3-rev-ws-for-uploading
Class 3-hindi-pt3-rev-ws-for-uploading
 
Class 3-english-pt3-rev-ws-for-uploading
Class 3-english-pt3-rev-ws-for-uploadingClass 3-english-pt3-rev-ws-for-uploading
Class 3-english-pt3-rev-ws-for-uploading
 
As onew816a
As onew816aAs onew816a
As onew816a
 
Art of indexing_in_o8i
Art of indexing_in_o8iArt of indexing_in_o8i
Art of indexing_in_o8i
 
Apps session wait_tables
Apps session wait_tablesApps session wait_tables
Apps session wait_tables
 
Application sql issues_and_tuning
Application sql issues_and_tuningApplication sql issues_and_tuning
Application sql issues_and_tuning
 
Appliance whitepaper 8_i
Appliance whitepaper 8_iAppliance whitepaper 8_i
Appliance whitepaper 8_i
 
Appd2 cg
Appd2 cgAppd2 cg
Appd2 cg
 
A85248
A85248A85248
A85248
 
816isdfo
816isdfo816isdfo
816isdfo
 
35 dbatune3
35 dbatune335 dbatune3
35 dbatune3
 
9ias
9ias9ias
9ias
 
9i lin relnotes
9i lin relnotes9i lin relnotes
9i lin relnotes
 
9i hp relnotes
9i hp relnotes9i hp relnotes
9i hp relnotes
 

Último

AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesVictorSzoltysek
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisamasabamasaba
 
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...Nitya salvi
 
SHRMPro HRMS Software Solutions Presentation
SHRMPro HRMS Software Solutions PresentationSHRMPro HRMS Software Solutions Presentation
SHRMPro HRMS Software Solutions PresentationShrmpro
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfonteinmasabamasaba
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...masabamasaba
 
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdfThe Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdfayushiqss
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...masabamasaba
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park masabamasaba
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park masabamasaba
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrandmasabamasaba
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyviewmasabamasaba
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...Shane Coughlan
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastPapp Krisztián
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech studentsHimanshiGarg82
 

Último (20)

AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
 
SHRMPro HRMS Software Solutions Presentation
SHRMPro HRMS Software Solutions PresentationSHRMPro HRMS Software Solutions Presentation
SHRMPro HRMS Software Solutions Presentation
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdfThe Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 

8i standby

  • 1. 04/15/2000 Configuring and Managing an Oracle 8i Read-Only Standby Database Bill Schott Detroit Edison Prepared for presentation at the ECO/SEOC 2000 Conference, March 21, 2000 © 2000, The Detroit Edison Company, All Rights Reserved
  • 2. 04/15/2000 Purpose and Overview uReview Standby Database Basics uNew Oracle 8i Capabilities uHow to Setup uOperational Issues uTroubleshooting 1
  • 3. 2 Why Use a Standby Database? u Provide a current, ready-to-go database should regular server fail u Hardware Independent, Software solution u Remote Backup Data Center 2
  • 4. 3 Standby Database - The Picture Server A PR01 Instance PR01 Archive Storage Server B Archive Logs Via Net8 SB01 Instance PR01 Archive Storage
  • 5. 4 Standby Basics u Start with a copy of Database u Keep it in continuous recovery mode u Feed and apply archive logs as soon as generated u Standby only as good as last applied Archive Log
  • 6. 5 Utilizing Wasted Hardware u Failures are infrequent u Lots of $$$ tied up u Demand for reports u Regular u Ad Hoc u What if...Open Read Only
  • 7. 6 New Capabilities in Oracle8i u Alter Database Open Read Only u Managed Recovery u Archive Log Path via Net8 u Up to 5 Archive Log Paths u Mandatory or Optional u Enable or Defer u Locally Managed Tablespace
  • 8. 7 Getting Started - Planning u Plan your Filenames (DB_FILE_NAME_CONVERT) u Setup Standby Server u Oracle version and patch level u Physical Path name mapping u init.ora for Standby Instance
  • 9. 8 PR01 Archive Log Parameters u log_archive_max_processes = 2 (or more) u log_archive_dest_1= 'LOCATION= /oracle/a01/pr01/archive/arch mandatory reopen=5' u log_archive_dest_state_1 = enable u log_archive_dest_2= 'SERVICE=sb01 optional reopen=60’ u log_archive_dest_state_2 = enable u log_min_succeed_dest=1
  • 10. 9 Standby Init.Ora Details u Different Values for Redo Logs and Controlfiles u New Parameters u standby_log_dest=(same as log_archive_dest) u log_archive_format=arch%t_%s.dbf u Remove Dual Archive Log paths u Audit_trail=FALSE or OS u All others Identical u compatible=8.1.5 in both
  • 11. 10 Getting Started - Preparing u Create Tablespace TEMP tempfile ‘…’ extent management local uniform size 5m; u Copy primary database files to Standby system u ALTER DATABASE CREATE STANDBY CONTROLFILE AS 'standby.ctl'; u Rcp standby.ctl to location of all control files on Server B. u Alter System Switch Logfile
  • 12. 11 Getting Started - Starting up u STARTUP NOMOUNT pfile=initsb01.ora u ALTER DATABASE MOUNT STANDBY DATABASE; u RECOVER STANDBY DATABASE; u ALTER DATABASE OPEN READ ONLY;
  • 13. 12 Operational Issues - Cautions u Always keep Standby Instance running u If log switch on pr01 while sb01 not running, must manually copy archive log and RECOVER STANDBY DATABASE. u Any incomplete recovery on pr01 invalidates sb01
  • 14. 13 Operational Issues - Updating u To update and re-open read only: u RECOVER MANAGED STANDBY DATABASE TIMEOUT 1; u ALTER DATABASE OPEN READ ONLY; u To use as a pure standby database, u RECOVER MANAGED STANDBY DATABASE;
  • 15. 14 Operational Issues - Troubleshooting u Architecture appears solid u Able to recover every mess I’ve tried. u Use Creating new Standby Controlfile as a Last Resort.
  • 16. 15 Operational Issues - Physical Changes u New Tablespace or Data File u rcp file to Server B *before* attempting recovery u Managed Recovery WILL FAIL; u alter database create datafile '/oracle/d11/pr01/users02.dbf' as '/oracle/d11/pr01/users02.dbf'; u Resume Managed Recovery u File Resizing is not a problem.
  • 17. 16 An Interesting Example - PR01 Commands SQL> Alter Tablespace users add datafile ‘…pr01/users02…’ size 2M; SQL> Create table ac4 Tablespace users as select * from ac3; SQL> @extents_by_file users02 FID File Name (/oracle/...) Block Segment Name ExID Bytes ---- ------------------------ ------- ------------- ---- ------- 8 d11/pr01/users02 2 AC4 1 143,360 d11/pr01/users02 37 AC4 2 131,072 d11/pr01/users02 69 AC4 3 131,072 SQL> select {…} from dba_segments where segment_name = 'AC4'; OWNER SEGMENT_NAME SEGMENT_TYPE TABLESPACE_NAME ------ ------------ ------------ --------------- ORACLE AC4 TABLE USERS SQL> select count(*) from oracle.ac4; 712
  • 18. 17 An Interesting Example - Recover SB01 SQL> recover managed standby database timeout 1; ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below ORA-01194: file 8 needs more recovery to be consistent ORA-01110: data file 8: '/oracle/d11/dvd6/users02.dbf' ORA-16016: archived log for thread 1 sequence# 213 unavailable WHAT WAS WRITTEN TO THE ALERT LOG: Media Recovery Start: Managed Standby Recovery WARNING! Recovering data file 8 from a fuzzy file. If not the current file it might be an online backup taken without entering the begin backup command. Media Recovery Log Media Recovery Log /oracle/x01/dv08/archive/arch1_211.dbf Media Recovery Log /oracle/x01/dv08/archive/arch1_212.dbf Media Recovery Waiting for thread 1 seq# 213 Thu Jul 29 09:35:25 1999 Wait timeout: thread 1 sequence# 213 ORA-1547 signalled during: ALTER DATABASE RECOVER managed standby database ...
  • 19. 18 An Interesting Example - Recover SB01 Continuing the recovery of SB01 from the earlier slide… SQL> connect internal; Connected SQL> alter database create datafile /oracle/d11/pr01/users02.dbf’ as '/oracle/d11/pr01/users02.dbf'; SQL> recover managed standby database timeout 1; ORA-00283: recovery session canceled due to errors ORA-16016: archived log for thread 1 sequence# 213 unavailable SQL> alter database open read only; Database altered.
  • 20. 19 An Interesting Example - SB01 Queries SQL> select count(*) from oracle.ac4; ERROR at line 1: ORA-00942: table or view does not exist SQL> @extents_by_file users02 FID File Name (/oracle/...) Block Segment Name ExID Bytes ---- ------------------------ ------- ------------- ---- ------- 8 d11/pr01/users02 2 AC4 1 143,360 d11/pr01/users02 37 AC4 2 131,072 d11/pr01/users02 69 AC4 3 131,072 SQL> select {…} from dba_segments where segment_name = 'AC4'; OWNER SEGMENT_NAME SEGMENT_TYPE TABLESPACE_NAME ------ ------------ ------------ --------------- ORACLE AC4 TABLE USERS SQL> descr oracle.ac4 ERROR: ORA-04043: object oracle.ac4 does not exist
  • 21. 20 An Interesting Example - What Happened? u What happened? u How can a table be there, but not exist?
  • 22. 21 An Interesting Example - Log Switch u What happened? u How can a table be there, but not exist? u Lesson Learned: If you want your Standby to look like your primary, force a log switch before Managed recovery
  • 23. 22 Summary, Commentary, Conclusions u Standby Database Support has matured greatly in Oracle8i u Open Read Only is a powerful tool u Requires care to setup properly u Some operational issues u No showstopper bugs encountered u Documentation is pretty good u Remember to force log switch
  • 24. 23 For More Information... u Email address: bschott@corecomm.net u Web page: www.corecomm.net/ ~bschott/standby.html
  • 25. 24 The ECO/OUR Conference is moving to the fall in 2001 u The Conference will be held at the Opryland Hotel in Nashville, TN u Dates are September 30 thru October 3, 2001 u For more information call 910 452-0006 or visit us on the web at www.oracle-users.com