1) Open a command prompt
2) Go to: domain-name/bin
3) Run:
. ./setDomainEnv.sh
java weblogicWLST
4) Once WLST is started, execute the following commands:
prompt>connect('username','password','t3://ip:port')
prompt>edit()
prompt>startEdit()
prompt>cd('Servers/server-name')
prompt>ls()
NOTE: this will list all the MBeans available. Please make sure "JDBCLoginTimeoutSeconds" is there
prompt>cmo.setJDBCLoginTimeoutSeconds(10)
prompt>save()
prompt>activate()
5) Restart the server