DOYENSYS Knowledge Portal

We Welcome you to visit our DOYENSYS KNOWLEDGE PORTAL : Doyensys Knowledge Portal

Monday, April 24, 2017

Unable To Connect From Oracle HTTP Server 12c To Oracle 12c Database. (Doc ID 2033730.1)
Error Receivedin browser:
"Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

Checked the log from $ORACLE_INSTANCE/diagnostics/logs/OHS/ohs1/ohs1.log
[2017-04-23T00:14:09.3209+05:30] [OHS] [ERROR:32] [OHS-9999] [core.c] [client_id: xx..xx.xx.x] [host_id: somehost] [host_addr: yy.yy.yy.yy] [tid: 140540902872832] [user: oracle] [ecid: 005JSN2R2USFw00Fzzx0g00005PV000001] [rid: 0] [VirtualHost: main]  MODPLSQL-000058: mod_plsql: HTTP-503 ORA-12505 ORA-12505: TNS:listener does not currently know of SID given in connect descriptor\n

-- 12c database are selected using service_names rather than a SIDS (service id) .

1. Go to $ORACLE_INSTANCE/config/OHS/ohs1/mod_plsql/ location and Backup the current dads.conf file.
2. Obtain the correct service_name from the Oracle Database Administrator. By default the service name and database name will be same.To confirm check the local listener.ora config file
3. Replace the PlsqlDabaseConnect string using the following syntax ensuring the correct service name is used from step 2. Also ensure the host and port number are correct.
“PlsqlDatabaseConnectString (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(Host=<database_host>)(Port=<database_port>))(CONNECT_DATA=(SERVICE_NAME=<service_name>))) TNSFormat”

4. Restart Oracle HTTP server.

No comments: