Writing SQL queries in BAM reports

Hello
Is it possible to write SQL queries in BAM reports.

Thank you

If you're looking to display the data in the BAM report by writing your own query SQL, which is not possible at the moment.

Tags: Fusion Middleware

Similar Questions

  • SQL queries for reports help: need to reverse the data in the column in columns [O

    Hi all

    I'm looking for help in writing SQL, where I need to reverse the data in the columns column.

    My data in DB is as below.

    VALUE OF NAME OF MONTH
    Jan-10 M1 5
    Jan-10 M2 8
    Jan-10 M3 9
    Feb-10 M1 4
    Feb-10 M2 6
    Feb-10 M3 2
    M4 10 Feb 10
    M1 10 Mar 21
    Mar-10 M2 6

    Power required for the declaration will be like:


    MONTHS M1 M2 M3 M4
    Jan-10 5 8 9
    Feb-10 4 6 2 10
    21 Mar-10 6

    How can I do this using SQL. [ORACLE 10g]?

    I can make use of server Oracle BI also.

    Please help me on this...

    I think this is wrong forum to ask this question. You want to do it in OBIEE or at the DB level. In oBIEE you can do in a table privot view.

    Thnaks,
    Knani

  • Re-run a single SQL statement on several report page

    Hello

    I have a Page containing reports 3 and I was wondering if it is possible to re - run only one of these reports using a button or preferably a Select list that allows me to choose which 3 reports I want to ' Refresh/re-run '. I'm wrong completely here but I assumed that you choose the option to send a Page causes all regions to refresh that is re - run SQL queries, they are "based on". Any suggestion or correction to my hypothesis would be welcome.

    Kind regards

    Kevin.

    KevinFitz wrote:

    Each query region will in the sense of 'SELECT MAX' (customer_nr) + 1 as a customernrcnt customer and I expected that the value of the counter is displayed in an area increment as a result of change/selecting a value in the list.

    Is it realistic for me to see the results, I think using this method?

    Is - it there any activity in the other database sessions that will result in CUSTOMER_NR is incremented? If this isn't the case, then no, it not there no possibility to see any increase in the numbers. If you have a defined sequence and report on it, then refresh the reports will show a difference:

    select customer_seq.nextval seq from dual
    
  • Join the two sql queries

    Hi all

    Thank you very much for all the kind support so far.

    I have two report (sql query)

    I want to add both the sql query

    1st sql query

    select distinct(a.item_number)
          ,a.quantity - b.quantity
    from QUANTITY_ONHAND_ATP a,BACKLOG_ATP_LT_CW b
    where a.item_number = b.item_number
    order by item_number
    2nd sql query

    select distinct(wb.item_number)
           ,wb.quantity - be.quantity
           ,c.quantity - d.quantity
    from BACKLOG_WEEK_BEFORE_ATP wb
        ,BACKLOG_ATP_ET_CW be
        ,BACKLOG_WEEK_AFTER_ATP c
        ,BACKLOG_ATP_GT_CW d
    where wb.item_number = be.item_number
       and c.item_number = d.item_number
       and wb.item_number = c.item_number
       and be.item_number = c.item_number
       and wb.item_number = d.item_number
       and be.item_number = d.item_number
    order by wb.ITEM_NUMBER
    In the 1st sql query I have 129 records and in the 2nd query sql, I have 14 records. I want to combine these two sql queries. If the item_number 1st sql query is not there in 2nd and then view it as to 1 sql only.

    Any help how to do that.

    Concerning

    Published by: User_Apex on July 15, 2011 01:21

    Use the NVL function:

    select q1.item_number, WEEK_BEFORE, nvl(CURRENT_WEEK,0) CURRENT_WEEK, nvl(WEEK_AFTER,0) WEEK_AFTER
    (...)
    
  • Access APEX_APPLICATION. G_F01 in a SQL query for a report

    APEX 4.0.2.00.07

    I have a standard report with check boxes. The SQL along the lines of:
    SELECT APEX_ITEM.CHECKBOX(1,empno,'CHECKED') " ",
           ename,
           job
    FROM   emp
    Then I have another report below, I want to drive based on the items checked in the first report. I know that the values of the checkbox in the APEX_APPLICATION. Collection of G_F01. Normally, these are accessible using pl/sql such as:
    FOR I in 1..APEX_APPLICATION.G_F01.COUNT LOOP
        DELETE FROM emp WHERE empno = to_number(APEX_APPLICATION.G_F01(i));
    END LOOP;
    But is it possible that I can access the collection from the sql for my second report.

    that is, I want my sql to be something like:
    SELECT empno, day_of_service
    FROM   emp_timesheet
    WHERE emp_no in <get access to the collection here>
    I was hoping that the collection box would be available in the APEX_COLLECTIONS view, but it doesn't seem to be there.

    Thank you
    John

    John,

    If the goal is to keep the values checked for another treatment then you could add them to a collection yourself.

    create a process on your page that looks like this:
    This will create your collection if not exist or don't delete everything currently in it if it exists and then insert your new selections.

    DECLARE
       l_col_name varchar2(30) := 'EMP_SELECTED';
    BEGIN
        apex_collection.create_or_truncate_collection(l_col_name);
        FOR I in 1..APEX_APPLICATION.G_F01.COUNT LOOP
            apex_collection.add_member(
                l_col_name,
                to_number(APEX_APPLICATION.G_F01(i))
            );
        END LOOP;
    END;
    

    your second question might look like this:

    SELECT empno, day_of_service
      FROM emp_timesheet
     WHERE empno in (select C001 empno
                       from apex_collections ac
                      where ac.collection_name = 'EMP_SELECTED')
    

    Edit
    Some people choose to create a view of some collection queries ontop that will be repeated throughout the application so we can just

    create view selected_emps as
    select C001 empno
      from apex_collections ac
     where ac.collection_name = 'EMP_SELECTED'   
    

    and your new query will look like:

    SELECT empno, day_of_service
      FROM emp_timesheet
     WHERE empno in (select empno
                       from selected_emps)
    

    See you soon,.

    Janet Tyson

    Published by: Tyson Janet on April 6, 2011 10:37

  • Discoverer more relational - could I change sql queries?

    Hello
    I work with 10.1.2.1 Oracle Business Intelligence, and I have a relational data source that is a source of organized data in ROLAP.
    Because the requirements of the query rewrite, I have to be able to design sql queries manually, IE I have to join on all enties for example.
    Is there a way to indicate the discoverer and to use a specific query - designed manually - by me (as I can do in reports)?
    many reservoirs,
    Aurel

    Hello

    Finder can handle the request online in a custom folder, so I don't think that's the problem. It could be because the org_dim and time_dim tables do not have an owner at the front and must be SSB.org_dim and SSB.time_dim. It could be that the administrator user did not have the privilege to see these paintings.

    The file will be grayed in Discoverer Plus until it is validated.

    Rod West

  • How to find the primary key columns in the tables in MS Access using SQL queries

    How to find the primary key columns in the tables in MS Access using SQL queries

    Hello

    This is the forum for Windows Vista programs related issues.

    For better assistance, please try instead the Forums in SQL Server .

    Thank you! Vincenzo Di Russo - Microsoft MVP Windows Internet Explorer, Windows Desktop Experience & security - since 2003. ~ ~ ~ My MVP profile: https://mvp.support.microsoft.com/profile/Vincenzo

  • SQL queries

    Dear all,

    We hope that all are doing well. I need your help, I want to find all sql queries executed in the month 1 in my oracle, verification of the database database is disabled.

    I tried v$ sql, but it gives only spent 15 days sql queries executed.

    I'm looking for 1 month? your help will be appreciated, thanks in advance.

    OS: RHEL 6.1

    DB: 11.2.0.3

    Kind regards.

    If you use more than one log archiving then use following code for example:

    Start

    sys.dbms_logmnr.add_logfile (nom_fichier_journal => ' /Archivelog/1_9745_771967668.dbf',options-online sys.dbms_logmnr.new).

    sys.dbms_logmnr.add_logfile (nom_fichier_journal => ' /Archivelog/1_9746_771967668.dbf',options-online sys.dbms_logmnr.addfile).

    sys. DBMS_LOGMNR. Start_logmnr (options-online sys.dbms_logmnr. DICT_FROM_ONLINE_CATALOG);

    end;

    /

  • to solve the problems of performance (running slow SQL queries), which should be the systematic approach

    Hello

    I am new to oracle.  Need some advice on how we should approach to problems of performance especially for SQL queries running slow on the database.

    Thanks in advance.

    6e85b3c2-5f02-40CB-A8AD-d2279f63b4be wrote:

    Hello

    I am new to oracle.  Need some advice on how we should approach to problems of performance especially for SQL queries running slow on the database.

    Thanks in advance.

    Start here;  http://docs.Oracle.com/CD/E11882_01/server.112/e10822/TOC.htm

    Continue here: http://docs.oracle.com/cd/E11882_01/server.112/e41573/toc.htm

  • How to find the sql queries executed in one day with the sql and runtime text

    Hi Experts,

    Please tell me the sql query to find out the queries executed on a particular day and the runtime and the sql text of the query.

    Please reply urgent.

    Thanks in advance

    Database instance 'A' may have run 100 SQL queries today.  As for the instance of database 'B' could have exploited queries SQL 1 million today.  Instance of database 'B' to 'keep' the 1 million SQL statements - in memory or on disk do you expect?  Of course not.  There the age or flush or invalidate memory SQL statements.  He can't keep them on the disk (imagine running a completely different set of 1.2million SQL statements tomorrow and 1.3 the next day).

    AWR and StatsPack can make counts the number of "n" top of the page ("n" default to 30) SQL statements which are still present in the cache of the library (not years, rinsed, invalidated) when a snapshot was taken.  They can't declare "all" SQL statements.

    To return to your needs.  WHY do you need all the SQL statements?  Or are there only certain operations specific SQL would you be interested?  Could they have been treated by allowing audit (for example, UPDATE and DELETE with EXTENDED verification instructions)?

    Hemant K Collette

  • How to tell the difference between access through JDBC and direct sql queries through server dimensions

    Hi all

    We use an Oracle 11 g server, the request is sent to the oracle database through different ways, one directly from the server of dimensions and is another method below

    • TDC customer creates a session in the api
    • session of the API sends a request to the application server
    • application server queries the database

    Of course, I see all the sql queries in the oracle database, but what I am interested in is now what queries go directly through the server dimensions and through the API. Please tell me how I can find this information.

    MACHINE, TERMINAL, PROGRAM, MODULE and CLIENT_INFO column in V$ SESSION could give you a clue.

    HTH,

    Lordane Iotzov

  • unnecessary SQL queries for ViewObject used in different tab

    In my application, I have a table A in the first tab and table B in the second tab.

    Sometimes when I work as a user with table B in the second tab, the ViewObjectA for table A is executed.

    Of course this ViewObjectA execution is absolutely useless, because I work in another tab and I don't don't even see table A.

    Unfortunately, the query takes a long time and it makes the application slower.

    Question: why the ADF runs the query for a table that is not visible and the user accesses not?

    Is it possible to prevent it?

    A note on the configuration that may be linked to the problem:

    The ViewObjectA has an implementation customized with debug messages (that's how I discovered the ViewObject is exectuted).

    Due to the limitation of the DB, I have configured my pool ApplicationModule instances of timeout after 120 idle seconds (because the DB does not like the many connections and long-term).

    I also found that after the expiry of the ApplicationModule, a new instance of ViewObjectA is created (Yes, it should according to the ViewObjectImpl API).

    It seems to me that the unnecessary ViewObjectA execution happens after this new creation of instance of ViewObjectA.

    Well, the execution of the query of a VO is part of the creation of a VO.

    You can try to adjust it for example, you add a where clause such as 1 = clause: bindVar' and init the bindVar to 0 so that the query is performed from the user interface (see JDeveloper: obstacle to the return of the games to outline on the loading of the page of VO using the binding variable |) JDev & amp; ADF Goodies).

    Or follow Andrejus Baranovskis Blog: Oracle ADF Tuning: prevent execution of SQL queries during the loading of the Page

    Timo

  • Adding calendar in BAM reports

    Hi all

    I have a scenario where I have to select FromDate and updated dynamically and generate reports only for the selected date.

    I tried things like in the current Minute time period 1 minute Ago and so on. but he responds to my needs.

    I should be able to select any date, a year and a month and be able to view reports for this period.

    Adding a calendar in the guests of report could be the the right option.

    Can someone help me on how to add the calendar to the surface the guests in Oracle BAM reports

    Kind regards

    Nataraj R.

    You can do this by adding a filter with custom report settings/messages.

    -Modify the report. Create new settings/guests, for example: FromDateParam and ToDateParam (as datetime types) with the option "Prompt the user to specify a value" selected and the user to input type "Type in". You can specify a default value for the parameters.

    -On the Filter tab, add expressions to filter - in this scenario here, for example, it will be FromDate > = [parameter: FromDateParam] and so far<=>

    When the report is open for display, the system prompts you for the FromDate and to date to be entered/input by the user (calendar widget will be available for select dates).

    I hope this meets your requirement!

  • SECURITY OF DATA for sql queries

    Hi, I'm new to APex.

    I use APex 4.2, I want to how to ensure the security of the data in the reports.

    When I write the Sql query in interactive report, it is easy for the end user to hack and see the code.

    So is there an alternative way to encrypt the code, so that no one can see the code except me.


    Thank you
    Nihar Narla

    How comes to the security of the data? but this has been discussed on the forum in the past, please search the forum before posting a new question.

    Also look at this feature request https://apex.oracle.com/pls/apex/f?p=55447:4 research of Security Code

  • Retrieve the backend SQL to Oracle Financials report

    Hello

    There is an updated report in place in Oracle Financials (Portal). It works via a concurrent program, how do I view the SQL backend behind the report

    Can anyone help?

    p.s. I use version 12

    Thank you

    Hello.
    The responsibility of the system administrator, query the report in the definitions of concurrent programs and check the enable Trace. Run the program. A trace file will be put on your $ORACLE_HOME/admin/udump directory. TKProf this trace file and open the generated output.

    I hope this helps.
    Octavio

Maybe you are looking for