semi-colon not allowed in password field in OCI stage

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
wasimraja
Participant
Posts: 61
Joined: Fri Jul 06, 2007 4:23 pm
Location: USA

semi-colon not allowed in password field in OCI stage

Post by wasimraja »

Hi all,

I faced a weird problem in one of my jobs. I have a database to which I can login through TOAD/SQL plus. I have created environment variables for the database name, username and password and tried to use it in the ORAOCI9 stage. After defining all the logic, I tried to view data and it threw "Invalid username/pwd". I tried typing the datasource name, username and password manually and it all threw the same error. I tried to run this job anyway thinking this was weird and it threw me "TNS could not resolve service name" error. I had the tnsentry for the database in the server but replaced it anyway but the behavior was the same. Noticing the strange behavior I checked the password which actually contained a ';' (semi-colon). I asked the DBA to reset the password and asked him not to use a semi-colon. He reset it and it worked fine. Note that I was able to login to the database through TOAD using the old password with semi-colon and I also tried to delete the job entirely and recreating it.

I am not sure if this is a known issue with Datastage but I wanted to post this so that it might be of help to someone.
Cheers
Wasim

--If necessity is the mother of invention, then the need to simplify is the father of it.
JoshGeorge
Participant
Posts: 612
Joined: Thu May 03, 2007 4:59 am
Location: Melbourne

Post by JoshGeorge »

You need to enclose the password in double quotes if it has special characters. If that didn't solve the issue ask your support provider for a fix available for this.
Joshy George
<a href="http://www.linkedin.com/in/joshygeorge1" ><img src="http://www.linkedin.com/img/webpromo/bt ... _80x15.gif" width="80" height="15" border="0"></a>
Post Reply