Pre-allocating Extents for Instances

Using 10.2.0.4 Standard Edition RAC. I have a table very busy with inserts. Oracle waits for events "gc current block busy", "gc buffer busy release" etc. There seems contention of the blocks between instance. I pre-allocated extent to each instance:
alter table busy_table allocate extent (100m instance 1);
alter table busy_table allocate extent (100m instance 2);But this seems not reducing the events. Is there any more to do?
Some additional questions:
1) How to I know the extent is allocated to a specific instance? DBA_EXTENTS has no instance information. And X$KTFBUE always shows the current instance.
select INST_ID, KTFBUEFNO, KTFBUEBNO from X$KTFBUE
where KTFBUESEGBNO=(
select header_block from dba_segments
where segment_name='BUSY_TABLE');returned the same inforamtion except that INST_ID is different.
2) Does the preallocation affects insert sql only? I guess other operation are free to use any extent. Correct?
3) We are using ASSM. So I am not supposed to be tuning FREELISTS AND FREELIST GROUPS. Correct?
DB: 10.2.0.4
OS: RHEL 5.3

Just checked the document again ([url http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/clauses001.htm#g1053419]INSTANCE integer)
If you are using automatic segment-space management, then the INSTANCE parameter of the allocate_extent_clause may not reserve the newly allocated space for the specified instance, because automatic segment-space management does not maintain rigid affinity between extents and instances.(How come I missed this??)
So Oracle ignores the instance clause for ASSM tablespace. Preparing a test with MSSM tablespace...

Similar Messages

  • EJB3 and Toplink pre-allocation size for Sequences

    Hi,
    How do I override the Toplink pre-allocation size for Sequences for a EJB3 Project?
    My problem in detail:
    I have a DB sequence which gets incremented by 1. I am using this sequence to generate primary keys for one of my tables. If I try to use the @GeneratedValue annotation for this primary key, then I am getting toplink validation exception 7027. I gather that this exception comes because the default pre-allocation size (increment-by value) is 50 for TopLink while DB uses 1. Now is there is any possiblity for me to override the default pre-allocation size for EJB3 project?
    Currently I am leaving the primary key empty when I persist the entity and letting a DB trigger insert the sequence value into the DB.
    thanks,
    Chandru.

    Chandru,
    When defining a sequence generator in JPA you also have the ability to configure a preallocationSize that should match the DB sequence's increment.
    Here is a simple example:
    @Entity
    @SequenceGenerator(name = "emp-seq", sequenceName = "EMP-SEQ", allocationSize = 1)
    public class Employee implements Serializable {
        @Id
        @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "emp-seq")
        private int id;Doug

  • Segments with many allocated extents

    Dear all,
    This is regarding the number of allocated extents in any segments.
    Our environment is SAP ECC 6.0 in ORACLE (11.2.0.2.0) in AIX.
    We are having 2218 allocated extents for table BSIS in the tablespace PSAP<SID>.
    The table is 114GB in size and have the default value 2147483645 as max.extents.
    Like the same we have around 30 to 40 tables having more than 200 allocated extents.
    The CCMS monitoring templates have all these tables in RED for the node 'Most allocated extents in any segment'.
    I have tried online reorg for some of these tables and the number of extents gets increased at times.
    How can we decrease the number of extents for such tables.
    Regards,
    Kiran

    Kiran,
    As others have stated, you do NOT want to waste your time reorganizing a table or index due to the number of extents (most of the type anyway). 
    First, let's determine what type of tablespaces you have:
    sqlplus "/as sysdba"
    set lines 132 pages 100
    select TABLESPACE_NAME, NEXT_EXTENT, EXTENT_MANAGEMENT, ALLOCATION_TYPE, SEGMENT_SPACE_MANAGEMENT from dba_tablespaces order by 1;
    For example here are my tablespaces I have created:
    TABLESPACE_NAME  NEXT_EXTENT   EXTENT_MAN ALLOCATIO     SEGMEN
    PSAPGLPCAD    524,288,000          LOCAL           UNIFORM          AUTO
    PSAPGLPCAI2                         104,857,600 LOCAL      UNIFORM   AUTO
    PSAPMEDD                            524,288,000 LOCAL      UNIFORM   AUTO
    PSAPMEDI2                           104,857,600 LOCAL      UNIFORM   AUTO
    PSAPSR3                                         LOCAL      SYSTEM    AUTO
    PSAPSR3701                                      LOCAL      SYSTEM    AUTO
    PSAPSR3USR                                      LOCAL      SYSTEM    AUTO
    PSAPTEMP                            104,857,600 LOCAL      UNIFORM   MANUAL
    PSAPUNDO2                                       LOCAL      SYSTEM    MANUAL
    PSAPVBFSD2                          524,288,000 LOCAL      UNIFORM   AUTO
    PSAPVBFSI2                          524,288,000 LOCAL      UNIFORM   AUTO
    PSAPVBOXD                           524,288,000 LOCAL      UNIFORM   AUTO
    PSAPVBOXI2                          524,288,000 LOCAL      UNIFORM   AUTO
    SYSAUX                                          LOCAL      SYSTEM    AUTO
    SYSTEM                                          LOCAL      SYSTEM    MANUAL
    If your main tablespace PSAPSR3 is LOCALLY managed as shown by the "EXTENT_MANAGEMENT" and the ALLOCATION_TYPE is SYSTEM, then Oracle will determine the NEXT extent sizes and you do not have to worry about it. 
    Now the reason you don't really have to worry about extents is that when SAP sends a SQL statement, Oracle determines the execution plan and then Oracle will read date by Oracle blocks NOT by extents.  So in R/3 the CBO almost always picks an index as the leader and that means we read the root -> branch -> leaf -> table blocks.  We do NOT read by this extent and then that extent. Even FULL TABLESCANS are reading block ranges based on the db_file_multiblock_read_count value.
    Usually the only time we have EXTENT issues is if the tablespace is of type DICTIONARY instead of LOCAL.  A DICTIONARY managed tablespace has a different extent management process (UET$ and FET$).  Having too many extents in a DICTIONARY managed tablespace "can" cause performance problems but usually only when you are DBA tasks like reorgs because of how Oracle manages the extents and the locking process for the UET$ and FET$.  This does not mean the DICTIONARY managed tablespace are bad, just that we have to keep an eye on the extents. 
    If your tablespaces are LOCAL then your system is configured properly.  If you like, you reorg very large objects into their own tablespaces as I have done, but I do this because of archiving and frequent reorgs to seperate tablespaces so I can just drop the old tablespace.  Plus I planned this during a unicode conversion so I don't have to actively manage this over time.
    And as a little big more information, when we use LOCALLY MANAGED AUTOALLOCATE type tablespaces, Oracle uses a formula for the extent sizes.  That way, this frees up the DBA (usually) from having to maintain extents and such.  What Oracle does is create the 1st 15 extents as 64K, then the batch of extents will be at 1 Mb, then 8 Mb, then 64 Mb.  That's why the AUTOALLOCATE makes it "easier" for administration.  When we create LOCALLY MANGED UNIFORM tablespace, we decide how large each extent will be an every object that is put in that tablespace will have the same extent sizes (good for very large objects).
    You can test this with:
    create table sapsr3.kiran (t1 number) tablespace psapsr3;
    alter table sapsr3.kiran allocate extent;
    ........ keep adding extents to see how they change over time.
    col segment_name format a20
    set lines 132 pages 100
    select segment_name, extent_id, bytes from dba_extents where segment_name = 'KIRAN' order by extent_id;
    So that's the rational behind extents.  I hope it helps.
    Good luck.
    Mike Kennedy

  • TS4498 Is music created in logic pro compatible with the logic pro x ? for instance if you have created something in logic pro and wont to add or tweak it a bit is that possible?

    Is music created in logic pro compatible with the logic pro x ? for instance if you have created something in logic pro and want to add or tweak it, is that possible? I suppose you would need the original logic folder?

    Yes it is more or less compatible, except the use of 32 bit plugins, which is prohibited from now on. So although you're able to open Logic projects as far as down to v5 I believe, it is advisable to remain for 'adding and tweaking' in your pre LPX environment.
    Have a nice day!

  • SAP WM: Pre Allocated Stock

    Hi All
    We have a HU Managed Storage Location in the warehouse. The Storage Type is also SU managed. I want to do pre allocation for the materials that come in. After packing in the Inbound Delivery when I try to create TO, the system gives a warning that the material is pre allocated but then it just suggests the bin as per the putaway strategy (and not per the pre allocation table). The preallocated table LT51 is maintained and mvt type 101 has "consider pre allocated stock" check marked. The problem seems to be that on the TO preparation screen, there is no button for "Pre allocated Stock" and even the menu Goto --> Pre allocated stock is grayed out. In fact Please let me know how I can do pre allocation in this case.
    Thanks
    Apurva

    Hello Apurva,
    Did you get an answer? I'm experiencing the same!
    Regards

  • Error allocating a servlet instance

    i have a problem with the migration de aplication
    the aplication it�s mountage in HP with Unix, with containner iPlanet, with data bases SyBASE; and migrated in mac os x with data bases in MySQL, container TomCat;
    show the next error:
    javax.servlet.ServletException: Error allocating a servlet instance
         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:625)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:163)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:552)
    root cause
    java.lang.NoClassDefFoundError: ServletVerifyPsswd (wrong name: SCI/ServletVerifyPsswd)
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
         at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1649)
         at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:931)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1373)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1252)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:838)
         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:621)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:163)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:552)
    configuration of the archive server.xml
    <Context path="/sci" docBase="sci"
    debug="5" reloadable="true" crossContext="true">
    <Logger className="org.apache.catalina.logger.FileLogger"
    prefix="localhost_sci_log." suffix=".txt"
    timestamp="true"/>
    <Resource name="jdbc/dbSCI"
    auth="Container"
    type="javax.sql.DataSource"/>
    <ResourceParams name="jdbc/dbSCI">
    <parameter>
    <name>factory</name>
    <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
    </parameter>
    <!-- Maximum number of dB connections in pool. Make sure you
    configure your mysqld max_connections large enough to handle
    all of your db connections. Set to 0 for no limit.
    -->
    <parameter>
    <name>maxActive</name>
    <value>100</value>
    </parameter>
    <!-- Maximum number of idle dB connections to retain in pool.
    Set to 0 for no limit.
    -->
    <parameter>
    <name>maxIdle</name>
    <value>30</value>
    </parameter>
    <!-- Maximum time to wait for a dB connection to become available
    in ms, in this example 10 seconds. An Exception is thrown if
    this timeout is exceeded. Set to -1 to wait indefinitely.
    -->
    <parameter>
    <name>maxWait</name>
    <value>10000</value>
    </parameter>
    <!-- MySQL dB username and password for dB connections -->
    <parameter>
    <name>username</name>
    <value>usersif</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value>sifsci</value>
    </parameter>
    <!-- Class name for mm.mysql JDBC driver -->
    <parameter>
    <name>driverClassName</name>
    <value>com.mysql.jdbc.Driver</value>
    </parameter>
    <!-- The JDBC connection url for connecting to your MySQL dB.
    The autoReconnect=true argument to the url makes sure that the
    mm.mysql JDBC Driver will automatically reconnect if mysqld closed the
    connection. mysqld by default closes idle connections after 8 hours.
    -->
    <parameter>
    <name>url</name>
    <value>jdbc:mysql://localhost:3306/bdsif?autoReconnect=true</value>
    </parameter>
    </ResourceParams>
    </Context>
    and the archive web.xml
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app PUBLIC
    "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <description>Sistema de Consultas Integrales</description>
    <display-name>Sistema de Consultas Integrales</display-name>
    <servlet>
    <servlet-name>Connect</servlet-name>
    <servlet-class>Connect</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Connect</servlet-name>
    <url-pattern>/servlet/Connect</url-pattern>
    </servlet-mapping>
    <servlet>
    <servlet-name>ServletAcuOperacionSIF</servlet-name>
    <servlet-class>ServletAcuOperacionSIFeClase</servlet-class>
    </servlet>
    mapping the servlet
    <resource-ref>
    <description>DB Coneccion</description>
    <res-ref-name>jdbc/dbSCI</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    </web-app>

    package SCI;
    import javax.servlet.http.*;
    import javax.servlet.*;
    import java.sql.*;
    import java.io.*;
    import java.util.*;
    import java.math.*;
    import java.text.*;
    public class ServletAcumuladoOp extends HttpServlet{
         private ServletOutputStream out = null;          
         private ResultSet resultado = null;
         private Statement query = null;
         private String tv;
         private String liq;
         public ServletAcumuladoOp(){
              super();
         public void init(){
         //System.out.println("Inicie el servicio del ServletAcumuladoOp...");
         try{
              Class.forName("com.mysql.jdbc.Driver");
                   //System.out.println("Carge el Driver Sybase...");
              }catch(java.lang.ClassNotFoundException e){
                   System.out.println("Imposible cargar la clase : "+e.getMessage()+" ,,,Verifique la Ruta");
         public boolean datosOk(HttpServletRequest req){
              //System.out.println(req.getRemoteUser());
              Enumeration e = req.getParameterNames();
              Hashtable ht = new Hashtable();          
              while (e.hasMoreElements()) {
                   String cad= (String) e.nextElement();
                   ht.put(cad," ");          
              //     System.out.println(cad);     
              if ( ht.containsKey("TV_AS") && ht.containsKey("Liq") ){
                   tv = "";
                   liq = "";
                   liq = req.getParameter("Liq");
                   tv = req.getParameter("TV_AS");
              }else{
                   return false;
              return true;
         protected synchronized void doPost(HttpServletRequest req, HttpServletResponse res)
         throws IOException, ServletException{
              res.setContentType("text/html");
    out = res.getOutputStream();          
              out.println("<html>\n<head>\n<title>Acumulado de operaciones</title>\n</head>\n<body background='../../../../../SCI/GRA/fondo.jpg'><center>");
              if (datosOk(req)){
                   out.println("<TABLE BORDER=0 width=740 cellspacing=0 cellpadding=0>\n");
                   out.println("<tr>\n");
                   out.println("<td valign='top'><font face='Verdana,Arial' size=2 color='black'><b>");               
                   out.println("Acumulado de operaciones");
                   out.println("</b></TD>\n");
                   out.println("<td ALIGN=RIGHT valign='top'><font face='Verdana,Arial' size=1 color='black'>"+getFechaLocal()+"</FONT></TD>\n");
                   out.println("</tr>\n");
                   out.println("<tr>\n");
                   out.println("<TD colspan=2 align='left' valign='top'>\n");
                   out.println("<font face='Verdana,Arial' size=2 color='black'>\n");
                   if (tv.equals("") || tv.equals("*"))
                        out.println("Tipo de valor: <B>Todos</B>");
                   else
                        out.println("Tipo de valor: <B>"+tv+"</B>");
                   if (liq.equals("") || liq.equals("*"))
                        out.println(", Liquidaci&oacute;n: <B>Todas</B>");
                   else
                        out.println(", Liquidaci&oacute;n: <B>"+liq+"</B>");
                   out.println("</font></TD>\n");
                   out.println("</TR>\n");
                   out.println("</table>\n");
                   out.println("<br>\n");
                   if (getConsulta())                    
                        out.println("</TABLE>\n<HR color=Black width=740>\n</center></BODY>\n</HTML>");
                   else
                        out.println("<br><center><font face='Verdana,Arial' size=4 color=Red>No existen datos para este rango de fechas</font></center>\n</BODY>\n</HTML>");
              }else{
                   out.println("<BR><font face='Verdana,Arial' size=4 color=Red> Se ha producido un error interno... Los par�metros de este Servlet son incorrectos \n</font>\n</BODY>\n</HTML>");
              out.close();          
         public void setHead()throws IOException{
              out.println("<table border=0 width=740 height=30 cellspacing=0 cellpadding=0>\n<tr>\n");
              out.println("<td width=60 align=center ><font face='Verdana,Arial' size=-1><b>Inst</td>\n");
              out.println("<td width=60 align=center ><font face='Verdana,Arial' size=-1><b>Emisora</td>\n");
              out.println("<td width=40 align=center><font face='Verdana,Arial' size=-1><b>Liq</td>\n");
              out.println("<td width=50 align=center><font face='Verdana,Arial' size=-1><b>Oper</td>\n");
              out.println("<td width=70 align=center><font face='Verdana,Arial' size=-1><b>N Series</td>\n");
              out.println("<td width=70 align=center><font face='Verdana,Arial' size=-1><b>N Oper</td>\n");
              out.println("<td width=150 align=center><font face='Verdana,Arial' size=-1><b>Vol�men</td>\n");
              out.println("<td width=150 align=center><font face='Verdana,Arial' size=-1><b>Importe</td>\n");
              out.println("<td width=90 align=center><font face='Verdana,Arial' size=-1><b>% Part.</td>\n");
              out.println("</tr>");
         public boolean getConsulta() throws IOException{
              Connection conexion = getConexion();
              try{
                   DecimalFormat df = new DecimalFormat("###,###,###,###,###.00");
                   String cadTV = "";
                   String cadLiq = "";
                   int cont = 0;
                   double operaciones_total = 0;
                   double volumen_total = 0;
                   double importe_total = 0;
                   double operaciones_subtot = 0;
                   double volumen_subtot = 0;
                   double importe_subtot = 0;
                   double suma_total_importe = 0;
                   double porcentaje = 0;
                   boolean ok = false;
                   int cent = 0;
                   boolean bandera = true;
                   int col = 0;
                   String color = "";
                   //Determina si ya cerr� el mercado
                   query=conexion.createStatement();
                   String sql = "select ctr_estado from ctrlre";
                   resultado=query.executeQuery(sql);
                   while (resultado.next())
                        cadTV = resultado.getString(1);
                   out.println("<table border=0 width=740 height=30 cellspacing=0 cellpadding=0 >");
                   out.println("<TR>");
                   out.println("<TD bgcolor='#FFFFBB' align=right><FONT face='Verdana,Arial'><b>");
                   if ( cadTV.equals("NO") )
                        out.println("DEFINITIVO</b></FONT> </TD> </TR> </table>\n");
                   else
                        out.println("PRELIMINAR</b></FONT> </TD> </TR> </table>\n");
                   out.println("<BR>");
                   cadTV="";
                   sql = getSql();
                   query = conexion.createStatement();
                   resultado = query.executeQuery(sql);
                   //out.println(sql);
                   while(resultado.next()){
                        if (bandera){
                             setHead();
                             bandera = false;
                        String tvalor = resultado.getString(1); //thp_tipo_valor
                        String emisora = resultado.getString(2); //thp_emisora
                        String liquidacion = resultado.getString(3); //thp_liquidacion
                        String toperacion = resultado.getString(4); //thp_tipo_operacion
                        int series = resultado.getInt(5); //series
                        int operaciones = resultado.getInt(6); //operaciones
                        double volumen = resultado.getDouble(7);; //thp_volumen
                        double importe = resultado.getDouble(8);; //thp_importe
                        // Salida al browser
                        if (cont == 0){
                             cadTV = tvalor.trim();
                             cadLiq = liquidacion.trim();
                             suma_total_importe = getTotalImporte(tvalor, liquidacion);
                        if (col == 1){                         
                             color = "#E1E1E1";
                             col = -1;
                        if (col == 0)
                             color = "#FFFFFF";
                        col++;
                        if ( (!cadTV.equals(tvalor.trim()) || !cadLiq.equals(liquidacion.trim()) )&& cont != 0){
                             setSubTotal(cadLiq, operaciones_subtot, volumen_subtot, importe_subtot, df);
                             suma_total_importe = getTotalImporte(tvalor, liquidacion);
                             // Agrega a sumas totales               
                             operaciones_total = operaciones_total + operaciones_subtot;
                             volumen_total = volumen_total + volumen_subtot;
                             importe_total = importe_total + importe_subtot;
                             operaciones_subtot = 0;
                             volumen_subtot = 0;
                             importe_subtot = 0;
                             cadTV = tvalor.trim();
                             cadLiq = liquidacion.trim();
                             cont=0;
                             out.flush();
                        operaciones_subtot = operaciones_subtot + operaciones;
                        volumen_subtot = volumen_subtot + volumen;
                        importe_subtot = importe_subtot + importe;
                        if (suma_total_importe == 0)
                             porcentaje = 0;
                        else
                             porcentaje = ( importe * 100 ) / suma_total_importe;
                        setRow(color,
                        " "+tvalor,
                        " "+emisora,
                        " "+liquidacion,
                        " "+toperacion,
                        " "+series,
                        " "+operaciones,
                        " "+df.format(volumen),
                        " "+df.format(importe),
                        " "+getScala(porcentaje,2));
                        cont++;
                        cent++;
                   conexion.close();
                   if (cent==0){ // No hubo registros
                        return false;
                   if (cont!=0){
                        setSubTotal(cadLiq, operaciones_subtot, volumen_subtot, importe_subtot, df);
                        // Agrega a sumas totales               
                        operaciones_total = operaciones_total + operaciones_subtot;
                        volumen_total = volumen_total + volumen_subtot;
                        importe_total = importe_total + importe_subtot;
                   setTotal(operaciones_total, volumen_total, importe_total, df);
              }catch(SQLException e){
                   System.out.println("Codigo de Error :"+e.getErrorCode());
                   System.out.println("Descripci�n del error :"+e.getMessage());
                   System.out.println("Estado del SQL :"+e.getSQLState());                    
              return true;
         public String getSql(){
              String sql1="select thp_tipo_valor, thp_emisora, thp_liquidacion, thp_tipo_operacion, "+
         "count(distinct(thp_emision)), count(thp_folio), sum(thp_volumen), sum(thp_importe) "+
                   "from thecprod "+
                   "where ( thp_tipo_valor = '"+tv+"' or '"+tv+"'='*') and "+
                   " ( thp_liquidacion = '"+liq+"' or '"+liq+"'='*') "+
                   "group by thp_tipo_valor, thp_emisora, thp_liquidacion, thp_tipo_operacion";
              return sql1;
         public void setRow(String a1,String a2,String a3,String a4,String a5,String a6,String a7,String a8,
                                  String a9, String a10) throws IOException{
                   out.println("<tr bgcolor='"+a1+"'"+" align=center bordercolor='"+a1+"' bordercolorlight='"+a1+"' bordercolordark='"+a1+"'>\n");
                   out.println("<td width=60 align=center><font face='Verdana,Arial' size=-1>"+a2+"</td>\n");
                   out.println("<td width=60 align=center><font face='Verdana,Arial' size=-1>"+a3+"</td>\n");
                   out.println("<td width=40 align=center><font face='Verdana,Arial' size=-1>"+a4+"</td>\n");
                   out.println("<td width=50 align=center><font face='Verdana,Arial' size=-1>"+a5+"</td>\n");
                   out.println("<td width=70 align=center><font face='Verdana,Arial' size=-1>"+a6+"</td>\n");
                   out.println("<td width=70 align=center><font face='Verdana,Arial' size=-1>"+a7+"</td>\n");
                   out.println("<td width=150 align=right><font face='Verdana,Arial' size=-1>"+a8+"</td>\n");
                   out.println("<td width=150 align=right><font face='Verdana,Arial' size=-1>"+a9+"</td>\n");
                   out.println("<td width=90 align=right><font face='Verdana,Arial' size=-1>"+a10+"%</td>\n");
                   out.println("</tr>\n");
         public void setSubTotal(String liquidacion, double operaciones_sub, double volumen_sub, double importe_sub, DecimalFormat df)throws IOException {
              out.println("<tr>\n");
                   out.println("<td width=60 align=center bgcolor=#FFFFFF><font face='Verdana,Arial' size=-1> </td>\n");
                   out.println("<td width=60 align=center bgcolor=#FFFFFF><font face='Verdana,Arial' size=-1> </td>\n");
                   out.println("<td width=40 align=center bgcolor=#ffffbb><font face='Verdana,Arial' size=-1>"+liquidacion+"</td>\n");
                   out.println("<td width=50 align=center bgcolor=#ffffbb><font face='Verdana,Arial' size=-1>Total</td>\n");
                   out.println("<td width=70 align=center bgcolor=#ffffbb><font face='Verdana,Arial' size=-1> </td>\n");
                   out.println("<td width=70 align=center bgcolor=#ffffbb><font face='Verdana,Arial' size=-1>"+getScala(operaciones_sub,0)+"</td>\n");
                   out.println("<td width=150 align=right bgcolor=#ffffbb><font face='Verdana,Arial' size=-1>"+df.format(volumen_sub)+"</td>\n");
                   out.println("<td width=150 align=right bgcolor=#ffffbb><font face='Verdana,Arial' size=-1>"+df.format(importe_sub)+"</td>\n");
                   out.println("<td width=90 align=right bgcolor=#ffffbb><font face='Verdana,Arial' size=-1>100.00%</td>\n");
                   out.println("</tr>\n");
         public void setTotal(double operaciones_total, double volumen_total, double importe_total, DecimalFormat df)throws IOException {
              out.println("<tr>\n");
                   out.println("<td width=60 align=center bgcolor=#FFFFFF><font face='Verdana,Arial' size=-1> </td>\n");
                   out.println("<td width=60 align=center bgcolor=#FFFFFF><font face='Verdana,Arial' size=-1> </td>\n");
                   out.println("<td width=40 align=center bgcolor=#FFFFFF><font face='Verdana,Arial' size=-1> </td>\n");
                   out.println("<td width=50 align=center bgcolor=#FFFFFF><font face='Verdana,Arial' size=-1> </td>\n");
                   out.println("<td width=70 align=center bgcolor=#FFFFFF><font face='Verdana,Arial' size=-1> </td>\n");
                   out.println("<td width=70 align=center bgcolor=#b5cffb><font face='Verdana,Arial' size=-1>"+getScala(operaciones_total,0)+"</td>\n");
                   out.println("<td width=150 align=right bgcolor=#b5cffb><font face='Verdana,Arial' size=-1><b>"+df.format(volumen_total)+"</td>\n");
                   out.println("<td width=150 align=right bgcolor=#b5cffb><font face='Verdana,Arial' size=-1><b>"+df.format(importe_total)+"</td>\n");
                   out.println("<td width=90 align=right bgcolor=#b5cffb><font face='Verdana,Arial' size=-1><b> </td>\n");
                   out.println("</tr>\n");
         public String getScala(double val, int uno){
              BigDecimal bd = new BigDecimal(val);
              return " "+bd.setScale(uno,5);
         protected synchronized double getTotalImporte(String tipovalor, String liquidacion){          
              double total = 0;
              try{
                   Connection conexion1 = getConexion();
                   Statement q = conexion1.createStatement();
                   String sql ="";
                   sql = "select sum(thp_importe) from thecprod where thp_tipo_valor = '"+tipovalor+"' and thp_liquidacion = '"+liquidacion+"'";
                   ResultSet res = q.executeQuery(sql);
                   while(res.next()){
                        total = res.getDouble(1);
                   res.close();
                   conexion1.close();               
              }catch(SQLException e){
                   System.out.println("Codigo de Error :"+e.getErrorCode());
                   System.out.println("Descripci�n del error :"+e.getMessage());
                   System.out.println("Estado del SQL :"+e.getSQLState());
              return total;
         public Connection getConexion(){
              String url ="jdbc:mysql//localhost:3306/bdsif";
              Connection conexion = null;
              try{
                   conexion = DriverManager.getConnection(url, "usersif", "password");
              }catch(SQLException e){
                   System.out.println("Codigo de Error :"+e.getErrorCode());
                   System.out.println("Descripci�n del error :"+e.getMessage());
                   System.out.println("Estado del SQL :"+e.getSQLState());
              return conexion;
         public String getFechaLocal(){
              java.util.Date today;
              String output;
              java.text.SimpleDateFormat formatter;
              formatter = new java.text.SimpleDateFormat("EEEEEEEEE dd 'de' MMMMMMMMMM 'del' yyyy", new Locale("es", "Spanish"));
              today = new java.util.Date();
              return " "+formatter.format(today);          
         public void destroy(){
    //     System.out.println("Destrui el ServletAcumuladoOp...");
    }

  • Missing parts/pre-allocated stock

    Hi all,
    I got a Missing parts/pre-allocated stock table issue, maybe someone can help me out.
    This can be handled via LT51 to fill table T310 MANUALLY. This table will be checked during the creation of the Transfer Order (TO) in case the check is activated for the WM movement type.
    Is there an automatic way to fill this table?
    Is it possible to only create TRs if the stock is not available and TOs automatically from TRs if stock is available?
    Cheers
    Mathias

    Hi Matthias,
    We are in a same situation. Your message was on April. So somehow you should solved the problem. Can you share your solution?
    Best Regards,

  • HELP!!!! -- Error allocating a servlet instance

    Please help me...
    The deathline for my schoolproject is getting close!!!
    - 2 weeks ago everything worked fine
    - now i wanted to start at making the last changes...
    but...the only thing a get is this...
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Error allocating a servlet instance
         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:670)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
         at java.lang.Thread.run(Thread.java:536)
    root cause
    java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
         at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1274)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:884)
         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:666)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
         at java.lang.Thread.run(Thread.java:536)

    The actual bizare thing in all this is that everything worked fine 2 weeks ago and that i touched nothing in the meanwhile...
    Important to note is also that the examples of tomcat still work fine so that i know that servlet.jar is at his place and in fact still being used correctly, at least in those examples.
    What the servlet itself consernes, by putting a println-statement at the beginning of the init-method i can conclude that he doesn't seems to be able to reach the servlet at all. (compilation of all my files works still without any problems)
    Could it be possible that my problem has something to do with the web.xml file? Ok, he worked alright...but maybe something isn't quite as it should be...
    Thx for the responses!!!
    Maybe you guys can help me further with this information...I at least hope so!
    greetings
    steven

  • Benefit of pre allocating String buffer size

    Hi,
    I have come across the following code when redesigning someones application (simplified!):
    public class myClass{
        private int approxLength = 1000;
        private void myMethod(){
            // Allocate the buffers with the right length, so they
            // are not reallocated all the time
            StringBuffer s = new StringBuffer(approxLength);
            while(do lots of times){
                s.append(someStuff);
            approxLength = s.length();
    }Now my point is, does pre-allocating the StringBuffer size really give much benefit? What is the default size when a SB is allocated using the no-arg constructor? Will it slow the app much if I create the Buffer without a default size?
    I think the code is messy and less readable with this "approxLength" idea, and would like to get rid of it if it wont cause any performance issues

    JN + DrClap,
    After reading what I wrote I can see where my babble may have been difficult to decipher. I was thinking faster than I could type. And you were right, a StringBuffer does conserve on memory reads and writes... For each String concatenation there is n + 2 memory segments allocated (unless resultant segment is rewritten... Don't know!). This reason alone is probably why the StringBuffer was created, with the exception of ease of use. But as the StringBuffer's size increases the probability of maximum utilization lessens for a randomized number of bytes being appended (Within the confines of the java language's capabilities and constraints). Its like a numbers game... Guessing a truly randomized number 1 through 10 has a much higher probability than guessing a number 1 through 1000000. So as the size of the StringBuffer increases efficiency decreases for a random byte length append. Which ultimately leads to wasted memory utilization.
    JP

  • Poor customer service; send pre-paid box for return

    My name is Danielle. In early April I bought a Dell Inspiron All-In-One desktop from the Best Buy in Manhattan, KS (Store #1101). At check out I was under the impression that I was also buying Geek Squad Protection. In early July the screen of the all in one was cracked so I boxed everything back up in the original packaging and took it to BB/ Geek Squad for repair. I was surprised there was a charge at that time and was told I didnt get Geek Squad Protection, but instead an extended warranty. That's fine and mistakes happened, partly my fault for not checking the receipt better.  We still sent the computer for repair as we had never had problems with BB before and we are long-time customers. On the 28th of July the computer was returned un-repaired as they could not find a replacement screen and we were advised to call Dell directly for repair. Again no-ones fault so we took the computer home frustrated but not upset.  Dell came to our home on 08/04/15 to repair the computer, but when we opened the box only the cracked monitor was inside with none of the accessories, power cord, or stand. Upset, I called the Manhattan BB and was told to bring the computer up to see what they could do. When I got there later that day I was told that they had to email the repair center before they could do anything. I asked why I was told to come up if all they could do was send an email. We do not live in Manhattan it is a drive for us. I was told I could wait 15 minutes for a manager (Tyler) to come back from break.  An hour later, Tyler gives me a keyboard/mouse and a used charger. They have no replacement stand and say it will take 48 hours to contact the repair center to see if it’s there.  I ask if the charger is the same one for the computer as I do not want to damage it further by using the wrong charger. He tells me it’s the same, not the exact same that came with the computer, but the same brand and everything else.When I get home I plug in the computer, but it does not turn on. The power light blinks and then nothing. After looking up the charger it seems I was given a charger for a laptop and not a desk top. I called BB back in the morning as soon as they opened. I spoke to a manager named Sarah, who is the only saving grace in this whole fiasco, who checked in the back and, lo and behold!, my things were in the back the entire time. She says that she’ll put my name on them and leave them at Geek Squad for me to pick up. My husband happened to be in Manhattan picking up his dress uniform after work, so I called and asked him to pick up the items. He is given only the stand and is told that they will not return the other items until we give back the keyboard/mouse and charger they gave us yesterday. In other words they threatened to hold our items hostage. I told them on the phone and in no uncertain terms that this was not acceptable and they returned all of our items to us. I, however, do not appreciate the threat, the lies, or the way that this situation was handled.  I have absolutely no use for their keyboard/mouse and even less use for a Dell laptop charger. I refuse to step foot back into that store, or any other Best Buy after this, but I don’t want to “steal” these useless items. Please send a pre-paid box for me to return these items. I refuse to drive back up there or spend money out of my pocket because of this.  Email or call for the address. Thank you,Danielle G 

    Hello DanielleIG –
    All-In-One desktops are great machines. Of all the computer types, they have the largest screens, and a bigger chance of being cracked. It’s a terrible feeling when it happens and even worse when you are told you didn’t have Accidental Damage and Handling protection on your computer. It’s great that Geek Squad was still able to send your device for repair, but disappointing that we were unable to obtain the parts from Dell.
    I worked for Geek Squad for a few years and was in charge of all the shipping and receiving in my store. While I know we try our absolute hardest to keep accessories labeled and together with their parent computers, I’ve seen instances where they can become separated. In these cases, supplying you with replacement accessories was the right call, but the accessories should have been verified to work with your computer. I am very sorry this did not happen before you took your computer home.
    I reached out to the store in Manhattan, KS and spoke with Sarah. She informed me that she has contacted you and made arrangements around the accessories. I urge you to reach out to me if you feel the resolution the store has presented is not what you were looking for. I really appreciate you contacting us with your situation so that we can use it as an opportunity for improvement with our processes. Thank you again, DanielleIG.
    I hope you have a great day,

  • The buffer manager failed a memory allocation call for 10485760 bytes

    I have a for each loop container which executes for each row in the recordset destination.
    In the for each loop container i have a dataflow task where in source is a oracle server and it performs two ookups before inserting the data into the destination.
    There are around 270k records coming from source...that means and around when 38k records are inserted in the destination the packages stops its execution and it says "The buffer manager failed a memory allocation call for 10485760 bytes".
    Can anyone help me in fixing this issue??
    TIA

    Hi Abhinav530,
    According to your description, when you execute the SSIS package, you got the error message: "The buffer manager failed a memory allocation call for 10485760 bytes".
    According to the error message, the machine has run out of physical memory (i.e. RAM) and is unable to swap out to hard disk. To troubleshoot the problem, please pay attention to these points:
    Add more physical memory to the computer.
    If you are running the SSIS  package on a computer that is running an instance of SQL Server, when you run the package, set the Maximum server memory option for the SQL Server instance to a smaller value. This behavior increases available memory.
    Exit applications that consume lots of memory when you run the SSIS package that contains dataflow tasks.
    Run the SSIS package and the dataflow tasks in series instead of in parallel to decrease memory usage.
    For more information about Data Flow Performance Features, please refer to the following document:
    https://msdn.microsoft.com/en-us/library/ms141031.aspx
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    If you have any feedback on our support, please click
    here.
    Wendy Fu
    TechNet Community Support

  • Maintain pre allocated stock

    Hi ,
    Can anybody tell me what is the exact use of 'maintain pre allocated stock' , Tcode LT51.
    I was trying to do cross docking from 902 to 916. I have setup the 'consider pre allocated stock' indicator for movement type 101.
    I had created a outbound delivery > TO creation > confirmed TO for an item which has no stock in whse.
    Then after I did inbound delivery> TO creation , so while TO creation the system is diverting some stock to 916 directly from 902. This part is fine.
    But my question is , do we have any setting that sets the stock on outbound delivery as pre allocated once the availability check is done and found that no stock for that outbound delivery is availale in the whse.
    What exactly LT51 play here.
    Thanks,.
    Mono

    Hi,
    Pre allocated stock is something similar to Cross docking.
    This process is triggered by creating entry in pre allocated stock table.
    When you create TO for Putaway system will check the pre allocated stock tabel & give a message if there is an entry.
    You can goto preallocated stock tab in TO creation screen & add the qty. Reamining qty if any can be putaway with normal search process for BIN. In this case you will have 2 line items in TO.
    Once you confirm TO system will clear the Pre allocated stock table.
    Hope this will help.
    Navin

  • Pre allocated stock process

    Hi Experts,
    I am trying to use the pre allocated stock process.
    It is working fine till the time I move stock to the GI area for Cost center directly from Goods receipt area.
    Now there is a stock of 100 PC in my GI area for cost center.
    When I do the Goods issue to cost center & try to convert TR to TO is giving error that no source bin found. But in this case system should use the same source bin as a destination bin because the stock is existing in that bin.
    The process is working perfect if I try to issue 10 PC instead of 100 PC.
    Can you please help me to solve this problem?
    Thanks,
    Navin

    As per my understanding pre allocated stock scenario finishes when the goods are transferred from goods receipt interim area to goods issue interim area (first TO).
    When you post the GI (in Inventory Management), WM will work as you set it to work in LE-IM interface. If you set auto TR creation, it will create auto TR even if it makes no sense in your example since the goods are already in the proper bin and during the GI SAP consumes them from the interim storage bin.
    (Maybe SAP could not find out a foolproof solution to avoid the creation of such TRs)
    So, second TR has nothing to do with pre allocated stock scenario.
    What you can do:
    - delete the unnecessary TR (Set "Final Delivery" in LB02)
    - do not create the unnecessary TR (e.g. you can set "No Transfer Requiremnt" in MIGO / MB1A)
    - develop your own solution
    Edited by: Csaba Szommer on Nov 21, 2010 5:06 PM

  • Pre-allocated Stock

    Dear Experts,
    The concept of pre-allocated stock is clear including the pre-requisites (flagging the movement type as relevant for pre-allocated stock + maintain pre-allocated stock quantities in transaction LT51).
    In my test case, I did the following:
    1. I made movement type 101 as relevant for pre-allocated stock
    2. In LT51 I put material = M1 with storage type = 911 and bin = TEST and quantity = 10 PC
    When I did a GR for 30 PC, the system alerts that there's pre-allocated stock. So, the TO will be split into two items:
    - 20 PC from storage type 902 -> 001
    - 10 PC from storage type 902 -> 911 (from GR area to GI area)
    So far so good. However, I have two questions:
    1. How do I now consume the 10 PC on storage type 911? If I do a GI for 10 PC, the system will create a TO from 001->911
    2. How do I automate the stock placement TO? It seems that when there's pre-allocated stock, the TO automation will not function.
    Regards,
    Hani
    Edited by: Hani Kobeissi on Feb 3, 2012 2:38 PM

    A)
    You described the issue perfectly, but you didn't provide an answer. I'll be really surprised if SAP doesn't have a solution for this. I'll try to describe the issue in more details and with an example:
    I did answer, here you can find it again:
    I don't know the official answer, but it seems it is simply not solved. Maybe the reason is that this situation should be exceptional ("urgently need for goods issue").
    Other thing might be that if you urgently need stock for GI, then even if the system creates a TR for the inventory management posting (as per your IM/WM interface settings), you won't be able to create TO from the TR 'cause you don't have sufficient stock (=you cannot move the goods issued quamtity from your normal storage type; if you can then why are you using the preallocated stock scenario?).
    B)
    Say I have a reservation of 10 pc for a certain material M1. Since I have no stock of this material, then I won't be able to do a GI. Instead, I put in the pre-allocated stock that I need 10 in storage type 916. Then my order for this material arrives with 50 PC. Normally, I've setup the system to automatically create a TO to put the 50 PC in storage type 001. With this pre-allocated stock:
    1. THe TO is not automatically created. Why? Can I automate this?
    2. The system splits the TO into two items: the first item will put away the 10 PC straight from 902 to 916 and the remaining 40 will be sent to 001 (so far so good except for the automation).
    After I confirm the TOs, I'll end up with 10 PC in 916 and 40 PC in 001. However, I haven't done the GI yet. THen, when I do the GI against the reservation, the system will automatically create a TO of 10 PC from 001 to 916 and will decreate the 10 PC from 916. So, I end up with 0 PC in 916 and a new TO. If I confirm this new TO, then I'll end up in 10 PC again in 916 and 30 PC in 001 and my reservation is closed.
    The big question is how the hell will I consume these 10 PC that are now on 916? Any other GI will trigger another TO.
    1)
    If you have no automatic creation of TO for your normal process (902 --> normal storage type), I don't think there will be automatic TO creation for the preallocated stock.
    Neither in SAP documentation I can see this functionality for preallocated stock nor I'm aware of any such setting in config. Based on what do you expect it should work this way?.
    2)
    If you want to GI 10 pcs then the 10 pcs which has been moved from 902 to 916 will be consumed, no need to create a TO to move 10 pcs from your normal storage type to 916.
    If the GI creates a TR of 10 pcs to move the goods from 001 to 902 you can "delete" the TR. Other solution is that before confirming the TO you can cancel it using LT15.
    If due to your settings you cannot avoid moving the 10 pcs from 001 to 916 then you have to move them back manually (LT01 / LT10).
    This is how I see this and I can be easily mistaken. I hope someone from SAP also reads the thread and can provide an official answer.
    Edited by: Csaba Szommer on Feb 8, 2012 7:46 PM

  • HT3819 can music be shared on  tow seperate Itune accounts but on the same computer. for instance I have puchased a new iphone 5 but it is for work. i dont want to register under my wifes ID, but would like to share the music on hear account only. how can

    can music be shared on the same computer but to two seperate Iphones... with two seperate accounts. For instance my wifes account has all our music/app's for the family including kids. My phone must be seperate for work. How can I get the music we purched to share with my phone on a seperate account?

    Purchases of multple Apple ID accounts cannot be merged as noted here >  Frequently asked questions about Apple ID

Maybe you are looking for

  • SQL slow after upgrading to Oracle Database 10g Enterprise Edition Release

    Hi all: We have recently upgraded our database from Oracle9i Enterprise Edition Release 9.2.0.6.0 to Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 After that we found that our some sql getting very slow for example query with 9i showing r

  • Adobe Flash Player Failure on PowerMac G5.  Please help!

    I have a PowerMac G5 computer, running OSX Version 10.4.11.  Up until yesterday, the computer performed flawlessly.  Suddenly, yesterday, I get a message from Firefox (the browser I usually use), telling me that my Flash Player had been disabled beca

  • Iphone configuration Utility Wifi proxy settings

    Hy Guy's I have a simple question, I have configured an ipad with the iphone configuration utility. Everything works fine, but the proxy in the wifi Policy doesn't appear on the device. It makes no difference if i choose Manual Proxy or Automatic Pro

  • Execute Query by using LOV (List Item)

    Hello Everyone, I did research on how to use List Item with Query but i am still confused since i am a new to the FORM. I have created a form where user enters Start Date: -- this field user can just type the date End Date: -- this field user can jus

  • RMA situation (AIRING MY FRUSTRATI

    I emailed Creative Support last Aug 6 beacuse my zen micro is not functioning right. Creative replied 2 days later asking about the problem, told them that the unit is hot and light is stuck (usually it glows. but mine doesn't fade it's just STUCK).