DB2 depends on operation system level authorization to control DB2 system access.In some case, our db2...
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".
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
?????? 我曾經根據文件的狀態在指定時間內是否改變寫過一個WatchDog來對服務進行監控,其間曾被這三個時間搞混淆,所以覺得很有必要和大家分享我對這三個術語的理解。
????? 前兩者的區別就在于文件狀態的改變既包括文件索引節點的改變,也包括文件內容的改變。也就是說如果你改變了文件內容,則同時更新了ctime和mtime,但是如果你只改變了文件索引節點則只是改變了ctime。atime只有在文件被讀取的時侯才會改變。它的改變與文件狀態以及文件內容的改變沒有直接的聯系。