Newbie trying to use JDBC

Hi,
I'm trying to run the Employee sample that was provided as example in Oracle. I've instaled Oracle 8.0.5 (client) on a NT, JDK and JRE 1.1.8. It compiles fine, but when I try to run I get:"
xception in thread "main" java.lang.UnsatisfiedLinkError: get_client_server_nls_ratio
at oracle.jdbc.oci7.OCIDBAccess.getNlsRatio(OCIDBAccess.java:1577)
at oracle.jdbc.oci7.OCIDBAccess.logon(OCIDBAccess.java:263)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:127)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:170)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:148)
at java.sql.DriverManager.getConnection(Compiled Code)
at java.sql.DriverManager.getConnection(DriverManager.java:126)
at Employee.main(Compiled Code)
Does anyone has any ideia why is it happening? Thanks a lot!

<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Gustavo Badauy ([email protected]):
Hi,
I'm trying to run the Employee sample that was provided as example in Oracle. I've instaled Oracle 8.0.5 (client) on a NT, JDK and JRE 1.1.8. It compiles fine, but when I try to run I get:"
See my answer:
java.lang.UnsatisfiedLinkError:
get_client_server_nls_ratio topic submitted by Craig Nelsen
xception in thread "main" java.lang.UnsatisfiedLinkError: get_client_server_nls_ratio
at oracle.jdbc.oci7.OCIDBAccess.getNlsRatio(OCIDBAccess.java:1577)
at oracle.jdbc.oci7.OCIDBAccess.logon(OCIDBAccess.java:263)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:127)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:170)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:148)
at java.sql.DriverManager.getConnection(Compiled Code)
at java.sql.DriverManager.getConnection(DriverManager.java:126)
at Employee.main(Compiled Code)
Does anyone has any ideia why is it happening? Thanks a lot!<HR></BLOCKQUOTE>
null

Similar Messages

  • Newbie trying to use tomcat to run jsp

    I'm just trying to setup Tomcat on my machine, and i've run into a couple of issues.
    (1) if i type in http://localhost:9000/test in IE, it gives me an error saying TCP_ERROR and how the web server is possibly down. however if i try it in Netscape, the page shows up fine. I read in the running.txt file that it had something to do with the LAN settings, but i have no idea what has to be done in there to get it to work??
    (2) the second issue is, if i give someone the url http://<IP>:9000/test that is using another machine, what has to be done for them to see it? i had someone on another machine try it and they got page could not be found.
    TIA

    >
    (1) if i type in http://localhost:9000/test in IE, it
    gives me an error saying TCP_ERROR and how the web
    server is possibly down. Do you mean HTTP 500 error?
    however if i try it in
    Netscape, the page shows up fine. I read in the
    running.txt file that it had something to do with the
    LAN settings, but i have no idea what has to be done
    in there to get it to work??
    No LAN settings are needed. You're doing something else wrong. Is there a TOMCAT_HOME/webapps/test directory set up? Unless you created it, there's no such URL in Tomcat's setup.
    (2) the second issue is, if i give someone the url
    http://<IP>:9000/test that is using another machine,
    what has to be done for them to see it? i had someone
    on another machine try it and they got page could not
    be found.
    TIA If they can see the machine on the network, you don't have to do anything else special. If they can ping it, they can talk to Tomcat.
    If you're a newbie, as your topic says, why are you changing things like the Tomcat port? Leave it as the default until you have Tomcat under your belt. - MOD

  • Newbie: trying to use XML in a Line Series.

    So, I have a similar question to my last one, how to connect some XML from an RPC to a line series. The XML comes across fine. Problem is, why does it not work below?
    The XML is simple, and I use dataProvider="{tsRPC.lastResult.TIMESERIES}"....then yField="DataPoint.Value"...but it does not work
    I have seen some examples that use the "data.something"...where data must be some internal object. I tried various combinations of everything.
    <TIMESERIES>
      <DataPoint Date="38000" Value="34.51"/>
      <DataPoint Date="38001" Value="35.06"/>
    </TIMESERIES>
        <mx:HTTPService id="tsRPC"
            url="http://localhost:6574/Test2/TimeSeriesServer"
            resultFormat="e4x">
        </mx:HTTPService>
    <mx:Panel title="LineChart and AreaChart Controls Example3"
            height="491" width="729" layout="horizontal" x="350" y="84">
            <mx:LineChart id="linechart" height="100%" width="100%"
                paddingLeft="5" paddingRight="5"
                showDataTips="true" dataProvider="{tsRPC.lastResult.TIMESERIES}">      
            <mx:horizontalAxis>
                <mx:CategoryAxis id="ca" categoryField="DataPoint.Date" title="Date" />
            </mx:horizontalAxis>
                <mx:series>
                    <mx:LineSeries yField="DataPoint.Value" form="curve" displayName="Profit" lineStroke="{s1}"/>
                </mx:series>
            </mx:LineChart>
            <mx:Legend dataProvider="{linechart}"/>
        </mx:Panel>

    thanks paul.
    I am learning now about e4x. For those who don't know...
    http://www.actionscript.org/resources/articles/222/1/Intro-to-E4X/Page1.html
    For those that don't know E4X stands for ECMAScript for XML and this specification introduces some new functionality that makes working with XML a lot simpler. New to AS3 are the XML, XMLList,QSpace and Namespace E4X classes. E4X not only makes life simpler but provides greater code consistency and familiarity (we can use dot syntax more similiar to ActionScript).

  • Complete Newbie trying to use Ultra Key

    Hello,
    I am a total newbie, and am working on learning to use my new green screen & lights :-) So far, I am able to get the vast majority of the green out.
    Here is a shot of the green background:
    Here is my background:
    Here is my end result:
    You'll notice the fuzzy remanants of the green screen after using Ultra Key filter.
    How do I get rid of this? Any help is much appreciated
    Thanks,

    You do need to start of with a relatvely uncreased, evenly lit backdrop.  I can see why you're having problems. 
    With just one eyedrop sample...
    I would try and create a garbage matte to mask out as much unwanted background as possible and then try the key on the remaining content.

  • Newbie trying to use terminal

    Hello fellow Mac user.
    So I'm working on a projekt in logic, and a friend of my has recorded drums and are sending me audiofiles in a .zip file.
    However, when I tried to unzip it a new file is created that is called .cpgz. So i looked around on various forums witch said I should use Terminal. I used the following commands:
    cd ./desktop
    unzip file.zip
    Then I get the following message:
    Archive:  file.zip
       skipping: audio1       need PK compat. v4.6 (can do v2.1)
       skipping: audio2        need PK compat. v4.6 (can do v2.1)
       skipping: audio3    need PK compat. v4.6 (can do v2.1)
       skipping: audio4        need PK compat. v4.6 (can do v2.1)
       skipping: audio5      need PK compat. v4.6 (can do v2.1)
    My-MacBook-Pro:desktop namename$
    I do not understand the problem, and would apritiate some help on what I'm doing wrong,
    Thank you, and sorry if there are some spelling and/or gramatical errors
    //Wille

    @blomman007: you should be able to unpack the archive with the TheUnarchiver: it supports cpgz - archives. It's available from the app store: https://itunes.apple.com/app/the-unarchiver/id425424353?mt=12&ls=1

  • Help...Newbie trying to use iDVD

    I have sent over from iPhoto about 800 pictures to iDVD. I made a nice intro screen (the baby mobile), previewed it (it works fine), then select burn. It takes several hours to encode...then NOTHING. It doesn't burn the DVD. After several attempts, I tried encoding it to a disk image...still nothing. I assume this is user error (likely). Or it may be too many picutres, although the total size of the project that is developed (the .mov) is less than a GB. Any help would be greatly appreciated. This is a project for my wife's Valentines Gift...so time is of the essence
    PowerBook   Mac OS X (10.4.4)  

    Hi Mark:
    Welcome to discussions!
    You may want to try a different media ( like DVD-R ) and you should read these links.
    iDVD: Troubleshooting issues with burning discs
    http://docs.info.apple.com/article.html?artnum=302925
    What are some common reasons for problems when creating a DVD?
    http://www.kentidwell.com/idvd4/#faq_20
    Get back to us if you have more problems!
    Sue

  • Newbie trying to use javac

    I installed the Java development kit, it did not work so I uninstalled everything saying java from the Add/Remove programs menu.
    Then I installed the program jdk-6u12-windows-i586-p.exe. I installed it to the C:\jdk1.6.0 directory. (I had previously installed it under Program files)
    I did a file search for javac.exe under the c:\jdk1.6.0 directory, which it could not find. Am I missing installing something?
    I added the environment path string c:\jdk1.6.0\bin to the string.
    What am I missing?

    Google!
    This is one of the most frequently asked questions. There have been numerous posts about it as well as step-by-step instructions on how to set everything up on Sun's website. Please do a little research and find the answer yourself instead making someone waste their time repeating once again what is already on the web.

  • SQL error when using JDBC

    I am trying to use JDBC to perform an update on a single row, but I keep getting the following exception:
    java.sql.SQLException: ORA-03120: two-task conversion routine: integer overflow
    at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java, Compiled Code)
    at oracle.jdbc.ttc7.Oall7.receive(Oall7.java, Compiled Code)
    at ...
    I cannot find any flaws in the sql-string I am trying to execute, and the exact same string works fine in SQL+. Can anyone please explain this?
    I am using Oracle8.04 and the 'jdbc80520-nt' driver.

    Can u post your sql Query.

  • Getting socket error while trying to get oracle connection using JDBC

    hi,
    I am getting following socket read error while trying to get database connection using JDBC. This happening with jdk1.5.0_12 version with Oracle 9i
    following is the stacktrace...
    Thread t@92: (state = IN_NATIVE)
    - java.net.SocketInputStream.socketRead0(java.io.FileDescriptor, byte[], int, int, int) @bci=0 (Compiled frame; information may be imprecise)
    - java.net.SocketInputStream.read(byte[], int, int) @bci=84, line=129 (Compiled frame)
    - oracle.net.ns.Packet.receive() @bci=31 (Compiled frame)
    - oracle.net.ns.DataPacket.receive() @bci=1 (Interpreted frame)
    - oracle.net.ns.NetInputStream.getNextPacket() @bci=48 (Compiled frame)
    - oracle.jdbc.driver.T4CMAREngine.unmarshalSB1() @bci=1, line=1070 (Compiled frame)
    - oracle.jdbc.driver.T4CStatement.doOall8(boolean, boolean, boolean, boolean) @bci=617, line=207 (Compiled frame)
    - oracle.jdbc.driver.T4CStatement.executeForDescribe() @bci=39, line=790 (Compiled frame)
    - oracle.jdbc.driver.OracleStatement.executeMaybeDescribe() @bci=106, line=1039 (Interpreted frame)
    - oracle.jdbc.driver.T4CStatement.executeMaybeDescribe() @bci=11, line=830 (Interpreted frame)
    - oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout() @bci=128, line=1132 (Interpreted frame)
    - oracle.jdbc.driver.OracleStatement.executeQuery(java.lang.String) @bci=76, line=1272 (Interpreted frame)
    any help would appreciated. thanks in advance

    I do not have exact exception message.
    additionally, i have got following the tomcat log file:
    INFO - Resource pool cleanup thread just woke up.
    Nov 1, 2008 3:41:52 AM org.apache.tomcat.util.threads.ThreadPool logFull
    SEVERE: All threads (100) are currently busy, waiting. Increase maxThreads (100) or check the servlet status
    INFO - Resource pool cleanup thread just woke up.
    thanks in advance

  • Using JDBC with Visual Studio J++ doesn't work.

    G'day all,
    I am trying to create an applet that extracts data from an Access 2000 database, which is then displayed to the applet. Currently I am using Visual Studio J++ 6.0 as my development platform.
    I am having trouble trying to connect to my Access 2000 database, and I'm searching for some example code on how to do this.
    I'm pretty much a Java newbie, so all my attempts have failed. Also since all the example code I have is for a JDK implementation I'm not sure if my J++ complier is throwing an error on the basis that the code is not Misro$oft.
    Does anyone know where I can source code for such a solution, for connection to an Access 2000 database under a J++ 6.0 compiler?
    Any details would be greatly appreciated.

    Ripperjack,
    You're limited by the lack of support for the java standard in Microsoft's J++ 6.0's VM. I tried to get JDBC to work for a while in J++ and was unable to. I finally broke down and wrote the thing using ADO. The ADO interface is very intuative for ADO programmers and in fact the syntax is similar to JDBC.
    Later I regretted using J++ because I wanted to make the code portable and relieve my reliance on the Microsoft libraries. I rewrote some of my applications using JDK 2 and JDBC, and am currently rewriting the rest. You can use the ODBC-JDBC bridge with JDK 2 and get to that Access database.
    -Ryan

  • Help: Connecting Tomcat to CA-IDMS Using JDBC Type 4 Drivers (JNDI)

    Hi there,
    I have a rather interesting / complex problem......creating a connection to CA-IDMS from Tomcat using JDBC type 4 drivers (CA provide the type 4 driver).
    We have a zSeries 9 IBM mainframe running CA-IDMS r16.1, and I need to connect to the IDMS from Tomcat (running on Linux) using the JDBC Type 4 drivers provided by CA.
    At this stage I am struggling with the actual setup and configuration of Tomcat’s server.xml and web.xml files. These are the files where the JDBC configuration is set (I think). I have to setup the CA-IDMS part of the configuration, but that is a different problem. Basically there is a TCP/IP listener on the IDMS, waiting for incoming connections from the JDBC type 4 driver.
    I set up a Tomcat to MySQL connection using MySQL Connector / J, which is a similar kind of process to what I am trying to achieve with IDMS. MySQL connector / J came with a jar file which is placed in Tomcat’s lib folder, and then the JDBC setup for the web application is created in Tomcat's server.xml and web.xml files. You can then connect to the MySQL database using JSP and the configured JDBC driver / connection. The CA-IDMS Server comes with an idmsjdbc.jar file, which I think is the JDBC typr 4 driver. I think it needs to be placed in the Tomcat /lib folder, but I don’t know how to set up the configuration.
    There is a JDBC DriverManager which allows JDBC drivers to connect to CA-IDMS. The DriverManager recognises the following syntax:
    jdbc:idms://hostname:port/database
    This allows the JDBC driver running within Tomcat to connect to the IDMS which is running on the IDM mainframe. CA IDMS r16 supports direct connections from the Type 4 JDBC driver to the Central Version on IDMS. "hostname" is the DNS name or IP address of the machine where the CV is running, and "port" is the IP port that was specified for the listener PTERM (setup on the IDMS side).
    There is a caidms.properties file for the JDBC driver, which is used to specify user ID, password, and optional accounting information. It can also be used to specify physical connection information, allowing an application to connect to a CA-IDMS database without requiring the definition of an ODBC style data source. However, I don’t know where to place this file within the Tomcat setup.
    There is also an IdmsDataSource class. I don’t know where to configure this or how to set it up; the CA-IDMS Server manual states the following:
    This class implements the JDBC DataSource interface. It is used with an application server (Tomcat) providing Java Naming and Directory Interface (JNDI) naming service to establish a connection to a CA IDMS database. IdmsDataSource properties conform to the Java Beans naming conventions and are implicitly defined by public “setter” and “getter” methods. For example, the “description” property, which is required for all DataSource implementations, is set using the setDescription(String) method. The application server may use the java.lang.reflection methods to discover DataSource properties and provide an interface to set them, or may simply require that they are defined in some configuration file. IdmsDataSource properties are used to specify the connection parameters. These properties are the equivalent of the DriverPropertyInfo attributes described in the previous section and can be used to completely define the parameters needed to connect to a database. Like a URL, an IdmsDataSource object can also reference an “ODBC” style data source name, where the connection parameters are defined in the configuration file on Linux.
    Is there anyone that can try to point me in the right direction to setting up the JDBC connection? I am totally new to Java and so the instructions are not making much sense at the moment. Any help, hints, tips…..anything will be greatly appreciated as I have just hit a brick wall here. I can't find much to do with setting up the CA-IDMS Server JDBC type 4 driver online either....if anyone can point me to some resources that would also be extremely useful.
    Kind regards
    Jp

    You say you've managed to get the JDBC driver working
    in an application but not in a JSP. You also say that
    the error you get is
    "com.microsoft.jdbc.sqlserver.SQLServerDriver".
    I'd be willing to bet that the exception that you have
    got is a ClassNotFoundException. I.E. your application
    server hasn't found the JDBC driver classes. The
    application server probably doesn't use your current
    CLASSPATH to look for classes. It will be setup within
    the application server in some way and you'll need to
    check your app server documentation to see how it is
    done.
    Try replacing
    e.printStackTrace();with
    e.printStackTrace(out);to get a full stack trace of your error.
    ColTried it. Got this error when I tried to run the JSP.
    Incompatible type for method. Can't convert javax.servlet.jsp.JspWriter to java.io.PrintWriter.
              e.printStackTrace(out);
    I'm currently using Apache Tomcat 4.0.3 as my JSP/Servlet Container.
    I'm also using Type 4 MS SQL Server 2000 JDBC driver version 2.0 on my NT4.0 Server.
    Do I need to set my JDBC driver in my container? if so, how do I do that?

  • How can i put a file into blob using jdbc !?

    Hi
    i tried to put a file into blob , but got a problem.....
    My environment:windows 2000pro,JBuilder 5.0 enterprise,oracle 8.1.6,(not install oracle jdbc driver )
    a part of program(my program is very uglily,if anyone want,later i paste it ba....~_~)
    //Statement stmt2=null;
    //Resultset rs2;
    //opa1 is the blob data
    void saveBlobTableToDisk(Connection con) {
    try {
    stmt2=con.createStatement();
    sqlStr2="SELECT * FROM emp3 where id=1004";
    rs2=stmt2.executeQuery(sqlStr2);
    while (rs2.next()) {
    Blob aBlob=rs2.getBlob("opa1");
    i got the exception :
    " null
    java.lang.UnsupportedOperationException
         at sun.jdbc.odbc.JdbcOdbcResultSet.getBlob(JdbcOdbcResultSet.java:4174)
         at test3.Frame1.saveBlobTableToDisk(Frame1.java:48)
         at test3.Frame1.<init>(Frame1.java:26)
         at test3.Application1.<init>(Application1.java:5)
         at test3.Application1.main(Application1.java:8) "
    and the windows pop up a messagebox said that(about) my memory "0x09af007f" could not read, error in javaw.exe .
    Later i used (ResultSet)getBinaryStream() to solve it. but getBinaryStream() only return a InputStream,so that i can make blob to a file,but i can't make a file to blob using jdbc.....
    I am very stupid that installing sun java, oracle jdbc driver etc....(because i must set a lot of thing such as classpath,java_home etc), Can i only use JBuilder to do that ?
    Or i must install oracle jdbc driver ?
    Thanks.
    D.T.

    My guess here is that Sun's JDBC-ODBC bridge doesn't handle the BLOB datatype. Most ODBC drivers don't support that datatype, so I wouldn't expect the bridge to.
    Is there a reason that you can't use the Oracle driver?
    Justin

  • Error while loading xml files using JDBC

    Hi,
    I am trying to load xml files into an xmltype table using JDBC calls and am getting this error for some files
    LPX-00200: could not convert from encoding UTF-8 to UCS2
    The xml files and our database are both UTF-8 encoded. The version of oracle that we have here is 9.2.0.6
    Any suggestions in this matter will be greatly appreciated.
    Thanks,
    Uma

    I also experienced this problem and unfortunately this solution didn't work for me given that the tag you suggested was already on the XML file.

  • Error while updating database using jdbc receiver adapter

    Hi All,
    I am trying to update a single record using jdbc receiver adapter.
    This is my the message that is getting created..
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:Data xmlns:ns0="urn:Test">
    - <STATEMENT>
    - <TABLENAME ACTION="UPDATE_INSERT">
      <TABLE>ORDERS</TABLE>
    - <ACCESS>
      <OrderID>99999</OrderID>
      <CustomerID>VICTE</CustomerID>
      <EmployeeID>3</EmployeeID>
      <ShipAddress>VICTE</ShipAddress>
      </ACCESS>
    - <KEY>
      <OrderID compareOperation="EQ">99999</OrderID>
      <ShipAddress compareOperation="EQ">VICTE</ShipAddress>
      </KEY>
      </TABLENAME>
      </STATEMENT>
      </ns0:Data>
    But in Adapter Monitoring i am getting the following error..
    <i>Error while parsing or executing XML-SQL document: Error processing request in sax parser: Error when executing statement for table/stored proc. 'ORDERS' (structure 'STATEMENT'): java.sql.SQLException: [Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near 'VICTE'.</i>
    Regards,
    Rahul

    Rahul,
    > In this case i believe the interface has to be synch.
    > So what will the response message type be like..
    Not necessary. UPDATE can be asynch as well.
    Can you turn the trace on like pointed by Michal and then you can see the Query in the Audit Log of the adapter montioring. Try to execute the same query from your DB Client like TOAD and see what is the Syntax error you are getiing.!
    The problem looks like some field has some dataype / column name mismatch.
    Regards
    Bhavesh

  • Creation of tables using JDBC or SQLJ in webdynpro application

    Hi,
    I am trying to create tables in javadictionary(MaxDB)using my WebDynpro application.I tried creating tables using SQLJ and JDBC.But I was not able to do it.I can select and insert data into already created tables.
    Whwn I tried creating a table using JDBC I encountered the following exception.
    com.sap.sql.log.OpenSQLException: The SQL statement "CREATE TABLE TMP_DEPID (DEPID varchar(10) NOT NULL,DEPNAME VARCHAR(25))" contains the syntax error[s]: Open SQL syntax error: CREATE ... TABLE is not supported
    SQL syntax error: "VARCHAR" is a reserved keyword and cannot be used as an unquoted identifier
    Does this mean that creating tables is not supported?
    Can anyone help me in this matter?
    Thanks in advance,
    regards
    ~Pradeep Shetty

    Hi Pradeep,
    Yes, OpenSQL does not support creation of tables. But why would you need to create tables at runtime?! The natural way is to create the model at design time of your application, i.e. with the Java DataDictionary.
    However, if for any reason you really need to create database tables at runtime, you can achieve this by using a non-OpenSQL datasource, e.g. you could create a VendorSQL one and use it to obtain JDBC connections in your app. See also http://help.sap.com/saphelp_nw04/helpdata/en/c0/3ad4d5cdc66447a188b582aad537d3/frameset.htm.
    Hope that helps!
    Vladimir

Maybe you are looking for

  • How to print on HP deskjet 100 mobile L411 from android tablet

    How to print on HP deskjet 100 mobile L411 from Asus Transformer android tablet Pablo_B

  • Pls help - colour management suite does not activate

    Have the following problem with the bridge colour management properties opening:- am in Bridge CS4- inside dropdown menu "creative suite-colour management" photoshop and illustrator are installed and in use I cannot open this menu section as I get th

  • What happened to the Finder Window?

    Tonight I found that my Finder is not working the way it did the last time I looked. Before, when I clicked on the Finder icon in the dock, the Finder Window would open on the left side of the screen. Now, it opens as a window that looks more like a

  • External drive "Events" issue

    When I put the events folder on an external drive, I can see and use everything in iMovie. Except for "Export film". Here I get error code -50. This has something to do with files being on an external drive, but what exactly I do not understand. Plea

  • Converting excel file to PDF using Adobe 9 standard on windows XP

    I have installed office 2010 SP1 on a computer and it already has adobe 9 installed. user never had problem with converting multi sheet excel workbook to PDF using MSoffice 2003. Now, when we open excel files in EXCEL 2010 then try to print it to ado