Passing UserID and Password for DB connection
Moderators: chulett, rschirm, roy
Passing UserID and Password for DB connection
Is there a way to reference only the DB connection without hardcoding the USERID and PASSWORD anywhere in datastage? We currently have the SERVER, USERID and PASSWORD as parameters.
Hello Tiozzo,
I'm not quite sure what you mean by "hardcoding" as you already are using parameters and their runtime values for the database related values. Could you perhaps eloborate on which values you want to change?
I'm not quite sure what you mean by "hardcoding" as you already are using parameters and their runtime values for the database related values. Could you perhaps eloborate on which values you want to change?
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
I had a meeting with our DBA this morning and he stated that he didn't like the idea of the tool asking for userid and password but rather it should ask for Database Connection (Which points to a common userid and password). This way the UserID and Password is passed through a connection.
Hopefully this is more clear.
Hopefully this is more clear.
-
- Premium Member
- Posts: 503
- Joined: Wed Jun 29, 2005 8:14 am
I get what his DBA is wanting.
Correct me if i am wrong tiozzo, your dba wants your database stage to point to a connection file and dynamically pick up the username and password from there.
Tell him its out of the scope of this tool. Such a file does exist, the uvodbc.config and .odbc.ini files. They have this information. But these files specify the odbc handle for the stages. The database stage still, explicitly, needs the username and password to connect. Thats the way it works.
According to my opinion. Correct me if i am wrong gurus.
You can tell you dba that ok, i will keep that username and password and the dsn name in one file and read it dynamically by passing the parameters during runtime from that file.
Correct me if i am wrong tiozzo, your dba wants your database stage to point to a connection file and dynamically pick up the username and password from there.
Tell him its out of the scope of this tool. Such a file does exist, the uvodbc.config and .odbc.ini files. They have this information. But these files specify the odbc handle for the stages. The database stage still, explicitly, needs the username and password to connect. Thats the way it works.
According to my opinion. Correct me if i am wrong gurus.
You can tell you dba that ok, i will keep that username and password and the dsn name in one file and read it dynamically by passing the parameters during runtime from that file.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
-
- Premium Member
- Posts: 503
- Joined: Wed Jun 29, 2005 8:14 am