Why can not  setInt be used on the RedHat linux

I used one of PreparedStatement mothed, setInt, to insert a int number into database table such as emp. It does run normally on the windows2000, but it can't run on the linux. Could you tell me the answer? my email is: [email protected] . It is emergency. Thank you very much!!!
The following is my code:
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
url = "jdbc:oracle:oci8:@";
Connection con = DriverManager.getConnection (url, "scott", "tiger");
PreparedStatement pstmt = con.prepareStatement("insert into emp (empno, ename) values (?, ?)");
//// Add LESLIE as employee number 1500
pstmt.setInt (1, 23); // The first ? is for EMPNO
pstmt.setString (2, "LESLIE"); // The second ? is for ENAME
//// Do the insertion
pstmt.execute ();
pstmt.close();
con.close();

Could you tell me how to correctly compile the source code?Something like
javac MyClass.java
But that presumes you are using the sun jdk package. You can at least verify the java part by typing
java -version
which should return something.

Similar Messages

  • Why can not you thought of improving the design of power adapters for mac book pro from damage so easily?

    why can not you thought of improving the design of power adapters for mac book pro from damage so easily?

    I congratulate you. you are very lucky because I hurt my less than two years taking all possible care. and have found that this has happened to many people more

  • I go settings then store to sign in but I can't sign because it says my apple id has not yet been used before the iTunes store? That's why I cant download apps?

    I go settings then store to sign in but I can't sign because it says my apple id has not yet been used before the iTunes store? That's why I cant download apps?

    That means you have to sign into/view your account and review you account and make sure you have a valid payment method specified in your account.

  • The need to compress to max 1GB is obsolete. You can not determine what and how the space provided on iDisk can be used. You provide it or NOT. If you DO, then let US free, if you don't, then TELL us WHY, so we can choose to go public elsewhere. The stren

    The need to compress to max 1GB is obsolete. You can not determine what and how the space provided on iDisk can be used. You provide it or NOT. If you DO, then let US free, if you don't, then TELL us WHY, so we can choose to go public elsewhere. The strengthood for Apple for the fourthfullness to be legal, which I respect, can become too restrictive in my European eyes. Any hearing around? René

    As was noted in the introductory material for the Apple Support Communities website (presented when you registered), these forums are set up for user-to-user assistance and discussion, not for user-to-Apple communications.
    Suggest you resubmit your position statement to Apple via product feedback for iCloud, which you can access via a link on this page -
    Apple - Feedback
    ...we've all moved to iCloud, isn't it?
    Um, no, we all haven't.

  • HT4759 why can not I find my iPhone using the service iCloud? I write that my phone is not in the network, although in reality it is on the network around the clock! I have an account there!

    why can not I find my iPhone using the service iCloud? I write that my phone is not in the network, although in reality it is on the network around the clock! I have an account there!

    Try turning Find My iPhone off, then back on.

  • HT2589 when I try and log in my i-tunes account or my app store account on my i-phone it says "this apple I.D has not yet been used on the i-tunes store" it gives me 2 optins "cancel" or "review" I press review, enter my bank details but they decline..why

    Hi can anybody help or advise me? I've recently bought the i-phone 4s, I've set up my apple I.D and password but everytime I try and log in it says "this apple I.D has not yet been used on the i-tunes store" I click "review" follow the instructions and agree to the terms and condition's, enter my bank details but it declines every time? I've tried both my accounts and its declined both, this stops me from logging in so I can't download anything for free or buy anything, my sister had the option of skipping the bank details part when she created her apple I.D and just enters her's when buying something, why do I not have that option?? And why is it declining my bank details...please HELP!!!!!

    The details I'm entering are correct, I choose visa as my card type, enter my card number, enter my expiry date and my last 3 digts on the reverse of the card, enter my address and zip code plus my home telephone number, click continue and it says "the payment method you have selected has been declined, please enter another payment method". I've lost count how many times I've tried, I've typed my details in slowly making sure I put them in properlly and it still declines it, I've even tried makeing a new apple I.D and when I get to the bank details part it declines it again so I am forced to press cancel and all details are not saved so its just like I'm hitting a brick wall, its ******* me off!!! I can't even download any of the free app's because to do so you must log in but when I do it says "this apple I.D has not yet been used in the i-tunes store" review my details and can't get past the bank details part. So doesn't log me in, I'm honestly out of ideas

  • Why when i want to download a free app from app store it asks for my apple id and when i give my apple id it then says "this apple id has not yet been used in the itunes store". i dont even know what that means and it will this happen everytime?

    why when i want to download a free app from app store it asks for my apple id and when i give my apple id it then says "this apple id has not yet been used in the itunes store". i dont even know what that means and it will this happen everytime?

    If you are within 14 days of purchase you can still return the iPhone and get the phone that suits your needs, however, I think you will find that no matter which phone you get the content provider will want to know how you are going to pay for future purchases. For Android phones it is Google, and they will certainly want to know.
    To create an Apple account without a credit card see: http://support.apple.com/kb/HT2534

  • Why do I get the message when I try to purchase an app or song on itunes using my iPhone5? "Account Not In This Store. Your account is not valid for use in the U.S. store. You must switch to the New Zealand store before purchasing."

    When I try to buy either an app or a song via iTunes, I have just started getting the following message and I am unable to change the store location. "Account Not In This Store. Your account is not valid for use in the U.S. store. You must switch to the New Zealand store before purchasing."
    This problem has only just started happening. I am on an iPhone5 iOS 7.0.4.
    Very frustrating. Can someone please tell me why & where the change has occured and how to fix it? In the past I have purchased many apps and songs on itunes and never had this problem.
    Thanks a mill :-)

    Click here and follow the instructions to change the iTunes Store country.
    (97125)

  • I have an apple id but ı can not use it for sign in to itunes connect account while publishing my ibook document. Why ı can not login? What can ı do to figure out this problem?

    I have an apple id but ı can not use it for sign in to itunes connect account while publishing my ibook document. Why ı can not login? What can ı do to figure out this problem?

    As note already on the iBA forum [ AppleID for ibooks publishing ], you need two IDs. You can't use your developer ID.
    If you already signed up for books with that ID, you need to talk to Apple to straighten things out.

  • For some reason yesterday and today I can not send mail using the icloud website and help?

    From some reason I can not send emails using the icloud website.  Not sure why any help

    Hi there tamarafromdarien,
    You may find the troubleshooting steps for iCloud Mail in the article below helpful.
    iCloud: Troubleshooting iCloud Mail
    If you can't send mail in OS X Mail
    If you receive this alert or a similar alert when sending a message from your iCloud email address in OS X Mail:
    “This message could not be delivered and will remain in your Outbox until it can be delivered. The reason for the failure is: An error occurred while delivering this message via the smtp server: server name.”
    In OS X Mail, choose Preferences from the Mail menu.
    Click Accounts in the Preferences window.
    Select your iCloud account from the list of accounts.
    Click the Account Information tab.
    Choose your iCloud account from the Outgoing Mail Server (SMTP) pop-up menu. Example: “Derrick Parker (iCloud)”.
    Note: The Outgoing Mail Server (SMTP) menu also includes an Edit SMTP Server List command. If you choose this command, be aware that the iCloud SMTP server won't be among the servers that can be edited. This is normal.
    If you're attaching a large file
    Message attachments can't exceed the maximum size allowed by your email service provider or the recipient's email service provider. The maximum size varies by service provider. Try compressing the filebefore sending it, or send your message without the attachment to verify that there are no issues with sending.
    -Griff W.  

  • HT4759 Hello .. I've been subscribed for ic;oud for 20$ per year and I found it useless for many reasons: that I can not disconnect my mobile while the uploading process and it takes long time for uploading my data .. Its not a reliable system that's why

    Hello .. I've been subscribed for ic;oud for 20$ per year and I found it useless for many reasons: that I can not disconnect my mobile while the uploading process and it takes long time for uploading my data .. Its not a reliable system that's why I need to deactivate the space service and take my money back .. Thanks

    The "issues" you've raised are nothing to do with the iCloud service.
    No service that uploads data allows you to disconnect the device you are uploading from while uploading data. Doing so would prevent the upload from completing. It is a basic requirement for any uploading service that you remain connected to it for uploading to be possible.
    The time it takes to upload data to iCloud is entirely dependent on how fast your Internet connection is, and how much data you are uploading. Both of these things are completely out of Apple's control. Whichever upload service you use will be affected by the speed of your Internet connection.

  • I use firefox 9, why can not I save as image on google image?

    I use firefox 9, why can not I save as image on google image?

    Try the Firefox SafeMode to see how it works there. <br />
    ''A troubleshooting mode, which disables most Add-ons.'' <br />
    ''(If you're not using it, switch to the Default Theme.)''
    * You can open the Firefox 4/5/6/7 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    * Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    '''''If it is good in the Firefox SafeMode''''', your problem is probably caused by an extension, and you need to figure out which one. <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes
    ''When you figure out what is causing that, please let us know. It might help other user's who have that problem.''

  • The latest changes to the function to "Upload to FTP host" has rendered this useless - no point using a program like Muse if I can not easily and automatically upload the work to the webserver!

    The latest changes to the function to "Upload to FTP Host" has rendered this useless - no point using a program like Muse if I can not easily and automatically upload the work to the webserver!  I use BlueHost webhosting that has a primary domain and I have several domains with that account (as sub-domains or folders on this server) - with past versions of Muse when uploading pages it simply opened an alert window to tell me (what I already know) that the website I was uploading does not point to the primary domain BUT NOW Muse tries to create a new separate folder in the root directory of the primary domain - completely ignoring the directory path I am giving it - useless!  Why make these senseless changes to the program - and so often - very frustrating it is like amateur ware!.

    Hi Stephen,
    There are some issues with the upload to ftp via Muse, which the engineering team is aware of and those will be fixed in a future build of Muse. At this point the work around would be to export the html from Muse and then upload via some third party ftp client like filezilla.
    I will recommend that you keep an eye on our release notes page to get more updates on it - Release notes | Adobe Muse CC
    - Abhishek Maurya

  • Why can not scp the spfile to another host?

    Why can not scp the spfile to another host?
    The hostp is physically connect with hosts with a router. Both are RHEL5.0 OS. I copied some files from hostp to hosts successfully a few days ago. But it not work today. The SSH is disabled on both hosts.
    [oracle@hostp db10g] $ cd $ORACLE_HOME/dbs
    [oracle@hostp dbs] $ ls
    hc_db10g.dat init.ora orapwrcatalog spfilercatalog.ora
    hc_rcatalog.dat lkDB10G snapcf_db10g.f
    initdb10g.ora lkRCATALOG snapcf_rcatalog.f
    initdw.ora orapwdb10g spfiledb10g.ora
    [oracle@hostp dbs] $ scp spfiledb10g.ora hosts:/u01/app/oracle/product/10.2.0/db_1/dbs/
    ssh: connect to host hosts port 22: No route to host
    lost connection

    I ping the hostp from the hosts, it is reachable; But I ping hosts from the hostp, it is unreachable. The follows are some information for diagnosys.
    [root@hostp oracle]# route -n
    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use Iface
    192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
    169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
    0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
    [oracle@hostp ~]$ ping hosts
    PING hosts (192.168.0.3) 56(84) bytes of data.
    CFrom 192.168.0.107 icmp_seq=2 Destination Host Unreachable
    From 192.168.0.107 icmp_seq=3 Destination Host Unreachable
    From 192.168.0.107 icmp_seq=4 Destination Host Unreachable
    --- hosts ping statistics ---
    9 packets transmitted, 0 received, +6 errors, 100% packet loss, time 7997ms, pipe 3
    [oracle@hostp ~]$ cat /etc/hosts
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1 localhost.localdomain localhost
    ::1 localhost6.localdomain6 localhost6
    192.168.0.2 hostp
    192.168.0.3 hosts
    [oracle@hostp ~]$ ping hostp
    PING hostp (192.168.0.2) 56(84) bytes of data.
    64 bytes from hostp (192.168.0.2): icmp_seq=1 ttl=64 time=0.394 ms
    64 bytes from hostp (192.168.0.2): icmp_seq=2 ttl=64 time=0.194 ms
    64 bytes from hostp (192.168.0.2): icmp_seq=3 ttl=64 time=0.190 ms
    --- hostp ping statistics ---
    3 packets transmitted, 3 received, 0% packet loss, time 2002ms
    rtt min/avg/max/mdev = 0.190/0.259/0.394/0.096 ms
    [oracle@hostp ~]$ cat /etc/hosts
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1 localhost.localdomain localhost
    ::1 localhost6.localdomain6 localhost6
    192.168.0.3 hosts
    192.168.0.2 hostp

  • This Apple ID has not yet been used with the App Store. i cant download anything from the store why is that??????

    i cant download anything from the store.whenever i try to log in they say my apple id has not yet been used with the app store........why is it like that???does anyone know how to fix this............can someoen pls help me with this

    The following may help: http://support.apple.com/kb/HT2589

Maybe you are looking for

  • How to know column name (not an expression) used by function-based index?

    Hi guys, Is there any way to know exact column name used by FBI? If I correct, there is SYS.ICOLDEP$ table that has mapping between index/table columns, but I don't see how it could be uniquely joined with the rest. I know about USER_IND_EXPRESSIONS,

  • Connecting Dual Monitors T500

    I undestand the T500 does have a displayport, as well as a VGA output. So I could easily connect two monitors for a dual monitor setup. But what would I do in order to connect two monitors digitally? I currently have a 22" WSXGA screen and using the 

  • Urgent!  Details of english sort orders in SQL databases

    I need (for reasons that would take too long to explain and probably breach company security) to duplicate in Java (preferably a Comparator) the sorting order used by a SQL database. I can find lots of things telling me how to tell a database to use

  • Extracting material classification data for given sales order

    Hi Experts, Requirement is I Need to display a report with material and its characteristics values for given sales order. Please let me know if there is any FM/standard tables involved to display the below fields. Sales order number, Sales order line

  • RV180W with 1.0.2.6 Firmware - Static DHCP problem

    Today I installed the 1.0.2.6 Firmware on a RV180W. I only have now two problems regarding the Static DHCP support in the GUI. 1. Via the Networking > LAN (Local Network) > Static DHCP I have no buttons to Add a new static Lease. 2. Via the Networkin