ORA-12060: "form of predefined table does not query definition.

Hi Forum

I did the mistake of the subject when I tried to create a view, materialized in a pre built table with the script above. As can see you in the script, the columns of the table of pre built are equivalent with the columns in the materialized view. The tables and the mv are building based in the same select query. Do you know what is the error?

create the table schema. () SEARCH_MV

IDPROMOTION,

IDBENEFICIO,

IDPROMOTIONSHOW,

TITLE_SECTOR,

TITLE_SUBSECTOR,

TITLE_NUMBERQUOTES,

TITLE_PERCENTAGE,

TITLE_MEDIODEPAGO,

TITLE_DAY,

TITLE_PROVINCE,

TITLE_CITY,

TITLE_NEIGHBORHOOD,

IDW_SECTOR,

IDW_SUBSECTOR,

IDW_NUMBERQUOTES,

IDW_PERCENTAGE,

IDW_MEDIODEPAGO,

IDW_DAY,

IDW_PROVINCE,

IDW_CITY,

IDW_NEIGHBORHOOD,

DESCRIPCIÓN,

TITLE,

BRAND,

LINK,

IMAGEURL,

DAYS,

PROMOCIONINFO1,

PROMOCIONINFO2,

REFUND,

SAVE,

QUOTES,

EXPIRATIONDATE)

Compress

PCTFREE 0

partition by (range (IDPROMOTION)

values p_only score less than (maxvalue)

)

IN SELECT

P.ID AS IDPROMOTION,

B.ID AS IDBENEFICIO,

PE.ID AS IDPROMOTIONSHOW,

COALESCE (R.NOMBRE, SECTORPADRE_SUBSECTOR. NUMBER) AS TITLE_SECTOR,

SR. NUMBER AS TITLE_SUBSECTOR,

COALESCE (CDC. TITLE, ECDC. TITLE) AS TITLE_NUMBERQUOTES,

COALESCE (PA.) TITLE, EPDA. TITLE) AS TITLE_PERCENTAGE,

COALESCE (MP.) TITLE, MPDSS. TITLE) AS TITLE_MEDIODEPAGO,

COALESCE (D.TITLE, ED. TITLE) AS TITLE_DAY,

PROV. ACE TITLE_PROVINCE NUMBER,

L.NOMBRE AS TITLE_CITY,

BAR. NUMBER AS TITLE_NEIGHBORHOOD,

COALESCE (R.PATHW, SECTORPADRE_SUBSECTOR. PATHW) AS IDW_SECTOR,

SR. PATHW AS IDW_SUBSECTOR,

COALESCE (CDC. IDW, ECDC. IDW) AS IDW_NUMBERQUOTES,

COALESCE (PA.) IDW, EPDA. IDW) AS IDW_PERCENTAGE,

COALESCE (MP.) IDW, MPDSS. IDW) AS IDW_MEDIODEPAGO,

COALESCE (D.IDW, ED. IDW) AS IDW_DAY,

PROV. PATHW AS IDW_PROVINCE,

L.PATHW AS IDW_CITY,

BAR. PATHW AS IDW_NEIGHBORHOOD,

DESCRIPCIÓN P.DESCRIPCION AS,

ACE TITLE P.TITLE,

E.TITLE ACE BRAND,

P.URL AS LINK,

P.IMAGE AS IMAGEURL,

CASE WHEN P.IDTIPODEPROMOTION IN (' B', AM ') THEN B.DAYSSTRING

WHEN P.IDTIPODEPROMOTION IN ('E') THEN PE. DAYSSTRING

END AS DAYS,

CASE WHEN P.IDTIPODEPROMOTION IN (' B', AM ') THEN B.INFOBENEFICIOL1

WHEN P.IDTIPODEPROMOTION IN P.PROMOCIONINFO1 ('E') THEN

END AS PROMOCIONINFO1,

CASE WHEN P.IDTIPODEPROMOTION IN (' B', AM ') THEN B.INFOBENEFICIOL2

WHEN P.IDTIPODEPROMOTION IN P.PROMOCIONINFO2 ('E') THEN

END AS PROMOCIONINFO2,

CASE WHEN P.IDTIPODEPROMOTION IN (' B', AM ') THEN B.MAXREFUND

WHEN P.IDTIPODEPROMOTION IN ('E') THEN PE. MAXREFUND

END AS A REFUND,

CASE WHEN P.IDTIPODEPROMOTION IN (' B', AM ') AND THEN TO PA. NUMBER

WHEN P.IDTIPODEPROMOTION IN ('E') THEN EPDA. NUMBER

END AS SAVE,

CASE WHEN P.IDTIPODEPROMOTION IN (' B', AM ') AND THEN OF CDC. NUMBER

WHEN P.IDTIPODEPROMOTION IN ('E') AND ECDC. NUMBER

END AS CITY,

P.EXPIRATIONDATE EXPIRATIONDATE

Of

REGIME. T_PROMOTION P,.

REGIME. B T_BENEFICIO,

REGIME. T_PROMOTIONSHOW PE,

REGIME. PR T_PROMOTIONSECTOR,

REGIME. T_ENTERPRISE, E.

REGIME. T_BENEFICIODAY BD,

REGIME. T_DAY D,.

REGIME. T_BENEFICIOMEDIODEPAGO BMP,

REGIME. T_CANTQUOTES CDC,

REGIME. T_MEDIODEPAGO MP,

REGIME. PA T_PORCSAVE,

REGIME. T_PROMOTIONZONA PZ,

REGIME. T_PROVINCE PROV.

REGIME. T_NEIGHBORHOOD BAR,

REGIME. T_LOCALIDAD L,.

REGIME. T_CANTQUOTES ECDC,

REGIME. EPDA T_PORCSAVE,

REGIME. T_PROMOTIONSHOWDAY PED,

REGIME. ED T_DAY,

REGIME. T_PROMOTIONSHOWMPAGO MEWP,

REGIME. T_MEDIODEPAGO MPDSS,

REGIME. T_SECTORSRAIZ R,.

REGIME. T_SUBSECTORS SR,

REGIME. T_SECTOR SECTORPADRE_SUBSECTOR

WHERE

(P.ID = B.IDPROMOTION (+)) AND (P.ID = PE. IDPROMOTION (+)) AND (P.ID = PR. IDPROMOTION) AND (P.IDENTERPRISE = E.ID (+)) AND

(B.ID = BD. IDBENEFICIO (+)) AND (COMIC BOOK. IDDAYS = D.ID (+)) AND (B.ID = BMP. IDBENEFICIO (+)) AND (B.IDCANTQUOTES = CDC.ID (+)) AND

(BMP. IDMEDIOPAGO = MP.ID (+)) AND (B.IDPORCSAVE = PA.ID (+)) AND (P.ID = PZ. IDPROMOTION (+)) AND (PZ. IDPROVINCE = PROV.ID (+)) AND

(PZ. IDNEIGHBORHOOD = BAR.ID (+)) AND (PZ. IDLOCALIDAD = L.ID (+)) AND (PE. IDCANTQUOTES = ECDC.ID (+)) AND (PE. IDPORCSAVE = EPDA.ID (+)) AND

(PE.ID = PED. IDPROMOTIONSHOW (+)) AND (PED. IDDAYS = ED.ID (+)) AND (PE.ID = STORE. IDPROMOTIONSHOW (+)) AND

(MEWP. IDMEDIODEPAGO = EMDP.ID (+)) AND (PR. IDSECTOR = R.ID (+)) AND (PR. IDSECTOR = SR.ID (+)) AND (SR. IDPADRE = SECTORPADRE_SUBSECTOR.ID (+)) AND (P.APLICAOFERTA <>'MOB');

-CREATE INDEXES

create a materialized view SCHEME. SEARCH_MV

tabletop pass-fail

never of refreshment

activate the query rewriting

IN SELECT

P.ID AS IDPROMOTION,

B.ID AS IDBENEFICIO,

PE.ID AS IDPROMOTIONSHOW,

COALESCE (R.NOMBRE, SECTORPADRE_SUBSECTOR. NUMBER) AS TITLE_SECTOR,

SR. NUMBER AS TITLE_SUBSECTOR,

COALESCE (CDC. TITLE, ECDC. TITLE) AS TITLE_NUMBERQUOTES,

COALESCE (PA.) TITLE, EPDA. TITLE) AS TITLE_PERCENTAGE,

COALESCE (MP.) TITLE, MPDSS. TITLE) AS TITLE_MEDIODEPAGO,

COALESCE (D.TITLE, ED. TITLE) AS TITLE_DAY,

PROV. ACE TITLE_PROVINCE NUMBER,

L.NOMBRE AS TITLE_CITY,

BAR. NUMBER AS TITLE_NEIGHBORHOOD,

COALESCE (R.PATHW, SECTORPADRE_SUBSECTOR. PATHW) AS IDW_SECTOR,

SR. PATHW AS IDW_SUBSECTOR,

COALESCE (CDC. IDW, ECDC. IDW) AS IDW_NUMBERQUOTES,

COALESCE (PA.) IDW, EPDA. IDW) AS IDW_PERCENTAGE,

COALESCE (MP.) IDW, MPDSS. IDW) AS IDW_MEDIODEPAGO,

COALESCE (D.IDW, ED. IDW) AS IDW_DAY,

PROV. PATHW AS IDW_PROVINCE,

L.PATHW AS IDW_CITY,

BAR. PATHW AS IDW_NEIGHBORHOOD,

DESCRIPCIÓN P.DESCRIPCION AS,

ACE TITLE P.TITLE,

E.TITLE ACE BRAND,

P.URL AS LINK,

P.IMAGE AS IMAGEURL,

CASE WHEN P.IDTIPODEPROMOTION IN (' B', AM ') THEN B.DAYSSTRING

WHEN P.IDTIPODEPROMOTION IN ('E') THEN PE. DAYSSTRING

END AS DAYS,

CASE WHEN P.IDTIPODEPROMOTION IN (' B', AM ') THEN B.INFOBENEFICIOL1

WHEN P.IDTIPODEPROMOTION IN P.PROMOCIONINFO1 ('E') THEN

END AS PROMOCIONINFO1,

CASE WHEN P.IDTIPODEPROMOTION IN (' B', AM ') THEN B.INFOBENEFICIOL2

WHEN P.IDTIPODEPROMOTION IN P.PROMOCIONINFO2 ('E') THEN

END AS PROMOCIONINFO2,

CASE WHEN P.IDTIPODEPROMOTION IN (' B', AM ') THEN B.MAXREFUND

WHEN P.IDTIPODEPROMOTION IN ('E') THEN PE. MAXREFUND

END AS A REFUND,

CASE WHEN P.IDTIPODEPROMOTION IN (' B', AM ') AND THEN TO PA. NUMBER

WHEN P.IDTIPODEPROMOTION IN ('E') THEN EPDA. NUMBER

END AS SAVE,

CASE WHEN P.IDTIPODEPROMOTION IN (' B', AM ') AND THEN OF CDC. NUMBER

WHEN P.IDTIPODEPROMOTION IN ('E') AND ECDC. NUMBER

END AS CITY,

P.EXPIRATIONDATE EXPIRATIONDATE

Of

REGIME. T_PROMOTION P,.

REGIME. B T_BENEFICIO,

REGIME. T_PROMOTIONSHOW PE,

REGIME. PR T_PROMOTIONSECTOR,

REGIME. T_ENTERPRISE, E.

REGIME. T_BENEFICIODAY BD,

REGIME. T_DAY D,.

REGIME. T_BENEFICIOMEDIODEPAGO BMP,

REGIME. T_CANTQUOTES CDC,

REGIME. T_MEDIODEPAGO MP,

REGIME. PA T_PORCSAVE,

REGIME. T_PROMOTIONZONA PZ,

REGIME. T_PROVINCE PROV.

REGIME. T_NEIGHBORHOOD BAR,

REGIME. T_LOCALIDAD L,.

REGIME. T_CANTQUOTES ECDC,

REGIME. EPDA T_PORCSAVE,

REGIME. T_PROMOTIONSHOWDAY PED,

REGIME. ED T_DAY,

REGIME. T_PROMOTIONSHOWMPAGO MEWP,

REGIME. T_MEDIODEPAGO MPDSS,

REGIME. T_SECTORSRAIZ R,.

REGIME. T_SUBSECTORS SR,

REGIME. T_SECTOR SECTORPADRE_SUBSECTOR

WHERE

(P.ID = B.IDPROMOTION (+)) AND (P.ID = PE. IDPROMOTION (+)) AND (P.ID = PR. IDPROMOTION) AND (P.IDENTERPRISE = E.ID (+)) AND

(B.ID = BD. IDBENEFICIO (+)) AND (COMIC BOOK. IDDAYS = D.ID (+)) AND (B.ID = BMP. IDBENEFICIO (+)) AND (B.IDCANTQUOTES = CDC.ID (+)) AND

(BMP. IDMEDIOPAGO = MP.ID (+)) AND (B.IDPORCSAVE = PA.ID (+)) AND (P.ID = PZ. IDPROMOTION (+)) AND (PZ. IDPROVINCE = PROV.ID (+)) AND

(PZ. IDNEIGHBORHOOD = BAR.ID (+)) AND (PZ. IDLOCALIDAD = L.ID (+)) AND (PE. IDCANTQUOTES = ECDC.ID (+)) AND (PE. IDPORCSAVE = EPDA.ID (+)) AND

(PE.ID = PED. IDPROMOTIONSHOW (+)) AND (PED. IDDAYS = ED.ID (+)) AND (PE.ID = STORE. IDPROMOTIONSHOW (+)) AND

(MEWP. IDMEDIODEPAGO = EMDP.ID (+)) AND (PR. IDSECTOR = R.ID (+)) AND (PR. IDSECTOR = SR.ID (+)) AND (SR. IDPADRE = SECTORPADRE_SUBSECTOR.ID (+)) AND (P.APLICAOFERTA <>'MOB');

I found the solution by using the option "predefined table with reduced accuracy.

Tags: Database

Similar Questions

  • ORA-28132: the MERGE syntax IN does not support security policy

    Hello

    With the help of Oracle 11 g R2.

    I have the following problem:

    If the user attempts to perform a MERGE INTO statement on a table (T1), it receives the error ORA-28132: The MERGE IN syntax does not support security policy.

    Is there a way I can solve this problem by giving the user more rights on this specific table, T1? Or I need to rewrite the SQL code using UPDATE and INSERT instead MERGER?

    I can't grant POLICE ACCESS TAX-FREE, it would be too powerful privilege...

    Please advise,

    M.R.

    You may need to recreate the political VPD:

    Note:

    In previous versions of Oracle database, when you created a strategy Oracle virtual private database on an application that included the MERGE INTO statement, the MERGE INTO declaration could be avoided with a ORA-28132: Merge into syntax does not support security policies error, due to the presence of the virtual private database policy. From Oracle Database 11 g Release 2 (11.2.0.2), you can create policies on applications that include MERGE INTO operations. To do this, in the DBMS_RLS . ADD_POLICY statement_types parameter, include the INSERT , UPDATE , and DELETE statements, or simply omit statement_types setting altogether. Refer to the Oracle Database Security Guide for more information on the application of the strategies on specific types of SQL statement.

    FUSION

  • ORA-26744: STREAMS capture process "STRING" does not support the "STRING".

    Hi all

    I set up the flow of the oracle to help noted "How to configure one-way replication of SCHEMA [ID 301431.1] level flow" at the level of the schema

    All changes translate perfectly and was running smooth, but today, all of a sudden I faced the error and the capture below is abandoned

    ORA-26744: capture FLOW process 'STREAM_CAPTURE' does not support the "AMSATMS_PAWS". "' B_SEARCH_PREFERENCE ' for the following reason:
    ORA-26783: unsupported data type column

    Some suggestions on the forum are to add a negative ruleset, please suggest me how can I add a set of rules negative and if it is added to the ruleset negative then how will contribute to reflect changes made to this table in the target database...?

    Please help me...

    Thank you

    I have no clue why she treats your XMLTYPE stored as a CLOB as a binary XMLTYPE. The doc, we read:

    http://download.Oracle.com/docs/CD/B28359_01/server.111/b28321/ap_restrictions.htm#BABGIFEA

    Unsupported Data Types for Capture Processes
    
    A capture process does not capture the results of DML changes to columns of the following data types:
    
        *       SecureFile CLOB, NCLOB, and BLOB
        *      BFILE
        *      ROWID
        *      User-defined types (including object types, REFs, varrays, and nested tables)
        *      XMLType stored object relationally or as binary XML                   <----------------------------
        *      The following Oracle-supplied types: Any types, URI types, spatial types, and media types
    
    A capture process raises an error if it tries to create a row LCR for a DML change to a column of
    an unsupported data type. When a capture process raises an error, it writes the LCR that caused
    the error into its trace file, raises an ORA-26744 error, and becomes disabled. 
    

    For your support

    NOTE: 556742.1 -extended data type of support (EDS) to a stream

    to exclude the table:

    NOTE: 239623.1 -how to exclude a Table of Capture of Schema and replication when you use level streams schema replication

    Sounds like a specific patch. You have not indicated what version of Oracle you are using.

  • ORA-13754: 'SQL Tuning Set' 'string' does not exist for the user "sysman."

    ORA-13754: 'SQL Tuning Set' 'string' does not exist for the user "sysman."

    Hello
    in 10g R2 when I run the following in isqlplus I error of the United Nations:
    SELECT * FROM TABLE(DBMS_SQLTUNE.SELECT_SQLSET(
    'my_sql_tuning_set',
    '(disk_reads/buffer_gets) >= 0.05'));
    
    ORA-13754: "SQL Tuning Set"'my_sql_tuning_set" does not exist for user "sysman". 
    No problem if I run it as sys to sqlplus.

    Thanks for the help.

    How to activate for sys isqlplus?

    You are logged in as sysman,

    Check the user from the sql prompt.

    show user
    
  • dbms_sqltune - table does not exist

    I've run this package from Oracle:
    exec DBMS_SQLTUNE.CREATE_STGTAB_SQLPROF(table_name=>'test_prof', schema_name=>'USER');
    
    exec dbms_sqltune.pack_stgtab_sqlprof(staging_table_name=>'test_prof',profile_name=>'SYS_SQLPROF_TEMP');
    and two of them are successfully. But when I try to run a query on the table or simply describe the columns in this table I ORA-04043: test_prof of the object does not exist. Could someone explain to me where this table is stored?

    Tutu wrote:
    I've run this package from Oracle:

    exec DBMS_SQLTUNE.CREATE_STGTAB_SQLPROF(table_name=>'test_prof', schema_name=>'USER');
    
    exec dbms_sqltune.pack_stgtab_sqlprof(staging_table_name=>'test_prof',profile_name=>'SYS_SQLPROF_TEMP');
    

    and two of them are successfully. But when I try to run a query on the table or simply describe the columns in this table I ORA-04043: test_prof of the object does not exist. Could someone explain to me where this table is stored?

    You create the table in lowercase! From there, you use your name of the table in lowercase surrounded by quotation marks:

    SQL> exec DBMS_SQLTUNE.CREATE_STGTAB_SQLPROF(table_name=>'test_prof', schema_name=>'MYUSER');
    
    PL/SQL procedure successfully completed.
    
    SQL> desc test_prof
    ERROR:
    ORA-04043: object test_prof does not exist
    
    SQL> desc "test_prof"
     Name                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
     PROFILE_NAME                                       VARCHAR2(30)
     CATEGORY                                           VARCHAR2(30)
     SIGNATURE                                          NUMBER
     SQL_TEXT                                           CLOB
     DESCRIPTION                                        VARCHAR2(500)
     TYPE                                               VARCHAR2(9)
     STATUS                                             VARCHAR2(8)
     BOOLEAN_FLAGS                                      NUMBER
     ATTRIBUTES                                         SQLPROF_ATTR
     VERSION                                            NUMBER
     SPARE1                                             CLOB
     SPARE2                                             BLOB
    

    Or better, specify uppercase when you create the staging table.

    The most interesting is that when I try to run the package even once again, I have this pile of errors:

    Of course, the table already exists. You should drop everything first to be able to recreate it.

    Nicolas.

  • Strange behavior with Report Generation Toolkit. Table does not table.

    We use a Word 2003 (.doc) document as a template for a summary of the report.  It works fine on the development PC.  It fills the fields in the document and fills the chart correctly, as shown in the picture below.

    However, he cannot even on another station.  Although the 2D table is identical and so is the software to investigate the matter, the table does not get filled correctly.  I studied using Word 2010 (.docx) as a model, with the same results.

    I was not able to understand what is different between stations 2 and why it does not work on the 2nd station.  I googled similar questions on the Web site of NOR and was only this article in the knowledge base concerning the new lines in the cell, which is not my case.

    That's what I have on the 2nd machine:

    The table that is sent to the table contains the appropriate data :

    I just found out this is a known bug, which obviously has not yet been resolved (finally... at least until LV2012SP1).

    See these threads:

    http://forums.NI.com/T5/LabVIEW/problem-with-append-table-and-Word-2010/TD-p/1268246

    and

    http://forums.NI.com/T5/LabVIEW/report-generation-MS-Word-table-bug/m-p/1605170

    I'll try the workarounds suggested and report back...

  • Partition table does not have a valid system partition

    I am working on a Dell XPS 420 computer for a customer.  She has Windows Vista installed on it (not sure what version of Vista).

    He's doing a loop, wherever it loads to the point where I can see the bottom and the mouse, but it stops there.  After 5 minutes of him sitting on this screen, it restarts, I can't access one of the Advanced menu F8.  I tried Safe Mode, and after that it loads the crcdisk it restarts, it does with Safe Mode, Mode safe mode with networking Mode and safe mode with command prompt.  I can't use the last known configuration because it will just try to load and eventually restart.

    Things I've tried is that I ran a diagnosis of hard drive and memory, and they both pass.

    I tried the repair with the regedit option and load the system hive in the registry.

    I tried the bootrec command.

    Well I put in a disk for Installation of Vista and choose the repair option.  I did the auto diagnosis and repair option (first choice I think) and I checked the report after he finished saying that it fixes itself and needed to restart (which he did not in fact)

    Well the result that came was that the Partition Table does not have a valid System Partition.

    I tried the bootrec command, and they all said it has repaired but it did not, when I tried to do the bootrec /rebuild he gave me the message "element not found".

    I ran a test diagnosis system and I received the following message

    System test
    error code 0146
    Msg error code 2000-0146
    MSG HDD 0 - self-test log contains previous errors. Given the code and can be used by the support message technology guide to help diagnose the problem.

    be honest, I just need to know if I need to replace the hard drive or not, it's for a customer.

    I did not see if the HDD is set to AHCI or SATA in the bios again, but I will when I get home today, but I would like some answers backup.

    Hi countryboyofal,

    I suggest that you contact Dell support for the outcome of the diagnostic system.

    http://support.Dell.com/support/topics/global.aspx/support/DellCare/contact_us?c=us&l=en&s=Gen&redirect=1

     

    I hope this helps!

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • ORA-20987: APEX - interactive report region does not exist in the application

    ORA-20987: APEX - interactive report region does not exist in the application

    I'm trying to get the query of an international registration (interactive report) on a specific page in my application.

    The code I am using is thesi:

    create or replace function get_report_query (nPage_id number)

    return varchar2

    as

    l_report apex_ir.t_report;

    l_query varchar2 (32767).

    l_list varchar2 (32767).

    number of nRegion_id;

    number of nIR_id;

    OWA.vc_arr nm;

    VL owa.vc_arr;

    BEGIN

    SELECT region_id

    IN nRegion_id

    Of apex_application_page_regions

    WHERE application_name = "E-BRIL.

    AND page_id = nPage_id

    AND source_type = "interactive report";

    nIR_id: =.

    apex_ir.get_last_viewed_report_id (p_page_id = > nPage_id,)

    p_region_id = > nRegion_id);

    NM (1): = "DUMMY_JUST_TO_SET_UP_OWA_UTIL";

    VL (1): = 'WHATEVER ';

    OWA.init_cgi_env (nm.count, nm, vl);

    l_report: = APEX_IR. () GET_REPORT

    p_page_id = > nPage_id,

    p_region_id = > nRegion_id,

    p_report_id = > 0);

    l_query: = l_report.sql_query;

    because me in 1.l_report.binds.count

    loop

    l_list: = l_list | i||'. '|| l_report. Binds (i) .name | » ='|| l_report. Binds (i) .value;

    end loop;

    Return l_query;

    end;

    /

    I want to get the query of the IR on my page 3. And I run;

    get_report_query (3)

    That's what I get:

    ORA-20987: APEX - interactive report region does not exist in application, page 3 and 1278226325207011749 region. -Contact your administrator of the application.

    ORA-06512: at "APEX_040200.WWV_FLOW_ERROR", line 630

    ORA-06512: at "APEX_040200.WWV_FLOW_ERROR", line 911

    ORA-06512: at "APEX_040200.WWV_FLOW_WORKSHEET_UTIL", line 33

    ORA-06512: at "APEX_040200.WWV_FLOW_WORKSHEET_UTIL", line 55

    ORA-06512: at "EBR_OWNER. GET_REPORT_QUERY', line 19

    The regio_id seems ok, because when I ask this region_id of apex_application_page_regions, id 1278226325207011749 is returned.

    Page 3 is also correct.

    I tried to follow Denes Kubicek his blog (Denes Kubicek ApEx BLOG: interactive report query is).

    What I'm doing wrong here?

    We use the Apex 4.2.

    Thanks in advance.

    Reg,

    Chris

    1717220 wrote:

    Please update your forum profile with a recognizable username instead of "1717220": Video tutorial how to change username available

    ORA-20987: APEX - interactive report region does not exist in the application

    I'm trying to get the query of an international registration (interactive report) on a specific page in my application.

    The code I am using is thesi:

    create or replace function get_report_query(nPage_id IN number)
    return varchar2
    as
    l_report  apex_ir.t_report;
    l_query  varchar2(32767);
    l_list  varchar2(32767);
    nRegion_id number;
    nIR_id number;
    nm  owa.vc_arr;
    vl  owa.vc_arr;
    BEGIN 
    
        SELECT region_id
        INTO nRegion_id
        FROM apex_application_page_regions
        WHERE application_name = 'E-BRIL'
          AND page_id = nPage_id
          AND source_type = 'Interactive Report';
    
        nIR_id :=
          apex_ir.get_last_viewed_report_id (p_page_id        => nPage_id,
                                            p_region_id      => nRegion_id);
    
        nm(1) := 'DUMMY_JUST_TO_SET_UP_OWA_UTIL';
        vl(1) := 'WHATEVER';
        owa.init_cgi_env( nm.count, nm, vl );
    
        l_report := APEX_IR.GET_REPORT (
                        p_page_id  => nPage_id,
                        p_region_id => nRegion_id,
                        p_report_id => 0); 
    
        l_query := l_report.sql_query;
        for i in 1..l_report.binds.count
        loop
            l_list := l_list||i||'. '||l_report.binds(i).name||'='||l_report.binds(i).value;
        end loop;
    
    return l_query;
    end;
    

    I want to get the query of the IR on my page 3. And I run;

    get_report_query (3)

    That's what I get:

    ORA-20987: APEX - interactive report region does not exist in application, page 3 and 1278226325207011749 region. -Contact your administrator of the application.

    ORA-06512: at "APEX_040200.WWV_FLOW_ERROR", line 630

    ORA-06512: at "APEX_040200.WWV_FLOW_ERROR", line 911

    ORA-06512: at "APEX_040200.WWV_FLOW_WORKSHEET_UTIL", line 33

    ORA-06512: at "APEX_040200.WWV_FLOW_WORKSHEET_UTIL", line 55

    ORA-06512: at "EBR_OWNER. GET_REPORT_QUERY', line 19

    The regio_id seems ok, because when I ask this region_id of apex_application_page_regions, id 1278226325207011749 is returned.

    Page 3 is also correct.

    I tried to follow Denes Kubicek his blog (Denes Kubicek ApEx BLOG: interactive report query is).

    What I'm doing wrong here?

    We use the Apex 4.2.

    The '0' in line 31 should be "nIR_id".

    What is the purpose of the lines 24-26?

  • Plan TOAD table does not exist

    Hello

    I use TOAD for Oracle queries normal and trying to see the execution plan. However it says plan table does not exist.

    Do you have someone encountered this error?

    Thank you

    You can create like below on your own pattern of GR 11, 2 If you created the private table.

    CREATE TABLE scott. TOAD_PLAN_TABLE
    (
    STATEMENT_ID VARCHAR2 (30 BYTE),
    NUMBER OF THE PLAN_ID ARGUMENT,
    DATE TIME STAMP,
    REMARKS VARCHAR2 (4000 BYTE),
    VARCHAR2 (30 BYTE) OPERATION,
    VARCHAR2 (255 BYTE) OPTIONS,
    OBJECT_NODE VARCHAR2 (128 BYTE),
    PROPRIETAIRE_OBJET VARCHAR2 (30 BYTE),
    OBJECT_NAME VARCHAR2 (30 BYTE),
    OBJECT_ALIAS VARCHAR2 (65 BYTE),
    OBJECT_INSTANCE INTEGER,
    OBJECT_TYPE VARCHAR2 (30 BYTE),
    OPTIMIZER VARCHAR2 (255 BYTE),
    NUMBER OF SEARCH_COLUMNS
    INTEGER ID,
    PARENT_ID INTEGER,
    INTEGER DEPTH,
    POSITION INTEGERS,
    COST INTEGER,
    CARDINALITY, INTEGER,
    BYTE INTEGERS,
    OTHER_TAG VARCHAR2 (255 BYTE),
    PARTITION_START VARCHAR2 (255 BYTE),
    PARTITION_STOP VARCHAR2 (255 BYTE),
    ID_PARTITION INTEGER,
    ANOTHER LONG,
    VARCHAR2 (30 BYTE) DISTRIBUTION,
    CPU_COST INTEGER,
    IO_COST INTEGER,
    TEMP_SPACE INTEGER,
    ACCESS_PREDICATES VARCHAR2 (4000 BYTE),
    FILTER_PREDICATES VARCHAR2 (4000 BYTE),
    PROJECTION VARCHAR2 (4000 BYTE),
    TIME AROUND,.
    QBLOCK_NAME VARCHAR2 (30 BYTE),
    CLOB OTHER_XML
    )
    TABLESPACE USERS;

    Kind regards
    Kerry

  • a key for the table does not exist in the table

    Hi guys,.

    I imported several tables of physical layer in the administration tool. So, I want to do new foreign key between tables join in the physical schema.
    Required fields for posting a link between these tables are set up. When I press the ok button, an error message is displayed:
    "a key corresponding to the table does not exist in the table blablabla. You want to create a? »

    In fact, what is this error? I don't have all the idea about it. The number of the type of the fields is the same, the names are also the same. I think that he should not have problems to make the new foreign key. But why is it happening?

    Thank you

    Hello

    It is the primary key of the first table. You might not have set this column as the primary key of this table at the level of the db.

    Thank you
    Imtiaz.

  • LOV inside the inner table does not!

    Hello

    I have a Master Advanced Table and an internal Table (more advanced) retail. (I know it's a performance problem, but..)  :()

    I have a number of customer LOV in internal table. But when I select a row in the LOV I don't get the value returned to my return of goods. Page popup LOV just stay there without responding to any request post.

    I'm on 11.5.10 RUP4.

    Thank you
    Wine

    In my view, that this feature is not supported as indicated in the dev guide:

    "The inner table does not support LOVs. You must use a different user interface.

  • flashback table does not

    Hello

    I use oracle 10g R2 on linux X 86. I got reminiscence are the true value. one of my table was accidentally truncated.
    now I want what he back.other tables are reduced thanks to the flashback technology.

    but this error that "the definition of table has been changed" I not made any changes to the table definition.

    What could be the problem? even if I have backup, but would still like to know and retrieve it using flashback.

    return of flame retention objective has been set at 900. and table was droped well before that.

    Help, please

    Thanks and greetings
    VD

    Well it's okay and it isn't a mistake. Flashback table does NOT work with the DDL changes that you did on your table to Truncate. If you want to return to the table with Flashback, you need to use Flashback Database technology or traditional backup and restore techniques are the only station.
    HTH
    Aman...

  • How to pass the form on a table after a query?

    With the help of Oracle 11.2 and Apex 4.1.
    1. I use a form on a table with buttons: QUERY, INSERT, DELETE and CANCEL.
    2. after INSERT and DELETE, the shape is erased.
    3 but I would remove the form after the QUERY. Well, I want to clarify when the user wants to that he erased!
    4. and, in fact, I have a process to clear the Cache for the button CANCEL.
    5. when I click on CANCEL, there is a flash like redraws the screen.
    6 and I think this is the case, is that after the cache is cleared, the variable RCD_ID of the page has the prior value and treatment of the "table row" retrieves the file once more.
    7 so I return values that I wanted to clear! Looks like I'm being undermined by the functionality of the ARF. (ARF, ARF!)

    1. I tried to change the "Go to page nn" to clear the cache for the page, but that seemed to make no difference.
    2. I tried to adjust the page RCD_ID variable to "as I do after DELETION, but that has not worked either to CANCEL.

    Thoughts?

    I guess it's just me, but the extremely annoying part of the APEX is that some simple obvious things – like the form of compensation - have no obvious simple solution. I would say, there are a few obvious approaches, but none seems not to work. You would think that a 'CLEAR' button would be a standard button or CANCEL to had an option to clear the form and or clear a list of items on the page.

    Howard

    Howard (DBA in training) wrote:

    For the button CANCEL, 1) I clear the cache of the page and 2) I put the variable RCD_ID (P2_RCD_ID) ". But without effect. When I consider the debug report, I don't see any indication that CANCEL was pressed or that these processes have been executed. So, maybe they are not running. I see the record being extracted again - which is what I want to avoid.

    Processes are not executed because the page is not submitted. The Cancel button does a redirect, not a shipment:

    apex.navigation.redirect('f?p=21997:2:13040303230582::NO:::')
    

    Change the button action to present, with the value of the request as "CANCEL".

    By default, generated by the wizard Cancel button will be created to perform a redirect. The anticipation is that the behavior required to navigate to another page in the application without changes to session state or process.

  • Alert on custom table does not

    Hello

    I create a custom alert based on a custom table. The event fires only when insert or update the table.

    And then I create or update the data, but the alert does not and then I check the history of this alert, no data found.

    My diagram is PVL and was recorded in Oracle.

    My custom table is XPV_INV_TRANSPORT_COST_DTL and has been registered with the AD_DD API. REGISTER_TABLE and AD_DD. REGISTER_COLUMN.

    and this custom table stands and all the privileges granted to applications too.

    Is there any step I'm missing to generate the alert?

    Any Suggestion?

    Kind regards

    THERY

    Hello

    I found a solution, in the installation of the tab of the alert form, I filled the work unit and how it works!

    My Question is if this (operational unit) field must be filled?

  • table does not exist (when I try to compile the package)

    Hi all

    I can choose from table1 using simple script.

    But when I try to compile the package with select from it table1 I get the message:

    PL/SQL: ORA-00942: table or view does not exist

    Please help me understand how this is possible.

    What additional information should I place them here for you to help me?

    Thanks in advance.

    UPD: The object name is SYS. V_$ PROCESS

    I choose him by using script, so I need all grants.

    But what is the problem when I try to do in the package?

    2788367 wrote:

    Hi all

    I can choose from table1 using simple script.

    But when I try to compile the package with select from it table1 I get the message:

    PL/SQL: ORA-00942: table or view does not exist

    Please help me understand how this is possible.

    What additional information should I place them here for you to help me?

    Thanks in advance.

    It is very likely that you've got access to the table via a role. This allows you to use SQL to access.

    With packages, the grant must be directly to your schema, bypassing a role.

Maybe you are looking for