Create or not a new table just for one report

hi guys,
I'm working on a java client server application with an oracle db.
I need to create a new report in my application with requires lots of
calculation out of a table. I mean I cannot obtain the report just using
sql query.
My solution is:
use an oracle procedure, create a new table, fill it and then use sql to
get the report data. (that is fastest solution in my opinion)
My question is:
is a good choice to create a new table that will be exploit just to create
a report in the application?Or it's not worth and I should process the data with java without creating a new table?
thanks in advance!

Hi,
>>is a good choice to create a new table that will be exploit just to create
a report in the application?
No problem, but in your case create a global temporary table is more appropriate, because many users can generate a report on the same time and you don't need worry about what table data is for what user, or to do something like create some tables with randomizes names like TEMP010304 or TEMP386679 and drop them when the user finish to view the report ...
http://www.oracle-base.com/articles/8i/TemporaryTables.php
Cheers

Similar Messages

  • Note 1599687 - New Model 111 for tax reporting

    Hola Buenas tardes,
    Estamos aplicando la SAP Note 1599687 pero hace falta en el PDF Manual_post_implem_steps_1599687.pdf los textos:
    - Campo S_GEN111.
    Podeis decir a Desarrollo,
    Saludos,
    Jorogape

    Buenas tardes,
    Hemos actualizado la nota 1599687 con el paso manual que estaba faltando.
    Muchas gracias por avisar,
    Carlos.

  • I have 3 apple devices and I use the same apple ID for all 3.  I would like to create a new I'd for one of my devices, but do not want to loose the apps on that device.  Anyone know how I can do this?

    I have 3 apple devices and I use the same apple ID for all 3.  I would like to create a new I'd for one of my devices, but do not want to loose the apps on that device.  Anyone know how I can do this?

    Create a new ID:
    On the iPod go to
    - Settings>Messages>Send and receive and sign out your ID and sign into the other one. Make sure that only her ID email address is listed.
    - Settings>FaceTime sign out of your ID and sign into the other one. Make sure that under You can be reached at only the newID email address is listed
    - Settings>iCloud and sign out and sign in with the new one
    - Settings>iTunes and App Store and sign out your ID and sign in with the new one.
    - Apps are locked to the account that purchased them.
    - To update apps you have to sign into the account that purchased the apps. If you have apps that need updating purchased from more than one account you have to update them one at a time until the remaining apps were purchased from one account.

  • How do I CREATE IF NOT EXISTS Temp table in PLSQL?

    hello, how do I CREATE IF NOT EXISTS Temp table in PLSQL? The following table is to be created in FIRST call inside a recursive function (which you'll see in QUESTION 2).
    QUESTION 1:
    CREATE GLOBAL TEMPORARY TABLE TmpHierarchyMap
                                  Id numeric(19,0) NOT NULL,
                                  ParentId numeric(19,0) NOT NULL,
                                  ChildId numeric(19,0) NOT NULL,
    ... more ...
                             ) on commit delete rows');
    QUESTION 2: How to return a temp table from a function?
    For example, this is how I'm doing it at the moment, using Nested Table.
    EXECUTE IMMEDIATE 'CREATE OR REPLACE TYPE TmpHierarchyMapObjType AS OBJECT
                   Id numeric(19,0) ,
                   ParentId numeric(19,0),
                   ChildId numeric(19,0),
    ... more ...
         EXECUTE IMMEDIATE 'CREATE OR REPLACE TYPE TmpHierarchyMapTableType AS TABLE OF TmpHierarchyMapObjType;';
    CREATE OR REPLACE FUNCTION fnGetParentsTable
    ObjectId number,
    ObjectClassifier varchar2
    RETURN TmpHierarchyMapTableType
    IS
    TmpHierarchyMap TmpHierarchyMapTableType := TmpHierarchyMapTableType();
    ThisTempId varchar2(32);
    CURSOR spGetParents_cursor IS
    SELECT
    Id,
    ParentId,
    ChildId,
    FROM TMP_HIERARCHYMAP
    WHERE TempId = ThisTempId;
    BEGIN
    SELECT sys_guid() INTO ThisTempId FROM dual;
    spRecursiveGetParents(ObjectId, ObjectClassifier, ThisTempId);
    FOR oMap in spGetParents_cursor LOOP
    TmpHierarchyMap.Extend();
    TmpHierarchyMap(TmpHierarchyMap.Count) := TmpHierarchyMapObjType( oMap.Id
    , oMap.ParentId
    , oMap.ChildId
    END LOOP;
    DELETE FROM TMP_HIERARCHYMAP WHERE TempId = ThisTempId;
    RETURN TmpHierarchyMap;
    END fnGetParentsTable;
    QUESTION 3: what does the word GLOBAL means? I read that temp table is visible only to a particular database connection/session and will be dropped automatically on termination of the session. i can only find this information in some forum discussion but failed to locate this in Oracle doc, can someone point me in right direction please?
    Many thanks!
    REF:
    http://stackoverflow.com/questions/221822/sybase-developer-asks-how-to-create-a-temporary-table-in-oracle
    http://www.oracle-base.com/articles/8i/TemporaryTables.php

    devvvy wrote:
    so if I CREATE GLOBAL TEMPORARY TABLE twice on second pass of my recursive function what then...?You don't create it inside your function.
    You create the GTT once on your database outside of the function and then just leave it there and use it.
    Tables should not be dynamically created and dropped.
    Only other database engines such as SQL Server use the concept of creating temporary tables during the execution of code. Oracle uses a "create once, use whenever" methodology.

  • Incomplete Control Deliveries add new table-field for Incompleteness Proced

    Incompletion Control for Deliveries add a new table-field for Incompleteness Procedure G (Delivery header)
    Hello,
    I'm trying to add a new field for Incompleteness Procedure G (Delivery header), but  when I try to customize the procedure G with new fields, I donu2019t find the field that I need  ModeOfTrnsprt-Border (EIKP-EXPVZ).
    Foreign Trade/Customs tables are not included like an option for new entries in the customizing of Incompleteness Procedure G, and Iu2019ve to prevent that users save the outbound delivery without entry a valid value for  EIKP-EXPVZ (EIKP-EXPVZ= ModeOfTrnsprt-Border).
    Otherwise, when users are creating the SD Invoice there is an error for create the Accounting document because Foreign Trade/Customs information is incomplete.
    So Iu2019d like to know If is possible to add a new tables ( and fields)  to use in the customizing for Incompleteness Procedure for Outbound Deliveries (procedure G).
    Thanks!!
    Edited by: Ariana Serrano Aguila on Sep 2, 2010 5:19 PM

    Hello,
    I'm trying to add a new field for Incompleteness Procedure G (Delivery header)
    , but when I try to customize the procedure G with new fields, I donu2019t find the
    field that I need ModeOfTrnsprt-Border (EIKP-EXPVZ).
    See as far as the table is concerned, the basic reason why it is not getting populated as SAP stores the possible values at the domain level. So i think the right approach to add the table would be to get access key for the domain and then add the new table name at domain level. Please reach out for help from ABAPer in this matter.
    You can also use User exit to met this requirement and the appropriate user exit will be as below:
    1.MV50AFZL
    2. MV50AFZ1
    Regards,
    Sarthak

  • Stored Procedure that creates a trigger on new tables

    I am trying to create a stored procedure that creates a trigger on new tables whenever the table is created.  The procedure should receive the new project table's name, and then create a dml trigger on that procedure.  When the procedure
    is run, I get an error "Incorrect syntax near keyword 'TRIGGER.'"  This is how my Stored Procedure looks in SQL Management Studio.  Any suggestions?
    USE [RIDB_DynamicDesign]
    GO
    /****** Object: StoredProcedure [dbo].[sp_CreateTriggerMarkLatest] Script Date: 11/08/2014 16:43:20 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    ALTER PROCEDURE [dbo].[sp_CreateTriggerMarkLatest] @ProjectTable nvarchar(128), @ItExists int OUTPUT
    AS
    DECLARE @SQL nvarchar(4000)
    DECLARE @MarkLatest nvarchar(30)
    DECLARE @LatTrue bit
    DECLARE @LatFalse bit
    SET @LatTrue = 'True'
    SET @LatFalse = 'False'
    SET @SQL = 'CREATE TRIGGER tr_MarkLatest ON ' + @ProjectTable + ' AFTER INSERT
    AS
    UPDATE ' + @ProjectTable + ' SET Latest = @LatFalse
    UPDATE ' + @ProjectTable + ' SET Latest = @LatTrue WHERE
    ID IN (SELECT ID FROM ' + @ProjectTable + ' p WHERE
    NOT EXISTS (SELECT 1 FROM ' + @ProjectTable + ' WHERE
    Name = p.Name AND Vers = p.Vers
    AND Date > p.Date))'
    EXEC sp_executesql @SQL, N'@ProjectTable nvarchar(128), @LatTrue bit, @LatFalse bit',
    @ProjectTable, @LatTrue, @LatFalse
    Gina

    First you have to debug the dynamic SQL string with a PRINT statement. I see some problems:
    CREATE PROCEDURE [dbo].[uspCreateTriggerMarkLatest] @ProjectTable nvarchar(128), @ItExists int OUTPUT
    AS BEGIN
    DECLARE @SQL nvarchar(4000)
    DECLARE @MarkLatest nvarchar(30)
    DECLARE @LatTrue bit
    DECLARE @LatFalse bit
    SET @LatTrue = 'True'
    SET @LatFalse = 'False'
    SET @SQL = 'CREATE TRIGGER tr_MarkLatest ON ' + @ProjectTable + ' AFTER INSERT
    AS
    UPDATE ' + @ProjectTable + ' SET Latest = @LatFalse
    UPDATE ' + @ProjectTable + ' SET Latest = @LatTrue WHERE
    ID IN (SELECT ID FROM ' + @ProjectTable + ' p WHERE
    NOT EXISTS (SELECT 1 FROM ' + @ProjectTable + ' WHERE
    Name = p.Name AND Vers = p.Vers
    AND Date > p.Date))'
    PRINT @SQL;
    -- EXEC sp_executesql @SQL, N'@ProjectTable nvarchar(128), @LatTrue bit, @LatFalse bit', @ProjectTable, @LatTrue, @LatFalse
    END
    GO
    DECLARE @ItExists int, @ProjectTable nvarchar(128) = N'TestTrigger';
    EXEC [dbo].[uspCreateTriggerMarkLatest] @ProjectTable, @ItExists OUTPUT
    CREATE TRIGGER tr_MarkLatest ON TestTrigger AFTER INSERT
    AS
    UPDATE TestTrigger SET Latest = @LatFalse
    UPDATE TestTrigger SET Latest = @LatTrue WHERE
    ID IN (SELECT ID FROM TestTrigger p WHERE
    NOT EXISTS (SELECT 1 FROM TestTrigger WHERE
    Name = p.Name AND Vers = p.Vers
    AND Date > p.Date))
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Database Design
    New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

  • Output not getting proposed from a Purchase Order just for One vendor

    Hi All,
    We have an issue where in we have maintained a condition record with the access as "Purchase Doc type (NB) and Purchase Organization(XXXX):" pointing towards a "LS" partner function (ALE) and "4"
    We have also maintained Partner configuration correctly. The issue which happens only in Production and not in TEst systems which is " only for ONE VENDOR the output is not getting proposed and for the other vendors it is getting proposed correctly. We also have a requirement attached to the Output and we do not have any vendor specific logic.
    We also checked /Compared both the test and production system on Output Configuration as well as master data for VEndor and Info records and they seem to be ok.
    Does any one faced a similar situation why an Output would not propose just for one specific vendor?
    Would appreciate if any one can reply asap.
    Thanks,

    Then check with the requirement you are using bd64 is distribution model.
    Check with ur output type, requirement and output determination. ale service comes only in picture partner profile with outbound parameters.
    have u done the correct entries under message control in outbound parameters.
    thanks
    Aman

  • Moving the 80 Million records from Conversion database to System Test database (Just for one transaction table) taking too long.

    Hello Friends,
    The background is I am working as conversion manager and we move the data from oracle to SQL Server using SSMA and then we will apply the conversion logic and then move the data to system test ,UAT and Production.
    Scenario:
    Moving the 80 Million records from Conversion database to System Test database (Just for one transaction table) taking too long. Both the databases are in the same server.
    Questions are…
    What is best option?
    IF we use the SSIS it’s very slow and taking 17 hours (some time it use to stuck and won’t allow us to do any process).
    I am using my own script (Stored procedure) and it’s taking only 1 hour 40 Min. I would like know is there any better process to speed up and why the SSIS is taking too long.
    When we move the data using SSIS do they commit inside after particular count? (or) is the Microsoft is committing all the records together after writing into Transaction Log
    Thanks
    Karthikeyan Jothi

    http://www.dfarber.com/computer-consulting-blog.aspx?filterby=Copy%20hundreds%20of%20millions%20records%20in%20ms%20sql
    Processing
    hundreds of millions records can be done in less than an hour.
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • HT1222 Peace, I am one of millions who is loyal and loves apple, I was not completely happy with iOS7 for one thing which the new themes and I really think that the old icons theme is what's makes it unique, I was wondering if we can make an option  to ch

    Peace, I am one of millions who is loyal and loves apple, I was not completely happy with iOS7 for one thing which the new themes and I really think that the old icons theme is what's makes it unique, I was wondering if we can make an option  to choose from new and previous once?

    User to user forum.
    You are not addressing Apple here.
    No, once you install iOS 7 that is it.

  • Do I can create a page who is locked just for selected user?

    Do I can create a page who is locked just for selected user?

    The manner how you put files on the server is unimportant.
    It's the Webserver (usually Apache) itself that does the protecting.
    So either use the control panel where you host your website, or use the method explained on the page I linked to.
    Should look like this (on the left) :
    Your visitor will see this :
    http://home.wyodor.net/protect/
    Use : root/root
    Inside it looks like this :

  • How to change a item property just for one record

    Hi,
    My Requirement is, when a new record is inserted i want item1 to be enabled(which is disabled by default) only for this new record. when I implement the following code, entire column is enabled intead of just for one record.
    The code I have written in WHEN-NEW-RECORD-INSTANCE trigger is
    app_item_property.set_property('block1.item1', ALTERABLE_PLUS, PROPERTY_ON);
    app_item_property.set_property('block1.item1', ENTERABLE, PROPERTY_ON);
    please help!
    Thanks
    Sunny

    The code I have written in WHEN-NEW-RECORD-INSTANCE trigger is
    app_item_property.set_property('block1.item1', ALTERABLE_PLUS, PROPERTY_ON);
    app_item_property.set_property('block1.item1', ENTERABLE, PROPERTY_ON);What is APP_ITEM_PROPERTY? This is not a Valid Oracle Forms Built-in. I don't see how your When-New-Record-Instance (WNRI) trigger will compile.
    To change the properties of a specific instance of an item you would use the Set_Item_Instance_Property built-in and then there are only a few properties you can change; which are: BORDER_BEVEL, INSERT_ALLOWED, NAVIGABLE, REQUIRED, UPDATE_ALLOWED and VISUAL_ATTRIBUTE. To make a specific instance of "ITEM1" Insertable and Updateable you would use the following:
    Set_Item_Instance_Property('YOUR_BLOCK.ITEM1', CURRENT_RECORD, INSERT_ALLOWED, PROPERTY_TRUE);
    Set_Item_Instance_Property('YOUR_BLOCK.ITEM1', CURRENT_RECORD, UPDATE_ALLOWED, PROPERTY_TRUE);However, if you have set the ENABLED property of ITEM1 to NO in the Forms Builder, you will not be able to "Enable" the item using Set_Item_Instance_Property. You will need to make the item Enabled and set the INSERT/UPDATE properties to NO.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Is it possibel to create one connection [pool for one report only

    Hi is it possibe to create one connection pool for one report only. Others report are running from the another connection pool under same DB.
    Thanks,

    Hi,
    Why do u want seperate connectionpool for that single report?
    I dont think its possible.Direct database request will be good solution for this.Try importing those columns which are used to build that report into physical layer and create new subject area.Not sure weather its right way to do.
    Regards,
    Srikanth

  • What r the tables used for this report.

    hi all..
    i am a fresher for ABAP. i need the help.
    what r the tables used for this report.
    Reports provide pending order details according to Material wise and customer wise for particular month.
    thanks in advance
    RK.Ashokkumar.

    Hi Ashok,
    this is easy to do.
    Open Two SAP Screen with same user ID.
    Run SQL trace using ST05 transaction.Open ST05 transaction in One and make
    Trace on ,Run the report in another screen.
    Once report run is over.End the trace process and click on display trace in same ST05 transaction.There is a click button on ST05 Transaction screen to start trace
    process,End trace process and Display track process.
    The SQL trace will  give you all the table details which is used in that particular report.
    You have not mentioned about the report name so I have suggested this way.
    regards,nishant
    Please reward if this helps

  • APPLY stream in ABORT state just for one error ?

    Hi,
    When there is an error, the APPLY process appears ABORT in the EM console, and I have to restart it after cleaning the errors.
    So, it means the APPLY process no longer run...
    My idea was that the errors would fill an error queue while other successful events would continue....
    If it fails in production just for one error, it's not quite acceptable....

    You must use something like:
    begin
    dbms_apply_adm.set_parameter('APPLY_NAME', 'disable_on_error', 'N');
    end;
    The default is 'Y', that's why it stops.
    See:
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_apply.htm#i997629
    Regards,

  • I'm really sorry i just bay my griAddress again to my phone please grindar extra just for one month and you charge me for one year so i would like to cancel that transaction and pay only monthly many thanks marcel

    I'm really sorry i just bay my griAddress again to my phone please grindar extra just for one month and you charge me for one year so i would like to cancel that transaction and pay only monthly many thanks marcel

    These are user forums. You are not speaking to Apple. We can't assist you. You must contact Apple directly in your country.
    Customer Service: Contacting Apple for support and service - this includes international calling numbers.

Maybe you are looking for

  • Error getting values by getParameterValues() in a servlet from a jsp page

    Hi, i cant recive in my servlet the values that a user write in some input text in the next page: <%@ page language="java" contentType="text/html; charset=ISO-8859-1"     pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transi

  • HT1620 windows 8 and itunes conflict, itunes won't recognize my existing ipod touch

    I have an existing ipod touch and windows 8. For some reason, itunes is telling me to check latest windows update but my computer is up to date.No idea what to do?

  • What bapi return structure consists

    Hi experts,     can anybody clarify my doubt regarding bapi's used for data transfer. when we r using bapi for data transfer how error transactions will be handled. what exactly return structure consists. can we get error transactions log in the retu

  • Does the duration of the video change after putting a slow motion effect?

    Hi, I'm new with this After Effect software, and through researches and youtube videos, i learned how to make a slow motion clip, but i found a problem just after i was so happy to learn something new. Because I was so excited to try it out, i took a

  • Safari misbehaving after reset

    I've been having serious beachball issues with Safari, so in my troubleshooting one of the first things I tried was to reset Safari. The result has been that the beachball issues haven't gone away, and more problems have arisen, specifically: 1) Usin