Is it possible to commit one table, while other are rolleded backed

Hi to all,
I am working on a report that calls a package which populates some tables dynmically, after the report is done it does a rollback.
I want to capture the data it populates in one of the tables, I have created a temp table, a procedure which populates the data before it does a rollback.
My question is, when the rollback happens will mydata from the table will be rollbacked, if I do a commit in the procedure which inserts into my temp table will the data populated in others be committed too, in which case it will create a lot of problems. I cannot see the code of the package as how many tables are getting populated.
Can I possible do a commit just for my temp table?
Thanks to all

Thanks,
Actually I created a procedure like this.
PROCEDURE insert_temp_tables IS
v_temp_fin_r3licrpt_count number;
PRAGMA AUTONOMOUS_TRANSACTION;
BEGIN
SELECT COUNT(*)
INTO v_temp_fin_r3licrpt_count
FROM temp_fin_r3licrpt;
IF v_temp_fin_r3licrpt_count > 0 THEN
DELETE FROM temp_fin_r3licrpt;
END IF;
INSERT INTO temp_fin_r3licrpt
SELECT *
FROM fin_r3licrpt;
COMMIT;
END;
I tested this in SQLPlus and it works fine it commits only the SQL in the transaction and all other statements remain uneffected. But the problem is that when I created the procedure in reports I got this error.
Procedure Body: INSERT_TEMP_TABLES, 1 Error
Error 127 at lines 5, column 8
PRAGMA AUTONOMOUS_TRANSACTION is not a supported pragma
we are using Oracle 6i reports, could this be problem.
What was your suggestion by
anonemous transaction procedure;
Can you brief about this...
Thanks again..
Habeeb

Similar Messages

  • Few mails are not reaching to a recipient while other are receiving the same email

    Hi
    I am facing very strange issue for few days. 
    The email sent by a user to multiple internal recipient, is not reaching to one recipient, while others are receiving that email.
    Few users are facing this issue. mail neither reaching in their inbox nor Junk folder.
    I am using Exchange Server 2013 CU2 and TrendMicro MailScan anti-spam.
    I have searched the logs in TrendMicro Mail Scan but nothing found.
    Please help.
    Thanks,
    Manoj 
    Thanks, Manoj

    Hi,
    To narrow down the cause, I’d like to ask the following questions:
    1. Does the issue happen on random or regular recipients?
    2. Does the issue happen on all emails or only emails including many recipients?
    We can check the Maximum number of recipients per message through a Receive connector:
    http://technet.microsoft.com/en-us/library/bb124345(v=exchg.150).aspx
    3. Is there any DNR or error message?
    If you have any question, please feel free to let me know.
    Thanks,
    Angela Shi
    TechNet Community Support

  • I am new to Mac and am having trouble with uploading images from my pictures folder to Facebook and other share sites- some of my images are accessible while others are seemingly locked....

    I am new to Mac and am having trouble up loafing images from my pictures folder to photography sites and Facebook. Some of the saved images are accessible, while others are not, ( they are light colored and cannot be uploaded) I am not saving them any differently.

    Hi Robodisko,
    Thanks for your prompt reply...... 
    I often proof my work in preview then edit images in photoshop and rename from there.  The dsc images are renamed to correlate the name of the class etc.  i.e. dcs_001 is saved as the file name required 7A.jpeg etc.
    The file names are required to correlate what is what and so on..........

  • Why are some of the messages i send in a blue background while others are in a green background?

    why are some of the messages i send in a blue background while others are in a green background?

    Blue = iMessage...
    Green = Text message... SMS

  • Why are some of my movies not syncing while others are? All of my movies are in m4v form, and some of them sync but some of them don't.

    Why are some of my movies not syncing while others are? All of my movies are in m4v form, and some of them sync but some of them don't. Also, when i try to play my movies on my mac AND ipod, some of my movies just randomly freeze and wont let me continue watching. I dont understand why its doing this.

    iTunes: May be unable to transfer videos to iPhone, iPad, or iPod - http://support.apple.com/kb/TS1497

  • Is it possible to display one table on different sheets?

    I'd like to use one table on different sheets.
    On these sheets are also other tables, but one should be the same on each sheet.
    Is this possible?

    You can make one table refer to (take data from) another. 
    Here is a simple example where I made a table named "Source" and duplicated the table and named is "Destination-1".
    the table "Destination-1" refers to table 1 like this:
    A1=Source :: A1
    copy cell A1 in the table "Destination-1" , then select ALL cells using the menu item "Edit > Select All", then paste
    you may now duplicate this table to make additional "copies" as needed.  To duplicate a table, select the table, then select the menu iten "Edit > Duplicate"
    NOTE:  you should be aware that data flows FROM the table "Source" to the destination tables-- NOT the other way.

  • Insert records from one table to other table

    Hi,
    I want to insert all the records from table 1 which are not in table 2 into table2
    o/p
    insert into table2
    select * from table1
    where a.id!=b.id;
    Please let me know is there any way that I can populate the records

    insert
      into table2
      select  *
        from  table1
        where id not in (
                         select  id
                           from  table2
                        );SY.

  • NUMA node zero at 100% CPU utilization while others are around 50% - why?

    Questions:
    How can I tell which processes are maxing out one of my eight NUMA nodes' CPU?  i.e. what tool would give me that insight?  I've poked around procmon.exe and don't think it has this, but am not sure yet.
    Any thoughts on what's going wrong overall, given the description below?
    Symptoms:
    Task Manager shows one NUMA node at 100% CPU (and in processors view, shows all 8 CPUs in that node at 100%), while other nodes range from 0-90% depending on load
    SQL Server, which is the only significant CPU user on this box, is running regular jobs 2x slower than it did last week.  Last week it was running Windows and SQL 2008 R2 SP1, and this week it has been rebuilt (from scratch - not upgraded) with Windows
    and SQL 2012.
    Environment:
    HP DL980 G7, 64 cores, 1TB RAM, 50TB fast disk for SQL use, 120TB slow disk for file storage
    Hyperthreading enabled - last week, it was not (since it's not supported well in Windows 2008 R2 with the Hyper-V role and 64 cores)
    Windows Server 2012 Standard, installer we got via Software Assurance (and yes, I have an MS support case, ID 112110854959943, but I often lose days before my case escalates to the right person, so I'm hoping someone knowledgeable sees this first,
    as I have some very unhappy users!).  Last week was Windows 2008 R2 SP1 Enterprise.
    SQL Server 2012 RTM Enterprise Core.  Will update to latest CU as soon as I get a maintenance window.  Last week was SQL 2008 R2 SP1 Enterprise.
    Max d.o.p. on six SQL instances is set to 8, on the seventh it is set to 16.  No CPU affinity set by us for SQL or anything else.
    Hyper-V role installed.  Had this role last week too.
    Domain controller.  Had this role last week too.
    Also running DFS (with replication turned off this week, though it was on last week), not much going on there right now so I don't think it's related to the problem.
    Task Manager and Resource Monitor show Memory is fine (100GB free), Disk is fine (<500 MB/s I/O, compared to regularly running at 1-2 GB/s in the past).  perfmon won't open for me, possibly due to an unrelated problem (port exhausting with DNS Client,
    another MS support case we have ongoing)
    Planned next steps:
    I have removed the Hyper-V role and am awaiting user permission to reboot for that to complete.  Will see if that fixes it.
    If it doesn't, I'll reboot again and remove hyperthreading.
    And in the meantime, via MS support and this post, I'm trying to understand what is going on, what is wrong.  I would love your help!

    To follow-up on Ethan's post (he works with me) - this is what it looks like in Task Manager.
    Normally, all 64 CPUs would be at/near 100%. But SQL jobs look they are being bottlenecked on NUMA node 0 (despite no affinity being set - everything is default/automatic). Another symptom (other than very slow SQL jobs) is that various management tools
    in the host partition are very unresponsive.
    The significant changes are:
    * WS2012 vs WS2008R2 SP1
    * SQL2012 vs. SQL2008R2
    * Hyperthreading enabled in BIOS to give 128 logical processors to the hypervisor. 64 logical processors are made available to the host partition (the limit in WS2012)
    All SQL instances are  running in the host partition. There is no significant network or other activity on this box. No VMs are running. CPU-Z shows 8 sockets, 8 cores/socket, 8 thread/socket in the host partition. So despite hyperthreading/SMT being
    turned on, it looks like all 64 real cores are being exposed to the host partition.
    See also here, where Microsoft recommends leaving SMT/hyperthreading on in all cases with WS2012:
    http://blogs.technet.com/b/matthts/archive/2012/10/14/windows-server-sockets-logical-processors-symmetric-multi-threading.aspx

  • Extremely low-res pics when copied to photostream while others are fine?

    I have some downloaded iPad (New iPad, iPad 3) wallpaper images that I copied to Photo Stream so I could use them on my new iPhone 5. Some of the images copied just fine, while other pictures are low resolution &amp; very pixelated. I thought maybe I was trying to copy too many at once. So I deleted the bad ones and tried again, copying each pic one at a time. They still show on Photo Stream at very low resolution. Does anybody know why, and what I can do to fix this?

    OK, I guess I figured it out...
    Below is a sample of one of the images I was trying to put on Photostream.
    The problem must be something with iOS, because the garbled image on the left only looks that way on the iPad 3 & iPhone 5. When accessed from my PC, the same image is at full resolution (2048x2048). And then when I upload the same image back to Photostream, it still gets resized to 1536x1563, but at much better quality as can be seen in the image on the right.
    I'm glad I found a workaround, but it's very annoying that it doesn't work the way it is supposed to.

  • Deleting rows from one table while filter condition lies into another table

    Hi All,
    I'm facing a problem deleting a row from a table where the condition lies in other table. To ealaborate the scenario further let's say I have two table T1 (transaction table) and T2 (Master Table). I want to delete a record from table T1 by checking some conditions lies in table T2.
    I tried with the below query but this query deleting records from both the table.
    DELETE FROM ( SELECT * FROM T1 top INNER JOIN T2 tp
    ON top.TID = tp.TID
    WHERE top.DEAL_SITE_ID = inputparameter1
    AND (TP.SEGMENT <>inputparameter2 OR tp.segment is not null));
    Here the record is getting deleted from both the tables but I don't want to delete data from my master table i.e table T2.
    Any help would be highly appreciated. Thanks in advance.
    Regards,
    Subhadeep

    SQL> select *
      2   from the_table;
    X          Y
    AA         a
    BB         a
    CC         a
    AA         b
    DD         b
    SQL> select *
      2   from the_table_2;
    X          Y
    AA         a
    BB         a
    CC         a
    SQL>  delete from
      2  (
      3  select *
      4  from the_table  t1 inner join the_table_2 t2
      5  on  t1.x = t2.x
      6  and t1.y = t2.y);
    3 rows deleted.
    SQL> select *
      2   from the_table;
    X          Y
    AA         b
    DD         b
    SQL> select *
      2   from the_table_2;
    X          Y
    AA         a
    BB         a
    CC         a

  • How to move one table to other schema

    Hi;
    imagine i have one schema A and i create table in this schema as test. Now i have one other schema,name is B. I wanna move my A.test table to B.test2
    How i can do it?
    thanks

    Following discussion might help How to move the table to the another schema?

  • Populating values of one table to other in dynamic tables

    Hi Experts ,
    An issues here.
    <lt_data> is a table with different field lenghts.
    <itab> is a table of different field lenghts.
    Here how do i need to excatly put the records of each field into corresponding fileds of itab.
    the two tables are not compatible.
    eg:
    in table <lt_data>
    field1 --> length 6char
    field2 ---> lenght 2  char
    field 3 ---> length 2 char.
    in table <itab>
    field1 --> is of length 10 char.
    so the 3 field values of <lt_data> is sitting in only 1 field of <itab>
    <itab> is a dynamic table created throuth create internal table method.
    <lt_data> is populated from select query.
    both are field symobls having type table reference.
    The following is the piece of code.
      LOOP AT <lt_data> ASSIGNING <itab_wa>.
        ASSIGN COMPONENT sy-index OF STRUCTURE <itab_wa> TO <itab_wa1>.
        w_data-text = <itab_wa1>.
        APPEND w_data TO <itab>.
      ENDLOOP.
    Help is appreciated

    Hi Vadnalav,
    is it correct that you want to combine the contents of the 3 source table fields in one field of the target table?
    FIELD-SYMBOLS:
      <table_source>            TYPE STANDARD TABLE,
      <table_destination>       TYPE STANDARD TABLE,
      <table_line_source>       TYPE any,
      <table_line_destination>  TYPE any,
      <field_source>            TYPE any,
      <field_destination>       TYPE any.
    LOOP AT <table_source> ASSIGNING <table_line_source>.
      APPEND INITIAL LINE TO <table_destination> ASSIGNING <table_line_destination>.
      ASSIGN COMPONENT 1 OF STRUCTURE <table_line_destination> TO <field_destination>.
      DO 3 TIMES.
        ASSIGN COMPONENT sy-index OF STRUCTURE <table_line_source> TO <field_source>.
        CONCATENATE <field_destination> <field_source> INTO <field_destination>.
      ENDDO.
    ENDLOOP.
    Please modify according to your needs.
    Regards,
    Clemens

  • How to Copy the specific record of one table to other table(same structure)

    Hello,
    i have develop a form and some buttons on it. Suppose that Form is based on TABLE_1, which has the fiollowing structure.
    ( Bill_No Number(5),
    Bill_Date Date,
    Bill_amount Number(6),
    Description Varchar2(60)
    My requirement is when i save the any record and after that i want to copy all the contents of that record to Table_2.
    On the form there is a button named as Let say "Copy current Record to Table_2". So when i press the button, the record is copied from Table_1 to Table_2.
    (Note: - Table_2 has the same structure as Table_1.)
    Please help me to solve this problem.
    Thanks in advance.

    i would prefer a pure database-solution, means put a database-trigger BEFORE INSERT FOR REACH ROW on your table 1 and do the insert there.
    If you do it in PRE-INSERT-Trigger in forms it will work for data entered via forms-application, but what happens if data is inserted via a different frontend?
    CREATE OR REPLACE TRIGGER TRG_TABLENAME_BRI
    BEFORE INSERT
    ON TABLENAME
    FOR EACH ROW
    BEGIN
      -- Do your insert here
      INSERT INTO TABLE2 (
        COL1,
        COL2
      ) VALUES (
        :NEW.COL1, -- (or OLD.COL1)
        :NEW.COL2  -- (or OLD.COL2)
    END;
    /Edited by: aweiden on 22.09.2008 08:08

  • KeyboardFocusManager dispatches only one event while multiple are fired

    I'm writing the game Achtung die Kurve, or 'Zatacka' in Java.
    It's in fullscreen and there are multiple players with their own controls.
    Now, to catch the KeyEvents (controls) for each Player, the Player objects get created with the following line in the constructor:
    KeyboardFocusManager.getCurrentKeyboardFocusManager().addKeyEventDispatcher(this);However, when multiple players are holding (KEY_PRESSED) different buttons at the same time, only the 'last' one gets processed.
    The following example shows my point:
    import java.awt.GridLayout;
    import java.awt.KeyEventDispatcher;
    import java.awt.KeyboardFocusManager;
    import java.awt.event.KeyEvent;
    import javax.swing.*;
    public class main
        private static JTextArea txt;
        public static void main(String[] args)
            new main();
        public main()
            JFrame f = new JFrame();
            f.setSize(300, 700);
            f.setVisible(true);
            f.setDefaultCloseOperation(f.DISPOSE_ON_CLOSE);
            f.setLayout(new GridLayout());
            txt = new JTextArea();
            txt.setEditable(false);
            f.add(txt);
            Listener l1 = new Listener(KeyEvent.VK_Z);
            Listener l2 = new Listener(KeyEvent.VK_X);
        class Listener implements KeyEventDispatcher
            int ktlt;
            public Listener(int keyToListen)
                ktlt = keyToListen;
                KeyboardFocusManager.getCurrentKeyboardFocusManager().addKeyEventDispatcher(this);
            public boolean dispatchKeyEvent(KeyEvent e)
                if (e.getID() == e.KEY_PRESSED && e.getKeyCode() == ktlt)
                    txt.append("" + ktlt + "\n");
                    return true;
                return false;
        }}Try holding the 'z' and 'x' buttons at the same time (for a short period).
    What you would expect is that the output will contain the key codes for both of the buttons, alternatively.
    What you see, is that the textarea gets filled with only the 'last' key that is being pressed.
    What am I doing wrong here?
    Edited by: Tails on 12-jan-2009 21:22

    Tails wrote:
    That's kind of a problem as I am on Linux.As am I
    KeyEvents are broken on linux: every key press action generates KEY_TYPED, KEY_RELEASED and KEY_PRESSED events at the same time, which means that's worthless...I got it to work for my purposes. What is the alternative?

Maybe you are looking for

  • Updates to Laptops automatically Daily

    I am running SCCM 2012 R2, and Managing 75 Laptops, All the users are still on the old mind set of using the Windows Update Agent to check for updates, and not thru the Software Center, and they hate the Baloon popup and have asked me to make it easi

  • TL-WR841N - Cheap and good router upgrade!! :)

    Just thought I'd share me experience with the TL-WR841N router. Can pick these up for around £20 and it has made SUCH a difference. I've only had this plugged in for an hour so, if my experience changes I'll keep you guys posted, but so far its rock

  • Voice Control problem

    I have the ipod touch 4th gen and voice control only keeps opening ever minute, i recently updated the software to ios 6.1.5 so i dont know if that's the problem. Can someone please help with this issue.

  • How to stop autocorrection of typing

    I type a great deal and use acronyms.  My phone continues to autocorrect with another word that is completely wrong. How do I get this stopped.?

  • Sccm 2012 window update deployment

    Hi I am trying to deploy the software updates in servers, but the issue i am facing is that when i create the package of 170 patches and deploy on servers 2008, then the advertisement coming at client side is in different batches. Example:- In first