Oracle enterprise stage Upsert returns sqlcode:-1480

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
dnsjain
Charter Member
Charter Member
Posts: 34
Joined: Thu May 08, 2003 2:12 pm

Oracle enterprise stage Upsert returns sqlcode:-1480

Post by dnsjain »

I am using Oracle enetrprise stage to load abd update data in Oracle database from squential file. Whenever I run the job all of the records are getting rejected by Enterprise stage. I tried all variation of upsert and it gives the same results.

In the reject records I get "sqlcode:-1480" but there is no explanation for that.

I will appreciate help on this one.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Not that this is all that helpful, but you can look them up from the command line using the 'oerr' command:

Code: Select all

$ oerr ORA 1480
01480, 00000, "trailing null missing from STR bind value"
// *Cause:  A bind variable of type 5 (null-terminated string) does
//          not contain the terminating null in its buffer.
// *Action: Terminate the string with a null character
-craig

"You can never have too many knives" -- Logan Nine Fingers
dnsjain
Charter Member
Charter Member
Posts: 34
Joined: Thu May 08, 2003 2:12 pm

Post by dnsjain »

I found the reason: My APT_STRING_PADCHAR parameter was set 0x20, It need to be set to 0x00.

Thanks a lot everyone for the suuport.
Post Reply