Find the Base Table hence temporary Table is based on data

Hi all

I develop a report using Oracle reports Builder 6. The report that I develop is very similar to the seeded report "CIP détail Report", in Oracle Apps. This report uses a temporary database table 'FA_BALANCES_REPORT_GT' but I'm not be able to find the table, hence this temporary table is data drawing. I need details of the table to use in my report.

Thank you in advance.

Rahul

Hello Rahul,

I think you should post this message on the forum of E-Business Suite. Anyway, you can consult the Oracle support note [395342.1 | https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&id=395342.1] how FA_BALANCES_REPORT_GT of Table fill temporary cost report for retail (FASCOSTD)? and see if that helps you.

Kind regards.

Tags: Oracle Development

Similar Questions

  • the base tables store jobs oem

    Hello

    I have some work in the Oracle Enterprise Manager job console. (These jobs call a PL/SQL procedure). Can you please let me know what are the base tables that store the names of this work, work planning and other information about jobs? The version of database is Oracle 9i and OEM version 9.0.2

    Thank you
    RK

    Hello
    using the repository database

    Work 4SystemJOBS tables
    --> Connect as SYSDBA
    # > export ORACLE_SID = emrep
    # > sqlplus / as sysdba
    SQL # > select table_name from user_tables where table_name like '% % ';

    4Emrep (OEMGC) work tables
    --> Connect as SYSMAN
    # > sqlplus sysman/MYPASS@emrep
    SQL # > select table_name from user_tables where table_name like '% % ';
    SQL # > mgmt_job desc;

    * T

  • How to compare the length of the data to a staging table with the definition of the base table

    Hello
    I have two tables: staging of the table and the base table.
    I get flatfiles data in the staging of the table, depending on the structure of the requirement of staging of the table and the base table (length of each column in the staging table is 25% more data dump without errors) are different for ex: If we have the city long varchar 40 column in table staging there 25 in the base table. Once data are discharged into the intermediate table that I want to compare the actual length of the data for each column in the staging table with the database table definition (data_length for each column of all_tab_columns) and if no column is different length that I need to update the corresponding line in the intermediate table which also has an indicator called err_length.

    so for that I use the cursor c1 is select length (a.id), length (b.SID) of staging_table;
    c2 (name varchar2) cursor is select data_length all_tab_columns where table_name = 'BASE_TABLE' and column_name = name;
    But we get atonce data in the first query while the second slider, I need to get for each column and then compare with the first?
    Can someone tell me how to get the desired results?

    Thank you
    Manoi.

    Hey, Marco.

    Of course, you can set src.err_length in the USING clause (where you can reference all_tab_columns) and use this value in the SET clause.
    It is:

    MERGE INTO  staging_table   dst
    USING  (
           WITH     got_lengths     AS
                     (
              SELECT  MAX (CASE WHEN column_name = 'ENAME' THEN data_length END)     AS ename_len
              ,     MAX (CASE WHEN column_name = 'JOB'   THEN data_length END)     AS job_len
              FROM     all_tab_columns
              WHERE     owner          = 'SCOTT'
              AND     table_name     = 'EMP'
              )
         SELECT     s.ename
         ,     s.job
         ,     CASE WHEN LENGTH (s.ename) > l.ename_len THEN 'ENAME ' END     ||
              CASE WHEN LENGTH (s.job)   > l.job_len   THEN 'JOB '   END     AS err_length
         FROM     staging_table     s
         JOIN     got_lengths     l     ON     LENGTH (s.ename)     > l.ename_len
                             OR     LENGTH (s.job)          > l.job_len
         )     src
    ON     (src.ename     = dst.ename)
    WHEN MATCHED THEN UPDATE
         SET     dst.err_length     = src.err_length
    ;
    

    As you can see, you have to hardcode the names of the columns common to several places. I swam () to simplify that, but I found an interesting (at least for me) alternative grouping function involving the STRAGG user_defined.
    As you can see, only the subquery USING is changed.

    MERGE INTO  staging_table   dst
    USING  (
           SELECT       s.ename
           ,       s.job
           ,       STRAGG (l.column_name)     AS err_length
           FROM       staging_table          s
           JOIN       all_tab_columns     l
          ON       l.data_length  < LENGTH ( CASE  l.column_name
                                              WHEN  'ENAME'
                                    THEN      ename
                                    WHEN  'JOB'
                                    THEN      job
                                       END
                               )
           WHERE     l.owner      = 'SCOTT'
           AND      l.table_name     = 'EMP'
           AND      l.data_type     = 'VARCHAR2'
           GROUP BY      s.ename
           ,           s.job
           )     src
    ON     (src.ename     = dst.ename)
    WHEN MATCHED THEN UPDATE
         SET     dst.err_length     = src.err_length
    ;
    

    Instead of the user-defined STRAGG (that you can copy from AskTom), you can also use the undocumented, or from Oracle 11.2, WM_CONCAT LISTAGG built-in function.

  • Add more than 2 lines for a select statement without inserting rows in the base table

    Hi all

    I have a below a simple select statement that is querying a table.

    Select * from STUDY_SCHED_INTERVAL_TEMP
    where STUDY_KEY = 1063;

    but here's the situation. As you can see its return 7 ranks. But I must add
    2 rows more... with everything else, default or what exist... except the adding more than 2 lines.
    I can't insert in the base table. I want my results to end incrementing by 2 days in
    measurement_date_Taken on 01-APR-09... so big measurement_date_taken expected to
    end at study_end_Date...



    IS IT STILL POSSIBLE WITHOUT INSERT ROWS IN THE TABLE AND PLAYIHY ALL AROUND WITH
    THE SELECT STATEMENT?

    Sorry if this is confusing... I'm on 10.2.0.3

    Published by: S2K on August 13, 2009 14:19

    Well, I don't know if this request is as beautiful as my lawn, but seems to work even when ;)
    I used the "simplified" version, but the principle should work for your table, S2K.
    As Frank has already pointed out (and I fell on it while clunging): simply select your already existing lines and union them with the 'missing documents', you calculate the number of days that you are "missing" based on the study_end_date:

    MHO%xe> alter session set nls_date_language='AMERICAN';
    
    Sessie is gewijzigd.
    
    Verstreken: 00:00:00.01
    MHO%xe> with t as ( -- generating your data here, simplified by me due to cat and lawn
      2  select 1063 study_key
      3  ,      to_date('01-MAR-09', 'dd-mon-rr') phase_start_date
      4  ,      to_date('02-MAR-09', 'dd-mon-rr') measurement_date_taken
      5  ,      to_date('01-APR-09', 'dd-mon-rr') study_end_date
      6  from dual union all
      7  select 1063, to_date('03-MAR-09', 'dd-mon-rr') , to_date('04-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual union all
      8  select 1063, to_date('03-MAR-09', 'dd-mon-rr') , to_date('09-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual union all
      9  select 1063, to_date('03-MAR-09', 'dd-mon-rr') , to_date('14-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual union all
     10  select 1063, to_date('03-MAR-09', 'dd-mon-rr') , to_date('19-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual union all
     11  select 1063, to_date('22-MAR-09', 'dd-mon-rr') , to_date('23-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual union all
     12  select 1063, to_date('22-MAR-09', 'dd-mon-rr') , to_date('30-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual
     13  ) -- actual query:
     14  select study_key
     15  ,      phase_start_date
     16  ,      measurement_date_taken
     17  ,      study_end_date
     18  from   t
     19  union all
     20  select study_key
     21  ,      phase_start_date
     22  ,      measurement_date_taken + level -- or rownum
     23  ,      study_end_date
     24  from ( select study_key
     25         ,      phase_start_date
     26         ,      measurement_date_taken
     27         ,      study_end_date
     28         ,      add_up
     29         from (
     30                select study_key
     31                ,      phase_start_date
     32                ,      measurement_date_taken
     33                ,      study_end_date
     34                ,      study_end_date - max(measurement_date_taken) over (partition by study_key
     35                                                                          order by measurement_date_taken ) add_up
     36                ,      lead(measurement_date_taken) over (partition by study_key
     37                                                          order by measurement_date_taken ) last_rec
     38                from   t
     39              )
     40         where last_rec is null
     41       )
     42  where rownum <= add_up
     43  connect by level <= add_up;
    
     STUDY_KEY PHASE_START_DATE    MEASUREMENT_DATE_TA STUDY_END_DATE
    ---------- ------------------- ------------------- -------------------
          1063 01-03-2009 00:00:00 02-03-2009 00:00:00 01-04-2009 00:00:00
          1063 03-03-2009 00:00:00 04-03-2009 00:00:00 01-04-2009 00:00:00
          1063 03-03-2009 00:00:00 09-03-2009 00:00:00 01-04-2009 00:00:00
          1063 03-03-2009 00:00:00 14-03-2009 00:00:00 01-04-2009 00:00:00
          1063 03-03-2009 00:00:00 19-03-2009 00:00:00 01-04-2009 00:00:00
          1063 22-03-2009 00:00:00 23-03-2009 00:00:00 01-04-2009 00:00:00
          1063 22-03-2009 00:00:00 30-03-2009 00:00:00 01-04-2009 00:00:00
          1063 22-03-2009 00:00:00 31-03-2009 00:00:00 01-04-2009 00:00:00
          1063 22-03-2009 00:00:00 01-04-2009 00:00:00 01-04-2009 00:00:00
    
    9 rijen zijn geselecteerd.
    

    Is there a simpler way (in SQL), I hope that others join, and share their ideas/example/thoughts.
    I feel that it is using more resources there.
    But I have to cut the daisies before now, they interfere my 'grass-green-ess";)

  • reason for updating a view rather than on the base table

    Can someone tell me what is the reasons that sometimes we would update a view rather than on the base table? I always thought that we cannot update a view, of course, I am wrong. Thank you

    Hi Welcome to the Forum

    Basically, a view is used to present the data, a different way. He can rely on more than one table and we cannot update a
    Discover directly that contains Sql functions, aggregate functions, a group of Clause and a view created excluding the required columns of the table.

    In all the cases mentioned Instead of trigger is very useful

    Published by: user10862473 on July 28, 2009 07:10

  • Script to find the base salary of the prospective employee

    HRMS dear Experts,

    I develop employee list-report - I need to include all the number of employees and their base salary. That's (current and prospective employee) category "Employee" and "worker of the Contingent.

    For the employee category I take table per_pay_proposals - linking employee-> person - ID ID assignment number-->--> ID of Type person.

    "For category - 'Potential worker' need, the name of the table that store base base salary for the prospective employee.

    Version:

    Oracle Applications: 12.0.6

    RDBMS: 10.2.0.3.0

    Thank you

    We got the name of the base table this morning.

    It's per_all_assignments_F - class title

    Thanks to my manager who is an Expert in Oracle on all...

  • How to find the child tables

    Hello

    y at - it (quesry) way to find the list of children tables for a given table.

    tried to interview user_constraints and USER_CONS_COLUMNS, but not be able to find a way.

    Thank you

    Hello

    You can use the query as follows - it will list the children tables and the FK name for table HR.JOBS:
    Select
    a.Owner, a.table_name, a.constraint_name
    sys.all_constraints a.,
    (select master, constraint_name from sys.all_constraints where owner = * 'HR' * and table_name = * "JOBS" * and constraint_type in ('P', 'U')) b
    where
    a.CONSTRAINT_TYPE = 'R' and a.r_constraint_name = b.constraint_name and a.r_owner = b.owner

    If you do not need name FK, then put separate:
    Select
    a.owner, separate a.table_name
    sys.all_constraints a.,
    (select master, constraint_name from sys.all_constraints where owner = 'HR' and table_name = 'JOBS' and constraint_type in ('P', 'U')) b
    where
    a.CONSTRAINT_TYPE = 'R' and a.r_constraint_name = b.constraint_name and a.r_owner = b.owner

    Philippe

  • create view materized without constraint primary key on the base table?

    Hello

    I tried to create a materized view, but I got this error:

    SQL > CREATE MATERIALIZED VIEW FAST REFRESH TABLE1_MV
    START BY
    TO_DATE (April 25, 2009 03:00:13 ',' DD-MM-YYYY hh24:mi:ss')
    NEXT
    SYSDATE + 1
    AS
    Select * from TABLE1@remote_db
    SQL > /.
    CREATE MATERIALIZED VIEW FAST REFRESH TABLE1_MV
    *
    ERROR on line 1:
    ORA-12014: table 'TABLE1' does not contain a primary key constraint.

    Table1 in remote_db is not a primary key constraint. Is there anyway that I can create a view materized on a base table that is not a primary key constraint?

    Thank you
    Liz

    Make sure user name used in remote_db database link has select privileges on Journal of MV. On the issue of db source:

    SELECT LOG_TABLE FROM DBA_MVIEW_LOGS WHERE LOG_OWNER = 'TABLE1-owner' AND MASTER = "TABLE1";

    This will give you MV table the journal name. On the issue of target side:

    SELECT * from MV-LOG-NAME@remote_db;

    And after your version.

    SY.

  • Data block in the procedure and the Base Table

    Hello

    I hava a form with a block of master and detail. The fields in the Master block are

    Emp_name, DateOfJoin, salary... I created this block with the procedure with a Ref Cursor, becaue the user
    want to load the data based on the conditions it enter for example: DateOfJoin < = Sysdate and DateOfJoinn July 1, 2008 "."
    SO I created a block of control with the fields name, MiddleName, LastName, of DateOfJoin, in DateOfJoin, the salary, and when the user clicks on the data loading
    button, I load the data to block under these conditions using the procedure.
    Note that in the Emp_Name table if a field, but contain first name, middle name, and last name with a separate space.

    My needs is, is there any method to develop this master block with a database table, so that if the user want to select it
    data based on other conditions, it can enter directly into the block of data using Qry enter and run Qry, also if he wants to
    Select data based on the top-level asked the search criteria, it will click Load Data.
    I hope that in this case, when the user selected the Load data button, I need to change the data source to the Type of procedure and set the source of data on behalf of the procedure name.

    Is there any other easy solution flor this

    Thanks in advance

    not sure if I get your needs. I understand the following:
    You have a block based on table emp, containing a DateOfJoin column and the user should be able to enter into a 'complex' where denomination.

    To do this, you do not have to base block one a procedure or ref_cursor. Two possibilities:

    Add two fields more directly in the block that are non-base of data-objects of type date fixed query on yes and let the user to enter a date range in these columns. In the accumulation of PRE-QUERY-trigger a WHERE condition by using the value in this field:

    something like:

    DECLARE
      vcMin VARCHAR2(10):='01.01.1700';
      vcMax VARCHAR2(10):='01.01.2999';
    BEGIN
      IF :BLOCK.DATE_FROM_JOIN IS NOT NULL THEN
        vcMin:=TO_CHAR(:BLOCK.DATE_FROM_JOIN, 'DD.MM.YYYY');
      END IF;
      IF :BLOCK.DATE_TO_JOIN IS NOT NULL THEN
        vcMax:=TO_CHAR(:BLOCK.DATE_TO_JOIN, 'DD.MM.YYYY');
      END IF;
      SET_BLOCK_PROPERTY('BLOCK', ONETIME_WHERE, 'DATEOFJOIN BETWEEN TO_DATE(''' || vcMin || ''', ''DD.MM.YYYY'') AND TO_DATE(''' || vcMax || ''', ''DD.MM.YYYY'')');
    END;
    

    Another option:
    together, the length of the request of the DATEOFJOIN field to say 255, then the user can directly enter #BETWEEN fromdate AND fodate in the field.

  • When the id program in the base table will be updated?

    Hello

    I have a trigger on the table mtl_system_items_b that fires events when a record is created / updated. I need to create a program that will update the records in the table, but at the same time, it will not trigger trigger events for the updated records. My plan is to use the program_id column in the MSIB table to check if the particular update is done by the new program. Now, the question is, what happens if the same record is updated by any user front end (after the execution of the program)? It will update the program to something else id so that the trigger fires the event? If this isn't the case, then how can I limit the trigger for these recordings?

    We can disable the trigger during execution of the program, but that we will lose some updates made by users on other records.

    Thanks in advance... !!

    Devendra

    Hi Devendra,

    When someone updates the same record on before the id program also updates.

    Solution because it would be too write a when clause to your relaxation. Something like below

    CREATE OR REPLACE TRIGGER

    after insert/update

    REFERRING AGAIN AS NINE OLD AND OLD

    FOR EACH LINE

    Where (NEW.program_id = )

    DECLARE

    end;

    hope this helps you.

    Kind regards

    SoundariyaKumar.R

  • Why mandatory columns of the Base tables and interface are different?

    Hi guys, I support provider in PA (ap_suppliers) thanks to the Interface table (ap_suppliers_int), but my confusion is that ap_suppliers have 8 required columns, but its interface ap_suppliers_int have only 2 column.why? mandatory and also with these 2 columns also load records.

    Kind regards
    Shakeel khan

    Yes sometimes it is and also depends on the current configuration of oracle. Some of the fields are automatically generated.

    sometimes better to analyze the package to interface and then use the interface programs.

    Thank you
    Kiran

  • Query to find the biggest table in the database of the oracle ERP?

    Hello
    I would like to see the biggest table in Oracle ERP database, can someone give me the query?

    Thank you
    Fatiha

    Select owner, table_name from dba_tables where blocks (select max (blocks) of dba_tables);

  • How can I find the largest table in a schema?

    Is there a query to determine the largest table in a schema?
    select table_name, num_rows from user_tables
    where num_rows = (select max(num_rows) from user_tables)
    

    To get accurate information, table statistics need to be updated

  • Find the base of Object.vi doesn't work is not in the picture 3D Solidworks Import control

    Hello

    I try to import the Solidworks model, I get the whole Assembly in 3D image image but when I try to find the particular help object to find object.vi It gives me

    Error 1 ganglion invoke in NI_3D photo Control.lvlib:Find Object.vi-> VRMLviewer.vi


    Possible reasons:
    LabVIEW: An input parameter is not valid. For example if the input is a path, the path can contain a character not allowed by the operating system such as? or @.
    =========================
    NOR-488: Command requires GPIB controller charge controller.

    Is there a specific way to be part of Solidworks or wjat could be the possible reason.

    Thanks in advance.

    Although you probably have names on your model, your VRML (.wrl) file does not work. If you try to open the file with a text editor, you can fix this by adding the following statement before processing:

    Basis of DEF transform {}

    This will allow you to access the location of the VI to find. The error is because LabVIEW has not found the name in your VRML.

  • Cannot find the default folder named temporary file where downloads get automatally sent to download.

    I have an acer aspire one.  It stops on its own and won't stay on.  Sometimes it turns on but the screen does not do anything, but the backlight.  I'm on the view of web acer and found my exact problem.  I need to load the BIOS update and install it.  I tried to doload, but the file went in a folder called temporary files automatically.  I can't find temporary file anywhere to open the BIOS download. can someone tell me where is hid it temporary file that Vista uses to default downloads?
    my name is tom.  Thank you

    There is no default location for downloads - usually the location is selected when you click on the "Save" button and then you know exactly where it is.  I guess because you know the name of the file you downloaded.  We will do a COMPLETE system for the file search and then we'll find out where he went.  If it does not find the file, then download has failed and should be tried again (this time trying to pick the location where it will be saved).

    To search for the folder C: whole disk in Vista go to start / search and type in ' or '. As you type, you'll see two hyperlinks appear just above where you type and we'll search everywhere.  A click on it.  Who will do a fast indexed search and bring up a dialog box.  Click on advanced search.  Click the drop-down location and find the C: drive and click on it. Check the box "include not indexed, hidden and system files (might be slow).»  Then click on search.  You will now search your entire hard drive to the specified file.  And Yes, this isn't a very effective way to search the entire disk for a file but it is how it is done in Vista.

    If this does not work, then try to search for temporary files (you are of course on the name - it doesn't seem right to me) which is probably the name of the folder where it was sent using the same process as above and see if you can find it.  If more than one rises, see each one until you find your file.  If it is through Internet Explorer, and then see the following for the location (although I am not sure if this is the place for which you're searchinng): http://www.milincorporated.com/a2-temporary-internet-files.html.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

Maybe you are looking for