0% found this document useful (0 votes)
32 views4 pages

11gR2 DBCA Can Not Connect

Uploaded by

Antonio
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views4 pages

11gR2 DBCA Can Not Connect

Uploaded by

Antonio
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

3/12/24, 10:33 Document 1352890.

1
Copy right (c) 2024, Oracle. A ll rights reserv ed. Oracle Confidential.

11gR2 DBCA Can not Connect to Database/Instance in Multiple Listener Environment (Doc ID
1352890.1)

In this Document

Symptoms
Changes
Cause
Solution
References

APPLIES TO:

Oracle Database Configuration Assistant - Version 11.2.0.1 and later


Information in this document applies to any platform.

SYMPTOMS

11gR2 Grid Infrastructure/RAC with multiple listeners on different ports, dbca fails to connect to database with the
following symptoms:

Screen error:

Connection to the database cannot be established because the listener could be down. Please make sure
that the service is registered with a listener and the listener is up.

Connection to the database failed. Please make sure that service "<HOSTNAME1>-vip:1521:<SID>" is
registered with the listener, user name "sys" has SYSDBA privilege, password is correct and then try
again

dbca trace in $ORACLE_BASE/cfgtoollogs/dbca

[AWT-EventQueue-0] [ 2011-02-03 08:49:00.866 EST ]


[HADatabaseUtils.getDefaultListenerConnectString:1865] inside getDefaultListenerConnectString :
ConnectString : <HOSTNAME1>-vip:1521:<SID>
[AWT-EventQueue-0] [ 2011-02-03 08:49:00.866 EST ] [DatabaseListPage.validate:753] setting connect
service <HOSTNAME1>-vip:1521:<SID>
[AWT-EventQueue-0] [ 2011-05-25 09:37:44.356 PDT ] [DatabaseListPage.validate:759]
DatabaseListPage: localInstanceName=<SID>
[AWT-EventQueue-0] [ 2011-05-25 09:37:44.356 PDT ] [Verifier.validateCredentials:451] Verifier:
service = <HOSTNAME1>-vip:1521:<SID>
[AWT-EventQueue-0] [ 2011-05-25 09:37:44.358 PDT ] [Verifier.validateCredentials:452] Verifier:
bRemote = true
[AWT-EventQueue-0] [ 2011-05-25 09:37:44.358 PDT ] [Verifier.validateCredentials:453] Verifier: err
after calling getUserNameError function = null
[AWT-EventQueue-0] [ 2011-05-25 09:37:44.359 PDT ] [Verifier.validateCredentials:463] Verifier: err
after calling getPswdError function = null
[AWT-EventQueue-0] [ 2011-05-25 09:37:44.359 PDT ] [Verifier.validateCredentials:476] Verifier: err
after calling getServiceError function = null
May 25, 2011 9:37:44 AM oracle.jdbc.driver.OracleDriver registerMBeans
WARNING: Error while registering Oracle JDBC Diagnosability MBean.
java.security.AccessControlException: access denied (javax.management.MBeanTrustPermission register)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:568)
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=82si7qkf2_338&id=1352890.1 1/4
3/12/24, 10:33 Document 1352890.1
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.checkMBeanTrustPermission(DefaultMBeanServerIntercepto
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:335)
at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:497)
at oracle.jdbc.driver.OracleDriver.registerMBeans(OracleDriver.java:342)
at oracle.jdbc.driver.OracleDriver$1.run(OracleDriver.java:199)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.jdbc.driver.OracleDriver.<clinit>(OracleDriver.java:195)
at oracle.sysman.vdb.VdbSessionFactory.construct(VdbSessionFactory.java:532)
at oracle.sysman.vdb.VdbSessionFactory.<init>(VdbSessionFactory.java:434)
at
oracle.sysman.assistants.dbca.backend.ServerObjectFactory.getSqlEngine(ServerObjectFactory.java:133)
at oracle.sysman.assistants.dbca.backend.DatabaseAttributes.<init>(DatabaseAttributes.java:158)
at oracle.sysman.assistants.dbca.backend.Verifier.validateCredentials(Verifier.java:494)
at oracle.sysman.assistants.dbca.ui.DatabaseListPage.validate(DatabaseListPage.java:768)
at oracle.sysman.assistants.util.wizard.WizardPageExt.wizardValidatePage(WizardPageExt.java:214)
at oracle.ewt.wizard.WizardPage.processWizardValidateEvent(Unknown Source)
at oracle.ewt.wizard.WizardPage.validatePage(Unknown Source)
at oracle.ewt.wizard.BaseWizard.validateSelectedPage(Unknown Source)
at oracle.ewt.wizard.BaseWizard.doNext(Unknown Source)
at oracle.sysman.assistants.util.wizard.WizardExt.doNext(WizardExt.java:265)
at oracle.ewt.wizard.BaseWizard$Action.actionPerformed(Unknown Source)
at oracle.ewt.button.PushButton.processActionEvent(Unknown Source)
at oracle.ewt.button.PushButton.processEventImpl(Unknown Source)
at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
at oracle.ewt.button.PushButton.activate(Unknown Source)
at oracle.ewt.lwAWT.AbstractButton.processMouseReleased(Unknown Source)
at oracle.ewt.lwAWT.AbstractButton.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Component.java:5282)
at java.awt.Container.processEvent(Container.java:1966)
at oracle.ewt.lwAWT.LWComponent.processEventImpl(Unknown Source)
at oracle.ewt.button.PushButton.processEventImpl(Unknown Source)
at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Component.java:3984)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3819)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1791)
at java.awt.Component.dispatchEvent(Component.java:3819)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
[AWT-EventQueue-0] [ 2011-05-25 09:37:44.948 PDT ] [Verifier.validateCredentials:511] SID given in
connect descriptor could not be resolved

In this example instance name is <SID> and registered to listener_<SID> (port 1529) only:

SQL> show parameter local_listener


--------------------------------------
local_listener string (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=
<HOSTNAME1>-vip)(PORT=1529))))

Two listeners LISTENER(port 1521) and LISTENER_<SID>(port 1529)

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=82si7qkf2_338&id=1352890.1 2/4
3/12/24, 10:33 Document 1352890.1

$GRID_HOME/bin/crsctl stat res -t


..
ora.LISTENER.lsnr
ONLINE ONLINE <HOST1>
ONLINE ONLINE <HOST2>
ora.LISTENER_<SID>.lsnr
ONLINE ONLINE <HOST1>
ONLINE ONLINE <HOST2>

$GRID_HOME/bin/lsnrctl status listener


..
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=XX.X.X.AA)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=XX.X.X.BB)(PORT=1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "+ASM1", status READY, has 1 handler(s) for this service...

$GRID_HOME/bin/lsnrctl status listener_racdb


..
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_RACDB)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=XX.X.X.AA)(PORT=1529)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=XX.X.X.BB)(PORT=1529)))
Services Summary...
Service "<SID>" has 1 instance(s).
Instance "<SID1>", status READY, has 1 handler(s) for this service...
Service "<SID>XDB" has 1 instance(s).
Instance "<SID1>", status READY, has 1 handler(s) for this service...

CHANGES

CAUSE

In 11gR2, a database must register to default listener in GRID_HOME, the behaviour is expected as per the following
document:

Oracle Real Application Clusters Administration and Deployment Guide


11g Release 2 (11.2)

Overview of Oracle RAC Installation and Database Creation

SOLUTION

The fix is to register instance to default listener in GRID_HOME on top of the listeners it's currently registered to.

SQL> alter system set local_listener='(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=


<HOSTNAME1>-vip)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=<HOSTNAME1>-vip)(PORT=1529))))'
sid='<SID1>';

REFERENCES
BUG:12591510 - DBCA CAN NOT CONNECT TO INSTANCE ON OTHER PORT
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=82si7qkf2_338&id=1352890.1 3/4
3/12/24, 10:33 Document 1352890.1

Didn't find what you are looking for?

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=82si7qkf2_338&id=1352890.1 4/4

You might also like