Script QPAC bug workaround

Hello,
Script QPAC has an issue, in fact when the script is encoded and placed into the database, it seemed to mess up the CDATA brackets.
Therefore if you close workflow designer and then open it again trying to load the process map, the Script QPAC wouldn't open and give an error message, does any body have a workaround for this issue ?
Thank you,
Yasser M. Maree

Hi Yasser,
I have LC WF 7.01 installed using the Script QPAC from SDK 7.03.
I created a simple 1 step process consisting of a Script QPAC with the following code:
System.out.println("&&&&&&&& HELLO &&&&&&&&");
When I test the workflow, I am presented with &&&&&&&& HELLO &&&&&&&& in the command window.
This, and the fact that you tried unsuccessfully to use the newer version of the QPAC, indicates to me that you should upgrade to the current shipping version of Adobe LiveCycle Workflow.
Cheers,
Val@Adobe

Similar Messages

  • NoClassDefFound error when using custom Java package in scripting QPAC

    Hi,
    I compiled a little Java-package (.jar), which contains a class that uses
    com.adobe.workflow.datatype.form.FormDataTypeInstanceImpl.
    I put my library in the lib folder of JBoss (...\server\all\lib).
    Then I'm was trying to invoke my custom class in the scripting QPAC. But I'm constantly getting the error message
    NoClassDefFound com\adobe\workflow\datatype\form\FormDataTypeInstanceImpl. I already put
    adobe-wkf.jar (and various others) in the lib folder of JBoss. Without ever succeeding. Unfortunately.
    I'm going mad about this.
    Is there a way to address a custom package in the scripting QPAC, which uses
    FormDataTypeInstanceImpl?
    Steve

    Removing the LiceCycle jars from the lib folder did not work. I still get the same error message.
    What I wanted to do is provide some basic utilities, without having to spend a lot of time designing QPAC user interfaces.
    My utility class contains methods like this one:
    @param 
    pFormData
    @return
    @throws 
    ParserConfigurationException
    @throws 
    SAXException
    @throws 
    IOException
    public static 
    org.w3c.dom.Document formToXml
    FormDataTypeInstanceImpl pFormData
    throws 
    ParserConfigurationException, SAXException, IOException 
    byte
    data = pFormData.getXFAData
    InputStream objXMLInputStream = 
    new 
    ByteArrayInputStream
    data
    // create new Document object
    DocumentBuilderFactory objFactory = DocumentBuilderFactory.newInstance
    DocumentBuilder objBuilder = objFactory.newDocumentBuilder
    org.w3c.dom.Document objDocument = objBuilder.parse
    objXMLInputStream
    return 
    objDocument;
    Even without ever invoking the aforementioned method, I get the error
    NoClassDefFound: FormDataTypeInstanceImpl. Which is pretty weird.
    Do I have to write my own classloader?
    Steve

  • Script QPAC: how to get a process manager instance?

    Hi,
    I was desperately fiddling about the scripting QPAC, trying to get an instance of process manager.
    Since PATAbstractServiceEx is an abstract class, I cannot instantiate it and call its getContext().getProcessManager() methods.
    I also tried to access a session using QLCSessionFactory.createSession("...") and then calling the session's getProcessManager() method. But no sessions were found.
    Does anyone know, which classes/methods to use in order to get a process manager instance?
    Regards,
    Steve

    import com.adobe.workflow.manager.ProcessManager;
    ProcessManager _pm = patServiceContext.getProcessManager();
    Page 36 of "Creating workflows".
    Howard
    http://www.avoka.com

  • Script QPAC

    Hi,
    I am trying to access my custom java class file in Script QPAC.
    QPAC is not recognising my class file.
    I did settings in classpath to include my class file.
    Still not working.
    Any help would be appreciated!

    Hi Arshad,
    Have you tried wrapping up your class in a jar file and placing it into jboss/lib folder?
    What is the error message that you get? How do you test?
    If you are testing directly from within the Test tab in the Sqript QPAC window, then you should probably read this thread and follow Howard's advice for adding jars to the Designer classpath
    Howard Treisman, "EmailReceiver Qpac testing-tab" #2, 19 Oct 2005 9:43 pm
    Regards,
    Evangelos

  • Vesatility of the script QPac

    I was writing a servlet to call the Render QPac but had difficulty passing data as I would keep getting an error "Content no allowed in prolog". The data I was passing was valid xml but realised it was a limitation of the QPac. I could have wrote the xml data file to disk then passed the path but that isn't a great solution.
    I discovered I could duplicate the functionality of the Render QPac (with more versatility). You can pass in your process variables from your servlet
    Add the following code to your script QPac:
    import com.adobe.fm.FMConstants;
    import com.adobe.formServer.client.EJBClient;
    import com.adobe.formServer.interfaces.IFormServer;
    import com.adobe.formServer.interfaces.IOutputContext;
    import com.adobe.formServer.interfaces.RenderFormException;
    import com.adobe.idp.Context;
    import com.adobe.idp.um.api.AuthenticationManager;
    import com.adobe.idp.um.api.UMException;
    import com.adobe.idp.um.api.UMFactory;
    import com.adobe.idp.um.api.UMConstants;
    import com.adobe.idp.um.api.infomodel.AuthResult;
    import com.adobe.idp.Document;
    import com.adobe.workflow.pat.service.PATAbstractService;
    import com.adobe.workflow.pat.service.PATExecutionContext;
    import com.adobe.workflow.pat.service.PATServiceException;
    import com.adobe.workflow.pat.service.PATServiceResult;
    import com.adobe.workflow.pat.service.PATServiceContext;
    Context context = null;
    IOutputContext iOutputContext=null;
    String formTemplate="";
    String formPref="";
    Document data=null;
    String options="";
    String userAgent="";
    String webRoot="";
    String targetURL="";
    String contentURI="";
    String baseURL="";
    com.adobe.idp.Document outDoc=null;
    try {
    AuthenticationManager manager = UMFactory.getInstance().getAuthenticationManager();
    Context context = new Context();
    AuthResult result = manager.getAuthResultOnBehalfOfUser(
    "LiveCycle Form Manager System User",
    UMConstants.SpecialDefaultPrincipals.DOMAIN_DEFAULT,
    new Context());
    context.initPrincipal(result);
    IFormServer oFS = new EJBClient();
    if(oFS!=null){
    oFS.setInvocationContext(context);
    formTemplate = patExecContext.getProcessDataStringValue("/process_data/@templatepath");
    formPref = patExecContext.getProcessDataStringValue("/process_data/@formpref");
    data = (Document)patExecContext.getProcessDataValue("/process_data/@data");
    options = patExecContext.getProcessDataStringValue("/process_data/@options");
    targetURL = patExecContext.getProcessDataStringValue("/process_data/@targeturl");
    contentURI = patExecContext.getProcessDataStringValue("/process_data/@contenturi");
    baseURL = patExecContext.getProcessDataStringValue("/process_data/@baseurl");
    iOutputContext = oFS.renderForm(formTemplate, //template name
    formPref, //render preference
    data, options, userAgent, webRoot, //App URL
    targetURL, contentURI, //ContentRoot URI
    baseURL);
    outDoc = new com.adobe.idp.Document(iOutputContext.getOutputContent());
    outDoc.setContentType(iOutputContext.getContentType());
    patExecContext.setProcessDataValue("/process_data/@output",outDoc);
    } catch (UMException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    catch (RenderFormException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();

    Very cool - this does indeed show the versatility of the Script QPac.
    For readers of this post please note that the script QPac by default is an "Interactive" QPac - meaning that if you use it in a workflow that you intend to get results from a sycnronousInvoke() that it will not return the results immediately.  In order to get the resulting PDF you must call getResults().
    This can be tweaked by deploying another ScriptQPac which is NOT an interactive QPac.  To do this you must modify the component.xml file in the Script QPac to say false and repackage the jar file.  Once you deploy this workflow you will notice that you can use the QPac in Syncronous Workflow calls, and the results will be returned. 
    Note:  once you make this change do not use the "interactive" checkbox in the script qpac.
    Good luck!
    Will

  • Where to put custom .jar-files in order to use them in scripting QPAC?

    Hi,
    For testing purposes, I wrote a simple class and put it in a .jar-file to use in scripting QPAC. Unfortunately, I get the following error message in JBOSS:
    Class: FooBar not found in namespace
    Where do I have to put custom library (jar-)files in order for JBOSS to find them? I already tried
    [...]\jboss\lib as well as
    [...]\jboss\server\all\lib.
    Regards,
    Steve

    Hi Steve
    You need to put them in two places:
    1. In the server classpath, so that they can be found at runtime. jboss\server\all\lib should work, or you can even drop them into the server/all/deploy directory. I think if you put them in the lib directory, you need to restart Jboss, whereas if you put them in the deploy directory, they should be dynamically picked up.
    2. For testing purposes, the extra jars need to be in the classpath of the Workflow Designer. Please download our SQLPlus QPAC from:
    http://www.avoka.com/avoka/qpac_library.shtml
    It includes a document that describes a technique for adding extra jars to the classpath.
    Regards,
    Howard
    http://www.avoka.com

  • SQL Plus Bug/Question: 'COMPUTE' command does not work in script.(BUG?!)

    Good Day to ALL!
    I have a script of SQLPlus that creates a report. I have 8/9 numeric columns which are 'SUM'ed up thru 'COMPUTE' command. It works for all BUT 2 columns. If I put these two columns, compute does not take affect. If I remove these two columns ( just cut) 'COMPUTE' works fine!!! These two coulumns use DB Function. But I have other column that also use DB Function. These two columns has some extra additions. Any thing wrong with the script/column defn.
    Thanks - Pradip (Pradip Biswas @Singapore) Could you pl. reply to [email protected]
    Here is bit of script. Sorry about the length of the cut and paste.
    COLUMN OPEN_QTY_BAL           FORMAT 9,99,990          HEADING 'Opening|Qty'           Justify LEFT
    COLUMN OPEN_QTY_VALUE          FORMAT 99,999,990      HEADING 'Opening|S$'           Justify LEFT
    COLUMN PO_RECEIPTS_QTY      FORMAT 99,990          HEADING 'PO Rec|QTY '          Justify LEFT
    COLUMN PO_RECEIPTS_QTY_VALUE     FORMAT 9,999,990      Heading 'PO Rec|S$'           Justify LEFT
    COLUMN MISC_RECEIPTS_QTY     Format 99,990          Heading 'Misc |Qty'          Justify LEFT
    Column MISC_RECEIPTS_QTY_VALUE      Format 9,999,990      Heading 'Misc|S$'          Justify LEFT
    COLUMN WORKORDER_QTY           FORMAT 99,990          HEADING 'WorkOrd|Qty'          Justify LEFT
    COLUMN WorkOrder_QTY_VALUE      Format 9,999,990      HEADING 'WorkOrd|S$'          Justify LEFT
    COLUMN SALES_SHIPMENT_QTY      FOrmat 99,990          Heading 'SalesShip|Qty'          Justify LEFT
    COLUMN SALES_SHIPMENT_QTY_VALUE FOrmat 9,999,990      Heading 'SalesShip|S$'          Justify LEFT
    COLUMN MISC_ISSUE_QTY     Format 99,999          HEADing 'Misc|Qty'          Justify LEFT
    COLUMN MISC_ISSUE_QTY_VALUE Format 9,999,990 heading 'Misc|S$'          Justify LEFT
    COLUMN TRANSFER_QTY          format 99,990          heading 'Transfer|Qty'          Justify LEFT
    COLUMN TRANSFER_QTY_VALUE     format 99,999,990     heading 'Transfer|S$'          Justify LEFT
    COLUMN REVAL_VALUE Format 99,990          Heading 'Reval|S$'          Justify LEFT
    COLUMN ON_HAND_QTY           FORMAT 9,99,990      HEADING 'Closing|Qty'           Justify LEFT
    COLUMN ON_HAND_QTY_VALUE     FORMAT 99,999,999,990      HEADING 'Closing|S$'           Justify LEFT
    REPHEADER on
    REPHEADER left ' GL Period From: &&P_GL_PERIOD_NAME_FROM ' skip left ' GL Period To : &&P_GL_PERIOD_NAME_TO ' skip left ' Inv Org Code : &&P_INV_ORG_CODE ' skip left 'SubInventory Code : &&P_SUBINVENTORY_CODE ' skip 2
    TTITLE left 'H - Inv Inventory Movement Report as at:' TTITLE_DATE RIGHT 'PAGE:' FORMAT 999 SQL.PNO SKIP 2
    BTITLE skip 1 CENTER 'COMPANY CONFIDENTIAL - Printed on ' TTITLE_DATE
    BREAK on REPORT skip 1;
    --rem(1) compute SUM label 'Total' of OPEN_QTY_VALUE PO_RECEIPTS_QTY_VALUE MISC_RECEIPTS_QTY_VALUE WorkOrder_QTY_VALUE SALES_SHIPMENT_QTY_VALUE MISC_ISSUE_QTY_VALUE TRANSFER_QTY_VALUE REVAL_VALUE on report;
    --REM(2) compute SUM label 'Total $S: ' of OPEN_QTY_VALUE REVAL_VALUE on report;
    --REM(3) compute SUM label 'Total $S: ' of OPEN_QTY_VALUE REVAL_VALUE  ON_HAND_QTY_VALUE on report;
    compute SUM label 'Total $S:' of OPEN_QTY_VALUE PO_RECEIPTS_QTY_VALUE MISC_RECEIPTS_QTY_VALUE WorkOrder_QTY_VALUE SALES_SHIPMENT_QTY_VALUE MISC_ISSUE_QTY_VALUE TRANSFER_QTY_VALUE REVAL_VALUE on report;
    WHENEVER SQLERROR EXIT FAILURE
    select
    --     MSI.ORGANIZATION_ID                          ORGANIZATION_ID,
    -- MSI.INVENTORY_ITEM_ID                                   INVENTORY_ITEM_ID,
         MSI.SEGMENT1||'//'||MSI.DESCRIPTION                                   ITEM,
    -- MSI.DESCRIPTION                                             DESCRIPTION,
    All_Item_subinv.SUBINVENTORY_CODE                              SUBINVENTORY,
    MSIV.PRIMARY_UOM_CODE                                        UOM,
         --NVL(MOQ_OPen_BAL.OPEN_QTY_BAL ,0)                               OPEN_QTY_BAL ,
    -- NVL(MOQ_OPen_BAL.OPEN_QTY_BAL,0) * NVL(AVG_ITEM_COST1.ITEM_COST,0)           OPEN_QTY_VALUE,
    (MOQ_OPen_BAL( All_Item_subinv.SUBINVENTORY_CODE,
              MSI.ORGANIZATION_ID,
    MSI.INVENTORY_ITEM_ID,
    '&P_GL_PERIOD_NAME_FROM') )     OPEN_QTY_BAL ,
    (MOQ_OPen_BAL_VAL( All_Item_subinv.SUBINVENTORY_CODE,
              mSI.ORGANIZATION_ID,
    MSI.INVENTORY_ITEM_ID,
    '&P_GL_PERIOD_NAME_FROM')
         )                                             OPEN_QTY_VALUE,
    NVL(AGGREGATED_MTT.PO_RECEIPTS_QTY,0)                              PO_RECEIPTS_QTY,
         NVL(AGGREGATED_MTT.PO_RECEIPTS_QTY_VALUE,0)                          PO_RECEIPTS_QTY_VALUE,
         NVL(AGGREGATED_MTT.MISC_RECEIPTS_QTY,0)                              MISC_RECEIPTS_QTY,
         NVL(AGGREGATED_MTT.MISC_RECEIPTS_QTY_VALUE,0)                          MISC_RECEIPTS_QTY_VALUE,
         NVL(AGGREGATED_MTT.WORKORDER_QTY,0)                              WORKORDER_QTY,
         NVL(AGGREGATED_MTT.WorkOrder_QTY_VALUE,0)                          WorkOrder_QTY_VALUE,
    NVL(AGGREGATED_MTT.SALES_SHIPMENT_QTY,0)                         SALES_SHIPMENT_QTY,
         NVL(AGGREGATED_MTT.SALES_SHIPMENT_QTY_VALUE,0)                         SALES_SHIPMENT_QTY_VALUE,
         NVL(AGGREGATED_MTT.MISC_ISSUE_QTY,0)                              MISC_ISSUE_QTY,
         NVL(AGGREGATED_MTT.MISC_ISSUE_QTY_VALUE,0)                          MISC_ISSUE_QTY_VALUE,
         NVL(AGGREGATED_MTT.TRANSFER_QTY,0)                              TRANSFER_QTY,
         NVL(AGGREGATED_MTT.TRANSFER_QTY_VALUE,0)                         TRANSFER_QTY_VALUE,
         NVL(AGGREGATED_MTT.REVAL_VALUE,0)                              REVAL_VALUE,
              (MOQ_OPen_BAL(All_Item_subinv.SUBINVENTORY_CODE,
              MSI.ORGANIZATION_ID,
    MSI.INVENTORY_ITEM_ID,
    '&P_GL_PERIOD_NAME_FROM')
              +
              nvl(AGGREGATED_MTT.PO_RECEIPTS_QTY,0)      +
              nvl(AGGREGATED_MTT.MISC_RECEIPTS_QTY,0)     +
              nvl(AGGREGATED_MTT.WORKORDER_QTY,0)     +
              nvl(AGGREGATED_MTT.SALES_SHIPMENT_QTY,0)     +
              nvl(AGGREGATED_MTT.MISC_ISSUE_QTY,0)          +
              nvl(AGGREGATED_MTT.TRANSFER_QTY,0)     )                ON_HAND_QTY,
    ((MOQ_OPen_BAL_VAL( All_Item_subinv.SUBINVENTORY_CODE,MSI.ORGANIZATION_ID,MSI.INVENTORY_ITEM_ID,'&P_GL_PERIOD_NAME_FROM'))
    +(nvl( AGGREGATED_MTT.PO_RECEIPTS_QTY_VALUE,0) )     
    +(nvl( AGGREGATED_MTT.MISC_RECEIPTS_QTY_VALUE,0) )
    +(nvl( AGGREGATED_MTT.WorkOrder_QTY_VALUE,0) )
    +(nvl( AGGREGATED_MTT.sALES_SHIPMENT_QTY_VALUE,0) )
    +(nvl( AGGREGATED_MTT.MISC_ISSUE_QTY_VALUE,0) )
    +(nvl( AGGREGATED_MTT.TRANSFER_QTY_VALUE,0) )
    +nvl( AGGREGATED_MTT.REVAL_VALUE,0))                               ON_HAND_QTY_VALUE -- column alias
    FROM
    -- In line View for MSI
    (select distinct MMT.ORGANIZATION_ID, MMT.INVENTORY_ITEM_ID, MMT.SUBINVENTORY_CODE
    From MTL_MATERIAL_TRANSACTIONS      MMT,
    ORG_ORGANIZATION_DEFINITIONS      OOD,
    MTL_ONHAND_QUANTITIES moq
    where
         OOD.organization_code           = '&P_INV_ORG_CODE' --'HS' --'&P_INV_ORG_CODE'
    AND OOD.inventory_enabled_flag = 'Y'
    AND OOD.operating_unit          = fnd_profile.value('ORG_ID') --83 --fnd_profile.value('ORG_ID')
    AND OOD.SET_OF_BOOKS_ID          = fnd_profile.value('GL_SET_OF_BKS_ID') --1 --fnd_profile.value('GL_SET_OF_BKS_ID')
    AND     MMT.ORGANIZATION_ID          = OOD.organization_id
    AND MMT.SUBINVENTORY_CODE          = NVL('&P_SUBINVENTORY_CODE', MMT.SUBINVENTORY_CODE)
    and MMT.ORGANIZATION_ID      = MOQ.ORGANIZATION_ID -- to eliminate consigend items:2007Jan04:PKB
    and MMT.INVENTORY_ITEM_ID = MOQ.INVENTORY_ITEM_ID --,,
    and MMT.SUBINVENTORY_CODE = MOQ.SUBINVENTORY_CODE --,,
    UNION
    Select distinct      MOQ.ORGANIZATION_ID,      MOQ.INVENTORY_ITEM_ID,     MOQ.SUBINVENTORY_CODE
    from      MTL_ONHAND_QUANTITIES                MOQ,
         ORG_ORGANIZATION_DEFINITIONS           OOD2
    WHERE
         OOD2.organization_code           = '&P_INV_ORG_CODE' --'HS' --'&P_INV_ORG_CODE'
    AND OOD2.inventory_enabled_flag      = 'Y'
    AND OOD2.operating_unit          = fnd_profile.value('ORG_ID') --83 --fnd_profile.value('ORG_ID')
    AND OOD2.SET_OF_BOOKS_ID          = fnd_profile.value('GL_SET_OF_BKS_ID') --1 --fnd_profile.value('GL_SET_OF_BKS_ID')
    AND moq.ORGANIZATION_ID          = OOD2.organization_id
    AND moq.SUBINVENTORY_CODE          = NVL('&P_SUBINVENTORY_CODE', moq.SUBINVENTORY_CODE)
    ) ALL_Item_SUBInv,
    MTL_SYSTEM_ITEMS_B MSI,
    Mtl_System_Items_Vl MSIV,
    (SELECT
         MMT.ORGANIZATION_ID ORGANIZATION_ID,
    MMT.INVENTORY_ITEM_ID          INVENTORY_ITEM_ID,
    MMT.SUBINVENTORY_CODE          SUBINVENTORY_CODE,
    -- PO RECEIPTS.
    SUM(CASE
         WHEN MTST.TRANSACTION_SOURCE_TYPE_NAME in
    ('Purchase order')
         THEN
              CASE
              WHEN MTT.TRANSACTION_TYPE_NAME in
    ('PO Receipt','PO Rcpt Adjust','Return to Vendor')
    THEN
                   --MMT.TRANSACTION_QUANTITY
                   mmt.primary_quantity
    ELSE 0
    END
    ELSE 0
    END ) PO_RECEIPTS_QTY,
    SUM(CASE
         WHEN MTST.TRANSACTION_SOURCE_TYPE_NAME in
    ('Purchase order')
         THEN
              CASE
              WHEN MTT.TRANSACTION_TYPE_NAME in
    ('PO Receipt','PO Rcpt Adjust','Return to Vendor')
    THEN
                   NVL(MMT.ACTUAL_COST,0)* nvl(mmt.primary_quantity,0)
                   MMT.TRANSACTION_COST * NVL(AVG_ITEM_COST.ITEM_COST,0)
    ELSE 0
    END
    ELSE 0
    END ) PO_RECEIPTS_QTY_VALUE,
    -- MISC RECEIPTS.
    SUM( CASE
         WHEN MTST.TRANSACTION_SOURCE_TYPE_NAME in
    ('Account','Inventory')
         THEN
              CASE
              WHEN MTT.TRANSACTION_TYPE_NAME in
    ('Account receipt','Miscellaneous receipt')
    THEN
                   --MMT.TRANSACTION_QUANTITY
                   mmt.primary_quantity
    ELSE 0
    END
    ELSE 0
    END ) MISC_RECEIPTS_QTY,
    SUM(CASE
         WHEN MTST.TRANSACTION_SOURCE_TYPE_NAME in
    ('Account', 'Inventory')
         THEN
              CASE
              WHEN MTT.TRANSACTION_TYPE_NAME in
    ('Account receipt','Miscellaneous receipt')
    THEN
                   NVL(MMT.ACTUAL_COST,0) * nvl(mmt.primary_quantity,0)
                        MMT.TRANSACTION_COST NVL(AVG_ITEM_COST.ITEM_COST,0)
    ELSE 0
    END
    ELSE 0
    END ) MISC_RECEIPTS_QTY_VALUE,
    -- WorkOrder Qty and S$
    SUM( CASE
         WHEN MTST.TRANSACTION_SOURCE_TYPE_NAME in
    ('Job or Schedule')
         THEN
              CASE
              WHEN MTT.TRANSACTION_TYPE_NAME in
    ('WIP Assembly Return','WIP Assy Completion','WIP component issue','WIP Component Return')
    THEN
                   --MMT.TRANSACTION_QUANTITY
                   mmt.primary_quantity
    ELSE 0
    END
    ELSE 0
    END ) WORKORDER_QTY,
    SUM(CASE
         WHEN MTST.TRANSACTION_SOURCE_TYPE_NAME in
    ('Job or Schedule')
         THEN
              CASE
              WHEN MTT.TRANSACTION_TYPE_NAME in
    ('WIP Assembly Return','WIP Assy Completion','WIP component issue','WIP Component Return')
    THEN
                   NVL(MMT.ACTUAL_COST,0) * nvl(mmt.primary_quantity,0)
                        MMT.TRANSACTION_COST NVL(AVG_ITEM_COST.ITEM_COST,0)
    ELSE 0
    END
    ELSE 0
    END ) WorkOrder_QTY_VALUE,
    -- Sales Shipment
    SUM(CASE
         WHEN MTST.TRANSACTION_SOURCE_TYPE_NAME in
    ( 'Sales order','RMA')
         THEN
              CASE
              WHEN MTT.TRANSACTION_TYPE_NAME in
    ('Sales order issue','Sales Order Pick','RMA Return','RMA Receipt')
    THEN
                   --MMT.TRANSACTION_QUANTITY
                   mmt.primary_quantity
    ELSE 0
    END
    ELSE 0
    END ) SALES_SHIPMENT_QTY,
    SUM(CASE
         WHEN MTST.TRANSACTION_SOURCE_TYPE_NAME in
    ( 'Sales order','RMA')
         THEN
              CASE
              WHEN MTT.TRANSACTION_TYPE_NAME in
    ('Sales order issue','Sales Order Pick','RMA Return','RMA Receipt')
    THEN
                   NVL(MMT.ACTUAL_COST,0) * nvl(mmt.primary_quantity,0)
                   MMT.TRANSACTION_COST NVL(AVG_ITEM_COST.ITEM_COST,0)
    ELSE 0
    END
    ELSE 0
    END ) SALES_SHIPMENT_QTY_VALUE,
    -- MISC ISSUE
    SUM(CASE
         WHEN MTST.TRANSACTION_SOURCE_TYPE_NAME in
    ('Inventory','Account' )
         THEN
              CASE
              WHEN MTT.TRANSACTION_TYPE_NAME in
    ('Miscellaneous issue','Account issue')
    THEN
                   --MMT.TRANSACTION_QUANTITY
                   mmt.primary_quantity
    ELSE 0
    END
    ELSE 0
    END ) MISC_ISSUE_QTY,
    SUM(CASE
         WHEN MTST.TRANSACTION_SOURCE_TYPE_NAME in
    ('Inventory','Account' )
         THEN
              CASE
              WHEN MTT.TRANSACTION_TYPE_NAME in
    ('Miscellaneous issue','Account issue')
    THEN
                   NVL(MMT.ACTUAL_COST,0) * nvl(mmt.primary_quantity,0)
                   MMT.TRANSACTION_COST NVL(AVG_ITEM_COST.ITEM_COST,0)
    ELSE 0
    END
    ELSE 0
    END ) MISC_ISSUE_QTY_VALUE,
    -- Transfers
    SUM( CASE
         WHEN MTST.TRANSACTION_SOURCE_TYPE_NAME in
    ( 'Inventory' )
         THEN
              CASE
              WHEN MTT.TRANSACTION_TYPE_NAME in
    ('Subinventory Transfer')
    THEN
                   --MMT.TRANSACTION_QUANTITY
                   mmt.primary_quantity
    ELSE 0
    END
    ELSE 0
    END ) TRANSFER_QTY,
    SUM( CASE
         WHEN MTST.TRANSACTION_SOURCE_TYPE_NAME in
    ( 'Inventory')
         THEN
              CASE
              WHEN MTT.TRANSACTION_TYPE_NAME in
    ('Subinventory Transfer')
    THEN      NVL(MMT.ACTUAL_COST,0) * nvl(mmt.primary_quantity,0)
                   MMT.TRANSACTION_COST NVL(AVG_ITEM_COST.ITEM_COST,0)
    ELSE 0
    END
    ELSE 0
    END ) TRANSFER_QTY_VALUE,
    -- Adjustment to Cost (Revaluation)
    SUM(CASE
         WHEN MTST.TRANSACTION_SOURCE_TYPE_NAME in
    ( 'Standard cost update','Job or Schedule')
         THEN
              CASE
              WHEN MTT.TRANSACTION_TYPE_NAME in
    ('Standard cost update','WIP cost update')
    THEN
                   --2007JAN03:PKB MMT.TRANSACTION_COST
    MMT.TRANSACTION_COST* MMT.QUANTITY_ADJUSTED
    ELSE 0
    END
    ELSE 0
    END ) REVAL_VALUE
         FROM
         MTL_MATERIAL_TRANSACTIONS                MMT,
         --GL_PERIODS                          GP,
         MTL_TRANSACTION_TYPES                MTT,
         MTL_TXN_SOURCE_TYPES                    MTST,
    ORG_ORGANIZATION_DEFINITIONS                OOD
    WHERE     
    OOD.organization_code           = '&P_INV_ORG_CODE' --'HS' --'&P_INV_ORG_CODE'
    AND OOD.inventory_enabled_flag = 'Y'
    AND OOD.operating_unit          = fnd_profile.value('ORG_ID') --83 --fnd_profile.value('ORG_ID')
    AND OOD.SET_OF_BOOKS_ID          = fnd_profile.value('GL_SET_OF_BKS_ID') --1 --fnd_profile.value('GL_SET_OF_BKS_ID')
    AND     MMT.ORGANIZATION_ID          = OOD.organization_id
    AND MMT.SUBINVENTORY_CODE          = NVL('&P_SUBINVENTORY_CODE', MMT.SUBINVENTORY_CODE)
    -- AND GP.PERIOD_SET_NAME          = 'HF-ACCTG-CAL' -- Hardcoded PKB
    AND
         (     (EXISTS
         ( select GP.Period_name
    FROM GL_PERIODS GP
    where TO_DATE(TO_CHAR(MMT.TRANSACTION_DATE,'DD-MM-YYYY'),'DD-MM-YYYY')
                   >= TO_DATE(TO_CHAR(GP.START_DATE,'DD-MM-YYYY'),'DD-MM-YYYY') --Between GP.START_DATE and GP.END_DATE
         AND GP.PERIOD_NAME      = '&P_GL_PERIOD_NAME_FROM'
              and GP.PERIOD_SET_NAME          = 'HF-ACCTG-CAL'
    AND NVL('&P_GL_PERIOD_NAME_FROM','ALL')      != 'ALL'
    OR (NVL('&P_GL_PERIOD_NAME_FROM' ,'ALL')               = 'ALL')
    AND
         (     (EXISTS
         ( select GP.Period_name
    FROM GL_PERIODS GP
    where TO_DATE(TO_CHAR(MMT.TRANSACTION_DATE,'DD-MM-YYYY'),'DD-MM-YYYY')
                   <= TO_DATE(TO_CHAR(GP.END_DATE,'DD-MM-YYYY'),'DD-MM-YYYY')
         AND GP.PERIOD_NAME      = '&P_GL_PERIOD_NAME_TO'
              and GP.PERIOD_SET_NAME          = 'HF-ACCTG-CAL'
    AND NVL('&P_GL_PERIOD_NAME_TO','ALL')      != 'ALL'
    OR (NVL('&P_GL_PERIOD_NAME_TO','ALL')               = 'ALL')
    AND MMT.TRANSACTION_TYPE_ID          = MTT.TRANSACTION_TYPE_ID
    AND MMT.TRANSACTION_SOURCE_TYPE_ID          = MTST.TRANSACTION_SOURCE_TYPE_ID
    group by
         MMT.ORGANIZATION_ID,
    MMT.INVENTORY_ITEM_ID,
    MMT.SUBINVENTORY_CODE
    )                    AGGREGATED_MTT,
    -- Inline Table for AVG_ITEM_COSTs 2nd time,
    (SELECT
         CIC.ORGANIZATION_ID     ORGANIZATION_ID,
    CIC.INVENTORY_ITEM_ID INVENTORY_ITEM_ID,
    CIC.COST_TYPE_ID COST_TYPE_ID,
    CCT.COST_TYPE     COST_TYPE,
    NVL(CIC.ITEM_COST ,0) ITEM_COST
    FROM
         CST_ITEM_COSTS           CIC,
         CST_COST_TYPES           ccT,
    ORG_ORGANIZATION_DEFINITIONS                OOD1
    WHERE
         CCT.COST_TYPE_ID           = CIC.COST_TYPE_ID
         /*AND (
         (CCT.COST_TYPE          = 'Average' and '&P_INV_ORG_CODE' = 'HS')
              OR
    (CCT.COST_TYPE          = 'Frozen' and '&P_INV_ORG_CODE' = 'HL')
    AND CCT.COST_TYPE_ID =
              ( select      m.primary_cost_method
              from      mtl_parameters m
    where      m.organization_id      = OOD1.ORGANIZATION_ID
         and OOD1.organization_code      = '&P_INV_ORG_CODE' --'HS' --'&P_INV_ORG_CODE'
         AND OOD1.inventory_enabled_flag = 'Y'
         AND OOD1.operating_unit          = fnd_profile.value('ORG_ID') 83 --fnd_profile.value('ORG_ID')
         AND OOD1.SET_OF_BOOKS_ID     = fnd_profile.value('GL_SET_OF_BKS_ID') 1 --fnd_profile.value('GL_SET_OF_BKS_ID')
         AND cic.ORGANIZATION_ID          = OOD1.organization_id
         )                               AVG_ITEM_COST1
    WHERE
    AGGREGATED_MTT.ORGANIZATION_ID(+)          = All_Item_subinv.ORGANIZATION_ID
    AND AGGREGATED_MTT.INVENTORY_ITEM_ID(+) = All_Item_subinv.INVENTORY_ITEM_ID
    AND AGGREGATED_MTT.subinventory_code(+)     = All_Item_subinv.subinventory_code
    AND All_Item_subinv.ORGANIZATION_ID          = MSI.ORGANIZATION_ID
    AND ALL_Item_SUBInv.INVENTORY_ITEM_ID          = MSI.INVENTORY_ITEM_ID
    AND AVG_ITEM_COST1.ORGANIZATION_ID(+)     = MSI.ORGANIZATION_ID
    AND AVG_ITEM_COST1.INVENTORY_ITEM_ID(+)      = MSI.INVENTORY_ITEM_ID
    and msi.ROWID                         = MSIV.ROW_ID
    and msi.ORGANIZATION_ID                    = fnd_profile.value('ORG_ID') --83 --fnd_profile.value('ORG_ID')
    and sysdate between NVL(msi.start_date_active,sysdate -1 )
    and NVL(msi.end_date_active,sysdate+1)
    Order BY
         MSI.SEGMENT1,
    MSI.DESCRIPTION     ,
    All_Item_subinv.SUBINVENTORY_CODE
    /

    Hi Barry and All: This indeed is a bug in SQLPLUS ! Version 9.2.0.1.0 as well.
    Thanks for asking the version no of SQLLPLUs. I was working thru Oracle Apps 11i.10 (concurrent program). So I did not get any message from SQLPLUS.
    I tested independently in SQLPLUS and got the message! Thanks Oracle!!!
    The Bug is in the name of COLUMN NAME or ALIAS Name. I renamed the columns from ON_HAND_QTY and ON_HAND_VALUE to CLOSE_QTY and CLOSE_QTY_VALUE. It worked!! The string 'ON' in the column/alias name is taken as 'ON' keyword/clause for 'compute' statement for SQLPLUS.
    Here is the message from SQLPLUS
    " SP2-0084: COMPUTE ON keyword specified already"
    See these two line and compare
    --compute SUM label 'Total $S: ' of SALARY ON_SALARY  on report;
    compute SUM label 'Total $S: ' of SALARY on report;
    Thanks - Pradip
    Here is the sample code to simulate. (not Big :))
    WHENEVER SQLERROR EXIT FAILURE
    CLEAR computes
    CLEAR BREAKS
    clear column
    TTITLE OFF
    BTITLE OFF
    set verify off
    set feedback off
    set echo off
    set heading off
    set termout off
    set linesize 203
    set pagesize 30
    set termout on
    SET UNDERLINE =
    set heading on
    COLUMN SALARY               FORMAT 9,999,990      Heading 'SALARY'           
    COLUMN ON_SALARY          format 9,999,990 Heading 'ON Salary'
    column ENAME format a20 heading 'NAME'
    COLUMN EMPNO Format 99999 HEADING 'EMPNO'
    BREAK on REPORT skip 3;
    --compute SUM label 'Total $S: ' of SALARY ON_SALARY  on report;
    compute SUM label 'Total $S: ' of SALARY on report;
    WHENEVER SQLERROR EXIT FAILURE
    select empno, ename, sal SALARY, sal ON_SALARY from scott.emp;

  • Win 8.1 Start button and Charms randomly stops working BUG (workaround)

    To anyone experiencing this, it is a bug in Win 8.1 which I can replicate at will.
    Reinstalling your system as suggested by MS engineers will not fix this.
    To force the bug to appear:
    1. Grab a desktop Icon (recycle bin, any shortcut) and move this up to the top left hand corner without letting go of the mouse button. Drop shortcut anywhere on desktop. Without an Icon the mouse pointer would initiate the recent apps.
    2. To check that the first step has worked, try and invoke charms by moving mouse to top right hand corner.  If Charms do not appear then the bug has been triggered.
    3. Now move mouse over start button (no click), move away then back again. Now the start button is locked.  If you unlock the taskbar you can move it to any other position (top, left or right) and the start button works.  Move taskbar back to the
    bottom and the start button still does not work.  Only way to get it working again is to restart window explorer in task manager.
    To avoid this happening all you need to do is disable recent apps corner.
    1. Right click desktop.
    2. Click Taskbar and Navigation
    3. Click Navigation tab in the properties window
    4. Uncheck "When I click the upper-left corner, switch between my recent tabs."
    Now the bug cannot be triggered as above to make the start button stop working. You have to remove this feature which is pretty hopeless on a desktop anyway.  Its better than restarting Window explorer every time.
    I can replicate this on any desktop or laptop, fresh install or old. Not sure about any touch screen machines. I can also trigger this in VMPlayer\Virtual Box and the Modern IE VM images that MS provide.
    Now the MS engineers can replicate this on their machines, and maybe if we are lucky they will FIX it!!!!
    MS please acknowledge that this is a bug.
    Maybe the issue is due to the windows button not being redrawn on the screen once triggered as it still works when taskbar is moved (graphic card drivers). Could not find anything use full in the system logs.
    Just noticed also that the charms also breaks if you drag an Icon up to the right hand corner. Once triggered Charms stops working, start button is not affected with the above work around configured.
    MS please read this and reply.

    suspect it is local to your environment.
    Others seeing the same symptom.  Note that originally I was not using the
    Top left hover for thumbnail  feature and then also claimed not to see it.
    Oh.  And here is another factor that someone else is using as a workaround.  A link to the first thread I was thinking of can be found in this one
    https://social.technet.microsoft.com/Forums/ie/en-US/d4526a1c-f811-4b67-9e4f-8a2e8f301917/charms-bar-and-start-button-freezes?forum=w8itprogeneral#2a21ea9a-4924-4808-9c2f-c4a7c0de8223
    Robert Aldwinckle

  • Flash Builder Design Mode Bug Workaround (!!!)

    I've been fighting this annoyance since FB4 came out, and while I still don't think that custom/embedded fonts in design view are fixed by this, I've been able to reproduce this "fix" (workaround) to get design view to show fonts/theme correctly under some very specific circumstances on two separate PCs.
    If anyone from Adobe sees this I'd like to know whether this sounds familiar or is possibly logged as a bug already somewhere in JIRA.. if not I could probably do that as long as it won't be a wasted effort.
    The problem:
    You're using a Halo theme but certain CSS settings (specifically and possibly limited to FONTS) don't work properly in design view even though they work fine in Flash.  Essentially this makes design view practically useless since choice of font family, size, and weight can effect component sizing if you aren't hard-coding component sizes (ugh)... ruining your efforts to use design view for UI design if your UI has any level of complexity (or uses absolute positioning at all).
    The specific circumstances seem to be:
    You're using the Halo theme (you have no special 'skinning' requirements and want Halo defaults w/only CSS customizations)
    You've upgraded a Flex 3 project to Flex 4 SDK (not sure if this is needed to reproduce the issue)
    Using a regular non-embedded font (embedded fonts still do crap out, but even this 'workaround' doesn't fix that problem)
    You're using swc library files such as the Swiz lib, Mate, Flexlib, etc. (I think it's ANY swc, not specific to any one)
    This may also only apply when using an "mx only" project (no Spark), since we're using Halo here
    The two part fix (as far as I can tell you need BOTH before design view works correctly):
    In .actionScriptProperties, add the following bolded line after the compiler tag like so:
      </compiler>
      <theme themeIsDefault="false" themeIsSDK="true" themeLocation="${SDK_THEMES_DIR}/frameworks/themes/Halo"/>
      <applications>
      (I think this may only apply to 'upgraded' projects, as the line does seem to be present in newly created FB4 Halo projects.  My guess is that an "upgraded" project should have such a line added, but doesn't get it due to an oversight/bug.)
    The somewhat painful, and definitely odd part.  Remove all your SWC library files from /libs.  Grab the source code for the libraries and drop them into your project's /src folder as if you'd written them yourself.  (This may require some research and knowledge on special requirements to build the libs, such as with Swiz's compiler metadata compiler settings which you need to put into your project's settings.)  After you get things set up right and the project compiles again, doing a refresh of design view should finally give you proper looking Halo controls and fonts so they look identical to the Flash runtime view.
    Why this works, I've no idea.  I suspect it has something to do with that stupid and annoying (and supposedly 'harmless') design mode warning message you get when you include a library like Swiz or Mate in your project.  (Design mode could not load xxxxxxxxxxxxx.swc. It may be incompatible with this SDK, or invalid. (DesignAssetLoader.CompleteTimeout)) - this warning doesn't break your application, people seem to think it's just a harmless warning..but is it breaking design view?
    If anyone has any idea what's going on here, why this 'fixes' the problem (a better work around), or has any other insight I'd love to hear it.  The combo of needing to do two things (in my specific case) to fix the problem really made this a ROYAL PAIN, I still can't believe I found it.

    Hi Fernando, sorry for the delayed response.  CSS Design Mode is not available for Flex 4 projects, but it is still available in Flex 3 projects.  The reason for this is that designing components in Flex 4 is often a lot different, since it relies highly on the new spark skinning architecture.  There is, however, an Appearance panel available in design view which supplies a set of the main inheriting styles. Setting these styles in the Appearance panel will result in assigning values to a global style selector.
    I hope this helps,
    Rob

  • Submit a Document on a bug workaround in metalink

    Hi All,
    Recently I did a workaround for an oracle bug. I'd like to publish a document in metalink for our use.
    Is there is way, where i can publish it in metalink or any other technical site?
    Cheers,
    Kamalesh JK

    Its there already in oracle forums & metalink forums. But, how about as a document in metalink?

  • CS3 Maximized Screen Mode - Reposition-Bug Workarounds

    In Photoshop CS3, when you use Maximized Screen Mode (image window maximized to the PS workspace) with an image window that's zoomed to a level where scroll bars exist, and you switch to another image window in the PS workspace and then switch back to the original image window (let's say using Ctrl-F6 or Ctrl-Tab) Photoshop will reposition the view to the upper left corner of the image rather than leaving it where it was.
    For me, this bug is 100% reproducible.
    This bug is also referenced in these forums at the following topics:
    http://www.adobeforums.com/webx/.3bc3bd89
    http://www.adobeforums.com/webx/.3bca160f
    http://www.adobeforums.com/webx/.3c0561ea
    I often carefully position 100% zoom-level images & alternate between windows for detailed comparison. It's extremely frustrating to toggle back only to be at a completely different location on the image window. I found this bug so maddening that I almost abandoned CS3 for an earlier version. It's still maddening, but at least I've found workarounds which I'll share with you here:
    1) after opening an image and zooming to the extent that the above bug exists (scroll-bars available), press F and then shift-F (or vice versa) to switch to a different Screen Mode and back (problem goes away *for this image only* until the Zoom level is changed significantly - at which time you must repeat the workaround.) Repeat for every image for which you'd like the position to remain stationary when alternating to other windows and back.
    2) click on Screen Mode button at the bottom of PS Toolbar and choose Maximized, (even if you were already on Maximized.) This has the same corrective effect as 1), above.
    3) On a "fixed" image, if you forget to "reset" the fix after changing the zoom level significantly & you "lose your place" after alternating between windows (jumps to upper left corner), you can "recover" the previously "fixed" position by returning to the previous zoom level and switching to another window and back. It returns to the previously "fixed" location instead of the bug-altered PS chosen location of upper left corner!
    4) Use a Screen Mode other than Maximized & this issue never occurs.
    Adobe, this *really* should be addressed and corrected. I'd think this is much more serious than the "sticky menus" bug of CS2 that was fixed.
    Reported to Adobe using their Bug Report form...

    Yes!!! This works.  Thank you.  I hope it does not continue to recur.  I would like to know what caused this in the first place.  I never use the paint bucket tool.  I often use the fill tool, though, sometimes with black as the foreground color.

  • KeyEvent-bug - workaround?

    Some time ago I reported a bug related to KeyEvents:
    When a key is hold down under Windows, a keyPressed-event can be received and only after it is released, the appropriate keyReleased-event occurs. Under Linux it is different, here some kind of key repeat takes place and during a key is hold down permanently, several keyPressed/keyReleased-events are sent continuously.
    After this bug can be found in version 1.5 too, I'm looking for a workaround. So for an example is it possible to disable the key repeats for the JVM (in worst case globally)?.
    Michael

    Maybe you should be using the KeyTyped event. Maybe you should be using a DocumentListener (the preferred solution since its a higher level of abstraction from the low level KeyEvents).
    You don't state what you are trying to accomplish, so its kind of hard to suggest an alternate solution.
    So for an example is it possible to disable the key repeats for the JVM (in worst case globally)?.Maybe you can create your own EventQueue and consume KeyReleased/KeyPressed pairs that are received within a certain time period. This [url http://forum.java.sun.com/thread.jsp?forum=57&thread=515095]posting shows a simple example of using your own EventQueue.

  • **BUG (workaround) Sluggish PRE (Palm software gurus - please read)

    Not sure if the Palm Developers ever get on here and take a look at issues, but there is s STRANGE workaround found for a Pre that becomes sluggish.
    Every so often the Pre will start slowing down and acting really jittery when trying to open/run applications.  BUT if you go to your call history and Clear it out... the phone returns to working faster.  It's really sad that it doesn't take many calls in the history to make the Phone application start lagging heavily, but to have the rest of the phone's applications speed up once the history is cleared is nothing but crazy.
    I truly hope Palm addresses this whacked out bug soon because I'm sooo tired of having my phone slow down (it isn't that fast to begin with).   This is by far the BEST phone I've ever owned, with WebOS being sheer genius.  But please address the issue of call history affecting the speed of all applications.
    Thanks!!

    Hi 
    I am really sorry for the inconvenience caused to you .  Please send me a private message with all your details
    I will ensure that your issue is addressed  and fixed as per your expectations
    Hope This Helps
    Cheers!!!
    Important Note: If you need help, post your question in the forum, and include your system type, model number and OS. Do not post your serial number.
    Did someone help you today? Press the star on the left to thank them with Kudos!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"!  This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • F95 long string bug workaround

    Recently I reported a bug in Sun f95 (internal review ID 926528) in which initializing a character variable with length > 1024 made the compiler crash. The offending program:
    PROGRAM sunbuglongstring ! character*1025
    CHARACTER:: longstring*1025='<'//repeat('.',1023)//'>'
    PRINT '(1X,2A)',longstring(1:1),longstring(1025:1025)
    END PROGRAM sunbuglongstring
    ought to print <>. After sending that bug report I found a simple workaround: separate the initialization from the declaration by
    PROGRAM sunbuglongstring1 ! character*1025
    CHARACTER:: longstring*1025
    longstring = '<'//repeat('.',1023)//'>'
    PRINT '(1X,2A)',longstring(1:1),longstring(1025:1025)
    END PROGRAM sunbuglongstring1
    which compiled and ran OK.

    I am experiencing the same error on csv export from within APEX app, however not all symptoms match i.e. we have only 1 authentication scheme & logging in & out does not resolve the issue.
    Our environment is Oracle 10g running APEX 3.01 & error appears in IE7 & IE8 but not Firefox.
    Is this a different bug perhaps?
    Any possible workarounds (other than switching to Firefox?)?
    Any suggestions would be appreciated.

  • 10.1.0.4 bug workaround

    Our platform is Linux. After recovery finished and re-open database, instance down due to no temp file in temp tablespace. The problem is adding temp file requires DB open, but instance will go down in less than a couple of seconds. It's seemd this is a bug. Is there any way to hold on PMON bring down instance just for a few seconds so adding temp file can be completed before instance crash?

    It does not work:
    i014@d03ora) /ora1/i014-> sqlplus / as sysdba
    SQL*Plus: Release 10.1.0.4.0 - Production on Wed Jan 3 16:22:06 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to an idle instance.
    SQL> startup mount exclusive
    ORACLE instance started.
    Total System Global Area 838860800 bytes
    Fixed Size 1324688 bytes
    Variable Size 216168816 bytes
    Database Buffers 620756992 bytes
    Redo Buffers 610304 bytes
    Database mounted.
    SQL> alter database open;
    alter tablespace temp add tempfile '/ora1/i014/temp01.dbf' size 1g reuse autoextend on next 1m;
    alter database open
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel
    SQL> ERROR:
    ORA-03114: not connected to ORACLE
    And in alert log:
    Wed Jan 3 16:22:41 2007
    Successfully onlined Undo Tablespace 1.
    Wed Jan 3 16:22:41 2007
    SMON: enabling tx recovery
    Wed Jan 3 16:22:41 2007
    WARNING: The following temporary tablespaces contain no files.
    This condition can occur when a backup controlfile has
    been restored. It may be necessary to add files to these
    tablespaces. That can be done using the SQL statement:
    ALTER TABLESPACE <tablespace_name> ADD TEMPFILE
    Alternatively, if these temporary tablespaces are no longer
    needed, then they can be dropped.
    Empty temporary tablespace: TEMP
    Database Characterset is WE8ISO8859P1
    Wed Jan 3 16:22:41 2007
    Errors in file /oracle/admin/i014/bdump/i014_smon_23426.trc:
    ORA-07445: exception encountered: core dump [ksqdeli()+194] [SIGSEGV] [Address not mapped to object] [0x000000068] [] []
    ORA-25153: Temporary Tablespace is Empty
    Wed Jan 3 16:22:42 2007
    Starting background process QMNC
    QMNC started with pid=17, OS id=23456
    Wed Jan 3 16:22:43 2007
    replication_dependency_tracking turned off (no async multimaster replication found)
    Wed Jan 3 16:22:44 2007
    Errors in file /oracle/admin/i014/bdump/i014_pmon_23416.trc:
    ORA-00474: SMON process terminated with error
    Wed Jan 3 16:22:44 2007
    PMON: terminating instance due to error 474
    Instance terminated by PMON, pid = 23416
    My clone process is fine. I did online clone so resetlogs must be used. Once recovery performed, temp infomation is gone.
    Let me repeat again, it's a bug and needs a work around, to adding temp file before instance crash.

Maybe you are looking for

  • HOW TO GET THE VALUE OF A NODE IN XMLDOC?

    i have an xml doc like this: <FUSIONHUB> <INFO> <COMPANY_ID>A001</COMPANY_ID> </INFO> </FUSIONHUB> HOW TO RETRIEVE THE VALUE A001? I HAVE USED NODE.getNodevalue() method but it returned null instead of A001. can anybody please answer ? waitng for rep

  • Oracle 10g will do stats automatically ?

    oracle : 10.2.0.3 os : linux How oracle 10g will gather stats automatically ? How to check whether which scheduler is capturing stats, interval ,last gathered status and also next interval? it will take only system level stats ? also object level sta

  • Controlling where to paste items on the timeline

    Hi Everyone, Let's suppose you have a timeline twelve seconds wide with two objects.  Each object is three seconds in length.  The first object is on the bottom of the timeline at the beginning. The second object is on the top of the timeline at the

  • WMS @sto level

    What you mean by WMS at storage location level & WMS at bin level??

  • Help !!!set Arguments property for block based on store procedures

    hi i build a block based on storeprocedures ,if i set the Query Data Source Arguments property in design time with a value my form will work, but i need to set this property programetically and in runtime, if there is any built_in or other ways ,plea