Error in table row size

Can anyone tell me solution for following error.
Error Desc. : - table row size is larger than 176 cm.
please reply.

Hi, and welcome to SDN !
to help other users to better understand your problem you should try to give more details about the context in which the error occurred.
Moreover, are you sure this is the right section (ABAP Objects) for this kind of problems?
It seems to be a printout problem, but im not sure
Best regards,
Manuel

Similar Messages

  • It has error when table row big than 500

    Hi,All
    my war file in Appserver8 is correct,but in JBoss4.0.2,when table row only 100 or 200, be ok yet,but big than 500,has below error.
    2007-12-14 14:43:22,062 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[yx].[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
    com.sun.data.provider.DataProviderException: java.lang.reflect.InvocationTargetException
         at com.sun.data.provider.impl.MethodResultTableDataProvider.invokeDataMethod(MethodResultTableDataProvider.java:257)
         at com.sun.data.provider.impl.MethodResultTableDataProvider.invokeDataMethod(MethodResultTableDataProvider.java:215)
         at com.sun.data.provider.impl.MethodResultTableDataProvider.testInvokeDataMethod(MethodResultTableDataProvider.java:267)
         at com.sun.data.provider.impl.MethodResultTableDataProvider.getRowCount(MethodResultTableDataProvider.java:397)
         at com.sun.rave.web.ui.component.TableRowGroup.getRowKeys(TableRowGroup.java:806)
         at com.sun.rave.web.ui.component.TableRowGroup.getFilteredRowKeys(TableRowGroup.java:429)
         at com.sun.rave.web.ui.component.TableRowGroup.getSortedRowKeys(TableRowGroup.java:1385)
         at com.sun.rave.web.ui.component.TableRowGroup.getRenderedRowKeys(TableRowGroup.java:876)
         at com.sun.rave.web.ui.component.TableRowGroup.iterate(TableRowGroup.java:1956)
         at com.sun.rave.web.ui.component.TableRowGroup.processDecodes(TableRowGroup.java:1679)
         at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880)
         at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880)
         at com.sun.rave.web.ui.component.Form.processDecodes(Form.java:78)
         at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880)
         at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880)
         at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880)
         at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880)
         at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:306)
         at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:79)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
         at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
         at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.reflect.InvocationTargetException
         at sun.reflect.GeneratedMethodAccessor359.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.data.provider.impl.MethodResultTableDataProvider.invokeDataMethod(MethodResultTableDataProvider.java:236)
         ... 43 more
    Caused by: java.rmi.ServerException: RuntimeException; nested exception is:
         java.lang.NullPointerException
         at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:386)
         at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:196)
         at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
         at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
         at org.jboss.ejb.Container.invoke(Container.java:873)
         at sun.reflect.GeneratedMethodAccessor92.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
         at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:155)
         at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:104)
         at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:179)
         at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:165)
         at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
         at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
         at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:97)
         at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:86)
         at $Proxy129.getAmmeterByBooknumForInputData(Unknown Source)
         at khdf.khdfsession.KhdfSessionClient.getAmmeterByBooknumForInputData(KhdfSessionClient.java:214)
         ... 47 more
    Caused by: java.lang.NullPointerException
         at khdf.KhdfSessionBean.getAmmeterByBooknumForInputData(KhdfSessionBean.java:7024)
         at sun.reflect.GeneratedMethodAccessor360.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
         at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)
         at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
         at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:130)
         at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:51)
         at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
         at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105)
         at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
         at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
         at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:139)
         at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
         ... 68 more
    Heading 6: h6.

    Hi,Futeleufu_John
    Yes,All rows of the table display in a page througe setting layoutpanel's property "overflow:scroll".
    Same war file & jar files,it works fine when i deploys in SunAppserver8 whether the table have many rows,but in Jboss,few rows are fine,e.g. 200 rows are ok,but the table rows more than 500,it's error.
    i has test the ejb's method in Jbuilder,it's fine more than 500 rows,that is, the method is fine,only because of displaying in Jboss.
    the method KhdfSessionBean.getAmmeterByBooknumForInputData's code snippets as follows:
    public AmmeterDTO[] getAmmeterByBooknumForInputData(String charcomid,
          Integer booknum, String operid)
        if (charcomid == null || booknum == null)
          return null;
        ArrayList ammeterList = new ArrayList();
        AmmeterDTO ammeterDto = new AmmeterDTO();
        try
          Context ctx = new InitialContext();
          DataSource ds = (DataSource) ctx.lookup(strJdbc);
          conn = ds.getConnection();
          callstat = conn.prepareCall("{call p_get_ammeterinfo(?,?,?,?,?)}");
            ammeterDto = new AmmeterDTO(..........);
            ammeterList.add(ammeterDto);
        catch (SQLException ex)
        catch (NamingException ex)
        catch (ParseException ex)
        finally
          try
            if (callstat != null)
              callstat.close();
            if (conn != null)
              conn.close();
            if (rs != null)
              rs.close();
          catch (SQLException ex1)
        return (AmmeterDTO[]) ammeterList.toArray(new AmmeterDTO[0]);
      }

  • Resize table row height dynamically

    Hi All,
      I have a requirement to display four item texts in one of the table column. I had created a subform with four texts in that column. I am getting the data as required, but by default the table row size has increased because of four texts in the column. At times, i have only data in two texts, still getting the default size of the row(0.41in height), how can i adust the height based on the data. How can i adust the row of the table dynamically.  
    Thanks,
    Kumar

    Hi Kumar,
    I did similar to this, where as my table is entirly designed in subforms, so there is no auto setting of the columns of a row.
    I had the below code, which finds the maximum height of a coulmn element and sets its height to all of the coulms of a row instance.
    I call this function on layout ready event of the row, as below
    ItemGenerator.setHeight(this);
      function setHeight(rowData){
         if(rowData.presence == "visible"){
    //             xfa.host.messageBox("height set start in layout ready");
               var yearH = parseFloat(xfa.layout.h(rowData.FinYear,"in")).toFixed(3);
    //           xfa.host.messageBox("1");
               var ipaH = parseFloat(xfa.layout.h(rowData.IPAType,"in")).toFixed(3);
    //           xfa.host.messageBox("2");
               var expenseH = parseFloat(xfa.layout.h(rowData.ExpenseType,"in")).toFixed(3);
    //           xfa.host.messageBox("3");
               var descH = parseFloat(xfa.layout.h(rowData.Description,"in")).toFixed(3);
    //           xfa.host.messageBox("4");
               var payH = parseFloat(xfa.layout.h(rowData.PayType,"in")).toFixed(3);
    //           xfa.host.messageBox("5");
               var payconH = parseFloat(xfa.layout.h(rowData.PayConditions,"in")).toFixed(3);
    //           xfa.host.messageBox("6");
               var acqconH = parseFloat(xfa.layout.h(rowData.AcqittalCond,"in")).toFixed(3);
    //           xfa.host.messageBox("7");
               var maxHeight = Math.max(yearH,ipaH,expenseH,descH,payH,payconH,acqconH)+"in";
               var marginBottom = parseFloat(Math.max(yearH,ipaH,expenseH,descH,payH,payconH,acqconH)- 0.2).toFixed(3)+"in";
    //           xfa.host.messageBox("max height = "+maxHeight);
    //           xfa.host.messageBox("bot margin  = "+marginBottom );
               rowData.h = maxHeight;
               rowData.IPA.h = maxHeight;
               rowData.IPA.margin.bottomInset = marginBottom ;
    //           xfa.host.messageBox("8");
               rowData.FinYear.h = maxHeight;
    //           xfa.host.messageBox("9");
               rowData.IPAType.h = maxHeight;
    //           xfa.host.messageBox("10");
               rowData.ExpenseType.h = maxHeight;
    //           xfa.host.messageBox("11");
               rowData.Description.h = maxHeight;
               rowData.ReqAmt.h = maxHeight;
    //           xfa.host.messageBox("11");
               rowData.RecAmt.h = maxHeight;
    //           xfa.host.messageBox("12");
               rowData.PayType.h = maxHeight;
    //           xfa.host.messageBox("13");
               rowData.PayConditions.h = maxHeight;
    //           xfa.host.messageBox("14");
               rowData.AcqittalCond.h = maxHeight;     
    //           xfa.host.messageBox("15");
               rowData.Remove.h = maxHeight;
               rowData.Remove.margin.bottomInset = marginBottom ;
    //           xfa.host.messageBox("finally");
    Hope something of this sort might helpful to you.
    Cheers,
    Sai

  • Two swing tables row doesn't have same height-urgent

    Hi,
    i have two tables inside two different panels.The tables row size is not same.private javax.swing.JPanel getJPanel3() {
         if (ivjJPanel3 == null) {
              try {
                        ivjJPanel3 = new javax.swing.JPanel();
                        ivjJPanel3.setName("JPanel3");
                        ivjJPanel3.setBorder(new javax.swing.border.EtchedBorder());
                        ivjJPanel3.setLayout(new java.awt.BorderLayout());
                        ivjJPanel3.setBackground(new java.awt.Color(220,222,248));
                        ivjJPanel3.setBounds(580, 24, 215, 319);
                        ivjJPanel4 = new javax.swing.JPanel( new BorderLayout());
                        ivjJPanel4.setBackground(new java.awt.Color(220,222,248));
                        ivjJLabel13 = new JLabel("Enter Attendees", JLabel.CENTER);
                        ivjJPanel4.add( ivjJLabel13, BorderLayout.NORTH );
                        ivjJPanel5 = new javax.swing.JPanel( new BorderLayout());
                        ivjJPanel5.setBackground(new java.awt.Color(220,222,248));
                        ivjJLabel14 = new JLabel("First Name");
                        ivjJPanel5.add( ivjJLabel14, BorderLayout.WEST );
                        ivjJTextField17 = new javax.swing.JTextField();
                        ivjJPanel5.add( ivjJTextField17, BorderLayout.CENTER );
                        ivjJPanel4.add(ivjJPanel5, BorderLayout.CENTER);
                        ivjJPanel6 = new javax.swing.JPanel( new BorderLayout());
                        ivjJPanel6.setBackground(new java.awt.Color(220,222,248));
                        ivjJLabel15 = new JLabel("Last Name");
                        ivjJPanel6.add( ivjJLabel15, BorderLayout.WEST );
                        ivjJTextField18 = new javax.swing.JTextField();
                        ivjJPanel6.add( ivjJTextField18, BorderLayout.CENTER );
                        ivjJPanel4.add(ivjJPanel6, BorderLayout.SOUTH);
                        getJPanel3().add( ivjJPanel4, BorderLayout.NORTH );
                        String[] columnNames = {"First Name", "Last Name"};
                        tableModel = new DefaultTableModel( columnNames, 0 ){
                             public boolean isCellEditable(int row, int column)
                                 return false;
                        ivjJTable = new JTable( tableModel );
                        ivjJTable.setRowSelectionAllowed(true);
                        ivjJTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
                        ivjJScrollPane = new JScrollPane( ivjJTable );
                        getJPanel3().add( ivjJScrollPane, BorderLayout.CENTER );
                        ivjJPanel7 = new javax.swing.JPanel();
                        ivjJPanel7.setLayout( new java.awt.BorderLayout());
                        ivjJButton4 = getJButton4();
                        ivjJPanel7.add( ivjJButton4, BorderLayout.WEST);
                        ivjJButton5 = getJButton5();
                        ivjJPanel7.add( ivjJButton5, BorderLayout.EAST );
                        getJPanel3().add(ivjJPanel7, BorderLayout.SOUTH );
                   } catch (java.lang.Throwable ivjExc) {
                   // user code begin {2}
                   // user code end
                   handleException(ivjExc);
              return ivjJPanel3;
    * Return the JPanel3 property value.
    * @return javax.swing.JPanel
    /* WARNING: THIS METHOD WILL BE REGENERATED. */
    private javax.swing.JPanel getJPanel43() {
         if (ivjJPanel43 == null) {
              try {
                                    ivjJPanel43 = new javax.swing.JPanel();
                                    ivjJPanel43.setName("JPanel4");
                        ivjJPanel43.setBorder(new javax.swing.border.EtchedBorder());
                        ivjJPanel43.setLayout(new java.awt.BorderLayout());
                        ivjJPanel43.setBackground(new java.awt.Color(220,215,222,248));
                        ivjJPanel43.setBounds(796, 24, 260,296);
                        ivjJPanel4t = new javax.swing.JPanel( new BorderLayout());
         ivjJPanel4t.setBackground(new java.awt.Color(220,222,248));
                                            ivjJLabel13t = new JLabel("Enter Firm", JLabel.CENTER);
                                            ivjJPanel4t.add( ivjJLabel13t, BorderLayout.NORTH );
                                            ivjJPanel5t = new javax.swing.JPanel( new BorderLayout());
                                            ivjJPanel5t.setBackground(new java.awt.Color(220,222,248));
                                            ivjJLabel14t = new JLabel("Firm  ");
                                            ivjJPanel5t.add( ivjJLabel14t, BorderLayout.WEST );
                                            // ivjJTextField17t = new javax.swing.JTextField();
                                            ivjJPanel5t.add( getJComboBox30(), BorderLayout.CENTER );
                                            ivjJPanel4t.add(ivjJPanel5t, BorderLayout.CENTER);
                                            ivjJPanel6t = new javax.swing.JPanel( new BorderLayout());
                                            ivjJPanel6t.setBackground(new java.awt.Color(220,222,248));
                                            ivjJLabel15t = new JLabel("         ");
                                            ivjJPanel6t.add( ivjJLabel15t, BorderLayout.WEST );
                                            ivjJTextField30 = new javax.swing.JTextField();
                                            ivjJPanel6t.add( ivjJTextField30, BorderLayout.CENTER );
                                            ivjJPanel4t.add(ivjJPanel6t, BorderLayout.SOUTH);
                                            getJPanel43().add( ivjJPanel4t, BorderLayout.NORTH );
                                    String[] columnNames1 = {"Firm Name"};
                        tableModel1 = new DefaultTableModel( columnNames1, 0 ){
                             public boolean isCellEditable(int row, int column)
                                 return false;
                        ivjJTable1 = new JTable( tableModel1 );
                        ivjJTable1.setRowSelectionAllowed(true);
                                    ivjJTable1.setSelectionModel(ivjJTable.getSelectionModel());
                                    ivjJTable1.changeSelection(ivjJTable.getSelectedRow(),0,false,false);
                        ivjJScrollPane1 = new JScrollPane( ivjJTable1 );
                        ivjJPanel43.add( ivjJScrollPane1, BorderLayout.CENTER);
                                    setVisible(true);
               catch (java.lang.Throwable ivjExc) {
                   // user code begin {2}
                   // user code end
                   handleException(ivjExc);
              return ivjJPanel43;
    }

    If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.

  • ROW SIZE?

    What is the view for query table row size?
    is the avg_row_len field in dba_tables?
    thanks,

    If the table has a column containing nulls, you might want to use NVLs:
    select
    max(nvl(vsize(empno),0)+
    nvl(vsize(ename),0)+
    nvl(vsize(job),0)+
    nvl(vsize(mgr),0)+
    nvl(vsize(hiredate),0)+
    nvl(vsize(sal),0)+
    nvl(vsize(sal),0)+
    nvl(vsize(deptno),0)) max_size
    from emp
    I ran the original version (without NVL) against a couple different tables and the result was NULL (because vsize returns NULL if the column is null).

  • Reg: PLS-00418: array bind type must match PL/SQL table row type error

    I am trying to access a table of records through JDBC OracleCallableStatement. I am able to do it fine for all mappings except for the ones below
    TYPE CAT_CD_TYPE IS TABLE OF A.B %TYPE INDEX BY BINARY_INTEGER;
    TYPE ORG_CD_TYPE IS TABLE OF C.D %TYPE INDEX BY BINARY_INTEGER;
    Column B is CHAR(1) and Column D is CHAR(2). I am trying to register the out parameters of Oraclecallablestatement as
    cstmt.registerIndexTableOutParameter(2, 2000, OracleTypes.CHAR, 0);
    cstmt.registerIndexTableOutParameter(3, 2000, OracleTypes.CHAR, 0);
    All the other mappings work fine. These two fail with the error
    SQLException in invokeDBPackage() : ORA-06550: line 1, column 32:
    PLS-00418: array bind type must match PL/SQL table row type
    ORA-06550: line 1, column 35:
    PLS-00418: array bind type must match PL/SQL table row type
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    I tried other OracleTypes mappings too but no luck so far.
    Any advice on this would be greatly appreciated.

    Hi,
    I'm not sure it's reasonable to expect someone to sift through that much stuff.
    Which parameter is it having a problem with?
    Can you modify the following to reproduce the behavior?
    Thanks
    Greg
    create package mypack5 as
    TYPE v2array is table of emp.ename%type index by BINARY_INTEGER;
    PROCEDURE test_it(thearray IN v2array, numrecs out number);
    END;
    CREATE or replace PACKAGE BODY MYPACK5 AS
    PROCEDURE test_it(thearray IN v2array, numrecs out number)
    IS
    begin
    numrecs := thearray.count;
    END;
    END;
    using System;
    using System.Data;
    using Oracle.DataAccess.Client;
    public class indexby
    public static void Main()
    OracleConnection con = new OracleConnection("data source=orcl;user id=scott;password=tiger;");
    con.Open();
    OracleCommand cmd = new OracleCommand("mypack5.test_it", con);
    cmd.CommandType = CommandType.StoredProcedure;
    OracleParameter Param1 = cmd.Parameters.Add("param1", OracleDbType.Varchar2);
    Param1.Direction = ParameterDirection.Input;
    Param1.CollectionType = OracleCollectionType.PLSQLAssociativeArray;
    Param1.Size = 3;
    string[] vals = { "foo", "bar", "baz" };
    Param1.Value = vals;
    OracleParameter Param2 = cmd.Parameters.Add("param2", OracleDbType.Int32, DBNull.Value, ParameterDirection.Output);
    cmd.ExecuteNonQuery();
    Console.WriteLine("{0} records passed in", Param2.Value);
    con.Close();
    }

  • How to calcalate the maximum size occupied by a table/row

    Hi,
    I am using the below query to find the maximum size occupied by a table per a row of data.
    SQL> desc t2
    Name Null? Type
    NO NUMBER(1)
    CH VARCHAR2(10)
    SQL> select sum(data_length) from user_tab_columns where table_name='T2';
    SUM(DATA_LENGTH)
    32
    Is this correct? Does oracle takes 22 bytes of space to store a column of Number(1) per a row as it shows below !?
    1* select data_length from user_tab_columns where table_name='T2'
    SQL> /
    DATA_LENGTH
    22
    10
    Please give your comments/suggestions
    Thanks and Regards
    Srikanth

    If you are trying to do this for an existing table, you can get the actual number of bytes stored per column by:
    SELECT VSIZE(column_name)
    FROM tableSo, to get the largest row you could:
    SELECT MAX(VSIZE(col1) + VSIZE(col2) ... + VSIZE(coln))
    FROM tableIf you want to get the theoretical largest possible row size, then you can use something like:
    SELECT SUM(DECODE(data_type,'NUMBER', ROUND((data_precision/2)+.1,0) +1,
                                'DATE',   7,
                                'LONG',   2147483648,
                                'BLOB',   4000,
                                'CLOB',   4000,
                                data_length)) max_length
    FROM user_tab_columns
    WHERE table_name = 'MY_TABLE'This works because:
    For a number, Oracle stores two digits in each byte, and uses one byte for the mantissa. Note, if you are expecting negative numbers in your numeric columns then add one additional byte).
    For a date, Oracle always requires 7 bytes.
    A long is at most 2 GB in size.
    Both Blobs and Clobs will be stored out-of-line when they are larger than about 4,000 bytes.
    For other data types you specify bytes of storage when you define the column, and that is stored in data_length.
    I'm not sure at this point what sort of sizes you would get for object type columns or nested tables.
    HTH
    John

  • Table headings and column/row sizes

    I have mapped my FM table format to a table style defined in my CSS. However, I have the following issues with the resulting RoboHelp tables:
    I have a header row in the FrameMaker table, but the header doesn't come over into RH. All of the table rows are <td> instead of <th>. Therefore, the shading defined in my CSS for the table header row does not appear.
    A bunch of inline formatting that I don't want is coming over, defining the table width and the row width and height. Here's an example:
    <table class="formatA" cellspacing="0" width="600">
        <tr style="height: 18.00pt;">
            <td style="vertical-align: top; padding-left: 6.00pt; padding-top: 3.00pt;
                 padding-right: 6.00pt; padding-bottom: 3.00pt;" width="198"><p>Report/Visualization</p></td>
            <td style="vertical-align: top; padding-left: 6.00pt; padding-top: 3.00pt;
                 padding-right: 6.00pt; padding-bottom: 3.00pt;" width="402"><p>Description</p></td>
        </tr>
    Is there any way to get RH to recognize table header rows?
    Also, is there any way to prevent the size information from coming over? What I'd like is for the table width to be 100% and the cell widths and heights to be determined by their content (which would happen automatically if the inline formatting weren't added).
    If there isn't a way to accomplish this, then I'd probably be better off not trying to map the table styles and just going with "Source". The sizes would still be fixed, but at least the shading would appear.

    Forget FM for a moment. I think that if you create a table in RoboHelp using TH you will find  RoboHelp simply does not understand TH.
    The more people who report a bug or request a feature, the more likely it is to be actioned. Please follow this link.
    http://www.Adobe.com/cfusion/mmform/index.cfm?name=wishform&product=38
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Why there is a huge difference between a row size on a disk based table and a row size in memoptimized table of SQL 2014?

    Hi All,
    I have two table with similar structure and data, one is on disk and the other is in memory. I somehow calculated the difference between a row size of on disk and in memory table and found that the row size of in memory is 700 Bytes more than the disk based
    tables.
    aa

    As others mentioned, memory optimized tables and disk based tables have different structures in SQL Server 2014.
    For memory optimized tables, the number of indexes on table also contribute to the size. You can calculate the exact size of rows and thus the table size using the formula given in the below articles
    Table and Row Size in Memory-Optimized Tables
    Estimate the Size of a Table
    Krishnakumar S

  • Define Row Size in Table creation

    Hi All,
    I want to create a table in my database.
    How to define the rowsize for that table.
    What are the things to be taken care for creating a new table.
    Thanks in Advance
    Cheers,
    Moorthy.GS

    Roughly, rowsize for the table is size of all combined columns in the table. But runtime row size may vary depending on the data in the column.
    e.g. a VARCHAR2(20) field will give 20 units to above addition but data "a" in this field will give 1 unit to above addition
    Message was edited by:
    satishkandi

  • Calculate row size of table with clob

    Hi
    I have a table which has clob data type, how can I calculate size of each row ?

    Mark D Powell wrote:
    What version of Oracle?
    Are you interested in the combined row size of the base table row and the Lob segment or just the row size of the base table row? Or just the lob segment size?
    Are you asking about a specific row or just the average for the entire table?
    Depending on your version of Oracle dbms_stats which calculates the avg_row_len for the base table when lob columns are present incorrectly.
    HTH -- Mark D Powell --I need row size for every record in the table, the table itself is only 1GB, can be combined size or lob size relevant to each record in a table it doesnt matter.
    v11.2
    thanks

  • Row Size Error

    When I am attempting to render my composition I continue to get an error: "After Effects error: row size too large (131072) (7 :: 53)."
    What does this mean and how to I fix/prevent it? I really need to get this figured out!!!
    Thanks,
    A

    I just ran into this error when I tried importing an Illustrator file. No restarting or reinstalling worked for After Effects CC(2014) on my Mac Book. What however helped is exporting that Illustrator file into a .psd and importing that file instead. It worked fine after.
    Additionally, I was importing Illustrator files earlier this morning without a problem.

  • SP which returns error cannot access rows from a non-nested table item.

    Dear Experts
    I have an SP which gives error " cannot access rows from a non-nested table item ". But here the strange thing is, it works fine with one query. But I write union query with another table, only then it gives error.
    CREATE OR REPLACE PROCEDURE SP_MONTHLYSALESUMMARY (
    P_TRANSACTIONMONTH VARCHAR2,
    P_LEDGERID VARCHAR2,
    O_RESULTSET OUT TYPES.CURSORTYPE)
    AS
    BEGIN
    OPEN O_RESULTSET FOR
    -- POINT OF SALE
    SELECT
    L.DESCRIPTION LEDGERNAME,
    LS.DESCRIPTION LEDGERSUBGROUPNAME,
    C.CORPORATENO
    || E.EMPLOYEENO
    || AF.AFFILIATEMEMBERNO
    || M.MEMBERNO
    AS ID,
    C.NAME || E.NAME || AF.NAME || M.NAME AS NAME,
    SUM(CASE
    WHEN PB.EMPLOYEE_ID IS NOT NULL
    AND T.ISCREDITTRANSACTIONMODE = 2
    THEN
    PB.TAXAMOUNT
    ELSE
    0
    END)
    EMPLOYEEDEBITCARDTAXAMOUNT,
    L.PRINTNO
    FROM POINTOFSALEBILL PB
    INNER JOIN POINTOFSALEBILLDETAIL PD
    ON PB.POINTOFSALEBILL_ID = PD.POINTOFSALEBILL_ID
    INNER JOIN TRANSACTIONTYPE TY
    ON TY.TRANSACTIONTYPE_ID = PB.TRANSACTIONTYPE_ID
    INNER JOIN TRANSACTIONMODE T
    ON T.TRANSACTIONMODE_ID = PB.TRANSACTIONMODE_ID
    INNER JOIN LEDGER L
    ON L.LEDGER_ID = PD.LEDGER_ID
    INNER JOIN LEDGERSUBGROUP LS
    ON LS.LEDGERSUBGROUP_ID = L.LEDGERSUBGROUP_ID
    LEFT JOIN CORPORATE C
    ON C.CORPORATE_ID = PB.CORPORATE_ID
    LEFT JOIN EMPLOYEE E
    ON E.EMPLOYEE_ID = PB.EMPLOYEE_ID
    LEFT JOIN AFFILIATEMEMBER AF
    ON AF.AFFILIATEMEMBER_ID = PB.AFFILIATEMEMBER_ID
    LEFT JOIN MEMBER M
    ON M.MEMBER_ID = PB.MEMBER_ID
    WHERE TY.ISDEBIT = 1 AND PB.FLAG = 0 AND T.ISROOMNO = 2
    AND (P_TRANSACTIONMONTH IS NULL
    OR P_TRANSACTIONMONTH =
    TO_CHAR (PB.BILLDATE, 'fmMONTH-YYYY'))
    AND (P_LEDGERID IS NULL
    OR L.LEDGER_ID IN
    ( (SELECT COLUMN_VALUE
    FROM TABLE(GET_ROWS_FROM_LIST1 (
    P_LEDGERID,
    GROUP BY L.DESCRIPTION,
    LS.DESCRIPTION,
    C.CORPORATENO
    || E.EMPLOYEENO
    || AF.AFFILIATEMEMBERNO
    || M.MEMBERNO,
    C.NAME || E.NAME || AF.NAME || M.NAME,
    L.PRINTNO;
    END SP_MONTHLYSALESUMMARY;
    GET_ROWS_FROM_LIST1 is a function, which i am using to pass " IN " to oracle. There is no problem with this, since it works fine with one query
    REATE OR REPLACE FUNCTION BCLUB1868.GET_ROWS_FROM_LIST1
    (L IN LONG DEFAULT NULL, SEP IN VARCHAR2 DEFAULT ',')
    RETURN MYVARCHARTABLE1 PIPELINED
    AS
    L_POS INT := 1;
    L_NEXT INT;
    L_PART VARCHAR(500);
    BEGIN
    SELECT INSTR( L, SEP, L_POS) INTO L_NEXT FROM DUAL;
    WHILE (L_NEXT>0)
    LOOP
    SELECT SUBSTR(L, L_POS, L_NEXT - L_POS) INTO L_PART FROM DUAL;
    PIPE ROW(L_PART);
    SELECT L_NEXT + 1, INSTR( L, SEP, L_POS)
    INTO L_POS, L_NEXT FROM DUAL;
    END LOOP;
    SELECT SUBSTR(L, L_POS) INTO L_PART FROM DUAL;
    PIPE ROW(L_PART);
    RETURN;
    END;
    Request help from you all experts in the forum

    Here it is
    CREATE OR REPLACE PROCEDURE SP_GRCS (
    P_TRANSACTIONMONTH VARCHAR2,
    P_LEDGERID VARCHAR2,
    O_RESULTSET OUT TYPES.CURSORTYPE)
    AS
    BEGIN
    OPEN O_RESULTSET FOR
    -- Point of sale
    SELECT *
    FROM ( SELECT L.DESCRIPTION LEDGERNAME,
    LS.DESCRIPTION LEDGERSUBGROUPNAME,
    C.CORPORATENO
    || E.EMPLOYEENO
    || AF.AFFILIATEMEMBERNO
    || M.MEMBERNO
    AS ID,
    C.NAME || E.NAME || AF.NAME || M.NAME AS NAME,
    SUM(CASE
    WHEN PB.EMPLOYEE_ID IS NULL
    AND T.ISCREDITTRANSACTIONMODE = 1
    THEN
    PB.BILLAMOUNT
    ELSE
    0
    END)
    MEMBERDEBITAMOUNT,
    L.PRINTNO
    FROM POINTOFSALEBILL PB
    INNER JOIN POINTOFSALEBILLDETAIL PD
    ON PB.POINTOFSALEBILL_ID = PD.POINTOFSALEBILL_ID
    INNER JOIN TRANSACTIONTYPE TY
    ON TY.TRANSACTIONTYPE_ID = PB.TRANSACTIONTYPE_ID
    INNER JOIN TRANSACTIONMODE T
    ON T.TRANSACTIONMODE_ID = PB.TRANSACTIONMODE_ID
    INNER JOIN LEDGER L
    ON L.LEDGER_ID = PD.LEDGER_ID
    INNER JOIN LEDGERSUBGROUP LS
    ON LS.LEDGERSUBGROUP_ID = L.LEDGERSUBGROUP_ID
    LEFT JOIN CORPORATE C
    ON C.CORPORATE_ID = PB.CORPORATE_ID
    LEFT JOIN EMPLOYEE E
    ON E.EMPLOYEE_ID = PB.EMPLOYEE_ID
    LEFT JOIN AFFILIATEMEMBER AF
    ON AF.AFFILIATEMEMBER_ID = PB.AFFILIATEMEMBER_ID
    LEFT JOIN MEMBER M
    ON M.MEMBER_ID = PB.MEMBER_ID
    WHERE TY.ISDEBIT = 1 AND PB.FLAG = 0 AND T.ISROOMNO = 2
    AND (P_TRANSACTIONMONTH IS NULL
    OR P_TRANSACTIONMONTH =
    TO_CHAR (PB.BILLDATE, 'fmMONTH-YYYY'))
    AND (P_LEDGERID IS NULL
    OR L.LEDGER_ID IN
    ( (SELECT COLUMN_VALUE
    FROM TABLE(GET_ROWS_FROM_LIST1 (
    P_LEDGERID,
    GROUP BY L.DESCRIPTION,
    LS.DESCRIPTION,
    C.CORPORATENO
    || E.EMPLOYEENO
    || AF.AFFILIATEMEMBERNO
    || M.MEMBERNO,
    C.NAME || E.NAME || AF.NAME || M.NAME,
    L.PRINTNO
    UNION ALL
    -- Guest Registration
    SELECT L.DESCRIPTION LEDGERNAME,
    LS.DESCRIPTION LEDGERSUBGROUPNAME,
    C.CORPORATENO
    || E.EMPLOYEENO
    || AF.AFFILIATEMEMBERNO
    || M.MEMBERNO
    AS ID,
    C.NAME || E.NAME || AF.NAME || M.NAME AS NAME,
    SUM(CASE
    WHEN PB.EMPLOYEE_ID IS NULL
    AND T.ISCREDITTRANSACTIONMODE = 1
    THEN
    PB.BILLAMOUNT
    ELSE
    0
    END)
    MEMBERDEBITAMOUNT,
    L.PRINTNO
    FROM GUESTREGISTRATION PB
    INNER JOIN GUESTREGISTRATIONDETAIL PD
    ON PB.GUESTREGISTRATION_ID = PD.GUESTREGISTRATION_ID
    INNER JOIN TRANSACTIONTYPE TY
    ON TY.TRANSACTIONTYPE_ID = PB.TRANSACTIONTYPE_ID
    INNER JOIN TRANSACTIONMODE T
    ON T.TRANSACTIONMODE_ID = PB.TRANSACTIONMODE_ID
    INNER JOIN LEDGER L
    ON L.LEDGER_ID = PD.LEDGER_ID
    INNER JOIN LEDGERSUBGROUP LS
    ON LS.LEDGERSUBGROUP_ID = L.LEDGERSUBGROUP_ID
    LEFT JOIN CORPORATE C
    ON C.CORPORATE_ID = PB.CORPORATE_ID
    LEFT JOIN EMPLOYEE E
    ON E.EMPLOYEE_ID = PB.EMPLOYEE_ID
    LEFT JOIN AFFILIATEMEMBER AF
    ON AF.AFFILIATEMEMBER_ID = PB.AFFILIATEMEMBER_ID
    LEFT JOIN MEMBER M
    ON M.MEMBER_ID = PB.MEMBER_ID
    WHERE TY.ISDEBIT = 1 AND PB.FLAG = 0 AND T.ISROOMNO = 2
    AND (P_TRANSACTIONMONTH IS NULL
    OR P_TRANSACTIONMONTH =
    TO_CHAR (PB.BILLDATE, 'fmMONTH-YYYY'))
    AND (P_LEDGERID IS NULL
    OR L.LEDGER_ID IN
    ( (SELECT COLUMN_VALUE
    FROM TABLE(GET_ROWS_FROM_LIST1 (
    P_LEDGERID,
    GROUP BY L.DESCRIPTION,
    LS.DESCRIPTION,
    C.CORPORATENO
    || E.EMPLOYEENO
    || AF.AFFILIATEMEMBERNO
    || M.MEMBERNO,
    C.NAME || E.NAME || AF.NAME || M.NAME,
    L.PRINTNO)
    ORDER BY PRINTNO;
    END SP_GRCS;
    I have even tried adding L.Ledger_ID in select statement.

  • How to computer the row size of a table

    Hi
    How can i compute the row size of a table. My general Idea is
    create table emp(
    empno number(4),
    ename varchar2(10),
    hire_date date,
    update_yn timestamp);
    the character set is UFT8
    how can i compute the size of this table
    thanks

    Hi,
    for Avg. row length see this
    SQL> desc dba_tables
    Name                                      Null?    Type
    OWNER                                     NOT NULL VARCHAR2(30)
    TABLE_NAME                                NOT NULL VARCHAR2(30)
    TABLESPACE_NAME                                    VARCHAR2(30)
    CLUSTER_NAME                                       VARCHAR2(30)
    IOT_NAME                                           VARCHAR2(30)
    PCT_FREE                                           NUMBER
    PCT_USED                                           NUMBER
    INI_TRANS                                          NUMBER
    MAX_TRANS                                          NUMBER
    INITIAL_EXTENT                                     NUMBER
    NEXT_EXTENT                                        NUMBER
    MIN_EXTENTS                                        NUMBER
    MAX_EXTENTS                                        NUMBER
    PCT_INCREASE                                       NUMBER
    FREELISTS                                          NUMBER
    FREELIST_GROUPS                                    NUMBER
    LOGGING                                            VARCHAR2(3)
    BACKED_UP                                          VARCHAR2(1)
    NUM_ROWS                                           NUMBER
    BLOCKS                                             NUMBER
    EMPTY_BLOCKS                                       NUMBER
    AVG_SPACE                                          NUMBER
    CHAIN_CNT                                          NUMBER
    AVG_ROW_LEN NUMBER
    AVG_SPACE_FREELIST_BLOCKS                          NUMBER
    NUM_FREELIST_BLOCKS                                NUMBER
    DEGREE                                             VARCHAR2(10)
    INSTANCES                                          VARCHAR2(10)
    CACHE                                              VARCHAR2(5)
    TABLE_LOCK                                         VARCHAR2(8)
    SAMPLE_SIZE                                        NUMBER
    LAST_ANALYZED                                      DATE
    PARTITIONED                                        VARCHAR2(3)
    IOT_TYPE                                           VARCHAR2(12)
    TEMPORARY                                          VARCHAR2(1)
    SECONDARY                                          VARCHAR2(1)
    NESTED                                             VARCHAR2(3)
    BUFFER_POOL                                        VARCHAR2(7)
    ROW_MOVEMENT                                       VARCHAR2(8)
    GLOBAL_STATS                                       VARCHAR2(3)
    USER_STATS                                         VARCHAR2(3)
    DURATION                                           VARCHAR2(15)
    SKIP_CORRUPT                                       VARCHAR2(8)
    MONITORING                                         VARCHAR2(3)
    CLUSTER_OWNER                                      VARCHAR2(30)
    DEPENDENCIES                                       VARCHAR2(8)
    SQL> Regards!

  • How to find row size of table

    Hi,
    How can I find row size of a table ?
    In My table has millinon's of data inserted.
    thanks in advance.

    Here is a PL/SQL procedure to calculate average row length. It works, but it has an issue because you cannot use VSIZE on BLOB data columns, and it could be re-done using dbms_lob.getlength(BLOB_COLUMN) to get an accurate average_row_length for rows with a BLOB column..
    To find the actual size of a row I did this:
    /* TABLE */
    select
    3 + avg(nvl(dbms_lob.getlength(CASE_DATA),0)+1 +
    nvl(vsize(CASE_NUMBER ),0)+1 +
    nvl(vsize(CASE_DATA_NAME),0)+1 +
    nvl(vsize(LASTMOD_TIME_T),0)+1
    ) "Total bytes per row"
    from
    arch_case_data
    where
    case_number = 301;
    Total bytes per row
    3424
    /* INDEX */
    select sum(COLUMN_LENGTH)
    from dba_ind_columns
    where TABLE_NAME = 'ARCH_CASE_DATA';
    SUM(COLUMN_LENGTH)
    22
    So, the total bytes used is 3424+22.

Maybe you are looking for

  • Can't remove Core Storage from hard drive

    I wanted to erase a backup drive and start over again but somehow it's gotten converted to "Core Storage" I'm told. I managed to erase the drive by first listing the Core Storage devices, using the following command in the OSX Terminal: diskutil cs l

  • Mail Stops receiving mail after phone in standby for a while.

    We are currently running Exchange 2003 SP2. We have direct push enabled on our server. I have setup an iphone to use one of our exchange account and mail is received straight away on the phone. However once the phone has been on standby for a while (

  • Web Services and JAXRPC serialization encoding

    Hi all. I have written a Web Service starting from the WSDL using wscompile (NetBeans 5.0 feature). The WSDL defines an operation which returns a complex data type which is wrapped by JAXRPC SI in a suitable class package. What I simply do, is to use

  • Nd suggestion for importing Word doc into Pages template....

    I have a rather lengthy Word file that I want to import into Pages using one of its templates (Travel Journal). Is there a way to import the Word file directly into this template? I know you can import a Word doc into Pages but once you do that, you

  • More CD-ROM Problems

    Alright, This is great, how many more problems could this computer possibly have? My CD Rom drive is messed up now. About a week ago, it decided it didn't want to burn a CD with more then 6 songs on it via iTunes. I called Apple Care, we deleted Cach