Faster performance? : QueryNew, Structure or SQL temporary table?

Hi there, hope someone can help me. I created a rather complicated calendar application that needs to loop through each week of a month and a scan for orders for this day there show out them well. Because long-term (LT) orders can extend over several days and weeks, so I group them in a HTML TableRow (TR) throughout the week. So to do this, I have the week prior analysis first, write all data in a QueryNew and then empty results in TRs (I can NOT all just a loop for queries per day, unfortunately, long-term arrested because he had to stay is grouped together). And I have to do the pre-scan to determine what day of the week has the largest amount of long-term arrested and other so I don't know how many slots TR banding to explain (and it is also possible to sort otherwise where orders rubanées display, etc.).

Anyway, just believe me when I say that this pre-scan in a QueryNew is necessary.

The problem I have now is that this page takes 52 seconds to load for some customers who have a LARGE number of long-term orders (say 20-40) which analyze several weeks because the QueryNew takes some time to set up and when I interrogate the QueryNew for the post of enforcement LT TR, he took 47ms by command LT per day (which adds up to nearly 52 seconds with all the others) queries). For some reason, the query of a query seems to take more time than a query to an SQL database.

Then I start thinking that the QueryNew wasn't the way to go? Should I use a structure or a Temp Table in SQL instead? Someone at - it any THOUGHTS? I would appreciate so much! Thank you!!!

BTW, here is a screenshot of part of my this QueryNew CFDUMP, I want to talk. DisplayOrder1 is the day of the month and DisplayOrder2 is the number of TR: http://www.planet-k.com/test/queryforcalendar.cfm

I think SQL Temp Tables is the most correct approach. I thnk that's the
more effective.

Scanning/filtering data in sql tables looks like something from the database
should do?

Good luck!

Tags: ColdFusion

Similar Questions

  • Working with temporary tables in PL/SQL processes

    So I'm trying to write a PL/SQL process and I have some difficulty. Here's what I do:

    -Create temporary tables
    -Put the data in them
    -Use the data in temporary tables to fill the main status table
    -Remove temporary tables

    I'm running into some problems when I try to create the tables. If I do as I would in SQL Server:

    SELECT field1, Field2
    IN TempTable1
    Of


    Then, I get an error saying that there is no such thing as TempTable1. If I say:

    CREATE TABLE TempTable1 AS
    SELECT field1, Field2
    Of


    Then I get "found CREATE, Expecting CASE or another statement." I know that to truncate or remove tables in a PL/SQL, I use EXECUTE IMMEDIATE. I do the same thing for the creation of a table? If this is the case, how can I use run immediately on a query with apostrophe inside multi-line?

    Thank you!

    Use of temporary tables in Oracle is different from MS Sql Server.
    In Oracle, you create tables Temp the same way you would normally create a permanent table.
    Search syntax "create a global temporary table.
    Oracle global temporary tables are visible to all connections, but don't share all the data.
    The data are visible only for connections that introduced the data and are removed on commit / rollback, or when the connection ends.
    So Structure is permanent, data is temporary and exclusive to a single connection.

    If your process should look like this:

    Create global temporary tables - once - at the same time, you create all of the other tables in your system.

    -Fill the temporary tables.
    -use the data in temporary tables to fill the main report table
    -remove the data from the temporary tables.

    Information on the Temp in Oracle tables:
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14231/tables.htm#sthref2213

    HTH
    Thomas

  • Global temporary table in PL/SQL with XML

    Hello

    I have the impression that it is something strange or maybe I'm missing something basic.

    Step 1: Create a global Temp table that should not be specific transaction.

    create a global temporary table Temp01

    (

    NUMBER OF TICKET_ID

    , Varchar2 (10) of the REGION

    NUMBER OF THE YEAR

    , CO_ID VARCHAR2 (10)

    ) ON COMMIT DELETE ROWS.

    Step 2:

    My XML that goes as a parameter to a new function.

    < TICKET >

    < TICKET_ID > 38498051 < / TICKET_ID >

    the USA < REGION > < / REGION >

    < YEAR > 2014 < / YEAR >

    XYZ123 < CO_ID > < / CO_ID >

    < / TICKET >

    Step 3: Create a Stand Alone function:

    -drop function aagarwal.wr_creation;

    create or replace FUNCTION XML_FUNC

    (

    ret_msg out varchar2,.

    p_xmlval IN varchar2

    )

    RETURN varchar2

    is

    l_xmlval varchar2 (4000): = p_xmlval;

    V_CO_ID VARCHAR2 (10);

    V_CODE VARCHAR2 (10);

    BEGIN

    BEGIN

    INSERT INTO Temp01

    (

    TICKET_ID,

    REGION,

    BLEACHED,

    CO_ID

    )

    SELECT

    EXTRACTVALUE (XmlType (p_xmlval), "/ TICKET/TICKET_ID ') ID,.

    EXTRACTVALUE (XmlType (p_xmlval), "/ TICKET/REGION") REGION.

    EXTRACTVALUE (XmlType (p_xmlval), "/ TICKET per YEAR"),.

    EXTRACTVALUE (XmlType (p_xmlval), "/ TICKET/CO_ID ') CO_ID

    FROM DUAL;

    ret_msg: = 'SUCCESS';

    -SELECT CO_ID IN V_CO_ID of aagarwal. TEMP_STAGE_WR;

    -return ret_msg;

    EXCEPTION

    WHILE OTHERS THEN

    ret_msg: = sqlerrm;

    Return ret_msg;

    END;

    BEGIN

    SELECT CO_ID INTO V_CO_ID FROM Temp01;

    / * MERGE IN the site is

    With the HELP of aagarwal. TEMP01 T

    WE (T.co_id = se.code AND se.type_nm = ' TYPE' and se.src_nm = T.region)

    WHEN NOT MATCHED THEN

    INSERT (ID, SRCNM, CODE, TYPENM)

    VALUES (SHARED_SEQ. NEXTVAL, T.region, T.co_id, 'TYPE');

    -commit; */

    return ret_msg | "ACE" | v_co_id;

    END;

    END;

    /

    Fact - created function.

    NOTE: MERGE statement is blocked and if the function was created in sweetness.

    Step 4: Call the function

    declare

    l_out varchar2 (50);

    l_outr varchar2 (50);

    p_xml XMLTYPE.

    Start

    l_outr: = XML_FUNC (l_out, ' < TICKET >)

    < TICKET_ID > 38498051 < / TICKET_ID >

    the USA < REGION > < / REGION >

    < YEAR > 2014 < / YEAR >

    XYZ123 < CO_ID > < / CO_ID >

    (< / TICKET > ');

    dbms_output.put_line (l_outr);

    end;

    /


    Step 5: Check the value being inserted into the temporary Table:


    Select * from temp01;


    So far so good.

    THE PROBLEM:

    Now I want to tweek the XML_FUNC function above by uncommenting MERGE statement, which brings me to an error that is not differentiable:

    I.e. PL/SQL: ORA-00942: table or view does not exist in line on MERGE pointing to Temp01 statement.

    NOTE: I tested this Merge statement explicitly (as long as the execution of Stand Alone and also by calling via anonymous block PLSQL) and its absolutely perfect work. And SITE table exist.

    PS: I would be grateful, if there is a better way to write this code? I'm not a regular PLSQL developer and so badly can write the code of practice.

    Kind regards

    AAG.

    Using 11.2.0.3:

    Owner of all these three objects is DBA.

    Are you sure?

    After the release of:

    Select object_name, object_type

    of object

    where object_name in ('TEMP01', 'SITE', 'XML_FUNC');

    You must grant the explicit right to select on the table for the owner of the function if the owners are different.

    This works as expected for me (user DEV has all 3 items):

    Connected to Oracle Database 11g Enterprise Edition Release 11.2.0.3.0

    Logged in as dev

    SQL >

    SQL > create a global temporary table Temp01)

    NUMBER OF TICKET_ID 2

    3, Varchar2 (10) of the REGION

    4, NUMBER OF THE YEAR

    5, CO_ID VARCHAR2 (10)

    6)

    7. ON COMMIT DELETE ROWS.

    Table created

    SQL >

    SQL > create table site)

    Identification number 2

    3, srcnm varchar2 (10)

    4, code varchar2 (10)

    5, typenm varchar2 (10)

    6  );

    Table created

    SQL > create the sequence shared_seq;

    Order of creation

    SQL >

    SQL >

    SQL > create or replace FUNCTION XML_FUNC)

    2 p_xmlval IN varchar2

    3)

    4 RETURN varchar2

    5 is

    6 l_xmlval xmltype: = xmltype (p_xmlval);

    7. START

    8

    9 INSERT INTO Temp01

    (10)

    TICKET_ID 11,

    REGION 12,

    13 YEARS,

    CO_ID 14

    15)

    16. SELECT ID EXTRACTVALUE(l_xmlval, '/TICKET/TICKET_ID'),

    17 EXTRACTVALUE(l_xmlval, '/TICKET/REGION') REGION,

    18 EXTRACTVALUE (l_xmlval, ' / TICKET per YEAR ') YEAR.

    19 EXTRACTVALUE(l_xmlval, '/TICKET/CO_ID') CO_ID

    20 FROM DUAL;

    21

    22. MERGE IN site

    23. WITH THE HELP OF TEMP01 T

    (24)

    25 T.co_id = se.code

    26 AND se.typenm = 'TYPE '.

    27 and se.srcnm = T.region

    28)

    29 WHEN NOT MATCHED THEN

    30 INSERT (ID, SRCNM, CODE, TYPENM)

    31 VALUES (SHARED_SEQ. NEXTVAL, T.region, T.co_id, 'TYPE');

    32

    33 return "SUCCESS";

    34

    35 END;

    36.

    Feature created

    SQL >

    SQL >

    SQL > set serveroutput on

    SQL >

    SQL >

    SQL > declare

    2

    3 l_outr varchar2 (50);

    4

    5. start

    6

    7 l_outr: = XML_FUNC (')

    8 38498051

    9 USA

    10 2014

    11 XYZ123

    12    ');

    13

    14 dbms_output.put_line (l_outr);

    15

    16 end;

    17.

    SUCCESS

    PL/SQL procedure successfully completed

    SQL > select * from site;

    ID CODE TYPENM SRCNM

    ---------- ---------- ---------- ----------

    TYPE 1 USA XYZ123

  • : SQL error create temporary table

    I do a small Forum of discussion for a customer.

    So having a problem below:

    Internal error.
    tNG_fields.getFakeRecordset:
    SQL error: error creating temporary table:
    Você tem um erro syntax no seu proximo a SQL '-TEXT messaging, cidade idade foto senha, TEXT TEXT TEXT TEXT of COD)' na linha 1
    SQL:
    CREATE TEMPORARY TABLE KT_fakeRS_20090928 (nome cidade of TEXT, text, TEXT, TEXT, TEXT, TEXT, TEXT of cod senha foto idade) (FIELDS_FAKE_RS_ERROR)
    • tNG_insert.executeTransaction
      • STARTER. Trigger_Default_Starter
    • tNG_insert.getRecordset
    • tNG_insert.getLocalRecordset
    • tNG_insert.getFakeRecordset*


    Please help me solve this problem.



    Can´t you have the hyphen (-) in the column names and that s why MySQL chokes on the column 'email '. That said, please rename this column 'e-mail' or 'email' (underscores are allowed)

    See you soon,.

    Günter

  • temporary tables using interfaces in this

    What is the purpose of the temporary tables in all by performing interfaces
    someone explain to me the treatment

    Transformation of a CI mess up sliders SQL, that I recently discovered. A temporary table or a set of rows to retrieve the values you are looping on (if of course) can help solve this problem.

    If you mean App Engine treatment in general (as in the post above), it is especially to avoid a loop by line and the same action above and all over again, or to avoid having to put many large tables in 1 query (you can update some fields in various stages), for example support I want to update an amount for each person , then I could have one

    In most cases less capable version:
    -----------------------------------------------------
    DoSelect:
    %Select(EmplId)
    SELECT COST FROM your query
    Followed by:
    INSERT INTO My_Result
    SELECT * FROM my_table
    Where emplid = %Bind(Emplid)

    In most cases better:
    ------------------------------
    Step SQL:
    Insert into %Table(My_ExmplTMP) (EMPLID) SELECT EMPLID FROM your query
    Followed by:
    INSERT INTO My_Result
    SELECT * FROM Tbl my_table, Tmp %Table(My_ExmplTMP)
    Where Tbl.emplid = TMP. EmplId

  • Temporary Tables vs. two multidimensional arrays

    Dear gurus,

    We have an obligation to perform a loop on a few thousand lines and do some calculations complex (to do in PL/SQL cannot be through simple SQL). These lines came out of a long running query dealing with millions of rows.

    Now the question - our team is to have a confusion if we need to use a temporary table or tables in two dimensions.

    We tried both ways and right now, there seems to have not much of a difference in processing times. (I know it's not good to be based solely on the processing time, especially when it is just a test environment - not as much data as in production, diiferent server,...)

    Could you gurus please thow shed some light on this? The use of memory other resources the same in both cases?

    Thanks in advance.

    884476 wrote:

    TWG is also private, no data?

    Definition of static, private data. Like object class which is public, and all objects instantiated from this class exist in the code that builds the object.

    Where should it be stored? In the files of data - or PGA?

    No PGA. Oracle will use the temp space (shareable) database.

  • order of the lines of the global temporary table

    I have a global temporary table "TMP_PAYMENT_ANNUITY" and I insert records in there with loop for each iteration of loop insert a row in the table.
    Now, I'm back records inserted user with cursor in this way:
       open o_annuity_payments for 
          select * from TMP_PAYMENT_ANNUITY;
    Can I be sure that the slider will have records in exactly the same order as inserted loop them?
    Or do I also insert rownumber column of my table that I filled with the loop iteration variable, and I'll be back slider like this:
       open o_annuity_payments for 
          select * from TMP_PAYMENT_ANNUITY
           order by ROWNUMBER;
    Currently, I have "ROWNUMBER"-column in the table, but maybe I should create then? ".
    The question is about the order of the rows, how this order will be without "in order to" - clause?

    Published by: CharlesRoos on June 2, 2010 03:03

    CharlesRoos wrote:
    >
    What makes the solution of the temporary table better?
    >

    1. This approach/solution is easier to read for other developers. Ugly hierarchical query with the function LAG is difficult to read and edit.

    I agree with you! It's one of the reasons when you should stop developing very sophisticated SQL statements. Even if the performance is slightly better.

    2-hierarchical-feature in sql is always slow and friendly error.

    I don't think that a hierarchical solution is necessary. but it may depend on your version of Oracle (think MODEL clause).

    3. it is easy to implement the "temporary table solution." with complex sql construction will be time-consuming and bug-friendly and complex.
    3. I'm not sure the question of perfomance, here I may be wrong, I test/compare.

    ...

    CharlesRoos wrote:
    1 can someone confirm that I don't need "ORDER byclause?

    I never would implement it WITHOUT a prescription by cluase. Why depend on such a solution?
    One of your strong points would improve maintainability. It is against this requirement.
    Imagine this happening, for example, when another developer decided to move from a temporary to a normal table. Maybe by adding a field 'user '.
    In such a scenario, you can find ways where the output is sorted not more properly.

    I can't find Google evidence.

    2. what happens if I order by as:

    select * from TMP_PAYMENT_ANNUITY
    ORDER BY ROWID;
    

    This approach maybe gives me the order of the rows as they are in the table?

    main problem is that you cannot test if it STILL works without order. But you will need to find not only one rare case that breaks it.

    * In a multiuser environment, the table could put a few lines where another session comes to delete certain lines. This could influence the agenda.
    * oracle could change something for the release of "like orders ' (I did they did already in the GROUP BY clause from 9i to 10g).

  • Temporary tables in stored procedure

    Hello

    I write a stored procedure that will get data from different sources and generates a spreadsheet finally. Initial selection gets the basic data and chooses then merges the data.

    To do this, I created a table in the database, I'm filling in data in this table by using the same procedure and finally selection of data in this table to generate the worksheet.

    Now, I plan to use the TEMPORARY table instead of create database table. Can someone tell me where I can watch examples for temporary tables?

    What is the best option in performance wise?

    or

    I can handle the whole scenario with slider? examples?

    Hello

    Why you cannot use an ordinary table?

    Search for [Global Temporary | http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/statements_7002.htm#sthref7247] in the diocumentation, including SQL * manual language, an alternative.

    'Temporary' applies only to the data. A global temporary Table is created once and remains until you DROP, the same as any other table.
    The data in the table are temporary. If you create the table by saying "ON COMMIT PRESERVE ROWS" (which seems appropriate, according to your description) the data will be automatically deleted when you end the session database.

    All global data in temporary Tables are specific to the session. If two (or more) people use the same table at the same time, each one will see data that they inserted themselves; they'll never see rows inserted by the other session.

    Almost everything you can do with an ordinary table, you can do with a global temporary Table. In particular, DML (such as FUSION) and cursors work exactly as they do on other tables.

  • Copy into a temporary table

    My entry is a file. Because I don't have an ETL tool, I use a stored procedure to do ETL (which also gives me an advantage, I don't have to unload the target table to the join). So, I dump the contents of the file into a temporary table and use it in proc.

    The query is like

    Insert into < table1 target > (select fields and a transformation of < temporary table > where < key > target not in the table and < some joins with other tables in the database >)

    Like that, I have four requests for four target tables.

    The homes of the temporary table in the table target is very slow because the target a lot of index and RI. I can't let go & create index because the conditions of application does not give me this freedom.

    My only option is to insert into a temporary table that is similar to the target, but without any clue/RI/PK and then dump in a file and then use SQL loader to load the file in the target table. It is relatively fast, but is a very heavy route for me.

    Is there another way to bulk insert from one table to another table as SQL loader without using a file? Is anyway to bypass the update index operation without deleting the index?

    My source will be almost 500,000 lines and target is to have 9 million lines.

    Posts like this are better to avoid.
    Because
    -You do not post a version
    -You do not publish the SQL
    -You do not publish the PLAN of EXPLAIN
    It is your statement, the INSERT is to blame, but it can also be the SELECT statement involved.
    Basically, your message boils down to
    "It does not work. Please help ', without any relevant information.
    I say this because INSERT SELECT is the fastest method available. OK, you can try the hint APPEND, but in this case, you need to rebuild all indexes. Something that you say that you can't do.
    BULK inserts will be slower, SQL * Loader will be slower too, since it's SQLnet. INSERT SELECT is a side operation server.
    And the 'solution' to do through a file... UM, let's not talk. It simply doesn't get it.

    -----
    Sybrand Bakker
    Senior Oracle DBA

  • Temporary tables are themselves created, name starting with BIN$...

    Hello

    I use Oracle 10.2 and a problem that make certain operations on existing tables, some temporary tables to develop starting with BIN$.

    For ex: BIN$ HULdSlmnRZmbCXAl/pkA9w == $0

    But I do not see these tables in the database after two or three days. I found that these temporary tables are a replica of the existing tables and these contain only the structure of the table, but not the data. I couldn't even drop database.

    Can someone throw some tips on this?

    Thank you and best regards,
    Siva

    These paintings are in the trash of Oracle. When you delete a table, Oracle renames just for BIN$ xxx so that you can undrop table if you made a mistake.

    -You can ignore tables in the trash if you wish. Oracle purge them automatically when it needs the space.
    -You can prevent a table goes the trash by adding the command serve down, i.e.

    DROP TABLE table_name PURGE
    

    -You can empty the trash using the command

    SQL> purge dba_recyclebin
    

    (or just recyclebin if you do wish to erase objects you own to the recyclebin).

    Justin

  • "missing the SELECT keyword" error during an insert into the temporary table using the blob value

    I'm trying to insert into an oracle temp table using select that retrieves data from a blob field but I get the error: "lack the SELECT keyword.

    How we store temporary in oracle result when we make this type of operation (extraction of data in fields and try to load them into a separate table on the fly.?)

    with cte as)

    Select user_id, utl_raw.cast_to_varchar2 (dbms_lob.substr (PREFERENCES)) as USER my_blob

    )

    create table new_table as

    SELECT user_id,EXTRACTvalue(xmltype(e.my_blob),'/preferences/locale') regional settings

    E ETC

    ----------------------------------------------------------------------------------

    BLOB data - value - which is

    <? XML version = "1.0" encoding = "ISO-8859-1" ?>

    - < Preferences >

    < time zone > America/New_York < / > zone

    < displayscheduleinusertimezone > Y < / displayscheduleinusertimezone >

    < local > Spanish < /locale >

    < DateFormat > JJ/mm/aaaa < / DateFormat >

    < timeFormat > hh: mm aaa < / timeFormat >

    < longformat > Long_01 < / longformat >

    < doubleformat > Double_01 < / doubleformat >

    < percentformat > Percentage_01 < / percentformat >

    < currencyformat > Currency_01 < / currencyformat >

    < / Preferences >

    A WITH clause that must immediately precede the SELECT keyword:

    SQL > create table t:

    2 with the o as (select double dummy)

    3 select * West longitude;

    Table created.

  • Are global temporary tables, a standard feature of Oracle?

    I apologize for introducing me to this community with what must seem like a very stupid question...

    I am a software developer, working on a product that uses Oracle as its database, specifically Oracle 11 g Enterprise Edition. Recently, I solved a problem of performance by converting an ordinary table into a global temporary table. Before my boss allows me to put this change in the product, it wants to be sure that global temporary tables are a standard part of Oracle, not something that the customer must install separately or pay extra for. (This is the first time that we never used them in our product, so I think that most of the team are not familiar with them).

    I know that Oracle has had global temporary tables since the last millennium, so if ever, they have been a feature of the premium, they are unlikely to be now, but the boss wants me to get independent confirmation of this.

    Thank you.

    Steve Pemberton

    Here you can see "feature availability by Edition":

    http://docs.Oracle.com/CD/E11882_01/license.112/e47877/editions.htm#DBLIC116

    TWG tables is not even mentioned, which means that they do not belong to the functional components are paid separately.

    One caveat - if you have an application that uses connection pooling, it is recommended to use ON COMMIT DELETE ROWS, not ON COMMIT PRESERVE ROWS

    (or always use explicitly "DELETE gtt_table" at the beginning), because otherwise a user of the application can display the data TWG who has previously made a second user of the application.

    Kind regards

    Zlatko

  • PLS-00357 on a global temporary table

    Oracle 11g R2

    I am using a dynamic SQL statement to delete rows. The WHERE THERE EXIST uses a global temporary table and it gives me

    PLS-00357: Table, view or reference sequence "TMPPRE_ARC" not allowed in this context

    Any ideas of a work around?

    create global temporary table tmppre_arc
      ( id number)
      ON COMMIT PRESERVE ROWS;
    
    
    CREATE OR REPLACE PROCEDURE test_del
    IS
       v_owner_tbl varchar2(61) := 'test_table'     ;
    BEGIN   /* DELETE_SOURCE */
            EXECUTE IMMEDIATE
                'DELETE FROM ' || v_owner_tbl || ' v ' || chr(10) ||
                'WHERE EXISTS ( SELECT    null '       || chr(10) ||
                'FROM      ' || tmppre_arc || ' r '  || chr(10) ||
                'WHERE       r.id     = v.id )' ;
    END test_del;
    /
    show errors
    
    
    LIsNE/COL ERROR
    -------- -----------------------------------------------------------------
    5/9      PL/SQL: Statement ignored
    8/29     PLS-00357: Table,View Or Sequence reference 'TMPPRE_ARC' not
    allowed in this contenxt
    
    
    
    
    
             allowed in this context
    

    This is false:

    'FROM ' | tmppre_arc | ' r '  || Chr (10) |

    Should be

    "OF tmppre_arc r | Chr (10) |

    SY.

  • Campus solution 9.0: engine Application parallel treatment of the Instances of the temporary Table

    People,


    Hello. I'm working on 9.0 Solution on a University Campus. I'm working on the module of Community Campus. I face a problem like below:


    Campus Community > personal information > add/update a person


    I can type in all the information for a person successfully and save it with success. But what research, it does not return anything to PS user
    This is because the security of access to demographic data is not granted to the user. So, I put security as below:


    Step 1:

    Set Up AWAR > Security > Secure Student Administration > permissions list > access to demographic data: I have select permission list HCPPALL and EOEI9200 for the PS user

    Step 2:

    Set Up SACRED > Security > Secure Student Administration > process > access to demographics: the process to initialize the authorization indicates to the user PS process program is the Application Engine. The process name is MSK_CFG. The process is not successful and returns an error as below:

    Table or view does not exist. Has no SQL statement: Truncate Table USER.PS_MSK_CFG_TAO4.


    The above error is that of the motor parallel processing Application on instances of the temporary table. There are 2 modes: online and batch. I run it in 2 modes as below:

    Online mode:

    Step 1: Navigator PeopleTools > Public Services > Administration > PeopleTools Options: I change 3 to 4 for the Instance of the Temp Table total and online.
    Step 2: Create a new control ID Temp1 and execute processes on Navigator SetUp > Security > Secure Student Administration > process > process of demographic data. The MSK_CFG process runs successfully, but the output file contains the message:

    ATTENTION: Application request engine is not active! Suspended treatment!


    So I run of steps 3, 4 and 5 in Batch mode as below:

    Step 3: Navigator PeopleTools > Application Engine > application Application Engine > engine Application request Page > add a new control ID Temp1.
    Step 4: Run the MSK_CFG with Temp1 process again and get the error:

    Table or view does not exist: Truncate table USER.PS_MSK_CFG_TAO5.

    Step 5: I change 4 to 5 navigator PeopleTools > Public Services > Administration > page PeopleTools Option for the Instance of the Temp Table total and online.

    Re-run the MSK_CFG process and get the error:

    Table or view does not exist: Truncate table USER.PS_MSK_CFG_TAO6.

    I have increase by 5-6 for the temporary Table instance and re-run the MSK_CFG process and get the same error with incremental number:
    Table or view does not exist: Truncate table USER.PS_MSK_CFG_TAO7.

    I have increase by 6 to 7 and re-run the MSK_CFG process and get the same error:
    Table or view does not exist: Truncate table USER.PS_MSK_CFG_TAO8.

    The maximum is 99, I continue to adding 1 to the Temp table instances and run the MSK_CFG process. But get the same error with differentials 1 as below:

    Table or view does not exist: Truncate table USER.PS_MSK_CFG_TAO9.
    Table or view does not exist: Truncate table USER.PS_MSK_CFG_TAO10.
    ... ...

    Table or view does not exist: Truncate table USER.PS_MSK_CFG_TAO99
    Table or view does not exist: Truncate table USER.PS_MSK_CFG_TAO.

    My question is:

    Because the engine of the application is not active with a new control ID Temp1 in online mode, I add the new control ID Temp1 in the Application engine page request but get the error above.  How to solve the error above to begin the process of MSK_CFG?

    Thanks in advance.

    People,

    Hello. The problem is solved by myself.

    The thing is that we need to open the MSK_CFG_TAO of the temporary Table in the application designer and build. After construction, the table PS_MSK_CFG_TAO and PS_MSK_CFG_TAO1 come in the database.

    MSK_CFG process runs correctly now. Personal information of search returns data successfully. Thank you.

  • Create a temporary table using EXECUTE IMMEDIATE

    Hello

    I need to create a report more complex which must have three different queries. I use a determined IF clause that the query that uses the report, according to the parameters.

    I want to write the output to a csv file, so I created a PROCEDURE.

    The first package of the procedure has the three SQL and the IF clause in order to determine the query that the report uses and stores the query code in a variable (v_sql), which is passed to the PROCEDURE that needs to write to the output of the report.

    I tried to create a table with data from the request in order to make a LOOP and exit, something like this:

    WRITE_FILE (errBUFF of the PROCEDUREOUT VARCHAR2,
    retCODEOUT VARCHAR2,
    v_sqlIN VARCHAR2)

    IS

    ContorNUMBER;

    BEGIN

    EXECUTE IMMEDIATE v_sql;
    SLIDE G
    IS
    Select * from XXROR_REG_MF_TBL;
    --
    -initialization
    --
    retCode: = 0;
    errBUFF: = NULL;
    Contor: = 0;
    --
    -cursor
    --

    FOR X IN G
    LOOP
    APPS. FND_FILE.
    PUT_LINE)
    APPS. FND_FILE. OUTPUT,
    ....)

    I should mention that v_sql is something like:

    CREATE GLOBAL TEMPORARY TABLE ACEs (SELECT * of the double);

    I can't really do that, so I was wondering if you have any suggestions

    Thank you

    Claudiu

    Hello

    I don't think you need a table at all. You can set the cursor based on the SQL passed as parameter

    https://docs.Oracle.com/database/121/LNPLS/dynamic.htm#LNPLS629

    Concerning

    Marcus

Maybe you are looking for