Vous êtes sur la page 1sur 3

alter system set dg_broker_start=True scope=both;

show parameter dg_broker;

[oracle@eagle ~]$ dgmgrl

connect sys/sys@dg1

DGMGRL> create configuration 'broker1' as primary database is 'dg1' connect


identifier is dg1;
Error: ORA-16642: DB_UNIQUE_NAME mismatch

Failed.

DGMGRL> create configuration 'broker1' as primary database is 'dg1_del' connect


identifier is dg1;
Configuration "broker1" created with primary database "dg1_del"

DGMGRL> help add

Adds a standby database to the broker configuration

Syntax:

ADD DATABASE <database name>


[AS CONNECT IDENTIFIER IS <connect identifier>]
[MAINTAINED AS {PHYSICAL|LOGICAL}];

DGMGRL> add database 'dg1_us' as connect identifier is dg1_us maintained as


physical;
Database "dg1_us" added
DGMGRL> enable configuration;
Enabled.
DGMGRL> show configuration

Configuration - broker1

Protection Mode: MaxPerformance


Databases:
dg1_del - Primary database
dg1_us - Physical standby database

Fast-Start Failover: DISABLED

Configuration Status:
SUCCESS

DGMGRL> edit database primary set property logxptmode='sync';


Object "primary" was not found

DGMGRL> edit database dg1_del set property logxptmode='sync';


Property "logxptmode" updated
DGMGRL> edit database dg1_us set property logxptmode='sync';
Property "logxptmode" updated
DGMGRL> edit database dg1_del set property reopensecs='10';
Property "reopensecs" updated

DGMGRL> edit database dg1_us set property reopensecs='10';


Property "reopensecs" updated
DGMGRL> edit database dg1_del set property faststartfailovertarget='dg1_us';
Property "faststartfailovertarget" updated
DGMGRL> edit database dg1_us set property faststartfailovertarget='dg1_del';
Property "faststartfailovertarget" updated
DGMGRL> edit database dg1_del set property faststartfailoverthreshold='10';
Error: ORA-16538: no match on requested item

Failed.
DGMGRL> edit database set property faststartfailoverthreshold='10';
edit database set property faststartfailoverthreshold='10';
^
Syntax error before or at "property"
DGMGRL> edit configuration set property faststartfailoverthreshold='10';
Property "faststartfailoverthreshold" updated

DGMGRL> show configuration

Configuration - broker1

Protection Mode: MaxPerformance


Databases:
dg1_del - Primary database
dg1_us - Physical standby database

Fast-Start Failover: DISABLED

Configuration Status:
SUCCESS

DGMGRL> show instance dg1_del;


Instance "dg1_del" was not found
DGMGRL> show instance dg1

DGMGRL> show instance dg1_del;


Instance "dg1_del" was not found
DGMGRL> show instance dg1

Instance 'dg1' of database 'dg1_del'

Host Name: eagle.newjob.com

Instance Error(s):
ORA-16737: the redo transport service for standby database "dg1_us" has an
error

Instance Status:
ERROR

DGMGRL> show instance dg1_us

Instance 'dg1_us' of database 'dg1_us'


Host Name: eagle.newjob.com

Instance Status:
SUCCESS

DGMGRL> show database verbose dg1_del

Database - dg1_del

Role: PRIMARY
Intended State: TRANSPORT-ON
Instance(s):
dg1

Properties:
DGConnectIdentifier = 'dg1'
ObserverConnectIdentifier = ''
LogXptMode = 'sync'
DelayMins = '0'
Binding = 'optional'
MaxFailure = '0'
MaxConnections = '1'
ReopenSecs = '10'
NetTimeout = '30'
RedoCompression = 'DISABLE'
LogShipping = 'ON'
PreferredApplyInstance = ''
ApplyInstanceTimeout = '0'
ApplyParallel = 'AUTO'
StandbyFileManagement = 'AUTO'
ArchiveLagTarget = '0'
LogArchiveMaxProcesses = '4'
LogArchiveMinSucceedDest = '1'
DbFileNameConvert = ''
LogFileNameConvert = ''
FastStartFailoverTarget = 'dg1_us'
StatusReport = '(monitor)'
InconsistentProperties = '(monitor)'
InconsistentLogXptProps = '(monitor)'
SendQEntries = '(monitor)'
LogXptStatus = '(monitor)'
RecvQEntries = '(monitor)'
HostName = 'eagle.newjob.com'
SidName = 'dg1'
StaticConnectIdentifier = '(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)
(HOST=eagle.newjob.com)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=dg1_del_DGMGRL)
(INSTANCE_NAME=dg1)(SERVER=DEDICATED)))'
StandbyArchiveLocation = '/data/dg1'
AlternateLocation = ''
LogArchiveTrace = '0'
LogArchiveFormat = '%t_%s_%r.dbf'
TopWaitEvents = '(monitor)'

Database Status:
SUCCESS

ashish

Vous aimerez peut-être aussi