[Oracle JDBC Driver]This driver is locked for use with embedded application

Hi
I installed Sun Java Studio Enterprise 8, and am trying to connect to my Oracle database using the attached tutorial code.
The code compiles fine, but I get the following error whenever I run the file: [Oracle JDBC Driver]This driver is locked for use with embedded application
I don't understand what is happening.
Using the Runtime navigation panel on the upper left of the IDE screen, I can right-click and connect to the database, and navigate database files, using the Oracle JDBC Driver that came with JSE8.
Name: Oracle Driver
Driver: com.sun.sql.jdbc.oracle.OracleDriver
Database URL: jdbc:sun:oracle://JAZZPUP:1521;SID=REPO
If the driver is installed, and can be used to connect to a database by right-clicking on the database definition in the Runtime panel, why can't I connect to it just using java code in the IDE. I would expect both methods to work or to fail, not one of each using the same IDE.
Many thanks and take care,
Shayne
import java.sql.*;
public class CreateCoffees {
public static void main(String args[]) {
//String url = "jdbc:mySubprotocol:myDataSource";
String url = "jdbc:sun:oracle://JAZZPUP:1521;SID=REPO";
Connection con;
String createString;
createString = "create table COFFEES " +
"(COF_NAME VARCHAR(32), " +
"SUP_ID INTEGER, " +
"PRICE FLOAT, " +
"SALES INTEGER, " +
"TOTAL INTEGER)";
Statement stmt;
try {
//Class.forName("myDriver.ClassName");
Class.forName("com.sun.sql.jdbc.oracle.OracleDriver");
} catch(java.lang.ClassNotFoundException e) {
System.err.print("ClassNotFoundException: ");
System.err.println(e.getMessage());
try {
//con = DriverManager.getConnection(url, "myLogin", "myPassword");
con = DriverManager.getConnection(url, "login", "password");
stmt = con.createStatement();
stmt.executeUpdate(createString);
stmt.close();
con.close();
} catch(SQLException ex) {
System.err.println("SQLException: " + ex.getMessage());
} //end class CreateCoffees
---

There are two similar threads:
http://swforum.sun.com/jive/thread.jspa?threadID=61327&tstart=0
http://swforum.sun.com/jive/thread.jspa?threadID=51057&messageID=188210
To summarize - the DataDirectDriver that is shipped with the IDE seems to be locked to be used inside the IDE only because of some licensing issues etc..
That's weird, I agree. I will raise a question on reasons for such a behavior.
The solution would be to use Oracle's own driver, that is distributed at no charge from their web site - http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
HTH,
Kirill

Similar Messages

  • JDBC Error: This driver is locked for use with embedded applications

    Hi Experts,
    My sender adapter is throwing the below error:
    Error during database connection to the database URL 'jdbc:nwmss:sqlserver://<host>:<port>;databaseName=<dbname>' using the JDBC driver 'com.sap.nwmss.jdbc.sqlserver.SQLServerDriver': 'java.sql.SQLException: [NWMss][SQLServer JDBC Driver]This driver is locked for use with embedded applications.'
    What could be the problem? How can I resolve it?

    download the latest version of SQL driver from MS site and re deploy it on PI

  • This driver is locked for use with embedded applications - SQL Server

    Hello guys,
    Background:
    I developed an application using JSC2 with MS SQL Server 2000 as the database and Sun Application Server PE 8 as App Server. During development, I am able to deploy and test it. But as soon as I've installed Sun Application Server PE 8 on our Production Server, exported my app there and tried to execute it, I get the error
    "This driver is locked for use with embedded applications".
    I just wanna ask, though I've seen other threads saying that the only solution is to buy the EE or SE of Sun App Server, isn't there really any work-around with this?
    Thanks very much for your help.

    OK, that is the same setup we have (Creator built application running with MS SQL Server).
    I wrote a tutorial talking about integrating Creator with Spring. In it you will find out how to use SQL Server with a Creator built app running on the Platform Edition. That tutorial can be found here: http://swforum.sun.com/jive/thread.jspa?threadID=52657&tstart=15
    In short, look to jTds.
    Hope this helps.

  • Is my Droid Razr Maxx xt912 locked for use with another carrier's SIM - either in the U.S. or globally?

    Is the Verizon Droid Razr Maxx XT912 locked to prevent using another carrier's SIM in the U.S.?  Is it blocked to prevent use of another carrier's SIM outside the U.S.?
    Thanks

        Hi MattFlash, that is a great questions and I would be happy to help! The good news is that all of our 4G devices would be unlocked and ready for use with another carrier, so the Maxx is ready to go. If you would like to use another carriers service you may need their SIM card and would then need to follow their activation procedures. Hope this helps!
    AdamG_VZW
    Follow us on Twitter @VZWSupport

  • Certificates for use with APEX applications

    I'm running oracle enterprise edition 9.2.0.7 with HTTP server for my APEX applications. When users access my application via https://, they receive the default oracle certificate warning. Can I use the wallet manager (owm) to create my own or to create a trusted certificate, or do you need to purchase Advanced Security option to use it "legally"?

    hey guys the above issue was resolved. now i have following error.
    1- anyconnect popup with WARNING MESSAGE: Warning: "The following Certificate received from the Server could not be verified: "
    2- on asa i can see following debug messages.
    CRYPTO_PKI: Sorted chain size is: 1
    CRYPTO_PKI: Found ID cert. serial number: 02, subject name: cn=admin
    CRYPTO_PKI: Verifying certificate with serial number: 02, subject name: cn=admin, issuer_name: cn=ciscoasa, signature alg: SHA1/RSA.
    CRYPTO_PKI(Cert Lookup) issuer="cn=ciscoasa" serial number=02                                                 |  .
    CRYPTO_PKI: Invalid cert.
    do let me know why is this happening. i have installed both CA and Indetity certificates on cisco asa 8.4.
    my client OS is Win7.

  • Isn't Adobe Color available for use with desktop applications??  It looks like Adobe Kuler has NOT been replaced with Adobe Color - It has been Deleted!

    It looks like the new Adobe Color is for iPad / iPhone only.  Why isn't it available for desktop use like Kuler? 
    Kuler server seems to have been turned off.  Why?  Kuler and colour themes were very useful. 

    Adobe Color CC

  • Oracle JDBC thick (OCI) driver

    Hi!
    Can someone point me where I can download oracle JDBC thick (OCI) driver. Thick JDBC is not installed by default in 10g. In the OTN download site I can find JDBC thin drivers to download.
    Thanks
    Rad.

    Rad,
    Allow me to elaborate on Mark's answer. Let's say you download the "ojdbc14.jar" file from the OTN Web site. Both the "thick" and "thin" drivers are in that one file. You indicate which driver you wish to use in your java code -- via the database connection URL, for example:
    jdbc:oracle:thin:@//myhost:1521/orclThe above indicates you wish to use the "thin" driver, whereas
    jdbc:oracle:oci:@myhost:1521:orclindicates you wish to use the "thick" driver.
    [Notice the difference?]
    You can find more details from the JDBC FAQ.
    Good Luck,
    Avi.

  • Partitioning an External 320gb drive for use with Time Machine and...

    I want to be able to use my Western Digital 320GB external drive for use with Time Machine and to use as extra storage space on both my Mac and when I boot into Windows Vista.
    Is this possible?
    I was playing around in Disk Utility and would I partition the part I want to use for Time Machine with the Mac OS Journaled, and whatever I want as space for windows, use a MS - DOS format?
    Has anyone done this before?
    Cheers-

    Unless you are using 64 bit version of MSWindows (64 bit XP/Vista), it won't be able to handle a disk with GUID partition table (GPT). Disks with Apple Partition Map (APM) or GUID partition table are the only ones that Time Machine will work with (not MBR disks). Note also that the MBR/APM/GPT are at the DISK level and not the partition level, so don't mix the format with partitioning scheme. Time Machine disks are meant to live in the Mac universe (for now, anyway) and sharing with the MSWindows 32-bit universe is not possible.
    See http://img87.imageshack.us/my.php?image=macpcdiskdd06sv8.png for some additional background.

  • Where do I go for a safe driver for the Mac for use with Altec Lansing Technologies IMT227 OrbitM Ultra Portable Speakers?

    Where do I go for a safe driver for the Mac for use with Altec Lansing Technologies IMT227 OrbitM Ultra Portable Speakers?

    This is an Altec Lansing IMT227 OrbitM etc
    Is this what you have?
    Here is the specification, please note, no USB
    You are either mistaken or talking about a different model.

  • External Hard Drive for PowerMac G5 for use with FCP Studio

    Hello,
    I'd greatly appreciate any recommendation for an external hard drive for a PowerMac G5 for use with FCP Studio.
    Thanks.
    -graziemile

    We see alot of Lacie issues here and elsewhere.
    Drives fail... period. I believe you hear more about Lacie drives failing because they sell a ton more of them than many other suppliers. I've got 8 of em sitting right here on the desk and two more at the second station. I've lost one since I started using them years ago (and it had problems right out of the box) and I use them pretty heavy.
    I understand that they use several different brands of drives in their enclosures, but from my experience they must have pretty good QC standards for what they package.
    The guy said the G Techs were a little overkill for his needs. Lacie doesn't pay me. But if someone asks "how are Lacies?" I'll tell them they've been great for me and many others I know, especially if your requirements are capturing DV.
    In five years, I ain't heard anybody say anything about it.
    As for FCP. I love it! In 20 years of business, it's probably the purchase that's given me the most bang for my buck. But if you haven't heard people knock it, you've never met an Avid zelot, bruhhhhh, just the thought gives me shivers.
    The drives X mentioned are designed for video work.
    What Studio said, well he gives out some of the best advice on this board
    (and maybe the most! ) and my reply to his post... that's why I used the little smiley face. No offence intended X.
    I only meant to say that, in a world where software like FCP can do what it does at the price it does it, and drives like Lacie and G Tech can give you the storage they do for the price they do, the line between consumer and professional products is easily blurred.
    rh

  • Convert IDE 2.5" external enclosure for use with SATA hard drive

    Hello all,
    I recently upgraded my Macbook hard drive and ordered a 2.5" enclosure at the same time for use with my old hard drive (http://www.newegg.com/Product/Product.aspx?Item=N82E16817347007). As soon as I opened it, I noticed that the pins don't line up and have now learned about IDE vs SATA in the forums. Okay, is there anyway I can still use this enclosure? An adapter?
    Thanks,
    Amber
    MacBook 2 GHz   Mac OS X (10.4.8)  
    MacBook 2 GHz   Mac OS X (10.4.8)  
    MacBook 2 GHz   Mac OS X (10.4.8)  

    Thanks. Hopefully I can find something that will fit into this tiny enclosure...
    MacBook 2 GHz   Mac OS X (10.4.8)  

  • I have an external hard drive that was formatted by a PC and has files and directories etc. I want to format it and use it on my IMAC for backup but I can't seem to write to it nor can I delete current content. How do I initialize it for use with the MAC?

    I have an external hard drive that was formatted by a PC and has files and directories copied to it etc. I want to use it on my IMAC for backup. I see it on my my IMAC . I can open files etc.  But I can't seem to write to it nor can I delete current content. I don't care if I lose current content. How do I initialize it for use with the MAC?

    You can't write to it because it's formatted as NTFS which OS X will read but not write to. If you want to continue using the drive with both a PC and OS X you will need to download and install NTFS-3G so you can then write to it from your Mac. You can get NTFS-3G at:
    http://www.macupdate.com/app/mac/24481/ntfs-3g
    If you want to use the drive exclusively with your Mac then move the data off it and reformat it in Disk Utility (Applications - Utilities - Disk Utilities) as Mac OS Extended (Journaled.)

  • Quiet external hard drive for use with Time Machine?

    Few questions related to Time Machine:
    1- what external hard drive that would be good to use with Time Machine, that also runs relatively quietly? Since TM runs 24/7, am looking for one that is quieter than my current G-tech.
    2- Please confirm what size is optimal relative to the size of the internal hard drive.
    3- I currently use a separate external hard drive as my bootable disc.  Is it possible/preferable to have these be on one and the same drive?
    Thank you.

    1. I like these (have three of them) - literally whisper quiet:
    http://eshop.macsales.com/shop/firewire/1394/USB/EliteAL/eSATA_FW800_FW400_USB
    2. You should allow 2 - 3 times your internal drive's size for TM.
    3. No, it'd be best to be on another drive - you can create separate partitions, but if/when the drive fails, both of your backups would be gone. So, keep your clone on a separate disk. In fact, it's good to have two different backups.

  • Best hard drive for use with Time Machine

    Hi,
    Has anyone determined what the best external hard drive is for use with Time Machine? Is there a particular one that works exceptionally well with Time Machine, or is it much of a muchness?
    I'm looking for a Firewire 400 & Firewire 800 drive that STAYS ON all the time, and doesn't automatically spin down or spin up like the rubbish WD My Book drives do.

    I can't tell you if it is the "best" hard drive for you to use with TM, but I'm quite happy with the 500 GB Buffalo Technology DriveStation Combo TurboUSB I bought recently. It is quiet, quite inexpensive for the capacity (I paid about $120 for one on sale at Fry's), & completely compatible with OS X & TM.
    Best of all for me, it automatically powers down when my iMac sleeps. It also spins down after a time if the Mac's Energy Saver preference "Put hard disk(s) to sleep when possible" is checked; otherwise it remains spun up until the Mac is put to sleep or switched off.
    It comes with "Turbo" USB & Memeo "AutoBackup" software, neither of which I installed. (The box didn't claim these extras came in a Mac version but both Mac & Windows versions were included on the CD.) Out-of-the-box, I reformatted the drive with the Apple Partition Map scheme & two partitions, a 160 GB one for cloning my internal drive & the rest for TM. The drive works perfectly for both uses & seems quite fast, as one would expect from a 7200 rpm SATA drive.

  • Compatible External DVD/CD Drives for use with MacBook Air

    Hello all,
    I'm after buying an external drive and was hoping we could put together a list of compatible drives as I've read on other forums that not all are compatible.
    Please no links as they tend to expire but rather just list the make and model of the drives.
    Thanks,
    Jompet

    Kappy wrote:
    Apple sells an external USB optical drive specifically for use with the MBAs. That would be your best option. MBA SuperDrive.
    Sorry, but that's not correct. I got the white version:
    http://www.newegg.com/Product/ProductList.aspx?Submit=ENE&N=100007595%2050001623 &IsNodeId=1&name=LG%20ELECTRONICS
    Works perfect.

Maybe you are looking for

  • Tabstrip does not save when clicked

    After I set all the input field to be required for my 3 tabs in my tabstrip, I am only able to save the data in text field after I click the save button the second time and not the first time. Clicking Save button first time: http://img407.imageshack

  • Pages doesn't offer HTML, how can I get a Pages doc to be embedded?

    How can I get a Pages document embedded into an email? I do not want to turn it into a pdf... what are my options. I have Freeway 5 Express if this helps. How-to's and suggestions welcome.

  • Flippin' 'lpadmin' problem

    Anyone who can solve this is really a 'Genius', in the true sense of the word: I have Mac OSX 10.5.8 on my MacBook Pro. I am printing to Epson 1290, over a network. My printer is hooked up to my iMac OSX 10.4.11 via a USB cable and I use iProof Power

  • Macbook pro running OS X 10.7.4 - need App Store

    I'm running OS X 10.7.4 on an old Macbook Pro. I'm trying to get the developers kit but need the App Store to do so. What upgrade steps do I need to take to get me to a point where I can get the App Store?

  • Linkage in PR & PO & FS10N

    Hi, We have a requirement of linkage between PR --> PO --> FS10N. Actually, we want a extra field where we insert Asset Number. Suppose we find a field a PR and insert Asset Number there, then Asset Number should be display in PO and FS10N also. How