Changes the attributes of an existing connection profile.
alter connection connection_name
[set agent [{to|=}]agent_name]
[and set host [{to|=}] host]
[and set port [{to|=}] port]
[and set database [{to|=}] database_name]
[and set user [{to|=}] username]
[and set password [{to|=}] password]
[and set desc [{to|=}] description]
alter connection connection_name
with node
set host [{to|=}] host and set port [{to|=}] port
[and node set host [{to|=}] host and set port [{to|=}] port] ...
alter connection connection_name
with properties
set property_name [{to|=}] property_value
[and set property_name [{to|=}] property_value ]…]
alter connection connection_name
with properties drop property_name | ALL
See jConnect for JDBC 7.0 > jConnect for JDBC 7.0 Programmers Reference > Programming Information > Establishing a Connection > Connection Properties.
alter connection MyConnPDB set user=myuser2 and set password=mypwd2 go
Connection “MyConnPDB” was altered successfully