Oracle Scrollable ResultSet Chinese Charater Help

 

I've got the same problems using Sun jdk 1.3.0 and WLS 6.0, with
Oracle 8.1.6 r2 and thin drivers 8.1.6 from Oracle.
I've changed to oracle thin drivers version 8.1.7 and
it works all fine.
I recommend you to update your drivers to 8.1.7 jdbc thin 2.0
version.
Regards
jsanz
"Richard" <[email protected]> wrote:

Similar Messages

  • Chinese Charater Help

    My Problem:
    if i use the following statement, my Chinese Charaters become hexadecimal numbers:
    stmt = conn.createStatement(OracleResultSet.TYPE_SCROLL_INSENSITIVE, OracleResultSet.CONCUR_READ_ONLY);
    if i use the following statement, my Chinese Charaters are OK, but i can not use JDBC20 methods(such as abosolute()):
    stmt = conn.createStatement();
    My environment:
    Oracle 8i,
    Oracle Native Language Support(NLS): Simplified Chinese,
    Oracle thin driver: oracle.jdbc.driver.OracleDriver,
    url: jdbc20:oracle:thin:@192.168.104.8:1521:ora
    WebLogic 5.1,
    Win2K professional,
    JDK 1.2.2
    I read the oracle driver docs, tried to use oracle.sql.CharaterSet to translate, but it does not work...:(
    My code:
    Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
    Properties prop = new java.util.Properties();
    prop.setProperty("user", "test");
    prop.setProperty("password", "test");
    conn =
    DriverManager.getConnection("jdbc20:oracle:thin:@192.168.104.8:1521:ora", prop);
    System.out.println("conn ok");
    stmt = conn.createStatement
    (OracleResultSet.TYPE_SCROLL_INSENSITIVE,OracleResultSet.CONCUR_READ_ONLY);
    rs = stmt.executeQuery("select * from classinfo1 where parentid = '0'");
    rs.next();
    int oracleID = CharacterSet.ZHS16CGB231280_CHARSET;
    CharacterSet gb = CharacterSet.make(oracleID);
    try{
    String ss = rs.getString("CLASSINDEX") ; /*this is the hexadecimal number */
    CHAR ch = (oracle.sql.CHAR) rs.getOracleObject("CLASSINDEX");
    ch = new CHAR(ch.getBytes(), gb);
    System.out.println(ch.toString());/* this is also hexadecimal numbers */
    } catch (Exception e) {
    System.out.println(e);
    Thanks in advance.
    null

    I've got the same problems using Sun jdk 1.3.0 and WLS 6.0, with
    Oracle 8.1.6 r2 and thin drivers 8.1.6 from Oracle.
    I've changed to oracle thin drivers version 8.1.7 and
    it works all fine.
    I recommend you to update your drivers to 8.1.7 jdbc thin 2.0
    version.
    Regards
    jsanz
    "Richard" <[email protected]> wrote:

  • How to insert chinese charater in a table in oracle 10g

    Hi,
    plez help me to insert chinese charater in the databsse..

    Pl describe your requirements in more detail :-) How do you want this data to be inserted in the database - SQL*Plus, SQLLoader, some front-end form or app ? etc
    HTH
    Srini

  • Scrollable resultsets are not supported in my application

    I want to use scrollable resultsets.But when i am writing the code
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              String url = "jdbc:odbc:pmora";
              Connection con = DriverManager.getConnection(url,
    "jbel", "jbel");
              Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,
    ResultSet.CONCUR_READ_ONLY);
    ResultSet srs = stmt.executeQuery(
    "SELECT COF_NAME, PRICE FROM COFFEES");
    while (srs.next()) {
         String name = srs.getString("COF_NAME");
         float price = srs.getFloat("PRICE");
         System.out.println(name + " " + price);
    To get support for scrollable resultsets, what driver we should use?Where we can get it?
    #database is oracle 8
    #driver version 2
    #jdbcodbcbridgedriver
    #While running the class, The followingmessage is getting displayed
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6D366658
    Function=[Unknown.]
    Library=D:\j2sdk1.4.0_01\jre\bin\client\jvm.dll
    NOTE: We are unable to locate the function name symbol for the error
    just occurred. Please refer to release documentation for possible
    reason and solutions.
    Current Java thread:
         at sun.jdbc.odbc.JdbcOdbc.setStmtAttrPtr(Native Method)
         at sun.jdbc.odbc.JdbcOdbc.SQLSetStmtAttrPtr(JdbcOdbc.java:4676)
         at sun.jdbc.odbc.JdbcOdbcResultSet.setRowStatusPtr(JdbcOdbcResultSet.java:4473)
         at sun.jdbc.odbc.JdbcOdbcResultSet.initialize(JdbcOdbcResultSet.java:171)
         at sun.jdbc.odbc.JdbcOdbcStatement.getResultSet(JdbcOdbcStatement.java:423)
         - locked <02A3D7F0> (a sun.jdbc.odbc.JdbcOdbcStatement)
         at sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(JdbcOdbcStatement.java:253)
         at ScrollableRS.main(ScrollableRS.java:27)
    Dynamic libraries:
    0x00400000 - 0x00406000      D:\j2sdk1.4.0_01\bin\java.exe
    0x77F50000 - 0x77FF9000      C:\WINNT\System32\ntdll.dll
    0x77E60000 - 0x77F45000      C:\WINNT\system32\kernel32.dll
    0x77DD0000 - 0x77E5B000      C:\WINNT\system32\ADVAPI32.dll
    0x77CC0000 - 0x77D35000      C:\WINNT\system32\RPCRT4.dll
    0x77C10000 - 0x77C63000      C:\WINNT\system32\MSVCRT.dll
    0x6D330000 - 0x6D445000      D:\j2sdk1.4.0_01\jre\bin\client\jvm.dll
    0x77D40000 - 0x77DCD000      C:\WINNT\system32\USER32.dll
    0x77C70000 - 0x77CB0000      C:\WINNT\system32\GDI32.dll
    0x76B40000 - 0x76B6C000      C:\WINNT\System32\WINMM.dll
    0x6D1D0000 - 0x6D1D7000      D:\j2sdk1.4.0_01\jre\bin\hpi.dll
    0x6D300000 - 0x6D30D000      D:\j2sdk1.4.0_01\jre\bin\verify.dll
    0x6D210000 - 0x6D228000      D:\j2sdk1.4.0_01\jre\bin\java.dll
    0x6D320000 - 0x6D32D000      D:\j2sdk1.4.0_01\jre\bin\zip.dll
    0x6D250000 - 0x6D25A000      D:\j2sdk1.4.0_01\jre\bin\JdbcOdbc.dll
    0x1F7B0000 - 0x1F7E1000      C:\WINNT\System32\ODBC32.dll
    0x77340000 - 0x773CB000      C:\WINNT\system32\COMCTL32.dll
    0x763B0000 - 0x763F5000      C:\WINNT\system32\comdlg32.dll
    0x772D0000 - 0x77333000      C:\WINNT\system32\SHLWAPI.dll
    0x773D0000 - 0x77BC4000      C:\WINNT\system32\SHELL32.dll
    0x71950000 - 0x71A34000      C:\WINNT\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.0.0_x-ww_1382d70a\comctl32.dll
    0x1F850000 - 0x1F866000      C:\WINNT\System32\odbcint.dll
    0x0AF30000 - 0x0AF99000      E:\Oracle\Ora81\BIN\SQORA32.DLL
    0x60600000 - 0x60682000      E:\Oracle\Ora81\BIN\oracore8.dll
    0x60800000 - 0x60848000      E:\Oracle\Ora81\BIN\oranls8.dll
    0x10000000 - 0x1001A000      E:\Oracle\Ora81\BIN\OCI.dll
    0x0B0B0000 - 0x0B0BF000      E:\Oracle\Ora81\bin\sqresUS.dll
    0x60400000 - 0x60502000      E:\Oracle\Ora81\bin\OraClient8.Dll
    0x0B1D0000 - 0x0B1D6000      E:\Oracle\Ora81\bin\oravsn8.dll
    0x60200000 - 0x60264000      E:\Oracle\Ora81\bin\oracommon8.dll
    0x60000000 - 0x6011F000      E:\Oracle\Ora81\bin\orageneric8.dll
    0x60350000 - 0x60356000      E:\Oracle\Ora81\bin\orawtc8.dll
    0x60A00000 - 0x60A2B000      E:\Oracle\Ora81\bin\oranl8.dll
    0x60B00000 - 0x60BAA000      E:\Oracle\Ora81\bin\oran8.dll
    0x60E00000 - 0x60E10000      E:\Oracle\Ora81\bin\orancrypt8.dll
    0x61100000 - 0x61137000      E:\Oracle\Ora81\bin\oranro8.dll
    0x71AD0000 - 0x71AD8000      C:\WINNT\system32\WSOCK32.dll
    0x71AB0000 - 0x71AC5000      C:\WINNT\system32\WS2_32.dll
    0x71AA0000 - 0x71AA8000      C:\WINNT\system32\WS2HELP.dll
    0x0B1E0000 - 0x0B23E000      E:\Oracle\Ora81\bin\orannzsbb8.dll
    0x61500000 - 0x6150E000      E:\Oracle\Ora81\bin\oranldap8.dll
    0x61700000 - 0x6171C000      E:\Oracle\Ora81\bin\oraldapclnt8.dll
    0x771B0000 - 0x772CA000      C:\WINNT\system32\ole32.dll
    0x77120000 - 0x771AB000      C:\WINNT\system32\OLEAUT32.dll
    0x61900000 - 0x61906000      E:\Oracle\Ora81\bin\oranhost8.dll
    0x62100000 - 0x62106000      E:\Oracle\Ora81\bin\oranoname8.dll
    0x0B240000 - 0x0B246000      E:\Oracle\Ora81\bin\orancds8.dll
    0x62300000 - 0x62306000      E:\Oracle\Ora81\bin\orantns8.dll
    0x62500000 - 0x62508000      E:\Oracle\Ora81\bin\orannds8.dll
    0x0B250000 - 0x0B26C000      E:\Oracle\Ora81\bin\orannms8.dll
    0x62700000 - 0x62741000      E:\Oracle\Ora81\bin\ORATRACE8.dll
    0x62900000 - 0x62B1B000      E:\Oracle\Ora81\bin\orapls8.dll
    0x63100000 - 0x63108000      E:\Oracle\Ora81\bin\oraslax8.dll
    0x63200000 - 0x63272000      E:\Oracle\Ora81\bin\orasql8.dll
    0x1F800000 - 0x1F818000      C:\WINNT\System32\odbccp32.dll
    0x77C00000 - 0x77C07000      C:\WINNT\system32\VERSION.dll
    0x71A50000 - 0x71A8B000      C:\WINNT\System32\mswsock.dll
    0x76F20000 - 0x76F45000      C:\WINNT\System32\DNSAPI.dll
    0x76D60000 - 0x76D75000      C:\WINNT\System32\iphlpapi.dll
    0x76DE0000 - 0x76E06000      C:\WINNT\System32\netman.dll
    0x76D40000 - 0x76D56000      C:\WINNT\System32\MPRAPI.dll
    0x76E40000 - 0x76E6F000      C:\WINNT\System32\ACTIVEDS.dll
    0x76E10000 - 0x76E34000      C:\WINNT\System32\adsldpc.dll
    0x71C20000 - 0x71C6F000      C:\WINNT\system32\NETAPI32.dll
    0x76F60000 - 0x76F8C000      C:\WINNT\system32\WLDAP32.dll
    0x76B20000 - 0x76B35000      C:\WINNT\System32\ATL.DLL
    0x76E80000 - 0x76E8D000      C:\WINNT\System32\rtutils.dll
    0x71BF0000 - 0x71C01000      C:\WINNT\System32\SAMLIB.dll
    0x76670000 - 0x76754000      C:\WINNT\System32\SETUPAPI.dll
    0x76EE0000 - 0x76F17000      C:\WINNT\System32\RASAPI32.dll
    0x76E90000 - 0x76EA1000      C:\WINNT\System32\rasman.dll
    0x76EB0000 - 0x76EDA000      C:\WINNT\System32\TAPI32.dll
    0x76F90000 - 0x76FA0000      C:\WINNT\System32\Secur32.dll
    0x76DA0000 - 0x76DD0000      C:\WINNT\System32\WZCSvc.DLL
    0x76D30000 - 0x76D34000      C:\WINNT\System32\WMI.dll
    0x76D80000 - 0x76D9A000      C:\WINNT\System32\DHCPCSVC.DLL
    0x762C0000 - 0x7634A000      C:\WINNT\system32\CRYPT32.dll
    0x762A0000 - 0x762AF000      C:\WINNT\system32\MSASN1.dll
    0x76F50000 - 0x76F58000      C:\WINNT\System32\WTSAPI32.dll
    0x76360000 - 0x7636F000      C:\WINNT\System32\WINSTA.dll
    0x76FB0000 - 0x76FB7000      C:\WINNT\System32\winrnr.dll
    0x76FC0000 - 0x76FC5000      C:\WINNT\System32\rasadhlp.dll
    0x64700000 - 0x6470C000      E:\Oracle\Ora81\bin\orantcp8.dll
    0x71A90000 - 0x71A98000      C:\WINNT\System32\wshtcpip.dll
    0x64500000 - 0x6450D000      E:\Oracle\Ora81\bin\orannts8.dll
    0x71F80000 - 0x71F84000      C:\WINNT\System32\security.dll
    0x76C90000 - 0x76CB2000      C:\WINNT\system32\imagehlp.dll
    0x6D510000 - 0x6D58C000      C:\WINNT\system32\DBGHELP.dll
    0x76BF0000 - 0x76BFB000      C:\WINNT\System32\PSAPI.DLL
    Local Time = Thu May 15 14:59:26 2003
    Elapsed Time = 5
    # HotSpot Virtual Machine Error : EXCEPTION_ACCESS_VIOLATION
    # Error ID : 4F530E43505002D5
    # Please report this error at
    # http://java.sun.com/cgi-bin/bugreport.cgi
    # Java VM: Java HotSpot(TM) Client VM (1.4.0_01-b03 mixed mode)

    You definitely don't need to be using the Sun JDBC-ODBC driver, as this will not support scrollable ResultSets. There are several drivers out there that do, ... for a list of drivers check out
    http://industry.java.sun.com/products/jdbc/drivers

  • SQLException Scrollable Resultsets

    Using JDeveloper 3.1, Weblogic 5.1, Oracle 8i
    Successfully connecting to db and extracting data with vanilla prepared statements and resultsets. Not using Oracle proprietary classes.
    Using oracle's classes12.zip and the ide classpath shows my classpath at the front.
    Tried removing all of default JDeveloper libraries, with only my custom setup remaining.
    The problem occurs at runtime from JDeveloper IDE. It all works perfectly from the command-line, but would like to have it work from IDE.
    Trying to create a Scrollable Resultset from a prepared statement.
    On the execution of the following statement:
    pStmt = conn.prepareStatement(selectSql,
    ResultSet.TYPE_SCROLL_INSENSITIVE,
    ResultSet.CONCUR_READ_ONLY);
    Getting this error:
    java.sql.SQLException: weblogic.rmi.extensions.RemoteRuntimeException: Undeclared checked exception - with nested exception:
    [weblogic.rmi.ServerException: A remote exception occurred while executing the method on the remote object
    - with nested exception:
    [weblogic.rmi.MarshalException: error marshalling return
    - with nested exception:
    [java.io.IOException: Class weblogic.jdbc20.pool.PreparedStatement with code=123 does not implement Serializable, Externalizable or WLSerializable]]]
    at weblogic.jdbc20.rmi.SerialConnection.prepareStatement(SerialConnection.java:342)
    at aces.util.ResultsetTester.main(ResultsetTester.java, Compiled Code)
    It appears that the IDE runtime or compiler is forcing some classpath in front of mine and giving me an outdated jar, zip, class appended to the front that I cannot pinpoint, and I have tried many things.
    I do not want to use OracleResultSet just to test in the IDE. Everything works fine if I execute from the command line.
    Any concrete suggestions?

    You definitely don't need to be using the Sun JDBC-ODBC driver, as this will not support scrollable ResultSets. There are several drivers out there that do, ... for a list of drivers check out
    http://industry.java.sun.com/products/jdbc/drivers

  • How to use the wl61sp2 of scrollable resultsets

    wl61sp2 had already included mssqlserver4 , but it could not support for scrollable
    resultsets. How about using scrollable resultsets in the wl61sp2 or install the
    mssqlserver4v70rel510sp11 into the wl61sp2? If you can answer these questions,please
    help me!!!thanks
    Error:
    java.sql.SQLException: java.sql.SQLException: This JDBC 2.0 method is not implemented
    at weblogic.jdbc.rmi.SerialConnection.prepareStatement(SerialConnection.java:406)at jsp_servlet._adminwww.__t._jspService(__t.java:108)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at eblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
    at eblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2204)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

    wangchuyun wrote:
    >
    wl61sp2 had already included mssqlserver4 , but it could not support for scrollable
    resultsets. How about using scrollable resultsets in the wl61sp2 or install the
    mssqlserver4v70rel510sp11 into the wl61sp2? If you can answer these questions,please
    help me!!!thanksOur driver is only at the JDBC 1.0 level in functionality. For jdbc 2.0 compliance, I
    recommend using either MS's new free type-4 driver or the good driver from
    www.inetsoftware.de.
    Joe
    >
    Error:
    java.sql.SQLException: java.sql.SQLException: This JDBC 2.0 method is not implemented
    at weblogic.jdbc.rmi.SerialConnection.prepareStatement(SerialConnection.java:406)at jsp_servlet._adminwww.__t._jspService(__t.java:108)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at eblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
    at eblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2204)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

  • My requirement is to update 3 valuesets daily based on data coming to my staging table. What is the API used for this and how to map any API to our staging table? I am totally new to oracle and apps. Please help. Thanks!

    My requirement is to update 3 valuesets daily based on data coming to my staging table. What is the API used for this and how to map any API to our staging table? I am totally new to oracle and apps. Please help. Thanks!

    Hi,
    You could use FND_FLEX_LOADER_APIS.UP_VALUE_SET_VALUE to upload them from staging table (I suppose you mean value set values...).
    You can find a sample scripts if you google around.
    What do you mean "how to map any API to our staging table" ?
    You should do at least the following mapping (which column(s) in the staging table will provide these information):
    - the 3 value sets name which you're going to update/upload (I suppose these are existing value sets or which have been already created)
    - the value set values and  description
    Try to start with something and if there is any issues the community could then help... but for the time being with the description of the problem you have provided, that's the best I can do...

  • Developers, The Oracle XML Portal needs your help!

    The Oracle XML Portal (www.webspedite.com/oracle) is in need of helpful content. I have managed it for over a year now and can't possibly keep up with all the new XDK features coming out. This site has helped over 5,000 developers. I know because I constantly receive e-mails from developers thanking me for maintaining the site.
    Now I need your help to keep it going. All I ask is if you have an interesting code example, bug, or anything related to the XDK's, please send it to me at [email protected] I will add it to the site and give you full credit. I'm even thinking of adding a sponsor page that will advertise your services or company if you make a contribution.
    I look forward to your contribution,
    Jason M Cohen
    The Oracle XML Portal
    www.webspedite.com/oracle

    The Oracle XML Portal (www.webspedite.com/oracle) is in need of helpful content. I have managed it for over a year now and can't possibly keep up with all the new XDK features coming out. This site has helped over 5,000 developers. I know because I constantly receive e-mails from developers thanking me for maintaining the site.
    Now I need your help to keep it going. All I ask is if you have an interesting code example, bug, or anything related to the XDK's, please send it to me at [email protected]. I will add it to the site and give you full credit. I'm even thinking of adding a sponsor page that will advertise your services or company if you make a contribution.
    I look forward to your contribution,
    Jason M Cohen
    The Oracle XML Portal
    www.webspedite.com/oracle

  • Oracle XML Portal needs your HELP!

    The Oracle XML Portal (www.webspedite.com/oracle) is in need of helpful content. I have managed it for over a year now and can't possibly keep up with all the new XDK features coming out. This site has helped over 5,000 developers. I know because I constantly receive e-mails from developers thanking me for maintaining the site.
    Now I need your help to keep it going. All I ask is if you have an interesting code example, bug, or anything related to the XDK's, please send it to me at [email protected] I will add it to the site and give you full credit. I'm even thinking of adding a sponsor page that will advertise your services or company if you make a contribution.
    I look forward to your contribution,
    Jason M Cohen
    The Oracle XML Portal
    www.webspedite.com/oracle

    The Oracle XML Portal (www.webspedite.com/oracle) is in need of helpful content. I have managed it for over a year now and can't possibly keep up with all the new XDK features coming out. This site has helped over 5,000 developers. I know because I constantly receive e-mails from developers thanking me for maintaining the site.
    Now I need your help to keep it going. All I ask is if you have an interesting code example, bug, or anything related to the XDK's, please send it to me at [email protected]. I will add it to the site and give you full credit. I'm even thinking of adding a sponsor page that will advertise your services or company if you make a contribution.
    I look forward to your contribution,
    Jason M Cohen
    The Oracle XML Portal
    www.webspedite.com/oracle

  • How can I export oracle e-business suite online help?

    hi,dear expert
    how can I export oracle e-business suite online help?
    I want to view it when I works offline,please help me ,thank you!!
    null

    I think Oracle Apps Help system is built in to Apps installation and you can’t easy enough export it. I have got a few things in mind:
    1. You can install Apps on your laptop and by that way make ONLINE Help available offline ;) Online help describes Forms, fields, navigation and really ONLINE things. To me it sounds a bit illogical to have ONLINE help without access to the application.
    2. The Apps Doc Set is available on the OTN. You can easy download it for OFFLINE reading. And this documentation is intended for offline reading.
    3. Help files for each module located in $APPL_TOP/*/11.5.0/help/US directories. You can try to copy a directory for a module you are interested in on you PC and try to read it offline.
    Just my 0.0.2£,
    Yury

  • Location of "Oracle Policy Automation Runtime Developer Help"

    Good day,
    I'm doing some research into some performance issues we are having and am trying to find the location of "Oracle Policy Automation Runtime Developer Help".
    Would anyone know where I could locate this file?
    Thank you

    OPA Developer Help 10.3: http://docs.oracle.com/html/E24274_01/toc.htm
    OPA Developer Help 10.2: http://docs.oracle.com/html/E20344_01/toc.htm
    The Help files for the latest release of all the OPA products (OPM, OPA, OPA-Siebel Connector, etc.) are always available from the OPA section of the Oracle Technology Network: http://www.oracle.com/technetwork/apps-tech/policy-automation/overview/index.html --> Click on the Documentation tab and look through the list.
    The OPA Developer Help is also available locally if you've got OPM installed, usually in this location: C:\Program Files\Oracle\Policy Modeling\help\run\Default.htm
    Edited by: Jasmine Lee on 01-Feb-2012 07:51

  • Oracle Wallet Setup and Use Help Needed - Respond

    We are trying to make our shell scripts use the wallet rather than using the files which has password in them
    What are the advantages of wallet over the password file?
    Also let us discuss the disadvantages of oracle wallet as well. So we can decide on using the existing system of keeping the passwords in the password file itself or migrating to oracle wallet
    Thanks for your time

    Hello, iam trying to install oracle ifs on my laptop. You can hekp me out..
    1>I have installed oracle 9.0.2 database.
    My question is do we need to install oracle IAS also. I have installed that one too..and intstalled ifs in the same folder of ias. But iam facing problem iam trying to open login page ..http server is not finding my login page . Http server is in oracle database..can u help me out thanks

  • Problem with scrollable resultset of oracle

    I encountered problom like this:
    when I use
    s=createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);
    and getString of a resultset,I get the right data.
    However ,when I use
    s= createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
    and getString of a ResultSet ,
    if the type of the field is Date,then get right data.
    if it is char or varchar2,then i get some thing like
    0x313233,
    all has been found in win2000&solaris
    with oracle 8.1.6
    thanks a lot!

    Hello,
    We've got the same problem.
    It comes from the National Character Set of Oracle Database.
    With WE8ISO8859P1, no problem with using this parameters.
    But with WE8ISO8859P9, we have some hexadecimal return.
    I don't know if it's works with another Character set, but with this, It doesn't work.
    We're trying to find a solution. Because change the character set is not one.
    Good luck.

  • Mildet connect to oracle DB using servlet problem ,help please

    hi guys i have a problem am tring to connect my midlet to databse through midlet but i don`t know what is the problem so far the midlet already connect to my servlet url but the servlet cant read the parameters to open the connection for database
    my servlet code
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    import java.io.*;
    import java.net.*;
    import java.sql.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.text.*;
    * @author freddy
    public class getconnection extends HttpServlet {
        Statement statement;
    ResultSet rs=null;
    String bstr=null;
    String bstr1=null;
    String bstr2=null;
    public void init()
        * Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
        * @param request servlet request
        * @param response servlet response
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            response.setContentType("text/html;charset=UTF-8");
            PrintWriter out = response.getWriter();
            try {
                /* TODO output your page here
                out.println("<html>");
                out.println("<head>");
                out.println("<title>Servlet getConnection</title>"); 
                out.println("</head>");
                out.println("<body>");
                out.println("<h1>Servlet getConnection at " + request.getContextPath () + "</h1>");
                out.println("</body>");
                out.println("</html>");
            } finally {
                out.close();
        // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
        * Handles the HTTP <code>GET</code> method.
        * @param request servlet request
        * @param response servlet response
        @Override
        protected void doGet(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            processRequest(request, response);
      doPost(request,response);
        * Handles the HTTP <code>POST</code> method.
        * @param request servlet request
        * @param response servlet response
        @Override
        protected void doPost(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            processRequest(request, response);
            DataInputStream in = new DataInputStream(
                    (InputStream)request.getInputStream());
            String sid = in.readUTF();
            String user = in.readUTF();
            String pwd = in.readUTF();
          //  "jdbc:oracle:thin:@localhost:1521"+": "+sid
            String message = message = "Name:"+bstr+" telephone:"+bstr1+" burthday:"+bstr2;
             try {
                connect(sid,user, pwd);
                message += "100 ok connected";
            } catch (Throwable t) {
                message += "200 " + t.toString();
            response.setContentType("text/plain");
            response.setContentLength(message.length());
            PrintWriter out = response.getWriter();
            out.println(message);
            in.close();
            out.close();
            out.flush();
        private void connect(String sid, String user,String pwd)
        throws Exception {
            // Establish a JDBC connection to the MYSQL database server.
            //Class.forName("org.gjt.mm.mysql.Driver");
            Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
            Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:"+sid,user,pwd);
            System.out.print("connected");
            try{
               statement =conn.createStatement();
                rs=statement.executeQuery(" Select*from WOH.P_DEMGRAPHICS where P_ID='P1000 '");
            catch(SQLException e)
            System.err.print(e);
           try{
    while (rs.next()) {
    bstr=rs.getString(2);
    bstr1=rs.getString(3);
    bstr2=rs.getString(4);
    statement.close();
       catch (SQLException e) {
    //bstr += e.toString();
    System.err.println(e);
    System.exit(1);
            // Establish a JDBC connection to the Oracle database server.
            //DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
            //Connection conn = DriverManager.getConnection(
            //      "jdbc:oracle:thin:@localhost:1521:"+db,user,pwd);
            // Establish a JDBC connection to the SQL database server.
            //Class.forName("net.sourceforge.jtds.jdbc.Driver");
            //Connection conn = DriverManager.getConnection(
            //      "jdbc:jtds:sqlserver://localhost:1433/"+db,user,pwd);
        * Returns a short description of the servlet.
        public String getServletInfo() {
            return "Short description";
        // </editor-fold>
    }Midlet code
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    import java.io.*;
    import java.util.*;
    import javax.microedition.io.*;
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    * @author freddy
    public class testOrcl extends MIDlet  implements CommandListener {
       protected String url;
        private String username;
        private Display display;
        private Command exit = new Command("EXIT", Command.EXIT, 1);;
        private Command connect = new Command("Connect", Command.SCREEN, 1);
        private TextField tb;
        private Form menu;
        private TextField tb1;
        private TextField tb2;
        DB db;
        public testOrcl() throws Exception
            display=Display.getDisplay(this);
            url="http://localhost:8084/getConnection/getconnection";
        public void startApp() {
            displayMenu();
        public void displayMenu()
        menu= new Form("connect");
         tb = new TextField("Please input database: ","",30,
                    TextField.ANY );
            tb1 = new TextField("Please input username: ","",30,
                    TextField.ANY);
            tb2 = new TextField("Please input password: ","",30,
                    TextField.PASSWORD);
            menu.append(tb);
            menu.append(tb1);
            menu.append(tb2);
            menu.addCommand(exit);
            menu.addCommand(connect);
            menu.setCommandListener(this);
            display.setCurrent(menu);
        public void pauseApp() {
        public void destroyApp(boolean unconditional) { }
        public void commandAction(Command command, Displayable screen) {
            if (command == exit) {
                destroyApp(false);
                notifyDestroyed();
            } else if (command == connect) {
                db  = new DB(this);
                db.start();
                db.connectDb(tb.getString(),tb1.getString(),tb2.getString());
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    import java.io.*;
    import java.util.*;
    import javax.microedition.io.*;
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import java.lang.*;
    * @author freddy
    public class DB implements Runnable  {
        testOrcl midlet;
         private Display display;
            String sid;
            String user;
            String pwd;
            public DB( testOrcl midlet)
            this.midlet=midlet;
            display=Display.getDisplay(midlet);
        public void start()
        Thread t = new Thread(this);
                t.start();
        public void run()
         StringBuffer sb = new StringBuffer();
                try {
                    HttpConnection c = (HttpConnection) Connector.open(midlet.url);
                   c.setRequestProperty(
                       "User-Agent","Profile/MIDP-2.1, Configuration/CLDC-1.1");
                    c.setRequestProperty("Content-Language","en-US");
                    c.setRequestMethod(HttpConnection.POST);
                    DataOutputStream os =
                            (DataOutputStream)c.openDataOutputStream();
                    os.writeUTF(sid.trim());
                    os.writeUTF(user.trim());
                    os.writeUTF(pwd.trim());
                    os.flush();
                    os.close();
                    // Get the response from the servlet page.
                    DataInputStream is =(DataInputStream)c.openDataInputStream();
                    //is = c.openInputStream();
                    int ch;
                    sb = new StringBuffer();
                    while ((ch = is.read()) != -1) {
                        sb.append((char)ch);
               showAlert(sb.toString());
                    is.close();
                    c.close();
                } catch (Exception e) {
                    showAlert(e.getMessage());
         /* This method takes input from user like db,user and pwd and pass
                to servlet */
            public void connectDb(String sid,String user,String pwd) {
                this.sid = sid;
                this.user = user;
                this.pwd = pwd;
            /* Display Error On screen*/
            private void showAlert(String err) {
                Alert a = new Alert("");
                a.setString(err);
                a.setTimeout(Alert.FOREVER);
                display.setCurrent(a);
       

    Comment out process request or rewrite & move it to a position after you read the parameters and connect to the db. Decide where you want to write to the output stream. Also, you have some superfluous casting.
    I take it that you are using netbeans? If you debug and step through the code you will get an idea of the flow. The steps should be, midlet connects with POST, doPost is called, server reads parameters, server opens connection, executes query, releases/closes connection, and writes a response to the midlet.
    Some notes about the connect method; The scope of rs may cause problems. It is unlike you will have a valid result set if you have a problem with create statement or execute. Take a look at connection pooling and be mindful how the connections are opened, used, and closed; put all the important cleanup operations in a finally. Remove system.exit from your servlet. Actually I would suggest limiting the scope of all your vars;
    If you store the username, password, and sid on the midlet, you may have trouble updating the installation base if you need to change the values for any reason. Also, you have clients which contain your database u/p, susceptible to snooping and decompilation. Use the servlet to abstract the db from the client. And use a datasource (with connection pooling) for obtaining connections to db.

  • Installation Problem Developer 6i/Oracle 8/Windows NT4 Please help.

    Hi,
    I am trying to install Oracle Developer 6i and Oracle 8
    under Windows NT platform. I had several kind of problem. Atlast
    I found the installation tips very help and followed it step by
    step. Still I am facing the problem. Let me explain what i did,
    step by step,
    1.downloaded the Oracle forms self extract file. Unzipped. Ran
    the Setup.exe.
    2.This prepared for Oracle Developer installation. I selected
    default path and home(d:\ORANT and home_Default). Selected
    oracle forms and installed it.
    3.Repeated step 2 to install reports 6i.
    4.Restarted the system.
    5.Created another directory d:\orantnew
    6.Used the Oracle 8 CD and installed using the Autorun.Selected
    different path and oracle Home this time.(D:\orantnew and
    home_New).
    7. Selected the Oracle Enterprise Edition option and did the
    installation.Rebooted the system.
    8. Did the TCP/IP changes explained in the Step (5) and Step (6)
    given below in Mr.Krishna's reply.
    9. Tried to start the listner by following Step (7) the listener
    won't start.
    10. Went ahead and copied the TNSNAMES.
    Connected to SQL*Plus using Start/Program/Oracle-OracntNew using
    SCOTT/TIGER and connect went thru.
    Then tried "CONNECT" from form builder, won't connect. I think
    the error message was some thing related to TNS..(Since I have
    uninstalled all the Oracle components now i can't give the exact
    error.Sorry). I would like to know if there is anything I am
    doing wrong or missing out something.
    Note : While uninstalling the oracle components i had problem
    removing the bin directory. So I had to stop some of the
    services
    (OracleServiceORC1 and OracleStartORC1 from
    start/controlpanel/services option) in order to delete the
    oracle components.
    Please someone let me know how can I install Oracle 8 and Oracle
    Developer 6i,in windows NT platform.
    Incase if i am doing anything wrong in the above given step or
    missing out something pl let me know.
    Thanks.
    Extracted from another thread
    Hi, >Try these steps, but you need to change a few things for Win2000 even I am trying, but Listener does'nt start there is a
    problem I am looking into it, If you find the solution pl let me
    know, these work fine on Win95/98 I have tried and they all work
    fine.>-------------------------------------------->Installing
    Personal Oracle 8. 1. 6. 0. 0 with Developer v6i (Reports 6. 0.
    8. 8. 3, Forms 6. 0. 8. 0. 9)>On Windows 98>Note: All other
    combinations may or may not work.> If you want to install
    designer as well, do it now.
    ** Clean all Oracles off the computer using the following instructions. (Windows 95 and
    Windows 98)
    1. In regedit, go to HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE.
    2. Go to HKEY_CURRENT_USER\SOFTWARE\ORACLE
    3. Delete the ORACLE key.
    4. Delete HKEY_LOCAL_MACHINE\SOFTWARE\ODBC pertaining to Oracle.
    5. Delete HKEY_CURRENT_USER\SOFTWARE\ODBC pertaining to Oracle.
    6. Edit your AUTOEXE.BAT file and remove your %ORACLE_HOME%\bin and JRE paths from the path settings.
    7. From the Windows Explorer (or from the command prompt), delete the Oracle Directory
    (Oracle Base).
    8. Delete < System_Drive > C:\Program Files\Oracle (from the Windows NT Explorer or from the command
    prompt).
    9. Delete Icons from < System_Drive> C:\Windows\StartMenu\Programs\Oracle - <HOME> and <System_Drive>
    C:\Windows\StartMenu\Oracle Installation Products. Where<HOME>
    is the previous HOME name.
    10. Reboot the system.
    Installing Developer 6i(Forms and Reports)
    1. Download the file from OTN site or Install from the CD. Install the installer. It will go
    into a new default Oracle home that it will create. When you go
    to install your Developer CD, close the installer that comes up
    with the CD autorun. Go to the programs menu and Oracle for
    Windows 95 and click on the installer there. Once it is open,
    browse to the CD you wish to install. (installr/install/us)
    2. Start installer. Install Developer 6i first to default directory, Orawin95 How? Start installer, follow the prompts
    that appear on the screen, you may have to do this twice, once
    for Oracle Forms and once for Oracle Reports, after the
    installation is successful reboot the system.
    3. If you want to install Designer 6 as well, do it now. (But I have not installed
    the Designer ) Designer has to be installed before PO 8. 1. 6,
    because PO816 can detect only one Oracle_home.
    4. Create a new folder on your root directory called Orawin98. Start the installer set-up from where you downloaded it and
    select Orawin98 to install it in this time. You also need to
    give this second home a name whatever you want, but through out
    the process, you have to use the identical name, that is
    critical. Orawin98 indicates this name in these instructions. Do
    not reboot. Install Oracle 8.1.6 to the directory Orawin98 using
    the installer. Reboot the system.
    5. Go to Start/Setting/Control Panel/Network, if you do not have TCP/IP installed, install it
    now, if you do, highlight TCP/IP, click properties. Select DNS
    tab, select enable DNS, at the host area, type "Orawin98", leave
    domain empty. Go to Identification Tab and enter your database
    name, in this case BBM. Reboot the system after you finish.
    6. Configure your database listener. Go to Start/Programs/Oracle- Orawin98/Network Admistration/Net8
    Assistant, a window will pop
    up, at the window expand Local and expand Listeners and double
    click it, you will see a new window, go through all the tab
    menus. At location address 1, Host name: use "Orawin98", Port
    use: 1521 (default). And at location address 2, Host name:
    use "Orawin98", Port use: 2481, go to the file/ save, close Net8
    Assistant.
    7. Start listener how? Go to Dos Window, type LSNRCTL, return, at LSNRCTL>, type Start. Listener should start
    successfully, if not, you need to go back to Net8 Assistant to
    check configuration.
    8. Copy file "TNSNAMES" in directory C:\Orawin98\Net80\Admin to C:\oraein95\Net80\Admin.
    9. You are finished.
    10. To connect Forms/Reports/SQLPLUS to database - First start the
    Listener, then start the database. Next, go to File menu in
    Forms/Reports and select Connect. Type in user name and password
    (system/manager or whatever) in this case it is SCOTT/TIGER and
    the database name is your "DATABASENAME". When you want to quit
    you need to exit from file menu of Forms/Reports, then you need
    to stop Listener and then shut down database.
    11. You can rename your computer name in your original name. (for local networks)
    Let me know if it is working.>null

    Install Forms in one directory (You can have reports in the same
    directory).
    Install oracle DB in another directory.
    Don't change any file and reboot.
    The listener will start automatically as a service.
    (If not from a command line write "lsnrctl start" to start it).
    To connect from forms/report to the DB you need to activate the
    sqlnet easy config tool from the directory where forms is.
    Follow the wizard to define an entry in the tnsnames.ora file
    automatically.
    Then you can use your forms with the DB.
    (IF you get problems it usually helps to let us know the error
    code you get so we can direct you in the correct direction).

Maybe you are looking for