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 NameType=Oracle ServerInterfaceType=ODBCName=ODBC nameDBUserName=DB_user_nameDBUsrPwdDecrypt=4DBUserPassword=#A5H/X/Qae2lHlOqpEgNBNN9/TtkBUTmgopyZrBulgP3Ea2qFst8Sx1l8pUo=
Change last two lines:
Please restart PWIS service afterwards and the new password will be re-encrypted.