Query-Only non-SYS user for Mounted instance [message #686422] |
Sun, 11 September 2022 04:14 |
Andrey_R
Messages: 441 Registered: January 2012 Location: Israel
|
Senior Member |
|
|
Hi all,
I have a Oracle (Passive) Data Guard architecture.
I want to check that the DR instance is in sync by querying v$archived_log and other DMVs.
I am able to do it with user SYS, or any user I give SYSDBA privileges to.
If I try with a non-SYS user, as the instance is in MOUNT state - it results in
SQL*Plus: Release 19.0.0.0.0 - Production on Sun Sep 11 12:09:06 2022
Version 19.3.0.0.0
Copyright (c) 1982, 2019, Oracle. All rights reserved.
ERROR:
ORA-01033: ORACLE initialization or shutdown in progress
Process ID: 0
Session ID: 0 Serial number: 0
Is there a way I can monitor the DR and see that it's in sync without providing the monitoring person/application the SYSDBA privileges ?
Thanks
Andrey
|
|
|
|
|
|
Re: Query-Only non-SYS user for Mounted instance [message #686426 is a reply to message #686425] |
Sun, 11 September 2022 10:21 |
|
Michel Cadot
Messages: 68732 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
This was if you want to check connecting to the standby database but you can check from the primary database using fixed views like v$dataguard_status, v$archive_dest_status, v$archived_log.last_applied, v$archive_gap, v$dataguard_stats, v$managed_standby...
These views requires only SELECT ANY DICTIONARY privilege or SELECT_CATALOG_ROLE role.
|
|
|