Syntax to create the Type of registration at the schema level.

Hello

Could you let me know the syntax to create the type of registration at the schema level.

I tried to help below.

create or replace

TYPE "SR_TBL_TYPE" AS THE SR_REC_TYPE TABLE;

----------------------------------------------------------------------------------------------------------------

create or replace

BODY OF TYPE 'SR_REC_TYPE' AS

CONSTRUCTOR FUNCTION SR_REC_TYPE RETURN SELF AS RESULT

IS

BEGIN

task_status: = NULL; -jtf_task_statuses_tl. Name % type

task_type: = NULL; -jtf_task_types_tl. Name % type

jt_new_res_id: = NULL; --jtf_task_assignments_audit_b.new_resource_id%type

jt_source_name: = NULL; --jtf_rs_resource_extns.source_name%type

jt_sch_start_date: = NULL; -VARCHAR2 (50)

jt_task_number: = NULL; --jtf_tasks_b.task_number%type

jt_appointment_scheduled_agent: = NULL; --fnd_user.user_name%type

cs_old_prblm_code: = NULL; --cs_incidents_audit_b.old_problem_code%type

cs_problem_code: = NULL; --cs_incidents_audit_b.problem_code%type

qa_scenario_estimate_rec: = qa_scenario_est_type();

qa_recall_rec: = qa_recall_type();

RETURN;

END SR_REC_TYPE;

PROCEDURE of MEMBER log_sr_rec_values (SELF IN SR_REC_TYPE)

IS

BEGIN

NULL;

END log_sr_rec_values;

END;

Thank you

Could you let me know the syntax to create the type of registration at the schema level.

You do not have - record types are PL/SQL. In SQL, you create OBJECT types. It works for me:

create or replace TYPE AS OBJECT SR_REC_TYPE)
task_status varchar2(1),--jtf_task_statuses_tl.name%TYPE
task_type varchar2(1),--jtf_task_types_tl.name%TYPE
jt_new_res_id varchar2(1),--jtf_task_assignments_audit_b.new_resource_id%TYPE
jt_source_name varchar2(1),--jtf_rs_resource_extns.source_name%TYPE
qa_scenario_estimate_rec emp_table_type,
qa_recall_rec emp_table_type,
CONSTRUCTOR FUNCTION SR_REC_TYPE RETURN SELF AS RESULT
)
/

create or replace TYPE of BODY SR_REC_TYPE AS
CONSTRUCTOR FUNCTION SR_REC_TYPE RETURN SELF AS A RESULT
BEGIN
Self.task_status: = null;


Self.task_type: = null;
Self.jt_new_res_id: = null;
Self.jt_source_name: = null;
Self.qa_scenario_estimate_rec: = emp_table_type();
Self.qa_recall_rec: = emp_table_type();
return;
END;
END;
/

create or replace TYPE SR_TBL_TYPE AS TABLE OF SR_REC_TYPE;

See 'Definition and Implementing User-Defined constructors' in the object-relational doc

http://docs.Oracle.com/CD/B28359_01/AppDev.111/b28371/adobjadv.htm#sthref751

Tags: Database

Similar Questions

  • ODI-40837 ERROR: an error occurred when creating the schema

    Hi I'm testing a file xml server and receive the following error message.

    ODI-40837 ERROR: an error occurred when creating the schema: ODI-40738: SAXException has been surprised by reading the model saying: expected 'DOCTYPE '.


    JDBC URL jdbc:snps:xml?f=C:/Projects/prd.xml & ro = true & DOD = YES

    could someone help because I can not find any blog or documentation on this error?

    Thank you

    Published by: user626688 on May 31, 2013 13:26

    There seems to be a problem with your xml file. Please work with channel support to investigate this issue.
    You can also view the details of settings xml driver to http://docs.oracle.com/cd/E28280_01/integrate.1111/e12644/appendix_xml_driver.htm#CHDECBHH

  • User created the schema

    I create a new user and the schema not created with it? Someone has an idea of what could go wrong?

    I created it using the create command manually initially, when I saw that the schema has not been created, I abandoned the user using control of the company and then recreated the user using the tool itself... always the schema has not created...

    Please help someone

    What version of Enterprise Manager?

    I know that the old version of thick client Java had 'Plan' in a tree control and displays only the schemas not located below vacuum. I am far from an expert on the web version. I don't remember coming across anything in the web client that was explicitly a list of 'patterns' as opposed to 'users '. So, it's quite possible that this is something that depends on the version of Enterprise Manager as well.

    Justin

  • Moving all the newspapers and Materialized View at the schema level using the data pump in

    Hi Experts,

    Please help me on how I can exp/imp all materialized views andMV logs (as are some MVs) only the full scheme of other databases. I want to exclude everything else.

    Concerning
    -Samar-

    Using DBMS_METADATA. Create the following SQL script:

    SET FEEDBACK OFF
    SET SERVEROUTPUT ON FORMAT WORD_WRAPPED
    SET TERMOUT OFF
    SPOOL C:\TEMP\MVIEW.SQL
    DECLARE
        CURSOR V_MLOG_CUR
          IS
            SELECT  DBMS_METADATA.GET_DDL('MATERIALIZED_VIEW_LOG',LOG_TABLE) DDL
              FROM  USER_MVIEW_LOGS;
        CURSOR V_MVIEW_CUR
          IS
            SELECT  DBMS_METADATA.GET_DDL('MATERIALIZED_VIEW',MVIEW_NAME) DDL
              FROM  USER_MVIEWS;
    BEGIN
        DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'SQLTERMINATOR',TRUE);
        FOR V_REC IN V_MLOG_CUR LOOP
          DBMS_OUTPUT.PUT_LINE(V_REC.DDL);
        END LOOP;
        FOR V_REC IN V_MVIEW_CUR LOOP
          DBMS_OUTPUT.PUT_LINE(V_REC.DDL);
        END LOOP;
    END;
    /
    SPOOL OFF
    

    In my case the script is saved as C:\TEMP\MVIEW_GEN. SQL. Now I will create a journal mview and mview in schema SCOTT and run the script above:

    SQL> CREATE MATERIALIZED VIEW LOG ON EMP
      2  /
    
    Materialized view log created.
    
    SQL> CREATE MATERIALIZED VIEW EMP_MV
      2  AS SELECT * FROM EMP
      3  /
    
    Materialized view created.
    
    SQL> @C:\TEMP\MVIEW_GEN
    SQL> 
    

    Run the C:\TEMP\MVIEW_GEN script. SQL generated a C:\TEMP\MVIEW queue. SQL:

      CREATE MATERIALIZED VIEW LOG ON "SCOTT"."EMP"
     PCTFREE 10 PCTUSED 30 INITRANS
    1 MAXTRANS 255 LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1
    MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL
    DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
      TABLESPACE "USERS" 
    
    WITH PRIMARY KEY EXCLUDING NEW VALUES;
    
      CREATE MATERIALIZED VIEW "SCOTT"."EMP_MV" ("EMPNO", "ENAME", "JOB", "MGR",
    "HIREDATE", "SAL", "COMM", "DEPTNO")
      ORGANIZATION HEAP PCTFREE 10 PCTUSED 40
    INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576
    MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
    BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
      TABLESPACE
    "USERS"
      BUILD IMMEDIATE
      USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 
    
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE
    DEFAULT CELL_FLASH_CACHE DEFAULT)
      TABLESPACE "USERS"
      REFRESH FORCE ON
    DEMAND
      WITH PRIMARY KEY USING DEFAULT LOCAL ROLLBACK SEGMENT
      USING ENFORCED
    CONSTRAINTS DISABLE QUERY REWRITE
      AS SELECT "EMP"."EMPNO"
    "EMPNO","EMP"."ENAME" "ENAME","EMP"."JOB" "JOB","EMP"."MGR"
    "MGR","EMP"."HIREDATE" "HIREDATE","EMP"."SAL" "SAL","EMP"."COMM"
    "COMM","EMP"."DEPTNO" "DEPTNO" FROM "EMP" "EMP";
                                   
    

    Now, you can run this on the database. You may need to adjust the tablespace and storage clauses. Or you can add more DBMS_METADATA. SET_TRANSFORM_PARAM calls to C:\TEMP\MVIEW_GEN. SQL to force DBMS_METADATA not to include the tablespace or / and the terms of storage.

    SY.

  • Syntax to create the view with 2 inline tables

    Hello

    If I run this SQL, I can compile a view without error:

    CREATE OR REPLACE FORCE VIEW APPS.XX_TEST
    (
        period_name
      , ytd
    )
    AS
    with tbl_data AS
    (
    SELECT '1314-03:OCT' period_name, -100 YTD FROM DUAL UNION ALL
    SELECT '1314-03:OCT' period_name, -1250 YTD FROM DUAL UNION ALL
    SELECT '1314-03:OCT' period_name, 10922 YTD FROM DUAL UNION ALL
    SELECT '1314-02:SEP' period_name, -100 YTD FROM DUAL UNION ALL
    SELECT '1314-01:AUG' period_name, 0 YTD FROM DUAL UNION ALL
    SELECT '1314-00:OBL' period_name, 0 YTD FROM DUAL UNION ALL
    SELECT '1213-14:CBL' period_name, -350 YTD FROM DUAL UNION ALL
    SELECT '1213-13:ADJ' period_name, -350 YTD FROM DUAL UNION ALL
    SELECT '1213-12:JUL' period_name, -100 YTD FROM DUAL
    )    SELECT  period_name
               , ytd
            FROM tbl_data;
    

    I need to create a view that includes the 2 tables inline (sorry if this is the incorrect terminology), using this SQL:

    CREATE OR REPLACE FORCE VIEW APPS.XX_TEST2
    (
        period_name
      , ytd
    )
    AS
    with tbl_data AS
    (
    SELECT '1314-03:OCT' period_name, -100 YTD FROM DUAL UNION ALL
    SELECT '1314-03:OCT' period_name, -1250 YTD FROM DUAL UNION ALL
    SELECT '1314-03:OCT' period_name, 10922 YTD FROM DUAL UNION ALL
    SELECT '1314-02:SEP' period_name, -100 YTD FROM DUAL UNION ALL
    SELECT '1314-01:AUG' period_name, 0 YTD FROM DUAL UNION ALL
    SELECT '1314-00:OBL' period_name, 0 YTD FROM DUAL UNION ALL
    SELECT '1213-14:CBL' period_name, -350 YTD FROM DUAL UNION ALL
    SELECT '1213-13:ADJ' period_name, -350 YTD FROM DUAL UNION ALL
    SELECT '1213-12:JUL' period_name, -100 YTD FROM DUAL
    ), got_analytics AS
        (
            SELECT  
                period_name,
                ytd,
                ROW_NUMBER () OVER (ORDER BY  period_name)  AS a_num,
                ROW_NUMBER () OVER (ORDER BY  period_name  DESC)  AS d_num,
                FIRST_VALUE (ytd) OVER (ORDER BY  period_name) - FIRST_VALUE (ytd) OVER (ORDER BY  period_name  DESC) AS dif
        FROM    tbl_data
        )
        SELECT  *
           FROM got_analytics;
    

    I get this message:

    ORA-24344: success with compilation error

    There are no other errors but to provide additional information. I am using TOAD.

    I was wondering if it is not possible to create a view in this way, or if I'm missing something?

    I had a peek here:

    ORA-24344: success with Compilation error

    I'm using TOAD, trying to SHOW the ERRORS immediately after the code above only returned 'No Errors'.

    I also looked here:

    ORA-24344: success with compilation error

    Ran the same code SQL/Plus, but "Show Errors" or "see the err" also returned "No. Errors."

    Any advice would be much appreciated.

    Thank you very much.

    Hello

    Try this

      CREATE OR REPLACE FORCE VIEW  APPS.XX_TEST2
        (
            period_name
          , ytd
          ,  a_num    -- because you select * you need all rows
          ,  d_num
          ,  dif
        )
        AS  ...
    

    concerning
    Kay

  • How to create the schema of the database from an existing TimesTen database?

    Hello everyone,

    I am a newbie to TimesTen database. Before making the complex sql queries, I would get the DB TimesTen database schema. I'm looking for a way extract the database schema (tables, keys, links between tables...). When I was working on another db such as postgreSQL, I could get the sql script of the database (for example, in order to recreate the database in another server). Some software like PowerDesigner has managed to build the model of database of these scripts.

    You know a way to get the same thing with the TimesTen database? Or with another way?

    Concerning

    Hello

    Take a look in the docs at ttSchema, this could do the trick.

    http://download.Oracle.com/docs/CD/E13085_01/doc/TimesTen.1121/e13069/util.htm#autoId27

    Tim

  • What is the syntax to create segments?

    Hello

    segment can be created manually as table space? If Yes, what is the syntax to create the segment?

    Concerning

    The create table statement has a storage clause that is part of the clause of physical attributes.

    These clauses to define options for the creation of segment/measure. If you do not specify the storage clause, then the tablespace-level settings are used.

    Documentation of the CREATE TABLE statement

    Physical properties: https://docs.oracle.com/database/121/SQLRF/statements_7002.htm#i2126711

    {[deferred_segment_creation] [table_compression] segment_attributes_clause}

    [inmemory_table_clause] [ilm_clause]

    | [deferred_segment_creation] ORGANIZATION

    {Heap_org_table_clause BUNCH [segment_attributes_clause]

    | INDEX index_org_table_clause [segment_attributes_clause]

    | External_table_clause EXTERNAL

    }

    | CLUSTER cluster (column [, column]...)

    Segment attributes clause: https://docs.oracle.com/database/121/SQLRF/statements_7002.htm#i2214991

    {physical_attributes_clause

    | TABLESPACE tablespace

    | logging_clause

    }...

    {Clause of their physical characteristics: https://docs.oracle.com/database/121/SQLRF/clauses007.htm#SQLRF30011}

    [{ PCTFREE whole

    | Whole PCTUSED

    | INITRANS whole

    | storage_clause

    }...

    ]

    Term of storage: https://docs.oracle.com/database/121/SQLRF/clauses009.htm#CJACEJGB


    STORAGE

    ({ INITIAL size_clause

    | Size_clause NEXT

    | MINEXTENTS whole

    | MAXEXTENTS {integer |} UNLIMITED }

    | maxsize_clause

    | PCTINCREASE whole

    | Whole FREELISTS

    | FREELIST GROUPS around

    | OPTIMAL [size_clause |] NULL ]

    | USER_TABLES { KEEP |} RECYCLE | DEFAULT }

    | FLASH_CACHE { KEEP |} NO | DEFAULT }

    | ENCRYPT

    } ...

    )

    However, the create table statement lets you not create segments or extensions directly. New extensions are to be created initially (when the table is created) or later, when more space is needed for the table, usually after several insertions that filled the original measure.

    Also remember that SQL is a language of generation 4. But there is no need to go into details such as the management of use or storage. All that and managed by the RDBMS.

  • Error message of nonsense trying to create the view

    Hello all,.

    Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production on Windows 2008R2

    I get an error when trying to create a view. The error makes no sense in that didn't evoke any attempt to change a user name or password in the error in production.

    I can run the complete select statement very well, I retrieve the results.

    If I comment out the line shown as being in error, the problem moves to the line before the tour. 4 lines before the line specified by the error message are similar. The error occurs on the last of the 5 similar lines of code.

    If I move all 5 lines above in the code the error moves accordingly.

    Function validate_number (near where the error is identified) under certain conditions, it will issue an immediate "alter session set nls_numeric_characters =" execution., "';"

    The number of the column identified in the error message is 2 spaces before the validate_number function call.

    Here is the syntax for creating the view, the error message is at the bottom.

    Figures on the far left indicate the line number. I put 2 blank lines before and after the line of code identified by the error message.

    The error points to the 2-seater before the VALIDATE_NUMBER function call on line 350. just before the code sql == > validate_number(Spend_Qty,'')), 0) < ==

    Thanks for your time,
    Bob
    CREATE OR REPLACE VIEW REPORT_STAGING_V AS
    -  SELECT
    -    SPEND_STAGING.INPUT_FILE_ID,
    -    SPEND_STAGING.SPEND_ID,
    -    SPEND_STAGING.SPEND_DOC_NUM,
    -    SPEND_STAGING.SPEND_DOC_ITM_NUM,
    -    SPEND_STAGING.SPEND_DOC_YR_NUM,
    -    SPEND_STAGING.ACCT_PYBL_INV_DOC_NUM,
    -    SPEND_STAGING.ACCT_PYBL_INV_FSCL_YR_NUM,
    -    SPEND_STAGING.COMPANY_CODE,
    -    SPEND_STAGING.ACCT_PYBL_INV_LN_ITM_NUM,
    -    SPEND_STAGING.SPEND_DOC_TYPE_CD,
    -    SPEND_STAGING.SPEND_MTHD_TXT,
    -    NVL(SPEND_STAGING.SRC_SYS_CD, '<BLANK>') SRS_SYS_CD,
    -    SPEND_STAGING.SPEND_SAVING_DT,
    -    SPEND_STAGING.SPEND_SAVING_FSCL_WK_NUM,
    -    SPEND_STAGING.SPEND_SAVING_FSCL_MTH_NUM,
    -    SPEND_STAGING.SPEND_SAVING_FSCL_QTR_NUM,
    -    SPEND_STAGING.SPEND_SAVING_FSCL_YR_NUM,
    -    SPEND_STAGING.MTRL_GRP_CD,
    -    SPEND_STAGING.MTRL_GRP_DESC_TXT,
    -    SPEND_STAGING.MTRL_GRP_LVL_1_TXT,
    -    SPEND_STAGING.MTRL_GRP_LVL_2_TXT,
    -    SPEND_STAGING.MTRL_GRP_LVL_3_TXT,
    -    SPEND_STAGING.MTRL_GRP_LVL_4_TXT,
    -    SPEND_STAGING.MTRL_GRP_LVL_5_TXT,
    -    SPEND_STAGING.MTRL_GRP_LVL_6_TXT,
    -    SPEND_STAGING.MTRL_GRP_LVL_7_TXT,
    -    SPEND_STAGING.MTRL_GRP_LVL_8_TXT,
    -    SPEND_STAGING.GL_ACCT_NUM,
    -    SPEND_STAGING.GL_ACCT_DESC,
    -    SPEND_STAGING.COST_CENTR_CD,
    -    SPEND_STAGING.PRFT_CENTR_CD,
    -    SPEND_STAGING.FUNCNL_AREA_CD,
    -    SPEND_STAGING.PURCH_GRP_CD,
    -    SPEND_STAGING.PURCH_GRP_NAM,
    -    SPEND_STAGING.PURCH_ORG_CD,
    -    SPEND_STAGING.PURCH_ORG_NAM,
    -    SPEND_STAGING.REGION_CODE,
    -    SPEND_STAGING.VNDR_ACCT_ROOT_NUM,
    -    SPEND_STAGING.VNDR_CORP_NAM,
    -    SPEND_STAGING.VNDR_CORP_TICKER_SYMBL_CD,
    -    SPEND_STAGING.BUYPOINT_VNDR_ACCT_NUM,
    -    SPEND_STAGING.BUYPOINT_VNDR_FIRST_NAM,
    -    SPEND_STAGING.PAYPOINT_VNDR_ACCT_NUM,
    -    SPEND_STAGING.PAYPOINT_VNDR_FIRST_NAM,
    -    SPEND_STAGING.SPEND_PYMNT_TERM_CD,
    -    SPEND_STAGING.SPEND_PYMNT_TERM_DESC,
    -    SPEND_STAGING.SPEND_PYMNT_BSLN_DT,
    -50  SPEND_STAGING.SPEND_PYMNT_CLRNG_DT,
    -    SPEND_STAGING.CONTRACTUAL_PYMNT_TERM_DY_CNT,
    -    SPEND_STAGING.VNDR_MTRL_NUM,
    -    SPEND_STAGING.MTRL_ID_1280,
    -    SPEND_STAGING.MTRL_DESC,
    -    SPEND_STAGING.BAT_NUM,
    -    SPEND_STAGING.SPCL_STOCK_IND,
    -    SPEND_STAGING.INVTY_MVMNT_TYPE_CD,
    -    SPEND_STAGING.GOODS_RCPNT_NAM,
    -    SPEND_STAGING.MFG_PART_NUM,
    -    SPEND_STAGING.PLANT_CD,
    -    SPEND_STAGING.PLANT_DESC,
    -    SPEND_STAGING.STORAGE_LOC_CD,
    -    SPEND_STAGING.STORAGE_LOC_DESC,
    -    SPEND_STAGING.UNLOADING_PT_DESC,
    -    SPEND_STAGING.PO_NUM,
    -    SPEND_STAGING.PO_LN_ITM_NUM,
    -    SPEND_STAGING.PO_LN_ITM_LAST_CHNG_DT,
    -    SPEND_STAGING.PO_DOC_DT,
    -    SPEND_STAGING.PO_TYPE_CD,
    -    SPEND_STAGING.PO_TYPE_DESC,
    -    SPEND_STAGING.PO_UOM_CD,
    -    SPEND_STAGING.PO_PYMNT_TERM_CD,
    -    SPEND_STAGING.ASGND_ACCT_CTGRY_TYPE_CD,
    -    SPEND_STAGING.PO_SHORT_TXT,
    -    SPEND_STAGING.GR_MTRL_DOC_TXT,
    -    SPEND_STAGING.ACCT_PYBL_INV_ITM_TXT,
    -    SPEND_STAGING.PO_RCPT_INV_HST_DOC_POST_DT,
    -    SPEND_STAGING.APPRTN_NUM,
    -    SPEND_STAGING.REQTN_TRK_NUM,
    -    SPEND_STAGING.REQTN_LN_NUM,
    -    SPEND_STAGING.REQTN_LN_ITM_NUM,
    -    SPEND_STAGING.REQTN_PERSN_ACCT_ID,
    -    SPEND_STAGING.NTWRK_NUM,
    -    SPEND_STAGING.NTWRK_CTGRY_CD,
    -    SPEND_STAGING.PROJ_NAM,
    -    SPEND_STAGING.WBS_ELMNT_NAM,
    -    SPEND_STAGING.CPTL_PO_IND,
    -    LU_GAC_STAGING.TIER_SUPPLIER,
    -    CASE
    -      WHEN SPEND_STAGING.PRCRMNT_RPTNG_LVL_3_TXT = 'GAC'
    -      AND LU_GAC_STAGING.PO_SHORT_TXT            = SPEND_STAGING.PO_SHORT_TXT
    -      AND SPEND_STAGING.SRC_SPLR_NAM            IS NULL
    -      THEN LU_GAC_STAGING.TIER_SUPPLIER
    -      ELSE SRC_SPLR_NAM
    -    END SRC_SPLR_NAM,
    -    SPEND_STAGING.TAX_CD,
    -    SPEND_STAGING.TAX_CD_DESC,
    -    SPEND_STAGING.TAX_JURISDICTION_TXT,
    -    SPEND_STAGING.MTRL_DOC_PRCS_UOM_QTY,
    -100 SPEND_STAGING.MTRL_DOC_UNIT_OF_ENTRY_QTY,
    -    SPEND_STAGING.PO_LN_ITM_QTY,
    -    SPEND_STAGING.PO_LN_ITM_NET_PRC_UNIT_QTY,
    -    SPEND_STAGING.PO_LN_ITM_NET_PRC_USD_AMT,
    -    SPEND_STAGING.PO_LN_ITM_NET_PRC_DC_AMT,
    -    SPEND_STAGING.PO_LN_ITM_NET_PRC_BDGT_USD_AMT,
    -    SPEND_STAGING.PO_LN_ITM_TOT_USD_AMT,
    -    SPEND_STAGING.SPEND_USD_AMT,
    -    SPEND_STAGING.SPEND_DOC_CURNCY_AMT,
    -    SPEND_STAGING.SPEND_LOCAL_CURNCY_AMT,
    -    SPEND_STAGING.SPEND_BDGT_USD_AMT,
    -    SPEND_STAGING.SPEND_QTY,
    -    SPEND_STAGING.SPEND_QTY_UOM_CD,
    -    SPEND_STAGING.SPEND_UNIT_OF_ENTRY_QTY,
    -    SPEND_STAGING.SPEND_UNIT_OF_ENTRY_UOM_CD,
    -    SPEND_STAGING.SPEND_DC_FX_MTH_CNVRSN_FCT_VAL,
    -    SPEND_STAGING.SPEND_DC_FX_BDG_CNVRSN_FCT_VAL,
    -    SPEND_STAGING.CMPNY_LOCAL_CURNCY_CD,
    -    SPEND_STAGING.DOC_CURNCY_CD,
    -    SPEND_STAGING.TRANSTN_TYPE_CD,
    -    SPEND_STAGING.ACCT_ASGNMT_SEQ_NUM,
    -    SPEND_STAGING.GLPCA_LN_ITM_REC_NUM,
    -    SPEND_STAGING.PCA_REF_DOC_NUM,
    -    SPEND_STAGING.CO_DOC_NUM,
    -    SPEND_STAGING.CO_FSCL_YR_NUM,
    -    SPEND_STAGING.CO_LN_ITM_NUM,
    -    SPEND_STAGING.VNDR_REF_DOC_NUM,
    -    SPEND_STAGING.SAVING_MTHD_TXT,
    -    SPEND_STAGING.SAVING_CMNT_TXT,
    -    SPEND_STAGING.SAVING_COND_NUM,
    -    SPEND_STAGING.SAVING_COND_ITM_NUM,
    -    SPEND_STAGING.SAVING_COND_TYPE_CD,
    -    SPEND_STAGING.SAVING_COND_TYPE_DESC,
    -    SPEND_STAGING.SAVING_COND_CURNCY_CD,
    -    SPEND_STAGING.SAVING_COND_PRC_UNIT_UOM_CD,
    -    SPEND_STAGING.SAVING_COND_PRC_UNIT_QTY,
    -    SPEND_STAGING.SAVING_COND_RTE_USD_AMT,
    -    SPEND_STAGING.SAVING_COND_CURNCY_CNVRSN_VAL,
    -    SPEND_STAGING.SAVING_COND_CURNCY_BDGT_CNVRSN,
    -    SPEND_STAGING.PO_TRANSTN_COND_DC_AMT,
    -    SPEND_STAGING.PO_TRANSTN_COND_USD_AMT,
    -    SPEND_STAGING.SAVING_RTE_PER_USD_AMT,
    -    SPEND_STAGING.SAVING_PER_USD_AMT,
    -    SPEND_STAGING.SAVING_PER_BDGT_USD_AMT,
    -    SPEND_STAGING.AVOIDANCE_USD_AMT,
    -    SPEND_STAGING.AVOIDANCE_BDGT_USD_AMT,
    -    SPEND_STAGING.SAVING_USD_AMT,
    -    SPEND_STAGING.SAVING_BDGT_USD_AMT,
    -    SPEND_STAGING.NO_FX_SAVING_USD_AMT,
    -    SPEND_STAGING.NO_FX_AVOIDANCE_USD_AMT,
    -150 SPEND_STAGING.TOT_REDUCTN_USD_AMT,
    -    SPEND_STAGING.TOT_REDUCTN_BDGT_USD_AMT,
    -    SPEND_STAGING.TOT_NO_FX_REDUCTN_USD_AMT,
    -    SPEND_STAGING.PAYMENTNET_TRANSTN_NUM,
    -    SPEND_STAGING.PAYMENTNET_TRANSTN_LN_ITM_NUM,
    -    SPEND_STAGING.ROW_CRTE_GMT_DTTM,
    -    SPEND_STAGING.ROW_MODIFY_GMT_DTTM,
    -    SPEND_STAGING.ROW_CRTE_MST_DTTM,
    -    SPEND_STAGING.ROW_MODIFY_MST_DTTM,
    -    SPEND_STAGING.PRCRMNT_DIRECTOR_NAM,
    -    SPEND_STAGING.PRCRMNT_PLANT_DSGNTN,
    -    SPEND_STAGING.PRCRMNT_RPTNG_LVL_1_TXT,
    -    SPEND_STAGING.PRCRMNT_RPTNG_LVL_2_TXT,
    -    SPEND_STAGING.PRCRMNT_RPTNG_LVL_3_TXT,
    -    SPEND_STAGING.SPEND_CAT_ID,
    -    SPEND_STAGING.SPEND_RULE_ID,
    -    SPEND_STAGING.TRANSACTION_DATE,
    -    SPEND_STAGING.SPEND_AMOUNT,
    -    SPEND_STAGING.ITEM_DESCRIPTION,
    -    SPEND_STAGING.SUPPLIER_ID,
    -    CASE
    -      WHEN SPEND_STAGING.SOURCE ='SPEND'
    -      THEN 'Spend and Savings'
    -      WHEN SPEND_STAGING.SOURCE ='TRAVEL'
    -      THEN 'Travel'
    -      ELSE NULL
    -    END SOURCE,
    -    SPEND_STAGING.SUPPLIER_NUMBER,
    -    SPEND_STAGING.TRAVEL_PERSNO,
    -    SPEND_STAGING.TRIP,
    -    SPEND_STAGING.TRAVEL_DOC,
    -    SPEND_STAGING.TRAVEL_EXPTY,
    -    SPEND_STAGING.TRAVEL_EXP_TYPE_DESC,
    -    SPEND_STAGING.TRAVLE_CREDIT_CARD_TRAN_DESC TRAVEL_CREDIT_CARD_TRAN_DESC,
    -    SPEND_STAGING.COUNTRY_CODE,
    -    SPEND_STAGING.TRAVEL_INFO,
    -    SPEND_STAGING.TRAVEL_ID,
    -    SPEND_STAGING.TRAVEL_DOCUMENT_NUMBER,
    -    SPEND_STAGING.TRAVEL_LAST_NAME_FIRST_NAME,
    -    SPEND_STAGING.TRAVEL_TRIP_REASON,
    -    SPEND_STAGING.TRAVEL_TRIP_STATUS,
    -    SPEND_STAGING.TRAVEL_RATE,
    -    SPEND_STAGING.FINANCE_ORG,
    -    SPEND_STAGING.ASSOCIATED_MG_CODE,
    -   SPEND_STAGING.COUNTRY_DESC,
    -   SPEND_STAGING.TRAVEL_ID_DESC_BANKCARD,
    -    SPEND_STAGING.COMPANY_CODE_DESC,
    -    SPEND_STAGING.COST_CENTER_DESC,
    -    'Q'||TO_CHAR(SPEND_STAGING.TRANSACTION_DATE,'Q') QUARTERNAME,
    -    TO_CHAR(SPEND_STAGING.TRANSACTION_DATE,'YYYY') YEARNAME,
    -200 CASE
    -      WHEN SPEND_STAGING.SRC_SYS_CD = 'P-CARD'
    -      THEN SS2.CLEANSED_PARENT_NAME
    -      ELSE SS1.CLEANSED_PARENT_NAME
    -    END CLEANSED_PARENT_NAME,
    -    CASE
    -      WHEN SPEND_STAGING.SRC_SYS_CD = 'P-CARD'
    -      THEN SS2.cleansed_name_1
    -      ELSE SS1.cleansed_name_1
    -    END CLEANSED_NAME1,
    -    CASE
    -      WHEN SPEND_STAGING.MTRL_ID_1280 IS NULL
    -       AND SPEND_STAGING.VNDR_MTRL_NUM IS NOT NULL
    -      THEN SPEND_STAGING.VNDR_MTRL_NUM
    -      WHEN SPEND_STAGING.MTRL_ID_1280 IS NULL
    -       AND SPEND_STAGING.VNDR_MTRL_NUM IS NULL
    -       AND SPEND_STAGING.MFG_PART_NUM  IS NOT NULL
    -      THEN SPEND_STAGING.MFG_PART_NUM
    -      WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EFM'
    -       AND SPEND_STAGING.PO_TYPE_CD         = 'ZAR'
    -       AND SPEND_STAGING.MTRL_ID_1280       IS NOT NULL
    -      THEN SPEND_STAGING.MTRL_ID_1280||'-MIX'
    -      WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EWM'
    -       AND SPEND_STAGING.PO_TYPE_CD          = 'ZAR'
    -       AND SPEND_STAGING.MTRL_ID_1280       IS NOT NULL
    -      THEN SPEND_STAGING.MTRL_ID_1280
    -        ||'-MIX'
    -      WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EWM'
    -      AND SPEND_STAGING.PO_TYPE_CD          = 'ZSA'
    -      AND SPEND_STAGING.MTRL_ID_1280       IS NOT NULL
    -      THEN SPEND_STAGING.MTRL_ID_1280
    -        ||'-ASMBLY'
    -      WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EFM'
    -      AND SPEND_STAGING.PO_TYPE_CD          = 'ZSA'
    -      AND SPEND_STAGING.MTRL_ID_1280       IS NOT NULL
    -      THEN SPEND_STAGING.MTRL_ID_1280
    -        ||'-ASMBLY'
    -      WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EFM'
    -      AND SPEND_STAGING.PO_TYPE_CD          = 'ZST'
    -      AND SPEND_STAGING.MTRL_ID_1280       IS NOT NULL
    -      THEN SPEND_STAGING.MTRL_ID_1280
    -        ||'-TEST'
    -      WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EWM'
    -      AND SPEND_STAGING.PO_TYPE_CD          = 'ZST'
    -      AND SPEND_STAGING.MTRL_ID_1280       IS NOT NULL
    -      THEN SPEND_STAGING.MTRL_ID_1280
    -        ||'-TEST'
    -      WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EFM'
    -      AND SPEND_STAGING.PO_TYPE_CD          = 'ZBI'
    -      AND SPEND_STAGING.MTRL_ID_1280       IS NOT NULL
    -250   THEN SPEND_STAGING.MTRL_ID_1280
    -        ||'-BURN-IN'
    -      WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EWM'
    -      AND SPEND_STAGING.PO_TYPE_CD          = 'ZBI'
    -      AND SPEND_STAGING.MTRL_ID_1280       IS NOT NULL
    -      THEN SPEND_STAGING.MTRL_ID_1280
    -        ||'-BURN-IN'
    -      WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EFM'
    -      AND SPEND_STAGING.PO_TYPE_CD          = 'ZRJ'
    -      AND SPEND_STAGING.MTRL_ID_1280       IS NOT NULL
    -      THEN SPEND_STAGING.MTRL_ID_1280
    -        ||'-REJECT'
    -      WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EWM'
    -      AND SPEND_STAGING.PO_TYPE_CD          = 'ZRJ'
    -      AND SPEND_STAGING.MTRL_ID_1280       IS NOT NULL
    -      THEN SPEND_STAGING.MTRL_ID_1280
    -        ||'-REJECT'
    -      WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EFM'
    -      AND SPEND_STAGING.PO_TYPE_CD          = 'ZPR'
    -      AND SPEND_STAGING.MTRL_ID_1280       IS NOT NULL
    -      THEN SPEND_STAGING.MTRL_ID_1280
    -        ||'-PROBE'
    -      WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EWM'
    -      AND SPEND_STAGING.PO_TYPE_CD          = 'ZPR'
    -      AND SPEND_STAGING.MTRL_ID_1280       IS NOT NULL
    -      THEN SPEND_STAGING.MTRL_ID_1280
    -        ||'-PROBE'
    -      WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EFM'
    -      AND SPEND_STAGING.PO_TYPE_CD          = 'ZEF'
    -      AND SPEND_STAGING.MTRL_ID_1280       IS NOT NULL
    -      THEN SPEND_STAGING.MTRL_ID_1280
    -        ||'-ENG'
    -      WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EWM'
    -      AND SPEND_STAGING.PO_TYPE_CD          = 'ZEF'
    -      AND SPEND_STAGING.MTRL_ID_1280       IS NOT NULL
    -      THEN SPEND_STAGING.MTRL_ID_1280
    -        ||'-ENG'
    -      WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EFM'
    -      AND SPEND_STAGING.PO_TYPE_CD          = 'ZEM'
    -      AND SPEND_STAGING.MTRL_ID_1280       IS NOT NULL
    -      THEN SPEND_STAGING.MTRL_ID_1280
    -        ||'-ENG'
    -      WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EWM'
    -      AND SPEND_STAGING.PO_TYPE_CD          = 'ZEM'
    -      AND SPEND_STAGING.MTRL_ID_1280       IS NOT NULL
    -      THEN SPEND_STAGING.MTRL_ID_1280
    -        ||'-ENG'
    -      WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EFM'
    -      AND SPEND_STAGING.PO_TYPE_CD          = 'ZEU'
    -      AND SPEND_STAGING.MTRL_ID_1280       IS NOT NULL
    -300   THEN SPEND_STAGING.MTRL_ID_1280
    -        ||'-ENGWFR'
    -      WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EWM'
    -      AND SPEND_STAGING.PO_TYPE_CD          = 'ZEU'
    -      AND SPEND_STAGING.MTRL_ID_1280       IS NOT NULL
    -      THEN SPEND_STAGING.MTRL_ID_1280
    -        ||'-ENGWFR'
    -      WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EFM'
    -      AND SPEND_STAGING.PO_TYPE_CD          = 'ZSF'
    -      AND SPEND_STAGING.MTRL_ID_1280       IS NOT NULL
    -      THEN SPEND_STAGING.MTRL_ID_1280
    -        ||'-WFR'
    -      WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EWM'
    -      AND SPEND_STAGING.PO_TYPE_CD          = 'ZSF'
    -      AND SPEND_STAGING.MTRL_ID_1280       IS NOT NULL
    -      THEN SPEND_STAGING.MTRL_ID_1280
    -        ||'-WFR'
    -      WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EFM'
    -      AND SPEND_STAGING.PO_TYPE_CD          = 'ZEF'
    -      AND SPEND_STAGING.MTRL_ID_1280       IS NOT NULL
    -      THEN SPEND_STAGING.MTRL_ID_1280
    -        ||'-ENG'
    -      WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EWM'
    -      AND SPEND_STAGING.PO_TYPE_CD          = 'ZEF'
    -      AND SPEND_STAGING.MTRL_ID_1280       IS NOT NULL
    -      THEN SPEND_STAGING.MTRL_ID_1280
    -        ||'-ENG'
    -      WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EFM'
    -      AND SPEND_STAGING.MTRL_ID_1280       IS NOT NULL
    -      THEN SPEND_STAGING.MTRL_ID_1280
    -        ||'-POTypeCode'
    -      WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EWM'
    -      AND SPEND_STAGING.MTRL_ID_1280       IS NOT NULL
    -      THEN SPEND_STAGING.MTRL_ID_1280
    -        ||'-POTypeCode'
    -      ELSE SPEND_STAGING.MTRL_ID_1280
    -    END ReportingPartNum,
    -    LU_PCARD_STAGING.COST_CENTR_CD PCARD_COST_CENTR_CD,
    -    LU_PCARD_STAGING.CTY_NAM PCARD_CTY_NAM,
    -    LU_PCARD_STAGING.DISABLE_LINE PCARD_DISABLE_LINE,
    -    LU_PCARD_STAGING.DISABLED_OWNED_BIZ_FLG PCARD_DISABLED_OWNED_BIZ_FLG,
    -    LU_PCARD_STAGING.DIVERSITY_VNDR_FLG PCARD_DIVERSITY_VNDR_FLG,
    -    LU_PCARD_STAGING.FIELD PCARD_FIELD,
    -    LU_PCARD_STAGING.GL_ACCT_NUM PCARD_GL_ACCT_NUM,
    -    LU_PCARD_STAGING.HUB_ZONE_SMALL_BIZ_CONCERN_FLG PCARD_HUB_ZONE,
    -    LU_PCARD_STAGING.MINORITY_OWNED_BIZ_FLG PCARD_MINORITY_OWNED_BIZ_FLG,
    -    NVL(validate_number(Po_Ln_Itm_Net_Prc_Usd_Amt,'')/DECODE(validate_number(Po_Ln_Itm_Net_Prc_Unit_Qty,''),0,1,validate_number(Po_Ln_Itm_Net_Prc_Unit_Qty,'')),0) po_unit_price_per_1_usd,
    -    NVL(validate_number(Po_Ln_Itm_Net_Prc_Dc_Amt,'') /DECODE(validate_number(Po_Ln_Itm_Net_Prc_Unit_Qty,''),0,1,validate_number(Po_Ln_Itm_Net_Prc_Unit_Qty,'')),0) po_unit_price_per_1_doc_cur,
    -    NVL(validate_number(Spend_Bdgt_Usd_Amt,'')       /DECODE(validate_number(Spend_Qty,''),0,1,                 validate_number(Spend_Qty,'')),0)                  spend_up_per_1_usd_budgt_rate,
    -    NVL(validate_number(Spend_Usd_Amt,'')            /DECODE(validate_number(Spend_Qty,''),0,1,                 validate_number(Spend_Qty,'')),0)                  spend_up_per_1_usd_mon_rate,
    
    
    -350 NVL(validate_number(Spend_Doc_Curncy_Amt,'')     /DECODE(validate_number(Spend_Qty,''),0,1,                 validate_number(Spend_Qty,'')),0)                  Spend_UP_per_1_Doc_Curr,
    
    
    -
    -    TO_CHAR(TRANSACTION_DATE,'MM-YYYY') MONTH_YEAR,
    -    LU_PCARD_STAGING.MTRL_GRP_CD PCARD_MTRL_GRP_CD,
    -    LU_PCARD_STAGING.PAYMENTNET_TRANSTN_LN_ITM_NUM PCARD_PAY_TRANSTN_LN_ITM_NUM,
    -    LU_PCARD_STAGING.PAYMENTNET_TRANSTN_NUM PCARD_PAY_TRANSTN_NUM,
    -    LU_PCARD_STAGING.PAYMENTNET_TRANSTN_POST_DT PCARD_PAY_TRANSTN_POST_DT,
    -    LU_PCARD_STAGING.PCARD_INV_AMT PCARD_INV_AMT,
    -    LU_PCARD_STAGING.PCARD_INV_CURNCY_CD PCARD_INV_CURNCY_CD,
    -    LU_PCARD_STAGING.PCARD_INV_DT PCARD_INV_DT,
    -    LU_PCARD_STAGING.PCARD_INV_LN_ITM_AMT PCARD_INV_LN_ITM_AMT,
    -    LU_PCARD_STAGING.PCARD_INV_LN_ITM_TAX_AMT PCARD_INV_LN_ITM_TAX_AMT,
    -    LU_PCARD_STAGING.PCARD_INV_LN_ITM_TAX_CD PCARD_INV_LN_ITM_TAX_CD,
    -    LU_PCARD_STAGING.PCARD_INV_REF_NUM PCARD_INV_REF_NUM,
    -    LU_PCARD_STAGING.PCARD_INV_TAX_AMT PCARD_INV_TAX_AMT,
    -    LU_PCARD_STAGING.PCARD_MERCHANT_NAM PCARD_MERCHANT_NAM,
    -    LU_PCARD_STAGING.PCARD_OWNR_ID PCARD_OWNR_ID,
    -    LU_PCARD_STAGING.PCARD_SHORT_TXT PCARD_SHORT_TXT,
    -    LU_PCARD_STAGING.PCARD_SRC_FILE_NAM PCARD_SRC_FILE_NAM,
    -    LU_PCARD_STAGING.PLANT_CD PCARD_PLANT_CD,
    -    LU_PCARD_STAGING.PURCH_GRP_CD PCARD_PURCH_GRP_CD,
    -    LU_PCARD_STAGING.RCPNT_ID PCARD_RCPNT_ID,
    -    LU_PCARD_STAGING.REQTN_CRTE_BY_ID PCARD_REQTN_CRTE_BY_ID,
    -    LU_PCARD_STAGING.REQTN_LN_ITM_NUM PCARD_REQTN_LN_ITM_NUM,
    -    LU_PCARD_STAGING.REQTN_NUM PCARD_REQTN_NUM,
    -    LU_PCARD_STAGING.SERV_DISABLE_VETERAN_BIZ_FLG PCARD_SERV_DIS_VET_BIZ_FLG,
    -    LU_PCARD_STAGING.STATE_CD PCARD_STATE_CD,
    -    LU_PCARD_STAGING.STATE_CD,
    -    LU_PCARD_STAGING.VETERAN_OWNED_BIZ_FLG PCARD_VETERAN_OWNED_BIZ_FLG,
    -    LU_PCARD_STAGING.VNDR_ACCT_NUM PCARD_VNDR_ACCT_NUM,
    -    LU_PCARD_STAGING.WOMAN_OWNED_BIZ_FLG PCARD_WOMAN_OWNED_BIZ_FLG2,
    -    DENSE_RANK() OVER (ORDER BY NVL(TO_CHAR(TRANSACTION_DATE, 'YYYYMM'),'190010') DESC) AS DATE_RANK,
    -    LU_PRICE_BY_UNIT_STAGING.MTRL_GRP PBU_MTRL_GRP,
    -    LU_PRICE_BY_UNIT_STAGING.MTRL_GRP_DES PBU_MTRL_GRP_DES,
    -    LU_PRICE_BY_UNIT_STAGING.MTRL_ID PBU_MTRL_ID,
    -    LU_PRICE_BY_UNIT_STAGING.PLANT PBU_PLANT,
    -    LU_PRICE_BY_UNIT_STAGING.PLANT_DESC PBU_PLANT_DESC,
    -    LU_PRICE_BY_UNIT_STAGING.SUPPLIER PBU_SUPPLIER,
    -    LU_PRICE_BY_UNIT_STAGING.DESCRIPTION PBU_DESCRIPTION,
    -    LU_PRICE_BY_UNIT_STAGING.UOM PBU_UOM,
    -    LU_PRICE_BY_UNIT_STAGING.CONTENT_VOLUME PBU_CONTENT_VOLUME,
    -    LU_PRICE_BY_UNIT_STAGING.UOM_CONTENT_VOLUME PBU_UOM_CONTENT_VOLUME,
    -    LU_PRICE_BY_UNIT_STAGING.CONTENT_WEIGHT PBU_CONTENT_WEIGHT,
    -    LU_PRICE_BY_UNIT_STAGING.UOM_CONTENT_WT PBU_UOM_CONTENT_WT,
    -    LU_PRICE_BY_UNIT_STAGING.PRICE__PACKAGE PBU_PRICE__PACKAGE,
    -    LU_PRICE_BY_UNIT_STAGING.PRICE_PER_UOM_WT PBU_PRICE_PER_UOM_WT,
    -    LU_PRICE_BY_UNIT_STAGING.PRICE_PER_UOM_VOL PBU_PRICE_PER_UOM_VOL,
    -    LU_PRICE_BY_UNIT_STAGING.COMMON_NAME PBU_COMMON_NAME,
    -    LU_GAC_UOM_REFERENCE_STAGING.LU_GAC_UOM_REFERENCE_ID,
    -    LU_GAC_UOM_REFERENCE_STAGING.FSL_PART_NUMBER,
    -    LU_GAC_UOM_REFERENCE_STAGING.SUPPLIER LU_GAC_SUPPLIER,
    -400 LU_GAC_UOM_REFERENCE_STAGING.DESCRIPTION LU_GAC_DESCRIPTION,
    -    LU_GAC_UOM_REFERENCE_STAGING.GAC_MAT_SUBGROUP LU_GAC_MAT_SUBGROUP ,
    -    LU_GAC_UOM_REFERENCE_STAGING.ACTUAL_FILL LU_GAC_ACTUAL_FILL,
    -    LU_GAC_UOM_REFERENCE_STAGING.COMMON__UOM LU_GAC_COMMON_UOM,
    -    LU_GAC_UOM_REFERENCE_STAGING.PACKAGE LU_GAC_PACKAGE
    -  FROM
    -    SPEND_STAGING,
    -    SUPPLIER_STAGING SS1,
    -    SUPPLIER_STAGING SS2,
    -    LU_GAC_STAGING,
    -    lu_card_code_staging,
    -    LU_PCARD_STAGING,
    -    LU_PRICE_BY_UNIT_STAGING,
    -    LU_GAC_UOM_REFERENCE_STAGING
    -  WHERE SS1.SUPPLIER_ID(+)                     = SPEND_STAGING.SUPPLIER_ID
    -  AND SS2.PCARD_INV_REF_NUM(+)             = SPEND_STAGING.PCARD_INV_REF_NUM
    -  AND SS2.PAYMENTNET_TRANSTN_NUM(+)        = SPEND_STAGING.PAYMENTNET_TRANSTN_NUM
    -  AND SS2.PAYMENTNET_TRANSTN_LN_ITM_NUM(+) =
    -    SPEND_STAGING.PAYMENTNET_TRANSTN_LN_ITM_NUM
    -  AND lu_card_code_staging.card_code(+)          = spend_staging.travel_id
    -  AND lu_gac_staging.po_short_txt(+)             = spend_staging.po_short_txt
    -  AND LU_PCARD_STAGING.PCARD_INV_REF_NUM(+)      = SPEND_STAGING.PCARD_INV_REF_NUM
    -  AND LU_PCARD_STAGING.PAYMENTNET_TRANSTN_NUM(+) =
    -    SPEND_STAGING.PAYMENTNET_TRANSTN_NUM
    -  AND LU_PCARD_STAGING.PAYMENTNET_TRANSTN_LN_ITM_NUM(+) =
    -    SPEND_STAGING.PAYMENTNET_TRANSTN_LN_ITM_NUM
    -  AND LU_PRICE_BY_UNIT_STAGING.MTRL_ID(+)             = SPEND_STAGING.MTRL_ID_1280
    -  AND LU_PRICE_BY_UNIT_STAGING.PLANT(+)               = SPEND_STAGING.PLANT_CD
    -  AND lu_gac_uom_REFERENCE_STAGING.fsl_part_number(+) =
    -431 SPEND_STAGING.MTRL_ID_1280;
    Error in the command line: 350 column: 112
    Error report:
    SQL error: ORA-01031: insufficient privileges
    01031 00000 - "insufficient privileges".
    * Cause: An attempt was made to change the user name or password
    without the privilege appropriate. This error also occurs if
    trying to install a database without the need for employment
    access privileges.
    When Trusted Oracle is configure in DBMS MAC, this error may occur
    If the user has been granted the privilege necessary for a higher label
    that the connection is active.
    * Action: Ask the database to perform the operation or grant administrator
    the required privileges.
    For users Trusted Oracle get this error, well that granted the
    the privilege that is suitable for the top label, ask the database
    administrator to grant the privilege to the appropriate label.

    Published by: Snyds on May 24, 2012 07:46

    The text associated with the error number is certainly misleading.

    It simply means that you have not had the privilege to do something.

    Is validate_number in the same pattern when you create the view? If not, what
    privileges that you have about this feature and how is it given?

  • Unable to create the independent agent in ODI 12 c

    is it possible to create an autonomous in 12 c agent if I don't create the scheme of servicetable (_STB) by remote control?

    I get the following error when trying to create the independent agent.


    2015-10-01 15:47:27, 048 INFO [1] com.oracle.cie.wizard.internal.wcf.WCFWrapper - dominant summary_gui of task definition

    2015-10-01 15:47:49, 447 [14] INFO com.oracle.cie.domain.DomainRegistryWrapper - need to initialize the domainRegistrydocument object

    2015-10-01 15:49:28, 258 [14] INFO com.oracle.cie.domain.WLSTemplateBuilder - no config groups found in template xml

    2015-10-01 15:49:47, 063 com.oracle.cie.domain.AbstractTemplate INFO [14] - addition of the component reference

    "2015-10-01 15:49:47, 562 WARNING [14] com.oracle.cie.domain.AbstractTemplate - version of 'wlserver' component name ' 0.0.0.0 ' is not found

    2015-10-01 15:49:48, 233 [14] INFO com.oracle.cie.domain.WLSTemplateBuilder - no config groups found in template xml

    2015-10-01 15:49:48, 233 WARNING [14] com.oracle.cie.domain.AbstractTemplate - could not find component name 'oracle.data_integrator.standalone_agent_base' version 'null '.

    "2015-10-01 15:49:48, 248 WARNING [14] com.oracle.cie.domain.AbstractTemplate - version of 'odi' component name ' 0.0.0.0 ' is not found

    2015-10-01 15:49:48, 638 WARNING [14] com.oracle.cie.domain.AbstractTemplate - could not find component name 'oracle.data_integrator.datasources' version 'null '.

    "2015-10-01 15:49:48, 670 WARNING [14] com.oracle.cie.domain.AbstractTemplate - version of 'odi' component name ' 0.0.0.0 ' is not found

    2015-10-01 15:49:48, 701 com.oracle.cie.domain.AbstractTemplate INFO [14] - addition of the component reference

    2015-10-01 15:49:48, 826 [14] WARNING com.oracle.cie.domain.AbstractTemplate - could not find component name 'oracle.data_integrator.standalone_agent' version 'null '.

    2015-10-01 16:04:12, 655 WARNING [14] com.oracle.cie.domain.ohs.ConfigFileProcessor - admin.conf file does not exist...

    2015-10-01 16:04:12, 655 WARNING [14] com.oracle.cie.domain.ohs.ConfigFileProcessor - httpd.conf file does not exist...

    2015-10-01 16:04:12, 655 WARNING [14] com.oracle.cie.domain.ohs.ConfigFileProcessor - fichier.conf does not exist...

    2015-10-01 16:06:22, 917 SEVERE [59] com.oracle.cie.domain.DomainGeneratorStandAlone - domain creation failed!

    Location of area: C:\Oracle_Domain\Middleware\Oracle_Home\user_projects\domains\base_domain

    Reason: Did not contain the query table SERVICETABLE.

    ORA-00942: table or view does not exist

    Exception:

    Did not contain the query table SERVICETABLE.

    ORA-00942: table or view does not exist

    com.oracle.cie.servicetable.external.ServiceTableException: did not contain the query table SERVICETABLE.

    ORA-00942: table or view does not exist

    at com.oracle.cie.servicetable.dao.impl.AbstractServiceTableDAOImpl.getServiceTableEntry(AbstractServiceTableDAOImpl.java:295)

    at com.oracle.cie.servicetable.dao.impl.OracleServiceTableDAOImpl.getServiceTableEntry(OracleServiceTableDAOImpl.java:90)

    at com.oracle.cie.servicetable.impl.ServiceTableImpl.lookup(ServiceTableImpl.java:266)

    at com.oracle.cie.servicetable.impl.ServiceTableImpl.lookup(ServiceTableImpl.java:243)

    at com.oracle.cie.domain.ConfigMappingHelper.getService(ConfigMappingHelper.java:975)

    at com.oracle.cie.domain.ConfigMappingHelper.processNewServices(ConfigMappingHelper.java:610)

    at com.oracle.cie.domain.ConfigMappingHelper.processMappings(ConfigMappingHelper.java:410)

    at com.oracle.cie.domain.WLSConfigMappingHelper.processUpdate(WLSConfigMappingHelper.java:62)

    at com.oracle.cie.domain.DomainGeneratorStandAlone.run(DomainGeneratorStandAlone.java:588)

    at java.lang.Thread.run(Thread.java:745)

    Caused by: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:450)

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:399)

    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:1059)

    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:522)

    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:257)

    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:587)

    at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:210)

    at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:30)

    at oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:762)

    at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:925)

    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1111)

    at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1309)

    at oracle.jdbc.driver.OracleStatementWrapper.executeQuery(OracleStatementWrapper.java:422)

    at com.oracle.cie.servicetable.dao.impl.AbstractServiceTableDAOImpl.getServiceTableEntry(AbstractServiceTableDAOImpl.java:271)

    ... 9 more

    2015-10-01 16:07:04, 913 [14] INFO com.oracle.cie.common.util.BrowserLauncher - jdk used is: 1.7.0_79

    No, you must create all tables in service before

    https://docs.oracle.com/middleware/1212/odi/ODING/configure_sa.htm#ODING744,

  • Fusion order demo failed by operating the buildscript to create the user in db

    I met some errors when I create the schema for the Oracle merger (FusionOrderDemo_R1PS2.zip) order demo sample


    When I run the file build.xml under MasterBuildScript, there are errors:


    BuildFile: C:\OracleSOA11g\Tutorial\Infrastructure\Ant\build.xml

    init:
    [javac] Compiling 1 source file for C:\OracleSOA11g\Tutorial\Infrastructure\Ant\classes

    setProperties:

    createDatabase:

    refreshSchema:

    BUILD FAILED
    C:\OracleSOA11g\Tutorial\Infrastructure\Ant\build.XML:51: The following error occurred during the execution of this line:
    C:\OracleSOA11g\Tutorial\Infrastructure\DBSchema\build.XML:91: The following error occurred during the execution of this line:
    C:\OracleSOA11g\Tutorial\Infrastructure\DBSchema\build.XML:56: The following error occurred during the execution of this line:
    C:\OracleSOA11g\Tutorial\Infrastructure\DBSchema\build.XML:28: C:\Oracle\Middleware\wlserver_10.3\server\lib not found.

    Total time: 10 seconds






    my properties build configuration is:

    JDeveloper.Home=C:/Oracle/middleware/JDeveloper
    CBC. Home =... / /...

    # Info JDBC used to create a schema
    JDBC. Driver = Oracle.JDBC.OracleDriver
    jdbc.urlBase=jdbc:oracle:thin:@localhost
    JDBC.port = 1521
    JDBC.sid = XE

    # Information about the default setting for the user to demo.
    db.adminUser = system
    db.demoUser = FOD
    db.demoUser.password = fusion
    db.demoUser.tablespace = USERS
    db.demoUser.tempTablespace = TEMP

    I installed my jdev in C: / and I use oracle XE as my db

    Anyone know what's the problem?

    Thanks in advance!

    Published by: user13108801 on October 16, 2010 07:33

    Hi user13108801

    Searching the forum gave rise to a thread that may be relevant 'Fusion order demo Failed Assertion' forum...
    to the failure of the Assertion of demo of merger order
    ... because it's also a '..." Infrastructure\DBSchema\build.XML:28: (...) not found \server\lib. ..."

    (Tip: you can use "Your Control Panel" to make your name visible in the messages of the forum.)

    success
    Jan Vervecken

  • Enable auditing to the schema at the level

    Oracle 11g

    UNIX

    Hi DBAs,

    I'm trying to enable auditing on a schema for all of the Select statements / Insert shot of this schema objects.

    SQL > select Audit on abc_owner by access;

    Audit select on abc_owner by access

    *

    ERROR on line 1:

    ORA-00942: table or view does not exist

    From there, I understand that I'll have to talk about the objects of this scheme. But I have about 500 objects in this schema.

    Y at - it an option whereby I can enable auditing at the schema level?

    Thank you

    AKPT

    AKPT wrote:

    Hi guys,.

    What will be the reason behind this, this level of auditing schema type is not available?

    Thank you

    There is no because it is impossible to implement.

    for the sake of discussion say that could allow "audit schema level.

    Which must take place within the DB when a new object is created in this schema?

    How Oracle will remember that this new object must be audited & as well as the types of access?

  • Merits and demerits of the replication of schema-level and Table

    Hello

    We evaluate the streams for our needs of replication. We reproduce nearly 2000 two-way tables. Most of the tables are in a schema. The main schema has a few tables that are not replicated.

    Replicate us schema level? Or at the level of the table? What are the advantages and disadvantages?

    Replication of level schema included with a handful of exclusionary rules seems simpler.

    In water courses at the level of the tables as well as creating 2000 table rules in the beginning, add a new table to an existing configuration of streams, will require additional steps to stop capture/apply/spread, creating new rules for the new table and restart replication. However, it seems that level replication table offering flexibility in terms of group tables. We wanted to group tables about 10 groups of 20 to 300 tables in each group. Each group will have its own capture, propagate and apply. In this way, we can isolate large groups of those unimportant?

    Who is a better setup in terms of maneuverability, flexibility, parallelism and performance?

    Thank you.

    Hello Stargaze,

    OK, so I understand that the grouping is based on the type of transactions and its importance. In this case the grouping would help you in many ways such as:

    1. If you encounter a problem or a bug with one of the processes of capture/apply then the other groups would work fine. Therefore, you have the opportunity to shoot a game of capture, propagation and applies until solve you the problem.

    2. in case if you perform any load batch where the transaction will affect over 10000 + records then it is possible that you could get stuck at 'SUSPENDED for FLOW CONTROL' on any of the feed items. With different groups would give you more flexibility to solve this problem by activating and deactivating groups.

    For more information on this please check the following:

    Apply process is active, inactive, and just stopped in change application

    3. with the schema level replication even if you have the advantage of being simple and have fewer rules in the set of rules, you must consider the 2 points above before you implement it. You need to test both diagrams and tables with a typical load (simulation of the production) and need to identify potential problems in both. Some more points to consider:

    -apply the game patches 10.2.0.4 or at least 10.2.0.3
    -apply all the patches required streams (Note: 437838.1> on metalink)
    -follow the recommendations as indicated:
         Note: 418755.1 broadcast 10.2.0.x.x of recommendations
         Note: 335516.1 Performance of flow recommendations
    Note: 413353.1 10.2 best practices for streams in RAC environment

    Thank you
    Florent

  • Import export of the schema is unknown

    Hello

    I have a file dump exported molasses formed up again that some tables. The schema for the export of the discharge is unknown and we have only provided the dump file.

    I have a scheme named EXTRCT which has been granted the DBA role in my target database. I want to import the tables in the schema EXTRCT.

    The following command retrieves the tables in schema EXTRCT or it will create the schema in my target database that was used during the export. If it is the latter, how can I force the tables to be imported into the schema EXTRCT. I guess that I can't use REMAP_SCHEMA because I don't have the name of the schema where tables were exported?

    Impdp EXTRCT/extrct dumpfile = logfile directory = dp_dir imp.log = exp.dmp

    The databases are 11 GR 2.

    Thank you

    Mathieu

    run the import with

    sqlFile = my_test_file. SQL

    This will insert all ddl statements in the file instead of their execution.  Nothing will be created.  You can then change the my_test_file.sql to see what the patterns are.  You can also see if there are tablespaces that will need to be remapped as well.

    Dean

  • Writes the schema to pipe delimited file

    Hi all

    I have to write a pipe (|) delimited file in .txt at a given location. I don't see this option in the native schema creation.

    The file must be written in the following format:
    Header1
    LINE1
    Line2
    Line 3
    .
    .
    .
    By tete2
    LINE1
    Line2
    Line 3
    .
    .
    .

    Can we write a schema for this kind of scenario?

    Here is an example for the above specified format:

    Orderno1 | Customer1. site1
    Partno1 | price1. Quantity1
    Partno2 | price2 | Quantity2
    Partno3 | price2 | Quantity1
    .
    .
    .
    Orderno2 | Customer2. site2
    Partno1 | price2 | Quantity2
    Partno1 | price2 | Quantity2
    Partno2 | price2 | Quantity3
    .
    .
    .

    Please help me.

    Thanks in advance,
    Abhishek.

    Hi Abhishek,

    You have reason there no option in the native schema Wizard to generate the ' |' separator file.

    But you can get this problem with a different approach.

    step 1: create the schema file for ',' (comma) separator through the native format Wizard.

    step 2: open the XSD file and replace ',' with ' |' option in the order of terminatedBy of each element.

    step 3: attach this XSD file updated to your outbound service (write).

    Thank you
    Praveen

    Published by: PraveenT2 on November 19, 2008 23:01

  • create the type of step for a stage of COM

    Hello

    I use the COM adapter to interface with TestComplete.

    My current setup is that I have a Master file of sequence that contains two sequence files (one for each trial).

    The individual called movie file have 4 steps as indicated:

    Get property: Create the new object

    Calling a method to open project

    Call the method to run the test, and then pass the parameter in TestComplete

    Get the result of the property

    My problem is that if I want to spend a different setting in the step to call the method to run the test , I have to create another sequence file to do this.

    Is there a way to create one Type of step to call the method, run the test and pass parameter to TestComplete?  and how will this affect the other steps in this sequence file (for example to create new object, open a project, Get property resut)?

    Thank you!

    Jigg,

    Yes, I think it worked!  Thank you very much!

    Question: to chaange the param1, it is necessary to specify the module and change the value in the edit sequence window call under the table of parameters.

    Is it possible to build an easier user interface as the synchronization-> Wait-> Configuration window not to wait, where you can just put in the value of the parameter, and that's all.

    Thank you

    pH

Maybe you are looking for

  • Qosmio X 70-B-10 t - failure of the graphics card

    Hello. I offen had failure that the graphics card driver hang up and recovered himself. But today, I got this failure to the course to watch live TV streams and it seemed to me that the laptop does not work correctly. I tried to restard and then I ge

  • find bin myrecyle

    find my trash

  • Updated the HPE-063uk graphics card

    Hello, I want to move to a GTX460 or similar, but I'm not sure that the motherboard MSI MS 7613 will take cards double deep slot. Am I stuck with low-profile graphics cards? Thank you

  • Generate ACS V 4.1.1 23 aging via SSH password does not work.

    Hello, my name is Elias and I have problems with ACS via SSH password aging does not work and there is no meseges password sent by ACS console when I use SSH from aging. I know that there are problems with this, but I can't find any workaround or doc

  • Function of Smartphones SMS blackBerry gone wild

    Hello Help me please. I got my 8220 again a few days ago on the o2 UK network. I have the mail function works very well and I'm happy with that however, my sms functions have been crazy and worsens, as days go by. When I get a text message, it says o