select NAME, DEFAULT_VALUE, VALUE, DISPLAY_VALUE from V$PARAMETER where ISDEFAULT='FALSE' and NAME="nls_length_semantics"
ORA-00904: "nls_length_semantics" : invalid identifier *Cause: *Action: Error at line 7, column 14
nls_length_semantics
is an existing parameter found in V$PARAMETER, so nothing wrong here and NAME="nls_length_semantics"
, the opening double quote "
(counting [TAB]
as 4 characters) select NAME, DEFAULT_VALUE, VALUE, DISPLAY_VALUE from V$PARAMETER where ISDEFAULT='FALSE' and NAME='nls_length_semantics'
What led me to this uncomfortable situation is not completely clear to me yet. A switchover from the primary to the standby server worked fine, but things got strange when I tried to switch back .
As for the alert log mentioned in the error message, it says :
ORA-00210: cannot open the specified control file ORA-00202: control file: '/appli/oracle/${ORACLE_SID}/oradata01/${ORACLE_SID}_ctrl03.ctl' ORA-27086: unable to lock file - already in use Linux-x86_64 Error: 11: Resource temporarily unavailable -- ORA-00210: cannot open the specified control file ORA-00202: control file: '/appli/oracle/${ORACLE_SID}/oractl02/${ORACLE_SID}_ctrl02.ctl' ORA-27086: unable to lock file - already in use Linux-x86_64 Error: 11: Resource temporarily unavailable -- ORA-00210: cannot open the specified control file ORA-00202: control file: '/appli/oracle/${ORACLE_SID}/oractl01/${ORACLE_SID}_ctrl01.ctl' ORA-27086: unable to lock file - already in use Linux-x86_64 Error: 11: Resource temporarily unavailable
fuser /appli/oracle/${ORACLE_SID}/oractl01/${ORACLE_SID}_ctrl01.ctl
/appli/oracle/${ORACLE_SID}/oractl01/${ORACLE_SID}_ctrl01.ctl: 26238 26258 26274 26278 26360 26375 26379 26383 26387 27373 27384 27386
The same goes on with the 2 other files.
fuser -k -1 /appli/oracle/${ORACLE_SID}/oractl01/${ORACLE_SID}_ctrl01.ctl fuser -k -1 /appli/oracle/${ORACLE_SID}/oractl02/${ORACLE_SID}_ctrl02.ctl fuser -k -1 /appli/oracle/${ORACLE_SID}/oradata01/${ORACLE_SID}_ctrl03.ctlThen start the database. It should be ok now.
WALLET_LOCATION =
block is entirely left-aligned due to misuse of -
in stop token of heredoc. Read solution below.BAAAD ! | GOOD ! |
---|---|
WALLET_LOCATION = (SOURCE = (METHOD = FILE) (METHOD_DATA = (DIRECTORY = $walletDirectory) ) ) |
WALLET_LOCATION = (SOURCE = (METHOD = FILE) (METHOD_DATA = (DIRECTORY = $walletDirectory) ) ) |
switchover to 'ORACLE_SID_STANDBYDATACENTER';
ORA-16532: Data Guard broker configuration does not exist Configuration details cannot be determined by DGMGRL
Configuration - ORACLE_SIDDR Protection Mode: MaxPerformance Databases: ORACLE_SID_PRIMARYDATACENTER - Primary database ORACLE_SID_STANDBYDATACENTER - Physical standby database (disabled) Fast-Start Failover: DISABLED Configuration Status: SUCCESS
ORA-16532: Data Guard broker configuration does not exist Configuration details cannot be determined by DGMGRL
export ORACLE_SID=ORACLE_SID; sqlplus -s / as sysdba << EOC
alter system set dg_broker_start=false scope=both;
alter system set dg_broker_start=true scope=both;
EOC
System altered. System altered.
Configuration - ORACLE_SIDDR Protection Mode: MaxPerformance Databases: ORACLE_SID_PRIMARYDATACENTER - Primary database ORACLE_SID_STANDBYDATACENTER - Physical standby database Fast-Start Failover: DISABLED Configuration Status: SUCCESS
Password: sysPassword Connected.
ORA-16541: database is not enabled Configuration details cannot be determined by DGMGRL
dgmgrl / <<EODGMGRL show configuration enable configuration show configuration EODGMGRL
Configuration - ORACLE_SIDDR Protection Mode: MaxPerformance Databases: ORACLE_SID_PRIMARYDATACENTER - Primary database ORACLE_SID_STANDBYDATACENTER - Physical standby database Fast-Start Failover: DISABLED Configuration Status: DISABLED There is a slight pause here DGMGRL> Enabled. DGMGRL> Configuration - ORACLE_SIDDR Protection Mode: MaxPerformance Databases: ORACLE_SID_PRIMARYDATACENTER - Primary database ORACLE_SID_STANDBYDATACENTER - Physical standby database Fast-Start Failover: DISABLED Configuration Status: SUCCESS
export ORACLE_SID=ORACLE_SID; echo 'enable fast_start failover;' | dgmgrl /
Connected. DGMGRL> Error: ORA-16651: requirements not met for enabling fast-start failover Failed.
PROTECTION_MODE -------------------------------------------------------------------------------- MAXIMUM PERFORMANCE
dgmgrl / << EOC show database '${ORACLE_SID}_PRIMARYDATACENTER' 'LogXptMode'; show database '${ORACLE_SID}_STANDBYDATACENTER' 'LogXptMode'; EOC
Connected. DGMGRL> LogXptMode = 'async' DGMGRL> LogXptMode = 'sync'
Whatever LogXptMode is used (see details below), the same value must be applied to both servers.
dgmgrl / << EOC show database '${ORACLE_SID}_PRIMARYDATACENTER' 'FastStartFailoverTarget'; show database '${ORACLE_SID}_STANDBYDATACENTER' 'FastStartFailoverTarget'; EOC
Connected. DGMGRL> FastStartFailoverTarget = 'ORACLE_SID_STANDBYDATACENTER' DGMGRL> FastStartFailoverTarget = 'ORACLE_SID_PRIMARYDATACENTER'
The full error messages are :
ORA-16825: multiple errors or warnings, including fast-start failover-related errors or warnings, detected for the database ORA-16824: multiple warnings, including fast-start failover-related warnings, detected for the databaseI got these after doing the following actions (which doesn't mean it's the only sequence leading to this result) :
show configuration
Configuration - ORACLE_SIDDR Protection Mode: MaxAvailability Databases: ORACLE_SID_STANDBYDATACENTER - Primary database Error: ORA-16825: multiple errors or warnings, including fast-start failover-related errors or warnings, detected for the database ORACLE_SID_PRIMARYDATACENTER - (*) Physical standby database Warning: ORA-16824: multiple warnings, including fast-start failover-related warnings, detected for the database Fast-Start Failover: ENABLED Configuration Status: ERRORThe list of the databases and their primary/standby roles testifies that the automatic failover has been executed.
disable fast_start failover;
Disabled.
show configuration
Configuration - ORACLE_SIDDR Protection Mode: MaxAvailability Databases: ORACLE_SID_STANDBYDATACENTER - Primary database Error: ORA-16810: multiple errors or warnings detected for the database ORACLE_SID_PRIMARYDATACENTER - Physical standby database Warning: ORA-16857: standby disconnected from redo source for longer than specified threshold Fast-Start Failover: DISABLED Configuration Status: ERRORThen leave DGMGRL.
echo 'select status from v$instance;' | sqlplus / as sysdbaOn both servers, this is what I got :
STATUS ------------------------------------ OPENwhich is a terrible thing since the database mustn't be open twice.
shutdown immediate
Database closed. Database dismounted. ORACLE instance shut down.
startup nomount
ORACLE instance started. Total System Global Area 8551575552 bytes Fixed Size 2270360 bytes Variable Size 5200939880 bytes Database Buffers 3338665984 bytes Redo Buffers 9699328 bytes
alter database mount standby database;
Database altered.
Configuration - ORACLE_SIDDR Protection Mode: MaxAvailability Databases: ORACLE_SID_STANDBYDATACENTER - Primary database ORACLE_SID_PRIMARYDATACENTER - Physical standby database Fast-Start Failover: DISABLED Configuration Status: SUCCESS
enable fast_start failover;
Enabled.
show configuration verbose;
Configuration - ORACLE_SIDDR Protection Mode: MaxAvailability Databases: ORACLE_SID_STANDBYDATACENTER - Primary database ORACLE_SID_PRIMARYDATACENTER - (*) Physical standby database (*) Fast-Start Failover target Properties: FastStartFailoverThreshold = '120' OperationTimeout = '30' FastStartFailoverLagLimit = '30' CommunicationTimeout = '180' ObserverReconnect = '0' FastStartFailoverAutoReinstate = 'TRUE' FastStartFailoverPmyShutdown = 'TRUE' BystandersFollowRoleChange = 'ALL' ObserverOverride = 'FALSE' ExternalDestination1 = '' ExternalDestination2 = '' PrimaryLostWriteAction = 'CONTINUE' Fast-Start Failover: ENABLED Threshold: 120 seconds Target: ORACLE_SID_PRIMARYDATACENTER Observer: observer.mycompany.tld Lag Limit: 30 seconds (not in use) Shutdown Primary: TRUE Auto-reinstate: TRUE Observer Reconnect: (none) Observer Override: FALSE Configuration Status: SUCCESS
1st steps below are for the context.
Configuration - ORACLE_SIDDR Protection Mode: MaxAvailability Databases: ORACLE_SID_PRIMARYDATACENTER - Primary database ORACLE_SID_STANDBYDATACENTER - Physical standby database Warning: ORA-16826: apply service state is inconsistent with the DelayMins property Fast-Start Failover: DISABLED Configuration Status: WARNING
Database - ORACLE_SID_PRIMARYDATACENTER Role: PRIMARY Intended State: TRANSPORT-ON Instance(s): ORACLE_SID Properties: DGConnectIdentifier = 'ORACLE_SID_PRIMARYDATACENTER' ObserverConnectIdentifier = '' LogXptMode = 'sync' DelayMins = '0' Binding = 'optional' MaxFailure = '0' MaxConnections = '1' ReopenSecs = '300' NetTimeout = '30' RedoCompression = 'DISABLE' LogShipping = 'ON' PreferredApplyInstance = '' ApplyInstanceTimeout = '0' ApplyParallel = 'AUTO' StandbyFileManagement = 'AUTO' ArchiveLagTarget = '0' LogArchiveMaxProcesses = '4' LogArchiveMinSucceedDest = '1' DbFileNameConvert = '' LogFileNameConvert = '' FastStartFailoverTarget = '' InconsistentProperties = '(monitor)' InconsistentLogXptProps = '(monitor)' SendQEntries = '(monitor)' LogXptStatus = '(monitor)' RecvQEntries = '(monitor)' ApplyLagThreshold = '0' TransportLagThreshold = '0' TransportDisconnectedThreshold = '30' SidName = 'ORACLE_SID' StaticConnectIdentifier = 'ORACLE_SID_PRIMARYDATACENTER' StandbyArchiveLocation = '/appli/oracle/ORACLE_SID/oraarch/' AlternateLocation = '' LogArchiveTrace = '0' LogArchiveFormat = 'ORACLE_SID_%r_%s_%t.arc' TopWaitEvents = '(monitor)' Database Status: SUCCESSSUCCESS !
Database - ORACLE_SID_STANDBYDATACENTER Role: PHYSICAL STANDBY Intended State: APPLY-ON Transport Lag: 0 seconds (computed 0 seconds ago) Apply Lag: 8 hours 34 minutes 44 seconds (computed 0 seconds ago) Apply Rate: 257.00 KByte/s Real Time Query: OFF Instance(s): ORACLE_SID Database Warning(s): ORA-16826: apply service state is inconsistent with the DelayMins property Properties: DGConnectIdentifier = 'ORACLE_SID_STANDBYDATACENTER' ObserverConnectIdentifier = '' LogXptMode = 'sync' DelayMins = '0' Binding = 'OPTIONAL' MaxFailure = '0' MaxConnections = '1' ReopenSecs = '300' NetTimeout = '30' RedoCompression = 'DISABLE' LogShipping = 'ON' PreferredApplyInstance = '' ApplyInstanceTimeout = '0' ApplyParallel = 'AUTO' StandbyFileManagement = 'AUTO' ArchiveLagTarget = '0' LogArchiveMaxProcesses = '4' LogArchiveMinSucceedDest = '1' DbFileNameConvert = '' LogFileNameConvert = '' FastStartFailoverTarget = '' InconsistentProperties = '(monitor)' InconsistentLogXptProps = '(monitor)' SendQEntries = '(monitor)' LogXptStatus = '(monitor)' RecvQEntries = '(monitor)' ApplyLagThreshold = '0' TransportLagThreshold = '0' TransportDisconnectedThreshold = '30' SidName = 'ORACLE_SID' StaticConnectIdentifier = 'ORACLE_SID_STANDBYDATACENTER' StandbyArchiveLocation = '/appli/oracle/ORACLE_SID/oraarch/' AlternateLocation = '' LogArchiveTrace = '0' LogArchiveFormat = 'ORACLE_SID_%r_%s_%t.arc' TopWaitEvents = '(monitor)' Database Status: WARNINGThere's an Apply Lag and a WARNING status : we've found the bug.
sqlplus "/ as sysdba" << EOSQL col recovery_mode format a25 col database_mode format a15 col type format a15 col status format a15 col destination format a15 select recovery_mode, database_mode, type, status, destination from v\$archive_dest_status where dest_name='LOG_ARCHIVE_DEST_2'; EOSQL
RECOVERY_MODE DATABASE_MODE TYPE STATUS DESTINATION ---------------- ------------------ ----------- --------- -------------- MANAGED MOUNTED-STANDBY PHYSICAL VALID ORACLE_SID_STANDBYDATACENTERThe recovery mode of the standby database is Managed, which conflicts with the DelayMins property of Data Guard configuration.
sqlplus "/ as sysdba" << EOSQL alter database recover managed standby database cancel; alter database recover managed standby database using current logfile disconnect; EOSQL
Database altered. Database altered.
select recovery_mode, database_mode, ...
query we tried earlier. This should return :
RECOVERY_MODE DATABASE_MODE TYPE STATUS DESTINATION -------------------------- ------------------ ----------- --------- --------------- MANAGED REAL TIME APPLY MOUNTED-STANDBY PHYSICAL VALID ORACLE_SID_STANDBYDATACENTERmanaged real-time apply !
Connected.show configuration
Configuration - ORACLE_SIDDR Protection Mode: MaxAvailability Databases: ORACLE_SID_PRIMARYDATACENTER - Primary database ORACLE_SID_STANDBYDATACENTER - Physical standby database Fast-Start Failover: DISABLED Configuration Status: SUCCESSWhy Fast-Start Failover: DISABLED ??? To be checked
Error 1031 received logging on to the standby PING[ARC1]: Heartbeat failed to connect to standby 'ORACLE_SID_STANDBYDATACENTER'. Error is 1031.
ORACLE_SID_STANDBYDATACENTER is the declared name of my standby server within /home/oracle/network/admin/tnsnames.ora.
show fast_start failover
Fast-Start Failover: ENABLED Threshold: 120 seconds Target: ORACLE_SID_STANDBYDATACENTER Observer: observer.mycompany.tld Lag Limit: 30 seconds Shutdown Primary: TRUE Auto-reinstate: TRUE Message 5150 not found; product=rdbms; facility=DGM (none) Message 5151 not found; product=rdbms; facility=DGM (unknown)
This is error-prone especially in the context of database engine upgrades.
Configuration - ORACLE_SIDDR Protection Mode: MaxPerformance Databases: ORACLE_SID_PRIMARYDATACENTER - Primary database Error: ORA-16820: fast-start failover observer is no longer observing this database ORACLE_SID_STANDBYDATACENTER - (*) Physical standby database Error: ORA-16820: fast-start failover observer is no longer observing this database Fast-Start Failover: ENABLED Configuration Status: ERROR
Fast-Start Failover: ENABLED Threshold: 120 seconds Target: ORACLE_SID_STANDBYDATACENTER Observer: observer.mycompany.tld
Looks like this was caused by fast_start failover being enabled before starting the Data Guard Broker.
Disabled.
System altered.
Enabled.
Configuration - ORACLE_SIDDR Protection Mode: MaxPerformance Databases: ORACLE_SID_PRIMARYDATACENTER - Primary database ORACLE_SID_STANDBYDATACENTER - Physical standby database Fast-Start Failover: DISABLED Configuration Status: SUCCESS
Enabled.
Configuration - ORACLE_SIDDR Protection Mode: MaxPerformance Databases: ORACLE_SID_PRIMARYDATACENTER - Primary database ORACLE_SID_STANDBYDATACENTER - (*) Physical standby database Fast-Start Failover: ENABLED Configuration Status: SUCCESS
Fast-Start Failover: ENABLED Threshold: 120 seconds Target: ORACLE_SID_STANDBYDATACENTER Observer: observer.mycompany.tld Lag Limit: 30 seconds Shutdown Primary: TRUE Auto-reinstate: TRUE Message 5150 not found; product=rdbms; facility=DGM (none) Message 5151 not found; product=rdbms; facility=DGM (unknown) Configurable Failover Conditions Health Conditions: Corrupted Controlfile YES Corrupted Dictionary YES Inaccessible Logfile NO Stuck Archiver NO Datafile Offline YES Oracle Error Conditions: (none)
enable fast_start failover
Error: ORA-16569: Data Guard configuration is not enabled Failed.
Configuration - ORACLE_SIDDR Protection Mode: MaxPerformance Databases: ORACLE_SID_PRIMARYDATACENTER - Primary database ORACLE_SID_STANDBYDATACENTER - Physical standby database Fast-Start Failover: DISABLED Configuration Status: DISABLED
Enabled.
Configuration - ORACLE_SIDDR Protection Mode: MaxPerformance Databases: ORACLE_SID_PRIMARYDATACENTER - Primary database ORACLE_SID_STANDBYDATACENTER - Physical standby database Fast-Start Failover: DISABLED Configuration Status: SUCCESS
sqlplus -s / as sysdba <<EOSQL alter system set dg_broker_start=true; set linesize 200 show parameter dg_broker_start EOSQL
System altered. NAME TYPE VALUE ------------------------------------ -------------------------------------------- ------------------------------ dg_broker_start boolean TRUE
switchover to 'standbyDatabase';
*Cause: The target standby database specified for the broker operation did not have all the redo data from the primary database. *Action: Confirm that the redo transport service on the primary database is functioning correctly by checking its status using either Enterprise Manager or the DGMGRL CLI SHOW DATABASE command. Reissue the broker command once all redo data is available on the target standby database.
Confirm that the redo transport service on the primary database is functioning correctly by checking its status using either Enterprise Manager or the DGMGRL CLI SHOW DATABASE command. https://docs.oracle.com/cd/B28359_01/server.111/b28294/log_transport.htm#BABDGGID Step 1 Determine the most recently archived redo log file. SELECT MAX(SEQUENCE#), THREAD# FROM V$ARCHIVED_LOG GROUP BY THREAD#; MAX(SEQUENCE#) THREAD# -------------- ---------- 39656 1 ==> on both sides
Step 2 Determine the most recently archived redo log file at each redo transport destination. on the primary : SELECT DESTINATION, STATUS, ARCHIVED_THREAD#, ARCHIVED_SEQ# FROM V$ARCHIVE_DEST_STATUS WHERE STATUS <> 'DEFERRED' AND STATUS <> 'INACTIVE'; DESTINATION -------------------------------------------------------------------------------- STATUS ARCHIVED_THREAD# ARCHIVED_SEQ# ------------------------------------ ---------------- ------------- /appli/oracle/ORACLE_SID/oraarch VALID 1 39656 ORACLE_SID_STANDBYDATACENTER VALID 1 39656 ==> The most recently archived redo log file should be the same for each destination. If it is not, a status other than VALID may identify an error encountered during the archival operation to that destination.
Step 3 Find out if archived redo log files have been received at a redo transport destination. on the primary : SELECT LOCAL.THREAD#, LOCAL.SEQUENCE# FROM (SELECT THREAD#, SEQUENCE# FROM V$ARCHIVED_LOG WHERE DEST_ID=1) LOCAL WHERE LOCAL.SEQUENCE# NOT IN (SELECT SEQUENCE# FROM V$ARCHIVED_LOG WHERE DEST_ID=2 AND THREAD# = LOCAL.THREAD#); THREAD# SEQUENCE# ---------- ---------- 1 39592 1 39593 1 39594 ... 1 39629 1 39630 1 39631 40 rows selected. ==> received up to the 39631 (?)
step 3b : gap ? SELECT * FROM V$ARCHIVE_GAP; THREAD# LOW_SEQUENCE# HIGH_SEQUENCE# ---------- ------------- -------------- 1 39074 39631 ==> this is a BAAAD thing :-(((
Step 4 Trace the progression of redo transmitted to a redo transport destination. https://docs.oracle.com/cd/B28359_01/server.111/b28294/trace.htm#g638947 on primary : SELECT name, type, value FROM v$parameter WHERE name=LOWER('log_archive_trace'); NAME -------------------------------------------------------------------------------- TYPE ---------- VALUE -------------------------------------------------------------------------------- log_archive_trace 3 0 ALTER SYSTEM SET LOG_ARCHIVE_TRACE=32; ALTER SYSTEM SET LOG_ARCHIVE_TRACE=8192; http://docs.oracle.com/cd/B28359_01/server.111/b28310/diag001.htm#ADMIN11261 ==> writes logs into the Automatic Diagnostic Repository (ADR) location specified by 'DIAGNOSTIC_DEST' ==> strings /home/oracle/admin/ORACLE_SID/dbs/spfileORACLE_SID.ora | grep -i 'diagnostic_dest' *.diagnostic_dest='/logiciels/oracle' SELECT name, type, value FROM v$parameter WHERE name=LOWER('diagnostic_dest'); NAME -------------------------------------------------------------------------------- TYPE ---------- VALUE -------------------------------------------------------------------------------- diagnostic_dest 2 /logiciels/oracle To find the ADR path, remember that the alert log is also in the ADR : ==> /logiciels/oracle/diag/rdbms/cochisto_pacy/ORACLE_SID/trace/alert_ORACLE_SID.log cd /logiciels/oracle/diag/rdbms/cochisto_pacy/ORACLE_SID/trace/ ll -srt *arc* watch -n1 -d 'ls -slt | head -30' total 805M 31M -rw-r----- 1 oracle oinstall 31M Jul 21 11:57 drcORACLE_SID.log 378M -rw-r----- 1 oracle oinstall 378M Jul 21 11:55 alert_ORACLE_SID.log tail -f drcORACLE_SID.log 07/21/2016 11:59:23 Found unresolvable gap to database ORACLE_SID_STANDBYDATACENTER. Warning: Property 'LogArchiveTrace' has inconsistent values:METADATA='0', SPFILE='0', DATABASE='8192' Data Guard Broker Status Summary: Type Name Severity Status Configuration ORACLE_SIDDR Warning ORA-16607 Primary Database ORACLE_SID_PRIMARYDATACENTER Error ORA-16810 Physical Standby Database ORACLE_SID_STANDBYDATACENTER Success ORA-00000
ORA-00119: invalid specification for system parameter LOCAL_LISTENER
ORA-00132: syntax error or unresolved network name 'LISTENER_FOOBAR'
LISTENER_FOOBAR = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = hostname)(PORT = 1521)) )
ORA-00119: invalid specification for system parameter LOCAL_LISTENER
ORA-00132: syntax error or unresolved network name 'LISTENER_FOOBAR'
(not sure if related, though).
Listener Parameter File /home/oracle/network/admin/listener.ora
Listener Log File /logiciels/oracle/diag/tnslsnr/serverName/listener_barbaz/alert/log.xml
<msg time='2016-07-21T09:01:30.389+02:00' org_id='oracle' comp_id='tnslsnr' type='UNKNOWN' level='16' host_id='serverName.acmecorp.com' host_addr='10.203.15.16'> <txt>WARNING: Subscription for node down event still pending</txt> </msg> <msg time='2016-07-21T09:01:30.389+02:00' org_id='oracle' comp_id='tnslsnr' type='UNKNOWN' level='16' host_id='serverName.acmecorp.com' host_addr='10.203.15.16'> <txt>21-JUL-2016 09:01:30 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=serverName.acmecorp.com)(USER=oracle))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=186647552)) * status * 0</txt> </msg>
SUBSCRIBE_FOR_NODE_DOWN_EVENT_LISTENER_BARBAZ=OFF
The listener name to specify is found in the path of the error log reporting the warning message.Cause: An attempt was made to shut down a standby database while media recovery was active. Action: Cancel media recovery to proceed with the shutdown.(SERIOUSLY?) Thanks guys for copying-pasting the output of oerr ora 16175, wouldn't have thought about that myself .
shutdown
This is the polite way of asking the database instance to stop. This waits until all user sessions are disconnected before actually stopping. It turns out that the "media recovery" processes (Data Guard processes actually) are not going to kill themselves, so the database instance will never be able to stop this way.This is specified via the audit_file_dest parameter. To get it :
NAME TYPE VALUE
----------------------- ---------- -------------------------------------------------------
audit_file_dest string /logiciels/oracle/diag/rdbms/mirosge_pacy/MIROSGE/adump
audit_sys_operations boolean FALSE
audit_syslog_level string
audit_trail string DB
*.audit_file_dest='/logiciels/oracle/diag/rdbms/oracle_sid_datacenter/ORACLE_SID/adump'
Indeed, there are 2 default values for the same parameter. Documentation may be confusing on that point (1, 2).
@
, which is a reserved character, used to introduce TNS references.
This is highly experimental. There _MAY_ be smarter ways to do so. Use at your own risk.
First, check for network problems and troubleshoot SQL*Net connectivity. Also, look in the alert.log file for any errors. Finally, test to see whether the server process is dead and whether a trace file was generated at failure time.
To resolve this issue with ORA-27101, you should be sure that ORACLE_HOME and ORACLE_SID are correct, and ORACLE_HOME should not have trailing slash : echo -e "ORACLE_HOME : '$ORACLE_HOME'\nORACLE_SID : '$ORACLE_SID'" ORA-27101 may indicate that the system was not able to find the shared memory realm. So, you could be receiving ORA-27101 because you tried to modify the database parameters such as SGA size. If this is something that you have done and feel this is why you are encountering ORA-27101, you can try to bring back the original parameters.
SQL*Plus: Release 11.2.0.3.0 Production on Mon Nov 3 15:15:25 2014 Copyright (c) 1982, 2011, Oracle. All rights reserved. Connected to an idle instance.