OCI  fetch problem:

I had a problem in using OCIStmtFetch
I wrote a class to realize the "select", but facing a problem, that is
A table have many fiels, an attribute of one of the fields was null,
I did the OCIStmtFetch (trying to select the field), I want to get the record whose field was null,but the record of that field (is null) and all the following records cannot to be got(read out).
connectiong and all the enviorment are ok, and no eroor was reported during the compiling and executing.
Thanks

>
I have one query with results that needs to be reused in several parts of my website. I can't seem to find the equivalent of the mysql_data_seek in Oracle. I wanted to reset the cursor/pointer of oci_fetch($result) so that I can scroll the result again.
So far this are what I have come up:
A. On first fetch put the the results in a php array and call the array later on.
B. Do the query again.
C. Keep on looking for a mysql_data_seek equivalent and fail.
I'm leaning towards option 'A' but I just wanted to consult the experts.
>
If option A works for you then use it. Oracle has no equivalent to mysql_data_seek.
The option to use depends on your business requirements. If you know you want exactly the same results you will have to cache the original results. If you redo the query you are NOT guaranteed to get the same results or even the same number of rows.
Someone could have inserted/deleted/updated rows after you began your first query. Then when you do your second query you would get different results. This means that if you query for the first 100 records a second query to get the next 100 may return some of the same records your first query retrieved and even those 'same' records (based on primary key) may be different if they have been updated.

Similar Messages

  • OCI, porting problem

    Hi,
    I am using OCI 9 calls in our application, to interact with database. I have ported my application from OCI 7 to OCI 9 as a result I am facing the following problem:
    NOTE: Database's characterset is Japanese
    On firing Select query if certain field in database is empty, we get junk characters for that field.
    Anyone facing similar problem, or having any clues regarding this problem, please reply.
    thanx,
    Mandeep.

    Hi,
    I think you are talking about getting junk when the column is 'NULL'. You should use 'memset' or something of that sort to initialize your buffer.
    You should use and check the indicator variable in your OCIDefineByPos or whatever you are using.
    "For output variables, indicator variables determine whether the value returned from Oracle is a NULL or a truncated value. In the case of a NULL fetch (on OCIStmtFetch()) or a truncation (on OCIStmtExecute() or OCIStmtFetch()), the OCI call returns OCI_SUCCESS. The corresponding indicator variable is set to the appropriate value, as listed in Table 2 8, "Output Indicator Values". If the application provided a return code variable in the corresponding OCIDefineByPos() call, the OCI assigns a value of ORA-01405 (for NULL fetch) or ORA-01406 (for truncation) to the return code variable."
    -1 means the selected value is null, and the value of the output variable is unchanged.
    Regards,
    Jitendra Agrawal,
    http://www.telemune.com/

  • Data fetch problem from EBAN table

    Hi All,
    I have a problem in data fetching. My SQL statement is
            SELECT    A~BANFN
                      A~FRGDT
                      A~MATNR
                      A~MENGE
                      A~MEINS
                      A~AFNAM
                      A~EKGRP
                      A~PRIO_URG
                      A~STATU
                      A~RLWRT
                      A~EBELN
                      A~LOEKZ
                      A~EBELP
                      A~FRGKZ
              INTO CORRESPONDING FIELDS OF TABLE ITAB_DATA
              FROM EBAN AS A
              WHERE     A~STATU IN S_STATU
              AND       A~EKGRP  = S_EKGRP
              AND       A~BANPR  = '05'
              AND       AFNAM  IN P_AFNAM
              AND       BEDNR  IN P_BEDNR .
    In EBAN table data in AFNAM field is like 'Mech', 'mech' & 'Mech'
    Now in selection screen if user give Mech then system picks only that data where 'Mech' is there but requirement is it should pick all data related to ('Mech', 'mech', 'Mech') in AFNAM field. How do I do?
    Thanks and regards,
    Rajesh Vasudeva

    Hello,
    What you ask is not easy but it is feasible.
    We had the same request to make a case-insensitive search on a text field.
    As a reference for our development we took the following example:
    [http://wiki.sdn.sap.com/wiki/display/Snippets/CaseInsensitiveSearchHelpExitforMaterialGroup|http://wiki.sdn.sap.com/wiki/display/Snippets/CaseInsensitiveSearchHelpExitforMaterialGroup]
    In short : the purpose is that first of all you build up a list of all possible values in a separate internal table.
    Then use this separate internal table in the FOR ALL ENTRIES clause when you perform the select on the actual data.
    Success.
    Wim

  • Oracle OCI Connection Problem

    Could you please help me?
    When I try to access Oracle using TopLink and OCI this error occurred
    # An unexpected error has been detected by Java Runtime Environment:
    # EXCEPTION_IN_PAGE_ERROR (0xc0000006) at pc=0x10007774, pid=3504, tid=3716
    # Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode)
    # Problematic frame:
    # C [OCI.dll+0x7774]
    # An error report file with more information is saved as hs_err_pid3504.log
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    [error occurred during error reporting, step 270, id 0xc0000006]
    I have used these libraries
    - ojdbc14.jar
    - toplink-essentials.jar
    - toplink-essentials-agent.jar
    Also I used netbeans v6
    and Apache Tomcat 6.0.14
    The following code shows my persistence.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
      <persistence-unit name="RtsModelPU" transaction-type="RESOURCE_LOCAL">
        <provider>oracle.toplink.essentials.PersistenceProvider</provider>
        <class>com.xxx.rts.model.Responsibility</class>
        <class>com.xxx.rts.model.Person</class>
        <class>com.xxx.rts.model.WeeklyTask</class>
        <properties>
          <property name="toplink.jdbc.user" value="XXX"/>
          <property name="toplink.jdbc.password" value="XXX"/>
          <property name="toplink.jdbc.url" value="jdbc:oracle:oci:@XXX"/>
          <property name="toplink.jdbc.driver" value="oracle.jdbc.driver.OracleDriver"/>
        </properties>
      </persistence-unit>
    </persistence>This is the server log file
    # An unexpected error has been detected by Java Runtime Environment:
    # EXCEPTION_IN_PAGE_ERROR (0xc0000006) at pc=0x10007774, pid=3504, tid=3716
    # Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode)
    # Problematic frame:
    # C [OCI.dll+0x7774]
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    --------------- T H R E A D ---------------
    Current thread (0x0aaaa000): JavaThread "Finalizer" daemon [_thread_in_native, id=3716]
    siginfo: ExceptionCode=0xc0000006, ExceptionInformation=0x00000000 0x10007774 0xc000020c
    Registers:
    EAX=0x00000003, EBX=0x00000000, ECX=0x0b837070, EDX=0x00000001
    ESP=0x0ac1f54c, EBP=0x0ac1f564, ESI=0x0b3cbc00, EDI=0x0b3cbc00
    EIP=0x10007774, EFLAGS=0x00010202
    Top of Stack: (sp=0x0ac1f54c)
    0x0ac1f54c: 0c6504d7 0b88ea34 0b88eae8 00000000
    0x0ac1f55c: 0b837070 00000000 0ac1f580 0c65d331
    0x0ac1f56c: 0b3cbc00 00000001 0b3cbc00 00000000
    0x0ac1f57c: 00000000 0ac1f5a0 0c644647 0b3cbc00
    0x0ac1f58c: 00000000 0b3cbc00 00000000 0b3cbc00
    0x0ac1f59c: 07c1b6b8 0ac1f5c4 0c6444d1 0b3cbc00
    0x0ac1f5ac: 00000000 0b3cbc00 00000000 00000000
    0x0ac1f5bc: 0c4f1348 0c4f1f38 0ac1f5e8 74327ed4
    Instructions: (pc=0x10007774)
    0x10007764:
    [error occurred during error reporting, step 100, id 0xc0000006]
    Stack: [0x0abd0000,0x0ac20000), sp=0x0ac1f54c, free space=317k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    C [OCI.dll+0x7774]
    C [SQORA32.DLL+0x1d331]
    C [SQORA32.DLL+0x4647]
    C [SQORA32.DLL+0x44d1]
    C [ODBC32.dll+0x7ed4]
    C [JdbcOdbc.dll+0x4d8b]
    j sun.jdbc.odbc.JdbcOdbc.SQLDisconnect(J)V+132
    j sun.jdbc.odbc.JdbcOdbcDriver.disconnect(J)V+4
    j sun.jdbc.odbc.JdbcOdbcConnection.close()V+42
    j oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.closeDatasourceConnection()V+4
    j oracle.toplink.essentials.internal.databaseaccess.DatasourceAccessor.disconnect(Loracle/toplink/essentials/internal/sessions/AbstractSession;)V+35
    j oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.disconnect(Loracle/toplink/essentials/internal/sessions/AbstractSession;)V+7
    j oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.disconnect()V+14
    j oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.logout()V+25
    j oracle.toplink.essentials.threetier.ServerSession.logout()V+1
    j oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.removeSessionFromGlobalSessionManager()V+21
    j oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.undeploy()V+159
    j oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.close()V+13
    j oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.finalize()V+8
    v ~StubRoutines::call_stub
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j sun.jdbc.odbc.JdbcOdbc.disconnect(J[B)V+0
    j sun.jdbc.odbc.JdbcOdbc.SQLDisconnect(J)V+132
    j sun.jdbc.odbc.JdbcOdbcDriver.disconnect(J)V+4
    j sun.jdbc.odbc.JdbcOdbcConnection.close()V+42
    j oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.closeDatasourceConnection()V+4
    j oracle.toplink.essentials.internal.databaseaccess.DatasourceAccessor.disconnect(Loracle/toplink/essentials/internal/sessions/AbstractSession;)V+35
    j oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.disconnect(Loracle/toplink/essentials/internal/sessions/AbstractSession;)V+7
    j oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.disconnect()V+14
    j oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.logout()V+25
    j oracle.toplink.essentials.threetier.ServerSession.logout()V+1
    j oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.removeSessionFromGlobalSessionManager()V+21
    j oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.undeploy()V+159
    j oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.close()V+13
    j oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.finalize()V+8
    v ~StubRoutines::call_stub
    j java.lang.ref.Finalizer.invokeFinalizeMethod(Ljava/lang/Object;)V+0
    j java.lang.ref.Finalizer.runFinalizer()V+45
    j java.lang.ref.Finalizer.access$100(Ljava/lang/ref/Finalizer;)V+1
    j java.lang.ref.Finalizer$FinalizerThread.run()V+11
    v ~StubRoutines::call_stub
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x0b0b0c00 JavaThread "JDWP Transport Listener: dt_shmem" daemon [_thread_in_native, id=5896]
    0x0b3d3400 JavaThread "http-8084-4" daemon [_thread_blocked, id=464]
    0x0af5a000 JavaThread "http-8084-3" daemon [_thread_blocked, id=5312]
    0x0b22d000 JavaThread "TP-Monitor" daemon [_thread_blocked, id=6060]
    0x0b36b000 JavaThread "TP-Processor4" daemon [_thread_in_native, id=5300]
    0x0b33ec00 JavaThread "TP-Processor3" daemon [_thread_blocked, id=636]
    0x0b33e400 JavaThread "TP-Processor2" daemon [_thread_blocked, id=2364]
    0x0b127000 JavaThread "TP-Processor1" daemon [_thread_blocked, id=4616]
    0x0b264000 JavaThread "http-8084-2" daemon [_thread_blocked, id=2092]
    0x0b32b000 JavaThread "http-8084-1" daemon [_thread_in_native, id=784]
    0x0b097800 JavaThread "http-8084-Acceptor-0" daemon [_thread_in_native, id=4424]
    0x0b200800 JavaThread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" daemon [_thread_blocked, id=3832]
    0x0aada000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=4072]
    0x0aad8800 JavaThread "CompilerThread0" daemon [_thread_blocked, id=5492]
    0x0aacd800 JavaThread "JDWP Event Helper Thread" daemon [_thread_blocked, id=5060]
    0x0aabcc00 JavaThread "Attach Listener" daemon [_thread_blocked, id=5980]
    0x0aabc000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=6100]
    =>0x0aaaa000 JavaThread "Finalizer" daemon [_thread_in_native, id=3716]
    0x0aaa5800 JavaThread "Reference Handler" daemon [_thread_blocked, id=3636]
    0x00299400 JavaThread "main" [_thread_in_native, id=876]
    Other Threads:
    0x0aaa2800 VMThread [id=5072]
    0x0aadb800 WatcherThread [id=4248]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 1280K, used 25K [0x02990000, 0x02af0000, 0x02e70000)
    eden space 1152K, 2% used [0x02990000, 0x02996470, 0x02ab0000)
    from space 128K, 0% used [0x02ab0000, 0x02ab0000, 0x02ad0000)
    to space 128K, 0% used [0x02ad0000, 0x02ad0000, 0x02af0000)
    tenured generation total 16728K, used 11763K [0x02e70000, 0x03ec6000, 0x06990000)
    the space 16728K, 70% used [0x02e70000, 0x039ecd70, 0x039ece00, 0x03ec6000)
    compacting perm gen total 36352K, used 36190K [0x06990000, 0x08d10000, 0x0a990000)
    the space 36352K, 99% used [0x06990000, 0x08ce7be8, 0x08ce7c00, 0x08d10000)
    No shared spaces configured.
    Dynamic libraries:
    0x00400000 - 0x00423000      C:\Program Files\Java\jdk1.6.0_03\bin\java.exe
    0x7c900000 - 0x7c9b0000      C:\WINNT\system32\ntdll.dll
    0x7c800000 - 0x7c8f5000      C:\WINNT\system32\kernel32.dll
    0x77dd0000 - 0x77e6b000      C:\WINNT\system32\ADVAPI32.dll
    0x77e70000 - 0x77f02000      C:\WINNT\system32\RPCRT4.dll
    0x77fe0000 - 0x77ff1000      C:\WINNT\system32\Secur32.dll
    0x7c340000 - 0x7c396000      C:\Program Files\Java\jdk1.6.0_03\jre\bin\msvcr71.dll
    0x6d870000 - 0x6daba000      C:\Program Files\Java\jdk1.6.0_03\jre\bin\client\jvm.dll
    0x7e410000 - 0x7e4a0000      C:\WINNT\system32\USER32.dll
    0x77f10000 - 0x77f57000      C:\WINNT\system32\GDI32.dll
    0x76b40000 - 0x76b6d000      C:\WINNT\system32\WINMM.dll
    0x629c0000 - 0x629c9000      C:\WINNT\system32\LPK.DLL
    0x74d90000 - 0x74dfb000      C:\WINNT\system32\USP10.dll
    0x77c10000 - 0x77c68000      C:\WINNT\system32\msvcrt.dll
    0x6d3c0000 - 0x6d3c8000      C:\Program Files\Java\jdk1.6.0_03\jre\bin\hpi.dll
    0x76bf0000 - 0x76bfb000      C:\WINNT\system32\PSAPI.DLL
    0x6d4b0000 - 0x6d4d9000      C:\Program Files\Java\jdk1.6.0_03\jre\bin\jdwp.dll
    0x6d770000 - 0x6d776000      C:\Program Files\Java\jdk1.6.0_03\jre\bin\npt.dll
    0x6d820000 - 0x6d82c000      C:\Program Files\Java\jdk1.6.0_03\jre\bin\verify.dll
    0x6d460000 - 0x6d47f000      C:\Program Files\Java\jdk1.6.0_03\jre\bin\java.dll
    0x6d860000 - 0x6d86f000      C:\Program Files\Java\jdk1.6.0_03\jre\bin\zip.dll
    0x6d320000 - 0x6d328000      C:\Program Files\Java\jdk1.6.0_03\jre\bin\dt_shmem.dll
    0x6d620000 - 0x6d633000      C:\Program Files\Java\jdk1.6.0_03\jre\bin\net.dll
    0x71ab0000 - 0x71ac7000      C:\WINNT\system32\WS2_32.dll
    0x71aa0000 - 0x71aa8000      C:\WINNT\system32\WS2HELP.dll
    0x71a50000 - 0x71a8f000      C:\WINNT\system32\mswsock.dll
    0x662b0000 - 0x66308000      C:\WINNT\system32\hnetcfg.dll
    0x71a90000 - 0x71a98000      C:\WINNT\System32\wshtcpip.dll
    0x62f00000 - 0x62f13000      ...\Ora10gClient\BIN\ocijdbc10.dll
    0x10000000 - 0x10057000      ...\ora10gClient\bin\OCI.dll
    0x61c20000 - 0x61e72000      ...\ora10gClient\bin\OraClient10.Dll
    0x60870000 - 0x60953000      ...\ora10gClient\bin\oracore10.dll
    0x60a80000 - 0x60b44000      ...\ora10gClient\bin\oranls10.dll
    0x63690000 - 0x636a8000      ...\ora10gClient\bin\oraunls10.dll
    0x60eb0000 - 0x60eb7000      ...\ora10gClient\bin\orauts.dll
    0x774e0000 - 0x7761d000      C:\WINNT\system32\ole32.dll
    0x636b0000 - 0x636b6000      ...\ora10gClient\bin\oravsn10.dll
    0x60fa0000 - 0x61092000      ...\ora10gClient\bin\oracommon10.dll
    0x60300000 - 0x60857000      ...\ora10gClient\bin\orageneric10.dll
    0x63430000 - 0x63457000      ...\ora10gClient\bin\orasnls10.dll
    0x0c000000 - 0x0c160000      ...\ora10gClient\bin\oraxml10.dll
    0x0c160000 - 0x0c171000      C:\WINNT\system32\MSVCIRT.dll
    0x60960000 - 0x60a6d000      ...\ora10gClient\bin\oran10.dll
    0x62740000 - 0x6277d000      ...\ora10gClient\bin\oranl10.dll
    0x62790000 - 0x627a7000      ...\ora10gClient\bin\oranldap10.dll
    0x627f0000 - 0x628f9000      ...\ora10gClient\bin\orannzsbb10.dll
    0x62530000 - 0x62583000      ...\ora10gClient\bin\oraldapclnt10.dll
    0x62670000 - 0x6268b000      ...\ora10gClient\bin\orancrypt10.dll
    0x71ad0000 - 0x71ad9000      C:\WINNT\system32\WSOCK32.dll
    0x77120000 - 0x771ab000      C:\WINNT\system32\OLEAUT32.dll
    0x62920000 - 0x6296c000      ...\ora10gClient\bin\oranro10.dll
    0x626b0000 - 0x626b7000      ...\ora10gClient\bin\oranhost10.dll
    0x62660000 - 0x62666000      ...\ora10gClient\bin\orancds10.dll
    0x0acc0000 - 0x0acc8000      ...\ora10gClient\bin\orantns10.dll
    0x60b50000 - 0x60ea8000      ...\ora10gClient\bin\orapls10.dll
    0x0c180000 - 0x0c189000      ...\ora10gClient\bin\oraslax10.dll
    0x63080000 - 0x63284000      ...\ora10gClient\bin\oraplp10.dll
    0x61ed0000 - 0x61f5b000      ...\ora10gClient\bin\orahasgen10.dll
    0x62ab0000 - 0x62b1a000      ...\ora10gClient\bin\oraocr10.dll
    0x62b20000 - 0x62b60000      ...\ora10gClient\bin\oraocrb10.dll
    0x5b860000 - 0x5b8b4000      C:\WINNT\system32\NETAPI32.dll
    0x62980000 - 0x62990000      ...\ora10gClient\bin\orantcp10.dll
    0x0c190000 - 0x0c22a000      ...\ora10gClient\bin\orasql10.dll
    0x76f20000 - 0x76f47000      C:\WINNT\system32\DNSAPI.dll
    0x76fb0000 - 0x76fb8000      C:\WINNT\System32\winrnr.dll
    0x76f60000 - 0x76f8c000      C:\WINNT\system32\WLDAP32.dll
    0x76fc0000 - 0x76fc6000      C:\WINNT\system32\rasadhlp.dll
    0x5ad70000 - 0x5ada8000      C:\WINNT\system32\uxtheme.dll
    0x0c400000 - 0x0c407000      C:\Program Files\Logitech\MouseWare\System\LgWndHk.dll
    0x74720000 - 0x7476b000      C:\WINNT\system32\MSCTF.dll
    0x6d4a0000 - 0x6d4ad000      C:\Program Files\Java\jdk1.6.0_03\jre\bin\JdbcOdbc.dll
    0x74320000 - 0x7435d000      C:\WINNT\system32\ODBC32.dll
    0x5d090000 - 0x5d12a000      C:\WINNT\system32\COMCTL32.dll
    0x7c9c0000 - 0x7d1d6000      C:\WINNT\system32\SHELL32.dll
    0x77f60000 - 0x77fd6000      C:\WINNT\system32\SHLWAPI.dll
    0x763b0000 - 0x763f9000      C:\WINNT\system32\comdlg32.dll
    0x773d0000 - 0x774d3000      C:\WINNT\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\comctl32.dll
    0x20000000 - 0x20017000      C:\WINNT\system32\odbcint.dll
    0x5fe80000 - 0x5fe9b000      C:\WINNT\system32\odbccp32.dll
    0x77c00000 - 0x77c08000      C:\WINNT\system32\VERSION.dll
    0x0c640000 - 0x0c6bd000      ...\Ora10gClient\BIN\SQORA32.DLL
    0x0c6c0000 - 0x0c6c9000      ...\ORA10GCLIENT\BIN\sqresUS.dll
    0x7c140000 - 0x7c245000      C:\WINNT\system32\MFC71.DLL
    0x5d360000 - 0x5d36e000      C:\WINNT\system32\MFC71ENU.DLL
    VM Arguments:
    jvm_args: -Dhttp.proxyHost= -Dhttp.proxyPort=80 -Dhttp.nonProxyHosts= -Dhttps.proxyHost= -Dhttps.proxyPort=80 -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=C:\Documents and Settings\...\.netbeans\6.0\apache-tomcat-6.0.14_base\conf\logging.properties -Xdebug -Xrunjdwp:transport=dt_shmem,address=tomcat_shared_memory_id,server=y,suspend=n -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.14\endorsed -Dcatalina.base=C:\Documents and Settings\XXX\.netbeans\6.0\apache-tomcat-6.0.14_base -Dcatalina.home=C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.14 -Djava.io.tmpdir=C:\Documents and Settings\...\.netbeans\6.0\apache-tomcat-6.0.14_base\temp
    java_command: org.apache.catalina.startup.Bootstrap start
    Launcher Type: SUN_STANDARD
    Environment Variables:
    JAVA_HOME=C:\Program Files\Java\jdk1.6.0_03
    JRE_HOME=C:\Program Files\Java\jdk1.6.0_03
    CLASSPATH=C:\Program Files\Java\jdk1.6.0_03\lib\tools.jar;C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.14\bin\bootstrap.jar
    PATH=...\ora10gClient\bin;...\ora9i\bin;...\orant\ora8i\bin;...\orant\bin;C:\Program Files\Java\jre1.5.0_06\bin;C:\Program Files\Java\jre1.5.0_06\bin;C:\Program Files\Documentum\Shared;p:\pvcs813\vm\win32\bin;p:\pvcs813\vm\common\bin\win32;P:\PVCS81\vm\win32\bin;P:\PVCS81\vm\common\bin\win32;C:\Program Files\Common Files\Business Objects\3.0\bin\NOTES\;C:\Program Files\Common Files\Business Objects\3.0\bin\NOTES\DATA\;C:\WINNT\system32;C:\WINNT;C:\WINNT\system32\wbem;C:\Program Files\QuickTime\QTSystem";;C:\Program Files\QuickTime\QTSystem;C:\Borland\JBuilder2005\jdk1.4\bin;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Documentum\Shared;C:\WINNT;C:\WINNT\system32
    USERNAME=XXX
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 15 Model 3 Stepping 4, GenuineIntel
    --------------- S Y S T E M ---------------
    OS: Windows XP Build 2600 Service Pack 2
    CPU:total 1 (1 cores per cpu, 1 threads per core) family 15 model 3 stepping 4, cmov, cx8, fxsr, mmx, sse, sse2, sse3
    Memory: 4k page, physical 1047536k(145972k free), swap 2996004k(1885868k free)
    vm_info: Java HotSpot(TM) Client VM (1.6.0_03-b05) for windows-x86, built on Sep 24 2007 22:24:33 by "java_re" with unknown MS VC++:1310
    Please if have a solution to this problem let me know,
    Please don't say use thin driver because OCI is required on my envirnoment

    Are you sure you are using the Oracle OCI JDBC driver? From you stack trace you are not, you are using the JDBC-ODBC bridge.
    >>
    sun.jdbc.odbc.JdbcOdbc.SQLDisconnect(J)V+132
    j sun.jdbc.odbc.JdbcOdbcDriver.disconnect(J)V+4
    j sun.jdbc.odbc.JdbcOdbcConnection.close()V+42
    j oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.closeDatasourceConnection()V+4
    Ensure you set your database url and driver class in your persistence XML (or DataSource config) to be the Oracle JDBC driver and the Oracle OCI url.
    i.e.
    toplink.jdbc.driver - oracle.jdbc.OracleDriver
    toplink.jdbc.url - jdbc:oracle:oci:@instance
    -- James : http://www.eclipselink.org

  • Fetch problem

    We have two instance (SIDs) in our DB . We have a stored
    procedure , which fetchs cursor into variables. In first DB it
    works( fetchs data) and in another - it doesn't work ( the data
    are the same as they are in the first one). Server is
    NTServer,Oracle7.3.3 What the problem could be?
    null

    Why don't you use this only?
    satyaki>
    satyaki>declare
      2    cursor c1(eno in number)
      3    is
      4      select *
      5      from emp
      6      where empno = eno;
      7   
      8    r1 c1%rowtype;
      9  begin
    10    open c1(7777);
    11    loop
    12      fetch c1 into r1;
    13       exit when c1%notfound;
    14         dbms_output.put_line(r1.ename);
    15    end loop;
    16    close c1;
    17  end;
    18  /
    SOURAV
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:02.87
    satyaki>
    satyaki>Regards.
    Satyaki De.

  • OCI Login Problem

    Hi,
    Problem : Not able to login to repository through OCI.
    Actually we have sucessfully lanched OCI configuration link, using OCI Link , i am able to connect to MDM server and once it is connected to mdm server, it is also able to display the list of repositories in that particular MDM server, but when i enter username and password of the repository, it is showing login failed.
    Actually i have tried to login With both Admin and Master(UI Configuration Manager), but still it is throwing login failed.
    But i am sucessfully able to login in MDM side, with same usernames and passwords.. I am not able to understand what could be the problem?
    If any one knows what.. could be the problem.. can you please share with me...
    Thanks
    Bharat

    Hi Bharat,
    Please check below links for further reference
    Error accessing MDM repository thriugh URL
    Login failed
    Thanks and Regards
    Praful

  • OCI linking problems

    I have encountered linking errors when I tried to include <fstream.h> with my oci program.
    There seems to be conflicts with the 'text' symbol defined both in oratypes.h and fstream.h.
    I would like to get your your advice for ways to solve this problem? I am using msvc6.0 and oracle client 8.1.6

    The linker output:
    ld: 0711-317 ERROR: Undefined symbol: .oerhms(cda_def*,short,unsigned char*,int)
    ld: 0711-317 ERROR: Undefined symbol: .odescr(cda_def*,int,int*,short*,signed char*,int*,int*,short*,short*,short*)
    ld: 0711-317 ERROR: Undefined symbol: .olog(cda_def*,unsigned char*,unsigned char*,int,unsigned char*,int,unsigned char*,int,unsigned int)
    ld: 0711-317 ERROR: Undefined symbol: .oopen(cda_def*,cda_def*,unsigned char*,int,int,unsigned char*,int)
    ld: 0711-317 ERROR: Undefined symbol: .oparse(cda_def*,unsigned char*,int,int,unsigned int)
    ld: 0711-317 ERROR: Undefined symbol: .obndra(cda_def*,unsigned char*,int,unsigned char*,int,int,int,short*,unsigned short*,unsigned short*,unsigned int,unsigned int*,unsigned char*,int,int)
    ld: 0711-317 ERROR: Undefined symbol: .oexec(cda_def*)
    ld: 0711-317 ERROR: Undefined symbol: .odefin(cda_def*,int,unsigned char*,int,int,int,short*,unsigned char*,int,int,unsigned short*,unsigned short*)
    ld: 0711-317 ERROR: Undefined symbol: .ofetch(cda_def*)
    ld: 0711-317 ERROR: Undefined symbol: .oclose(cda_def*)
    ld: 0711-317 ERROR: Undefined symbol: .ologof(cda_def*)
    ld: 0711-317 ERROR: Undefined symbol: .ocom(cda_def*)
    ld: 0711-317 ERROR: Undefined symbol: .orol(cda_def*)
    ld: 0711-345 Use th[i]Long postings are being truncated to ~1 kB at this time.

  • Gmail fetch problem and something else

    Hi,
    I have set up on my iphone ver 2.2 the gmail imap acount through the iphone.
    Fetch is set to 30 mins, i've disabled push bcz gmail does not support push anyway (apart from android so they say) and to reduce battery use.
    Two issues I can't seem to solve:
    My phone does not fetch while in sleep, if I dont touch it for more than 30 mins, I open it and it shows last updated in a time more than 30 mins. sometimes even 2 hours and no fetching.
    Other thing - that may be the cause: when i wake up the phone from sleep - unlocking it, and going to the gmail and pressing update manually (due to the problem i described before) the iphone cant connect to the wifi on first time and gives me msg regarding unable to connect to 3G (I've disabled that throgh the iphone option and through my cellular company - I dont have a data plan).
    After getting those cant connect to 3G msg's i press again and then it connects and download the emails - if there are new ones.
    I have a wireless router that i configured with my iphone - safari doesn't seem to have problem connecting from sleep right away.
    Any suggestions?
    Thanks,
    Nitay

    Hi,
    I can already state that the problem still exits, I already got the message 'no cellular data available...' followed by 'cannot connect to smtp.gmail...
    Which I think it may be the issue causing the problem of periodically fetch. (Since it can't connect to the server for some reason).
    Any ideas?
    Thank again

  • Oracle 8.1.5 and JDBC OCI connection problem

    We are running Oracle 8.1.5 on Solaris 7 machine, and our java application running on JDK 1.2 connects to Oracle via JDBC thin driver because we couldn't make jdbc oci driver work.
    When we try to connect via oci with the driver originally shipped with 8.1.5, we get:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: make_c_state
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:213)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:198)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:251)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:224)
    at java.sql.DriverManager.getConnection(Compiled Code)
    at java.sql.DriverManager.getConnection(DriverManager.java:137)
    at JDBCTest.main(Compiled Code)
    After we downloaded 8.1.6sdk driver from technet and install it, we get:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Error.<init>(Error.java:50)
    at java.lang.LinkageError.<init>(LinkageError.java:43)
    at java.lang.UnsatisfiedLinkError.<init>(UnsatisfiedLinkError.java:42)
    at java.lang.ClassLoader.loadLibrary(Compiled Code)
    at java.lang.Runtime.loadLibrary0(Runtime.java:471)
    at java.lang.System.loadLibrary(System.java:745)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:209)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:198)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:251)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:224)
    at java.sql.DriverManager.getConnection(Compiled Code)
    at java.sql.DriverManager.getConnection(DriverManager.java:137)
    at JDBCTest.main(Compiled Code)
    I searched this forum for answer and only relevent answer from oracle was: consult README file! Readme file mentions that lobocijdbc.so file is shared library file for oci connection. That't all. So what?
    I added the directory where libocijdbc8.so resides to LD_LIBRARY_PATH, and System.getProperty("java.library.path") shows content of LD_LIBRARY_PATH correctly.
    null

    Please this is not simple as simple as checking the classpath and LD_LIBRARY_PATH.
    I tried the sample program and the result is the same. As pointed out first by Won, putting the libocijdbc8.so from SDK8.1.6 in the LD_LIBRARY_PATH has no effect at all. It gives the unsatisfied linker error. The sample program fails. However the sample program works fine with the libocijdbc8.so from sdk8.1.5. The library gets loaded. But at the time of creating the connection it gives make_c_state error.
    Here is my CLASSPATH, PATH and LD_LIBARY_PATH variables
    ORACLE_HOME=/opt/oracle/product/8.1.5
    LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/opt/oracle/product/8.1.5/lib
    PATH=/usr/openwin/bin:/usr/sbin:/usr/local/bin:/usr/ccs/bin:/usr/ucb:/opt/oracle/product/8.1.5/lib
    Hope you are able to provide better answer then check your environment variables.
    THE libocijdbc8.so FROM SDK8.1.6 DOES NOT GET LOADED AT ALL.
    Waiting for the reply.
    Please Help.
    Regards,
    Vipul Modi.
    Novell Inc.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Won, Taewoong([email protected]):
    We are running Oracle 8.1.5 on Solaris 7 machine, and our java application running on JDK 1.2 connects to Oracle via JDBC thin driver because we couldn't make jdbc oci driver work.
    When we try to connect via oci with the driver originally shipped with 8.1.5, we get:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: make_c_state
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:213)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:198)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:251)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:224)
    at java.sql.DriverManager.getConnection(Compiled Code)
    at java.sql.DriverManager.getConnection(DriverManager.java:137)
    at JDBCTest.main(Compiled Code)
    After we downloaded 8.1.6sdk driver from technet and install it, we get:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Error.<init>(Error.java:50)
    at java.lang.LinkageError.<init>(LinkageError.java:43)
    at java.lang.UnsatisfiedLinkError.<init>(UnsatisfiedLinkError.java:42)
    at java.lang.ClassLoader.loadLibrary(Compiled Code)
    at java.lang.Runtime.loadLibrary0(Runtime.java:471)
    at java.lang.System.loadLibrary(System.java:745)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:209)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:198)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:251)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:224)
    at java.sql.DriverManager.getConnection(Compiled Code)
    at java.sql.DriverManager.getConnection(DriverManager.java:137)
    at JDBCTest.main(Compiled Code)
    I searched this forum for answer and only relevent answer from oracle was: consult README file! Readme file mentions that lobocijdbc.so file is shared library file for oci connection. That't all. So what?
    I added the directory where libocijdbc8.so resides to LD_LIBRARY_PATH, and System.getProperty("java.library.path") shows content of LD_LIBRARY_PATH correctly.
    <HR></BLOCKQUOTE>
    null

  • Data fetching problem in internal table

    Hi All,
    I have two internal table which are of type as shown below.
    itab1 is of following type:
    regno(255) type c,
    uid type c
    itab2 is of following type
    regno type regno,
    uid type userid,
    address type add,
    phno type phn.
    Datas in itab2 are as follows:
    100       01       india              3454534
    200       01       china             34553543
    300       02       us                  6464654
    400       02       uk                   45654
    Itab1 is populated using the uid field as key as shown below.
    regno                          uid
    100 200                           01
    300 400                           02
    100 200 are values in field regno
    01  is uid.
    What we have done is collected all the regno which belong to the same uid for sending a single mail to the uid person with both the regno. We are able to achieve this. For this finally we loop into itab1 and fetch the uid and send mail to him.
    Now an extra requirement is to send the details of a regno (address and phno) along with the mail. The prob is in our final internal table we have a character field which will have all the regno for a uid (may be upto 20). Each regno will be of length 3.
    I have to loop into tab1 and read tab2 to achieve this using uid as key. But regno will for a uid will be combined. I have fetch each regno say 100 first and get the details and then 200 and then get the details and send a mail to uid 01. Then 300 and 400 details and then a mail to uid 02.
    Please explain how to get individual regno when i loop into tab1 and read tab2 so that i can fetch the details.
    Any suggestion will be very helpful

    Hi Aslam,
    As per my understanding...
    In itab1, instead of maintaining all the reg no in the same field(like 100 200 300 ....) againist uid 01
    maintain multiple records like
    regno  udi
    100      01
    200      01
    300      01 etc
    (in this case the combination of regno & uid becomes the key.)
    now while ur sending mail to the people, just loop the recors of itab1
    in the same loop u can just write a read statement to get the remainig details(address, phone no etc..) of that regno from itab2.
    Hope this helps you, revert back if still u hav any problm.

  • Data fetching problem in select query

    HI Expert,
                   Pls check the below code as data is not fetching due to BGMKOBJ-OBJNR(22)  not equal to EQKT-EQUNR(18).
    select  EQUNR
            EQKTX
           from EQKT into corresponding fields of table IT_EQKT
           from EQKT into table IT_EQKT
             into table IT_EQKT
             from EQKT
           for all entries in IT_BGMKOBJ
           for all entries in IT_ITOB
             where EQUNR = IT_ITOB-OBJNR
            and spras eq 'EN'.
    Pls help me with code.
    Thanks & Regards,
    Singha

    Create a new internal table with the field EQUNR with BGMKOBJ-OBJNR values and do for all entries on this table.There is no alternative on this.
    e.g,
    types: begin of t_equnr,
    equnr type EQKT-EQUNR,
    end of t_equnr.
    data : it_equnr type table of t_equnr,
             wa_equnr type t_equnr.
    loop at IT_BGMKOBJ into wa_BGMKOBJ .
    wa_equnr-equnr  =  wa_BGMKOBJ-OBJNR.
    append wa_equnr to it_equnr.
    endloop.
    select EQUNR
    EQKTX
    from EQKT into corresponding fields of table IT_EQKT
    from EQKT into table IT_EQKT
    into table IT_EQKT
    from EQKT
    for all entries in IT_BGMKOBJ
    for all entries in it_equnr
    where EQUNR = it_equnr-EQUNR

  • RSA7 to BW data fetch problem

    Hi Guys,
    I am extracting data from RSA7 to BW with delta update.
    in RSA7 tcode I can see column Total is populated with some entries means it has records, when I tried to see these records
    in Queue-> Display data entries->Update mode (Delta update) I don't see any records but when I used (Delta Repitition)
    as a update mode I am able to see the records.
    But when I am doing Delta update to BW it ends with 0 Records and RSA7 total column shows 0 entry.
    What could  be the problem?
    Thanks & Regards
    Deepak Chaavn.

    Hi
    See
    https://wiki.sdn.sap.com/wiki/display/profile/Surendra+Reddy
    Checking the Data using Extractor Checker (RSA3) in ECC Delta Repeat Delta etc...
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/80f4c455-1dc2-2c10-f187-d264838f21b5&overridelayout=true 
    Data Flow from LBWQ/SMQ1 to RSA7 in ECC and Delta Extraction in BI
    http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/business-intelligence/d-f/data%20flow%20from%20lbwq_smq1%20to%20rsa7%20in%20ecc%20and%20delta%20extraction%20in%20bi.pdf
    Thanks
    Reddy

  • Still..Fetching Problem..Please Help

    Hello! Below is the code snippets of my program to test the setFetchSize() method. When run, it still retrieves all the contents of the table. I just need to retrieve say 4 items per page. Please help. Thanks.
    int skucd = 0;
    String skudesc = "";
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:dsShopCart", "", "");
    Statement stmt = con.createStatement();
    stmt.setFetchSize(4);
    ResultSet rs = stmt.executeQuery("SELECT * FROM tblProduce");
    while (rs.next())
    skucd = rs.getInt("sku_code");
    skudesc = rs.getString("sku_desc");
    System.out.println("Sku Code-"+skucd +"/Desc-"+skudesc);

    Using Stqtement.setFetchSize() one can only provide the JDBC driver a hint as to how many records the driver code should actually fetch from the database whenever it has reason to fetch results physically from the database and the driver is free to ignore that hint as well.
    However, the point to be noted in your case is that when a JDBC driver actually fetches results from the database depends on the specific driver implementation. For example, this may happen not only when one invokes Statement.executeQuery() etc but later on, for example when one invokes some method that performs some row operation on the result set. So, using setFetchSize() one can provide a hint to the driver as to how many records to physically fetch from the database whenever there is such a need to physically fetch from the databse.
    As far as I know, one has to implement some kind of paging model over the results by onseself.
    If you are involved with diaplaying results on an HTML page, tis might help http://jsptags.com/tags/navigation/pager

  • LMS 4.1 Configuration Fetch Problem

    Hello,
    I have some problem with WS-C4006 Cisco Catalyst that lms doesn't collect and put into "never collected" area. I also see that those devices doesn't show the classic prompt ">" and "#". Could be the main problem ? If yes how can configure LMS to recognize a different prompt for devices.
    If no what could be the problem ?
    Many thanks

    You can add your custom prompts into /opt/CSCOpx/objects/cmf/data/TacacsPrompts.ini. No restart of LMS is required for the addition to be recognized.

  • ASP-OCI Charset problems

    Hi,
    i've a 11.2 database with we8dec charset.
    Developer use ASP and OCI to connect to the database and insert into tables.
    Some char are not converted well, like this "€".
    Application machine use client 11.2 and i set NLS_LANG=AMERICAN_AMERICA.WE8DEC in the registry but nothing.
    Is there any modification application side to do?
    Database server is AIX
    Application Server is windows 2008.
    Thanks
    Edited by: 842366 on 29-nov-2012 9.09

    gdarling wrote:
    As best I can tell, "€" is not defined in WE8DEC .. http://www.columbia.edu/kermit/dec-mcs.html
    You'll want to use a database characterset that can support the characters you actually need to store.
    Generally AL32UTF8 is recommended these days as it supports a huge number of languages and characters, but if you want to stick to a single byte characterset for some reason, WE8MSWIN1252 is frequently used as well.
    You may be able to figure out some sort of hack to be able to put the character in and get it back out looking the same, but unless the middle part (ie, the storage in the database) is correct and valid, all bets are off and you're just asking for trouble.
    GregHi Greg,
    thank you.
    Developer report that conversion works fine with PHP.
    PHP insert "€" in database, database store a strange char but PHP read "€" from database. He set NLS_LANG in php oci connection.
    In ASP i don't know how it can do.

Maybe you are looking for

  • Error in starting DB2 UDB (AIX with ECC 6.0)

    Hello All, I am facing error in starting the database as below : <b>exec(): 0509-036 Cannot load program db2start because of the following errors:         0509-130 Symbol resolution failed for /usr/lib/threads/libc.a[aio_64.o] because:         0509-1

  • UTIL_FILE.FOPEN

    Hi I am trying to open one file using UTIL_FILE.FOPEN and log the error msgs into the file But the file is not getting created in the path specified DECLARE CURSOR CUR_ERR_HEADER IS SELECT PRODUCT_CODE || '|' || PRODUCT_CODE_TYPE || '|' || PRODUCT_CO

  • Hi, I have a Macintosh PowerBook G3 which work and I would like to exchange or sell it ?

    Bonsoir, Je possède un Macintosh PowerBook G3 en état de marche avec chargeur que je souhaiterai échanger ou vendre ? Il y aurait-il quelqu'un d'intéressé ?

  • Tables are twice, but i don't see this

    Hi, i made a select from an other programm to oracle database. And i always get the message that the table exits twice. I've load them with a dump to my user swl. But the other programm find these tables also in public. If i made a select of dba_user

  • Software Update No Longer Functioning

    Hello, Software Update suddenly stopped working properly for me. For any update I try, the mechanism finds the appropriate updates and performs the download but then reports an installation error, always with the message: "The update <given update> c