JDeveloper connect ok, but not getConnection

Hi all, I am working on my first java program with JDeveloper. I was able to connect to my local Oracle9i database successfully, but when I tried to connect it in the program, I got "ORA-06401: NETCMN: invalid driver designator".
*** Here is the export from my JDeveloper connection *****
<?xml version = '1.0'?>
<!DOCTYPE connections>
<connections>
<connection>
<JDBC_PORT>1521</JDBC_PORT>
<ConnectionType>JDBC</ConnectionType>
<HOSTNAME>localhost</HOSTNAME>
<user>SCOTT</user>
<ConnectionName>Connection1</ConnectionName>
<SID>CIS</SID>
<JdbcDriver>oracle.jdbc.driver.OracleDriver</JdbcDriver>
<password>tiger</password>
<ORACLE_JDBC_TYPE>oci8</ORACLE_JDBC_TYPE>
</connection>
</connections>
**** Here is my connection codes in program ******
DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
conn = DriverManager.getConnection ("jdbc:oracle:oci8:@localhost.1521:CIS", "scott", "tiger");
Thanks in advance for your help.
Chris

For using the 'thin' driver
<ORACLE_JDBC_TYPE>thin</ORACLE_JDBC_TYPE>
conn = DriverManager.getConnection ("jdbc:oracle:thin:@localhost.1521:CIS", "scott", "tiger");
If you want to use the thick-oci driver the connection string will be of the format
conn = DriverManager.getConnection ("jdbc:oracle:oci8:@tns_entry_name", "scott", "tiger");
Regards
Elango.

Similar Messages

  • 3rd gen iPod Nano will not sync with latest version of iTunes. It passes the connectivity test but not the sync test under diagnostics.  Worked fine on old Windows 7 laptop but not new one.  From Control Panel it shows up as an Apple iPod USB Device...

    3rd gen iPod Nano will not sync with latest version of iTunes on new laptop. It passes the connectivity test but not the sync test under diagnostics.  Worked fine on old Windows 7 laptop but not new one.  From Control Panel it shows up as an Apple iPod USB Device...

    Never mind, I think. I think I figured it out. There was 1 song (out of > 900!) that somehow had been purchased with the other ID - I have no idea how. Once I deleted that song, it stopped asking.
    There may be something with the newest iTunes version too. I didn't think in older versions that the "On this iPod" list of songs was greyed out. But at least it syncs ok.

  • Hp officejet pro 8600 connected wirelessly but not recognized

    I have an hp officejet 8600 n911a which is connected to my wireless internet. I have run wireless network test results and printer status reports which both show connected. when you touch the internet icon it shows connected also with an ip address. However it will not connect to my computer, ipod, ipad, or any other device to print. The product software will not even ping the device to connect to the printer. It is like it will accept an incoming connection from my router but not send out a connection signal or recieve a signal to print on the same wireless connection. I have verified that it is set up on the same internet connection but the device is not recognized and when I type in the ip address in the address bar of chrome or explorer it says page cannot be opened. However I can email wirelessly to my printer to eprint by using the email given to me by my printer. I am very confused. Any help would be great.
    Melody

    With the network does the 5Ghz wirless have a different name to the 2Ghz network?
    If they have the same network name then you should change the ssids to be different so then you can tell which networks its on.
    From what you have told me it sounds like a 5Ghz 2 Ghz mismatch
    JonW
    I work for HP

  • AE connects iTouch but not iMac.

    Don't know what happened because it was working before. My iMac G5 works with an ethernet connection via a hub or directly to the router, but not with Airport Express. Over the past few days, I've tried everything I can think of repeatedly (e.g., resetting each unit, switching ethernet cables, disconnecting all overnight). I can get my G5, G3, Xbox, and AE to simultaneously access the internet via a cheap Dynex ethernet hub while my iTouch wirelessly connects to my ISP. I just can't get the G5 back to working wirelessly. It tells me when I am connected to AE and indicates a strong signal, but it fails to access the ISP. My network administrator says it is an Apple issue, not theirs, which appears to be a logical conclusion.

    It's possible your ethernet port is damaged or it's dirty.  Try blowing into the port.  Use a flashlight to check the port for damage.  When was the last time you connected your iMac to the ethernet & it worked?
    What you can try w/your ethernet connect to the iMac is to run the diagnostic test.
    System Preferences>Network>Ethernet>Assist Me>Diagnostics.  Post the results of the test.

  • Can connect to but not administer Airport Extreme

    New problem, just happened today. I can connect to the network I've created and get online (writing this from the affected machine) but not administer the Airport network.
    When I open the Airport Utility, I get nothing in the window at all. I've tried on my other machine, a MacBook Pro running 10.4.9, and can see it. I even tried on an old Mac mini G4 and it can also see and administer.
    This also hurts printing - the machine can't see the base station, so it hangs just looking for it.
    Any ideas?

    Indeed - this is a "g" Airport Extreme, so I've had it for a while. Like I said, the other machines can see it.
    And the problem comes and goes – today I can see the Base Stations, yesterday I could not.

  • I want to buy the camera connection kit but not sure if it will work with my camera it's a Sony dsc w35 can anybody help..

    I want to buy the camera connectivity kit for my iPad 3  but not  sure if it will work with my Sony dsc w35 camera can anybody help.

    That camera does not have an SD card. It uses Sony's Memory Stick™ DUO Media.
    The camera does provide for USB connection, however, some cameras require too much USB power from the iPad. Suggest you take your iPad to a camera store and ask to test it with your iPad.
     Cheers, Tom

  • I cannot get my IPad air to connect to wireless in home. Two other iPad 2's connect as well as laptops. I have already exchanged one iPad air and none want to connect. Husband has taken iPad air to the apple store, connects here but not here. Who can help

    Can someone please help???  I received am IPad air in November for my birthday and have not been able to use yet,  I could not get it to connect so I returned it for another iPad air. And cannot get it to connect to wireless either. I have three other iPad 2's and laptops in home and everything connects with no problem. What is the deal with these iPad airs? My husband took the iPad to Apple store, it works there but didn't change anything so it won't work at home. Do I need to step down to old IPad since that's all that will connect in home.  This is crazy,!!! How can I get my IPad air working in my home.???

    Some things to try first:
    1. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    2. Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    3. Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    4. Go into your router security settings and change from WEP to WPA with AES.
    5.  Renew IP Address: (especially if you are droping internet connection)
        •    Launch Settings app
        •    Tap on Wi-Fi
        •    Tap on the blue arrow of the Wi-Fi network that you connect to from the list
        •    In the window that opens, tap on the Renew Lease button
    6. Potential Quick Fixes When Your iPad Won’t Connect to Your Wifi Network
    http://ipadinsight.com/ipad-tips-tricks/potential-quick-fixes-when-your-ipad-won t-connect-to-your-wifi-network/
    ~~~~~~~~~~~~~~~~~~~~~~~~~
    Fix WiFi Issue for iOS 7
    http://ipadnerds.com/fix-wifi-issue-ios-7/
    iOS 6 Wifi Problems/Fixes
    Wi-Fi Fix for iOS 6
    https://discussions.apple.com/thread/4823738?tstart=240
    How To: Workaround iPad Wi-Fi Issues
    http://www.theipadfan.com/workaround-ipad-wifi-issues/
    Another Fix For iOS 6 WiFi Problems
    http://tabletcrunch.com/2012/10/27/fix-ios-6-wifi-problems-ssid/
    Wifi Doesn't Connect After Waking From Sleep - Sometimes increasing screen brightness prevents the failure to reconnect after waking from sleep. According to Apple, “If brightness is at lowest level, increase it by moving the slider to the right and set auto brightness to off.”
    Fix For iOS 6 WiFi Problems?
    http://tabletcrunch.com/2012/09/27/fix-ios-6-wifi-problems/
    Did iOS 6 Screw Your Wi-Fi? Here’s How to Fix It
    http://gizmodo.com/5944761/does-ios-6-have-a-wi+fi-bug
    How To Fix Wi-Fi Connectivity Issue After Upgrading To iOS 6
    http://www.iphonehacks.com/2012/09/fix-wi-fi-connectivity-issue-after-upgrading- to-ios-6.html
    iOS 6 iPad 3 wi-fi "connection fix" for netgear router
    http://www.youtube.com/watch?v=XsWS4ha-dn0
    Apple's iOS 6 Wi-Fi problems
    http://www.zdnet.com/apples-ios-6-wi-fi-problems-linger-on-7000004799/
    ~~~~~~~~~~~~~~~~~~~~~~~
    iPad: Issues connecting to Wi-Fi networks
    http://support.apple.com/kb/ts3304
    How to Boost Your Wi-Fi Signal
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Boost-Your-Wi-Fi-Signal.h tm
    Troubleshooting a Weak Wi-Fi Signal
    http://ipad.about.com/od/iPad_Troubleshooting/a/Troubleshooting-A-Weak-Wi-Fi-Sig nal.htm
    How to Fix a Poor Wi-Fi Signal on Your iPad
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Fix-A-Poor-Wi-Fi-Signal-O n-Your-iPad.htm
    iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    WiFi Connecting/Troubleshooting http://www.apple.com/support/ipad/wifi/
    How to Fix: My iPad Won't Connect to WiFi
    http://ipad.about.com/od/iPad_Troubleshooting/ss/How-To-Fix-My-Ipad-Wont-Connect -To-Wi-Fi.htm
    iOS: Connecting to the Internet http://support.apple.com/kb/HT1695
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Connect iPad to Wi-Fi (with troubleshooting info)
    http://thehowto.wikidot.com/wifi-connect-ipad
    10 Ways to Boost Your Wireless Signal
    http://www.pcmag.com/article2/0,2817,2372811,00.asp
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
    How To Fix iPhone, iPad, iPod Touch Wi-Fi Connectivity Issue http://tinyurl.com/7nvxbmz
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    Some Wi-Fi losses may stem from a problematic interaction between Wi-Fi and cellular data connections. Numerous users have found that turning off Cellular Data in Settings gets their Wi-Fi working again.
    You may have many apps open which can possibly cause the slowdown and possibly the loss of wifi. In iOS 4-6 double tap your Home button & at the bottom of the screen you will see the icons of all open apps. Close those you are not using by pressing on an icon until all icons wiggle - then tap the minus sign. For iOS 7 users, there’s an easy way to see which apps are open in order to close them. By double-tapping the home button on your iPhone or iPad, the new multitasking feature in iOS 7 shows full page previews of all your open apps. Simply scroll horizontally to see all your apps, and close the apps with a simple flick towards the top of the screen.
    Wi-Fi or Bluetooth settings grayed out or dim
    http://support.apple.com/kb/TS1559
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • IPod touch stuck on USB connect screen but not recognized by iTunes

    I downloaded the update for my iPod via iTunes but when the update attempted to install on the iPod, I received a message that the update failed. Now, my iPod is stuck on the USB connect screen (with the image of a cord below an arrow pointing to the iTunes logo). Every other thread says to connect to iTunes and attempt to reset the device (off and home button for several seconds) so I can restore it through iTunes, but even if I do that, it fails to connect to iTunes. Last time I had problems connecting to iTunes I downloaded the update through the iPod itself but seeing as I can't get off the USB connect screen, downloading it from the iPod is impossible. How can I get my iPod working again? Either getting it off the frozen screen so I can download the update, or getting my computer to recognize it so I can restore? Last time it wouldn't connect to iTunes (when it wasn't frozen) the computer still recognized it but now it does not. (I'm on a Windows 8 laptop)

    Try:                                               
    - iOS: Not responding or does not turn on           
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable                                                       
    - Try on another computer                                                       
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar                                     

  • Hard drive gets error -50 when connected internally, but not in USB enclosure.

    I have a SATA hard drive that works perfectly when connected through an external USB enclosure but whenever it's plugged into the internal SATA connector on my MacBook Pro I receive the error message "The operation can’t be completed because an unexpected error occurred (error code -50)." any time I attempt to move or copy a file to it.
    This doesn't happen with any other hard drive I connect internally, so I don't believe it's an issue with the internal cable.
    I have made sure all permissions are set to allow reading and writing to the drive as well as selecting the "Ignore ownership on this volume" option in the Get Info panel.

    If I were you, I would just replace the drive. Since other drives work, you're probably right in assuming that it's not a SATA cable issue, but rather an issue with that specific drive.
    Clinton
    MacBook Pro (15-inch Late 2011), OS Mavericks 10.9.4, 16GB Crucial RAM, Crucial M500 960GB SSD, 27” Apple Thunderbolt Display

  • 1 to 1 connections ok but not conferencing

    Hello,
    I am trying to do 3 person conferencing with ichat but i never manage to get the third person. He always get a "insufficient bandwith" message.
    I opened all the ports from Apple's article http://docs.info.apple.com/article.html?artnum=93208
    I i try to establish one to one connections with the same persons it works withtout any problem. Are there additional ports required for conferencing ?
    We all run 10.4.3 on dual G5's and SDSL Lines (2 mbps up & down) so i can not believe the real issue is bandwith so i was wondering: do many of you manage to establish audio or video conferences outside their LAN ?
    Thanks for any help
    Laurent

    Hi Laurent,
    In that case check the following:
    1) The MAc Firewall is set to have iChat ports open if ON
    and the Advanced Button is not got Block All UDP Traffic set.
    2) Check each computer's System Preferences > Quicktime > Streaming Tab > Connection Speed Drop down and set it match the download speed.
    3) Check iChat > Preferences > Video section > Bandwidth Limit drop down is set ot NONE.
    4) Check ports are open in some form in the modem.
    5) Make sure there is only one DHCP server on each LAN.
    Ralph

  • HT4628 my powerbook g4 os x 10.5.8 leopard is showing-Connection time out while connecting to the wifi.however it showing all available wifi connections around but not connecting it..however ethernet is working

    Problem while connecting with Wi-Fi,
    When i am connecting my powerbook g4 leopard  to any Wi-fi connection it showing -Connection time out, however Ethernet is working .I have updated all softwares but still same problem.

    It's possible that either the internal AirPort Extreme card or the antenna is faulty or has failed.
    One last thing to try before going with another Wi-Fi solutions is to the following:
    Try the following, in order, until (hopefully) resolved:
    1a. Delete Preferred Network(s)
    System Preferences > Network > AirPort > Advanced > AirPort tab
    Under "Preferred Networks," delete the network(s) you regularly use from the list.
    1b. Delete AirPort Keychain Entries
    Launch the "Keychain Access" application located in Applications/Utilties.
    Click on the "Kind" filter at the top, and look for any "AirPort network password" entries...and delete them.
    1c. Add Preferred Network(s)
    System Preferences > Network > AirPort > Advanced > AirPort tab
    Add the preferred network(s) using the "+" button.
    Restart or log out then back in.
    2. Move System Configuration Files
    (Note: You will have to reestablish your network connections settings.)
    Go to /Library/Preferences
    Move the SystemConfiguration folder to the desktop.
    Restart your Mac. (Note: OS X will rebuild the files that are now sitting on your desktop. If this doesn't resolve the issue, you can move the folder back to it's original location.)
    3. Run the Disk Utility to repair Disk Permissions.
    Restart or log out then back in.
    4. Turn off the Mac OS X Firewall
    System Preferences > Sharing > Firewall
    Click the "Stop" button.
    5. Create a New User Account
    System Preferences > Accounts
    Click "+" to add a new account
    Log off, then log back on with the new user account.
    Try connecting with the AirPort.
    If none of these help resolve the issue, you may want to consider getting a USB wireless adapter to replace both the internal card and antenna. One such vendor of these adapters is Other World Computing (OWC).

  • P1606dn prints when connected wired but not when wireless

    Hi
    I have setup above printer as a network printer connected to a wireless router and 2-4 computer. Only the computer that is directly connected to the router by wire will print. All others can see the printer through wireless connection but printjobs stay in queue. I have removed the tick from the birectional printing, have stopped and restarted the sppoler and restarted the wirelss computer, but the printjobs stay in the queue until I manually remove them from the queue.
    I am at wits end, and do not know what to try to get this printer work on the other cimputers.
    Any advisae that may solve this problem is hugely appreciated.
    Jim CleverCricket

    Sorry that you are having problems with wireless printing. You can run the print and scan doctor and check the results. 
    http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&lc=en&dlc=en&docname=c03275041
    It may be a anti-virus or a firewall that is blocking it. Try to disable it and see if that works for you. 
    ""Click the WHITE STAR if you would like to say THANKS""
    Let me know what happens. 
    **Click the KUDOS star on the left to say 'Thanks'**
    Please mark a reply "ACCEPTED AS SOLUTION" if it solved your problem, so others can find it.

  • Sqlplus connects locally but not with tns after changing "log on as"

    I can connect to the DB from locally with "sqlplus system/password" however I can't with "sqlplus system/password@mysid".
    the only thing we changed was in the service. We changed the service -> properties -> Log On values from "Local System Acount" to "This account" with a valid login and password.
    RMAN now works to a NAS drive but getting to the DB is not working. When we had "local System Account" selected, we could get to the DB but RMAN could not reach the NAS drive.
    Can anyone help? Oracle 11gR2 on Windows server 2008.
    Thanks

    Thank you for the help. I fixed it my not only changing all the services to that same user, but I added the user to the administrators and ora_dba groups. Now we can use the NAS drive and get to it from TNS.

  • Connection made but not sustained

    I can connect to my friend in Micronesia using FaceTime.  She can see and hear me.  I can see a static image of her and have no audio.  After a matter of seconds, our tenuous connection fails.  Any ideas anyone?

    We had this sort of thing on our network once and we found that every time the customer's computer connected to our server, it had a different IP address.
    Of course this may well not be your problem. But it isn't going to be anything to do with Java or with your server, most likely. It's going to be something happening in the network between your rogue customer and your server.

  • C3-00 Wlan Connection Failed (but not before)

    Hi!
    I bought a C3-00 today, at the begining, I could connect on my access point, but after charging my Nokia, I could'nt attach to the access point. This message appears now: "Wlan Connection Failed". I read some stuff about firmware update but I can't update my firmware because the 7th version is not available in my region (I'm belgian).
    Someone have an idea of the problem?
    Thanks.
    Edit:
    My router is a Bbox2 (Belgacom Box)
    Edit2:
    I've just try and it's work, it pretty weird. Do you thing problem comes from my router?

    Hi babyhedgehog,
    Thank you for your post and welcome to the forums!
    The security code is tied to the phone, not your SIM card. So, we would advice you to soft reset your phone again and try the default security code, which is 12345.
    If restoring factory settings does not resolve your issue, you can also try to hard reset your phone. This will remove all settings and personal data from your phone, so we recommend that you first back up your phone with Nokia Suite.
    To hard reset your phone, just dial *#7370#. 
    Let us know if this helps,
    Puigchild
    If you find this post helpful, a click upon the white star at bottom would always be appreciated.
    If it also solves your problem, clicking ACCEPT AS SOLUTION below it will benefit other users!

Maybe you are looking for

  • MSI K7N2 Delta ILSR - RAID BIOS Option ???

    hi ho, i have my 2 storage devices pluged into the promise 376 onboard controller. they are not connected as a real raid (not mirror nor real stripe). my OS is win2k on the first sata device and everything was fine for a long time. but now when my sy

  • BAR's report.

    Hi , Im in need of creating a BAR report with all sales order details along with the billing and delivery details. Can anyone help in designing the selection screen and also the program logic.. As and when the BAR num entered in the selection screen

  • Specify a cycle count

    Hey guys, I'm new to labview and I'm working on a project for work. I have my program set up but I would like to add a control that would let me put in a specific cycle value on the front panel, that would allow me to capture data of only the specife

  • Using trial version of Dreamweaver CS6, Blank page, HTML onlly 2 layouts

    My students are starting out using a trial version of Dreamweaver CS6, but only get 2 different layout options when selecting a Blank Page, HTML. Can they add additional layout options somehow? This is making it hard for them to complete the assignme

  • Password protected Files help needed Urgent

    I have a close family friend who's husband has just passed away, I’ve been helping her gain access to her husband’s laptop ect, he was the accountant for the family business, He used Star office version 8, the problem we have is many of his files are