Error trying to connect via jdbc

I'm trying to connect via jdbc driver from a java application to a remote db. The code is quite simple
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
Connection conn = DriverManager.getConnection
("jdbc:oracle:thin:@dbhost:orcl", "user", "password");
in my CLASSPATH I have the ojdbc14.jar file
When I run this program I get the following error:
Exception in thread "main" java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:334)
at oracle.jdbc.ttc7.TTC7Protocol.handleIOException(TTC7Protocol.java:366
8)
at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:353)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:371)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
va:551)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:351)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at Test.main(Test.java:12)
Please be aware of the following facts:
1) sqlplus from the same machine has no problem connecting to the db
2) there is no firewall or router between the client and the server
3) As host name I've tried the fqdn (resolved by the DNS), a name I've set up in /etc/hosts, the mere IP address
4) Checking with tcpdump, I've verified that NO network packet actually leaves the client, so the problem completely lies there.
Has anyone some good idea why this happens?

Make sure you are providing correct hostname and listener port number

Similar Messages

  • HT1212 IPAD is Disabled, tried to connect via itunes but get error "iTunes could not connect to the [device] because it is locked with a passcode. You must enter your passcode on the [device] before it can be used with iTunes."

    IPAD is Disabled, tried to connect via itunes but get error "iTunes could not connect to the [device] because it is locked with a passcode. You must enter your passcode on the [device] before it can be used with iTunes."

    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tb
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    Saw this solution on another post about an iPad in a school enviroment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just cancelling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
     Cheers, Tom

  • I'm having trouble with back to my MAC.  I had everything working on my home wifi network but now I am at my daughter's house and trying to connect via a verizon hotspot wifi connection.  I'm wondering if the Verizon hookup is a problem.

    I'm having trouble with back to my MAC.  I had everything working on my home wifi network but now I am at my daughter's house and trying to connect via a verizon hotspot wifi connection.  I'm wondering if the Verizon hookup is a problem.

    I finally figured it out.  Needed to update her Airport firmware and allow guest access, and also changed Sharing preferences to Allow Access for All Users.

  • "Error" Trying to connect to.......

    "Error" trying to connect to Infinitum9342
    This message appears since i installed the update of airport for my Macbook C2D when trying to connect to the internet. (my litlte internet box)
    I dont know how to name that thing in english, so i will just describe it, is a litle box, where i can connect ethernet cables or where i can connect wifi devices (such as my mac) rith now i just plug a ethernet cable to my macbook so i can get to the internet, but i loved using wi-fi, it just worked maravously for the past months in this mac, but now with the new update is all gone...and i dont know what to do!!!, the problem will be the next week
    because i dont know if my computer will connect on other wifi connections (such as the one that is in my school, or work, or public places) and i need to use it for work and stuff.... and i cannot take a thernet cable everywhere, and i dont think there are public places to just connect a ethernet cable.
    SO has anyone found a soultion for this kind of error? before the problem i used the ten digits (WAP) password of my "litle internet box" to connect but it dosnt works anymore.
    Or can i just go back to the previous update of airport? or what can i do???
    HELLLPPPPPPP!!!!!!!!!
    Thanks a lot

    well, WEP requires either a 5 or 13 character ASCII-password, or a 10 or 26 character hexadecimal password. WPA and WPA2 can take just about any password.
    You could temporarily try disabling all encryption just to see if it works. Then hit the manual for your wireless router and see if you can get wpa2,wpa or wep working.
    Good luck,
    Martin

  • Chat gives error" Error trying to connect to the Server. The Server is not available, please try again later"

    I have installed the chat vu and the chat portal server. All the VU's are but still when i start the chat (ip address on the usl) and fill all the credintials, i get the error "Error trying to connect to the Server. The Server is not available, please try again later"
    I have tested the connection in the IIS ChatVU  and it is ok.
    Please guide !!!
    Thanks and Regards
    Rohit

    Hi Rohit,
    Did you change the \ChatAS\web.config file with the right IP address of you Chat Portal VU?
    For your referente check page 116 (Internal Chat Client) from "SAP BCM 7 SP5 Basic Installation Example" document.
    Regards,
    Heber Olivar

  • Icloud encountered an error trying to connect to the server.

    When I try to sign in to my iCloud through iCloud.com I get this error: "icloud encountered an error trying to connect to the server.". However, at the same time I can  login with my different Apple IDs. It seems to me the problem is with this account. For sure I have already verified my account and I enter the correct password
    For further info, My iMac also cannot sync anything with the cloud. Meaning that, Also Im not able to manage my iCloud in system preference neither.
    Does anyone have any idea?! Could you please help me out if you know whats wrong?

    If it only does it at work, then the most likely reason is that your work network is blocking it, or one of the servers iCloud connects to.
    Have you asked the IT people at work? Checked it on another computer at work?

  • How to prevert 2 computers from always trying to connect via bluetooth, how to prevert 2 computers from always trying to connect via bluetooth

    I just bought my wife a iMac. Now her iMac and my Macbook Air are always trying to connect via bluethooth. I use a bluetooth mouse and she has the bluethooth keyboard and trackpad, so turning bluetooth off is not the best answer.
    Thanks

    What's the problem?  In theory a BT device can only pair with one machine at a time.

  • TS3694 I keep getting the errors 12001 and 11222. Anyone out there know why I get these errors trying to connect to the iTunes store?

    I keep getting the errors 12001 and 11222. Anyone out there know why I get these errors trying to connect to the iTunes store?

    http://manuals.info.apple.com/en_US/NewtonProgrammerRef20.PDFError12001
    Error 11222
    http://support.apple.com/kb/TS3297

  • Nokia E5 Ovi Mail keeps trying to connect via pack...

    My Nokia E5 Ovi Mail keeps trying to connect via packet data rather than wifi.. I have tried to go into the Mailbox setting and into Advanced malib.setting and changed it to user-defined with one wifi but when I quit the mailbox and go back again, I find that it aotomaticly recovered the setting. Can any body help me to fix it? I also tried to set it to the point I defined by Smartconnect but it doesn't help ether... Thanks!

    @mana_g
    Welcome to the forum!
    Is your E5 network branded variant or generic SIM free version?
    Happy to have helped forum with a Support Ratio = 42.5

  • Connecting via JDBC (thin) to 8i -- Error

    Hi --
    I'm trying to connect to a database on NT (resides on my
    workstation) and I get "Connecttion Reset by Peer"
    I'm using Oracle thin driver and db version is 8.1.5 for NT.
    TIA
    Ashish
    null

    Ashish (guest) wrote:
    : Hi --
    : I'm trying to connect to a database on NT (resides on my
    : workstation) and I get "Connecttion Reset by Peer"
    : I'm using Oracle thin driver and db version is 8.1.5 for NT.
    : TIA
    : Ashish
    a jdbc thin connection requires a tcp/ip listenrer to be active
    on the "server" machine.
    in this case it's also your "client" pc.
    null

  • Code 31 Error / Playbook not connecting via USB

    My Setup:
    Windows 8 Pro x64
    AMD FX 3.1Ghz
    I'm trying to connect my 64gb Playbook running OS version 2.1.0.1526 to my computer via USB.
    So, I've tried atleast 3 different things from various other posts.
    - Updating drivers  ( I bought the driverupdate.net package last night )
    - Allowing ports 80 and 443 then again by disabling 80 and 443
    - Uninstalling device manager / reinstalling / rebooting / restarting the PB 
    - Turned off wireless connections on the PB
    The worst part is, is that the Desktop Manager software sees that the PB is connected to the computer. It shows up with my PIN # etc. but it still says Connect the device. Also the Playbook itself says that it is connected to the computer. So frusterating!!! 
    I click connect the device and in about 10 seconds the program goes into (Not Responding) and 10 seconds after that I get the error - "Blackberry desktop software can't communicate with the connected device"
    I have had the PB connect wirelessly with my computer but the file transfer speeds are terrible and inconsistent. Thank you for taking the time to read this and hopefully lend any information or tips.
    Cheers

    I FOUND THIS, TRY IT:
    http://forums.crackberry.com/blackberry-playbook-os-f228/driver-error-blackberry-desktop-windows-8-p...

  • Error trying to connect to DB

    when trying to connect to a mysql database I get the
    following error in Coldfusion:
    Connection verification failed for data source: zipcodes
    java.sql.SQLException: Communication failure during
    handshake. Is there a server running on 127.0.0.1:3306?
    The root cause was that: java.sql.SQLException: Communication
    failure during handshake. Is there a server running on
    127.0.0.1:3306?
    Does anyone know why this is happening?

    What version of ColdFusion and MySQL are you trying to use?
    Ken Ford
    Adobe Community Expert - Dreamweaver
    Fordwebs, LLC
    http://www.fordwebs.com
    "MidOhioIT" <[email protected]> wrote in
    message
    news:ftm12n$sua$[email protected]..
    > Ken,
    > Thanks for your help. I am new at coldfusion so don't be
    afraid to state
    > the
    > obvious... I now get this error:
    >
    > Connection verification failed for data source: zipcodes
    > java.sql.SQLException: No suitable driver available for
    zipcodes, please
    > check
    > the driver setting in resources file, error: null
    > The root cause was that: java.sql.SQLException: No
    suitable driver
    > available
    > for zipcodes, please check the driver setting in
    resources file, error:
    > null
    >
    > This is the settings that I have in literal text:
    >
    CF DATA SOURCE NAME: zipcodes
    >
    JDBC URL: jdbc:mysql://127.0.0.1:3306/zipcodes
    >
    DRIVER CLASS: com.mysql.jdbc.Driver
    >
    USER NAME: zip_user
    >
    PASSWORD: *****
    >

  • Error trying to connect Portal 7.03 with SAP R/3

    Hi everyone,
    We're trying to connect the SAP Portal 7.03 with any SAP R/3 transaction.
    We're connecting with the option: System Management - Support - SAP Application - SAP Transaction and we select any transaction, but we're getting the next error:
    Content pass of application integrator failed.
    Component name: u2018com.sap.portal.appintegrator.sap.transactionu2019,
    Top layer: u2018Transaction/DragAndRelateLlayeru2019,
    Producer ID (FPN): 'null',
    System Alias: u2018SAP_QASu2019
    Application URL u2018:///sap (ZT00T1NPU3VJN2p1VHNHUWs2NHIyUIFnLS1ZRypKSTNxQ3ZqeG pWWU1Zc0s3TGhRLS0=) /bc/gui/sap/its/webguiu2019 is not valid! please check the protocol and host entries for system 'SAP_QAS'.
    Does anybody knows why we're getting this?
    We appreciate your help!
    Edited by: vemontoya on Feb 6, 2012 5:48 PM

    Hi,
    Unfortunately the status - "System waiting for something" is very vague. There could be a lot of things that you might have to look into.
    1. Are you able to log into the ECC system? If yes, you may want to activate the webgui related services. If you are running it for the first time, you might have to run the program - SIAC_PUBLISH_ALL_INTERNAL
    2. you may also want to look at the user with which you log in - does the user have authorization to run the transaction.
    3.  Check your system object properties if all the system properties - client, port etc. are specified correctly.
    In short, there could be a lot of possibilities of what the problem could be, although the real problem may be really small. If you can post something more specific, I will be able to help you.
    Hope this helps
    Prathamesh

  • Connection timeout error trying to connect to wireless network

    Going nuts...
    I have my Time Capsule plugged into an outlet that runs back to my switch (Netgear) which in turn goes into my modem (AT&T uverse).
    (the switch runs out to about 6 ethernet outlets in my house)
    Everything was working grand until I screwed something up, no idea what, of course!
    I have set my Time Capsule set up...
    In the AirPort Utility
    AirPort tab
    Wireless mode:create a wireless network
    Connect using: Ethernet
    Internet tab
    Connect using: Ethernet
    Connection sharing: Off (Bridge mode)
    From these settings I can see the wireless network I have set up, but I can't connect to it (get a 'connection timeout' error when trying to connect to the wireless network using my laptop)
    When I try to change to Conenction Sharing to: 'share a public IP address' or 'distribute a range of IP address', then I get other errors... (DHCP Beginning and DHCP Ending Address Errors).
    Any advice would be great - thanks! 

    Bridge Mode is the correct setting for your Time Capsule.
    To aid in troubleshooting, I suggest that you temporarily move the Time Capsule close to the Uverse router and connect directly to one of the Ethernet ports on that device. Test to see if your wireless is working.
    If yes, then move the Time Capsule again and this time temporarily connect to the Ethernet switch to test that way.
    Keep working your way outward, testing as  you go. If the wireless works on the first test when you connect directly to the Uverse router, at some point, you will find the connection problem. It's almost always something simple, like an Ethernet cable that is not making a good connection with one of the Ethernet ports.

  • DBConnect Error - Trying to Connect to SQL Server 2008

    Hi,
    I am trying to connect to one of the SQL Server on the domain.
    SQL Server 2008
    OS: Windows 2008 R2 64 bit
    I have done all the entries as mentioned in the Note. 178949 correctly but when I am testing this connection through program ADBC_TEST_CONNECTION it is showing me following error:
    Testing a Database Connection Defined in DBCON
    Could not open connection SQLCONNECTION
    sql error 1- occured:
    I have put DBMSSSLIB.DLL and DBMSSSLIB.PDB in the run directory as mentioned in the note too.
    I have searched forum but couldn't find any solution for this. Please advice.
    Thanks,
    Usman Malik

    Hi dude!
    Checking the dbsl_w<NN> as it is explained in point 3 of the 'Troubleshooting' section of [SAP note 738371|https://service.sap.com/sap/support/notes/738371] would help a lot to know the reason of the failure.
    I hope this helps you!
    Cheers!

Maybe you are looking for

  • Problem in Xpath expression(ccBPM).

    I have given the following expression in the container operation and assigned the xpath /MT_RS2/FIL/substring(FILE_NAME,15,17) to the simple variable that I declared in container data.I used this variable to check the condition in switch.The problem

  • Solaris 10 local zone setup requirement/steps for am/ps 7.0 installation

    Hi, Is there any document available on solaris 10 local zone creation/requirement for am server/ portal server 7.0 install? Any help/pointer is appreciated. Thanks,

  • Publishing reports to Enterprise - Remote database access.

    Enterprise newbie. I can publish a report that accesses a database residing on the same server as Crystal Enterprise. Under the CMC, report process, database, I'm using the default report DB connections option. It runs fine in the user mode. The Prob

  • Internet Explorer looks horrible

    Could someone please go to my site in firefox and then inter net explorer and tell me what I have to do to the code to fix the IE issues. It is a 3 column floating template and the opening instructions state there is a -1px variance but I've tried ad

  • Power brick/ charging problem 2011 MBA.

    My wife's 2011 13" MBA has suddenly stopped recognizing the charging cable when attached to the air, and so not charging at all. No recognition LED at all orange or green, nothing. I've done all the ususal stuff, switched power plugs, took off the ex