temporary table unanswered question

Temporary tablespace issue
I worked on tablespace temp for the last 4 days some of the question which are not clear about the temporary space
(1) why is it that for optimal performance, the UNIFORM SIZE must be a multiple of the parameter SORT_AREA_SIZE if SORT_AREA_SIZE 4 m and ONE SIZE 32 m what impact on the reason for the performance
(2) can be used in10g retractable or 11 g for the temp tablespace command
(3) MAXSIZE UNLIMITED when I put this time deposited 32 GB it triggered error. Unlimited average as long as physical space is available it must measure but that's not why this limitation. It is the only one associated with the file temp or same problem occur if the data file size 32 GB?
(4) if I know that my application to do a lot to sort out what is the best way to set up the temporary tablespace so that I don't up space error finished
(5) ORA-01652: unable to extend temp by 4096 segment in tablespace TEMP this error occurs when I load the data using my application
Please help in this regard, I am very grateful to you

Adeel,
I know VERY less, probably less when it comes to this forum. I know that just O of Oracle.I can not tell how long you take to learn Oracle as it depends on many things, how you study, focus, practice and above all, how much less you think you know. Because I meet a lot of people who think they know too that leaves no space for an extra addition of knowledge :-). I know really very low.

If I use the LARGE folder to create a temporary space that doesn't solved my problem because I just read in the documentation if your block size is 8 k and OS 32-bit Platte basic form, you can size of 32 TB file. Using this approach I can fix this error condition
Yes, bigfile can ovecome your space issue. But that could be cure a symptom. The real problem, is that why you do so much sorting that is not able to accommodate itself in memory and is traded on the disk. You should check with your queries and see if you can avoid some unnecessary sorts or things PGA.
HTH
Aman...

Tags: Database

Similar Questions

  • 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

  • Local temporary table

    Hi all

    Oracle version: 11g.

    I know how the global temporary table in Oracle. But I've never heard of local temporary tables. I e cam all over and I tried to create one by Googling. But could not create.

    The syntax I used is,

    DECLARE LOCAL TEMPORARY TABLE test_sk5 (col1 number, col2 NUMBER);
    

    Can you please shed some light on local temporary tables.

    THX & regards,.

    Shan.

    Everything you have found by Google (it would have been helpful if you showed us the real link) is not for Oracle.

    So I will throw the light: they do not exist

    Edit: when I google for 'local temporary table oracle', I found a thread on this same site where someone asked the same question with the same type of example and got the same answer, the additional information that the syntax is apparently from RDB.

  • 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.

  • Clarification of temporary Table

    I have a small question, I think that must be answered easily, but I couldn't find anything it clarify for me online.

    I have a statement:

    CREATE GLOBAL TEMPORARY TABLE MATR_RPT
    ()PERCENTAGE varchar2()40),
    NUMBER of NUM_OF_CONTRACTS
    ,
    NUMBER OF NUM_OF_CONTRACTS_C
    )
    on commit preserve rows

    BUT if I used "on commit preserve rows" who wouldn t be the same using a standard non-temporary table if it maintains the lines? Or I have forgotten here?

    Thank you!

    on validation keeps the lines:

    On the temporary table will remain once the transaction is complete. These recordings will live as long as the session that inserted is connected to them. After that this session left (dc), records have disappeared.

    on commit delete rows:

    On the temporary table will be gone when the transaction is closed without worrying if the session remains online or disconnect after.

    Concerning

  • 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.

  • Use two temporary tables to assign 'color' to the results of the data

    Hello world... Here's what I'm trying to do, any help is appreciated of course...

    Data and Tables in the example:

    I have 5 dishes, each course has 2 assignments.
    with Courses as (
     select 100 courseID from dual union all
     select 200 from dual union all
     select 300 from dual union all
     select 400 from dual union all
     select 500 from dual
    ), Assigns as (
     select 'test100' name, 100 courseID from dual union all
     select 'test100', 100 from dual union all
     select 'test200', 200 from dual union all
     select 'test200', 200 from dual union all
     select 'test300', 300 from dual union all
     select 'test300', 300 from dual union all
     select 'test400', 400 from dual union all
     select 'test400', 400 from dual union all
     select 'test500', 500 from dual union all
     select 'test500', 500 from dual
    )
    select assigns.name, assigns.courseID from courses
    inner join assigns on assigns.courseID = courses.courseID
    I need each assignment to get a color assigned to it according to its courseID. So my theory is that I have a temporary table with a list of colors; each courseID would be are they assigned a color, but my question is how can I assign each courseID a color without anything to join the temporary table? Once that each courseID has a color, I would join rights holders so that each assignment has a color associated with it according to its courseID.
    --Color table with 6 colors
    with Colors as (
     select 'red' color from dual union all
     select 'blue' from dual union all
     select 'yellow' from dual union all
     select 'green' from dual union all
     select 'purple' from dual union all
     select 'teal' from dual
    )
    I have a previous post on this topic, but I didn't do well explain and make a link to it would probably add to the confusion to this question... happy to delete this post if someone recommends.

    Thanks for any help! Running Oracle 11 g.

    Hello

    939920 wrote:
    I don't have the ability to store the courseID with colors...

    Can get it, or ask someone with the makeup of capacity change for you.

    Is the problem that you have more than 6 courses but you want to add color to them with only 6 colors, and it is unclear what courses can be included in the results of a given query?
    If so, you can do somehting like this:

    WITH     colors     AS
    (
         SELECT  'red' AS color_name     FROM dual UNION ALL
         SELECT  'blue'                FROM dual UNION ALL
         SELECT      'yellow'          FROM dual UNION ALL
         SELECT     'green'               FROM dual UNION ALL
         SELECT  'purple'          FROM dual UNION ALL
         SELECT     'teal'                FROM dual
    )
    ,     colors_plus     AS
    (
         SELECT     color_name
         ,     ROW_NUMBER () OVER (ORDER BY NULL) - 1     AS color_id
         ,     COUNT (*)     OVER ()                    AS color_cnt
         FROM     colors
    )
    ,     course_assigns     AS
    (
         SELECT  a.name
         ,     a.courseid
         ,     DENSE_RANK () OVER (ORDER BY  a.courseid)     AS course_num
         FROM          assigns          a
         INNER JOIN      courses      c     ON   a.courseid   = c.courseid     -- If needed
    )
    SELECT     ca.name
    ,     ca.courseid
    ,     cp.color_name
    FROM     course_assigns  ca
    JOIN     colors_plus       cp  ON   cp.color_id  = MOD ( ca.course_num
                                                 , cp.color_cnt
                                      )
    ;
    

    Typical power:

    AME      COURSEID COLOR_
    ------- ---------- ------
    test100        100 blue
    test100        100 blue
    test200        200 yellow
    test200        200 yellow
    test300        300 green
    test300        300 green
    test400        400 purple
    test400        400 purple
    test500        500 teal
    test500        500 teal
    

    It would be better if you could create a real table as colors_plus.

    If there are more than 6 separate courses in the output, then 2 or more courses can be coded in the same color, but no color will be used N times (N > 1) until all the colors have been used N-1 times.
    The assignment of courses coolors is arbitrary. Depending on how fancy you want to do this, you might want to do something more complicated. For example, you have 2 course with 10 lines of each and 5-course dinner with 1 row of each. The query above will have to assign the same color to 2 courses of differenct, and it can assign the color "blue" for 2 courses with 10 rows of each. The query above can be modified, if necessary, assign the colors in order of frequency, in order to ensure that two 10-line courses get different colors, and that the colors tend to be more evenly distributed. I'll leave that as an exercise. (Tip: use the frequency in the clause ORDER BY of DENSE_RANK.) To obtain the frequency, use the COUNT function analytical in a subquery. Why do you need a subquery? Discuss among you).

  • use of the temporary table space

    Hello

    How much space is a specific temporary table used in my current session? How can I learn that.

    V$ SORT_USAGE view shows all (sorting and temporary tables). I want to learn a specific temporary table usage percentage. I can see their rank by rank in V$ SORT_USAGE, but which belong to that is, I can not children them.

    for the former there are 4 temp table that I used in a session, when I select V$ SORT_USAGE, I see 4 rows (segtype is DATA) but one that is what table?

    Edit: I changed the subject because of missunderstandings.

    Not Mustafa, Oracle separate temporary segments as wise TWG name. He says just segment total cumulative time used by a user. See below the link where similar questions asked by a user and Tom's answer:

    Hi Tom
    Just part of my question have already been dealt with where we can estimate the size of a Global
    temporary table v$ sort_uage, but what to do if:
    1. There is more than 1 TWG under a scheme. Seems v$ sort_usage has no column by which we
    can filter our a TWG home.
    2. If a TWG either be used multiple users how we all the total size of the TWG.
    3. How do we know the total number of lines in the TWG independently of any user who is
    storing files in the TWG.

    Thanks in advance for your answers.
    concerning
    -Raj

    Follow-up November 23, 2011-12:00 Central time zone:

    (1) it is not followed nationwide.

    (2) you must sum in v$ sort_usage - but please remember, it is information very very very transient, it's roughly in the category 'isn't really tell you anything. "

    (3) unless they (sessions) will tell you - you cannot, that no information is not just burned anywhere. Of what possible use would be? It would be transitional (a simple validation and response could change a million). He would not provide any useful information.

    I'm very curious about what you would do with this data?

    http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:15826034070548

    Concerning
    Girish Sharma

    Published by: Girish Sharma on July 19, 2012 18:31
    Typo corrected.

  • Temporary tables

    Hi guys,.

    Please can you advise if we can create indexes and constraints into Temp Tables can also we grant or revoke access to them or can someone with passwords schema access this particular diagram TEMP tables.

    See you soon,.
    Shaz

    The fact is more often that not the use of temporary tables in Oracle is false because all of the databases are not the same, and operations that have been a trend toward the use of temporary tables in SQL Server and Sybase normally does not require the same approach in Oracle where SQL big is often the preferred approach.

    They do not create of redo

    Not quite true that the use of temporary tables generates the cancellation. Undo generates redo.

    Please can you advise if we can create indexes and constraints into Temp Tables can also us grant or revoke access to them or what anyone with the schema > passwords can access the TEMP of this particular schema tables.

    The question is far from clear.

    The content of a temporary table is private.
    Multiple sessions can use a temporary table at the same time, any use of a temporary table is private to the session.
    You can create an index and constraints.
    Privileges of a temporary table are controlled according to any other object.

    Published by: Dom on May 8, 2012 Brooks 16:09

  • Why the blocks of temporary tables are placed in the buffer cache?

    I read the following statement, which seems quite plausible to me: "Oracle7.3 and generates from close db file sequential reading of the events when a dedicated server process reads data from temporary segment of the disc." Older versions of Oracle would read temporary segment data in the database buffer cache using db file scattered reads. Releases latest exploit heuristics that data of temporary segment is not likely to be shareable or revisited, then reads it directly to a server process programs global (PGA). »

    To verify this statement (and also for the pleasure of seeing one of these rare close db file sequential read events), I ran a little experiment on my Oracle 10.2 Linux (see below). Not only it seems that different this v above, the blocks of temporary tables are placed in the buffer cache, but also$ BH. OBJD for these blocks does not refer to an object in the database's existing (at least not one that is listed in DBA_OBJECTS). Either incidentally, I traced the session and have not seen any file db close sequential read events.

    So, I have the following questions:
    (1) is my experimental set-up and correct my conclusions (i.e. are blocks of temporary tables really placed in the buffer cache)?
    (2) if so, what is the reason for placing blocks of temporary tables in the buffer cache? As these blocks contain private session data, the blocks in the buffer cache can be reused by another session. So why do all cache buffer management fees to the blocks in the buffer cache (and possibly remove) rather than their caching in a private in-memory session?
    (3) what V$ BH. OBJD consult for blocks belonging to temporary tables?

    Thanks for any help and information
    Kind regards
    Martin

    Experience I ran (on 10.2 /Linux)
    =============================
    SQL*Plus: Release 10.2.0.1.0 - Production on Sun Oct 24 22:25:07 2010
    
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    
    SQL> create global temporary table temp_tab_4 on commit preserve rows as select * from dba_objects;
    
    Table created.
    
    SQL> alter system flush buffer_cache;
    
    System altered.
    
    SQL> select count(*), status from v$bh group by status order by 1 desc;
    
      COUNT(*) STATUS
    ---------- -------
          4208 free
          3 xcur
    
    SQL> select count(*) from temp_tab_4;
    
      COUNT(*)
    ----------
         11417
    
    SQL> -- NOW THE BUFFER CACHE CONTAINS USED BLOCKS, THERE WAS NO OTHER ACTIVITY ON THE DATABASE
    select count(*), status from v$bh group by status order by 1 desc;
    SQL> 
      COUNT(*) STATUS
    ---------- -------
          4060 free
           151 xcur
    
    SQL> -- THE BLOCKS WITH THE "STRANGE" OBJD HAVE BLOCK# THAT CORRESPOND TO THE TEMPORARY SEGMENT DISPLAYED
    -- IN V$TEMPSEG_USAGE
    select count(*), status, objd from v$bh where status != 'free' group by status, objd order by 1 desc;
    SQL> SQL> 
      COUNT(*) STATUS      OBJD
    ---------- ------- ----------
           145 xcur       4220937
          2 xcur        257
          2 xcur        237
          1 xcur        239
          1 xcur    4294967295
    
    SQL> -- THE OBJECT REFERENCED BY THE NEWLY USED BLOCKS IS NOT LISTED IN DBA_OBJECTS
    select * from dba_objects where object_id = 4220937 or data_object_id = 4220937;
    
    SQL> 
    no rows selected
    
    SQL> SQL> -- THE BLOCKS WITH THE "STRANGE" OBJD ARE MARKED AS TEMP IN V$BH
    select distinct temp from v$bh where objd = 4220937;
    SQL> 
    T
    -
    Y
    
    SQL> 
    Edited by: user4530562 the 25.10.2010 01:12

    Edited by: user4530562 the 25.10.2010 04:57

    The reason to put the blocks to the global temporary table in the buffer cache is the same thing why you put ordinary table blocks in the cache buffers-> you want some of them to be in memory.

    If you ask why don't keep us somehow temporary tables in the PGA - well what happens if this temporary table will be 50 GB? 32-bit platforms cannot even handle this and you do not want a process of becoming uncontrollable so great.

    Moreover, TWG will allow you to restore, back to a backup (or savepoint implied when an error occurs during a call DML), and this requires protection by the cancellation. Place lines / revenge in PGA would have complicated the implementation even further... now GTT is almost of the regular tables which just happened to reside in temporary files.

    If you really want to put data in the PGA only, then you can create collections of PL/SQL and even access through the use of SQL (coll CAST AS xyz_type) where xyz_type is a TABLE of an object any.

    --
    Tanel Poder
    New online seminars!
    http://tech.e2sn.com/Oracle-training-seminars

  • 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 Oracle

    Hi all


    I develop a .net application with back-end in oracle 10g. I had previously worked with sql server 2005,2008 and I am new to oracle.

    I'm working on a query complex that requiries, the temporary table inside the procedure. In sql server easy to create and drop the temporary table inside the proc.

    Can I use a specific Transaction TWG to store and process temporary data inside my procedure? My web application must be linked to the database via a a username and a password. Since being a web background multi-user executes the procedure at the same time, registered under the same user name and password...

    I know it's a coomon question, but I need him...

    It is very complicated to use WITH SELCT or inline views etc...

    Thank you

    Kris.

    I know it's a coomon question, but I need him...

    If you know that this is a frequently asked question, then you must know the common answer. But we're going there repeat once more.

    In Oracle temporary tables are permanent objects. It was only the data in them that is temporary. So for your scenario, you should have the DBA create table once, like any other table.

    The thing with temporary tables is that each session sees its own data and nothing else. If your procedure can fill the table with data, treat it and send it back without a hitch.

    Since being a web background multi-user executes the procedure at the same time, registered under the same user name and password...

    Is not serious: the display of the data is controlled by session. If you do not have a problem providing the table is filled and the result set returned in a single call.

    It is very complicated to use WITH SELCT or inline views etc...

    Yes it's hard. Fortunately, CPUs get more powerful and continue to become cheaper, bandwidth so that our systems to continue to deal with the growing number of suck is code thrown at them. Is not Moore's law wonderful :)

    Cheers, APC

    blog: http://radiofreetooting.blogspot.com

  • Doesn't work with temporary tables

    I try to make 'between' select server-side:

    < cfquery name = "issueList" datasource = "HOTLINE" >
    CREATE TABLE ##tmpIssues (ROWNUM INT IDENTITY (1, 1) INT ISSUE_ID);
    INSERT INTO ##tmpIssues (ISSUE_ID)
    SELECT dbo. QUESTIONS. ISSUE_ID
    FROM dbo. QUESTIONS
    WHERE THE...
    SELECT...
    INNER JOIN ##tmpIssues AS TI on dbo. QUESTIONS. ISSUE_ID = TI. ISSUE_ID
    WHERE TI. ROWNUM BETWEEN #Evaluate (displayRows * (StartRowOptional - 1) + 1) # #Evaluate(displayRows * startRow) AND #;
    DROP TABLE ##tmpIssues;

    and receive:

    Execution of the SQL statement is not allowed.

    When I delete all of the code except for create temporary table - error remains. I can't believe that it is not possible to create a temporary table inside cfquery!

    That is what it is? How to handle this?

    Thanks for the reply.

    I replaced the temporary table with the table variable, and it works properly now. Yes, I feel that this temporary table could lead to disorders... If I used it in a stored procedure, called from this request - it would work okay maybe... But if I want to do is universal - I need to pass parameters to query inside? Hell...: \
    I know that table variables have their own drawbacks. But at least I can guarantee you that there is no conflict between users. I use about 50 records per page - I guess it's ok for var table.

    I wish I went back any recordset object and managed beaches via StartRowOptional & LignesMax... But the problem is that any recordset returns records too and I want limit on serverside also...

  • Delete temporary tables

    Hi all, we are working with an Oracle schema as a staging area. Basically, what we want, is to store all the intermediate transformations in temporary tables (stored in this area of transit of Oracle). These temporary tables are used as source data warehouses in other interfaces

    Our question is about the deletion of the tables. Once in an Oracle DB, we have kept the final data, we want that these temporary tables should be deleted. Do we have to do it via a sql command to remove embedded in an ODI procedure?
    We thought that as they were temporary, they could be automatically removed when the package is run.

    We assume that if we use the Sunopsis Memory engine and we have the application below, the temporary tables will be deleted when the package ends:

    The Test package
    Interface 1: make some joins and filters and stores the data in TEMP_1
    Interface 2: make some joins and filters using TEMP_1 and stores the data in TEMP_2
    Interface 3: do some joins and filters using TEMP_2 and stores the final data in TABLE a.

    Option: using Oracle physical schema as transit area
    Option b: using the Sunopsis Memory engine as transit area

    To conclude, and should be deleted TEMP_1 TEMP_2, if we use Option A?

    Another thing, that are the main factors to decide whether to use the Sunopsis Memory or Oracle DB table (for example) engine as transit zone?

    Thanks in advance to NSI

    Hi-

    Rest area can be decided depending on where you load the data. In your scenario, the final data should be loaded into Oracle DB, the staging area should be A option.

    Add the drop table statement to remove TEMP_1 and TEMP_2 tables in your approach to Interface3 KM.

    Hope it will be useful to you.

    Thank you
    Silou René-coral

  • Is inserting form temporary table in another table uses tablepsace temp?

    Hi all

    I am inserting data in the temporary table in ds_info.
    I am inserting data of 16.5 GB size in the table.
    I have 15 GB of temp tablespace.
    Please confirm have I not enough space TEMP_TS.

    OR
    Please clarify the question.
    Is temp tablespace uses comes in insert statement.


    Thanks in advance,

    An insert into a table when querying an another table/tables can involve the use of the TEMP tablespace:
    If the INSERTION involves either
    a. ORDER BY
    b. GROUP BY
    c. a JOIN between two or more source tables that is run like a Hash Join OR as a merge join and sorting operation
    d. ADDING an indicator on the target index table being present on the target table (fusion of the index for new lines entries is postponed if an ADDITION is used)

    Hemant K Collette
    http://hemantoracledba.blogspot.com

Maybe you are looking for

  • Presario 6027US update?

    Managed to increase the RAM to 2 GB, but speed of RAM and L2 cache memory are old (266 mhz and 512kb).  Feasible (sage?) to get new CPU (Intel E7200 say?).  Richard & speed can be improved more after that?  Have no idea what I'm doing!

  • How to multiply really small numbers that are commensurate with 10 ^-4

    My program requires me to read some values of Excel cells, which she does, and multiply with each other.  Unfortunately, when I read of the cell and convert it to digital, it rounds to zero because it's a very small number as 3.86 * 10 ^-4.  I don't

  • Webcam not working in yahoo messenger and displaying black and green color (line)

    Original title: webcam my webcam works well using it in my laptop, but when I wana use in yahoo messenger does not work only it displays balck with green color (line), please help me fix

  • VSA 5.5.1 stuck in 'increase in storage VSA.

    Hello community,Another question about VSA 5.5.1.Since it's for testing purposes, I'd not too spend time in it.The VSA Assistant to increase storage capacity stucks VSA in (last) step 'increase in storage VSA. vSphere Client and Web Client with the s

  • Change the number of legacy Page style

    Where are the instructions for changing the style of paragraph of existing page numbers, or how to access the text box that contains the page number on a master page box?Two alternative approaches are: create a hereditary page master or a mater page