OLAP AWM 10.2 Variable names: Object view

In the AWM we see a number of variables in object view e.g. below. Where can we find additional documentation or information about what these various objects represent eg.._PRT_TOPVAR represents cube. Please advise.
<cubename>PRTTOPVAR
<cubename>_COMPOSITE
<cubename>PRTMEASDIM
<cubename>PRTTOPFRML

<cubename>PRTTOPVAR -> This is partition top variable which holds data.
<cubename>_COMPOSITE
<cubename>PRTMEASDIM -> This is a dimension object which hold the name of the measures you have in your cube. If you limit this to a particular measure and report on PRTTOPVAR then you will get value for only one measure instead of all.
<cubename>PRTTOPFRML -> This is partition top formula which is used while reporting. If you want that the cube should use a custom aggmap then you have to change the PRTTOPFRM to point to the custom aggmap.
Thanks
Brijesh

Similar Messages

  • Documentation: OLAP AWM 10.2 variable types

    Where can we find documentation on what the various variable types in Oracle AWM object view represent. please advise.
    <cubename>PRTTOPVAR
    <cubename>_COMPOSITE
    <cubename>PRTMEASDIM
    <cubename>PRTTOPFRML

    These objects belong to so-called 10g 'standard form' metadata. This was partially documented in the "Exploring a Standard Form Analytic Workspace" chapter of the "OLAP Application Developer's Guide" in 10.1. This chapter was removed by 10.2.. Unfortunately for you, some of these objects were introduced in 10.2 and I am not aware of any formal documentation for them. But I can you a basic idea of the ones you list.
    The objects are used to implement a cube in 10gR2.
    <cubename>PRTTOPVAR : This is the name of the physical stored variable for the cube
    <cubename>COMPOSITE :     The name of the (usually compressed) composite that backs the PRT_TOPVAR variable when the cube is not partitioned.
    <cubename>PARTITIONTEMPLATE : The name of the partition template that backs the PRTTOPVAR variable in when the cube is partitioned
    <cubename>PRTMEASDIM : This is the name of an AW dimension that contains one member per base (i.e. not calculated) measure in the cube. It is used as a dimension to PRTTOPVAR for compressed cubes
    <cubename>PRTTOPFRML: This is the name of a formula that wraps the previous variable in an AGGREGATE function call. This is how the variable is linked to the AGGMAP in 10g.

  • AWM 10.2.0.1.0A does not show all items in Object View

    Hi All,
    Is there any known limitation in AWM for displaying items in object view? ( I did a search of the forum and couldn't find anything)
    I have imported and Express 6.3.4 Database, and found that AWM does not display all the programs in its list, however in OLAP Worksheet, LISTNAMES shows the program as present as per normal, and I am able to edit it.
    The program only has 175 lines, so I doubt it has something to do with buffer, however the one I know is missing, just so happens to be the last one in the LISTNAMES program list (alphabetically last)
    Regards,
    Imran

    There was a bug logged for this issue. Thanks

  • AWM Plugins and Object View

    I'm trying to create a java plugin for AWM that is only valid for items in Object view (eg Variables, Programs etc... all the primitive Express objects).
    According to the interface defined for AWMPlugin methods:
    void handle(Frame parent, Connection conn, String type, Object obj,
    AW aw, Map param);The 'type' and 'obj' represent either a String or an Object that is associated with the selected tree item, or null.
    My problem is that type and obj are always null when operating in Object view, but pass a non-null value in Model view .
    Has anyone encountered this? Does it mean the AWM plugin interface is only valid for the Model view?
    Does anyone know of a way to get a handle to something like a Variable or Program in Object view using the AWMPlugin interface?

    I am certainly not an expert on this but this would be my thoughts on this topic -
    AWM plugins are supposed to only work on model view since this view over the AW uses the public APIs called Standard Form. The Object view uses a non-public API which addresses the internal AW catalog (i.e. the NAME dimension). Therefore, it would not surprise me that the API you are calling returns NULL when you try to access non-Standard Form objects.
    I will try and contact one of the OLAP PM's this afternoon and get his opinion and let you know.
    Keith Laker
    Oracle EMEA Consulting
    BI Blog: http://oraclebi.blogspot.com/
    DM Blog: http://oracledmt.blogspot.com/
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN: http://www.oracle.com/technology/products/bi/
    BI Samples: http://www.oracle.com/technology/products/bi/samples/

  • Mapping Variables(Object View) to Measures(Model View)

    Hi,
    In my AW, I have created a cube, And then I have created a new variable in the object view and populated it using load programs. Now. when I try to create a measure in the model view of the same cube based on this variable, I cannot see any option for assigning a variable to a measure. Can someone please help me out in doing this?
    I need the measure in the model view, because it looks like, when I create a relational view, only the measures that are defined in the model are added to the view and not the variables available in the object model.
    Thanks,
    Bharat

    Hi Bharat,
    The mapping editor is used to map a measure to a relational data source. Therefore, unless you convert your data source used by your DML program to a relational table/view (if it is a text file you can use an external table to present the data to AWM as a relational table, or if it is an Excel spreadsheet and your database is on Windows you can use the heterogenous gateway service to load directly from Excel by exposing the Excel worksheet as a relational table) you will not be able to use the mapping editor.
    To assign an OLAP variable to an measure within a cube you will need to create a custom calculated measure. This will allow you to create a measure that "maps" to your OLAP DML program. There is an Excel utility on the OLAP OTN home page that allows you to create custom calculated measures (at the moment this feature is not AWM10gR2 - but is available within AWM 11g). Click here for more information:
    http://download.oracle.com/otn/java/olap/SpreadsheetCalcs_10203.zip
    My advice would be to try and convert your data source to a relational table/view and using the mapping editor. This will allow you to benefit from the many new features within OLAP cube storage such as compressed composites, data compression, paralled processing, partitioning and aggregation maps. Of course you can code all this manually but it is much easier to let AWM do all this for you via a few mouse clicks. Please note - that everything you build outside of the AWM model view has to be managed (defined, updated, backed up etc) by you rather AWM. So while there are lots of advantages of using OLAP DML, I personally always try to load data into my OLAP cubes using AWM mappings and save OLAP DML for providing the advanced types of analysis that make OLAP such an excellent calculation engine.
    Hope this helps
    Keith Laker
    Oracle Data Warehouse Product Management
    OLAP Blog: http://oracleOLAP.blogspot.com/
    OLAP Wiki: http://wiki.oracle.com/page/Oracle+OLAP+Option
    DM Blog: http://oracledmt.blogspot.com/
    OWB Blog : http://blogs.oracle.com/warehousebuilder/
    OWB Wiki : http://wiki.oracle.com/page/Oracle+Warehouse+Builder
    DW on OTN : http://www.oracle.com/technology/products/bi/db/11g/index.html

  • Help, can I declare an object using a variable name

    I need to make a bunch of objects using a for loop, so I was wanting to name the object one of the variables that I read. But I basically want to know if I can do this.
         private Software makeObject(String proName, int proStock, double proPrice,String objName){
              Software objName = new Software(proName,proStock,proPrice);
              return objName;
    I want to create a Software object using the objName inputted to it. The software object holds three fields as you can see. The name, num in stock, and price. However it won't let me do this, because it says objName is a duplicate variable. Help would be appreciated

    private Software makeObject(String proName, int proStock, double proPrice,String objName){
    Software objName = new Software(proName,proStock,proPrice);
    ... it won't let me do this, because it
    says objName is a duplicate variable. Help would be
    appreciatedWell, it is duplicate. Change the name of one or the other of those variable names.

  • How to share a bind variable across multiple view objects?

    Hi, Can someone tell me if it's possible to share a bind variable among multiple view objects within an application module? My web page displays data from different VOs on different regions. But all data should be controlled by the same bind variable, which appears in all queries. How can I achieve this?
    Please help.

    Best to state your JDev version, and technology stack (eg. ADF BC) when posting.
    I can think of 2 approaches.
    1) Create a parent VO based on SELECT :bindVar FROM dual, then create links between your other VOs and the parent
    2) Create a AM client interface method that programatically sets the bind variable in each VO.
    Can you specify your use case? This one tends to come up when discussing effective from/to dated queries.
    CM.

  • Variable name declared by using an object-------Where Used List

    Hi,
          Can anyone let me know how to find the variable names that are defined by using an object  like 'sflight' in all the reports, classes,funciton modules.
    For example
    in a report   'ZREPORT'  i have declared a variable data lt_sflight type table of sflight.
    and in other report 'ZREPORT1' i have declared as data lt_sfli type table of sflight.
    and i want to know the all the variable name that are declared by using sflight object say in all reports,FM'S and Classes
    Edited by: PEEDNAS on Feb 3, 2011 10:02 AM
    Edited by: PEEDNAS on Feb 3, 2011 10:08 AM

    Hi Sumodh,
                         Thanks for your information but
    the where used list internally uses 'RS_TOOL_ACCESS' FM for that FM if we give object type and object name then it gives some search results  and from there we can check the variables names manually directly but i want to get the list of variable names directly
    Regards,
    Sandeep

  • Assigning different variable name to objects to be stored in a collection

    sorry this may be a very silly and easy question - but i urgently need help.
    can a collection contain objects declared with the same variable name
    ie. what i'm trying to do is:-
    Abridgment varabridgment = null;
          int nRows = 0;
          while(resultSet.next()){
            nRows++;
    //the doggey code part - but what i'm trying to do is to create a new Abridgment object with a unique name so that it can be stored in the clooection object later as a unique entry based on the nRows counter???
    // is this possible or needed?     
          varabridgment = varabridgment +nRows;
          varabridgment = new Abridgment();
          varabridgment.seta_county(county);
          varabridgment.seta_year_date(Integer.parseInt(year));
          abridgeresults.addAbridgment(varabridgment); please i need an urget answer . thanks.

    Read the following thread for the solution to your problem:
    http://forum.java.sun.com/thread.jspa?threadID=634815

  • What's user variable name using Smart View POV function (ex:HypGetActiveMember)?

    Hi,
    We want to use Smart View POV function (ex:HypGetActiveMember) to get the active member of user variables from HFM forms selected into Excel, but we don't know the user variable name in the following paragraph of Smart View developer guide:
    "To uniquely identify the user variable, provide the user variable name rather than the dimension name."
    For example, what's the user variable name of Year dimension? How to get the user variable name?
    Any information would be appreciated. Thank you!

    Hi,
    I guess user variable name is set by users/developers. I am not very clear on your question. If you have defined some variables to select any members from a dimension then it will be in HFM only. In planning we have two kinds of variables User Variables (we set it from Planning Preferences) and Substitution variable (we set it from Essbase Consol in the backend). Without looking into your application it is difficult to say the user variable name. Like for Year the user variables can be "PreviousYear", "CurrentYear", or "NextYear" etc.
    Soumya

  • Using a variable in a view?

    I know that it may not be possible to use a variable within a view, but I'm wondering if there isn't a work-around? If there is a single value---pulled from another table---you wish to reuse in a view that does not use dynamic SQL, how do you do so? I've been toying around with WITH statements, but that's getting me nowhere. I'm using 11r2.
    BTW, please do not ask me the standard litany of angry-dba questions (why are you doing this? your database is f*****, RTFM, etc.), this is just for my own curiosity. :)
    Thank you
    Example for demo purposes only (I know it's not syntactically correct):
    variable var_value varchar2(30)
    begin
    select this_is_just_one_value
    int :var_value
    from tableX where column1 = 'BOB';
    end;
    select
    numerous_columns
    from tableY
    where
    column5 = :var_value;

    893968 wrote:
    BTW, please do not ask me the standard litany of angry-dba questions (why are you doing this? your database is f*****, RTFM, etc.), this is just for my own curiosity. :)Why are you doing this? your database is f*****! RTFM! Etc!! ;-)
    SQL is not a procedural language - so you cannot create a view for example that has a parameter signature. E.g. this is possible in a procedural language:
    declare
            cursor c( deptID number ) is
                    select * from emp where deptno = deptID;
    begin
            open c( 1234 ); --// open SQL cursor using a parameter/variable
            --// etc..
            close c;
    end;This is not possible using a SQL object like a view. As a view is not a procedure. So the same approach as the above using SQL (silly example, but do demonstrates the basics):
    // define
    create or replace view emp_view as select * from emp;
    // use
    select * from emp_view where deptno = 1234;The CBO is clever - and it will likely push such a predicate into the emp_view SQL statement.
    To parameterise such a view, is ugly. And should only be considered when dealing with issues such as security and data restrictions. A context is created - this can contain a number of name-values. The view can then use a name-value from the context. Oracle's data dictionary views use this approach.

  • How can i call another view variables in another view

    how can i call another view variables in another view and pass that variables to the function
    my situation is i have a view FAC which i need to pass par_id_fac TO THE VIEW AGR.AFTER THAT i what to take start_dt in agr view and par_id_fac from Fac and pass this variables to the function i have check the documentation but does not do what i what,the doc simply talk about creating variables and pass then to function.i what to pass variables from the views and return value to my contractno Variables value
    something like if :agr.contract_no is null
    and :agr.agr_start_dt is not null then
         :agr.contract_no := sms_fapp.get_contract_no(:fac.par_id_fac,:agr.agr_start_dt);
    end if;     
    y view is
    <?xml version="1.0" encoding="windows-1252" ?>
    <!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
    <!---->
    <ViewObject
      xmlns="http://xmlns.oracle.com/bc4j"
      Name="AGR"
      Version="11.1.2.60.81"
      BindingStyle="OracleName"
      CustomQuery="true"
      PageIterMode="Full"
      UseGlueCode="false"
      RowClass="sms1405.AGRRowImpl"
      ComponentClass="sms1405.AGRImpl"
      DefClass="sms1405.AGRDefImpl">
      <DesignTime>
        <Attr Name="_isExpertMode" Value="true"/>
        <Attr Name="_codeGenFlag2" Value="Access|Def|Coll|Prog|VarAccess"/>
        <Attr Name="_isCodegen" Value="true"/>
      </DesignTime>
    <SQLQuery><![CDATA[SELECT SmsAgreements.ID,
           SmsAgreements.FAPP_ID,
           SmsAgreements.PAR_ID,
           SmsAgreements.SSCH_ID,
           SmsAgreements.COSERV_ID,
           SmsAgreements.IREA_ID_TERMINATED,
           SmsAgreements.IREA_ID_SUSPENDED,
           SmsAgreements.SPTYP_ID,
           SmsAgreements.CLAIM_BASED_YN,
           SmsAgreements.NOTES,
           SmsAgreements.SUSPENSION_DT,
           SmsAgreements.TERMINATION_DT,
           SmsAgreements.SPECIAL_PROJECT_END_DT,
           SmsAgreements.CAPITAL_FUNDING_APPROVED,
           SmsAgreements.PERIODICAL_PAYMENT_AMOUNT,
           SmsAgreements.DATE_CREATED,
           SmsAgreements.DATE_MODIFIED,
           SmsAgreements.MODIFIED_BY,
           SmsAgreements.CREATED_BY,
           SmsAgreements.CONTRACT_NO,
           SmsAgreements.OFF_ID,
           SmsAgreements.DATE_APPROVED,
           SmsAgreements.AGR_START_DT,
           SmsAgreements.AGR_END_DT,
           SmsAgreements.MONTHS_FUNDED,
           SmsAgreements.PFRE_ANNUAL_FREQUENCY,
           SmsAgreements.FUNDED_NO,
           SmsAgreements.REGISTERED_NO,
           SmsAgreements.CONTRACT_NAME,
           SmsAgreements.OPEX_ALLOCATION,
           SmsAgreements.EMERG_ORG_YN,
           SmsAgreements.SCHEDULE,
           SmsAgreements.PERIODICAL_PAYMENT_AVERAGE,
           SmsAgreements.NO_OF_PAYMENTS,
           SmsAgreements.ADVANCE_PAYMENT_PERCENT,
           SmsAgreements.QUALIFY_NO,
           SmsAgreements.ENROLLED_NO,
           SmsAgreements.MULTI_YEAR_ALLOCATION,
           SmsAgreements.AGR_ID_SOURCE,
           SmsAgreements.FYEA_YEAR_ACTIVE,
           SmsAgreements.PTYPE_CODE,
           SmsAgreements.CONTRACT_VALUE,
           SmsAgreements.MAGR_ID,
           SmsAgreements.PROG_ID,
           SmsAgreements.EMERGENCY_BED_#,
           SmsAgreements.drep_id,
           SmsAgreements.srep_id,
           (select name from sms_offices off where off.id = SmsAgreements.off_id)officeName,
           (SELECT  PROG.NAME FROM   sms_programmes prog where PROG.ID = SMSAGREEMENTS.PROG_ID)programe,
           (select prog.code || '.' || bvspro.code || '  ' || bvspro.NAME budget_vote   from sms_subsidy_schemes ssch,
              sms_budget_vote_sub_programs bvspro,
              sms_programmes prog
              WHERE bvspro_id = bvspro.ID AND prog.ID = prog_id
              and prog.id = SMSAGREEMENTS.PROG_ID)Sub_programme,
             (select  ssch.NAME from sms_subsidy_schemes ssch where SSCH.ID = SMSAGREEMENTS.SSCH_ID)subsidy,
           (SELECT master_contract FROM  sms_master_agreements magr WHERE MAGR.ID = SmsAgreements.magr_id)masterContract
    FROM SMS_AGREEMENTS SmsAgreements]]></SQLQuery>
      <ViewAttribute
        Name="ContractNo"
        IsPersistent="false"
        IsNotNull="true"
        PrecisionRule="true"
        Precision="20"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="CONTRACT_NO"
        SQLType="VARCHAR">
        <TransientExpression><![CDATA[CONTRACT_NO]]></TransientExpression>
        <DesignTime>
          <Attr Name="_DisplaySize" Value="20"/>
        </DesignTime>
      </ViewAttribute>
    <ViewAttribute
        Name="AgrStartDt"
        IsPersistent="false"
        PrecisionRule="true"
        Type="java.sql.Timestamp"
        ColumnType="DATE"
        AliasName="AGR_START_DT"
        SQLType="DATE">
        <RecalcCondition><![CDATA[true]]></RecalcCondition>
        <TransientExpression><![CDATA[adf.currentDate]]></TransientExpression>
      </ViewAttribute>
    </ViewObject>and my FAC view is
    <?xml version="1.0" encoding="windows-1252" ?>
    <!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
    <!---->
    <ViewObject
      xmlns="http://xmlns.oracle.com/bc4j"
      Name="FAC"
      Version="11.1.2.60.81"
      BindingStyle="OracleName"
      CustomQuery="true"
      PageIterMode="Full"
      UseGlueCode="false">
      <DesignTime>
        <Attr Name="_isExpertMode" Value="true"/>
      </DesignTime>
      <SQLQuery><![CDATA[SELECT SmsFacilityVw.PAR_ID_ORG,
           SmsFacilityVw.ORGANISATION,
           SmsFacilityVw.ORG_KEY,
           SmsFacilityVw.C_CODE,
           SmsFacilityVw.FACILITY,
           SmsFacilityVw.PAR_ID_FAC,
           SmsFacilityVw.NPO_REGISTRATION_NO,
           SmsFacilityVw.ADDRESS,
           SmsFacilityVw.TELNR_WORK,
           SmsFacilityVw.ADDRESSLINE,
           SmsFacilityVw.Town,
           SmsFacilityVw.Suburb,
           SmsFacilityVw.PostalCode,
           SmsFacilityVw.DSD_REGION,
           SmsFacilityVw.SERVICE_DELIVERY_AREA,
           SmsFacilityVw.FAXNR,
           SmsFacilityVw.EMAIL,
           SmsFacilityVw.PAR_TYPE_DEF
    FROM SMS_FACILITY_VW SmsFacilityVw]]></SQLQuery>
      <ViewAttribute
        Name="ParIdOrg"
        IsUpdateable="false"
        IsPersistent="false"
        PrecisionRule="true"
        Precision="38"
        Scale="0"
        Type="java.math.BigInteger"
        ColumnType="NUMBER"
        AliasName="PAR_ID_ORG"
        Expression="PAR_ID_ORG"
        SQLType="NUMERIC"/>
      <ViewAttribute
        Name="Organisation"
        IsUpdateable="false"
        IsPersistent="false"
        PrecisionRule="true"
        Precision="100"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="ORGANISATION"
        Expression="ORGANISATION"
        SQLType="VARCHAR">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="100"/>
        </DesignTime>
      </ViewAttribute>
      <ViewAttribute
        Name="OrgKey"
        IsUpdateable="false"
        IsPersistent="false"
        PrecisionRule="true"
        Precision="10"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="ORG_KEY"
        Expression="ORG_KEY"
        SQLType="VARCHAR">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="10"/>
        </DesignTime>
      </ViewAttribute>
      <ViewAttribute
        Name="CCode"
        IsUpdateable="false"
        IsPersistent="false"
        PrecisionRule="true"
        Precision="30"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="C_CODE"
        Expression="C_CODE"
        SQLType="VARCHAR">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="30"/>
        </DesignTime>
      </ViewAttribute>
      <ViewAttribute
        Name="Facility"
        IsUpdateable="false"
        IsPersistent="false"
        PrecisionRule="true"
        Precision="100"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="FACILITY"
        Expression="FACILITY"
        SQLType="VARCHAR">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="100"/>
        </DesignTime>
      </ViewAttribute>
      <ViewAttribute
        Name="ParIdFac"
        IsUpdateable="false"
        IsPersistent="false"
        PrecisionRule="true"
        Precision="38"
        Scale="0"
        Type="java.math.BigInteger"
        ColumnType="NUMBER"
        AliasName="PAR_ID_FAC"
        Expression="PAR_ID_FAC"
        SQLType="NUMERIC"/>
      <ViewAttribute
        Name="NpoRegistrationNo"
        IsUpdateable="false"
        IsPersistent="false"
        PrecisionRule="true"
        Precision="30"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="NPO_REGISTRATION_NO"
        Expression="NPO_REGISTRATION_NO"
        SQLType="VARCHAR">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="30"/>
        </DesignTime>
      </ViewAttribute>
      <ViewAttribute
        Name="Address"
        IsUpdateable="false"
        IsPersistent="false"
        PrecisionRule="true"
        Precision="227"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="ADDRESS"
        Expression="ADDRESS"
        SQLType="VARCHAR">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="227"/>
        </DesignTime>
      </ViewAttribute>
      <ViewAttribute
        Name="TelnrWork"
        IsUpdateable="false"
        IsPersistent="false"
        PrecisionRule="true"
        Precision="150"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="TELNR_WORK"
        Expression="TELNR_WORK"
        SQLType="VARCHAR">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="150"/>
        </DesignTime>
      </ViewAttribute>
      <ViewAttribute
        Name="Addressline"
        IsPersistent="false"
        PrecisionRule="true"
        Precision="120"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="ADDRESSLINE"
        Expression="ADDRESSLINE"
        SQLType="VARCHAR"
        IsUpdateable="false">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="120"/>
        </DesignTime>
      </ViewAttribute>
      <ViewAttribute
        Name="Town"
        IsPersistent="false"
        PrecisionRule="true"
        Precision="60"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="TOWN"
        Expression="TOWN"
        SQLType="VARCHAR"
        IsUpdateable="false">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="60"/>
        </DesignTime>
      </ViewAttribute>
      <ViewAttribute
        Name="Suburb"
        IsPersistent="false"
        PrecisionRule="true"
        Precision="60"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="SUBURB"
        Expression="SUBURB"
        SQLType="VARCHAR"
        IsUpdateable="false">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="60"/>
        </DesignTime>
      </ViewAttribute>
      <ViewAttribute
        Name="Postalcode"
        IsPersistent="false"
        PrecisionRule="true"
        Precision="4"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="POSTALCODE"
        Expression="POSTALCODE"
        SQLType="VARCHAR"
        IsUpdateable="false">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="4"/>
        </DesignTime>
      </ViewAttribute>
      <ViewAttribute
        Name="DsdRegion"
        IsUpdateable="false"
        IsPersistent="false"
        PrecisionRule="true"
        Precision="40"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="DSD_REGION"
        Expression="DSD_REGION"
        SQLType="VARCHAR">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="40"/>
        </DesignTime>
      </ViewAttribute>
      <ViewAttribute
        Name="ServiceDeliveryArea"
        IsUpdateable="false"
        IsPersistent="false"
        PrecisionRule="true"
        Precision="50"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="SERVICE_DELIVERY_AREA"
        Expression="SERVICE_DELIVERY_AREA"
        SQLType="VARCHAR">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="50"/>
        </DesignTime>
      </ViewAttribute>
      <ViewAttribute
        Name="Faxnr"
        IsUpdateable="false"
        IsPersistent="false"
        PrecisionRule="true"
        Precision="50"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="FAXNR"
        Expression="FAXNR"
        SQLType="VARCHAR">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="50"/>
        </DesignTime>
      </ViewAttribute>
      <ViewAttribute
        Name="Email"
        IsUpdateable="false"
        IsPersistent="false"
        PrecisionRule="true"
        Precision="80"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="EMAIL"
        Expression="EMAIL"
        SQLType="VARCHAR">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="80"/>
        </DesignTime>
      </ViewAttribute>
      <ViewAttribute
        Name="ParTypeDef"
        IsUpdateable="false"
        IsPersistent="false"
        PrecisionRule="true"
        Precision="12"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="PAR_TYPE_DEF"
        Expression="PAR_TYPE_DEF"
        SQLType="VARCHAR">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="12"/>
        </DesignTime>
      </ViewAttribute>
      <ViewLinkAccessor
        Name="AGR"
        ViewLink="sms1405.par_facfkViewLink"
        Type="oracle.jbo.RowIterator"
        IsUpdateable="false"/>
      <ViewLinkAccessor
        Name="SmsParAddrVwView"
        ViewLink="sms1405.parLink"
        Type="oracle.jbo.RowIterator"
        IsUpdateable="false"/>
      <ViewLinkAccessor
        Name="DOC"
        ViewLink="sms1405.FAC_DOC"
        Type="oracle.jbo.RowIterator"
        IsUpdateable="false"/>
    </ViewObject>Edited by: ADF007 on 2012/08/23 6:10 PM

    i try this
    public class SMS_AGREEMENTSImpl extends EntityImpl {
    RowSet newContractNoBeforePost = null;
        public static int NUMBER = Types.NUMERIC;
        public static int DATE = Types.DATE;
        public static int VARCHAR2 = Types.VARCHAR;
      protected Object callStoredFunction(int sqlReturnType, String stmt,
            Object[] bindVars) {
            CallableStatement st = null;
            try {
            // 1. Create a JDBC CallabledStatement
            st = getDBTransaction().createCallableStatement(
            "begin ? := "+stmt+";end;",0);
            // 2. Register the first bind variable for the return value
            st.registerOutParameter(1, sqlReturnType);
            if (bindVars != null) {
            // 3. Loop over values for the bind variables passed in, if any
            for (int z = 0; z < bindVars.length; z++) {
            // 4. Set the value of user-supplied bind vars in the stmt
            st.setObject(z + 2, bindVars[z]);
            // 5. Set the value of user-supplied bind vars in the stmt
            st.executeUpdate();
            // 6. Return the value of the first bind variable
            return st.getObject(1);
            catch (SQLException e) {
            throw new JboException(e);
            finally {
            if (st != null) {
            try {
            // 7. Close the statement
            st.close();
            catch (SQLException e) {}
        protected void doDML(int operation, TransactionEvent e) {
           String amDef = "sms1405.sms1405Module";
           String config = "sms1405ModuleShared";
              String NewContract = null;                 
            ApplicationModule am = Configuration.createRootApplicationModule(amDef, config);
            ViewObjectImpl vo = (ViewObjectImpl) am.findViewObject("AGR1");
            vo.executeQuery();
            Row row = vo.first();
            // NewContract = (String)vo
            NewContract = (String)row.getAttribute("ContractNo");
            SMS_AGREEMENTSImpl newcont = new SMS_AGREEMENTSImpl();
           //AGRRowImpl res = new  AGRRowImpl();
           // NewContract = NewContractNo();
            if (operation == 1)  {
                         newcont.setContractNo(NewContractNo());
                         //res.setContractNo( NewContractNo());   
                        //NewContractNo();
            super.doDML(operation, e);
            public void postChanges(TransactionEvent TransactionEvent) {
            /* Only bother to update references if contractno is a NEW one */
            if (getPostState() == STATUS_NEW) {
            * Get a rowset of contract related
            * to this new partyaddress before calling super
             newContractNoBeforePost  = (RowSet)getSMS_AGREEMENTS();
            super.postChanges(TransactionEvent);
        public Date getAgrStartDt() {
            return (Date)getAttributeInternal(AGRSTARTDT);
         * Sets <code>value</code> as the attribute value for AgrStartDt.
         * @param value value to set the AgrStartDt
        public void setAgrStartDt(Date value) {
            setAttributeInternal(AGRSTARTDT, value);
        public String NewContractNo() {
               String amDef = "sms1405.sms1405Module";
               String config = "sms1405ModuleShared";
               String NewContract = null;                 
               ApplicationModule am = Configuration.createRootApplicationModule(amDef, config);
               ViewObjectImpl vo = (ViewObjectImpl) am.findViewObject("FAC1");
               // vo.setWhereClause("ParIdFac = 38844");
                vo.executeQuery();
                Row row = vo.first();
               Integer par_id = null;
               //oracle.jbo.domain.Date today = new oracle.jbo.domain.Date(oracle.jbo.domain.Date.getCurrentDate());
               oracle.jbo.domain.Date today = new oracle.jbo.domain.Date();
               //FACRowImpl res = new FACRowImpl();
               //res.setParIdFac(par_id);
               par_id = (Integer)row.getAttribute("ParIdFac");
               today = this.getAgrStartDt();
           return (String)callStoredFunction(VARCHAR2,
           "sms_fapp.get_contract_no(?,?)",
           new Object[]{par_id,today});
    }at the moment am geting this error
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null
         at oracle.adf.model.binding.DCBindingContainer.reportException(DCBindingContainer.java:415)
         at oracle.adf.model.binding.DCBindingContainer.reportException(DCBindingContainer.java:477)
         at oracle.adf.model.binding.DCControlBinding.reportException(DCControlBinding.java:201)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.reportException(JUCtrlActionBinding.java:2007)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1659)
         at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2169)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:731)
         at oracle.jbo.uicli.jui.JUActionBinding.actionPerformed(JUActionBinding.java:193)
         at oracle.jbo.uicli.controls.JUNavigationBar.doAction(JUNavigationBar.java:412)
         at oracle.jbo.jbotester.NavigationBar.doAction(NavigationBar.java:112)
         at oracle.jbo.uicli.controls.JUNavigationBar$NavButton.actionPerformed(JUNavigationBar.java:118)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
         at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
         at java.awt.Component.processMouseEvent(Component.java:6289)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
         at java.awt.Component.processEvent(Component.java:6054)
         at java.awt.Container.processEvent(Container.java:2041)
         at java.awt.Component.dispatchEventImpl(Component.java:4652)
         at java.awt.Container.dispatchEventImpl(Container.java:2099)
         at java.awt.Component.dispatchEvent(Component.java:4482)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
         at java.awt.Container.dispatchEventImpl(Container.java:2085)
         at java.awt.Window.dispatchEventImpl(Window.java:2478)
         at java.awt.Component.dispatchEvent(Component.java:4482)
         at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
         at java.awt.EventQueue.access$000(EventQueue.java:85)
         at java.awt.EventQueue$1.run(EventQueue.java:603)
         at java.awt.EventQueue$1.run(EventQueue.java:601)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
         at java.awt.EventQueue$2.run(EventQueue.java:617)
         at java.awt.EventQueue$2.run(EventQueue.java:615)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    Caused by: java.lang.NullPointerException
         at oracle.jbo.server.EntityImpl.getEntityCache(EntityImpl.java:4665)
         at oracle.jbo.server.EntityImpl.saveEventOrigTransAttrVals(EntityImpl.java:729)
         at oracle.jbo.server.EntityImpl.saveEventOrigAttrVals(EntityImpl.java:719)
         at oracle.jbo.server.EntityImpl.setAttributeInternal(EntityImpl.java:1935)
         at sms1405.SMS_AGREEMENTSImpl.setContractNo(SMS_AGREEMENTSImpl.java:998)
         at sms1405.SMS_AGREEMENTSImpl.doDML(SMS_AGREEMENTSImpl.java:1628)
         at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6751)
         at sms1405.SMS_AGREEMENTSImpl.postChanges(SMS_AGREEMENTSImpl.java:1645)
         at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3264)
         at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3067)
         at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2071)
         at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2352)
         at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1590)
         at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1415)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1428)
         ... 43 more
    ## Detail 0 ##
    java.lang.NullPointerException
         at oracle.jbo.server.EntityImpl.getEntityCache(EntityImpl.java:4665)
         at oracle.jbo.server.EntityImpl.saveEventOrigTransAttrVals(EntityImpl.java:729)
         at oracle.jbo.server.EntityImpl.saveEventOrigAttrVals(EntityImpl.java:719)
         at oracle.jbo.server.EntityImpl.setAttributeInternal(EntityImpl.java:1935)
         at sms1405.SMS_AGREEMENTSImpl.setContractNo(SMS_AGREEMENTSImpl.java:998)
         at sms1405.SMS_AGREEMENTSImpl.doDML(SMS_AGREEMENTSImpl.java:1628)
         at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6751)
         at sms1405.SMS_AGREEMENTSImpl.postChanges(SMS_AGREEMENTSImpl.java:1645)
         at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3264)
         at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3067)
         at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2071)
         at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2352)
         at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1590)
         at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1415)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1428)
         at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2169)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:731)
         at oracle.jbo.uicli.jui.JUActionBinding.actionPerformed(JUActionBinding.java:193)
         at oracle.jbo.uicli.controls.JUNavigationBar.doAction(JUNavigationBar.java:412)
         at oracle.jbo.jbotester.NavigationBar.doAction(NavigationBar.java:112)
         at oracle.jbo.uicli.controls.JUNavigationBar$NavButton.actionPerformed(JUNavigationBar.java:118)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
         at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
         at java.awt.Component.processMouseEvent(Component.java:6289)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
         at java.awt.Component.processEvent(Component.java:6054)
         at java.awt.Container.processEvent(Container.java:2041)
         at java.awt.Component.dispatchEventImpl(Component.java:4652)
         at java.awt.Container.dispatchEventImpl(Container.java:2099)
         at java.awt.Component.dispatchEvent(Component.java:4482)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
         at java.awt.Container.dispatchEventImpl(Container.java:2085)
         at java.awt.Window.dispatchEventImpl(Window.java:2478)
         at java.awt.Component.dispatchEvent(Component.java:4482)
         at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
         at java.awt.EventQueue.access$000(EventQueue.java:85)
         at java.awt.EventQueue$1.run(EventQueue.java:603)
         at java.awt.EventQueue$1.run(EventQueue.java:601)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
         at java.awt.EventQueue$2.run(EventQueue.java:617)
         at java.awt.EventQueue$2.run(EventQueue.java:615)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

  • AWM Action BUILDDATABASE failed on object

    Hi all,
    I am running into a problem when i try to maintain any dimension or cube in Analytic Workspace Manager(version 11.2.0.3.0). I get the following error.
    oracle.AWXML.AWException: Action BUILDDATABASE failed on object RRR_DWH_OWNER.TEST
    at oracle.AWAction.BuildDatabase.Execute(Unknown Source)
    at oracle.olap.awm.wizard.awbuild.BuildWizardHelper$1.construct(BuildWizardHelper.java:167)
    at oracle.olap.awm.ui.SwingWorker$2.run(SwingWorker.java:109)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: oracle.AWXML.AWException: ***Error Occured: Error Validating Dimension Mappings PRODUCTS.DIMENSION. Key Expression RRR_DWH_OWNER.RRR_PRODUCTS.ID for Mapping Group PRODUCTS.PRODUCTS_HIERARCHY.PRODUCT.MAPGROUP1.DIMENSIONMAPGROUP, Level PRODUCTS.PRODUCT.LEVEL, Hierarchy PRODUCTS.PRODUCTS_HIERARCHY.HIERARCHY is Incorrectly Mapped to RDBMS.
    +... 4 more+
    I tried everything but couldn't resolve it.
    Kindly help here.

    In AWM, open up the cube. Click on + sign next to cube.
    Under that you will see five nodes:
    Measures
    Calculated Measures
    Mappings
    Views
    Cube Scripts
    Click on the 'Mappings'
    In the right-window, you will see the mappings and under that there are three buttons:
    Show SQL
    Apply
    Revert
    Click on 'Show SQL' button to see the sql.
    Cut/paste the sql into SQL*developer and see if you can execute it.

  • 2.1 RC1 - Can not get data in Object viewer

    Hi,
    I open the table and change the tab to "Data" then error message is shown in the Data Editor Log panel.
    The message is "ORA-00923: FROM keyword not found where expected".
    This table has more than 100 columns. I guess that the SQL statement is too long so whole statement is not send to Oracle.
    EA2 work successfully.

    Hi,
    RaghvendraSaboo
    SELECT command is working in worksheet both 'select * from table' and 'select col1, co2,... from table'.
    Only object viewer can not show values.
    Here is the result of DESC command below.
    Thanks.
    desc ching1;
    Name Null Type
    CH-1 NOT NULL CHAR(6)
    CH-2 NVARCHAR2(16)
    CH-3 CHAR(1)
    CH-4Z CHAR(1)
    CH-4B CHAR(1)
    CH-4K CHAR(1)
    CH-5 CHAR(1)
    CH-6Z CHAR(1)
    CH-6B CHAR(1)
    CH-6K CHAR(1)
    CH-7 NUMBER(1)
    CH-8 NUMBER(1)
    CH-9 CHAR(1)
    CH-11 NUMBER(1)
    CH-12 NUMBER(7)
    CH-13 NUMBER(7)
    CH-14 CHAR(1)
    CH-15 CHAR(1)
    CH-16 NUMBER(2)
    CH-17 CHAR(1)
    CH-18 CHAR(1)
    CH-19 NUMBER(7)
    CH-20 NUMBER(7)
    CH-21 CHAR(1)
    CH-22 CHAR(1)
    CH-23 NUMBER(2)
    CH-24 CHAR(1)
    CH-25 CHAR(1)
    CH-26 CHAR(1)
    CH-27 CHAR(1)
    CH-28 CHAR(1)
    CH-30 CHAR(1)
    CH-31 CHAR(1)
    CH-32 CHAR(1)
    CH-33 CHAR(1)
    CH-34 NUMBER(3)
    CH-ER CHAR(1)
    CH-48 NUMBER(6)
    CH-49 CHAR(1)
    CH-50 NUMBER(6)
    CH-51 NUMBER(6)
    CH-60 NUMBER(1)
    CH-61 NUMBER(1)
    CH-62 NUMBER(1)
    CH-63 NUMBER(1)
    CH-64 NUMBER(1)
    CH-65 NUMBER(1)
    CH-66 NUMBER(1)
    CH-67 NUMBER(1)
    CH-68 NUMBER(1)
    CH-69 NUMBER(1)
    CH-73 NUMBER(1)
    CH-74 NUMBER(1)
    CH-75 NUMBER(1)
    CH-76 NUMBER(1)
    CH-79 NUMBER(3,2)
    CH-80 NUMBER(4)
    CH-81 NUMBER(4)
    CH-82 NUMBER(5)
    CH-83 NUMBER(5)
    CH-84 NUMBER(1)
    CH-85 NUMBER(5)
    CH-86 NUMBER(5)
    CH-87 NUMBER(5)
    CH-88 NUMBER(2)
    CH-91 NUMBER(1)
    CH-92 CHAR(1)
    CH-93 CHAR(1)
    CH-94 NUMBER(1)
    CH-95 NUMBER(1)
    CH-96 CHAR(1)
    CH-97 CHAR(1)
    CH-98 NUMBER(1)
    CH-99 NUMBER(6)
    CH-100 NUMBER(3,2)
    CH-101 NUMBER(7)
    CH-102 NUMBER(6)
    CH-103 NUMBER(6)
    CH-104 NUMBER(6)
    CH-105 NUMBER(6)
    CH-106 NUMBER(5)
    CH-107 NUMBER(6)
    CH-108 NUMBER(6)
    CH-109 NUMBER(6)
    CH-110 NUMBER(7)
    CH-111 NUMBER(7)
    CH-112 NUMBER(6)
    CH-113 NUMBER(6)
    CH-114 NUMBER(5)
    CH-120 NUMBER(6)
    CH-121 NUMBER(6)
    CH-130 NUMBER(5)
    CH-131 NUMBER(6)
    CH-132 NUMBER(6)
    CH-133 NUMBER(6)
    CH-134 NUMBER(6)
    CH-135 NUMBER(6)
    CH-136 NUMBER(6)
    CH-137 NUMBER(6)
    CH-138 NUMBER(6)
    CH-139 NUMBER(6)
    CH-140 NUMBER(6)
    CH-141 NUMBER(6)
    CH-142 NUMBER(6)
    CH-143 NUMBER(6)
    CH-144 NUMBER(5)
    CH-145 NUMBER(5)
    CH-146 NUMBER(5)
    CH-147 NUMBER(6)
    CH-148 NUMBER(5)
    CH-149 NUMBER(5)
    CH-150 NUMBER(6)
    CH-151 NUMBER(6)
    CH-152 NUMBER(6)
    CH-153 NUMBER(6)
    CH-154 NUMBER(6)
    CH-155 NUMBER(6)
    CH-156 NUMBER(6)
    CH-157 NUMBER(6)
    CH-160 NUMBER(7)
    CH-170 NUMBER(6)
    CH-171 NUMBER(5)
    CH-180 NUMBER(6)
    CH-190 NUMBER(7)
    CH-191 NUMBER(7)
    CH-200 NUMBER(3)
    CH-201 NUMBER(6)
    CH-202 NUMBER(6)
    CH-203 NUMBER(6)
    CH-204 NUMBER(6)
    CH-205 NUMBER(6)
    CH-206 NUMBER(6)
    CH-207 NUMBER(6)
    CH-208 NUMBER(6)
    CH-209 NUMBER(6)
    CH-210 NUMBER(6)
    CH-211 NUMBER(6)
    CH-212 NUMBER(6)
    CH-213 NUMBER(6)
    CH-214 NUMBER(6)
    CH-215 NUMBER(6)
    CH-216 NUMBER(6)
    CH-220 NUMBER(6)
    CH-221 NUMBER(6)
    CH-222 NUMBER(6)
    CH-223 NUMBER(6)
    CH-224 NUMBER(6)
    CH-225 NUMBER(6)
    CH-230 NUMBER(2)
    CH-231 NUMBER(5)
    CH-240 NUMBER(6)
    CH-241 NUMBER(6)
    CH-242 NUMBER(6)
    CH-243 NUMBER(6)
    CH-244 NUMBER(6)
    CH-280 NUMBER(6)
    CH-290 NUMBER(7)
    CH-300 NUMBER(6)
    CH-301 NUMBER(6)
    CH-302 NUMBER(6)
    CH-303 NUMBER(6)
    CH-304 NUMBER(1)
    CH-305 NUMBER(5)
    CH-306 NUMBER(1)
    CH-307 NUMBER(6)
    CH-308 NUMBER(6)
    CH-309 NUMBER(3)
    CH-310 NUMBER(6)
    CH-311 NUMBER(6)
    CH-312 NUMBER(6)
    CH-313 NUMBER(6)
    CH-314 NUMBER(6)
    CH-315 NUMBER(1)
    CH-316 NUMBER(5)
    CH-317 NUMBER(5)
    CH-318 NUMBER(5)
    CH-319 NUMBER(1)
    CH-320 NUMBER(5)
    CH-321 NUMBER(5)
    CH-322 NUMBER(5)
    CH-323 NUMBER(5)
    CH-324 NUMBER(6)
    CH-325 NUMBER(6)
    CH-326 NUMBER(6)
    CH-327 NUMBER(6)
    CH-328 NUMBER(6)
    CH-329 NUMBER(5)
    CH-330 NUMBER(5)
    CH-331 NUMBER(5)
    CH-332 NUMBER(6)
    CH-333 NUMBER(6)
    CH-334 NUMBER(5)
    CH-335 NUMBER(6)
    CH-336 NUMBER(6)
    CH-337 NUMBER(5)
    CH-338 NUMBER(5)
    CH-339 NUMBER(3)
    CH-340 NUMBER(6)
    CH-341 NUMBER(6)
    CH-342 NUMBER(6)
    CH-343 NUMBER(6)
    CH-344 NUMBER(6)
    CH-345 NUMBER(6)
    CH-346 NUMBER(6)
    CH-347 NUMBER(6)
    CH-348 NUMBER(6)
    CH-349 NUMBER(6)
    CH-350 NUMBER(6)
    CH-351 NUMBER(6)
    CH-352 NUMBER(6)
    CH-353 NUMBER(6)
    CH-354 NUMBER(6)
    CH-355 NUMBER(5)
    CH-356 NUMBER(5)
    CH-357 NUMBER(6)
    CH-358 NUMBER(6)
    CH-359 NUMBER(6)
    CH-360 NUMBER(6)
    CH-361 NUMBER(6)
    CH-362 NUMBER(6)
    CH-363 NUMBER(5)
    CH-364 NUMBER(5)
    CH-365 NUMBER(5)
    CH-366 NUMBER(5)
    CH-367 NUMBER(5)
    CH-368 NUMBER(5)
    CH-369 NUMBER(7)
    CH-370 NUMBER(7)
    CH-371 NUMBER(7)
    CH-372 NUMBER(7)
    CH-373 NUMBER(6)
    CH-374 NUMBER(6)
    CH-375 NUMBER(6)
    CH-380 NUMBER(6)
    CH-381 NUMBER(6)
    CH-382 NUMBER(6)
    CH-383 NUMBER(6)
    CH-384 NUMBER(6)
    CH-385 NUMBER(6)
    CH-386 NUMBER(6)
    CH-387 NUMBER(6)
    CH-388 NUMBER(6)
    CH-389 NUMBER(6)
    CH-390 NUMBER(5)
    CH-391 NUMBER(5)
    CH-392 NUMBER(5)
    CH-393 NUMBER(5)
    CH-394 NUMBER(6)
    CH-400 NUMBER(5)
    CH-401 NUMBER(4)
    CH-402 NUMBER(5)
    CH-403 NUMBER(5)
    CH-404 NUMBER(5)
    CH-405 NUMBER(5)
    CH-406 NUMBER(6)
    CH-407 NUMBER(6)
    CH-408 NUMBER(6)
    CH-409 NUMBER(6)
    CH-410 NUMBER(6)
    CH-411 NUMBER(6)
    CH-412 NUMBER(6)
    CH-413 NUMBER(6)
    CH-414 NUMBER(5)
    CH-415 NUMBER(6)
    CH-416 NUMBER(6)
    CH-417 NUMBER(6)
    CH-418 NUMBER(6)
    CH-419 NUMBER(6)
    CH-420 NUMBER(5)
    CH-421 NUMBER(5)
    CH-422 NUMBER(5)
    CH-423 NUMBER(5)
    CH-424 NUMBER(5)
    CH-425 NUMBER(5)
    CH-426 NUMBER(5)
    CH-427 NUMBER(6)
    CH-480 NUMBER(6)
    CH-490 NUMBER(6)
    CH-491 NUMBER(6)
    CH-500 NUMBER(6)
    CH-501 NUMBER(6)
    CH-502 NUMBER(6)
    CH-503 NUMBER(6)
    CH-504 NUMBER(6)
    CH-505 NUMBER(6)
    CH-506 NUMBER(6)
    CH-507 NUMBER(6)
    CH-508 NUMBER(6)
    CH-509 NUMBER(7)
    CH-510 NUMBER(7)
    CH-511 NUMBER(7)
    CH-512 NUMBER(7)
    CH-513 NUMBER(1)
    CH-514 NUMBER(1)
    CH-515 NUMBER(7)
    CH-516 NUMBER(7)
    CH-517 NUMBER(7)
    CH-518 NUMBER(7)
    CH-519 NUMBER(3)
    CH-520 NUMBER(7)
    CH-530 NUMBER(7)
    CH-531 NUMBER(7)
    CH-580 NUMBER(7)
    CH-590 NUMBER(6)
    CH-591 NUMBER(6)
    CH-600 NUMBER(4,1)
    CH-601 NUMBER(4,1)
    CH-602 NUMBER(4,1)
    CH-603 NUMBER(4,1)
    CH-604 NUMBER(4,1)
    CH-605 NUMBER(6,3)
    CH-606 NUMBER(4,1)
    CH-607 NUMBER(4,1)
    CH-608 NUMBER(2)
    CH-609 NUMBER(2)
    CH-610 NUMBER(2)
    CH-611 NUMBER(2)
    CH-612 NUMBER(2)
    CH-613 NUMBER(2)
    CH-614 NUMBER(2)
    CH-615 NUMBER(2)
    CH-616 NUMBER(2)
    CH-617 NUMBER(2)
    CH-618 NUMBER(2)
    CH-619 NUMBER(2)
    CH-620 NUMBER(2)
    CH-621 NUMBER(2)
    CH-622 NUMBER(2)
    CH-623 NUMBER(2)
    CH-624 NUMBER(2)
    CH-625 NUMBER(2)
    CH-626 NUMBER(2)
    CH-627 NUMBER(2)
    CH-628 NUMBER(3,1)
    CH-629 NUMBER(2)
    CH-630 NUMBER(2)
    CH-631 NUMBER(1)
    CH-632 NUMBER(1)
    CH-633 NUMBER(2)
    CH-634 NUMBER(4,1)
    CH-635 NUMBER(2)
    CH-636 NUMBER(4,1)
    CH-637 NUMBER(1)
    CH-638 NUMBER(2)
    CH-639 NUMBER(2)
    CH-640 NUMBER(4)
    CH-641 NUMBER(2)
    CH-642 NUMBER(2)
    CH-643 NUMBER(2)
    CH-644 NUMBER(2)
    CH-645 NUMBER(1)
    CH-646 NUMBER(2)
    CH-647 NUMBER(4,1)
    CH-648 NUMBER(1)
    CH-649 NUMBER(1)
    CH-650 NUMBER(2)
    CH-651 NUMBER(2)
    CH-660 NUMBER(4,1)
    CH-661 NUMBER(6,3)
    CH-662 NUMBER(4,1)
    CH-663 NUMBER(4,1)
    CH-664 NUMBER(4,1)
    CH-665 NUMBER(3,1)
    CH-666 NUMBER(2)
    CH-669 NUMBER(4,1)
    CH-670 NUMBER(6)
    CH-671 NUMBER(2)
    CH-672 NUMBER(2)
    CH-673 NUMBER(2)
    CH-674 NUMBER(2)
    CH-680 NUMBER(1)
    CH-681 NUMBER(4,1)
    CH-682 NUMBER(1)
    CH-683 NUMBER(4,1)
    CH-684 NUMBER(1)
    CH-685 NUMBER(4,1)
    CH-686 NUMBER(1)
    CH-687 NUMBER(4,1)
    CH-688 NUMBER(1)
    CH-689 NUMBER(4,1)
    CH-690 NUMBER(1)
    CH-691 NUMBER(4,1)
    CH-700 NUMBER(6)
    CH-701 CHAR(3)
    CH-702 CHAR(2)
    CH-703 NUMBER(7)
    CH-704 NUMBER(8)
    CH-705 NUMBER(8)
    CH-710 NUMBER(1)
    CH-711 NUMBER(4)
    CH-712 NUMBER(4)
    CH-720 NUMBER(5,2)
    CH-721 NUMBER(2)
    CH-750 NUMBER(8)
    CH-751 NUMBER(7)
    CH-752 NUMBER(7)
    CH-800 NUMBER(4)
    CH-801 NUMBER(4)
    CH-802 NUMBER(4)
    CH-803 NUMBER(6)
    CH-804 NUMBER(6)
    CH-811 NUMBER(4)
    CH-812 NUMBER(4)
    CH-813 NUMBER(6)
    CH-814 NUMBER(6)

  • Same variable name causes major issues.....

    I would like to get some input and possible direction on the issue below... I am new to PL/SQL. Thanks in advance.....
    ..... The system is in the middle of processing a “For” step, i.e. a given “For” step is incomplete.
    ..... The script instructs the system to process a second “For” step with the same “for-loop variable” as the incomplete “For” step.
    When the above takes place, the system processes the second “For” step incorrectly. Instead of starting at the first value in the second “For” step’s list of values, the system begins in the middle of the value list.
    I need to change the current implementation so that if a "For" loop is encountered that has the same “loop variable” as a “For” loop already being executed, the “state” of the previous “For” step is discarded, and the state for the new “For” step is initialized to the first value in its list.
    -- Used for "for" steps
    TYPE for_list is table of varchar2(4000) index by binary_integer;
    TYPE for_loop_state is record (
    list for_list,
    next_index integer
    TYPE for_loops_list is table of for_loop_state index by steps.output_param%TYPE;
    all_for_loops for_loops_list;
    procedure for_step(list_string IN varchar2, ret_var_name IN varchar2, end_for_label IN varchar2) is
    state for_loop_state;
    end_idx number;
    list_value varchar2(4000);
    begin
    pkg_util.log('ret_var_name value after begin: ' || ret_var_name, 'I');
    -- get the current for list state, based on its output variable name
    if all_for_loops.exists(ret_var_name) then
    state := all_for_loops(ret_var_name);
    else
    state.next_index := 0;
    list_value := parse_next_param(list_string, 1, end_idx);
    -- end_idx is thrown away; for loops only have 1 input parameter (the list)
    state.list := get_for_list(list_value);
    all_for_loops(ret_var_name) := state;
    end if;
    if state.next_index < state.list.count then
    pkg_session_values.put(ret_var_name, state.list(state.next_index));
    all_for_loops(ret_var_name).next_index := state.next_index + 1;
    else
    all_for_loops.delete(ret_var_name);
    jump(end_for_label);
    end if;
    end;

    There is so much of your code hidden from view it is impossible to tell you anything other than perhaps suggest a methodology.
    Create a single variable with a known value and use dbms_output to view it as it steps through each piece of the puzzle. Determine when the value does something you don't want.

Maybe you are looking for