Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

Topic: SQL*Plus and PL/SQL >> Gettin a error while inserting in a transaction

Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property. You may review the entire Oracle Certification Program Candidate Agreement online Here.



  


 Title: Gettin a error while inserting in a transaction
 rachit  Posted: Mar 05, 2008 01:24:17 PM

 Total Post: 5
 Joined: Nov, 2007






 hi all,
I am unable to insert records in a table.
The scene is the i am inserting records from a table which has around 50000000 records.
I can insert the selected records (based on a where clause) in the destination table from the table (with 50000000 records) when i am not writing the insert statement in a transaction.
But when i write it in a transaction(begin tran) the sp just hangs up when it comes to that insert..

Do we have a solution for this from anyone??

 Nehru
Posted: Mar 10, 2008 02:22:06 AM  

 Total Post: 46
 Joined: Jul, 2007






 
Hi,

Why you are used Transaction, You can use like,
"Insert into Table_name select Columns_list from Table_name;"

Through this you can load the data. In Where Clause you can put conditions.


Any one let me know if am wrong..
Thanks,
Nehru.

 rachit
Posted: Mar 12, 2008 10:03:10 AM  

 Total Post: 5
 Joined: Nov, 2007






 
HI nehru

I wanted to write the statement in the transaction so i could rollback if any errors are there the format u have given is a simple insert satatement which i already know.
I have identified the problem the source table was not having index on the feild which was used in the where clause.
So the problem was with the index and not with the insert statement syntax.


 Time Zone: EDT

  




Forum Rules & Description


Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user




 








Get FREE Magazines

Top 10 Forum User

  Murtuja Khokhar857
  Mohammed Taj746
  positive fanatic483
  Jayanta Sur479
  Vigyan Kaushik387
  Vinoth Kumar379
  Gopu Gopi350
  Gitesh Trivedi322
  neeraj sharma258
  Ramesh Jois246






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software