password encryption in liquibase - liquibase

Is there a way to pass encrypted password using liquibase against db2 database? Currently liquibase accepts clear text password and I would like to run liquibase using encrypted password. Please share your recommendations on this?
use variables to hide the password but that is not helping me.

It looks like db2 does support this, and liquibase can support passing in JDBC driver properties by specifying a driverPropertiesFile argument to Liquibase.

Related

why do i receive an errorcode when i RUN SQL on Db2

Please, can someone help me solve this issue i am with my IBM Db2 account. when i run SQL, it shows [jcc][t4][2013][11249][4.26.14] Connection authorization failure occurred. Reason: User ID or Password invalid. ERRORCODE=-4214, SQLSTATE=28000 . I have tried changing password, logging out and back in but its still the same.
Which tool are you using to run SQL against Db2? How did you configure the connection in the tool? Are you able to connect to the Db2 before you ran the SQL?
Also, check if you use any special characters in your credentials for your Db2 account, if you do, try to avoid that.

oracle log on denied in 12c

I am getting this error message while logging on to database. I have uploaded the screenshot also. Please tell me what can be the issue?
I believe the default SYSTEM password is manager password, not system.
Probably, you have created your database along with CREATE AS PLUGGABLE DATABASE option. Thus, Oracle doesn't know of the database you actually want to connect to.
Include the required and correct service_name/database_name to connect to the CDB/PDB respectively.
In your case, the ORACLE_SID might be pointing to the CDB, thus you successfully connected via / as sysdba. Try with the following -
conn system#database_name/password
Make sure you have edited the tnsnames.ora to add the required details post installation.
UPDATE OP mentioned in the comment that he created with the PDB option.
If you want to connect to the CDB/PDB, please explicitly mention the container/pluggable database name. Please read Oracle 12c Post Installation Mandatory Steps.

Setup password for H2

How to set up my own password for accessing the h2 while working in embedded mode?
(if anyone confused - talking about the root password for accessing the database)
In Eclipse it seems that password assignment occurs at the moment of db connection creation which in turn launches the process of schema creation, where we provide username and password.
Even if this is true how to change existing password after set up?
I've searched in information schema - found `users', there is no password column though.
The process seems to be really weird, what am I missing. In PostgreSQL it is a way easier.
So the questions are:
The passwords are assigned upon new schema creation?
How to change the password for current user?
I suspect it is done via the query, I believe it will have specific syntax, if that is the case I would appreciate sample query too, as I am not yet famillar with this SQL implementation.
Oh I guess life is not that bad :-).
Found on:
http://www.h2database.com/html/grammar.html#alter_user_set_password
To change it we obviously have to be able to connect to database(know username and password), as I said these are the ones we use during connection set up.
Then create simillar sql snippet
ALTER USER admin SET PASSWORD 'superPw';
I personally believe these high level operations have to be allowed to be done in wizards. Hope this helps.

Check user and password vs Active Directory in SQL

I would like to know if it is possible from sql directly to check a username and a password in Active directory. I mean without CLR functions.
I know is possible to get the list of users using Openrowset from a linked server and I was thinking if I can somehow put the password as a "where" parameter to that query and check the number of returned rows.
Thank you
No, you cannot.
The user's password in Windows is not available in clear text anywhere, so you cannot just compare it in a WHERE clause....
See how to do it very easily in C# in my answer to this SO question - but you can't do it inside SQL Server

vb.net to Teradata Connection string

I am wondering what I should use to connect to TD via VB.NET. Whether or not I should use ODBC, etc.... My server is TDDEV, database BCPM_DDBO. Also, passwords are changed every so often by DB Admin so I would not want to hard code a password in the connection string. I know that ODBC will prompt for user/pass. Is this the route to go? Thanks so much!
The Teradata .Net provider is faster at retrieving a large number of rows. (Teradata Developer Exchange)
However, there are some caveats when using it over the ODBC driver (at least with SQL Assistant):
Global Temporary Tables are not distinguished from regular tables
The data type for columns/parameters will be the .Net data type and not the real Teradata type
A WITH (summary) clause in a SELECT statement will cause the data return to fail
In general, it is not advisable to store the password in the code (or connection string). It would be better to have the user prompted. The .Net Provider uses a similar connection dialog as the ODBC driver. This should also handle the natural expiration of passwords based on the Password Security rules defined in the Teradata environment and prompt the user for a new password automatically.