Error thrown while trying to connect the remote data base

Hello,
I am trying to connect the database(orcale 7) which is in the remote machine using Microsoft JDBC driver. But the following errors are thrown. If any one know how to solve this, pl let me throw some lite on this.
Errir message as/./.......................
java.sql.SQLException: [Microsoft][ODBC driver for Oracle][Oracle]ORA-12505: TNS:listener could not resolve SID given in connect descriptor
at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:4089)
at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:4246)
at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:1136)
at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:148)
at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:167)
at java.sql.DriverManager.getConnection(DriverManager.java:457)
at java.sql.DriverManager.getConnection(DriverManager.java:159)
at lucasCustomization.processmgmt.helper.EISConnector.getConnectEIS(EISConnector.java:24)
at wt.workflow.expr.WfExpression2570849.execute_ROBOT_EXPRESSION_(WfExpression2570849.java:27)
at java.lang.reflect.Method.invoke(Native Method)
at wt.workflow.definer.WfExpression.executeTransition(WfExpression.java, Compiled Code)
at wt.workflow.definer.WfExpression.execute(WfExpression.java, Compiled Code)
at wt.workflow.robots.WfExpressionRobot.run(WfExpressionRobot.java, Compiled Code)
at wt.workflow.engine.StandardWfEngineService.runRobot(StandardWfEngineService.java, Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at wt.queue.QueueEntry.execute(QueueEntry.java, Compiled Code)
at wt.queue.ProcessingQueue.execEntry(ProcessingQueue.java, Compiled Code)
at wt.queue.ProcessingQueue.execEntries(ProcessingQueue.java, Compiled Code)
at wt.queue.PollingQueueThread.run(PollingQueueThread.java, Compiled Code)
error..>java.sql.SQLException: [Microsoft][ODBC driver for Oracle][Oracle]ORA-12505: TNS:listener could not resolve SID given in connect descriptor
########################error ends...###############
And also i added i code for your reference
import java.util.*;
import java.sql.*;
public class EISConnector
public static String getConnectEIS() throws Exception
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
System.out.println("Connection3 :");
Connection con1=DriverManager.getConnection("jdbc:odbc:eiscon","scott","tiger");
System.out.println("statement2");
PreparedStatement stmt1=con1.prepareStatement("insert into tryout(toolnumber,toolname) values(?,?)");
stmt1.setString(1,doc.getNumber());
stmt1.setString(2,doc.getName());
System.out.println("st");
int i=stmt1.executeUpdate();
System.out.println("i :"+i);
System.out.println("End");
con1.close();
catch(Exception e)
e.printStackTrace();
System.out.println("error..>"+e);
return new String("End of Connection");
}

http://otn.oracle.com/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm#_59_
The thin drivers are classes12.zip/classes111.zip. classes12.zip being the most recent release. You can download it from
http://otn.oracle.com/software/tech/java/sqlj_jdbc/htdocs/winsoft.html
(the general download site is http://otn.oracle.com/software/tech/java/sqlj_jdbc/content.html )
Jamie

Similar Messages

  • An error occurred while trying to connect to the provider

    Hi Experts,
    I have written a custom connector to the UWL. This is first time I am working on this concept. After writting I was deployed the PAR into the portal and configured UWL settings. But When I check the UWL it is showing "An error occurred while trying to connect to the provider" in details it is showing " Time out occured. Time taken is more than 30 seconds"
    Can you please tell me what might be the problem.
    Thanks a lot

    Hi Xinjiang,
        Thank you for your reply. I am facing an issue when I Login and open 'Work Overview' screen the warning message shows as 'An error occurred while trying to connect to the provider' when I click the Detail button I am seeing 'Actioninbox' status 'timeout' message 'Time out occurred. Time taken is more than 30 seconds'. My requirement is to stop display this warning message. I have read many thread and some of them answer, I tried the below suggested thread but still i am facing the issue.. Your help will be really appreciated...
    /thread/770521 [original link is broken]
    Best Regards,
    Jr.SRM

  • An error occurred while trying to connect to the provider (UWL)

    Hi Experts,
    We are on SRM 7.0 SP05
    We are facing issue in UWL for approvers. If I log-in as approver in EP, am getting the below message.
    Warning: An error occurred while trying to connect to the provider. If I  click on the details of the warning
    Exception type:com.sap.netweaver.bc.uwl.connect.ConnectorException Message:Aug 18 13:28:05 BST 2010
    (Connector) :com.sap.portal.connectivity.ConnectivityRuntimeException:User is missing credentials for connecting to alias SAP_SRM. Contact your system administrator.
    I am not facing the above issue, If I use SAP_ALL profile to the user.....So, seems that there is some authorisation object missing for the approver role (Manager).
    Please advice
    Appreciate your help
    BR
    Siva

    The error that you are getting can be caused because of multiple reasons. If you have already checked the obvious , and I see multiple people responses in the forum. Here is my tip.
    Go ahead and check if the u201CGROUPu201D you specified in the system object matches to the group that is active/exists in u201CSMLGu201D in your backend system , and try once again.
    Thanks,
    Uday

  • Show "iCloud encountered an error while trying to connect the server", How to solve? Thanks

    Show "iCloud encountered an error while trying to connect the server", How to solve? Thanks

    Smae issue here.
    Started today June 20, any ideas?

  • An error occurred while trying to connect to a Web service, when InfoPath web enabled form loads.

    Hi Everyone,
    I am getting an error message: An error occurred while trying to connect to a web service, when my InfoPath form tries to load.  The last few days, it only spits this error message in the morning and around 12pm-1pm it resolves itself and the form loads
    fine the rest of the day, oddly enough. 
    A few things about my form:
    1). It is web enabled
    2). The form submits to a form library on the SP server
    3). I use the UserProfileService data connection in the form to auto-populate a few fields
    4). I use a udcx file with correct language stored in the root of the site collection in the data connection library
    5). The form has been working fine until a few days ago
    I noticed while in Central Administration, that the User Profile Service Synchronization is Stopped.  Not sure if this is causing some or all of the problem. If I need to start it I will need to contact my farm administrator to do this, since I do not
    have the service account information.
    Also, I looked thru the log files on the SharePoint server and found the following by searching for the Correlation ID shown when the error comes up, I won't put in everything just the important messages.
    Schema file was already loaded: BuiltInActiveXControls.xsd
    FormServer Partial Trust - Proxy operation invoked in the SHIM process.
    FormServer Partial Trust - Invoking proxy operation for Web service adapter failed with exception Operation is not valid due to the current state of the object. for Url=https://<SP URL>/_vti_bin/UserProfileService.asmx
    Data adapter failed during OnLoad: The custom code in the form cannot be run. This functionality may be deactivated on the server. For more information, contact the server farm administrator.
    The following query failed: GetUserProfileByName (User: , Form Name: Expense Report, IP: , Connection Target: <SP URL>/Data Connections/GetUserProfileByName.udcx, Request: , Form ID: urn:schemas-microsoft-com:office:infopath:Expense-Report:-myXSD-2014-04-11T21-06-32
    Type: DataAdapterException, Exception Message: The custom code in the form cannot be run. This functionality may be deactivated on the server.

    Hi B.,
    You are on the right track. I recommend that you first get the User Profile Synchronization Service started because that itself could be the root cause of the issue.
    If that doesn't fix it then focus your attention on the GetUserprofileByName data connection. I always use my secure store ID for this connection. I add the ID by editing the udcx file and then publishing it again.
    Hope this helps.
    Daniel Christian (MCTS)

  • An error occurred while trying to contact the radio tuning service

    I get this error message when trying to connect to the radio stations on itunes?  "an error occurred while trying to contact the radio tuning service"  My computer is definitely connected to the internet as I can stream from pandora and safari and mail work?  Any suggestions?

    I suggest you browse this forum.  This issue has been going on for at least 3 days now.  It happens to some part of the time, some for all the time, not at all to others.
    It's not clear what the issue is, or where it lies.  If it's something to do with Apple's servers they are not likely to discuss it.  There was an issue like this a few months ago with the weather widgets and people kept on posting with no news until one day it suddenly started working, again with no news.  If you wish to, you can report to Apple.
    http://www.apple.com/feedback/itunesapp.html
    There are other applications that let you listed to online radio if you are desperate.  Check www.pure-mac.com

  • Cannot submit sharepoint form due to error. An error occurred while trying to connect to a Web service. Please Help!

    An error occurred while trying to connect to a Web service.
    An entry has been added to the Windows event log of the server.
    Log ID:5567
    Correlation ID:4db21044-cbc4-4f2f-8653-d73e5496b891

    check the log file first to get detailed information, go to ULS log file, find the related Correlation ID, you will get the error message, the information you provided is less helpful to know this issue.
    Qiao Wei
    My blog:http://blog.goobol.com

  • An error occurred while trying to connect to a Web service

    In infopath 2013 getting current user through web service getting this error in the browser
    "An error occurred while trying to connect to a Web service"

    Hi Jithendar,
    If you can send the ULS log entries which has that Correlation ID, it would be more helpful.
    The text you send is only the ID of the entries and dont give any clue to us about your problem.
    Best regards,
    Mustafa Yılmaz
    Best Regards, Mustafa Yılmaz MCITP, MCPD | www.mustafa-yilmaz.org | www.sharepointciyiz.biz

  • I purchased the Adobe PDF Pack but it won't allow me to convert any files to pdf or combine multiple files to into 1 pdf form. It keeps saying "Error occurred while trying to access the file". WHY

    I purchased the Adobe PDF Pack for $7.50/month (or $89.99/yr) but it won't allow me to convert any files to pdf or combine multiple files into 1 pdf form. It keeps saying "An error occurred while trying to access the service". WHY is this happening & How can I fix it?

    Hi hpmg,
    It seems you are trying to access the service via Adobe Reader. Make sure you are signed in with your Adobe ID. Is Reader updated to the latest patch v 11.0.09?
    It might be possible that a firewall or antivirus might be breaking the connectivity from Reader to the server.
    Try accessing the service from the browser: https://cloud.acrobat.com/exportpdf  and check if that works for you.
    Regards,
    Rave

  • DBD: An error occurred while trying to load the provider for transport odbo

    Hello,
    I am trying to create universe on top of BPC cube using 'Business Planning and Consolidation' option under SAP Business Objects in Universe Designer ; however when creating connection I am getting following error messgae
    "DBD: An error occurred while trying to load the provider for transport odbo. Failed to load library . System error message: The specified module could not be found."
    I am using BO 3.1
    Is anyone aware of this issue? Kindly assist.
    Thanks

    We were having the same problem, found this note in the SAP KB
    https://websmp130.sap-ag.de/sap/support/notes/1321459
    Mike

  • Error - DBD: An error occurred while trying to load the provider for ...

    Error - DBD: An error occurred while trying to load the provider for transport odbo.
               Failed to load library. System error message: The specifed module could not be found.
    While I am trying to create connection in universe designer to MS Analysis Services 2005.
    Thank you - Ashok
    Edited by: akojha on Jan 4, 2010 5:27 PM

    We were having the same problem, found this note in the SAP KB
    https://websmp130.sap-ag.de/sap/support/notes/1321459
    Mike

  • An error occured while trying to access the base station

    I know enough to get myself in to trouble...but not enough to get myself out
    I am connected to my wireless network. I know what my WEP is. There is a different password when my iPhone connects to the wifi but I know that too.
    I am trying to get in to configure the base station (want to do a port forward).
    I downloaded the Airport Extreme Admin Utility for Windows. My network is listed on the left hand side. I click on configure and get prompted for a password. I have entered all passwords under the sun but continue to get the following error:
    An error occurred while trying to access the base station. Make sure your network connection is valid and try again. Error code -4
    Unable to reset the base station as if internet goes down or new passwords have to be changed on all computers then wonderfully patient flatmates may not continue to be so wonderful and patient.
    2 questions
    Is this a password error or something else?
    Is there any other way of getting in so I can do a port forward with minimum disruption to internet connection for my flatmates?
    Any help would be most appreciated

    Im a bit disappointed. The main reason I went with Apple gear is because people told me "there are less problems" and its "more reliable". I have yet to see the difference with Windows based equipment and Apple gear. I have owned 2 Ipods, an Airport Extreme and an Airport Express. I have had more problems with these than my PC based stuff. Please tell me I am wrong.

  • DBD: An error occurred while trying to load the provider for transport sap.

    Hi,
    I just installed the BO XI 3.1 SP2 & SAP integration KIT 12.0 and could able to import all the roles from SAP client in BO CMC.But when i am trying to create new Universe & creating a connection to SAP it is throwing an error " DBD: An error occurred while trying to load the provider for transport sap.System error message:The specified module could not be found ".
    I even applied FIX packs 1.7 & 1.8 for both BOXI 3.1 & SAP Integration KIT,but still throwing the same error.
    Could any please help me out in this issue.
    Thanks in advance,
    Sanjay

    Hi,
    this looks like a Bug:
    Check SAP Note - 1365062
    I would recommend installing SP2 for BOXI 3.1
    Regards
    -Seb.

  • Content Library Explorer error -error occurred while trying to read the package metadata (can't find package in console)

    I have SCCM 2012 SP1 recently upgraded to R2. I'm currently setting this up to migrate my production 2007 site. However, I'm trying to use Content Library Explorer on my DP's. I have 3 dps. DP2 connects fine but when i try and connect to DP1 +3 i get
    the following error: An error occurred while trying to read the package metadata. The package
    PackageID is invalid and must be redistributed from the Configuration Manger console.
    Now i can't find any trace of this at all in the console. In the SMSPackagesHist table i can see the package ID and the deleted time was 29-07-2013. This most likely was me trying to create software updates back last year when i initially setup the site.
    The package is not listed as content on any of the 3 DPs and i can't find any trace of it at all in the console.
    I'm not very familiar with 2012, so not sure what I've done.
    Any help or advice appreciated.
    Thanks
    Jane

    Hi Torsten,
    thanks for this. I did a search of the WMI key and found this document: http://blogs.technet.com/b/configmgrteam/archive/2012/05/07/troubleshooting-content-mismatch-warnings-on-a-distribution-point-in-system-center-2012-configuration-manager.aspx (does
    this mean it is supported?)
    however, on those 2 DP's in that class, the suspect package ID is not listed!???
    Any more ideas?
    Many thanks
    Jane

  • An error occurred while trying to start the Windows Deployment Services server

    After rebooting the server, I cannot start the Windows Deployment Services anymore.
    It worked perfectly before the reboot. When starting it manually these errors appear in the event log:
    The Windows Deployment Services Server service terminated with service-specific error 1460 (0x5B4).
    An error occurred while trying to initialize multicast manager. Windows Deployment Services server will be shutdown.
    Error Information: 0x5B4
    An error occurred while trying to start the Windows Deployment Services server.
    Error Information: 0x5B4
    This is on server standard beta 3.

    I have removed the server from the WDS, then I have uninstalled the role, rebooted, reinstalled the role.
    When I started the WDS the server was back in there, but when I wanted to start the service I got the message "the windows deployment services configuration is corrupt". I have triggered these commands to reset this:
    Code Snippet
    wdsutil /Verbose /Progress /Uninitialize-Server
    Windows Deployment Services Management Utility [Version 6.0.6001.16510]
    Copyright (C) Microsoft Corporation. All rights reserved.
    Tearing down server...
    == Original server operational mode: Native ==
    -> Resetting setup state
    -> Disabling and resetting Windows Deployment Services services
    -> Removing server BINL SCP
    -> Removing Windows Deployment Services share at \\LH-AJGG6OZWH9Z4.longhorn.offi
    ce\REMINST
    == Final server operational mode: Not Configured ==
    The command completed successfully.
    Then i did this command, but again it failed to start at the end.
    Code Snippet
    C:\Windows\system32>wdsutil /Verbose /Progress /Initialize-Server /REMINST:"c:\R
    emoteInstall"
    Windows Deployment Services Management Utility [Version 6.0.6001.16510]
    Copyright (C) Microsoft Corporation. All rights reserved.
    Setting up server...
    -> Creating Windows Deployment Services installation tree
    ---> Creating Windows Deployment Services installation root at \\LH-AJGG6OZWH9Z4
    .longhorn.office\c$\RemoteInstall
    ---> Creating Windows Deployment Services share at \\LH-AJGG6OZWH9Z4.longhorn.of
    fice\REMINST
    ---> Creating Windows Deployment Services folder \\LH-AJGG6OZWH9Z4.longhorn.offi
    ce\REMINST\Images
    ---> Creating Windows Deployment Services folder \\LH-AJGG6OZWH9Z4.longhorn.offi
    ce\REMINST\Boot
    ---> Creating Windows Deployment Services folder \\LH-AJGG6OZWH9Z4.longhorn.offi
    ce\REMINST\Boot\x86\Images
    ---> Creating Windows Deployment Services folder \\LH-AJGG6OZWH9Z4.longhorn.offi
    ce\REMINST\Boot\ia64\Images
    ---> Creating Windows Deployment Services folder \\LH-AJGG6OZWH9Z4.longhorn.offi
    ce\REMINST\Boot\x64\Images
    ---> Creating Windows Deployment Services folder \\LH-AJGG6OZWH9Z4.longhorn.offi
    ce\REMINST\Boot\Fonts
    ---> Creating Windows Deployment Services folder \\LH-AJGG6OZWH9Z4.longhorn.offi
    ce\REMINST\Tmp
    ---> Creating Windows Deployment Services folder \\LH-AJGG6OZWH9Z4.longhorn.offi
    ce\REMINST\Mgmt
    ---> Creating Windows Deployment Services folder \\LH-AJGG6OZWH9Z4.longhorn.offi
    ce\REMINST\WdsClientUnattend
    ---> Creating Windows Deployment Services folder \\LH-AJGG6OZWH9Z4.longhorn.offi
    ce\REMINST\Templates
    -> Installing Windows Deployment Services files
    ---> Installing system files
    ---> Installing boot files for x86
    ---> Installing boot files for ia64
    ---> Installing boot files for x64
    -> Updating registry
    -> Configuring the TFTPD service
    -> Configuring BINL SCP
    Enabling Windows Deployment Services services...
    Starting Windows Deployment Services services...
    An error occurred while trying to execute the command.
    Error Code: 0x41D
    Error Description: The service did not respond to the start or control request in a timely fashion.
    Anyone have an idea what could be the cause? I found this additional error in the event log, but distributed file system hasn't been installed since the beginning.
    DFS could not access its private data from the Active Directory. Please manually check network connectivity, security access, and/or consistency of DFS information in the Active Directory. This error occurred on root REMINST.

Maybe you are looking for

  • How to get the last time a record was modified or created ?

    Is there a way (hidden system fields for example, system view, other ?) to get the last time a record of a table was modified or the date it was created. Thanks for any help. Stiphane CAMPION

  • Office 2013 Home and Business License Compatability with Windows Server 2012 R2

    Are there any license issues with installing Office 2013 Home and Business on Server 2012 R2 operating system?  I am having inconsistent issues installing this software on a server running this operating system.  The Office software is not being accc

  • Easy setup / project and timeline settings

    Hello, I have a question about what settings I should use to edit the following type of clips I recorded. 1280x720 29.92 H.264 48.0 Khz - 32-bit Floating Point audio format Square pixel asoect This is what comes up in FCP. If I just view the clip in

  • Time value not at all or in the wrong way send to the BAPI Trip Create From

    Hi @ all, I try to call a BAPI by sending besides a couple of other parameters, which are working fine, two times values. Those times are required for creating a (Business-) Trip within SAP. This BAPI requests the time values in the format time (E).

  • BI Landscape issue

    Hi all, I have to make a BI demo to convince my collegues to migrate from Business object to BI. At the moment i can't ask someone to install me a dedicated BI server so i'm working on my developpement ECC6 server. This ECC6 install was a standard on