View creation issue

Hi ALL,
I am a DBA and trying to create a view , but oracle giving me the following errors. one thing to note here that , when I try to remove ")" from line 24 , oracle allows me to create , but with the following compilation errors.
++
SQL> show err view "RDS"."INTEGRATOR_RECIPE_V"
Errors for VIEW "RDS"."INTEGRATOR_RECIPE_V":
LINE/COL ERROR
0/0      ORA-00918: column ambiguously defined
0/0      ORA-01730: invalid number of column names specified
+++++++
SQL> show err
No errors.
SQL> CREATE OR REPLACE FORCE VIEW "RDS"."INTEGRATOR_RECIPE_V" ("FRL_ID", "FMP_ID", "FMP_ID_PATHFINDER", "PLT_ID", "SAP_PLANT_ID",
  2    "PLANT_NAME", "SAP_VENDOR_ID", "PROD_SITE_ID", "PLANT_MASS_CODE", "MASS_CODE", "DESCRIPTION", "EQUIPMENT_TEXT", "PROCEDURE_TEXT", "PLANT_REMARKS",
  3     "MANUFACTURING_TEXT", "CLEANSING_AGENT", "SANITIZING_AGENT", "SANITIZING_FREQUENCY", "VALID_FROM", "VALID_TO",
   "SAP_BOM_STATUS_ID", "UOM", "BATCH_SIZE_MIN", "BATCH_SIZE_MAX", "SAP_PROCESS_DESC", "SAP_STATUS_DESC") AS
  4    5    SELECT /*+ rule */ frl.frl_id,
  6        fmp.fmp_id,
  7         fmp.fmp_id_pathfinder,
  8         frl.plt_id,
  9         plt.sap_Plant_ID,
       plt.plant_name,
10   11         plt2.sap_vendor_id,
12         substr(plt.mfg_loc_id,1,3) prod_site_id,
13         frl.plant_mass_code,
       frm.mass_code,
14   15         fpd.description,
16         fet.equipment_text,
17         fpt.procedure_text,
18         frl.plant_remarks,
19         --fmp.manufacturing_text,  changed by MDK as per Rohit
20         --DECODE(fmp.manufacturing_text, NULL,
21         DECODE(rds.get_additional_ingredients(frm.frm_id),NULL,NULL,'Full Formula Extender(s): '|| rds.get_additional_ingredients(frm.frm_id)),
22         fmp.manufacturing_text || Chr(13) || Chr(10)) ||
23         --  DECODE(rds.get_additional_ingredients(frm.frm_id),NULL,NULL,'Full Formula Extender(s): '|| rds.get_additional_ingredients(frm.frm_id))
24         manufacturing_text,
25         rds.GET_MANUFACTURING_TEXT(fmp.fmp_id) manufacturing_text,
26         '' cleansing_agent,
27         '' sanitizing_agent,
28         '' sanitizing_frequency,
29         to_char(frl.valid_from, 'DD-MON-YYYY') valid_from, --force YYYY otherwise XML shows YY
30         to_char(frl.valid_to, 'DD-MON-YYYY') valid_to,--force YYYY otherwise XML shows YY
31         RLS.SAP_BOM_STATUS_id,
32         RTRIM(rds.GET_RDS_UOM(replace(frm.mass_code, '-')))  uom,
33         --fbs.batch_size_min,
34         decode(RTRIM(GET_RDS_UOM(replace(frm.mass_code,'-'))), 'KG', fbs.batch_size_min * 1, 'GM', fbs.batch_size_min* 1000)  batch_size_min, --fbs.batch
_size_max,
35         decode(RTRIM(GET_RDS_UOM(replace(frm.mass_code, '-')))
36  , 'KG', fbs.batch_size_max * 1, 'GM', fbs.batch_size_max* 1000) batch_size_max,
37         rpad(trim(fpd.abbr_description)||' R:'||trim(fmp.revision_number),40)||chr(13)||chr(10)||'Full Process Description: '||trim(fpd.description)|| '
Rev: '||trim(fmp.revision_number)   SAP_Process_Desc,
38           rls.sap_status_desc
39         --trim(fpd.abbr_description)||' R:'||trim(fmp.revision_number)   SAP_Process_Desc
40  FROM   rds.formula_release        frl,
41         rds.RELEASE_STATUS         RLS,
42         rds.formula_process        fmp,
43         rds.fmp_batch_size         fbs,
44         rds.plant                  plt,
45         rds.plant                  plt2,
46         rds.PROCESS_DESCRIPTION    fpd,
47         rds.fmp_procedure_text     fpt,
48         rds.fmp_equipment_text     fet,
49         rds.master_formula         frm,
50         rds.project                prj,
51         rds.product                prd
52  WHERE  frl.fmp_id = fmp.fmp_id
53  AND    fmp.fpd_id = fpd.fpd_id
54  AND    fmp.frm_id = frm.frm_id
55  AND    frm.prj_id = prj.prj_id
56  AND    prj.prd_id = prd.prd_id
57  and    FRL.rls_id = RLS.rls_id
58  AND    frl.parent_plt_id = plt.plt_id
59  AND    frl.plt_Id = plt2.plt_id
60  and    fmp.fmp_id = fpt.fmp_id(+)
and    fmp.fmp_id = fet.fmp_id(+)
61   62  and    fmp.fmp_id = fbs.fmp_id(+)
63  --AND    fmp.fmp_id_pathfinder = fpt.fmp_id(+)
64  --AND    fmp.fmp_id_pathfinder = fet.fmp_id(+)
65  --AND    fmp.fmp_id_pathfinder = fbs.fmp_id(+)
66  /
       fmp.manufacturing_text || Chr(13) || Chr(10)) ||
ERROR at line 22:
ORA-00923: FROM keyword not found where expected

It's difficult to see your code especially as some lines seem to have been commented out and it's not clear what is supposed to be a column alias or an actual column name.
I've taken a good guess...
CREATE OR REPLACE FORCE VIEW RDS.INTEGRATOR_RECIPE_V AS 
  SELECT /*+ rule */  -- WTF is this hint being used for?  STRONGLY advise against it.
         frl.frl_id
        ,fmp.fmp_id
        ,fmp.fmp_id_pathfinder
        ,frl.plt_id
        ,plt.sap_Plant_ID
        ,plt.plant_name
        ,plt2.sap_vendor_id
        ,substr(plt.mfg_loc_id,1,3) prod_site_id
        ,frl.plant_mass_code
        ,frm.mass_code
        ,fpd.description
        ,fet.equipment_text
        ,fpt.procedure_text 
        ,frl.plant_remarks 
        --,fmp.manufacturing_text,  changed by MDK as per Rohit 
        --,DECODE(fmp.manufacturing_text, NULL, 
        DECODE(rds.get_additional_ingredients(frm.frm_id),NULL,NULL,'Full Formula Extender(s): '||rds.get_additional_ingredients(frm.frm_id))  -- THIS LINE NEEDS AN ALIAS
        ,fmp.manufacturing_text || Chr(13) || Chr(10) as manufacturing_text
        --  ||DECODE(rds.get_additional_ingredients(frm.frm_id),NULL,NULL,'Full Formula Extender(s): '|| rds.get_additional_ingredients(frm.frm_id)) 
        ,rds.GET_MANUFACTURING_TEXT(fmp.fmp_id) manufacturing_text  -- THIS IS A DUPLICATE of the previous column name 
        ,'' cleansing_agent
        ,'' sanitizing_agent 
        ,'' sanitizing_frequency
        ,to_char(frl.valid_from, 'DD-MON-YYYY') valid_from --force YYYY otherwise XML shows YY 
        ,to_char(frl.valid_to, 'DD-MON-YYYY') valid_to     --force YYYY otherwise XML shows YY 
        ,RLS.SAP_BOM_STATUS_id
        ,RTRIM(rds.GET_RDS_UOM(replace(frm.mass_code, '-'))) uom 
        --fbs.batch_size_min, 
        ,decode(RTRIM(GET_RDS_UOM(replace(frm.mass_code,'-'))), 'KG', fbs.batch_size_min * 1, 'GM', fbs.batch_size_min* 1000)  batch_size_min --fbs.batch
        ,_size_max
        ,decode(RTRIM(GET_RDS_UOM(replace(frm.mass_code, '-'))), 'KG', fbs.batch_size_max * 1, 'GM', fbs.batch_size_max* 1000) batch_size_max
        ,rpad(trim(fpd.abbr_description)||' R:'||trim(fmp.revision_number),40)||chr(13)||chr(10)||'Full Process Description: '||trim(fpd.description)|| ' Rev: '||trim(fmp.revision_number) SAP_Process_Desc
        ,rls.sap_status_desc 
        --trim(fpd.abbr_description)||' R:'||trim(fmp.revision_number)   SAP_Process_Desc 
FROM   rds.formula_release        frl, 
        rds.RELEASE_STATUS         RLS, 
        rds.formula_process        fmp, 
        rds.fmp_batch_size         fbs, 
        rds.plant                  plt, 
        rds.plant                  plt2, 
        rds.PROCESS_DESCRIPTION    fpd, 
        rds.fmp_procedure_text     fpt, 
        rds.fmp_equipment_text     fet, 
        rds.master_formula         frm, 
        rds.project                prj, 
        rds.product                prd 
WHERE  frl.fmp_id = fmp.fmp_id 
AND    fmp.fpd_id = fpd.fpd_id 
AND    fmp.frm_id = frm.frm_id 
AND    frm.prj_id = prj.prj_id 
AND    prj.prd_id = prd.prd_id 
and    FRL.rls_id = RLS.rls_id 
AND    frl.parent_plt_id = plt.plt_id 
AND    frl.plt_Id = plt2.plt_id 
and    fmp.fmp_id = fpt.fmp_id(+) 
and    fmp.fmp_id = fet.fmp_id(+) 
and    fmp.fmp_id = fbs.fmp_id(+) 
--AND    fmp.fmp_id_pathfinder = fpt.fmp_id(+) 
--AND    fmp.fmp_id_pathfinder = fet.fmp_id(+) 
--AND    fmp.fmp_id_pathfinder = fbs.fmp_id(+) 
The duplicate column alias will cause the ambiguous column name problem.

Similar Messages

  • Materialized view creation issue

    I am running into an issue and trying to ascertain issue.
    Scenario:
    I have 2 MV creation scripts. The MV is supposed to get populated by connection from schema to another schema USING DB Links.
    Basically, SAME HOST, SAME RAC DATABASE, just separate schemas.
    The MV creations are just hanging. I see NO alert log mentions. I ran  a SQL trace and yes, I see:
    call count       cpu elapsed       disk query    current        rows
    Parse 0      0.00 0.00 0          0 0           0
    Execute   1011 1.40 73.80 0 0 0           0
    Fetch 1010      1.08 317.57 0 0 0        1010
    total 2021      2.49 391.38 0 0 0        1010
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 109     (recursive depth: 2)
    Elapsed times include waiting on following events:
      Event waited on Times Max. Wait  Total Waited
      ---------------------------------------- Waited  ----------  ------------
      SQL*Net message to dblink 2022 0.00          0.00
      SQL*Net message from dblink 2021 0.46        242.58
    Understandable, but when I do a selective query, the results come back pretty much within 5 seconds.
    DB version is 11.2.0.3.   Is there a BUG that I should know about?
    Here is a snippet:
    CREATE MATERIALIZED VIEW "SCHEMA"."MV_NAME_MV" USING INDEX REFRESH COMPLETE ON DEMAND AS (SELECT distinct mapguide_persons(pl.location_code) "FULL_NAME_COSTCENTER",
    mapguide_jobemp(pl.location_code) "TRUNCNAME_JOB",
    mapguide_empnum(pl.location_code) "FULLNAME_EMPNUMBER_PHONE",
    mapguide_english(pl.location_code) "ENGLISH_NAME_COSTCENTER",
    pl.function_type_lookup_code "FUNCTION_TYPE_LOOKUP_CODE",
    pl.location_code "LOCATION_CODE",
    pl.org_id "ORG_ID"
    FROM [email protected] pl
    WHERE pl.function_type_lookup_code not in ('VALUE','CONSULT')
    and sysdate between pl.active_start_date and active_end_date);
    *Network netstat –in output **
    netstat -in
    Kernel Interface table
    Iface       MTU Met    RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP TX-OVR Flg
    eth0       1500   0 58751025      0 0      0 27335255 0      0      0 BMRU
    eth0:1     1500 0      - no statistics available - BMRU
    eth0:2     1500 0      - no statistics available - BMRU
    eth1       1500   0 5569305513      0 0      0 4365204661 0      0      0 BMRU
    eth2       1500   0 146061981      0 0      0 270589939 0      0      0 BMRU
    eth2:1     1500 0      - no statistics available - BMRU
    lo 16436   0 31731571 0      0      0 31731571      0 0      0 LRU
    The above just hangs and spins its wheels…
    Any ideas are appreciated…
    thanks

    JCGO wrote:
    The above just hangs and spins its wheels…
    And what happens when you issue just the underlying select:
    SELECT distinct mapguide_persons(pl.location_code) "FULL_NAME_COSTCENTER",
    mapguide_jobemp(pl.location_code) "TRUNCNAME_JOB",
    mapguide_empnum(pl.location_code) "FULLNAME_EMPNUMBER_PHONE",
    mapguide_english(pl.location_code) "ENGLISH_NAME_COSTCENTER",
    pl.function_type_lookup_code "FUNCTION_TYPE_LOOKUP_CODE",
    pl.location_code "LOCATION_CODE",
    pl.org_id "ORG_ID"
    FROM [email protected] pl
    WHERE pl.function_type_lookup_code not in ('VALUE','CONSULT')
    and sysdate between pl.active_start_date and active_end_date
    SY.

  • MAT View Creation Performance Issue

    Hello Experts,
    Below query is executing approximately in 1-3 sec.
    select
    COMMITMENT_ID,
    FUNDING_RULE_ID,
    reporting_year||'-'||reporting_period as RepPeriod,
    GET_START_DAY_OF_PERIOD (FUNDING_RULE_ID, reporting_year, reporting_period) START_DAY_OF_PERIODt,
    GET_END_DAY_OF_PERIOD(FUNDING_RULE_ID, reporting_year, reporting_period) END_DAY_OF_PERIOD
    from
      (select
      COMMITMENT_ID,
      FR_ID as FUNDING_RULE_ID,
      COMT_START_DATE,
      --COMT_TERMINATION_DATE,
      GETREPYEARFROMDATE(COMT_START_DATE,FR_ID) as reporting_year,
      GETREPORTINGPERIOD(to_char(COMT_START_DATE, 'mm') ,FR_ID) as  reporting_period
      from
        select
        COMMITMENT_ID,
        COMT_START_DATE,
        --COMT_TERMINATION_DATE,
        COALESCE(CB_FUNDING_RULE_ID,NC_FUNDING_RULE_ID) FR_ID
        from
        (COMMITMENT_TABLE left outer join (CHILD_BENEFICIARY_TABLE left outer join FUNDING_RULE_TABLE a on
        a.FUNDING_RULE_ID = CB_FUNDING_RULE_ID )
        on COMT_BENEFICIARY_REF = CB_BENEFICIARY_REF
        left outer join (NON_CHILD_BENEFICIARY_TABLE left outer join FUNDING_RULE_TABLE b on
        b.FUNDING_RULE_ID = NC_FUNDING_RULE_ID)
        on
         COMT_BENEFICIARY_REF = NC_BENEFICIARY_REF)
    The query is returning 4.5 lacks of rows.
    I want to create a MAT view by using above query and refresh this on daily basis.
    But the MAT view creation is taking more time near about 401sec (6.68min).
    Why the MAT view is taking more time?
    MAT_VIEW
    CREATE MATERIALIZED VIEW "REP_PERIOD_START_END_DATE"
    AS select
    COMMITMENT_ID,
    FUNDING_RULE_ID,
    reporting_year||'-'||reporting_period as RepPeriod,
    GET_START_DAY_OF_PERIOD (FUNDING_RULE_ID, reporting_year, reporting_period) START_DAY_OF_PERIODt,
    GET_END_DAY_OF_PERIOD(FUNDING_RULE_ID, reporting_year, reporting_period) END_DAY_OF_PERIOD
    from
      (select
      COMMITMENT_ID,
      FR_ID as FUNDING_RULE_ID,
      COMT_START_DATE,
      --COMT_TERMINATION_DATE,
      GETREPYEARFROMDATE(COMT_START_DATE,FR_ID) as reporting_year,
      GETREPORTINGPERIOD(to_char(COMT_START_DATE, 'mm') ,FR_ID) as  reporting_period
      from
        select
        COMMITMENT_ID,
        COMT_START_DATE,
        --COMT_TERMINATION_DATE,
        COALESCE(CB_FUNDING_RULE_ID,NC_FUNDING_RULE_ID) FR_ID
        from
        (COMMITMENT_TABLE left outer join (CHILD_BENEFICIARY_TABLE left outer join FUNDING_RULE_TABLE a on
        a.FUNDING_RULE_ID = CB_FUNDING_RULE_ID )
        on COMT_BENEFICIARY_REF = CB_BENEFICIARY_REF
        left outer join (NON_CHILD_BENEFICIARY_TABLE left outer join FUNDING_RULE_TABLE b on
        b.FUNDING_RULE_ID = NC_FUNDING_RULE_ID)
        on
         COMT_BENEFICIARY_REF = NC_BENEFICIARY_REF)
    Is there any way to make the MAT view creation within 3 minutes?

    CREATE MATERIALIZED VIEW "REP_PERIOD_START_END_DATE"
    AS
    with tab as
    select /*+ materialize */ commitment_id,
                           comt_start_date,
                           --COMT_TERMINATION_DATE,
                           coalesce (cb_funding_rule_id, nc_funding_rule_id)
                              fr_id
                      from (      commitment_table
                               left outer join
                                  (   child_beneficiary_table
                                   left outer join
                                      funding_rule_table a
                                   on a.funding_rule_id = cb_funding_rule_id)
                               on comt_beneficiary_ref = cb_beneficiary_ref
                            left outer join
                               (   non_child_beneficiary_table
                                left outer join
                                   funding_rule_table b
                                on b.funding_rule_id = nc_funding_rule_id)
                            on comt_beneficiary_ref = nc_beneficiary_ref)
    select commitment_id,
           funding_rule_id,
           reporting_year || '-' || reporting_period as repperiod,
           get_start_day_of_period (funding_rule_id,
                                    reporting_year,
                                    reporting_period)
              start_day_of_periodt,
           get_end_day_of_period (funding_rule_id,
                                  reporting_year,
                                  reporting_period)
              end_day_of_period
      from (select commitment_id,
                   fr_id as funding_rule_id,
                   comt_start_date,
                   --COMT_TERMINATION_DATE,
                   getrepyearfromdate (comt_start_date, fr_id) as reporting_year,
                   getreportingperiod (to_char (comt_start_date, 'mm'), fr_id)
                      as reporting_period
              from tab);

  • Automatic storage location view creation in maintenace order (IW31)

    Hello,
    Seems like I need some help.
    Have configured automatic storage location view creation for GR and reservation. Configured movement types are 101, 201, 261. While creating reservations (201, 261 mvmnt. types) with mb21 the sloc view is automatically created in material master, and everything seems fine.
    But in iw31 when I specify material number and sloc in a Components tab, I get an error message CO312: "The storage location data is not created". Automatic reservation is not created, and maintenance order can not be saved. Movement type 261 is used for automatic reservations for the maintenance order.
    If I configure message CO312 as a (W)arning  message, then it allows me to save the order and reservation, but sloc view in material master still is not created. Think that's not good and may lead to MRP issues.
    How can I configure automatic sloc view creation in iw31? Is that possible?
    Edited by: Konstantin Dudura on Nov 17, 2009 8:11 PM

    Hi,
    The customization required for Automatic Storage location creation at reservation are:
    Goto : SPRO -> MM -> inventory Management and physical inventory -> Goods issue/ Transfer posting -> Create storage location automatically
    first of all go to Plant and tick the automatic Storage location creation for the Plant. After that goto Movement type and tick the automatic Storage location for movement type 261.
    Regards

  • Tree View Creation error

    Hi,
    I have to create  tree view. I followed the stpes mentioned at the following link.
    Tree View
    I have created a Z-structure and created a table view in the component BT111H_OPPT component.
    While trying to modify the .htm page for the tree view, with the code mentioned at above link, I am getting following error.
    "node_tab is unknown. Not declared by a data statement."
    (see the line number 4 -  nodeTable = "<%= mytreenode->node_tab %>")
    I am using the following code.
    <chtmlb:tableExtension tableId = "Table"
                           layout  = "FIXED" >
      <chtmlb:configTree id                        = "configTree"
                         nodeTable                 = "<%= mytreenode->node_tab %>"
                         nodeTextColumn            = "NODE_TYPE"
                         onCollapseNode            = "nodeCollapse"
                         onExpandNode              = "nodeExpand"
                         onRowSelection            = "select"
                         onNodeClick               = "nodeClick"
                         ajaxDeltaHandling         = "FALSE"
                         headerText                = "Demo Tree"
                         allRowsEditable           = "TRUE"
                         selectionMode             = "SINGLESELECT"
                         table                     = "//mytreenode/Table"
                         tableLayout               = "AUTO"
                         visibleRowCount           = "12"
                         usage                     = "EDITLIST"
                         fillUpEmptyRows           = "FALSE"
                         personalizable            = "TRUE"
                         scrollable                = "TRUE"
                         noFrame                   = "X"
                         downloadToExcel           = "FALSE"
                         onClose                   = "closeTree"
                         onIncreaseSize            = "increaseTree"
                         nodeTextColumnDescription = "NODE" />
    </chtmlb:tableExtension>
    Please let me know where and how should I decalre it.
    Regards,
    Ansal

    Thanks Arun.. for the quick response...
    After view creation, I was directly following your second section of the thread....
    My issue is resolved....
    Hope to get further help for this object development.
    My requirement is add a new assignment block in opportunity screen which will show all the quotation,with their details, created for this opportunity and on click of each quotation id, all the items mapped to that particular quotation should be visible in same view.
    Thanks & regards,
    Ansal

  • Site Creation Issue.

    We had a user report a site creation issue with their site. They had been able to create sites with no problem up to this point. But now, when attempting to crate a site they get an error "User can't be found". But if they create a blank site
    I or a blank team workspace. The site creates without incident. Any idea? The permissions appear to be correct but they can't create anything but blank sites without receiving the error. Maybe check permissions to webparts and templates (Do you know where
    I could do that)? 

    Hi,
    Did you mean create site collections in the CA?
    Did the users have admin permission or other permission? You can use the admin account to check whether it works.
    To narrow down the issue, you can use other web application to check whether it works.
    Maybe the web application had been corrupted.
    You can also check the event log and ULS log to see if anything unexpected occurred.
    To check event log, click the Start button and type “Event Viewer” in the Search box.
    For SharePoint 2010, by default, ULS log is at
    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Reg View creation in Generic

    Hi SDN,
    Im trying to create Generic Data source of View Method. I wanted to create View on BSID ( Closed Customer Invoices) and BSAD ( Open Customer invoices) Tables, But while creating its giving error as "THERE IS NO RELATION BETWEEN THE TABLES"  I want to know how to create Relation Between the tables. Both BSID & BSAD are standard tables, so we cant make any changes.
    Please let me know the procedure to bulid Rlation between the tables.
    Regards
    Sujan

    Hi Siva,
        You have to give relation between these two tables in tab "Table/Join Conditions".
    Creating Views:
    http://help.sap.com/saphelp_webas620/helpdata/en/cf/21ecf9446011d189700000e8322d00/frameset.htm
    View creation fr generic extraction
    Hope it Helps

  • View creation very slow - not materialized view

    I have a view creation script which is running in a fraction of a second in the dev environment but takes over an hour to run in the test environment.
    The test environment is off-site, so I have no direct access to it. It does have a lot more data in than dev, but this is not a materialised view so as far as I understood it the amount of data in the system shouldn't affect the time to create the view.
    I haven't been able to find any information on what can make this happen. In the development environment I can be querying the view (or can lock it directly), and am still able to run the CREATE OR REPLACE statement without any performance impact. The view does contain function calls and is created with the FORCE keyword, but I can't find any evidence that this should affect the speed of creation.
    I am running Oracle 10g (10.2.0.4.0) on Solaris in both dev and test environments.
    Any ideas on what could be causing this are very welcome.
    CREATE OR REPLACE FORCE VIEW DB_OWNER.PER$AGE
    SYSTEM,
    LOCATION,
    EVENT_START,
    SURNAME,
    DOB_STRING,
    DESCRIPTION,
    GENDER,
    OLD_ID,
    URN,
    COMBINED_SCORE,
    LOAD_DATETIME,
    AGE,
    EVENTDATE_FROM,
    EVENTDATE_TO,
    DETAILS,
    AOB
    AS
    SELECT /*+ leading(ad) */
    p.system,
    p.location,
    p.event_start,
    p.surname,
    CAST (
    NVL (
    NVL2 (
    p.dob,
    TO_CHAR (p.dob, 'dd/mm/yyyy'),
    TO_CHAR (
    p.apparent_age
    + ROUND ( (SYSDATE - p.created_datetime_from) / 365, 0))),
    0) AS VARCHAR2 (10))
    AS dob_string,
    p.description,
    p.gender,
    p.old_id,
    p.urn,
    NVL2 (
    p.dob,
    db_owner.app_age_score (p.dob, ssearch.get_target_age),
    db_owner.age_score (p.apparent_age,
    p.created_datetime_from,
    ssearch.get_target_age))
    AS combined_score,
    p.load_datetime,
    psd.age,
    psd.eventdate_from,
    psd.eventdate_to,
    e.details,
    NVL (e.aob, 'N/A') aob
    FROM db_owner.person p,
    db_owner.psd psd,
    db_owner.entity e
    WHERE p.db_key = psd.db_key
    AND psd.age IS NOT NULL
    AND e.system(+) = p.system
    AND p.system IN (SELECT internal_name
    FROM ops$tomcat.feed_details
    WHERE inSearchList = 'true')
    AND e.urn(+) = p.urn;

    Hi,
    Thanks for the response.
    Trying the same thing without the FORCE keyword made no difference, the view still takes a long time to compile and there are no compilation errors.
    On the development system, I have run a long-running query on the view and checked V$Access. This returns a record for the view, but I can still successfully run the CREATE OR REPLACE statement on the view in another session. This appears to show that a record in V$Access doesn't mean that the view can't be recompiled.
    On the test system there are no other sessions connected and no records for the view in V$Access.
    Does anyone have any other ideas?

  • Set operator NE in Database View creation in  join condition

    Hi Experts,
         I have a requirement to set NE(not equal) operator in join condition of Database View creation. Could you please help me how to set in operator.
    Join condition :
    Ex : BSAK-AUGBL NE BSAK-BELNR.
    You know that by default operator is '='. i want to set NE in place of '='.
    Thanks,

    Hi Chinna,
    Check whether if there is any possibility or not to include more key fields like bukrs, lifnr, gjahr etc in the where condition, so that you query may result faster. Then, there won't be any necessary to create the view.
    Hope this helps.
    Please reward if useful.
    Thanks,
    Srinivasa

  • Personalized view creation in OA Framwork

    HI ,
    I am developing a search Trasaction in OAF using Query Region (AtuoCustomization Mode ). I developed the simple search and advanced search with dyamanic where caluse (I am setting the where clause and not using the where caluse genrate by Search Framwork ) . now i have to develope the personalized View page . i am using same method used in simple search and advance search for genrating where caluse dayanamiclly . but problem is that in personiazied view i am not able to invoke that method as i am not getting the how to handle the apply and apply & view result button in view panal . if anyone work on personalized View creation or know anything about creation of personalized view , please share your knowladge . its urgent , please help me
    regards,
    Vishal

    Looks like you are running a page which is part of a multipage transaction. Check the page function and make sure that page is not expecting any parameter, all the corresponding class files are present in the myclasses folder.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • View creation fr generic extraction

    Hai Experts,
    when we are create view from two different table ,wht is the crieteria that should  satisfy  between tables..... and at the time of datasource creation which type we need to select (master/trans)..as i found both master and transaction field in one table
    Can any one send the step by step process to create view..
    I have one more scenario ie .,i need to create a datasource from tables which belong to diff applications and their primary key is different ,can any one tell me how to create a datasource using function module,step by step process..
    thnks in advance,
    Regards,
    Suri

    hi,
    try these links for view creation...
    http://help.sap.com/saphelp_nw04/helpdata/en/f5/35c83ecedc636be10000000a114084/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9b/43473ccf20514ee10000000a114084/content.htm
    http://help.sap.com/saphelp_webas620/helpdata/en/cf/21ecf9446011d189700000e8322d00/frameset.htm
    http://www.sapdb.org/7.4/htmhelp/ee/1c5be2eba711d4aa2800a0c9430730/content.htm
    hope it helps...

  • SharePoint Online list view threshold issues: "because it exceeds the list view threshold enforced by the administrator"

    SharePoint Online list view threshold issues: "because it exceeds the list view threshold enforced by the administrator"
    Office 365 SharePoint Online can be problematic when it comes to exceeding the list item threshold (e.g. 5,000).
    Examples of what happens after exceeding the threshold (e.g. 5,000 items):
    You can’t create new forms for the list in SharePoint Designer.
    You may have challenges with metadata fields in the forms (e.g. adding metadata values, editing metadata values, deleting the metadata column from the list).
    Cannot save the list as a template (i.e. you get the threshold error).
    Issue I'd like assistance with: how can I create a custom NewForm in SharePoint Designer
    when the list exceeds the threshold limit, given this is Office 365 SharePoint Online and I don't have access to increase that limit?
    As a control for my testing, I created another list with just a few custom columns with no list items --it worked fine for that list.
    I also tried clearing local AppData cache which didn't solve it. I'd need Central Admin on O365 SharePoint Online to increase the threshold which I don't have access
    to do. Errors received in SharePoint Designer:
    "Could not save the list changes to the server." After getting this, I tried to work around
    the create new forms issue by saving a copy of the original NewForm as NewForm2 and got the root error that I suspected was underlying it all:
    “Server error: the attempted operation is prohibited because it exceeds the list view threshold enforced by the administrator”.
    Any ideas for how to create a new list form in SD?

    Thanks Alex.
    I just found a couple new workarounds instead of using SharePoint Designer:
    Method 1: Add web parts to the form pages on the client side:
    Go to the list and execute one of these actions depending what form you want to edit: create a new item (NewForm), edit an item (EditForm), or display an item (DispForm).
    With the form you want to edit displayed, go to the gear icon and click "Edit Page".
    You should now see the web part page show up with "Add a Web Part" as an option.
    Add a Content Editor or Script Editor web part.
    Add your custom code to either one to manipulate the HTML objects using your favorite web languages.
    Method 2: Use InfoPath 2013.
       The InfoPath 2013 route appears to work.

  • BPM Workspace User view related issue

    PROBLEM SUMMARY_
    Unable to see filtering options like SEARCH, ASSIGNEE and STATE in User View, I am able to see this in Generic Inbox of BPM workspace
    DETAILED DESCRIPTION_
    I am new to BPM & need some assistance on below scenario-
    TASKS INVOLVED-*
    My BPM process contains 2 tasks
    1.     Initiator task-[Part of Requester role in my JDev Swim lane]
    2.     User Task-To review the request-[Part of Reviewer role in my JDev Swim lane]
    SCENARIO-+
    Flow would be something like, requester enters details in request message & says submit. If request message length is less than 6 characters a review would be required & therefore process flow would go to reviewer task. Reviewer can Approve or Reject the request, if he approves the process will write the request message contents to a file, if the reviewer Rejects the request, requester task would be created again so as to ask requester to enter a message of length>6.
    If entered request message is having length greater than 6, no review would be required. It will be a direct file write.
    CHALLENGE-+
    The challenge is each of these tasks –Initiator task & Review task would be created with DIFFERENT task numbers in BPM workspace, which I do NOT want. I want the Requester tasks task number to be propagated to Reviewer task and I would want to populate this as task number (May be under different column, say Request Id) of Reviewer task as well.
    After reading Oracle BPM docs, I studied that this can achieved using Human tasks-Mapped variable concept.
    I used protected mapped variable/flex variable:*Request Id* in both the above tasks to achieve this.
    PROBLEM-*
    Problem is in BPM workspace’s user view, here we go-
    I created a user view:*HelloWorld* to display the task details, the columns I want are the default columns+Column for mapped attribute:*Request Id*.
    Now even though the Request Id column is populated as expected, I cannot filter the View entries based on Assignee, State or perform any kind of other searches.
    I understand that User views are built based basically on certain filters itself. But post the view creation if user has to make a search-say based on Mapped attribute:*Request Id* in this case, he won’t be able to do so.
    This defeats the entire purpose of Mapped attributes. Oracle document says (check the last bullet point)-
    +"Human workflow mapped attributes (formerly referred to as flex fields) store and query use case-specific custom attributes. These custom attributes typically come from the task payload values. Storing custom attributes in mapped attributes provides the following benefits:+
    +•     They can be displayed as a column in the task listing+
    +•     They can filter tasks in custom views and advanced searches+
    *+•     They can be used for a keyword-based search"+*
    So is this a bug with user views in workspace?
    One more thing that I would like to add-Reason behind using Custom user views is-
    1)     Generic Inbox of BPM Workspace does not give option to make the mapped attribute get displayed/Searched
    2)     I want to customize the Tasklist.
    Edited by: user12183391 on Oct 3, 2011 9:57 PM

    Oh well...
    It seems there's a bug with the XE Database... Sometimes it freezes some components and the SOA Plataform goes crazy.
    Simple system reboot solved.

  • 10.6.7 - general pdf creation issues?

    I wondered whether anyone else had run into this issue after updating to 10.6.7 when using pdfs created by Preview - perhaps related to the pdf/font issue.
    If it is generally happening, then the 10.6.7 pdf-font issue has an even larger
    impact than previously described:
    1. Open a pdf document in Preview
    2. Select a region and save to clipboard
    3. Save as a new pdf file
    4. Then try importing it as a "Picture" into any of the new Office 2011 apps: Word, PPT, etc.
    This crashes my office 2011 apps (latest version, 14.02) But NOT any earlier version of Office (2008. etc.), which may not do as much pdf checking.
    Before the 10.6.7 upgrade (ie, 10.6.6), this never happened with Office 2011.
    Acrobat complains when opening the Preview-created pdfs about 'missing fonts', so I suspect some sort of pdf creation issue.
    Any fixes (besides the previously suggested one of downgrading to 10.6.6)
    If it's a real bug (not just local to my system), then it's a more far-reaching one than previously described.

    rcberwick wrote:
    So, 3 different Apple tech support people say they know this problem affects
    "multiple applications, including any that deal with pdf files" but that "no fix is
    currently in the works"
    That is wrong because it only involves OpenType Postscript fonts.
    The only solution offered so far is to "downgrade by doing Archive & Install" and
    then re-applying each Combo Upgrade, starting with 10.6.3 up to 10.6.6.
    You wouldn't have to do that either. That is the point of a Combo update. You only need to apply the one you want. It includes all of the previous updates.

  • Hierarchy Viewer CSS issue

    Hi,
    I have a Fusion Web Application in Jdeveloper 12C that gets the colors and skinning from a CSS file.
    When i add:
    af|dvt-hierarchyViewer
        background-image: -webkit-linear-gradient(bottom, #FFFFFF 0%, #000000 300%);
        background-color: currentColor;
        background-attachment: scroll;
    to my CSS file and run my application, the Hierarchy opens with a grey colour but then it flashes back to the default light blue gradient of fusionFx-simple-v2.desktop as soon as it tries to fetch data.
    But if i change these settings on the Hierarchy itself, the colour changes to the grey and it stays grey.
    Any help with this will be appreciated
    Stefan du Preez

    Duplicate Hierarchy Viewer CSS issue
    Timo

Maybe you are looking for