SlideShare a Scribd company logo
Creating a Physical Standby Database 
Cách thực hiện: 
1. Tạo 2 máy ảo ping thông mạng và phải có môi trường giống nhau. 
2. Cấu hình tnsname, listener, sql và kiểm tra kết nối. 
3. Cấu hình Initialization Parameter File cho primary và standby 
4. Add redolog file 
5. Tạo controlfile cho standby từ primary. 
6. Copy source primary đến standby 
7. Kiểm tra 
Chuẩn bị: 
- OS Names: "prime" for the Primary database and "standby" for the Standby database. 
Network: 
Trên Prime:
Trên Standby: 
Next: 
+ The primary and standby databases must be using the same version of Oracle Database 11g. 
+ The primary database must be opened in ARCHIVELOG mode. 
+Install the database, Enterprise edition. (using DBCA) 
+Set up Oracle net components (using NETCA)
+Test sql net connectivity. 
PRIME: 
SQL> Alter system set db_recovery_file_dest_size=2G scope=both; 
System altered. 
Alter system set db_recovery_file_dest=’C:BKFRA’ 
Select * from v$recovery_file_dest 
Oracle Net Services network files must be set up on the primary database and on the standby 
database. 
SQLNET.ORA file of the Primary:
TNSNAMES.ORA file of the Primary:
LISTENER.ORA file of the Primary: 
SQLNET.ORA file of the Standby: 
TNSNAMES.ORA file of the Standby:
LISTENER.ORA file of the Standby: 
You can use "tnsping" to test the sql connectivity: On standby
Next: (On PRIME) Create the password file.
Create standby redo logs(On Prime): 
SELECT * from v$logfile; 
Alter database add standby logfile group 4 (‘C:apporacleoradataoraprimestandbyredo01.LOG’) 
size 50M; 
Alter database add standby logfile group 5 (‘C:apporacleoradataoraprimestandbyredo03.LOG’) 
size 50M; 
Alter database add standby logfile group 6 (‘C:apporacleoradataoraprimestandbyredo03.LOG’) 
size 50M; 
Alter database add standby logfile group 7 (‘C:apporacleoradataoraprimestandbyredo04.LOG’) 
size 50M; 
Next: Enable force logging (Optional) (On Prime) 
Select log_mode from v$database; 
Alter database force logging;
Configure the pfile of the primary: 
USING: SQL> ALTER SYSTEM SET ….
alter system set LOG_ARCHIVE_CONFIG='DG_CONFIG=(oraprime,orastandby)'; 
alter system set LOG_ARCHIVE_DEST_1='LOCATION=+DATA VALID_FOR=(ALL_LOGFILES,ALL_ROLES) 
DB_UNIQUE_NAME=oraprime'; 
alter system set LOG_ARCHIVE_DEST_2='SERVICE=orastandby LGWR ASYNC 
VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME= orastandby’; 
alter system set LOG_ARCHIVE_DEST_STATE_1=ENABLE; 
alter system set FAL_SERVER=orastandby; 
alter system set FAL_CLIENT=oraprime; 
alter database add standby logfile '+DATA'; 
alter database add standby logfile '+DATA'; 
alter database add standby logfile '+DATA'; 
alter database add standby logfile '+DATA'; 
On Standby: 
Option 1: Create pfile with only one parameter DB_NAME. 
Start up no mount the database using the pfile.
Using: - Run RMAN Dupplicate database on primary 
rman target sys/@oraprime auxiliary sys/oracle@orastandby 
run { 
allocate channel prmy1 type disk; 
allocate channel prmy2 type disk; 
allocate channel prmy3 type disk; 
allocate channel prmy4 type disk; 
allocate auxiliary channel stby type disk; 
duplicate target database for standby from active database 
spfile 
parameter_value_convert 'oraprime','orastandby' 
set db_unique_name='orastandby' 
set control_files='+DATA' 
set log_archive_max_processes='5' 
set fal_client='oraprime' 
set fal_server='orastandby' 
set standby_file_management='AUTO' 
set log_archive_config='dg_config=(oraprime,orastandby)' 
set log_archive_dest_2='service=oraprime LGWR ASYNC 
valid_for=(ONLINE_LOGFILE,PRIMARY_ROLE) db_unique_name=prime'
; 
} 
Start apply service on standby & Open for read-only 
recover managed standby database using current logfile disconnect from session; 
recover managed standby database cancel; 
alter database open; 
recover managed standby database using current logfile disconnect from session; 
Option 2: On PRIME 
Create a Control File for the Standby Database 
SQL> SHUTDOWN IMMEDIATE; 
SQL> STARTUP MOUNT; 
SQL>ALTER DATABASE CREATE STANDBY CONTROLFILE AS 
'C:tostandbycontrolstd.ctl'; 
SQL> ALTER DATABASE OPEN; 
Create a pFile for the Standby Database:
Copy pfile to standby and edit: 
1. FAL_SERVER 
2. FAL_CLIENT 
3. CONTROL_FILES: add standby controlfile 
*.fal_client='orastandby' 
*.fal_server='oraprime' 
*.control_files='C:apporacleoradataoraprimecontrol01.ctl','C:apporacleflash_recover 
y_areaoraprimecontrol02.ctl','C:tostandbyCONTROLSTD.CTL' 
*.log_archive_config='DG_CONFIG=(oraprime,orastandby)' 
*.log_archive_dest_1='LOCATION=C:apporacleoradataorastandby 
VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=standby' 
*.log_archive_dest_2='SERVICE=oraprime LGWR ASYNC 
VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=prime'
SQL>Startup mount; 
SQL>ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION; 
Check that primary and standby are synchronized 
Using: 
PRIMARY 
SQL> archive log list; 
Database log mode Archive Mode 
Automatic archival Enabled 
Archive destination /u01/arch1/orcl/ 
Oldest online log sequence 43 
Next log sequence to archive 45 
Current log sequence 45 
SQL> select database_role, open_mode from v$database; 
DATABASE_ROLE OPEN_MODE 
---------------- ---------- 
PRIMARY READ WRITE 
STANDBY
SQL> archive log list; 
Database log mode Archive Mode 
Automatic archival Enabled 
Archive destination /u01/arch1/orcl/ 
Oldest online log sequence 43 
Next log sequence to archive 0 
Current log sequence 45 
SQL> select database_role, open_mode from v$database; 
DATABASE_ROLE OPEN_MODE 
---------------- ---------- 
PHYSICAL STANDBY MOUNTED
Ad

More Related Content

What's hot (20)

Asm disk group migration from
Asm disk group migration from Asm disk group migration from
Asm disk group migration from
Anar Godjaev
 
Oracle Golden Gate
Oracle Golden GateOracle Golden Gate
Oracle Golden Gate
Muhammad Qasim
 
Data Migration in Database
Data Migration in DatabaseData Migration in Database
Data Migration in Database
Jingun Jung
 
Rman cloning guide
Rman cloning guideRman cloning guide
Rman cloning guide
Amit87_dba
 
Test Dml With Nologging
Test Dml With NologgingTest Dml With Nologging
Test Dml With Nologging
N/A
 
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
Monowar Mukul
 
Backup and Recovery
Backup and RecoveryBackup and Recovery
Backup and Recovery
Anar Godjaev
 
Rman cloning when both directory and db name are same.
Rman cloning when both directory and db name are same.Rman cloning when both directory and db name are same.
Rman cloning when both directory and db name are same.
subhani shaik
 
Install and upgrade Oracle grid infrastructure 12.1.0.2
Install and upgrade Oracle grid infrastructure 12.1.0.2Install and upgrade Oracle grid infrastructure 12.1.0.2
Install and upgrade Oracle grid infrastructure 12.1.0.2
Biju Thomas
 
Backup andrecoverychecklist
Backup andrecoverychecklistBackup andrecoverychecklist
Backup andrecoverychecklist
praveen_01236
 
Migrate from database file system to asm
Migrate from database file system to asmMigrate from database file system to asm
Migrate from database file system to asm
Surender Martha
 
Oracle business intelligence enterprise edition 11g
Oracle business intelligence enterprise edition 11gOracle business intelligence enterprise edition 11g
Oracle business intelligence enterprise edition 11g
uzzal basak
 
2011 384 hackworth_ppt
2011 384 hackworth_ppt2011 384 hackworth_ppt
2011 384 hackworth_ppt
maclean liu
 
Flashback (Practical Test)
Flashback (Practical Test)Flashback (Practical Test)
Flashback (Practical Test)
Anar Godjaev
 
Oracle database hot backup and recovery
Oracle database hot backup and recoveryOracle database hot backup and recovery
Oracle database hot backup and recovery
Arun Sharma
 
Less17 Util
Less17  UtilLess17  Util
Less17 Util
vivaankumar
 
Change DB Name
Change DB NameChange DB Name
Change DB Name
Anar Godjaev
 
Enable archivelod mode in oracle rac12cR1 with asm location
Enable archivelod mode  in oracle rac12cR1 with asm locationEnable archivelod mode  in oracle rac12cR1 with asm location
Enable archivelod mode in oracle rac12cR1 with asm location
Debasish Nayak
 
Boost Your Environment With XMLDB - UKOUG 2008 - Marco Gralike
Boost Your Environment With XMLDB - UKOUG 2008 - Marco GralikeBoost Your Environment With XMLDB - UKOUG 2008 - Marco Gralike
Boost Your Environment With XMLDB - UKOUG 2008 - Marco Gralike
Marco Gralike
 
Les 07 Rman Rec
Les 07 Rman RecLes 07 Rman Rec
Les 07 Rman Rec
vivaankumar
 
Asm disk group migration from
Asm disk group migration from Asm disk group migration from
Asm disk group migration from
Anar Godjaev
 
Data Migration in Database
Data Migration in DatabaseData Migration in Database
Data Migration in Database
Jingun Jung
 
Rman cloning guide
Rman cloning guideRman cloning guide
Rman cloning guide
Amit87_dba
 
Test Dml With Nologging
Test Dml With NologgingTest Dml With Nologging
Test Dml With Nologging
N/A
 
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
Monowar Mukul
 
Backup and Recovery
Backup and RecoveryBackup and Recovery
Backup and Recovery
Anar Godjaev
 
Rman cloning when both directory and db name are same.
Rman cloning when both directory and db name are same.Rman cloning when both directory and db name are same.
Rman cloning when both directory and db name are same.
subhani shaik
 
Install and upgrade Oracle grid infrastructure 12.1.0.2
Install and upgrade Oracle grid infrastructure 12.1.0.2Install and upgrade Oracle grid infrastructure 12.1.0.2
Install and upgrade Oracle grid infrastructure 12.1.0.2
Biju Thomas
 
Backup andrecoverychecklist
Backup andrecoverychecklistBackup andrecoverychecklist
Backup andrecoverychecklist
praveen_01236
 
Migrate from database file system to asm
Migrate from database file system to asmMigrate from database file system to asm
Migrate from database file system to asm
Surender Martha
 
Oracle business intelligence enterprise edition 11g
Oracle business intelligence enterprise edition 11gOracle business intelligence enterprise edition 11g
Oracle business intelligence enterprise edition 11g
uzzal basak
 
2011 384 hackworth_ppt
2011 384 hackworth_ppt2011 384 hackworth_ppt
2011 384 hackworth_ppt
maclean liu
 
Flashback (Practical Test)
Flashback (Practical Test)Flashback (Practical Test)
Flashback (Practical Test)
Anar Godjaev
 
Oracle database hot backup and recovery
Oracle database hot backup and recoveryOracle database hot backup and recovery
Oracle database hot backup and recovery
Arun Sharma
 
Enable archivelod mode in oracle rac12cR1 with asm location
Enable archivelod mode  in oracle rac12cR1 with asm locationEnable archivelod mode  in oracle rac12cR1 with asm location
Enable archivelod mode in oracle rac12cR1 with asm location
Debasish Nayak
 
Boost Your Environment With XMLDB - UKOUG 2008 - Marco Gralike
Boost Your Environment With XMLDB - UKOUG 2008 - Marco GralikeBoost Your Environment With XMLDB - UKOUG 2008 - Marco Gralike
Boost Your Environment With XMLDB - UKOUG 2008 - Marco Gralike
Marco Gralike
 

Similar to Creating a physical standby database 11g on windows (20)

D17316 gc20 l05_phys_sql
D17316 gc20 l05_phys_sqlD17316 gc20 l05_phys_sql
D17316 gc20 l05_phys_sql
Moeen_uddin
 
oracle upgradation
oracle upgradationoracle upgradation
oracle upgradation
influxbob
 
How to create a non managed standby database
How to create a non managed  standby databaseHow to create a non managed  standby database
How to create a non managed standby database
Jorge Batista
 
Data Guard New Features
Data Guard New FeaturesData Guard New Features
Data Guard New Features
xiangrong
 
Physical_Standby_Database_R12.2.4
Physical_Standby_Database_R12.2.4Physical_Standby_Database_R12.2.4
Physical_Standby_Database_R12.2.4
mohammed shahnawaz ahmed
 
Les 07 rman_rec
Les 07 rman_recLes 07 rman_rec
Les 07 rman_rec
Femi Adeyemi
 
Migrate database to Exadata using RMAN duplicate
Migrate database to Exadata using RMAN duplicateMigrate database to Exadata using RMAN duplicate
Migrate database to Exadata using RMAN duplicate
Umair Mansoob
 
Rman cloning when both directory and db name are same.
Rman cloning when both directory and db name are same.Rman cloning when both directory and db name are same.
Rman cloning when both directory and db name are same.
subhani shaik
 
Mid term & final- preparation- student-review(Oracle)
Mid term & final- preparation- student-review(Oracle)Mid term & final- preparation- student-review(Oracle)
Mid term & final- preparation- student-review(Oracle)
than sare
 
Les 06 Perform Rec
Les 06 Perform RecLes 06 Perform Rec
Les 06 Perform Rec
vivaankumar
 
Refresh development from productions
Refresh development from productionsRefresh development from productions
Refresh development from productions
Osama Mustafa
 
Oracle 11g Installation With ASM and Data Guard Setup
Oracle 11g Installation With ASM and Data Guard SetupOracle 11g Installation With ASM and Data Guard Setup
Oracle 11g Installation With ASM and Data Guard Setup
Arun Sharma
 
Kp.3 pengaturan sistem dan user
Kp.3 pengaturan sistem dan userKp.3 pengaturan sistem dan user
Kp.3 pengaturan sistem dan user
Desty Yani
 
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
uzzal basak
 
Oracle Data Guard Physical Standby Configuration
Oracle Data Guard Physical Standby ConfigurationOracle Data Guard Physical Standby Configuration
Oracle Data Guard Physical Standby Configuration
Arun Sharma
 
Oracle data guard configuration in 12c
Oracle data guard configuration in 12cOracle data guard configuration in 12c
Oracle data guard configuration in 12c
uzzal basak
 
Adventures in Dataguard
Adventures in DataguardAdventures in Dataguard
Adventures in Dataguard
Jason Arneil
 
Database upgradation
Database upgradationDatabase upgradation
Database upgradation
santosh kodandapani
 
5895640.ppt
5895640.ppt5895640.ppt
5895640.ppt
hesham alataby
 
آموزش مدیریت بانک اطلاعاتی اوراکل - بخش پانزدهم
آموزش مدیریت بانک اطلاعاتی اوراکل - بخش پانزدهمآموزش مدیریت بانک اطلاعاتی اوراکل - بخش پانزدهم
آموزش مدیریت بانک اطلاعاتی اوراکل - بخش پانزدهم
faradars
 
D17316 gc20 l05_phys_sql
D17316 gc20 l05_phys_sqlD17316 gc20 l05_phys_sql
D17316 gc20 l05_phys_sql
Moeen_uddin
 
oracle upgradation
oracle upgradationoracle upgradation
oracle upgradation
influxbob
 
How to create a non managed standby database
How to create a non managed  standby databaseHow to create a non managed  standby database
How to create a non managed standby database
Jorge Batista
 
Data Guard New Features
Data Guard New FeaturesData Guard New Features
Data Guard New Features
xiangrong
 
Migrate database to Exadata using RMAN duplicate
Migrate database to Exadata using RMAN duplicateMigrate database to Exadata using RMAN duplicate
Migrate database to Exadata using RMAN duplicate
Umair Mansoob
 
Rman cloning when both directory and db name are same.
Rman cloning when both directory and db name are same.Rman cloning when both directory and db name are same.
Rman cloning when both directory and db name are same.
subhani shaik
 
Mid term & final- preparation- student-review(Oracle)
Mid term & final- preparation- student-review(Oracle)Mid term & final- preparation- student-review(Oracle)
Mid term & final- preparation- student-review(Oracle)
than sare
 
Les 06 Perform Rec
Les 06 Perform RecLes 06 Perform Rec
Les 06 Perform Rec
vivaankumar
 
Refresh development from productions
Refresh development from productionsRefresh development from productions
Refresh development from productions
Osama Mustafa
 
Oracle 11g Installation With ASM and Data Guard Setup
Oracle 11g Installation With ASM and Data Guard SetupOracle 11g Installation With ASM and Data Guard Setup
Oracle 11g Installation With ASM and Data Guard Setup
Arun Sharma
 
Kp.3 pengaturan sistem dan user
Kp.3 pengaturan sistem dan userKp.3 pengaturan sistem dan user
Kp.3 pengaturan sistem dan user
Desty Yani
 
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
uzzal basak
 
Oracle Data Guard Physical Standby Configuration
Oracle Data Guard Physical Standby ConfigurationOracle Data Guard Physical Standby Configuration
Oracle Data Guard Physical Standby Configuration
Arun Sharma
 
Oracle data guard configuration in 12c
Oracle data guard configuration in 12cOracle data guard configuration in 12c
Oracle data guard configuration in 12c
uzzal basak
 
Adventures in Dataguard
Adventures in DataguardAdventures in Dataguard
Adventures in Dataguard
Jason Arneil
 
آموزش مدیریت بانک اطلاعاتی اوراکل - بخش پانزدهم
آموزش مدیریت بانک اطلاعاتی اوراکل - بخش پانزدهمآموزش مدیریت بانک اطلاعاتی اوراکل - بخش پانزدهم
آموزش مدیریت بانک اطلاعاتی اوراکل - بخش پانزدهم
faradars
 
Ad

Recently uploaded (20)

Adobe Media Encoder Crack FREE Download 2025
Adobe Media Encoder  Crack FREE Download 2025Adobe Media Encoder  Crack FREE Download 2025
Adobe Media Encoder Crack FREE Download 2025
zafranwaqar90
 
Solar-wind hybrid engery a system sustainable power
Solar-wind  hybrid engery a system sustainable powerSolar-wind  hybrid engery a system sustainable power
Solar-wind hybrid engery a system sustainable power
bhoomigowda12345
 
Exchange Migration Tool- Shoviv Software
Exchange Migration Tool- Shoviv SoftwareExchange Migration Tool- Shoviv Software
Exchange Migration Tool- Shoviv Software
Shoviv Software
 
Surviving a Downturn Making Smarter Portfolio Decisions with OnePlan - Webina...
Surviving a Downturn Making Smarter Portfolio Decisions with OnePlan - Webina...Surviving a Downturn Making Smarter Portfolio Decisions with OnePlan - Webina...
Surviving a Downturn Making Smarter Portfolio Decisions with OnePlan - Webina...
OnePlan Solutions
 
Time Estimation: Expert Tips & Proven Project Techniques
Time Estimation: Expert Tips & Proven Project TechniquesTime Estimation: Expert Tips & Proven Project Techniques
Time Estimation: Expert Tips & Proven Project Techniques
Livetecs LLC
 
Buy vs. Build: Unlocking the right path for your training tech
Buy vs. Build: Unlocking the right path for your training techBuy vs. Build: Unlocking the right path for your training tech
Buy vs. Build: Unlocking the right path for your training tech
Rustici Software
 
Sequence Diagrams With Pictures (1).pptx
Sequence Diagrams With Pictures (1).pptxSequence Diagrams With Pictures (1).pptx
Sequence Diagrams With Pictures (1).pptx
aashrithakondapalli8
 
Unit Two - Java Architecture and OOPS
Unit Two  -   Java Architecture and OOPSUnit Two  -   Java Architecture and OOPS
Unit Two - Java Architecture and OOPS
Nabin Dhakal
 
How I solved production issues with OpenTelemetry
How I solved production issues with OpenTelemetryHow I solved production issues with OpenTelemetry
How I solved production issues with OpenTelemetry
Cees Bos
 
Deploying & Testing Agentforce - End-to-end with Copado - Ewenb Clark
Deploying & Testing Agentforce - End-to-end with Copado - Ewenb ClarkDeploying & Testing Agentforce - End-to-end with Copado - Ewenb Clark
Deploying & Testing Agentforce - End-to-end with Copado - Ewenb Clark
Peter Caitens
 
Artificial hand using embedded system.pptx
Artificial hand using embedded system.pptxArtificial hand using embedded system.pptx
Artificial hand using embedded system.pptx
bhoomigowda12345
 
What Do Candidates Really Think About AI-Powered Recruitment Tools?
What Do Candidates Really Think About AI-Powered Recruitment Tools?What Do Candidates Really Think About AI-Powered Recruitment Tools?
What Do Candidates Really Think About AI-Powered Recruitment Tools?
HireME
 
GC Tuning: A Masterpiece in Performance Engineering
GC Tuning: A Masterpiece in Performance EngineeringGC Tuning: A Masterpiece in Performance Engineering
GC Tuning: A Masterpiece in Performance Engineering
Tier1 app
 
!%& IDM Crack with Internet Download Manager 6.42 Build 32 >
!%& IDM Crack with Internet Download Manager 6.42 Build 32 >!%& IDM Crack with Internet Download Manager 6.42 Build 32 >
!%& IDM Crack with Internet Download Manager 6.42 Build 32 >
Ranking Google
 
Reinventing Microservices Efficiency and Innovation with Single-Runtime
Reinventing Microservices Efficiency and Innovation with Single-RuntimeReinventing Microservices Efficiency and Innovation with Single-Runtime
Reinventing Microservices Efficiency and Innovation with Single-Runtime
Natan Silnitsky
 
Best HR and Payroll Software in Bangladesh - accordHRM
Best HR and Payroll Software in Bangladesh - accordHRMBest HR and Payroll Software in Bangladesh - accordHRM
Best HR and Payroll Software in Bangladesh - accordHRM
accordHRM
 
Top 12 Most Useful AngularJS Development Tools to Use in 2025
Top 12 Most Useful AngularJS Development Tools to Use in 2025Top 12 Most Useful AngularJS Development Tools to Use in 2025
Top 12 Most Useful AngularJS Development Tools to Use in 2025
GrapesTech Solutions
 
Download 4k Video Downloader Crack Pre-Activated
Download 4k Video Downloader Crack Pre-ActivatedDownload 4k Video Downloader Crack Pre-Activated
Download 4k Video Downloader Crack Pre-Activated
Web Designer
 
Digital Twins Software Service in Belfast
Digital Twins Software Service in BelfastDigital Twins Software Service in Belfast
Digital Twins Software Service in Belfast
julia smits
 
Troubleshooting JVM Outages – 3 Fortune 500 case studies
Troubleshooting JVM Outages – 3 Fortune 500 case studiesTroubleshooting JVM Outages – 3 Fortune 500 case studies
Troubleshooting JVM Outages – 3 Fortune 500 case studies
Tier1 app
 
Adobe Media Encoder Crack FREE Download 2025
Adobe Media Encoder  Crack FREE Download 2025Adobe Media Encoder  Crack FREE Download 2025
Adobe Media Encoder Crack FREE Download 2025
zafranwaqar90
 
Solar-wind hybrid engery a system sustainable power
Solar-wind  hybrid engery a system sustainable powerSolar-wind  hybrid engery a system sustainable power
Solar-wind hybrid engery a system sustainable power
bhoomigowda12345
 
Exchange Migration Tool- Shoviv Software
Exchange Migration Tool- Shoviv SoftwareExchange Migration Tool- Shoviv Software
Exchange Migration Tool- Shoviv Software
Shoviv Software
 
Surviving a Downturn Making Smarter Portfolio Decisions with OnePlan - Webina...
Surviving a Downturn Making Smarter Portfolio Decisions with OnePlan - Webina...Surviving a Downturn Making Smarter Portfolio Decisions with OnePlan - Webina...
Surviving a Downturn Making Smarter Portfolio Decisions with OnePlan - Webina...
OnePlan Solutions
 
Time Estimation: Expert Tips & Proven Project Techniques
Time Estimation: Expert Tips & Proven Project TechniquesTime Estimation: Expert Tips & Proven Project Techniques
Time Estimation: Expert Tips & Proven Project Techniques
Livetecs LLC
 
Buy vs. Build: Unlocking the right path for your training tech
Buy vs. Build: Unlocking the right path for your training techBuy vs. Build: Unlocking the right path for your training tech
Buy vs. Build: Unlocking the right path for your training tech
Rustici Software
 
Sequence Diagrams With Pictures (1).pptx
Sequence Diagrams With Pictures (1).pptxSequence Diagrams With Pictures (1).pptx
Sequence Diagrams With Pictures (1).pptx
aashrithakondapalli8
 
Unit Two - Java Architecture and OOPS
Unit Two  -   Java Architecture and OOPSUnit Two  -   Java Architecture and OOPS
Unit Two - Java Architecture and OOPS
Nabin Dhakal
 
How I solved production issues with OpenTelemetry
How I solved production issues with OpenTelemetryHow I solved production issues with OpenTelemetry
How I solved production issues with OpenTelemetry
Cees Bos
 
Deploying & Testing Agentforce - End-to-end with Copado - Ewenb Clark
Deploying & Testing Agentforce - End-to-end with Copado - Ewenb ClarkDeploying & Testing Agentforce - End-to-end with Copado - Ewenb Clark
Deploying & Testing Agentforce - End-to-end with Copado - Ewenb Clark
Peter Caitens
 
Artificial hand using embedded system.pptx
Artificial hand using embedded system.pptxArtificial hand using embedded system.pptx
Artificial hand using embedded system.pptx
bhoomigowda12345
 
What Do Candidates Really Think About AI-Powered Recruitment Tools?
What Do Candidates Really Think About AI-Powered Recruitment Tools?What Do Candidates Really Think About AI-Powered Recruitment Tools?
What Do Candidates Really Think About AI-Powered Recruitment Tools?
HireME
 
GC Tuning: A Masterpiece in Performance Engineering
GC Tuning: A Masterpiece in Performance EngineeringGC Tuning: A Masterpiece in Performance Engineering
GC Tuning: A Masterpiece in Performance Engineering
Tier1 app
 
!%& IDM Crack with Internet Download Manager 6.42 Build 32 >
!%& IDM Crack with Internet Download Manager 6.42 Build 32 >!%& IDM Crack with Internet Download Manager 6.42 Build 32 >
!%& IDM Crack with Internet Download Manager 6.42 Build 32 >
Ranking Google
 
Reinventing Microservices Efficiency and Innovation with Single-Runtime
Reinventing Microservices Efficiency and Innovation with Single-RuntimeReinventing Microservices Efficiency and Innovation with Single-Runtime
Reinventing Microservices Efficiency and Innovation with Single-Runtime
Natan Silnitsky
 
Best HR and Payroll Software in Bangladesh - accordHRM
Best HR and Payroll Software in Bangladesh - accordHRMBest HR and Payroll Software in Bangladesh - accordHRM
Best HR and Payroll Software in Bangladesh - accordHRM
accordHRM
 
Top 12 Most Useful AngularJS Development Tools to Use in 2025
Top 12 Most Useful AngularJS Development Tools to Use in 2025Top 12 Most Useful AngularJS Development Tools to Use in 2025
Top 12 Most Useful AngularJS Development Tools to Use in 2025
GrapesTech Solutions
 
Download 4k Video Downloader Crack Pre-Activated
Download 4k Video Downloader Crack Pre-ActivatedDownload 4k Video Downloader Crack Pre-Activated
Download 4k Video Downloader Crack Pre-Activated
Web Designer
 
Digital Twins Software Service in Belfast
Digital Twins Software Service in BelfastDigital Twins Software Service in Belfast
Digital Twins Software Service in Belfast
julia smits
 
Troubleshooting JVM Outages – 3 Fortune 500 case studies
Troubleshooting JVM Outages – 3 Fortune 500 case studiesTroubleshooting JVM Outages – 3 Fortune 500 case studies
Troubleshooting JVM Outages – 3 Fortune 500 case studies
Tier1 app
 
Ad

Creating a physical standby database 11g on windows

  • 1. Creating a Physical Standby Database Cách thực hiện: 1. Tạo 2 máy ảo ping thông mạng và phải có môi trường giống nhau. 2. Cấu hình tnsname, listener, sql và kiểm tra kết nối. 3. Cấu hình Initialization Parameter File cho primary và standby 4. Add redolog file 5. Tạo controlfile cho standby từ primary. 6. Copy source primary đến standby 7. Kiểm tra Chuẩn bị: - OS Names: "prime" for the Primary database and "standby" for the Standby database. Network: Trên Prime:
  • 2. Trên Standby: Next: + The primary and standby databases must be using the same version of Oracle Database 11g. + The primary database must be opened in ARCHIVELOG mode. +Install the database, Enterprise edition. (using DBCA) +Set up Oracle net components (using NETCA)
  • 3. +Test sql net connectivity. PRIME: SQL> Alter system set db_recovery_file_dest_size=2G scope=both; System altered. Alter system set db_recovery_file_dest=’C:BKFRA’ Select * from v$recovery_file_dest Oracle Net Services network files must be set up on the primary database and on the standby database. SQLNET.ORA file of the Primary:
  • 4. TNSNAMES.ORA file of the Primary:
  • 5. LISTENER.ORA file of the Primary: SQLNET.ORA file of the Standby: TNSNAMES.ORA file of the Standby:
  • 6. LISTENER.ORA file of the Standby: You can use "tnsping" to test the sql connectivity: On standby
  • 7. Next: (On PRIME) Create the password file.
  • 8. Create standby redo logs(On Prime): SELECT * from v$logfile; Alter database add standby logfile group 4 (‘C:apporacleoradataoraprimestandbyredo01.LOG’) size 50M; Alter database add standby logfile group 5 (‘C:apporacleoradataoraprimestandbyredo03.LOG’) size 50M; Alter database add standby logfile group 6 (‘C:apporacleoradataoraprimestandbyredo03.LOG’) size 50M; Alter database add standby logfile group 7 (‘C:apporacleoradataoraprimestandbyredo04.LOG’) size 50M; Next: Enable force logging (Optional) (On Prime) Select log_mode from v$database; Alter database force logging;
  • 9. Configure the pfile of the primary: USING: SQL> ALTER SYSTEM SET ….
  • 10. alter system set LOG_ARCHIVE_CONFIG='DG_CONFIG=(oraprime,orastandby)'; alter system set LOG_ARCHIVE_DEST_1='LOCATION=+DATA VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=oraprime'; alter system set LOG_ARCHIVE_DEST_2='SERVICE=orastandby LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME= orastandby’; alter system set LOG_ARCHIVE_DEST_STATE_1=ENABLE; alter system set FAL_SERVER=orastandby; alter system set FAL_CLIENT=oraprime; alter database add standby logfile '+DATA'; alter database add standby logfile '+DATA'; alter database add standby logfile '+DATA'; alter database add standby logfile '+DATA'; On Standby: Option 1: Create pfile with only one parameter DB_NAME. Start up no mount the database using the pfile.
  • 11. Using: - Run RMAN Dupplicate database on primary rman target sys/@oraprime auxiliary sys/oracle@orastandby run { allocate channel prmy1 type disk; allocate channel prmy2 type disk; allocate channel prmy3 type disk; allocate channel prmy4 type disk; allocate auxiliary channel stby type disk; duplicate target database for standby from active database spfile parameter_value_convert 'oraprime','orastandby' set db_unique_name='orastandby' set control_files='+DATA' set log_archive_max_processes='5' set fal_client='oraprime' set fal_server='orastandby' set standby_file_management='AUTO' set log_archive_config='dg_config=(oraprime,orastandby)' set log_archive_dest_2='service=oraprime LGWR ASYNC valid_for=(ONLINE_LOGFILE,PRIMARY_ROLE) db_unique_name=prime'
  • 12. ; } Start apply service on standby & Open for read-only recover managed standby database using current logfile disconnect from session; recover managed standby database cancel; alter database open; recover managed standby database using current logfile disconnect from session; Option 2: On PRIME Create a Control File for the Standby Database SQL> SHUTDOWN IMMEDIATE; SQL> STARTUP MOUNT; SQL>ALTER DATABASE CREATE STANDBY CONTROLFILE AS 'C:tostandbycontrolstd.ctl'; SQL> ALTER DATABASE OPEN; Create a pFile for the Standby Database:
  • 13. Copy pfile to standby and edit: 1. FAL_SERVER 2. FAL_CLIENT 3. CONTROL_FILES: add standby controlfile *.fal_client='orastandby' *.fal_server='oraprime' *.control_files='C:apporacleoradataoraprimecontrol01.ctl','C:apporacleflash_recover y_areaoraprimecontrol02.ctl','C:tostandbyCONTROLSTD.CTL' *.log_archive_config='DG_CONFIG=(oraprime,orastandby)' *.log_archive_dest_1='LOCATION=C:apporacleoradataorastandby VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=standby' *.log_archive_dest_2='SERVICE=oraprime LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=prime'
  • 14. SQL>Startup mount; SQL>ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION; Check that primary and standby are synchronized Using: PRIMARY SQL> archive log list; Database log mode Archive Mode Automatic archival Enabled Archive destination /u01/arch1/orcl/ Oldest online log sequence 43 Next log sequence to archive 45 Current log sequence 45 SQL> select database_role, open_mode from v$database; DATABASE_ROLE OPEN_MODE ---------------- ---------- PRIMARY READ WRITE STANDBY
  • 15. SQL> archive log list; Database log mode Archive Mode Automatic archival Enabled Archive destination /u01/arch1/orcl/ Oldest online log sequence 43 Next log sequence to archive 0 Current log sequence 45 SQL> select database_role, open_mode from v$database; DATABASE_ROLE OPEN_MODE ---------------- ---------- PHYSICAL STANDBY MOUNTED
  翻译: