SlideShare une entreprise Scribd logo
1  sur  25
Télécharger pour lire hors ligne
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

Contenu connexe

Tendances

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
 

Tendances (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
 

En vedette

医用画像情報イントロダクション 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
 

En vedette (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
 
日本
日本日本
日本
 

Similaire à 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
 
11 Things About11g
11 Things About11g11 Things About11g
11 Things About11gfcamachob
 
11thingsabout11g 12659705398222 Phpapp01
11thingsabout11g 12659705398222 Phpapp0111thingsabout11g 12659705398222 Phpapp01
11thingsabout11g 12659705398222 Phpapp01Karam Abuataya
 
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
 

Similaire à 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
 
11 Things About11g
11 Things About11g11 Things About11g
11 Things About11g
 
11thingsabout11g 12659705398222 Phpapp01
11thingsabout11g 12659705398222 Phpapp0111thingsabout11g 12659705398222 Phpapp01
11thingsabout11g 12659705398222 Phpapp01
 
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
 

Plus 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
 

Plus 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
 

Dernier

What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWave PLM
 
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...Natan Silnitsky
 
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Angel Borroy López
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanyChristoph Pohl
 
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...confluent
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsAhmed Mohamed
 
A healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfA healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfMarharyta Nedzelska
 
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...OnePlan Solutions
 
CRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceCRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceBrainSell Technologies
 
Powering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data StreamsPowering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data StreamsSafe Software
 
Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Hr365.us smith
 
VK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web DevelopmentVK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web Developmentvyaparkranti
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024StefanoLambiase
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfAlina Yurenko
 
SensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving CarsSensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving CarsChristian Birchler
 
Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company OdishaBalasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odishasmiwainfosol
 
MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based projectAnoyGreter
 
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样umasea
 
What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...Technogeeks
 

Dernier (20)

What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need It
 
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
 
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
 
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML Diagrams
 
A healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfA healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdf
 
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
 
CRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceCRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. Salesforce
 
Powering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data StreamsPowering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data Streams
 
Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)
 
Advantages of Odoo ERP 17 for Your Business
Advantages of Odoo ERP 17 for Your BusinessAdvantages of Odoo ERP 17 for Your Business
Advantages of Odoo ERP 17 for Your Business
 
VK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web DevelopmentVK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web Development
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
 
SensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving CarsSensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving Cars
 
Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company OdishaBalasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
 
MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based project
 
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
 
What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...
 

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