Unable to connect to DB using the SID
HI Forum,
I am unable to connect to DB using the SID i assigned using TOAD, but i am able to connect using the instance name.
My setup needs that i should use a common name to connect to the DB immaterial of which instance is up.
Can any one instruct me how to achieve this kind of setup.
Regards
Prakash
Hi Prakash,
1). Create a file called TestingLoop.java containing following code:
import java.sql.*;
public class TestingLoop {
public static void main(String[] s)throws Exception {
Class.forName("oracle.jdbc.driver.OracleDriver");
/* String url="jdbc:oracle:thin:@(DESCRIPTION= (LOAD_BALANCE=on)
(ADDRESS=(PROTOCOL=TCP)(HOST=a) (PORT=1521))
(ADDRESS=(PROTOCOL=TCP)(HOST=b)(PORT=1521))
(ADDRESS=(PROTOCOL=TCP)(HOST=c) (PORT=1521))
(CONNECT_DATA=(SERVICE_NAME=orcl)))"; */
String url ="jdbc:oracle:thin:@abc.us.oracle.com:23001:xyz";
for (int i=0; i<20; i++) {
try {
long x= System.currentTimeMillis () ;
Connection conn = DriverManager.getConnection(url,"scott","tiger");
long y= System.currentTimeMillis ();
System.out.println("Connection Succesful "+conn);
System.out.println("Connection time is "+(y-x)/1000+" ms");
Statement stmt =conn.createStatement();
ResultSet res= stmt.executeQuery(" select host_name from v$instance");
while(res.next()) {
System.out.println(res.getString(1));
stmt.close();
conn.close();
catch(Exception e) {
e.printStackTrace();
2). Compile the file using this command:
javac TestingLoop.java
3). Run the java program:
java TestingLoop
Single Virtual Ip doesn't make sense... does?
You will lose failover vip capabilities...
Regards,
Rodrigo Mufalani
Similar Messages
-
Unable to connect to OVD using the odsm
Hi All,
I was unable to connect to the OVD 11.1.1.3.0 installed using the ODSM, while i was able to connect to the OID happily.
I tried to connect to the OVD using the adminssl port (8899), non-ssl port (6501), ssl port (7501). I have the user id as cn=orcladmin. i was redirected to some Certificate Trust Validation pop-window and then it was throwing the error to check the log.
I cant figure out what might be the issue. please help me. i'm copying the content of the log file below.
[2012-04-16T22:10:42.891+05:30] [wls_ods1] [WARNING] [] [org.apache.myfaces.trinidadinternal.context.RequestContextImpl] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 0000JQw1lFf4io95nf5EiZ1FZ42L00005z,0] [APP: odsm#11.1.1.2.0] Could not find partial trigger viewerId from UIHierarchyViewer[UIXFacesBeanImpl, id=hv1] with the supported partialTriggers syntax. The partial trigger was found with the deprecated syntax. Please use the supported syntax.
[2012-04-16T22:10:42.906+05:30] [wls_ods1] [WARNING] [] [org.apache.myfaces.trinidadinternal.context.RequestContextImpl] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 0000JQw1lFf4io95nf5EiZ1FZ42L00005z,0] [APP: odsm#11.1.1.2.0] Could not find partial trigger cmdb1 from UIHierarchyViewer[UIXFacesBeanImpl, id=hv1] with the supported partialTriggers syntax. The partial trigger was found with the deprecated syntax. Please use the supported syntax.
[2012-04-16T22:10:43.625+05:30] [wls_ods1] [ERROR] [] [oracle.adfinternal.view.faces.config.rich.RegistrationConfigurator] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 0000JQw1lFf4io95nf5EiZ1FZ42L00005z,0] [APP: odsm#11.1.1.2.0] Server Exception during PPR, #56[[
javax.servlet.ServletException: com/octetstring/vde/admin/services/client/VDEAdminServiceSoapBindingStub
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at oracle.help.web.rich.OHWFilter.doFilter(Unknown Source)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:421)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:421)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: java.lang.NoClassDefFoundError: com/octetstring/vde/admin/services/client/VDEAdminServiceSoapBindingStub
at com.octetstring.vde.admin.services.client.ServerMgrServiceLocator.getVDEAdminService(ServerMgrServiceLocator.java:58)
at oracle.ldap.odsm.model.ovd.APServerProxy.connect(APServerProxy.java:248)
at oracle.ldap.odsm.model.ovd.APServerProxy.authenticateAs(APServerProxy.java:684)
at oracle.ldap.odsm.model.ovd.APServerProxy.authenticate(APServerProxy.java:286)
at oracle.ldap.odsm.model.ovd.APServerProxy.init(APServerProxy.java:216)
at oracle.ldap.odsm.model.ovd.APServerProxy.<init>(APServerProxy.java:198)
at oracle.ldap.odsm.model.ovd.OVDRoot.connectOVD(OVDRoot.java:185)
at oracle.ldap.odsm.ui.common.Connection.connect(Connection.java:120)
at oracle.ldap.odsm.ui.common.Visit.createConnection(Visit.java:663)
at oracle.ldap.odsm.ui.common.PopupItem._createConnection(PopupItem.java:1815)
at oracle.ldap.odsm.ui.common.PopupItem.alwaysAction(PopupItem.java:1763)
at sun.reflect.GeneratedMethodAccessor316.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1245)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:812)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:292)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.help.web.rich.OHWFilter.doFilter(Unknown Source)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
... 9 more
[2012-04-16T22:11:49.094+05:30] [wls_ods1] [NOTIFICATION] [DIP-10580] [oracle.dip] [tid: UpdateThread] [userId: <anonymous>] [ecid: 0000JQvv94D4io95nf5EiZ1FZ42L000036,0] [APP: DIP#11.1.1.2.0] [arg: (&(changenumber>=11222)(|(targetdn=*cn=Profiles,cn=Provisioning,cn=Directory Integration Platform,cn=Products,cn=OracleContext)(targetdn=*cn=event definitions,cn=directory integration platform,cn=products,cn=oraclecontext)(targetdn=*cn=object definitions,cn=directory integration platform,cn=products,cn=oraclecontext)))] changelog filter : (&(changenumber>=11222)(|(targetdn=*cn=Profiles,cn=Provisioning,cn=Directory Integration Platform,cn=Products,cn=OracleContext)(targetdn=*cn=event definitions,cn=directory integration platform,cn=products,cn=oraclecontext)(targetdn=*cn=object definitions,cn=directory integration platform,cn=products,cn=oraclecontext)))you need java connector
-
I am unable to connect my IPad to the internet via WiFi, when asked for a password then attempt to join I get the messag "unable to join the network" however if I use my laptop in the same physical locationand using similar procedures I am able to conect.?
What router are you using? make/model/version
What security type are you using? If it is WEP then symbolic (non hex) keys may be converted to hex in different ways by different operating systems. Is your laptop a Windows PC?
If you are using WEP then drop it and move to WPA2. WEP has been deprecated by the WiFi alliance since 2004 as insecure (it can be hacked in seconds). -
iPad 2 doesn't recognise my password for wifi. Unable to connect. Tried resetting the network,changed the wap settings,nothing. Pswd is 9 characters. MacBook and iPhone accepts the password, not my ipad 2
Hey brainmasala,
Thanks for using Apple Support Communities.
Sounds like you are not able to connect to a Wi-Fi network with your iPad. This article has a section for Unable to connect to a Wi-Fi network and the second article is the recommended network settings. If after these it still has the same issue you may want to restore the device to factory settings.
iOS: Troubleshooting Wi-Fi networks and connections
http://support.apple.com/kb/TS1398
iOS and OS X: Recommended settings for Wi-Fi routers and access points
http://support.apple.com/kb/HT4199
Use iTunes to restore your iOS device to factory settings
http://support.apple.com/kb/HT1414
Have a nice day,
Mario -
Unable to connect to internet via the proxy - Proxy set up OEM 12c
Windows server 2008 64 bit
OEM 12.1
I have to get agent software for Windows server 2003, and as far as I know the only way is through self update in OEM, is this the only way?
But when I input my Oracle support credentials I get an error :
Unable to complete network operation against My Oracle Support. Please check network connectivity to Oracle Support Site.
Proxy settings in EOM are set for https, but not sure about the realm, I input our damain address "company.corp"
test successful :
https://updates.oracle.com was tested successfully using the Proxy.
Go to set oracle support credentials error :
Unable to complete network operation against My Oracle Support. Please check network connectivity to Oracle Support Site.
In the emoms.log file :
2012-07-22 18:28:50,753 [EMUI_18_28_49_/console/admin/rep/proxy/server] ERROR core.patch logp.251 - [EM-01942] Unable to connect to internet via the proxy. Http Proxy - company:80. Destination URL - https://server:proxy/emd/main/. Protocol - https. Error Message - Cannot establish proxy connection: 502 Proxy Error ( The specified Secure Sockets Layer (SSL) port is not allowed. Forefront TMG is not configured to allow SSL requests from this port. Most Web browsers use port 443 for SSL requests. ).
java.io.IOException: Cannot establish proxy connection: 502 Proxy Error ( The specified Secure Sockets Layer (SSL) port is not allowed. Forefront TMG is not configured to allow SSL requests from this port. Most Web browsers use port 443 for SSL requests. )Please check the following section in
http://docs.oracle.com/cd/E24628_01/install.121/e24089/firewalls.htm#EMADV626
Enabling Oracle Management Service to Access My Oracle Support
Unless online access to the Internet is strictly forbidden in your environment, Oracle Management Service should be enabled to access My Oracle Support. This access is necessary to enable updates and patches to be downloaded, for example.
At minimum, the following URLs should be made available through the firewall:
aru-akam.oracle.com
ccr.oracle.com
login.oracle.com
support.oracle.com
updates.oracle.com
About the dontProxyfor Property
When you configure the Oracle Management Service or a Management Agent to use a proxy server, it is important to understand the purpose of the dontProxyFor property, which identifies specific URL domains for which the proxy will not be used.
For example, suppose the following were true:
You have installed the Oracle Management Service and several Management Agents on hosts that are inside the company firewall. These hosts are in the internal .example.com and .example.us.com domains.
You have installed several additional Management Agents on hosts that are outside the firewall. These hosts are installed in the .example.uk domain.
You have configured Enterprise Manager to automatically check for critical software patches on My Oracle Support.
In this scenario, you want the Oracle Management Service to connect directly to the Management Agents inside the firewall without using the proxy server. On the other hand, you want the Oracle Management Service to use the proxy server to contact the Management Agents outside the firewall, as well as the My Oracle Support site, which resides at the following URL:
http://support.oracle.com
The following properties will prevent the Oracle Management Service from using the proxy server for connections to the Management Agents inside the firewall. Connections to My Oracle Support and to Management Agents outside the firewall will be routed through the proxy server:
proxyHost=proxy42.example.com
proxyHost=80
dontProxyFor=.example.com, .example.us.com
PS: Cygwin has nothing to do with My Oracle Support connection. Cygwin is ONLY required for agent deployment using agent push from OMS. -
I am unable to load GRAPHIC files using the transaction SFP.
I am unable to load GRAPHIC files using the transaction SFP.
The error message says that there is no connection to the below given url.
http://<hostname:8000>/sap/bc/fp/
is it something like i have to activate this service in transaction sicf ?Try http://<hostname:8000>/sap/bc/fp/!
! at the end ..
Regards
Juan -
Error: unable to connect to database using user system. please check privil
Hi All,
i have 2 oracle databases in my system (ORCL,RR). i am able to connect both databases i sql prompt. but in ggsci prompt not able to connect rr database due to below error
dblogin userid system, password tiger.
Error: unable to connect to database using user system. please check privil
Can you please help me to connect RR database also in GGSCI promt.
Thanks
RajaDid you try with RR database tns name or sid while connecting ?
If No then try this ,
GGSCI (ATP) 6> DBLOGIN USERID SYSTEM@<tns alias name>
Password:
Successfully logged into database.
HTP
Annamalai. -
Error: Unable to connect to database using connection_pool
Hi experts
I have created repository and reports on my windows machine using ODBC , Now i have tranfered this to on unix with OCI, But when i am connecting to my dtabase it is showng the error:
Error: Unable to connect to database using connection_pool
Please suggest how to resolve this..Have you install the Oracle client in your Unix server?
-
ERROR: Unable to connect to any of the specified MySQL hosts.
Hi all,
I have run into an issue and not able to resolve it.
There was a requirement to connecting to a MySQL data source. For that I unknowingly added an entry in the "ODBC Data Source Administrator" ->
User DSN & System DSN
I was totally unaware that I am breaking my SP setup (Development). Now Central Admin site and all other sites have stopped working.
I tried repairing by re-running the config wizard but no use. Error I get is "An unexpected error has occurred." OR "Unable to connect to any of the specified MySQL hosts."
But when I try accessing other site, its showing an error from the "machine.config" file: >
Line 284: <siteMap>
Line 285: <providers>
Line 286: <add name="MySqlSiteMapProvider" type="MySql.Web.SiteMap.MySqlSiteMapProvider, MySql.Web, Version=6.9.6.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" connectionStringName="LocalMySqlServer" applicationName="/" />
Line 287: </providers>
Line 288: </siteMap>
Source File: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config
For record, I have already removed those entries from that User DSN & System DSN.
Still error persists.
If some has ANY IDEA how to resolve it... please help!
Regards, NayanCan you give us a description of what is happening? Errors form the Application and System Event Log, and/or ULS logs?
Trevor Seward
Follow or contact me at...
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs. -
Difference between using app server connection pooling and using the driver
Hi all,
How to get connection pooling with out application server and tomcat also?
What is the difference between using app server connection pooling and using the driver supported connection pooling?
Regards,
Muralimaybe the performance of App server pool is better than the JDBC pool,
for you don't know wether the implementation of the JDBC interface is good or bad. -
How can I open an AS400 connection w/o using the ODBC in the Control Panel
Hi.
Is it possible that i manipulate the ODBC settings in Windows NT using Java?
I've been using the Client Access ODBC Driver (32 bit) of IBM to connect to AS400 database. Normally i would just configure my DSN and input the default library inside the Server tab that i would be using . All was working perfectly. But i was informed that the default library would vary depending on the data inputed in the library database.
As in, in our SQL Server they have there a tbl_library where in lib_type is one of it's field. This(lib_type) is where they can specify which library my program would be opening. So in this case, I can't just manually configure my DSN library when retrieving data from AS400 because it would always vary.
Thank you very much for your time.
-marlin
ps.
Btw, i am doing a servlet for this connectivity.If you use the JDBC driver that's included in the AS/400 Toolbox for Java you don't need to use ODBC at all, you can access the AS/400 directly. See this link:
http://www-1.ibm.com/servers/eserver/iseries/toolbox/ -
My iphone 4s' screen is black, but it's still on and charging. I broke my lock screen button so I am unable to turn it off using the home button and lock button. Is there any other way my phone can restart or turn off ? Is my phone broken for sure?
Kbkohn wrote:
I am in tears right now because I entered all my 11month old sons milestones into my phone and now I have nothing I'm so upset and am hoping there is a way to get this information back.
Most intelligent people would not store such sensitive data on a device that could so easily be lost, stolen, or damaged. Even if they chose to do so, they would use the device as designed and regularly sync and backup that device as described in the User's Guide.
Have you done so? If you have, all of the data is either in iCloud or iTunes on your computer. Replace the device and restore the new iDevice with the backup of the old one. -
i am unable to zoom in/out using the touch pad; yesterday i could zoom in/out of website pages, pics, etc, now today it is not letting me; how do i fix this?
See Here > http://support.apple.com/kb/HT1212
-
Connecting my iPhone using the remote app.
I am trying to connect my iPhone using the remote app, nothing seems to work. I have been told to go to Preferences > Devices and allow iTunes to search for iPhone ect but there isn't this option when I go there?
You do not have to dock your iPhone to use an iOS remote app to control your Mac.
There are both Wifi and Bluetooth style iOS remote apps for both iPhone/iPod and iPad.
Apple makes the one you are using. I believe that Apple's app can use both WiFi and Bluetooth.
I use a very exceptional Wifi remote app on iOS that is called Rowmote Pro.
This app has a really good feature set, plus you can control other aspects of your Mac with it. -
Question
when I log into Firefox, the screen scrolls down and I have to use the side-bar to go back up to type my query into the 'search' window. How can I stop that and get Firefox to start with the 'search' window accessible? With thanks, PeterSee this. <br />
https://support.mozilla.com/en-US/kb/Firefox+hangs#Hang_at_exit
Maybe you are looking for
-
I've been writing a multi-threaded, non-blocking I/O game server and I'm kinda taking a break from hammering out code at the moment to analyze how efficient the server is. With 100-300 clients each transmitting data and receiving a proper response on
-
Hi, we have oracle database 11.2.0.3 (AIX), The database suddenly started increasing, is there a way to find the below answers regarding database. 1) Who has issued insert statements and loaded data 2) How much data is loaded into the tables 3) Which
-
I just finished my first- almost all- Aperture slideshow. I tried to do this slideshow using only Aperture- and I did come close- but there were a few things that sent me to other apps: I had to use Motion to flash eight slides in four seconds becaus
-
The Pages Full Screen option is the iPad screen!
I haven't heard anyone mention this, but I think Apple did something very smart with the last iteration of Pages as a set up to Pages for iPad. For those of us who dream of having a writing station as small and light as the iPad, the real question is
-
How do I customize the Guest Account in Lion
There is a discussion thread on how to customize the dock for the Guest account in Leopard <https://discussions.apple.com/message/6511435#6511435> but I do not think it will work in Lion. I would like to customize the desktop and dock for the Guest a