Oracle Error

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
deepa_shenoy
Participant
Posts: 95
Joined: Thu Sep 24, 2009 12:15 am
Location: India

Oracle Error

Post by deepa_shenoy »

Hi All,

I don't know what to do to remove this Fatal Error:

Oracle_Enterprise_3,1: The system(sqlldr CONTROL=ora.2714.131128.1.ctl LOG=ora.2714.131128.1.log BAD=ora.2714.131128.1.log.bad SILENT=header PARFILE=ora.2714.131128.1.par) failed; see the log file for the Oracle specific message.

Only few of the records are getting inserted into the target table.

Any solution?

Thanks in advance.

-Deepa
thanush9sep
Premium Member
Premium Member
Posts: 54
Joined: Thu Oct 18, 2007 4:20 am
Location: Chennai

Post by thanush9sep »

Check whether you have handled null.

If your source column is NOT NULL and the Target table is NULL then you might face this type of error.
Regards
LakshmiNarayanan
deepa_shenoy
Participant
Posts: 95
Joined: Thu Sep 24, 2009 12:15 am
Location: India

Post by deepa_shenoy »

All are Nullable. All columns in all stages are Nullable.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Read ora.2714.131128.1.log - it should reveal the actual problem.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Re: Oracle Error

Post by chulett »

deepa_shenoy wrote:see the log file for the Oracle specific message.
-craig

"You can never have too many knives" -- Logan Nine Fingers
deepa_shenoy
Participant
Posts: 95
Joined: Thu Sep 24, 2009 12:15 am
Location: India

Post by deepa_shenoy »

I read that too... but I dont know where and how to see the log file!!
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

The 'where' would be wherever your config designates as 'scratch' space. As for 'how' it's just a plain old text file.
-craig

"You can never have too many knives" -- Logan Nine Fingers
rupeshg
Premium Member
Premium Member
Posts: 60
Joined: Thu Dec 22, 2005 6:02 am
Location: United Kingdom

Post by rupeshg »

deepa_shenoy wrote:I read that too... but I dont know where and how to see the log file!!
If you have root access on Unix machine (u could try with your login), a simple find command would help you locate the file.
find / -name ora.2714.131128.1.log
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post by priyadarshikunal »

If you have root access on Unix machine (u could try with your login), a simple find command would help you locate the file.
Why you need root priviledge to find and see a file?

You just have to look in to your cofiguration file (which is present in log itself) to see which location is being used for Scratch and the file will be there.

ora.2714.131128.1.log file will have reason why the record got rejected or discarded.

An to see the data discarded look in to ora.2714.131128.1.log.bad file.
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
rupeshg
Premium Member
Premium Member
Posts: 60
Joined: Thu Dec 22, 2005 6:02 am
Location: United Kingdom

Post by rupeshg »

priyadarshikunal wrote:Why you need root priviledge to find and see a file?
Locating a file through a FIND command is easier with ROOT login as it does not give you error on Directories that you don't have access to, while searching the file with your user login.

Comment was more specific on searching and locating the file.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Still... there's no reason to go find it as the location is well known - your scratch area specified in the job's config file.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Code: Select all

find [ options ] 2>/dev/null
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Rather than going through find, wouldn't it be easier to go few lines up in the datastage log to locate the configuration file and its scratch directories ? :roll:
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Maybe, but you can go and get a cup of tea while find is running. :wink:
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply