Create a report based on different schema objects

Hello

I have a situation of reporting for my database performance.

Let me explain my requirment.

There are 2 diagrams in my database called X, Y

X owns all of the performance of the related data. But read X objects access.

Now in APEX, a developer that dev1 is mapped to the database schema I Y through WS1.

I can't map DEV1 to database drawing X for security reasons.

When I am creating a report as DEV1, it's allowing me to create based on schema objects belonged there.

However it is not allowing me to create a report based on objects belonged to X, although there are CERTAIN privileges of the items of x.

Can be a help in this?

Concerning
Barro

Hello

Choose your post on workshop SQL works?

Are sure you grant select privilege to your application to the analysis of schema?

BR, Jari

Tags: Database

Similar Questions

  • How to create a report based on the item selected from the list of selection?

    Hello

    I created a tables_LOV based on:

    Select table_name table_name user_tab_cols r, d

    where column_name like '% _type % '.

    Then I created a ListOfTables page element, display in a selection list and pointing to tables_LOV.

    I run the page, and I can choose the table I want in the drop-down list.

    How to create a report based on the selected element? (ex: select * from selected_table)

    Thanks in advance

    Salah

    Hi Salah,

    Allright, take a look at this page: http://apex.oracle.com/pls/apex/f?p=vincentdeelen:collection_report

    I think that simulates what you are trying to accomplish. I've implemented the simplest method I could think of.

    The report is based on a collection of apex. If you are not familiar with this, you should study the documentation: APEX_COLLECTION

    To recreate my example, you should:

    (1) create a report (interactive) on your collection

    SELECT *
       FROM APEX_collections
     WHERE collection_name = 'MY_COLLECTION'
    

    (2) create a selection list page_item for the tables that you want to display (in my case, this is called "P38_TABLES")

    (3) create a dynamic action that triggers on the evolution of your selection list page_item. Dynamic action must be a parade of PL/SQL procedure the following code:

    declare
      l_query varchar2(4000);
    begin
      l_query := 'select * from '||:P38_TABLES;
      if apex_collection.collection_exists
            ( p_collection_name => 'MY_COLLECTION' )
      then
        apex_collection.delete_collection
          ( p_collection_name => 'MY_COLLECTION' );
      end if;
    
      apex_collection.create_collection_from_query
        ( p_collection_name => 'MY_COLLECTION'
        , p_query           => l_query
        );
    end;
    

    Make sure that you add your page_item 'Page to send items' section.

    (4) add a real extra action that makes an update of the report area.

    Here are two photos describing the da:

    http://www.vincentdeelen.com/images/OTN/OTN_COLLECTION_REPORT_DA1.PNG

    http://www.vincentdeelen.com/images/OTN/OTN_COLLECTION_REPORT_DA2.PNG

    Good luck and greetings,

    Vincent

    http://vincentdeelen.blogspot.com

  • Create a report based on the Emails in folders

    Our emails are stored in specific folders depending on which group is the application or through electronic mail.  I have a group that wants to e-mail, daily/weekly reports for all their emails, but I don't have the bandwidth to collect and provide the information manually.  I am creating a report, will include e-mails from "their case" in E10, but I do not think that this is possible.  Anyone know or have a method they use?

    I have daily and weekly reports that are generated with these data for all emails that we send, but I don't want to share these reports because it's WAY too much information.

    Thanks for the help!

    Drewann

    Big question, drewannp... Unfortunately, file-based reporting is not available. Exist records for purposes of organization; If you have your emails carefully sorted in E-mail groups, you can run reports on this... but nothing for file-based. Sorry!

  • How to create a report based on the selection of a node of a tree

    Hello

    I am new to Oracle Apex and tried to build a tree and also an interactive report based on column empno from emp table.

    I created a tree based on the emp table. Now, I want to see the records in the employee selected in the tree.

    This is the query of the tree:

    Select case when connect_by_isleaf = 1 then 0
    When level = 1 then 1
    of another-1
    end the status,
    level,
    'ENAME' as the title,
    NULL as an icon,
    'EMPNO' as value,
    NULL as ToolTip,
    NULL as link
    of ' #OWNER # '. " EMP.
    Start by "MGR" is nothing
    connect prior "EMPNO" = "MGR".
    siblings arrested by 'ENAME '.

    Can someone tell me step by step how to go from here?

    I tried to follow the thread Re: question of tree but could not understand a lot of it.

    The approach to reload the page and display the report is fairly simple.

  • You start by creating a new page element that will be used to store the selected node ID, for example. P100_SELECTED_NODE (you can do atext element and change hidden once everything works as expected)
  • Change the query of the tree and the link column in the SQL of tree definition to a link to the same
    for example if your page is 100, you'd do the tree node a link to the same page but the value of the P100SELECTED_NODE with id_ of the node selected
    This is done here
    {message: id = 4410987}
    In this case, it would be

    ' f ? p = & APP_ID.: 100 :'|| : APP_SESSION |': P100_SELECTED_NODE :'|| EMPNO as link

    Now when you click on a link to tree node, it would be back to the same page, but set the P100_SELECTED_NODE with the empno of the clicked node.

  • All that's left to do, change your report so that it refers to the new point inorder to filter records for this employee empno i.e

    SELECT ...
      ..
    WHERE empno= :P100_SELECTED_NODE
    
  • Create a report based on view

    Hi all

    I wanted to create a form with report based on two tables:

    1. I created a display (called COMBO) based on two tables
    2. I then created a form with the opinion-based report

    Until then, everything seemed fine until I tried to edit existing records - I get the error:
    ORA-20505: Error in DML: p_rowid=2002082600001172, p_alt_rowid=REPATRIATION_ID, p_rowid2=, p_alt_rowid2=. ORA-01776: cannot modify more than one base table through a join view 
    
    Unable to process row of table COMBO.
    Note: REPATRIATION_ID is the primary key of the table of repatriation. The other table is a plaintiff.

    & when I tried to create a new record - I got the error:
    ORA-01776: cannot modify more than one base table through a join view 
    
    Unable to process row of table COMBO.
    Someone enlighten me please!

    Kind regards
    Kamo

    Published by: Kamo 03/12/2009 02:33

    Hi Kamo,

    You create a trigger of "instead of" (insert/update/delete) on your sight to treat inserts etc in the tables 'real '.

    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this response in marking it as useful or Correct ;-)

  • Create a report based on reviews of capacity planning

    It is sort of a noob question, but I don't know how to do this.  I have attached the screenshot, I want to be able to send this form as a report.  I would do this?

    The report which is probably the closest to virtual machines VMWare Cluster capacity, just plan or run.

    Golan

  • OBIEE support creating reports from 2 different sources

    Hello guys

    I'm new to BI. Can someone let me know how to create a report using 2 different data sources.
    Ex: Assume we have 10G and SQL server, can one import tables to RPD and join 1 & size of 10 G and 1 fact of SQL server to the tables of 10 G. If so,.

    (1) the repository will be compatible?
    (2) it is advisable to do this kind of modeling?
    (3) will affect the performance of the reports?

    Your opinion is highly appreciated.

    Yes, you can create presentation services using Union reports
    The RPD, I don't think
    but try

    Thank you

  • Creating classic report to the stored procedure.

    How can we create a report based on a stored procedure out parameter.

    Can someone please help.

    Thank you

    Nani.

    Nani4850 wrote:

    Out parameter is a multi-level object type.

    I found a way to sort of basis a report on the parameter OUT procedure. The approach is:

    1. call the procedure in a process before PL/SQL areas, convert the object returned in an XML document and store in a collection XMLType column:

    declare
    
      k_rate_query varchar2(255) := 'RATE_QUERY';
    
      l_rate_type_code  number;
      l_rate_query      rate_rec;
      l_xml             xmltype;
    
      l_seq_id number;
    
    begin
    
      l_rate_type_code := to_number(:p1_rate_type_code);
      api_pkg.rate_query(l_rate_type_code, l_rate_query);
      l_xml := xmltype.createXML(l_rate_query);
    
      if not apex_collection.collection_exists(k_rate_query)
      then
        apex_collection.create_collection(k_rate_query);
      end if;
    
      select
          seq_id
      into
          l_seq_id
      from
          apex_collections
      where
          collection_name = k_rate_query
      and n001 = l_rate_type_code;
    
      apex_collection.update_member_attribute(k_rate_query, l_seq_id, 1, l_xml);
    
    exception
    
      when no_data_found
      then
        apex_collection.add_member(
            p_collection_name => k_rate_query
          , p_n001 => l_rate_type_code
          , p_xmltype001 => l_xml);
    
    end;
    

    2. use a SQL/XML query on the XML collection in the region report source:

    select
        rq.*
    from
        apex_collections ac
      , xmltable(
            '/RATE_REC/RATE_TBL/RATE_REC_TYPE'
            passing ac.xmltype001
            columns
                action_code         varchar2(20)  path 'ACTION_CODE'
              , rate_key            number        path 'RATE_KEY'
              , rate_type_code      varchar2(5)   path 'RATE_TYPE_CODE'
              , program_key         varchar2(12)  path 'PROGRAM_KEY'
              , rate                number(8,5)   path 'RATE'
              , effective_date      date          path 'EFFECTIVE_DATE'
              , current_yn          varchar2(1)   path 'CURRENT_YN'
              , non_current_dt      date          path 'NON_CURRENT_DT'
              , non_current_by_id   varchar2(4)   path 'NON_CURRENT_BY_ID'
              , non_current_reason  varchar2(400) path 'NON_CURRENT_REASON') rq
    where
        ac.collection_name = 'RATE_QUERY'
    and ac.n001 = to_number(:p1_rate_type_code)
    
  • Report based on the return values from checkboxes

    Hi guys,.

    I have a question about the boxes and a report.

    Is it possible to create a report based on a list of dynamic control, where I can score different points of the brand. for example:
    select * from table where colomn <> :PX_CHECKLIST
    With a radio group ii without problem and when I mark only 1 entry in the list of control that works too, but I would like to have the ability to mark more than one entry and validity of these marked entries that the report should be implemented...

    If anyone has an idea how to get account, please let me know.
    Should I create a box separated each entry area to be able to refer to them?

    Thank you
    Patrick

    Hi Patrick
    We are working on the same problem... ;-)
    I'spent 2-3 recent
    days attempted to understand how to treat the boxes in a tabular form
    Looks like you had the same problem
    My solution is...
    The checkox "ChkBox" returns the values 36:58:423:46:422:421 etc.
    This box is passed to a function of package 'GetEquipmentSql (ChkBox-online pArr2)"used s Source for a Pl/Sql statement

    Function GetEquipmentSql (pArr2 in Varchar2)
    Return Varchar2
    as
    When Varchar2 (2000);
    Wselectionnez Varchar2 (2000): = ' Select re. Room_Id, r.Name, Count (1) of Room_Equipment re, Hall r';
    Win a Varchar2 (2000);
    l_vc_arr2 APEX_APPLICATION_GLOBAL. VC_ARR2;
    BEGIN
    l_vc_arr2: = APEX_UTIL. STRING_TO_TABLE (pArr2);
    If l_vc_arr2.count > 0 Then
    FOR z IN 1.l_vc_arr2.count LOOP
    If z > 1 then
    Win: wIn = | ',';
    end if;
    Win: wIn = | l_vc_arr2 (z);
    END LOOP;
    Wselectionnez: = Wselectionnez | «where are.id = re.» Room_Id';
    If l_vc_arr2.count > 0 Then
    Wselectionnez: = Wselectionnez | ' and re.equip_id IN ('| win |') ' ;
    End If;
    Wselectionnez: = Wselectionnez | When;
    Wselectionnez: = Wselectionnez | "Room_Id group, r.name';
    Wselectionnez: = Wselectionnez | ' Having count (1) > = ' | l_vc_arr2. Count;
    On the other
    Wselectionnez: = "Select Room.Id, Name, 0 from Room;";
    End If;
    Return (wSelect);
    END;

    The function returns
    *' Select Re. Room_Id, r.Name, Count (1) of Room_Equipment re, Hall r where are.id = re. Room_Id and re.equip_id (36,58,423,46,422,421) GROUP of Room_Id, r.name'; *

    I did it the easy way, I showed you the code
    Do you understand my solution?
    / Gunnar

  • Create a report of performance... not so easy simple :-)

    Hello
    I m trying to create a performance report monthly with a very simple page layout:

    • CPU utilization for the last month
    • Use of memory for the past month
    • Use of the network for a month
    • Use (disk i/o) for the past month

    I would like to generate this report each month and then sent it by mail to the owner of this technical environment.

    This medium contains 10 servers that are distributed on our virtual infrastructure. How can I (Step by Step) create this report? I created a dashboard customized these 10 servers, but then I Don t understand how to create this report.

    The best way would be to create a report with the above data model so that I could use is both environments.

    Hello heather,
    I don't know how you built your custom dashboard sense if the page requires a context to fill then you should be able to build a report out of your dashboard by selecting create report option on the general tab in the Actions pane and then choosing the option to create a report based on the current dashboard. However this option will be grayed out if your dashboard needs no background fill.
    The other option is to create a Service with these 10 servers and create a customized report based on that service.
    Concerning

  • What app would use to create a report online like this?

    What Adobe CC application would use to create a report based on the web like this?

    http://sowc2015.UNICEF.org

    Can we do with Muse or need something like Dreamweaver and custom coding?

    Hello

    Yes, you can create using Adobe Muse of these sites. You will need to scroll down anchor points. You can take a look at this article

    http://www.Lynda.com/Muse-tutorials/understanding-anchor-links/161871/179008-4.html

    Let me know if you have any question.

  • How to change the report based on users?

    Hi all

    I've created a report based on a table. Based on the users (Administrator, user), I want to change my appearance of report. But users are not available in this table. Users are not available in this area table.Common available.

    Req: If I enter as a user I want to not see that my documents.

    If I enter an admin I want to see all users folders.

    How to solve this problem.

    Please explain in detail.

    Thank you and best regards,

    Rambeau

    Hai raghu, pls mark closed this issue.its as a response!

  • Interactive report based on a Collection

    Hi guys

    Using Apex 3.2

    I have a classic report based on a collection, which works very well.
    I am now trying to create an interactive report based on the same query (collection), but no data is returned.
    I there something special I need to do an interactive report.

    See you soon


    Gus

    Hello Gus,

    First time when you create a report based on the collection ir, it does not include the columns in the display (don't know why)

    pls select the correct answer to help others

    Thank you

  • create the different logfile with different schema by coil

    Hello
    I want to know how to create a different log file depend on different schema
    I have two patterns on the same db Server
    (1) drawing kennam / * / kennam
    (2) diagram koonhey / * / koonhey
    in a way, I want to create a log file name different for example kennam.log / koonhey.log on these two patterns...
    I always run @showbalance; to run showbalance.sql to create this report...
    I hope you understand what I'm talking about (English is not my mother tongue...), anyone could help?

    showbalancelog. SQL
    coil c:\log.log+.
    spool c:\log.log
    select to_char(sysdate,'dd-mm-yyyy hh:mi:ss') from dual;
    column com_name format a20;
    select cus.tid, cus.com_name com_name, cus.com_balance, 
    NVL((select sum(invoice_total) from invoice where com_id=cus.tid),0) sum_invoice, 
    NVL((select sum(cheque_amount) from income where com_id=cus.tid),0) sum_income, 
    cus.com_balance - 
    NVL((select sum(invoice_total) from invoice where com_id=cus.tid),0) + 
    NVL((select sum(cheque_amount) from income where com_id=cus.tid),0) total_balance
    from customers cus
    order by cus.tid;
    spool off

    Hello devotee,

    You can select the user in a variable and then use that variable in your file name:

    COLUMN act_user NEW_VALUE act_user NOPRINT;
    SET TERMOUT OFF
    SELECT USER act_user
    FROM    dual;
    SET TERMOUT ON
    SPOOL t:\log_&act_user..log
    
    SELECT  'My data'
    FROM    dual;
    
    SPOOL OFF
    

    Concerning
    Marcus

  • Privs different username schema objects

    Hello

    I was looking around to see if there is a way to do this.

    I have 3 different schemas in a database sharing the same name say EMP table.

    1 COMP01.emp

    2 COMP02.emp

    3 COMP03.emp

    I want to create a USER name: COMP_APP to be used by the application to access all three tables (if not atleast DML privs DDL) in 3 different schemas without using the qualification scheme.

    How can I achieve this?

    Any use of the Logon trigger?

    Any use of Public/private synonyms?

    NOTE: I don't want to use the schema qualifier because the existing application code could get disrupted. Currently existing code connections to DB with schema userid/pwd (which I want to get rid).

    Thank you

    AAG

    Hello

    What is the trigger to complete opening code? Any reference to something else like errors seems weird.

    If this is the full code, you create as SYS?

    Also, try to remove the double quotes and see if that helps.

    See you soon,.

    Rich

Maybe you are looking for