Do not use on any
shared computer
July 25, 2008 06:03am pdt
null
[x]
Attachment Details

SQL Loader problem

Tags: loader, sqlldr, sql
Hi All,
I am having an problem with sqlldr, i need to load a large file. I have a control file, when I start the loader, it 1/2 loads the first record.
I have added below the ctl file, bad file and first record.
tim
++++++++++++++++++++++++++++++1
Control File:
load data
infile 'c:\XXX\23_2.txt'
append into table tim.D_DATA
(Client CHAR Terminated by "," enclosed by '"' ,
 Backup_id CHAR Terminated by "," enclosed by '"' ,
 Policy_type CHAR Terminated by "," enclosed by '"' ,
 Proxy_client CHAR Terminated by "," enclosed by '"' ,
 Creator CHAR Terminated by "," enclosed by '"' ,
 Name_1 CHAR Terminated by "," enclosed by '"' ,
 Sched_label CHAR Terminated by "," enclosed by '"' ,
 Schedule_Type CHAR Terminated by "," enclosed by '"' ,
 Retention_Level CHAR Terminated by "," enclosed by '"' ,
 Backup_Time CHAR Terminated by "," enclosed by '"' ,
 Elapsed_Time CHAR Terminated by "," enclosed by '"' ,
 Expiration_Time CHAR Terminated by "," enclosed by '"' ,
 Compressed CHAR Terminated by "," enclosed by '"' ,
 Encrypted  CHAR Terminated by "," enclosed by '"' ,
 Kilobytes INTEGER EXTERNAL Terminated by "," enclosed by '"' ,
 Number_of_Files INTEGER EXTERNAL Terminated by "," enclosed by '"' ,
 Number_of_Copies INTEGER EXTERNAL Terminated by "," enclosed by '"' ,
 Number_of_Fragments INTEGER EXTERNAL Terminated by "," enclosed by '"' ,
 Histogram  CHAR Terminated by "," enclosed by '"' ,
 DB_Compressed CHAR Terminated by "," enclosed by '"' ,
 Files_File_Name CHAR Terminated by "," enclosed by '"' ,
 Previous_Backup_Files_File_Nam  CHAR Terminated by "," enclosed by '"' ,
 SW_Version  CHAR Terminated by "," enclosed by '"' ,
 Options  CHAR Terminated by "," enclosed by '"' ,
 MPX  INTEGER EXTERNAL Terminated by "," enclosed by '"' ,
 TIR_Info  CHAR Terminated by "," enclosed by '"' ,
 TIR_Expiration  CHAR Terminated by "," enclosed by '"' ,
 Keyword  CHAR Terminated by "," enclosed by '"' ,
 Ext_Security CHAR Terminated by "," enclosed by '"' ,
 File_Restore_Raw  CHAR Terminated by "," enclosed by '"' ,
 Image_Dump_Level  CHAR Terminated by "," enclosed by '"' ,
 File_System_Only  CHAR Terminated by "," enclosed by '"' ,
Object_Descriptor  CHAR Terminated by "," enclosed by '"' ,
Previous_BI_Time  CHAR Terminated by "," enclosed by '"' ,
BI_Full_Time  CHAR Terminated by "," enclosed by '"' ,
Request_Pid  CHAR Terminated by "," enclosed by '"' ,
Backup_Status  CHAR Terminated by "," enclosed by '"' ,
Stream_Number  CHAR Terminated by "," enclosed by '"' ,
Backup_Copy  CHAR Terminated by "," enclosed by '"' ,
Files_File_size  INTEGER EXTERNAL Terminated by "," enclosed by '"' ,
PFI_type  CHAR Terminated by "," enclosed by '"' ,
IMAGE_ATTRIBUTE   CHAR Terminated by "," enclosed by '"' ,
Primary_Copy   CHAR Terminated by "," enclosed by '"' ,
Image_Type  CHAR Terminated by "," enclosed by '"' ,
Job_ID  INTEGER EXTERNAL Terminated by "," enclosed by '"' ,
Num_Resumes  CHAR Terminated by "," enclosed by '"' ,
Resume_Expiration  CHAR Terminated by "," enclosed by '"' ,
Copy_number_3  INTEGER EXTERNAL Terminated by "," enclosed by '"' ,
Fragment_3 INTEGER EXTERNAL Terminated by "," enclosed by '"' ,
Kilobytes_3 INTEGER EXTERNAL Terminated by "," enclosed by '"' ,
Remainder  CHAR Terminated by "," enclosed by '"' ,
Media_Type  CHAR Terminated by "," enclosed by '"' ,
Density  CHAR Terminated by "," enclosed by '"' ,
File_Num  INTEGER EXTERNAL Terminated by "," enclosed by '"' ,
ID_1 CHAR Terminated by "," enclosed by '"' ,
Host_1  CHAR Terminated by "," enclosed by '"' ,
Block_Size_1  CHAR Terminated by "," enclosed by '"' ,
Offset_1  CHAR Terminated by "," enclosed by '"' ,
Dev_Written_1 CHAR Terminated by "," enclosed by '"' ,
Flags_1  CHAR Terminated by "," enclosed by '"' ,
Media_Descriptor_1  CHAR Terminated by "," enclosed by '"' ,
checkpoint_1  CHAR Terminated by "," enclosed by '"' ,
resume_num_1 CHAR Terminated by "," enclosed by '"' ,
Copy_number_1  CHAR Terminated by "," enclosed by '"' ,
Fragment_1  INTEGER EXTERNAL Terminated by "," enclosed by '"' ,
Kilobytes_1  INTEGER EXTERNAL Terminated by "," enclosed by '"' ,
Remainder_1 CHAR Terminated by "," enclosed by '"' ,
Media_Type_1  CHAR Terminated by "," enclosed by '"' ,
Density_1 CHAR Terminated by "," enclosed by '"' ,
File_Num_1 CHAR Terminated by "," enclosed by '"' ,
ID_2  CHAR Terminated by "," enclosed by '"' ,
Host_2  CHAR Terminated by "," enclosed by '"' ,
Block_Size_2  INTEGER EXTERNAL Terminated by "," enclosed by '"' ,
Offset_2  CHAR Terminated by "," enclosed by '"' ,
Media_Date_2  CHAR Terminated by "," enclosed by '"' ,
Dev_Written_2 CHAR Terminated by "," enclosed by '"' ,
Flags_2  CHAR Terminated by "," enclosed by '"' ,
Media_Descriptor_2  CHAR Terminated by "," enclosed by '"' ,
Expiration_Time_2  CHAR Terminated by "," enclosed by '"' ,
MPX_2  CHAR Terminated by "," enclosed by '"' ,
retention_lvl_2 CHAR Terminated by "," enclosed by '"' ,
checkpoint_2  CHAR Terminated by "," enclosed by '"' ,
resume_num_2  CHAR Terminated by "," enclosed by '"' ,
END_OF_RECORD   CHAR Terminated by ","
  )
+++++++++++++++++++++++++++++++++++++++++++
One source records

"XXX.XXX.net",
"XXX.XXX.net_1184032683",
"Filesystem_EB_Windows",
"MS-Windows-NT (13)",
"(none specified)",
"root",
"(none specified)",
"Daily",
"CINC (4)",
"8 days (10)",
"Tue Jul 10 2007 02:58:03 (1184032683)",
"279 second(s)",
"Wed Jul 18 2007 02:58:03 (1184723883)",
"no",
"no",
"362361",
"3773",
"1",
"2",
"-1 -1 -1 -1 -1 -1 -1 -1 -1 -1",
"no",
"Filesystem_EB_Windows_1184032683_INCR.f",
"Filesystem_EB_Windows_1183780228_FULL.f",
"(none specified)",
"0x0",
"0",
"4",
"Wed Jul 11 2007 02:58:03 (1184119083)",
"(none specified)",
"no",
"no",
"0",
"no",
"(none specified)",
"Thu Jan 01 1970 01:00:00 (0)",
"Thu Jan 01 1970 01:00:00 (0)",
"0",
"0",
"0",
"Standard (0)",
"2695915",
"0",
"0",
"1",
"0  (Regular)",
"1969145",
"0",
"Thu Jan 01 1970 01:00:00 (0)",
"1",
"TIR (-1)",
"2633",
"0",
"Media Manager (2)",
"hcart2 (14)",
"344",
"MP0430",
"XXX.XXX.net",
"65536",
"6635630",
"Sun Jul 08 2007 20:07:52 (1183921672)",
"0",
"0x0",
"?",
"0",
"0",
"1",
"1",
"359728",
"0",
"Media Manager (2)",
"hcart2 (14)",
"343",
"MP0430",
"cscsvsmds005i02.msd.nwwmlsp.net",
"65536",
"6630007",
"Sun Jul 08 2007 20:07:52 (1183921672)",
"0",
"0x0",
"?",
"Wed Jul 18 2007 02:58:03 (1184723883)",
"0",
"8 days (10)",
"0",
"0",
"Hello;

++++++++++++++++++++++++++++++++++++++++1
Bad file:
"XXX.XXX.net",
"XXX.XXX.net_1184032683",
"Filesystem_EB_Windows",
"MS-Windows-NT (13)",
"(none specified)",
"root",
"(none specified)",
"Daily",
"CINC (4)",
"8 days (10)",
"Tue Jul 10 2007 02:58:03 (1184032683)",
"279 second(s)",
"Wed Jul 18 2007 02:58:03 (1184723883)",
"no",
"no",
"362361",
"3773",
"1",
"2",
"-1 -1 -1 -1 -1 -1 -1 -1 -1 -1",
"no",
"Filesystem_EB_Windows_1184032683_INCR.f",
"Filesystem_EB_Windows_1183780228_FULL.f",
"(none specified)",
"0x0",
"0",
"4",
"Wed Jul 11 2007 02:58:03 (1184119083)",
"(none specified)",
"no",
"no",
"0",
"no",
"(none specified)",
"Thu Jan 01 1970 01:00:00 (0)",
"Thu Jan 01 1970 01:00:00 (0)",
"0",
"0",
"0",
"Standard (0)",
"2695915",
"0",
"0",
"1",
"0  (Regular)",
"1969145",
"0",
"Thu Jan 01 1970 01:00:00 (0)",
"1",
"TIR (-1)",
"2633",
Start your free trial to view this solution
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Question Stats
Zone: Database
Question Asked By: radical_mit
Solution Provided By: gatorvip
Participating Experts: 2
Solution Grade: A
Views: 0
Translate:
Loading Advertisement...
 
[+][-]Expert Comment by gatorvip

Rank: Master

Expert Comment by gatorvip:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by radical_mit
Author Comment by radical_mit:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by gatorvip

Rank: Master

Expert Comment by gatorvip:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by radical_mit
Author Comment by radical_mit:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by gatorvip

Rank: Master

Expert Comment by gatorvip:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by radical_mit
Author Comment by radical_mit:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by radical_mit
Author Comment by radical_mit:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by sujit_kumar

Rank: Guru

Expert Comment by sujit_kumar:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by radical_mit
Author Comment by radical_mit:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by gatorvip

Rank: Master

Expert Comment by gatorvip:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by gatorvip

Rank: Master

Expert Comment by gatorvip:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by radical_mit
Author Comment by radical_mit:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Accepted Solution by gatorvip

Rank: Master

Accepted Solution by gatorvip:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by sujit_kumar

Rank: Guru

Expert Comment by sujit_kumar:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080723-EE-VQP-34