Oracle reserve word

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
krystlecsy
Participant
Posts: 50
Joined: Wed Jul 14, 2004 7:56 am

Oracle reserve word

Post by krystlecsy »

I have to update an Oracle reserve word (USER field) in the Oracle Stage. In Oracle, to update the USER field, it is just to append the double quotes.

Eg. UPDATE TABLE_A SET "USER" = ORCHESTRATE."USER".

But when I insert the statement that way in the Oracle stage, it gives me an error that the UPDATE statement is incorrect and needs to be verify. Does anyone has a solution to this?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Another way is to fully qualify the field name. Is that possible? :?

In the Server's version of the OCI stage you can check off a box that 'enables case sensitive' queries, which will automatically quote all of the objects referenced. That might be another option for you, but I don't have PX, so...
-craig

"You can never have too many knives" -- Logan Nine Fingers
krystlecsy
Participant
Posts: 50
Joined: Wed Jul 14, 2004 7:56 am

Post by krystlecsy »

Thanks, chulett but sad to say, PX doesn't have the option in the Oracle stage. :( Anyway, changed the fieldname to a non-reserve word in Oracle.
Post Reply