create configuration 'orcldgb' as primary database is 'orcl' connect identifier is orcl;
--enable configuration;
add database 'alpha' as connect identifier is 'alpha' maintained as physical;
show configuration;
edit database orcl set property staticconnectidentifier='(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(PORT=1522)(HOST=192.168.56.101)) (CONNECT_DATA=(SERVICE_NAME=orcl)(INSTANCE_NAME=orcl)(SERVER=DEDICATED)))';
edit database alpha set property staticconnectidentifier='(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(PORT=1522)(HOST=192.168.56.102))(CONNECT_DATA=(SERVICE_NAME=alpha)(INSTANCE_NAME=orcl)(SERVER=DEDICATED)))';
edit database orcl set property ApplyLagThreshold=0;
edit database orcl set property TransportLagThreshold=0;
edit database alpha set property ApplyLagThreshold=0;
edit database alpha set property TransportLagThreshold=0;
enable configuration;
show configuration;
=======================================================================================================
DGMGRL> show configuration
Configuration - orcldgb
Protection Mode: MaxPerformance
Members:
orcl - Primary database
alpha - Physical standby database
Fast-Start Failover: Disabled
Configuration Status:
SUCCESS (status updated 59 seconds ago)
DGMGRL> switchover to 'alpha';
2024-10-02T12:10:02.179+05:30
Performing switchover NOW, please wait...
2024-10-02T12:10:03.278+05:30
Operation requires a connection to database "alpha"
Connecting ...
Connected to "ALPHA"
Connected as SYSDBA.
2024-10-02T12:10:03.609+05:30
Continuing with the switchover...
2024-10-02T12:10:24.768+05:30
New primary database "alpha" is opening...
2024-10-02T12:10:24.768+05:30
Operation requires start up of instance "orcl" on database "orcl"
Starting instance "orcl"...
Connected to an idle instance.
Connected to "orcl"
ORACLE instance started.
Connected to "orcl"
Database mounted.
Database opened.
Connected to "orcl"
2024-10-02T12:11:37.140+05:30
Switchover succeeded, new primary is "alpha"
2024-10-02T12:11:37.150+05:30
Switchover processing complete, broker ready.
-------------------------------
DGMGRL> show configuration
Configuration - orcldgb
Protection Mode: MaxPerformance
Members:
alpha - Primary database
orcl - Physical standby database
Fast-Start Failover: Disabled
Configuration Status:
SUCCESS (status updated 29 seconds ago)
DGMGRL> show configuration verbose
Configuration - orcldgb
Protection Mode: MaxPerformance
Members:
alpha - Primary database
orcl - Physical standby database
Properties:
FastStartFailoverThreshold = '30'
OperationTimeout = '30'
TraceLevel = 'USER'
FastStartFailoverLagLimit = '30'
CommunicationTimeout = '180'
ObserverReconnect = '0'
ObserverPingInterval = '0'
ObserverPingRetry = '0'
FastStartFailoverAutoReinstate = 'TRUE'
FastStartFailoverPmyShutdown = 'TRUE'
BystandersFollowRoleChange = 'ALL'
ObserverOverride = 'FALSE'
ExternalDestination1 = ''
ExternalDestination2 = ''
PrimaryLostWriteAction = 'CONTINUE'
ConfigurationWideServiceName = 'orcl_CFG'
ConfigurationSimpleName = 'orcldgb'
DrainTimeout = '0'
Fast-Start Failover: Disabled
Configuration Status:
SUCCESS
SELECT NAME, DB_UNIQUE_NAME, SWITCHOVER_STATUS, DATABASE_ROLE, OPEN_MODE FROM V$DATABASE;
ORCL ALPHA TO STANDBY PRIMARY READ WRITE
ORCL orcl NOT ALLOWED PHYSICAL STANDBY READ ONLY WITH APPLY
nohup dgmgrl sys/oracle123@orcl "start observer" &
Navigation Bar
- Oracle Developer
- Date Functions
- Queries
- PL/SQL
- Oracle XML DB
- Oracle XML DB: An Example
- To Store and Select XML Data
- XMLDB : Examples of using getClobVal, getStringVal and getNumberVal
- XMLDB: Convert xml file into equivalent relational dataset
- XMLDB: XML to HTML with XSL stylesheet
- XMLDB : DBUriType
- XMLDB : XML Functions continued ...
- XMLElement, XMLAttributes, XMLAgg, XMLForest - Examples
- JSON in Oracle
- Working with JSONs in Oracle
- PL/SQL Object Types and Methods for JSON
- Oracle JSON : Select Level 1 and Level 2 data
- A JSON generator using SQL and PLSQL
- XML to JSON and JSON to XML
- Parsing a JSON object with Oracle PLSQL
- Parsing and updating a JSON object using PLSQL
- A generic JSON parser with update using Oracle PL/SQL
- A generic multi level JSON object parse and update script using PLSQL
- A generic JSON parser and JSON generator using a config table
- A generic JSON generator using a config table
- Common Oracle Errors
- Exception Handling
- Archiving
- Reclaim tablespace size after a large table delete
- Data Archiving in Oracle
- Archiving a generic solution - Part 1
- Archiving a generic solution - Part 2
- Archiving a generic solution - Part 3
- Archiving a generic solution - Part 4
- Archiving a generic solution - Part 5
- Archiving a generic solution - Part 6 - Deploy and Test
- Archiving - Case Study for optimizing disk space utilization with archiving
- Archiving : Changes for data replication
- Archiving : A case study for data replication
- Data Replication : Using Change Notification and DBMS_SCHEDULER as a LISTENER
- Oracle DBA
- Knowledge Base
- Linux
- Oracle Dewdrops
- Newsletters
- Others
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment