It takes less than 1 second when I run one query which has two UNION ALL.
But, when I use the same Query to insert the rows into a table, it takes too much of time and seems like it hangs. It does not come out. Then, I have kill the session.
I altered the table and made it LOGGING = NO to avoid Roll back segment and Redo operations.
I have to insert the queries rows in one temp. table in Pre-report trigger.
Total rows = 79000.
Is there any way to accelerate Insert operation?
Thanks in Adv.
Sam
------------------------
To handle yourself, use your head. To handle others, use your heart
NOLOGGING is one of the most misunderstood topics in Oracle Database Administration. Even if you have NOLOGGING turned on, not all operations are NOLOG operations. See http://technet.oracle.com/docs/produ...dlins.htm#4418 for details.
Originally posted by marist89 NOLOGGING is one of the most misunderstood topics in Oracle Database Administration. Even if you have NOLOGGING turned on, not all operations are NOLOG operations. See http://technet.oracle.com/docs/produ...dlins.htm#4418 for details.
Thanks for clearing the subject marist89. I will try Direct-Load Insert with Append hint. I also think that because I am inserting about 80000 rows in one shot / one transaction, it is taking this much time. I commit transaction after insert. Will it make any difference if I divide single 80000 rows insert transaction into 1000 rows (commit) per transaction?
Pl. advise.
Thanks,
Sam
------------------------
To handle yourself, use your head. To handle others, use your heart
[[/B][/QUOTE]
Thanks for clearing the subject marist89. I will try Direct-Load Insert with Append hint. I also think that because I am inserting about 80000 rows in one shot / one transaction, it is taking this much time. I commit transaction after insert. Will it make any difference if I divide single 80000 rows insert transaction into 1000 rows (commit) per transaction?
Pl. advise.
Thanks, [/B][/QUOTE]
Setting up a commit will certainly prevent you from blowing up your rollback segment, I don't think it will speed it up though. If anything it will slow it down some, Jeff?
Bookmarks