SHOW DATABASE
The SHOW DATABASE command displays information, property values, or initialization parameter values of the specified database and its instances.
Format
SHOW DATABASE [VERBOSE] <db_unique_name> [<property_name>];
SHOW DATABASE <db_unique_name> PARAMETER <parameter_name>;
SHOW DATABASE <db_unique_name>VERSION
Command Parameters
- db_unique_name
-
The
DB_UNIQUE_NAMEinitialization parameter value of the database for which you want to display information. TheVERBOSEkeyword, if used, must come before thedb_unique_nameor an error is returned. - property_name
-
The name of the property for which you want to display a value. If a property name is specified, the output shows only the specified property (not all properties of the database), regardless of whether or not the
VERBOSEkeyword is specified.See Also:
Managing the Members of a Broker Configuration and Oracle Data Guard Broker Properties for information about properties.
- parameter_name
-
The name of the database initialization parameter for which you want to display a value. If a parameter name is specified, the output shows only the specified parameter (not all parameters), regardless of whether or not the
VERBOSEkeyword is specified.
Usage Notes
- You must connect to the database whose property is being set by using any technique
other than operating system authentication if using the
PARAMETERcommand parameter. -
The
SHOW DATABASEcommand shows a brief summary of the database. TheSHOW DATABASE VERBOSEcommand shows properties of the database in addition to the brief summary. They both show the status of the database. -
The
SHOW DATABASE VERBOSEcommand shows the locations of the Oracle alert log file and of the broker log file. The broker log file is created in the same directory as the alert log and is nameddrc<$ORACLE_SID>.log. -
The
SHOW DATABASE VERBOSEcommand shows database-specific properties and instance-specific properties. For a non-Oracle RAC database, the values of the instance-specific properties are those of the only instance of the database. For an Oracle RAC database, the values of the instance-specific properties will not be shown, although the property names are still listed. To see the instance-specific values of these properties, use theSHOW INSTANCEcommand. -
The properties that the
SHOW DATABASE VERBOSEcommand shows depend on the database role and the configuration composition:-
For the primary database, properties specific to physical or snapshot standby databases are shown only if there is at least one physical or snapshot standby database in the configuration. The properties specific to logical standby databases are shown only if there is at least one logical standby database in the configuration.
-
For physical and snapshot standby databases, properties specific to logical standby databases are not shown.
-
For logical standby databases, properties specific to physical and snapshot standby databases are not shown.
-
- The
VERBOSEoption cannot be specified with thePARAMETERcommand option. -
This command is rejected if you use the
SHOW DATABASEdatabase_name property_namecommand to show an instance-specific property in an Oracle RAC database. -
The
SHOW DATABASE VERSIONcommand shows the database version information. The Instance number, Host Name, Instance Name, and Version values are read from theGV$INSTANCEview of the given database and displayed. -
During a rolling upgrade done using the PL/SQL package
DBMS_ROLLING, theSHOW DATABASEcommand shows aWARNINGwith an appropriateORAerror for the upgrade target and the trailing or leading standbys, depending on the current rolling upgrade progress. See Example 3.
Command Examples
Example 1: Showing Database Information in Abbreviated Format
This example shows database information in an abbreviated format.
DGMGRL> SHOW DATABASE South_Sales;
Database - South_Sales
Role: PHYSICAL STANDBY
Intended State: APPLY-ON
Transport Lag: (unknown)
Apply Lag: 0 seconds (computed 0 seconds ago)
Apply Rate: 1.73 MByte/s
Real Time Query: OFF
Instance(s):
south_sales1
Database Status:
SUCCESSExample 2: Showing Database Information in Extended Format
This example shows database information in an extended format.
DGMGRL> SHOW DATABASE VERBOSE 'North_Sales';
Database - North_Sales
Role: PRIMARY
Intended State: TRANSPORT-ON
Instance(s):
North_Sales1
Properties:
DGConnectIdentifier = 'North_Sales.example.com'
ObserverConnectIdentifier = ''
FastStartFailoverTarget = ''
PreferredObserverHosts = ''
LogShipping = 'ON'
RedoRoutes = ''
LogXptMode = 'ASYNC'
DelayMins = '0'
Binding = 'optional'
MaxFailure = '0'
ReopenSecs = '300'
NetTimeout = '30'
RedoCompression = 'DISABLE'
PreferredApplyInstance = ''
ApplyInstanceTimeout = '0'
ApplyLagThreshold = '0'
TransportLagThreshold = '0'
TransportDisconnectedThreshold = '0'
ApplyParallel = 'AUTO'
ApplyInstances = '0'
ArchiveLocation = ''
AlternateLocation = ''
StandbyArchiveLocation = 'USE_DB_RECOVERY_FILE_DEST'
StandbyAlternateLocation = ''
InconsistentProperties = '(monitor)'
InconsistentLogXptProps = '(monitor)'
LogXptStatus = '(monitor)'
SendQEntries = '(monitor)'
RecvQEntries = '(monitor)'
HostName = ’North_Sales.example.com'
StaticConnectIdentifier = '(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)
(HOST=North_Sales.example.com)(PORT=2840))
(CONNECT_DATA=(SERVICE_NAME=North_Sales_DGMGRL.example.com)
(INSTANCE_NAME=north_sales1)(SERVER=DEDICATED)))'
TopWaitEvents = '(monitor)'
SidName = '(monitor)’
Log file locations:
Alert log : /dev/oracle/log/diag/rdbms/North_Sales/north_sales1/trace/alert_north_sales1.log
Data Guard Broker log : /dev/oracle/log/diag/rdbms/North_Sales/north_sales1/trace/drcnorth_sales1.log
Database Status:
SUCCESSExample 3: Sample Output for the Target Database During a Rolling Upgrade Performed With the DBMS_ROLLING Package
DGMGRL> SHOW DATABASE South_Sales;
Database - South_Sales
Role: Physical standby database
Intended State: APPLY-ON
Transport Lag: 0 seconds (computed 1 second ago)
Apply Lag: 0 seconds (computed 1 second ago)
Average Apply Rate: 6.00 KByte/s
Real Time Query: OFF
Instance(s):
South
Database Warning(s):
ORA-16866: database converted to transient logical standby database for rolling database maintenance
Database Status:
WARNINGExample 4: Sample Output For the Leading Standby During a Rolling Upgrade Performed With the DBMS_ROLLING Package
DGMGRL> SHOW DATABASE South_Sales;
Database - South_Sales
Role: Physical standby database
Intended State: APPLY-ON
Transport Lag: 0 seconds (computed 0 seconds ago)
Apply Lag: 0 seconds (computed 0 seconds ago)
Average Apply Rate: 510.00 KByte/s
Real Time Query: OFF
Instance(s):
South
Database Warning(s):
ORA-16881: standby database is not protecting the current primary database during rolling database maintenance
Database Status:
WARNINGExample 5: Sample output For Showing the Value of the
log_archive_trace Initialization Parameter
DGMGRL> SHOW DATABASE South_Sales
PARAMETER log_archive_trace;
log_archive_trace = '127'