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 >> ControlFiles

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: ControlFiles
 chinna  Posted: Oct 25, 2007 02:28:37 AM

 Total Post: 28
 Joined: May, 2007






 hi,

I am loading data from control files to some temporary tables by means of sql loader ,
records are inserting into temporary tables which are valid and some records are going into bad files which are not valid.
so my question is to load that data into some x tables from bad files ,
so that i can easily track that particular record from that x table since my source file contains some lakhs of records it's a cumbersome.

ex:
LOAD DATA
INFILE 'Student1\Student.dat'
BADFILE 'Student1\Student.bad'
DISCARDFILE 'Student1\Student.dsc'
TRUNCATE
INTO TABLE student
FIELDS TERMINATED BY "," optionally enclosed by '"'
(Name,Number,Address1,City,State)

I want to retreive the bad files data to some temporary tables.

Expecting Reply......


Thanks
Chinna

 Ramesh Joyisa
Posted: Oct 25, 2007 07:42:00 AM  

 Total Post: 246
 Joined: Aug, 2007






 
I think this is not possible because the BAD file is a text file filled with improperly formatted data. For example, if a record in the text file has too few columns or a character where a number was expected, that record won't be loaded into the database and will instead be put into the BAD file, if specified with the BAD parameter. When there is no perticular format available then what structure you will keep for the table to insert it?

 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 Kaushik386
  Gopu Gopi335
  Gitesh Trivedi322
  Vinoth Kumar264
  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