Extenal Table question..

Hi everyone,
I am new to working on "EXTERNAL TABLES".Is it possible to add another column(which is not
in the flat file) with a "defalut value" ?
I am just trying to create a simple "EXTERNAL TABLE"..
question 1
==========
EX:
===
Flat file that i get will be like this (sample)
ENG,England,English
SCO,Scotland,English
IRE,Ireland,English
WAL,Wales,Welsh
If i create a external table like the following everyting would be fine..
CREATE TABLE countries_ext (
  country_code      VARCHAR2(5),
  country_name      VARCHAR2(50),
  country_language  VARCHAR2(50)
ORGANIZATION EXTERNAL (
  TYPE ORACLE_LOADER
  DEFAULT DIRECTORY ext_tables
  ACCESS PARAMETERS (
    RECORDS DELIMITED BY NEWLINE
    FIELDS TERMINATED BY ','
    MISSING FIELD VALUES ARE NULL
      country_code      CHAR(5),
      country_name      CHAR(50),
      country_language  CHAR(50)
  LOCATION ('Countries1.txt','Countries2.txt')
PARALLEL 5
REJECT LIMIT UNLIMITED;
but i need another column with a "default value" "N"  which is not in flat file
CREATE TABLE countries_ext (
  country_code      VARCHAR2(5),
  country_name      VARCHAR2(50),
  country_language  VARCHAR2(50)
ORGANIZATION EXTERNAL (
  TYPE ORACLE_LOADER
  DEFAULT DIRECTORY ext_tables
  ACCESS PARAMETERS (
    RECORDS DELIMITED BY NEWLINE
    FIELDS TERMINATED BY ','
    MISSING FIELD VALUES ARE NULL
      country_code      CHAR(5),
      country_name      CHAR(50),
      country_language  CHAR(50)
    -- Valid_flag default value "N"  Is it possible to add this
                                     column while creating the external table?
                                     this column is not there in the flat file.
  LOCATION ('Countries1.txt','Countries2.txt')
PARALLEL 5
REJECT LIMIT UNLIMITED;
quetion2
========
LOCATION ('Countries1.txt','Countries2.txt')
I have multiple files (around 150) which are in the same format.
Do i have to mention all the file names in the location clause? if i have to create a table
on those 150 file?
Ex  LOCATION ('Countries1.txt','Countries2.txt','Countries3.txt','Countries4.txt','Countries5.txt','Countries6.txt','Countries7.txt','Countries8.txt', and so on....)
or
Is it possible to put (countries*.txt)?sorry if this topic have discussed somewhere in the forum.
Thanks
phani

Hi Hoek,
thanks for the reply...
You could also just select an extra 'N' when selecting from your external table:You are correct hoek..we can do like that too..but i would like to know is it possible to
have that column in the table itself ?
ex: when creating the external table..something like the following
valid_flg  default value 'N'  Is it possible to put (countries*.txt)?
Just give it a try?
I tried it before posting this forum..it is not taking the file names like that...and it is throwing error..
is there any other option to specify multiple files?thanks
phani

Similar Messages

  • Table question/problem

    This is an html table question, but since I am working with
    CF on this, I thought I would post here for help.
    I query and cfoutput the data in a table. The table has ten
    columns. The first five are alpha numeric and the last five are
    numeric. The output displays fine.
    What the want to do now is to put a black border around the
    number columns, the last five.
    I tried to make each column its own table, but that just puts
    a box around each value, the columns are not connected.
    How can I do this ?
    Thanks for helping.

    Put a thin black left border in the sixth column and a
    similar right border in the tenth (last) column.
    It is neater and advisable to use CSS.
    <style type="text/css">
    <!--
    .bdrLft {
    border-left-color:#000000;
    border-left-width:thin;
    -->
    </style>
    <td class="bdrLft">
    The inline formatting will look like:
    <td style="border-left-color:##000000;
    border-left-width:thin;">
    Do the same for the top border (last 5 column headers). The
    bottom border may be trickier. The idea is to apply bottom border
    at the last query count. One can do without the top and bottom
    borders, however.

  • SQL and External table question

    Hello averyone,
    I have a file to be read as an external table part of it is below:
    ISO-10303-21;
    HEADER;
    FILE_DESCRIPTION((''),'2;1');
    FILE_NAME('BRACKET','2005-07-08T',('broilo'),(''),
    'PRO/ENGINEER BY PARAMETRIC TECHNOLOGY CORPORATION, 2004400',
    'PRO/ENGINEER BY PARAMETRIC TECHNOLOGY CORPORATION, 2004400','');
    FILE_SCHEMA(('CONFIG_CONTROL_DESIGN'));
    ENDSEC;
    DATA;
    #5=CARTESIAN_POINT('',(5.5E0,5.5E0,-5.1E1));
    #6=DIRECTION('',(0.E0,0.E0,1.E0));
    #7=DIRECTION('',(-1.E0,0.E0,0.E0));
    #8=AXIS2_PLACEMENT_3D('',#5,#6,#7);
    The first question is: how to ignore the lines until the DATA; line or SQL already does it for me?
    The second question is: since the fields of interest are separated by commas and the first field does not interest me (it is solved with a varchar2) how can I read the following fields as numbers ignoring the (,# and ) characters please?
    Thanks for any help.
    Sincerely yours,
    André Luiz

    The SKIP option can be used with SQL*Loader to skip a certain number of lines before starting to load. Off hand I cannot see any easy way to load the data in the format given. The format does not resemble a typical CVS format. You can look at the test cases provided for SQ*Loader in the Oracle® Database Utilities guide - or simply write PL/SQL code to load this data manually using UTL_FILE.

  • Parent child table question

    HI i have some questions which iam unclear please help me
    1) in a parent child relationship.. is it always 1-m relation from parent to child?
    2) can a parent table be on many side? i.e can a child - parent be 1- m?
    3) if i itake employee as child table and department as parent table then dept_id will be the foreigh key in employee table ...
    Now if i want to add a new employee who is not assigned to any department can i add it ?
    4) In an identifying relationship ... a child table has concatenated primary key (pk of child,pk of parent)
    should we still add any other primary key to the table....in addition to this concatenated key?
    thanks in advance
    raj

    Hi!
    1) in a parent child relationship.. is it always 1-m relation from parent to child?
    yes unless you create a unique index on the foreign key column
    2) can a parent table be on many side? i.e can a child - parent be 1- m?
    no, if you need an n-m you will need an intersection table
    e.g. employees - emp_dept - departments
    in this case the emp_dept table would contain the foreign keys of employees and departments
    3) if i itake employee as child table and department as parent table then dept_id will be the foreigh key in employee table ...
    Now if i want to add a new employee who is not assigned to any department can i add it ?
    no, you will have to insert the master first
    Best regards,
    PP

  • Internal table question

    Hi Everybody-
    I am very new to SAP and i have question regarding internal tables. I have struture called "ZMI_VENDOR_TO_BW_GENERIC_V_TAB" which i get from another sap system thru SAP XI. Now i need to traverse thru this structure  and add these values into custom database table. So i have declared an internal table like below
    <b>data:itab_venkat type ZMI_VENDOR_TO_BW_GENERIC_V_TAB occurs 10.
      data vendorid type c.
      itab_venkat = Input-Generic_Vendor-Generic_Vendor_Record1.
      LOOP AT itab_venkat.
      vendorid = itab_venkat-generic_vendor_id1.
    endloop.
    </b>
    i am getting an error saying occurs cannot be used and also getting an error at the loop statement, Can somebody please correct me, i am very new to SAP.in the loop i am getting the vendor id and then i should update the database table.
    Please help me.
    Thank you
    Venkat

    hi venkat,
    check these links..
    http://cma.zdnet.com/book/abap/index.htm
    http://www.sapdevelopment.co.uk/
    http://www.sap-img.com/
    http://juliet.stfx.ca/people/fac/infosys/abap.htm
    http://help.sap.com/saphelp_46c/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_46c/helpdata/en/d6/0db357494511d182b70000e829fbfe/frameset.htm
    http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm
    http://www.sapgenie.com/abap/example_code.htm
    http://www.geocities.com/SiliconValley/Campus/6345/abapindx.htm
    http://help.sap.com/printdocu/core/Print46c/en/Data/Index_en.htm
    http://help.sap.com/saphelp_40b/helpdata/en/4f/991f82446d11d189700000e8322d00/applet.htm
    http://www.sap-img.com/abap-function.htm
    http://www.sapgenie.com/abap/code/abap19.htm
    http://www.sap-img.com/abap/more-than-100-abap-interview-faqs.htm
    http://www.planetsap.com/Tips_and_Tricks.htm
    http://help.sap.com/saphelp_40b/helpdata/ru/d6/0dc169494511d182b70000e829fbfe/applet.htm
    http://www.henrikfrank.dk/abapexamples/SapScript/symbols.htm
    http://www.henrikfrank.dk/abapexamples/index.html
    http://sap.ittoolbox.com/documents/document.asp?i=752
    http://members.aol.com/_ht_a/skarkada/sap/
    http://sappoint.com/abap/
    http://members.tripod.com/abap4/SAP_Functions.html
    http://members.ozemail.com.au/~anmari/sap/index.html
    http://www.planetsap.com/Userexit_List.htm
    http://www.planetsap.com/Tips_and_Tricks.htm
    http://www.kabai.com/abaps/q.htm
    http://www.planetsap.com/Userexit_List.htm
    http://help.sap.com/saphelp_bw21c/helpdata/en/c4/3a8090505211d189550000e829fbbd/frameset.htm
    http://www.sapgenie.com/abap/bapi/example.htm
    http://help.sap.com/saphelp_45b/helpdata/en/65/897415dc4ad111950d0060b03c6b76/content.htm
    http://www.sap-basis-abap.com/index.htm
    http://help.sap.com/saphelp_40b/helpdata/en/fc/eb2c46358411d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_46c/helpdata/en/aa/aeb23789e95378e10000009b38f8cf/frameset.htm
    http://www.geocities.com/ResearchTriangle/1635/system.html
    http://www.sapdesignguild.org/resources/MiniSG/3_Managing/3_Functions_Table_Control.htm
    http://help.sap.com/saphelp_45b/helpdata/en/d1/801bdf454211d189710000e8322d00/content.htm
    http://www.sapfans.com/sapfans/repos/saprep.htm
    http://www.planetsap.com/howdo_a.htm
    http://help.sap.com/saphelp_util464/helpdata/en/69/c2516e4ba111d189750000e8322d00/content.htm
    http://www.sapgenie.com/abap/smartforms_detail.htm
    http://www.sap-img.com/abap.htm
    http://help.sap.com/saphelp_46c/helpdata/en/fc/eb2d67358411d1829f0000e829fbfe/content.htm
    http://www.geocities.com/victorav15/sapr3/abap.html
    http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm
    http://abap4.tripod.com/Other_Useful_Tips.html
    http://help.sap.com/saphelp_45b/helpdata/en/cf/21ee2b446011d189700000e8322d00/content.htm
    http://www.sap-basis-abap.com/sapmm.htm
    http://sap.ittoolbox.com/nav/t.asp?t=303&p=448&h1=303&h2=322&h3=448
    http://sapfans.com/
    http://cma.zdnet.com/book/abap/ch03/ch03.htm
    http://help.sap.com/saphelp_40b/helpdata/en/4f/991f82446d11d189700000e8322d00/applet.htm
    http://sappoint.com/abap/
    http://www.henrikfrank.dk/abapuk.html
    http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm
    http://www.sapgenie.com/abap/index.htm
    http://www.sap-img.com/abap.htm
    http://www.sapdevelopment.co.uk/tips/tipshome.htm
    http://help.sap.com/printdocu/core/Print46c/en/Data/Index_en.htm
    http://sap.ittoolbox.com/nav/t.asp?t=322&p=322&h1=322
    http://sap.ittoolbox.com/nav/t.asp?t=448&p=448&h1=448
    http://www.thespot4sap.com/
    http://www.kabai.com/abaps/q.htm
    http://www.geocities.com/mpioud/Abap_programs.html
    http://www.sapgenie.com/abap/tips_and_tricks.htm
    http://www.sapassist.com/code/d.asp?whichpage=1&pagesize=10&i=10&a=c&o=&t=&q=&qt=
    For FAQ
    http://www.sap-img.com/abap/more-than-100-abap-interview-faqs.htm
    http://www.sapgenie.com/faq/abap.htm

  • Temp table Question

    In Oracle... can we use temp tables in procedures??? what would be the performance issue if I use a temp table in procedure?? After the procedure is run.. how can I assure that the temp table is deleted???

    Hi,
    You have miss interpreted Justin. He clearly replied all your questions which you have highlight in you 2nd post. You can use global temporary table in procedures but nto in manner in which you are using.
    First of all your creation of temporary table inside a procedure is wrong. Create this table at SQL> prompt, as you create normal tables.
    I don't see any requirment in which you have to create a table inside a procedure. The thing you are trying is not logical. Secondlly, you are firing a DDL statement inside a procedure so, you have to EXECUTE_IMMEDIATE.
    Now, we come back to temporary table. You create temporary table on the SQL> prompt and use this table in your procedure as normal table. Perform any insert, update or delete on this table. Different user who perform DML on this table will have their own copy of data, means every user working on temporary table has it own copy of data.
    Regarding the delete of data. You dont' have to worry bout this as oracle itself truncate data from temporary table when user finised with his session.
    Any other doubt on temporary tables welcomed........

  • Filter Table question

    Question regarding 'local menu | Filter Table' option.
    I have a long sheet (1000+ entries) that has customer names in a column.  There is over 200 distinct customers in this column.  However, when I choose the above option, it only shows 25 names.
    Is this a known limit?  If so, is it possible to change the names that show on the list, so the most frequent / common names are shown?
    Just looking for a quick on-the-fly quick filtering which I do dozens of times per day.
    P.S  Trying to switch from Excel for Mac which does have this capability.
    Thanks
    Nick

    I am just wondering if there is a hard limit of 25 entries that are shown, no matter how many different names there are. 
    It appears that the maximum number is 25 entries in the dropdown filter list. However, you can filter on any value you want via Edit Table Filters in the dropdown or by clicking the Filter icon upper right.
    SG

  • Basic table question - include empty rows

    Hi msdn,
    I create SSRS reports for MS CRM 2011 in Visual Studio Shell 2010 (SQL Server 2012).
    For
    my Dataset, i use fetch xml from the crm. 
    I'm currently creating a report which  should list all the lost opportunities from one year grouped by the reason(statuscode)
    of their loss.
    The table below is working but it doesn't include "empty statuscodes"(Reasons with no opportunities attached to
    it)
    (Stückzahl 2013 = number of opportunities) (Angebotssumme 2013= Sum of all opportunities in CUR)
    I have a list in my crm with all the possible reasons, a number of  25 Statuscodes.
    I want them all to appear in the table and when there is no lost opportunity linked to it, just display a 0.
    Below is my dataset query and as you see, i select the opportunity first and statuscode is a field in it
    <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true">
    <entity name="opportunity">
    <attribute name="name" />
    <attribute name="customerid" />
    <attribute name="estimatedvalue" />
    <attribute name="statuscode" />
    <attribute name="opportunityid" />
    <order attribute="name" descending="false" />
    <filter type="and">
    <condition attribute="statecode" operator="eq" value="2" />
    <condition attribute="statuscode" operator="not-null" />
    <condition attribute="estimatedvalue" operator="not-null" />
    <condition attribute="actualclosedate" operator="not-null" />
    </filter>
    <link-entity name="new_automatisierung" from="new_verkaufschance" to="opportunityid" alias="ae"></link-entity>
    </entity>
    </fetch>
    So my question is which possibilities i have to achive my goal?
    Is it even possbile with this dataset?
    I hope i made it clear enouth for you guys to understand. As you can see, im fairly new to SSRS.
    Thank you in advance

    Hi there,
    You may need two queries to do this, #1 to retrieve status codes & opportunities and #2 above query to get details.  Bind the table to #1 query.  Then use lookup or lookupset function to retrieve results from #2.
    http://technet.microsoft.com/en-us/library/ee210531.aspx
    You might have more luck in Dynamics forum.
    http://community.dynamics.com/crm/f/117/t/108149.aspx
    cheers,
    Andrew
    Andrew Sears, T4G Limited, http://www.performancepointing.com

  • Transaction PP02 / HRP1001 table question

    Hi Friends,
    We're creating new objects under different categories (example., Department, Operating Unit) in transaction PP02. I have the following questions in regards with this?
    1. Is the information stored in the backend in database tables HRP1000 / HRP1001 / HRP1002?
    2. How can we differentiate between the objects stored in different category (example., Department, Operating Unit). FYI... all of these categories are having same plan version, object type, infotype, subtype, and planning status.
    Regards,
    Aman

    Hi,
    Why can't you simply make use of short text and long text within infotype 1000? You could use, for instance, D or OU to distinguish. For example: D - Sales, OU - Procurement etc.
    Infotype 1003 serves a different purpose. Per my knowledge, it allows you to flag objects that do not take part in normal reporting. It influences how objects appear in a structure (side-by-side vs hierarchy). Please check the following SAP help on it:
    http://help.sap.com/erp2005_ehp_04/helpdata/en/bb/bdb282575911d189240000e8323d3a/frameset.htm
    Infotype 1002 is helpful but it will just add to user maintenance. Also, the descriptions are not stored in HRP1002. You have to pick the reference number (TABNR) for an entry and then read HRT1002 to get the description from field TLINE.
    HRP1000 on the other hand stores short text and long text, so it is easier to read and report on. Short text and long text also appear when you view the structure through PPOSE and also available on user record on IT0001.
    Hope this helps.
    Donnie

  • Oracle Pl/Sql table question..

    Hi guys,
    I have an Oracle PL/SQL question. I don't
    know which board can i ask it. This is why
    i am asking here.
    I declare a PL/SQL table(traditional array),
    and populate it in a session. Another user logged on with another session and wanted to access this PL/SQL table data, But He/she received "No Data Found".
    Is the PL/SQL table session scope?
    Pl/Sql table declared in Package Spec
    and the procedures to populate and
    access the data in/from this Pl/Sql table
    are coded in package body.
    Thanks...Ali
    null

    Hi guys,
    I have an Oracle PL/SQL question. I don't
    know which board can i ask it. This is why
    i am asking here.
    I declare a PL/SQL table(traditional array),
    and populate it in a session. Another user logged on with another session and wanted to access this PL/SQL table data, But He/she received "No Data Found".
    Is the PL/SQL table session scope?
    Pl/Sql table declared in Package Spec
    and the procedures to populate and
    access the data in/from this Pl/Sql table
    are coded in package body.
    Thanks...Ali
    null

  • Older Business HTML and Dynamic Page Table question

    I am not sure if anyone will know here (or if this is the best place to post), but I have a question concerning using the Business HTML template library controls/API for use with ITS. I am attempting to use the "Dynamic Page Table" control, and have hit some problems. Does anyone have any example code they can share on getting this to work correctly (ie, paging through records, selecting from rows, etc)? I have "torn apart" the underlying Javascript and even modified my code to adjust for some formatting issues that the API's do not handle, however, my "pages" all display at once in the beginning and only hide when I use one of the paging icons (forward,back,all back, etc). THe "isVisible" parameter seems to do nothing for the "page" DIVs. Currently running the latest version of ITS and R/3 4.6b on the backend if that helps. Also, the example from the SAP Design Guild cookbook is very basic and does not "page" as I need. Thanks in advance!
    CSolomon

    Check the following Tables
    FND_FORM_CUSTOM_RULES
    FND_FORM_CUSTOM_SCOPES
    FND_FORM_CUSTOM_ACTIONS
    FND_FORM_CUSTOM_PARAMS

  • Basic table question

    Sorry for the basic question, but what I am trying to figure
    out is the best way to do something. I have a main table and I want
    to insert a table into it for a nav bar about 1/4 of the way down
    on the main table. I am wondering which of these 3 ways to "best"
    do it, all 3 I have played with do but I am wondering the best way:
    1 - place it to align at the top and hit the return key
    before until is down to where I want it
    2 - place a empty table above it and make the height of it an
    amount to push the nav bar table down to where I want it
    3 - place it to center align and then use a margin on the
    bottom to push it up to where I want it
    Thanks.

    614mike wrote:
    > Sorry for the basic question, but what I am trying to
    figure out is the best
    > way to do something. I have a main table and I want to
    insert a table into it
    > for a nav bar about 1/4 of the way down on the main
    table. I am wondering which
    > of these 3 ways to "best" do it, all 3 I have played
    with do but I am wondering
    > the best way:
    >
    > 1 - place it to align at the top and hit the return key
    before until is down
    > to where I want it
    Definately NO
    > 2 - place a empty table above it and make the height of
    it an amount to push
    > the nav bar table down to where I want it
    Height is invalid so NO
    > 3 - place it to center align and then use a margin on
    the bottom to push it up
    > to where I want it
    Nearly. Why don't you align it to the top and use a top
    margin to push
    it down....that's more logical.
    Use some css like this:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
    Transitional//EN"
    http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">
    <title>Untitled Document</title>
    <style type="text/css">
    #mainTable td {
    background-color: #CCCCCC;
    #menuHolder {
    margin-top: 100px;
    #menuHolder td {
    background-color: #99CC99;
    </style>
    </head>
    <body>
    <table id="mainTable" width="730" border="0"
    cellspacing="0"
    cellpadding="0">
    <tr>
    <td valign="top">
    <table id="menuHolder" width="730" border="0"
    cellspacing="0"
    cellpadding="0">
    <tr>
    <td>Menu</td>
    </tr>
    </table>
    <p>Other Content</p>
    <p>Other Content</p>
    <p>Other Content</p>
    <p>Other Content</p>
    <p>Other Content</p>
    <p>Other Content</p>
    <p>Other Content</p>
    <p>Other Content</p>
    <p>Other Content</p>
    <p>Other Content</p>
    <p>Other Content</p>
    <p>Other Content</p>
    <p>Other Content</p>
    </td>
    </tr>
    </table>
    </body>
    </html>

  • Importing one table question

    I have a DMP file and I want to import all tables except one (it's a large table). I know I can do that with a parameter file, but my question is, can I.........
    import all but the 1 table (the large one), start the import of that 1 table and have people start using the DB while that one table is importing. This large table does not have critical data they need to access right away so my thought was that I could import everything else first (small amount of data), start the import of the large table and they users could access the DB while that 1 table is importing.
    Due to special circumstances IMP/EXP is their only backup solution (please no lectures on that, I KNOW, I know....., but it is what it is)

    I can't think of anything that would prevent this from working. You just need to make sure that the large table does not have any ref constraints, or other associations with the other tables that may get screwed up while the other users are using the database.
    Dean

  • Aggregation Table Question

    Guys,
    Firstly let me say hello to the community. I am relatively new to OBIEE and can I apologise up front if some of my questions seem a little too straight forward.
    I am trying to setup some aggregation on my tables. I have 4 tables: Actual Summary, Budget Summary, Forecast Summary and Actual Outlet (Outlet is a catalogue or a brochure). As you might have guessed I need to set an aggreation level for actual (We have a version dimension) so that any measure will get data from the summary table when outlet is not included in the report. That's easy enough, the complication is that we don't budget or forecast at outlet level and there will never be a budget outlet or forecast outlet table. Any idea how I would go about setting this up in the logical table fragmentation window?
    Cheers,
    Jim.

    answered by myself.

  • Summary Tables Questions...

    Hi to everybody,
    I use Oracle Discoverer 10.1.2 and created some summary tables - using both methods : being specified by me and Discover automatically defined them....
    I have two questions:
    1) Is there any way to define the summary table(materialized view in the 'language' of Oracle Database ) in the application db user and not in the Discoverer Repository db owner.....????
    NOTE: I have created the Discoverer Repository in a user , let's say EUL, whereas all referenced tables in the summary tables are owned in another user , say HIS...
    Simply , I ask if a summary table can be created in the HIS dataschema and not in EUL.....
    2)Is there any way to give the summary table a more meaningful name in the process of creating it..... I mean a name different from this one: EUL5_MV102497
    Thanks , a lot
    Simon

    Hi Simon
    As mentioned by Sabine, if you create the materialized views in the database you have full control. To answer your question I always build my summary tables in the schema of the user who owns the EUL.
    However, I would have thought that you can do what you ask, but I'm not so sure. In theory, all you need to do in order to make this work is to make sure the EUL owner and the owner of the schema into where you want to insert the summary table has the following privileges:
    These are the grants the EUL needs:
    ALTER ANY MATERIALIZED VIEW
    CREATE ANY MATERIALIZED VIEW
    DROP ANY MATERIALIZED VIEW
    ANALYZE ANY
    These are the privileges needed by the user in whose schema you intend to create the materialized view:
    CONNECT
    RESOURCE
    GLOBAL QUERY REWRITE
    With these privileges granted you should be able to create summary tables inside Discoverer and have full control over the schema in which the materialized view is created and the name of the materialized view. I say should be able to because it doesn't seem to work. Please read on.
    To control the MV schema and name, I should be able to use this workflow:
    1. When you are in the manual summary folder process, you will come to a screen that allows you to maintain Combinations.
    2. From the Combinations screen, highlight a combination and click the Properties button.
    3. The Database Storage Properties dialog box will open.
    4. In the Database Storage Properties dialog box, use the drop-down alongside the Table Owner and switch this to be a user who has the privileges mentioned earlier.
    Note: the drop-down is not visible until you click in the Table Owner box
    5. Click in Table Name (this is the name of the materialized view) and change it to a name that complies with your naming standards.
    6.Change any other properties you wish, then click OK.
    7. Click Finish to complete the summary folder.
    At this point, even though I had granted the Global Query Rewrite to the other user, Discoverer Admin stopped and reported that the user needed this privilege. I was therefore unable to complete the summary folder process. Interestingly enough, the materialized view was actually created but I, as the owner of the EUL, was unable to use it. This is because in order for the EUL owner to be able to use an existing MV / Table that is owned by someone else, the other user needs to have run a grant like this:
    GRANT SELECT ON MY_MV TO EUL_OWNER WITH GRANT OPTION
    But how can this be done because the table is being created by me? The problem therefore is that only the owner of the MV can grant this but when you are inside Discoverer Admin you are not logged in as that user. I therefore am suspicious that, despite Discoverer having a screen to do so, it is not possible to create a summary table in someone else's account.
    Has anyone been able to make this work?
    In summary though, if the intention is to produce a materialized view that everyone can use then the above doesn't appear to work. However, it looks like you are able to create a materialized view within a user's schema that is only available to that user. This opens up the interesting possibility that you could create different materialized views for different users, thus giving users individual copies and potentially different copies of the data.
    It would be interesting if someone were to test this out and report back. My only concern would be that once created, because it is the EUL owner who has the ALTER and DROP privileges, how would the schema owner update it? As I say, this is an interesting conumdrum.
    Personally, as stated at the beginning, I always create my summary folders (aka materialized views) in the EUL owner's schema.
    I hope this helps
    Best wishes
    Michael Armstrong-Smith
    URL: http://learndiscoverer.com
    Blog: http://learndiscoverer.blogspot.com

Maybe you are looking for