Runtime paging with java for the database values.

I m preparing a project in which i cant try to page the data etracted from the database in runtime. Plz Help me for this problem.

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.DriverManager;
import java.util.List;
import java.util.ArrayList;
import java.util.StringTokenizer;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
public class AttachFormPagination extends Action
  public AttachFormPagination()
  public ActionForward execute(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) throws Exception
          try
               int tot = 0;
               String startIndex = request.getParameter("start");
               String endIndex = request.getParameter("end");
               System.out.println("---------start is>" + startIndex);
               System.out.println("---------end is>" + endIndex);
               int sIndex = Integer.valueOf(startIndex).intValue();
               int eIndex = Integer.valueOf(endIndex).intValue();
            Class.forName("org.gjt.mm.mysql.Driver");
               Connection con=DriverManager.getConnection("jdbc:mysql://localhost/","id","pw");
               Statement st = con.createStatement();
               // this is for getting the total records
               Statement st1 = con.createStatement();
               ResultSet rs1 = st1.executeQuery("select * from tablename");
               while(rs1.next())
                    tot++;
               System.out.println("total value is" + tot);
               String total = ""+tot;
               String query = "select * from tablename limit " + sIndex + "," + eIndex;
               System.out.println("---------query is>" + query);
               ResultSet rs = st.executeQuery(query);
               List cusList = new ArrayList();
               AttachFormBean afb = null;
               while(rs.next())
                    afb = new AttachFormBean();
                    afb.setName(rs.getString(1));
                    afb.setActivity(rs.getString(2));
                    afb.setProduct(rs.getString(3));
                    afb.setCompetitor(rs.getString(4));
                    afb.setEnvironment(rs.getString(5));
                    afb.setCreatedBy(rs.getString(6));
                    cusList.add(afb);
               request.setAttribute("custlist",cusList);
               request.setAttribute("startIndex",startIndex);
               request.setAttribute("endIndex",endIndex);
               request.setAttribute("total",total);
          catch (Exception e)
               System.out.println("Exception---------"+e);
          return mapping.findForward("success");
}and
this code to be placed in ur page
<table border="0" cellpadding="0" cellspacing="0" width="100%">
          <tr>
               <td align="left">�</td>
               <td nowrap align="right">
               <a href="#" onclick="PagenationStart()">
               <img src='images/start_off.gif' width='9' height='8' alt='Start'  border='0' align='absmiddle' href="#" >�Start��</a>
               <a href="#" onclick="PagenationPrevious()">
               <img src='images/previous_off.gif' width='4' height='8' alt='Previous'  border='0' align='absmiddle'>�Previous��</a>
               <a href="#" onclick="PagenationNext()">
               ��Next�<img src='images/next_off.gif' width='4' height='8' alt='Next'  border='0' align='absmiddle'></a>
               <a href="#" onclick="PagenationEnd()">
               ��End�<img src='images/end_off.gif' width='9' height='8' alt='End'  border='0' align='absmiddle'></a></td>
          </tr>
     </table>and put this in ur page inside script
function PagenationStart()
     var a = 0;
     var b = 4;
     document.ownerPage.action="actionpagename.do?param="+param+"&start="+a+"&end="+b;
     document.ownerPage.submit();
function PagenationPrevious()
     var a = eval('<c:out value="${requestScope.startIndex}"/>') - 4;
     var b = 4;
     document.ownerPage.action="actionpagename.do?param="+param+"&start="+a+"&end="+b;
     document.ownerPage.submit();
function PagenationNext()
     var a = eval('<c:out value="${requestScope.startIndex}"/>')+4;
     var b = 4;
     document.ownerPage.action="actionpagename.do?param="+param+"&start="+a+"&end="+b;
     document.ownerPage.submit();
function PagenationEnd()
     var a = eval('<c:out value="${requestScope.total}"/>')-4;
     var b = eval('<c:out value="${requestScope.total}"/>');
     document.ownerPage.action="actionpagename.do?param="+param+"&start="+a+"&end="+b;
     document.ownerPage.submit();
}

Similar Messages

  • How to compare, current value in :block.text_item with the database value

    Hi
    Could you please tell me
    How to compare the current value in :block.text_item with the corresponding database column value.
    I am using forms 10g
    There is block and there is an text Item in that block.
    When I run the form and query the block (tabular), the :block.text_item shows me, whatever value there in the database.
    Now I add some value in the :block.text_item to the existing value.
    now
    the :block.text_item contains old+ new added value
    whereas
    the database table contains 'old' value
    Now on a button click , I want to find out what is the value that I have added
    Could you please tell me, is it possible without writing a select query?

    Hello,
    Now on a button click , I want to find out what is the value that I have addedSo you mean always user will add value in the existing value. Because this way will fail in one case. Let say
    Value in Database is = ABCD
    User opened the form and he removed the D and write E and now value is ABCE and length is still same 4. So, there is no addition.
    Anyway you can know the database value at runtime there is one property for item called DATABASE_VALUE. It gives the value which is in database while you are running the form before save. and you can use like this..
    Trigger = WHEN-MOUSE-DOUBLE-CLICK on item level
    DECLARE
      vItemValue DATATYPE; -- Set the data type according to your desired field.
      vValueAdded DATATYPE; -- Set the data type according to your desired field.
    BEGIN
      vItemValue:=GET_ITEM_PROPERTY('ITEM_NAME',DATABASE_VALUE);  -- It will return you the database value in vItemValue variable.
      IF LENGTH(vItemValue)>LENGTH(:FORM_ITEM_NAME) THEN  -- It mean something change or added
        vValueAdded:=SUBSTR(:FORM_ITEM_NAME,LENGTH(vItemValue)+1);
        MESSAGE('Added value is : '||vValueAdded);  -- It will show you the added value.
      END IF;
      -- now suppose you want to show the old and new value in message not the added one
      -- Then no need of IF condition. You can just use message like this
      -- And i would prefer to use like this way
      MESSAGE('Old Value : '||vItemValue||'  New Value - '||:FORM_ITEM_NAME);
      MESSAGE('Old Value : '||vItemValue||'  New Value - '||:FORM_ITEM_NAME);
    END;Hope it is clear.
    -Ammad

  • No shared library found for the database with ID DBID

    Hi SDN,
    We're trying to connect our BW system under WIN/MSSQL 2005 to an source system (RSA1) witch is an DATABASE DB4 on OS400.
    when we check the database connection, it gave us the error
    No shared library found for the database with ID DBID
    in SM21 we've found
    As well as the standard connection, an attempt was made to set up
    another database connection, under the specified ID. The Shared Library
    for this second database could not be found.
    The Shared Library is usually found in the the Executable
    directory (profile parameter DIR_LIBRARY) under the name dbs
    <dbs>slib<os_ext>. <dbs> stands for the database type and <os_ext>
    stands for the operating system-specific extension of the Shared
    Libraries.
    The database type is determined from the entry that corresponds to the
    specified DB ID in the table DBDCON. Check whether the data in this
    entry is correct.
    someone can guide me were to found DBSL library for this time of external connection from Windows to DB4?
    thanks in advance,
    best regards,
    Pedro Rodrigues

    Hi again,
    after download dbdb4slib.dll and copied it to kernel directory, it gave this error message
    B  create_con (con_name=DBID)
    B  Loading DB library 'E:\usr\sap\SID\SYS\exe\run\dbdb4slib.dll' ...
    M  *** ERROR => DlLoadLib: LoadLibrary(E:\usr\sap\SID\SYS\exe\run\dbdb4slib.dll) Error 126 [dlnt.c       237]
    M          Error 126 = "The specified module could not be found."
    B  *** ERROR => Couldn't load library 'E:\usr\sap\SID\SYS\exe\run\dbdb4slib.dll'
    [dbcon.c      4672]
    B  ***LOG BYG=> could not load library for database connection DBID      [dbds#3 @ 1035] [dbds    1035 ]
    someone has some idea?
    thakns

  • The SYSVAL table entry for the database version (16) does not match the required version

    We upgraded from Tidal Enterprise Scheduler (TES) 5.31 to 6.1 on fresh Windows x64 2008 R2 servers.  I did a fresh install but our DBA restored a copy of our database from pre-prod which was at 5.31.  I get the error below.  Note, SQL went from 2005 to 2012 during this upgrade.  Do I need to change a value in this table to reflect the SQL change?
    [04/29 12:47:14:198]:TIDAL Enterprise Scheduler: version 6.1.0.133
    [04/29 12:47:14:198]:Java version: 1.8.0
    [04/29 12:47:14:198]:Java Virtual Machine version: 25.0-b70
    [04/29 12:47:14:198]:Start Time : 04/29/14 12:47:14:198
    [04/29 12:47:14:198]:----------------------------------------------------------------------------
    [04/29 12:47:14:198]:Database URL :jdbc:sqlserver://SQL2012-Host:1433;responseBuffering=adaptive
    [04/29 12:47:14:198]:Database Driver :com.microsoft.sqlserver.jdbc.SQLServerDriver
    [04/29 12:47:14:198]:Maximum number of log files = 100
    [04/29 12:47:14:198]:Added a LogFile called 'RegularFile'
    [04/29 12:47:14:198]:LogManager: setting default log
    [04/29 12:47:14:214]:Retrieved a LogFile called 'RegularFile'
    [04/29 12:47:14:495]:MessageBroker: Instantiated TcpTransportServer (URI = tcp://0.0.0.0:6215)
    [04/29 12:47:16:975]:Retrieved a LogFile called 'RegularFile'
    [04/29 12:47:17:272]:The SYSVAL table entry for the database version (16) does not match the required version (23). Shutting down.
    [04/29 12:47:20:282]:
    [04/29 12:47:20:282]:
    [04/29 12:47:20:282]:Shutting down the application

    I had this error last night while applying a patch to 6.0. However in my case the version was 21 versus a required version of 23.
    As far as i know 6.1 is not compatible with the 5 db schema, so you will need an update / migration plan for the db also.

  • LoadDB problem: no version found for the database

    HEllo,
    I try to use the loadDB directive with an existing pool and wlst offline but I always receive the error "No version found for the database". I tried to create a pool with the console and use it as loading pool but that didn't worked.
    I saw in the script.log file that my pool was correctly found but it seems that it can't found the driverName attribute of my pool when trying to get version.
    I have checked and the drivername is correctly set.
    Any idea? I will post the complete stack and the script.log later.

    here is the full stack:
    com.bea.plateng.domain.script.jython.WLSTException: com.bea.plateng.domain.scrip
    t.ScriptException: No version is found for database:
    at com.bea.plateng.domain.script.jython.CommandExceptionHandler.handleEx
    ception(CommandExceptionHandler.java:33)
    at com.bea.plateng.domain.script.jython.WLScriptContext.handleException(
    WLScriptContext.java:897)
    at com.bea.plateng.domain.script.jython.WLScriptContext.loadDB(WLScriptC
    ontext.java:817)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java
    at org.python.core.PyMethod.__call__(PyMethod.java)
    at org.python.core.PyObject.__call__(PyObject.java)
    at org.python.core.PyInstance.invoke(PyInstance.java)
    at org.python.pycode._pyx0.loadDB$22(initWls.py:98)
    at org.python.pycode._pyx0.call_function(initWls.py)
    at org.python.core.PyTableCode.call(PyTableCode.java)
    at org.python.core.PyTableCode.call(PyTableCode.java)
    at org.python.core.PyFunction.__call__(PyFunction.java)
    at org.python.pycode._pyx4.f$0(CCFF_offline.py:17)
    at org.python.pycode._pyx4.call_function(CCFF_offline.py)
    at org.python.core.PyTableCode.call(PyTableCode.java)
    at org.python.core.PyCode.call(PyCode.java)
    at org.python.core.Py.runCode(Py.java)
    at org.python.core.__builtin__.execfile_flags(__builtin__.java)
    at org.python.core.__builtin__.execfile(__builtin__.java)
    at org.python.core.__builtin__.execfile(__builtin__.java)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java
    at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java
    at org.python.core.PyObject.__call__(PyObject.java)
    at org.python.pycode._pyx3.f$0(<input>:1)
    at org.python.pycode._pyx3.call_function(<input>)
    at org.python.core.PyTableCode.call(PyTableCode.java)
    at org.python.core.PyCode.call(PyCode.java)
    at org.python.core.Py.runCode(Py.java)
    at org.python.core.Py.exec(Py.java)
    at org.python.util.PythonInterpreter.exec(PythonInterpreter.java)
    at org.python.util.InteractiveInterpreter.runcode(InteractiveInterpreter
    .java)
    at org.python.util.InteractiveInterpreter.runsource(InteractiveInterpret
    er.java)
    at org.python.util.InteractiveInterpreter.runsource(InteractiveInterpret
    er.java)
    at com.bea.plateng.domain.script.jython.WLST_offline.handleInteractiveMo
    de(WLST_offline.java:137)
    at com.bea.plateng.domain.script.jython.WLST_offline.main(WLST_offline.j
    ava:79)
    Caused by: com.bea.plateng.domain.script.ScriptException: No version is found fo
    r database:
    at com.bea.plateng.domain.script.ScriptExecutor.getSQLFiles(ScriptExecut
    or.java:2731)
    at com.bea.plateng.domain.script.ScriptExecutor.loadDB(ScriptExecutor.ja
    va:1056)
    at com.bea.plateng.domain.script.jython.WLScriptContext.loadDB(WLScriptC
    ontext.java:815)
    ... 40 more
    here is the script.log part:
    2007-01-23 08:50:12,127 INFO [main] com.bea.plateng.domain.script.ScriptExecutor - find JDBCConnectionPool "CCFFMainPool" as obj5
    2007-01-23 08:50:12,127 INFO [main] com.bea.plateng.domain.script.ScriptExecutor - succeed: find JDBCConnectionPool "CCFFMainPool" as obj5
    2007-01-23 08:50:12,127 INFO [main] com.bea.plateng.domain.script.ScriptExecutor - loadDB obj5
    2007-01-23 08:50:12,137 DEBUG [main] com.bea.plateng.domain.script.ScriptExecutor - ScriptExecutor JDBCInfo:
    DB2 Any:
         CCFF_L1-tables.sql
         Initial_Insert.sql
    2007-01-23 08:50:12,137 DEBUG [main] com.bea.plateng.domain.script.ScriptExecutor - Database name:

  • SQL0964C  The transaction log for the database is full

    Hi,
    i am planning to do QAS refresh from PRD system using Client export\import method. i have done export in PRD and the same has been moved to QAS then started imported.
    DB Size:160gb
    DB:DB2 9.7
    os: windows 2008.
    I facing SQL0964C  The transaction log for the database is full issue while client import and regarding this i have raised incident to SAP then they replied to increase some parameter like(LOGPRIMARY,LOGSECOND,LOGFILSIZ) temporarily and revert them back after the import. Based on that i have increased from as below mentioned calculation.
    the filesystem size of /db2/<SID>/log_dir should be greater than LOGFILSIZ*4*(Sum of LOGPRIMARY+LOGSECONDARY) KB
    From:
    Log file size (4KB)                         (LOGFILSIZ) = 60000
    Number of primary log files                (LOGPRIMARY) = 50
    Number of secondary log files               (LOGSECOND) = 100
    Total drive space required: 33GB
    To:
    Log file size (4KB)                         (LOGFILSIZ) = 70000
    Number of primary log files                (LOGPRIMARY) = 60
    Number of secondary log files               (LOGSECOND) = 120
    Total drive space required: 47GB
    But still facing the same issue. Please help me to resolve the ASAP.
    Last error TP log details:
    3 ETW674Xstart import of "R3TRTABUFAGLFLEX08" ...
    4 ETW000   1 entry from FAGLFLEX08 (210) deleted.
    4 ETW000   1 entry for FAGLFLEX08 inserted (210*).
    4 ETW675 end import of "R3TRTABUFAGLFLEX08".
    3 ETW674Xstart import of "R3TRTABUFAGLFLEXA" ...
    4 ETW000  [     dev trc,00000]  Fri Jun 27 02:20:21 2014                                             -774509399  65811.628079
    4 ETW000  [     dev trc,00000]  *** ERROR in DB6Execute[dbdb6.c, 4980] CON = 0 (BEGIN)                    85  65811.628164
    4 ETW000  [     dev trc,00000]  &+     DbSlModifyDB6( SQLExecute ): [IBM][CLI Driver][DB2/NT64] SQL0964C  The transaction log for the database is full. 
    4 ETW000                                                                                                  83  65811.628247
    4 ETW000  [     dev trc,00000]  &+     SQLSTATE=57011 row=1                                                                                             
    4 ETW000                                                                                                  51  65811.628298
    4 ETW000  [     dev trc,00000]  &+                                                                                                                      
    4 ETW000                                                                                                  67  65811.628365
    4 ETW000  [     dev trc,00000]  &+     DELETE FROM "FAGLFLEXA" WHERE "RCLNT" = ?                                                                        
    4 ETW000                                                                                                  62  65811.628427
    4 ETW000  [     dev trc,00000]  &+       cursor type=NO_HOLD, isolation=UR, cc_release=YES, optlevel=5, degree=1, op_type=8, reopt=0                    
    4 ETW000                                                                                                  58  65811.628485
    4 ETW000  [     dev trc,00000]  &+                                                                                                                      
    4 ETW000                                                                                                  53  65811.628538
    4 ETW000  [     dev trc,00000]  &+     Input SQLDA:                                                                                                     
    4 ETW000                                                                                                  52  65811.628590
    4 ETW000  [     dev trc,00000]  &+                        1 CT=WCHAR           T=VARCHAR         L=6     P=9     S=0   
    4 ETW000                                                                                                  49  65811.628639
    4 ETW000  [     dev trc,00000]  &+                                                                                                                      
    4 ETW000                                                                                                  50  65811.628689
    4 ETW000  [     dev trc,00000]  &+     Input data:                                                                                                      
    4 ETW000                                                                                                  49  65811.628738
    4 ETW000  [     dev trc,00000]  &+     row 1:             1 WCHAR           I=6       "210"               34  65811.628772
    4 ETW000  [     dev trc,00000]  &+                                                                                                                      
    4 ETW000                                                                                                  51  65811.628823
    4 ETW000  [     dev trc,00000]  &+                                                                                                                      
    4 ETW000                                                                                                  50  65811.628873
    4 ETW000  [     dev trc,00000]  *** ERROR in DB6Execute[dbdb6.c, 4980] (END)                              27  65811.628900
    4 ETW000  [    dbtran  ,00000]  ***LOG BY4=>sql error -964   performing DEL on table FAGLFLEXA                    
    4 ETW000                                                                                                3428  65811.632328
    4 ETW000  [    dbtran  ,00000]  ***LOG BY0=>SQL0964C  The transaction log for the database is full.  SQLSTATE=57011 row=1
    4 ETW000                                                                                                  46  65811.632374
    4 ETW000  [     dev trc,00000]  dbtran ERROR LOG (hdl_dbsl_error): DbSl 'DEL'                             59  65811.632433
    4 ETW000                         RSLT: {dbsl=99, tran=1}
    4 ETW000                         FHDR: {tab='FAGLFLEXA', fcode=194, mode=2, bpb=0, dbcnt=0, crsr=0,
    4 ETW000                                hold=0, keep=0, xfer=0, pkg=0, upto=0, init:b=0,
    4 ETW000                                init:p=0000000000000000, init:#=0, wa:p=0X00000000020290C0, wa:#=10000}
    4 ETW000  [     dev trc,00000]  dbtran ERROR LOG (hdl_dbsl_error): DbSl 'DEL'                            126  65811.632559
    4 ETW000                         STMT: {stmt:#=0, bndfld:#=1, prop=0, distinct=0,
    4 ETW000                                fld:#=0, alias:p=0000000000000000, fupd:#=0, tab:#=1, where:#=2,
    4 ETW000                                groupby:#=0, having:#=0, order:#=0, primary=0, hint:#=0}
    4 ETW000                         CRSR: {tab='', id=0, hold=0, prop=0, max.in@0=1, fae:blk=0,
    4 ETW000                                con:id=0, con:vndr=7, val=2,
    4 ETW000                                key:#=3, xfer=0, xin:#=0, row:#=0, upto=0, wa:p=0X00000001421A3000}
    2EETW125 SQL error "-964" during "-964" access: "SQL0964C  The transaction log for the database is full.  SQLSTATE=57011 row=1"
    4 ETW690 COMMIT "14208" "-1"
    4 ETW000  [     dev trc,00000]  *** ERROR in DB6Execute[dbdb6.c, 4980] CON = 0 (BEGIN)                 16208  65811.648767
    4 ETW000  [     dev trc,00000]  &+     DbSlModifyDB6( SQLExecute ): [IBM][CLI Driver][DB2/NT64] SQL0964C  The transaction log for the database is full. 
    4 ETW000                                                                                                  75  65811.648842
    4 ETW000  [     dev trc,00000]  &+     SQLSTATE=57011 row=1                                                                                             
    4 ETW000                                                                                                  52  65811.648894
    4 ETW000  [     dev trc,00000]  &+                                                                                                                      
    4 ETW000                                                                                                  51  65811.648945
    4 ETW000  [     dev trc,00000]  &+     INSERT INTO DDLOG (SYSTEMID, TIMESTAMP, NBLENGTH, NOTEBOOK) VALUES (  ? , CHAR(   CURRENT TIMESTAMP - CURRENT TIME
    4 ETW000                                                                                                  50  65811.648995
    4 ETW000  [     dev trc,00000]  &+     ZONE   ), ?, ? )                                                                                                 
    4 ETW000                                                                                                  49  65811.649044
    4 ETW000  [     dev trc,00000]  &+       cursor type=NO_HOLD, isolation=UR, cc_release=YES, optlevel=5, degree=1, op_type=15, reopt=0                   
    4 ETW000                                                                                                  55  65811.649099
    4 ETW000  [     dev trc,00000]  &+                                                                                                                      
    4 ETW000                                                                                                  49  65811.649148
    4 ETW000  [     dev trc,00000]  &+     Input SQLDA:                                                                                                     
    4 ETW000                                                                                                  50  65811.649198
    4 ETW000  [     dev trc,00000]  &+                        1 CT=WCHAR           T=VARCHAR         L=44    P=66    S=0   
    4 ETW000                                                                                                  47  65811.649245
    4 ETW000  [     dev trc,00000]  &+                        2 CT=SHORT           T=SMALLINT        L=2     P=2     S=0   
    4 ETW000                                                                                                  48  65811.649293
    4 ETW000  [     dev trc,00000]  &+                        3 CT=BINARY          T=VARBINARY       L=32000 P=32000 S=0   
    4 ETW000                                                                                                  47  65811.649340
    4 ETW000  [     dev trc,00000]  &+                                                                                                                      
    4 ETW000                                                                                                  50  65811.649390
    4 ETW000  [     dev trc,00000]  &+     Input data:                                                                                                      
    4 ETW000                                                                                                  49  65811.649439
    4 ETW000  [     dev trc,00000]  &+     row 1:             1 WCHAR           I=14      "R3trans"           32  65811.649471
    4 ETW000  [     dev trc,00000]  &+                        2 SHORT           I=2        12744              32  65811.649503
    4 ETW000  [     dev trc,00000]  &+                        3 BINARY          I=12744   00600306003200300030003900300033003300310031003300320036003400390000...
    4 ETW000                                                                                                  64  65811.649567
    4 ETW000  [     dev trc,00000]  &+                                                                                                                      
    4 ETW000                                                                                                  52  65811.649619
    4 ETW000  [     dev trc,00000]  &+                                                                                                                      
    4 ETW000                                                                                                  51  65811.649670
    4 ETW000  [     dev trc,00000]  *** ERROR in DB6Execute[dbdb6.c, 4980] (END)                              28  65811.649698
    4 ETW000  [    dbsyntsp,00000]  ***LOG BY4=>sql error -964   performing SEL on table DDLOG                36  65811.649734
    4 ETW000  [    dbsyntsp,00000]  ***LOG BY0=>SQL0964C  The transaction log for the database is full.  SQLSTATE=57011 row=1
    4 ETW000                                                                                                  46  65811.649780
    4 ETW000  [    dbsync  ,00000]  ***LOG BZY=>unexpected return code 2          calling ins_ddlog           37  65811.649817
    4 ETW000  [     dev trc,00000]  db_syflush (TRUE) failed                                                  26  65811.649843
    4 ETW000  [     dev trc,00000]  db_con_commit received error 1024 in before-commit action, returning 8
    4 ETW000                                                                                                  57  65811.649900
    4 ETW000  [    dbeh.c  ,00000]  *** ERROR => missing return code handler                               1974  65811.651874
    4 ETW000                         caller does not handle code 1024 from dblink#5[321]
    4 ETW000                         ==> calling sap_dext to abort transaction
    2EETW000 sap_dext called with msgnr "900":
    2EETW125 SQL error "-964" during "-964" access: "SQL0964C  The transaction log for the database is full.  SQLSTATE=57011 row=1"
    1 ETP154 MAIN IMPORT
    1 ETP110 end date and time   : "20140627022021"
    1 ETP111 exit code           : "12"
    1 ETP199 ######################################
    Regards,
    Rajesh

    Hi Babu,
    I believe you should have taken a restart of your system if log primary are changed.  If so, then increase log primary to 120 and secondary to 80 provide size and space are enough.
    Note 1293475 - DB6: Transaction Log Full
    Note 1308895 - DB6: File System for Transaction Log is Full
    Note: 495297 - DB6: Monitoring transaction log    
    Regards,
    Divyanshu

  • Creating the Windows Service for the Database Instance

    Hello, I am using the PeopleTools 8.52 Installation for Oracle documentation and was in Task 6A-2: Creating the Windows Service for the Database Instance.
    After I type in
    oradim -new -sid ORCL -intpwd manager -startmode auto -pfile C:\Oracle\database\initORCL.ora
    I had encountered these errors:
    OPW-00005: File with same name exists - please delete or rename
    DIM-00019: create service error
    O/S-Error: (OS 1073) The specified service already exists.
    Please advise.... Thank you in advance!

    Hi, thank you for your reply!
    After I typed oradim -delete -sid ORCL, it shows this:
    Unable to stop service, OS Error = 1062
    Instance deleted.
    Then, I:
    Set ORACLE_SID=ORCL
    oradim -new -sid ORCL -intpwd manager -startmode auto -pfile C:\Oracle\database\initORCL.ora
    Then, it shows:
    OPW-00005: Files with same name exists - please delete or rename
    Instance created.
    Does it mean no error already and I can proceed?

  • How to install E-bussiness suite with out creating the database?

    We are planning to Migrate our Single node Tru64 E-bussines suit installation to multi node IBM-AIX (DB Node) and Sun Solaris(APPL_TOP)
    We are thinking to follow below step
    1) Install E-Bussines suit with out Oracle Database( Only Oracle DB sotware and Apps Filesystem need to be installed) -- IBM AIX (DB Node) & Sun Solaris (APPL_TOP)
    2) Migrate current Oracle DB on Tru64 into IBM AIX using transportable Tablespace method
    It is ok to follow this approach?
    How to install Oracle E-bussiness suit with out Oracle Database? ( Only Oracle DB sotware and Apps Filesystem need to be installed)
    Thanks
    John

    John,
    For migrating the application tier, please refer to the following note:
    Note: 238276.1 - Migrating to Linux with Oracle Applications Release 11i
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=238276.1
    For the database, you need to export/import the database.
    Note: 369693.1 - Using Oracle Applications with a Split Configuration Database Tier on Oracle 10g Release 2
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=369693.1
    Note: 362205.1 - 10g Release 2 Export/Import Process for Oracle Applications Release 11i
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=362205.1
    Note: 304489.1 - Using Oracle Applications with a Split Configuration Database Tier on Oracle 9i Release 2
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=304489.1
    Note: 230627.1 - 9i Export/Import Process for Oracle Applications Release 11i
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=230627.1
    1) Install E-Bussines suit with out Oracle Database( Only Oracle DB sotware and Apps Filesystem need to be installed) -- IBM AIX (DB Node) & Sun Solaris (APPL_TOP)
    2) Migrate current Oracle DB on Tru64 into IBM AIX using transportable Tablespace method
    It is ok to follow this approach? 1) What about the patches you have applied since the time of the installation? Doing a fresh installation will not include these patches.
    2) The supported method to migrate an Oracle Apps database between two Operating Systems which are not binary compatible is by using export/import. I believe transportable Tablespace has some limitations and would not work for such migration.
    How to install Oracle E-bussiness suit with out Oracle Database? ( Only Oracle DB sotware and Apps Filesystem need to be installed)You would need to follow the steps in the notes referenced above. However, to answer your question, please refer to:
    Oracle Applications Installation Guide: Using Rapid Install - Chapter 5, Installing Technology Stack Components
    http://download-uk.oracle.com/docs/cd/B25516_14/current/acrobat/r115102ins.pdf

  • How to display the contents of the database values which are retrived.

    how to display the contents of the database values which are retrived in servlets and i am able to display the contents in the servlets and if forward to jsp using requestdespatcher,the values are to be shown in jsp one below the other.please suggest me in these........the servlet code is as shown
    while(rs.next()){
                        buffer.append(rs.getString(1));
                        buffer.append(rs.getString(2));
                        buffer.append(rs.getString(3));
                        buffer.append(rs.getString(4));
                        buffer.append(rs.getString(5));
                        buffer.append(rs.getString(6));
                        buffer.append(rs.getString(7));
                        buffer.append(rs.getString(8));
                        buffer.append(rs.getString(9));
                        buffer.append(rs.getString(10));
                        request.setAttribute("result1",buffer);
                        RequestDispatcher rq=request.getRequestDispatcher("/results.jsp");
                        rq.forward(request,response);
    in jsp iam using the getAttribute to retrieve the values as shown
    <% StringBuffer sb=(StringBuffer)request.getAttribute("result1"); %>
    <%= sb %>
    but getting the results in the stretch,i need to display the result one below the other.

    if you load it all into the buffer that is going to be very difficult. I would suggest loading it into some sort of collection. I like using an ArrayList.
    Then pass the arraylist.
    you will then on the jsp iterate through the arrayList using what every you want.. el, logic tags, scriplets.
    so something like
    ArrayList arrayList = new ArrayList();
    while(rs.next()){
    arrayList.append(rs.getString(1));
    //or possibly an arrayList of String arrays
    //maybe using nested for loops.  Inner for loop adds result to string[] then //outer adds string[] to arrayList.
    //can be done any number of ways based on your expected result set.

  • OAK3 error message - Specifications for the mean value methods incorrectly

    Hello experts,
    After golive of sap ECC system of our client, when the auditors check the consistency of depreciaion areas in transaction OAK3, the error message is appearing under the depreciation area 01 as "Specifications for the mean value methods incorrectly defined". Can anybody throw some light on how to encounter this error message?
    Thanks

    Hi,
    1) Usually, the reason why the error occurs is that you have no area defined in the chart of depreciation.
    2) Also please check the attached note 847289.     
    3) Please also run OIB5 and check if capitalization version is assigned to depreciation area 01                                            
    If you use capitalization versions it is necessary to have a depreciation area with area type 07 (Cost-acc. valuation) which     
    get the whole amounts.                                                                               
    The depreciation area which takes the values to 100 % must have the following features:                                                 
    => The currency of the depreciation area should have the currency of the controlling area                                          
    => The depreciation area should have the depreciation area type "07 Cost-acc. valuation"                                         
    => The area should not have a capitalization version       
    regards Bernhard

  • Release By two Users for the  same Value

    Friends
    I have an existing PO rel. strategy where the range is 1-10000USD  . This is currently released by one user. Now due to business requirement  client wants to introduce one additional user to release the PO as well for the same  value range.
    In a nutshell for the value range  USD 1-10000 , There will be two approvers with two different rel. codes. How do I achieve this?
    Thanks
    samuel

    Dear,
    Check this : Release Procudure for Purchase Order
    Hope Helpful to your requirement.
    Regards,
    Syed Hussain.

  • How can I reduce the selection for the characteristics value in a BW query

    Good morning,
    I need to find out how I can reduce the selection for the characteristics values in a BW query.
    In a BW query I have a characteristic "Due month".
    The characteristic values shown in the query are from 01.2001->03.2007. I would like to reduce it to the last 2 years,in the query view,  without deleting the data for the other years in the cube.
    Do you know how this can be done?
    Thank you in advance for your feedback.
    Kind regards,
    Linda Verding
    Staff Consultant - CSC

    hi,
    First thing you have to do is check the report how the data is being restricted only to those months.
    1) one it can be variable in which the code is written for that to populate for last few years.
    or else it must have been hardcoded for these months.
    Go into your report and underneath the characteristicsCALMONTH there must be an variable or hardcoding.
    You need to change this here in the report.
    You dont have to delete anything there.
    Regards, Siva

  • Prompting for the database logon while opening the report in CMC

    I created a report and saved in the Crystal server 2008 repository.  I set the  default Database configuration as
    report > Schedule > Database Logon > set password
    or tick "Use same database logon as when report is run" in Default Settings > Database Configuration.
    But when I am click on View for the report still it is promting for the database loging name and password.
    is there any other settings required for this.
    Thanks
    Unni

    Moving to BOE forums

  • The updated iPhoto program is cumbersome.  I am trying to create a Christmas card and can't figure out how to get the fold of the card on the left and not on the top of the card.  I had no trouble with this for the past two years.  Can someone help?

    The updated iPhoto program is cumbersome.  I am trying to create a Christmas card and can't figure out how to get the fold of the card on the left and not on the top of the card.  I had no trouble with this for the past two years.  Can someone help?

    Click on the Layout button lower right and choose a Vertical lyout from the dropdown

  • ACR 8.7 has been released with support for the Nkon D750.  Why no Lightroom support yet?

    ACR 8.7 has been released with support for the Nkon D750.  Why no Lightroom support yet? Am I wrong or was support for the D810 available far more quickly?

    ACR 8.7 has not yet been released. The ACR 8.7RC has been released. It is a Release Candidate - and as such, is not a final version.  I wouldn't be concerned about a lack of Lightroom support until a final version is released.
    Adobe Photoshop Camera Raw 8.7 Release Candidate | digital camera raw file support - Adobe Labs

Maybe you are looking for