If suddenly you cannot connect to ProjectWise datasource and connection just seems to be "frozen' please check if you are using Oracle database.
If that is the case, please try to test your ODBC connection, in case during test phase it will show that user is expired proceed to change the password in oracle and set it to non expiring if it's allowed by your security policy.
If the password was changed please open PWIS dmskrnl.cfg file (located in:C:\Program Files\Bentley\ProjectWise\bin) and find this section:
[db0]
Description=PW Datasouce Name
Type=Microsoft SQL Server
InterfaceType=ODBC
Name=ODBC name
DBUserName=DB_user_name
DBUsrPwdDecrypt=4
DBUserPassword=#A5H/X/Qae2lHlOqpEgNBNN9/TtkBUTmgopyZrBulgP3Ea2qFst8Sx1l8pUo=
Change last two lines:
DBUsrPwdDecrypt=1
DBUserPassword=new_pass
Please restart PWIS service afterwards and the new password will be re-encrypted.