Linux怎么设置db2密码有效期,db2密码过期(SQL30082N "1"("PASSWORD EXPIRED"))

db2密码过期(SQL30082N "1"("PASSWORD EXPIRED"))

DB2 depends on operation system level authorization to control DB2 system access.

In some case, our db2 account only allows to connect to instance or database, but not log on the system. In other words, we are not able to use the account to get a shell on unix or logon locally on windows.

As usual, when we need to change db2 password, we take action on the system level because it's more frank. But in the case above that we can't get logon, we have to do it on db2 level. There are 2 ways.

* Use the GUI tool DB2 Configuration Assistance

* Use the command line tools DB2 CLP or CE

Using DB2 Configuration Assistance

Right click on a database name, then choose "Change password".

1010271206392e4773550d466d.jpg

CA tool interface

Note: When more than one databases live in same system, we might share the same account in multi-database. Changing password for one of them will affect all databases in this system. In other words, we don't need to do the change on each database, we could choose any we have privileges on the system.

Limitation: We are not able to change our password in the case of that we are only allowed to attach to the node but not connect to any database, or we don't get the catalog information for any database in the node.

For this limitation, it works out with the 2nd way.

Using DB2 CLP and CE

We could use CLP and CE to change password for databases and nodes that we connected or attached to.

* Change by connecting to database

C:> db2 connect to SAMPLE user TEST using OLDPWD new NEWPWD confirm NEWPWD

C:> db2 connect to SAMPLE user TEST using OLDPWD change password

* Change by attaching to node, this way works out for the limitation in Configuration Assistance

C:> db2 attach to NODE user TEST using OLDPWD new NEWPWD confirm NEWPWD

C:> db2 attach to NODE user TEST using OLDPWD change password

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值