Query clause ignores to export records

Hi all;

I am trying to export a few records from table but query clause the customer the throwing error.

SCOTT > customer desc

Name                                      Null?    Type

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

NUMBER OF CUST_ID

CUST_NAME VARCHAR2 (15)

VARCHAR2 (15) REGION

NUMBER OF CUST_CREDIT_LIMIT

$ expdp System/Manager dumpfile = dp:1.dmp tables = scott.customers query = scott. "CUSTOMERS:" where exists (select cust_id from CUSTOMERS c where cust_credit_limit > 12400 and ku$ .cust_id = c.sust_id) "" reuse_dumpfiles = yes

Export: Release 11.2.0.1.0 - Production on Fri Aug 7 17:11:32 2015

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production

With partitioning, OLAP, Data Mining and Real Application Testing options

Start "SYSTEM". "" SYS_EXPORT_TABLE_01 ": System / * dumpfile = dp:1.dmp tables = scott.customers query = scott. CUSTOMERS: "where exists (select cust_id from CUSTOMERS c where cust_credit_limit > 12400 and ku$ .cust_id = c.sust_id)" reuse_dumpfiles = yes "

Current estimation using BLOCKS method...

Processing object type TABLE_EXPORT/TABLE/TABLE_DATA

Total estimation using BLOCKS method: 64 KB

Object type TABLE_EXPORT/TABLE/TABLE processing

ORA-31693: Table object data 'SCOTT '. "' CUSTOMERS ' could not load/unload and being ignored because of the error:

ORA-00942: table or view does not exist

Main table 'SYSTEM '. "" SYS_EXPORT_TABLE_01 "properly load/unloaded

******************************************************************************

Empty the file system set. SYS_EXPORT_TABLE_01 is:

/U01/DataPump/1.dmp

Work 'SYSTEM '. "" SYS_EXPORT_TABLE_01 "completed with error (s 1) at 17:11:50

Hello

I think the problem is that you run the job as system by default, all object references are to the system, you need to change

$ expdp System/Manager dumpfile = dp:1.dmp tables = scott.customers query = scott. "CUSTOMERS:" where exists (select cust_id from CUSTOMERS c where cust_credit_limit > 12400 and ku$ .cust_id = c.sust_id) "" reuse_dumpfiles = yes

TO

$ expdp System/Manager dumpfile = dp:1.dmp tables = scott.customers query = scott. "CUSTOMERS:" where exists (select cust_id scott. CUSTOMER c where cust_credit_limit > 12400 and ku$ .cust_id = c.sust_id) "" reuse_dumpfiles = yes

I also recommend that you use one parfile to avoid problems of interpretation of the characters by the shell

See you soon,.

Rich

Tags: Database

Similar Questions

  • SQL query to retrieve a single record for each employee of the following table?

    Hi all

    Help me on the writing of SQL query to retrieve a single record for each employee of the following table? preferably a standard SQL.

    CREATE TABLE xxc_contact)

    empnum NUMBER,

    alternatecontact VARCHAR2 (100),

    relationship VARCHAR2 (10),

    phtype VARCHAR2 (10),

    Phone NUMBER

    );

    insert into xxc_contact values (123456, 'Rick Grimes', 'SP', 'Cell', 9999999999)

    insert into xxc_contact values (123456, 'Rick Grimes', 'SP', 'Work', 8888888888)

    insert into xxc_contact values (123457, 'Daryl Dixon', 'EN', 'Work', 7777777777)

    insert into xxc_contact values (123457, 'Daryl Dixon', 'EN', 'Home', 3333333333)

    insert into xxc_contact values (123456, 'Maggie Greene', 'CH', 'Cell', 9999999999)

    insert into xxc_contact values (123456, 'Maggie Greene', 'CH', 'Home', 9999999999)

    expected result:

    EmpNum AlternateContact Relationship PhType Phone       

    123456 rick Grimes SP cell 9999999999

    Daryl Dixon EN work 7777777777 123457

    Home 123458 Maggie Greene CH 6666666666

    Thanks in advance.

    994122 wrote:

    Thank you all, that I got a result

    http://www.orafaq.com/Forum/m/620305/#msg_620305

    By Lalit Kumar B...

    Specifically, the two simple solutions provided were:

    1 using the row_number, entitled Oracle ranking based on descending order of the inside telephone each empnum group. And finally selects the lines which has least rank (of least since that order is descending for phone).

    SQL > column alternatecontact format A20;

    SQL >

    SQL > SELECT empnum, alternatecontact, relationship, phtype, phone

    2 from (SELECT a.*, row_number() over r (PARTITION BY empnum ORDER BY phone / / DESC))

    3 FROM xxc_contact one)

    4. WHEN r = 1

    /

    EMPNUM ALTERNATECONTACT RELATIONSHIP PHTYPE PHONE

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

    123456 rick Grimes SP cell 9999999999

    Daryl Dixon EN work 7777777777 123457

    Home 123458 Maggie Greene CH 6666666666

    2. with the help of MAX, Oracle automatically assigns the maximum phone for all the rows in each group of empnum. And finally selects the rows with the maximum phone. Order by clause is omitted here intentionally. You can find out why.

    SQL > SELECT empnum, alternatecontact, relationship, phtype, phone

    2 (SELECT a.*, MAX (phone) over (PARTITION BY empnum) rn FROM xxc_contact one)

    3 WHERE phone = rn

    4.

    EMPNUM ALTERNATECONTACT RELATIONSHIP PHTYPE PHONE

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

    123456 rick Grimes SP cell 9999999999

    Daryl Dixon EN work 7777777777 123457

    Home 123458 Maggie Greene CH 6666666666

    Kind regards

    Lalit

  • Help with the query to select only one record from the result set in double

    Hello

    Please help with the query. Version of Oracle database we use is 10g R2.

    I have a vision that is duplicated IDS, but they are used across the different functions. See below examples of data. Please help me with a query to select only one record (based on ID regardless of the area) from the bottom of the result set of duplicate records. For what is the point of view is there unique records, given the combination of the fields ID, Org, DF, dry, Sub-Sec

    ID
    Org
    DF
    Sec Sub-Sec

    (163)CQCPDMCPDMHD(163)PCENGENGENG(163)CQASICASICIS8888TSTACTACTAC(163)TSHEHESW6789CQINFOINFOFOS6789PCSECSYSSECSYSINFO16789TSSECSYSSECSYSINFO29009PCBMSBMSBMS1

    My result set must eliminate the duplicate identifiers regardless of whoever we choose of the result set. (I mean without distinction Org, DF, s, Sub-s). My expected result set should be.

    ID
    DSB

    DF
    SEC
    Sub-Sec
    (163)CQCPDMCPDMHD8888TSTACTACTAC6789CQINFOINFOFOS9009PCBMSBMSBMS1


    Thank you

    Orton

    Hello

    This sounds like a job for ROW_NUMBER:

    WITH got_r_num AS

    (

    SELECT id, DSB, df, s, sub_sec org

    ROW_NUMBER () OVER (PARTITION BY ID.

    ORDER BY org

    ) AS r_num

    OF view_x

    )

    SELECT id, DSB, df, sub_sec s,

    OF got_r_num

    WHERE r_num = 1

    ;

    He is a Top - N query example, where you choose the elements of N (N = 1 in this case) from the top of an ordered list.

    I hope that answers your question.
    If not, post a small example of data (CREATE TABLE and INSERT, only relevant columns instructions) to your sample data and the results desired from these data.  (I know that you said that you were a view selection.  Just for this thread, pretending it is a picture and post simple CREATE TABLE and INSERT statements to simulate your point of view).
    Point where the above query is to produce erroneous results, and explain, using specific examples, how you get the right results from data provided in these places.  (I didn't quite understand the explanation above.  I don't know why you want to

    ID ORG DF DRY SUB_SEC

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

    1234 CQ DPRK DPRK HD

    and is not

    1234 IS CQ ASIC, ASIC

    or

    TS 1234 IT IT SW

    or

    1234 CQ ASIC ASIC HD

    )
    If you change the query at all, post your modified version.
    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: https://forums.oracle.com/message/9362002

  • block based query clause

    Hi all...

    I use form 10g...
    When I tried the query clause from block...
    I used this query (SELECT * FROM exit INNER JOIN enter ON exit.ent_num = enter.ent_num where to enter departure = 1)...
    When I run the form...
    error frm-40505 oracle unable to execute the query

    Thank you

    Published by: osa3_12 on December 10, 2009 04:33

    Hello

    I think that you are joining two tables which have duplicate column names... In this case you must give the name of different aliases for the similar columns... You cannot use select *...

    Should be selected enter.ent_num enter_ent_num, exit.ent_num exit_ent_num...

    concerning
    Dora

  • sqlldr question - how can we ignore the last record of a file when loading?

    I use sqlldr to automate the loading of a file into a temporary table. I a = 1 skip to ignore the header record, but the file also contains a record of trailer that I also want to jump. Additional recording begins with a T0, but I don't know the number of records before loading.

    Since you said that tail record begins with SO you can use this:

    DOWNLOAD THE DATA
    INFILE 'fichier.dat' BADFILE, DISCARDFILE «file.dis» ' file.bad'
    ADD
    IN THE TABLE table_name
    WHEN (01)! = ' T '
    (
    column names);

    I used! = as the other is not equal to (lower, upper) symbol does not work here

  • JDeveloper does not support the SQL expert, cannot add query clause to view link

    For developers who can know:

    I use JDeveloper 10.1.3.4 and I have two tables, we're STUDENTS, the other is the PRICE, with a one-to-many relationship (a student may have several awards), and ID is the foreign key:
    STUDENTS
    ------------------------
    ID    NAME    DOB
    ------------------------
    9999  JOHN    01/02/1990
       |  
       |  
       |  
       |           AWARDS
       |           ------------------------
       |           ID      DESC      AMOUNT
       |           ------------------------
       ----------- 9999    PELL      500
                   9999    PERKINS   800
                   9999    LOAN      900
    In the application, when a student (9999, JOHN) connects, the information above is displayed. I need to add up all the awards for the student and to display not only the elements of price, but also the total amount of all awards. To do this, I created another object to view named TotalAwards in the object entity the price just to get the total amount. The SQL code of the VO's
    SELECT SUM(Awards.AMOUNT) AS TOTAL
    FROM AWARDS Awards
    Then, a link is created between the students and the TotalAwards, and use of the new link to the view is added to the application module. TotalAwards is now available in the data control palette to be drag-and - drop to pages.

    Problem occurs when the application is invoked. An error is caught before the application can begin. The error message indicates that "the ends or the link view do not specify an attribute.

    It seems that the TOTAL 'SUM (Awards.AMOUNT) AS TOTAL' is not recognized as an attribute. I have reviewed the query clause in the display link to see if it is there, such as:
             Attribute        Bind Variable
             ------------     --------------
             Students.ID      :Bind_Id
    
    
    WHEHE    :Bind_Id = Awards.ID
    There is no such clause in the query clause page. And I can not add a no more, because the page is grayed out and disabled. I think maybe it's for the same reason: TOTAL is not recognized as an attribute of the price.

    How to get around the problem? Or are there other ways to summarize the total amount and view it in the browser?

    Thank you very much for help!


    Newman

    Hello

    Here you have a solution for the TOTAL:
    http://www.freewebalbum.com/blogs/faces/bjanko/blogs.jsp?blog=bjanko20070725180020

    Kind regards

    Branislav

  • Query clause

    Hello

    I use this query in a from clause

    SELECT PM.PATIENT_FILE_NO,
           PE.EPISODE_NO,
           DECODE(CURRENT_LANG_P_S,
                  'P',
                  PATIENT_NAME_P || ' ' || PATIENT_NAME_2_P || ' ' ||
                  PATIENT_NAME_3_P || ' ' || PATIENT_NAME_F_P,
                  PATIENT_NAME_S || ' ' || PATIENT_NAME_2_S || ' ' ||
                  PATIENT_NAME_3_S || ' ' || PATIENT_NAME_F_S) PATIENT_NAME,
           PE.START_DATE,
           PE.END_DATE,
           EXSYS.GET_AGE(PM.DATE_OF_BIRTH) AGE,
           CODES_PKG.GET_DESCRIPTION(PM.GENDER, 103) GENDER,
           PE.ATTENDANCE_TYPE,
           PATIENT_CATEGORY
      FROM RC_PATIENTS PM, RC_PATIENT_EPISODES PE
     WHERE PM.PATIENT_FILE_NO = PE.PATIENT_FILE_NO
       AND PE.STATUS != 'C'
    
    

    The query works in "pl/sql Developer", but when I run the form I had 'query caused no records to retrieve.

    -I wrote

    go_block ('block_name');

    execute_query;

    in a trigger w-n-f-i

    -J' have elements compatible with the number and names of the collected columns of the query, but I have more elements in the same block

    ??

    I found it, thanks

    There are certain triggers prevent execution of code

    Thank you

  • Track ignored support FDM Records

    I try to ignore some loading of MDF records using maps. I have provided #script in the target account and 'Skip' column in the script column, which works very well. I can able to ignore records successfully.

    Now, I want to see the records that are ignored during the loading process. How can I achieve that?

    If you want to discard the records in the mappings, you must set the target as "IGNORE." Then these records will not be exported.

    You can then filter the data in your grid of value target = IGNORE.

    Another option would be to create a custom report that shows lines with to IGNORE in any dimension target value.

    Hope that specifies

  • SQL query to retrieve the same record because no. boxes

    Hi all

    I have a table of Bill XXINV.

    the columns are

    INVH_NO INVH_ITEM_CODE INVH_QTY INVH_BOXES

    1122                XXITEM1                    1                    5

    1123                XXITEM2                     2                   6

    I can do a sql query so that I can retrieve the same records repeated as number INVH_BOXES.

    Select * from XXINV

    where invh_no = 1122

    output:

    INVH_NO INVH_ITEM_CODE INVH_QTY INVH_BOXES

    1122                XXITEM1                    1                    5

    Desired output:

    INVH_NO INVH_ITEM_CODE INVH_QTY INVH_BOXES

    1122                XXITEM1                    1                    5

    1122                XXITEM1                    1                    5

    1122                XXITEM1                    1                    5

    1122                XXITEM1                    1                    5

    1122                XXITEM1                    1                    5

    or

    INVH_NO INVH_ITEM_CODE INVH_QTY INVH_BOXES

    1122 XXITEM1 1 1 of 5

    1122 XXITEM1 1 2 of 5

    1122 1 3 5 XXITEM1

    1122 XXITEM1 1 4 of 5

    1122 XXITEM1 1 5 of 5

    Please suggest. Like I need to print each line in a single page to stick them on boxes so that packaging.

    Kind regards

    Afzal.

    Just add INVH_ITEM_CODE to the connection by the clause.

    Select invh_no

    invh_item_code

    invh_qty

    to_char (, 'fm99') | 'from ' | TO_CHAR (invh_boxes, 'fm99') invh_boxes

    of xxinv

    where invh_no = 1122

    connect

    by level<=>

    and prior invh_item_code = invh_item_code

    and prior sys_guid() is not null

  • Export records of heart rate

    In 2008, I studied the heart rate, swimming speed and the time relationship developed software to assess the effects of the training. At that time, we needed a HR-band, a receiver and sensors to record the lap time. It is now all integrated into the new Apple Watch. So, I just want to have access to the times and HR to see if I can resurrect the MatLab routines...

    What I need is access to the times and human resource records. (I hope they have a timestamp, so I can sync the two).

    Question:

    How can you get access to registered swimming times and recorded heart rate?

    I thought it was possible health app (iOS9) but I can't find the option to export in iOS10?

    Tips appreciated... Thanks in advance.

    For any consultation on iOS 9, in the application of health tap data on health > all, which has an icon of the top export which saves files xml inside a zip archive. This is perhaps similar to iOS 10?

    P.S. I read that on the Apple Watch heart rate data were inaccurate, while swimming so let us know if you have good data about him.

  • RETURN TO THE UPDATE QUERY CLAUSE

    I have a request written in Postgres.   This will pick up the records in the table job_information with the State, as provided by the application (ex: "READY_TO_RUN") and with limit of records like the one provided by the application (ex: 100), then updates the job_information with app get (ex: "ACHIEVEMENTS") and returns that defined (means, returns the data table job_information total for these got put to date with the given State) records for the use of the application.

    Can someone give me advice on the translation in Oracle?   Thank you!!

    Query in Postgres

    UPDATE job_information AS J1
    SET status=?
    FROM
      (SELECT job_name,
        job_group,
        created_date
      FROM job_information
      WHERE status           =?
      AND CURRENT_TIMESTAMP >= scheduled_execution_time
      ORDER BY scheduled_execution_time limit ?
      ) AS J2
    WHERE J1.job_name   = J2.job_name
    AND J1.job_group    = J2.job_group
    AND J1.created_date = J2.created_date RETURNING *;
    

    Example of a query (in postgres):

    UPDATE job_information AS J1
    SET status= 'ACQUIRED'
    FROM
      (SELECT job_name,
        job_group,
        created_date
      FROM job_information
      WHERE status           = 'READY_TO_RUN'
      AND CURRENT_TIMESTAMP >= scheduled_execution_time
      ORDER BY scheduled_execution_time limit 100
      ) AS J2
    WHERE J1.job_name   = J2.job_name
    AND J1.job_group    = J2.job_group
    AND J1.created_date = J2.created_date RETURNING *;
    

    Oracle SQL - query, I wrote it is not working

    UPDATE JOB_INFORMATION SET STATUS=
    (
    WITH J2 as (
                            select job_name, job_group, created_date from (SELECT job_name, job_group, created_date FROM job_information WHERE status= :b and current_timestamp >= scheduled_execution_time order by scheduled_execution_time ) where rownum<= :c
                )
    SELECT distinct :a FROM JOB_INFORMATION J1, J2 WHERE J1.job_name = J2.job_name AND J1.job_group = J2.job_group AND J1.created_date = J2.created_date
    )
    RETURNING * FROM JOB_INFORMATION BULK COLLECT INTO SOMETHING ;
    
    1. create or replace package test_pack
    2. as
    3. type r_tab is (record
    4. test.job_name%type job_name,
    5. (status test.status%type);
    6. type t_tab is table of the r_tab;
    7. function test_func (v_status_o VARCHAR, v_status_i VARCHAR) - USE VARCHAR2
    8. T_tab RETURN PIPELINED;
    9. end;
    10. /
    11. create or replace the BODY of PACKAGE as test_pack
    12. function test_func (v_status_o VARCHAR2, v_status_i VARCHAR2) return t_tab pipelined as
    13. PRAGMA AUTONOMOUS_TRANSACTION;
    14. v_tab t_tab;
    15. Start
    16. Update test
    17. set status = v_status_o :-
    18. where Job_name in (select job_name TEST where status = :v_status_i).
    19. job_name, return STATUS
    20. bulk collect into v_tab;
    21. commit;
    22. because me in 1... loop v_tab. Count
    23. pipe row (v_tab (i));
    24. end loop;
    25. end;
    26. end;
    27. /

    REMOVE the colon before parameters and use the same types of data

  • help how to ignore the header record in the input file

    Hi gurus,

    Kindly help here.

    I'll have to generate the output to CSV file by getting data from the file 'INFILE.csv', a record header in it.

    I would like to know to go to the header record during playback using utl_file.get_line package.please suggest.

    examples of data 'INFILE.csv ':

    NUMBER: the header
    318000000000
    318000000121
    2005002999
    3187209699

    script:


    DECLARE
    fINFILE UTL_FILE. TYPE_DE_FICHIER;
    fOUTFILE1 UTL_FILE. TYPE_DE_FICHIER;

    vINFILE_PATH VARCHAR2 (200): = NULL;
    vOUTFILE_PATH VARCHAR2 (200): = NULL;

    vINFILE_NAME VARCHAR2 (100): = "INFILE.csv";
    vOUTFILE_NAME1 VARCHAR2 (100): = "OUTFILE.csv";

    vGLOBAL_NAME VARCHAR2 (100): = NULL;
    vINPUT_REC VARCHAR2 (1000): = NULL;

    nNEW_NUMBER NUMBER (16): = NULL;
    nMERCH_ID NUMBER (8): = NULL;

    BEGIN
    vINFILE_PATH: = ' / home/RPT / ";
    vOUTFILE_PATH: = ' / home/RPT / ";

    BEGIN

    fOUTFILE1: = UTL_FILE.fopen (vOUTFILE_PATH, vOUTFILE_NAME1, 'W');
    EXCEPTION
    WHILE OTHERS THEN
    UTL_FILE. FCLOSE_ALL;
    RETURN;
    END;

    BEGIN
    fINFILE: = UTL_FILE. FOPEN (vINFILE_PATH, vINFILE_NAME, "R");
    EXCEPTION
    WHILE OTHERS THEN
    UTL_FILE. FCLOSE_ALL;
    RETURN;
    END;

    BEGIN
    LOOP

    nNEW_NUMBER: = NULL;

    UTL_FILE. GET_LINE (fINFILE, vINPUT_REC);

    BEGIN
    SELECT MERCH_ID
    IN nMERCH_ID
    PROD. MERCH
    WHERE NEW_NUMBER = LPAD (nNEW_NUMBER, 12, 0);

    -Creation of the output file for
    BEGIN
    UTL_FILE. Put_line (fOUTFILE1,
    LPAD (nMERCH_ID, 8, 0)
    );

    EXCEPTION
    WHILE OTHERS THEN
    dbms_output.put_line (' error when writing to the outfile1: ' |) SUBSTR (SQLERRM, 1, 250));
    END;

    EXCEPTION
    WHILE OTHERS THEN
    dbms_output.put_line (' error finding MID for merchant - ' | nNEW_NUMBER |) » '|| SUBSTR (SQLERRM, 1, 250));

    END;
    END LOOP;

    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    dbms_output.put_line ('finished - End of file');
    WHILE OTHERS THEN
    dbms_output.put_line (' error reading I / p file ');
    END;

    IF UTL_FILE.IS_OPEN (fOUTFILE1) THEN
    UTL_FILE. FCLOSE (fOUTFILE1);
    END IF;

    IF UTL_FILE.IS_OPEN (fINFILE) THEN
    UTL_FILE. FCLOSE (fINFILE);
    END IF;

    END;
    /

    Hello

    978485 wrote:

    Thanks Frank.

    where should I call the get_line., in my script, I started after the loop as above

    Immediately after open from finifile is a good place:

    ...

    fINFILE: = UTL_FILE. FOPEN (vINFILE_PATH, vINFILE_NAME, 'R');

    -The first line always is a header, to be ignored

    UTL_FILE. GET_LINE (fINFILE, vINPUT_REC);

    ...

    Or you could do later as immediately before the LOOP.

  • Export records in the multipage form

    Please can someone help me with this.

    I am a seasoned database user/developer access, but it's my first foray in PDF forms:

    1. documents of fieldwork have been created on the pages of A4 paper sheet. There are 20 fields on each page. These pages have been analyzed and compiled into multi-page PDF documents.

    2. I want to collect data digitally and flow of data in an Access database custom I will connect with a GIS.

    3. I created a PDF form with fields corresponding to the original form of paper with the appropriate constraints and validations. I type in the new form while you watch the original scan.

    4. I put the first page in my file of PDF form as model hidden by a push button to spawn a new form page at the end of the registration of a new record form.

    5. in my view, to export fields from the form to a csv file to import my database, I need fields with the same base name to export in the same column. Currently as the page number is appended to the Spawn command field, the fields are different fields and therefore are exported to separate columns.

    6. one solution would be to have separate PDF forms for each paper record, but it would be tedious.

    Any ideas?

    Thanks in advance

    Matt

    You need to expand (or have someone build them for you) made to order

    script that will collect the data in the fields and organize it in the

    as you want it to appear. Normally each PDF file is considered a

    single record, so that the workflow that you described, it will take custom

    development.

    Tuesday, December 15, 2015 at 10:39, jackofallpackages

  • Rewriting query clause error

    Hi all;

    I did not finish the rewrite of the query (M.view) clause, trying to activate I get the error message
    and I asked this question "https://forums.oracle.com/forums/thread.jspa?threadID=2543789".
    Question incorrectly displayed data communication model. -If this isn't a duplicate thread.

    Please answer me what was missing here?

    SQL > alter system set query_rewrite_enabled = 'TRUE' scope = SPFILE;
    SQL > grant query rewrite in *;
    Grant succeeded.
    conn xxx/xxxx@xxxxxx
    1 SQL > ALTER SESSION SET OPTIMIZER_MODE = FIRST_ROWS.
    Altered session.
    2 SQL > alter session set query_rewrite_enabled = true;
    Altered session.
    3 SQL > execute dbms_stats.gather_table_stats ('rose', 'mv1');
    PL/SQL procedure successfully completed.
    4 SQL > exec dbms_mview.explain_rewrite ("select * sales ', but 'MV1'");
    BEGIN dbms_mview.explain_rewrite ("select from sales, 'MV1'"); END; *
    * ERROR at line 1:
    ORA-30380: REWRITE_TABLE does not exist
    ORA-06512: at "SYS." DBMS_SNAPSHOT", line 3085
    ORA-06512: at "SYS." DBMS_SNAPSHOT", line 3206
    ORA-06512: at line 1
    thanks in advance...

    Hello

    Run utlxrw.sql to create the table.

    concerning

  • How to display the output of query clause?

    Hello. I use Forms Developer 10g. I have a datablock that uses a from_clause_query. In my from_clause_query, I used a WITH AS SELECT.
    I try to view the output of this query in my forms but the first column, V_CUTOFF_TO not displayed, probably because it is not a database element. It was a result of my initial query WITH AS SELECT month. How can I view this with the release of my from_clause_query. Thanks in advance for the help. Moreover, I am trying to post the contents of my from_clause_query here, but it says sorry, this content is not allowed. I don't know why?

    I was able to solve the problem by creating a stored procedure. I insert the records in a table in the procedure, and then I query the table. Thanks for your help.

Maybe you are looking for