In WebLogic, we can change the datasource type (e.g., from Generic to GridLink or XA) using the WLST (WebLogic Scripting Tool)
export ORACLE_BASE=/Middleware/oracle
export DOMAIN_NAME=uatdomain
export DOMAIN_HOME=$ORACLE_BASE/config/domains/$DOMAIN_NAME
export WL_HOME=/Middleware/oracle/product/fmw/wlserver
cd $WL_HOME/common/bin
$ $WL_HOME/common/bin/wlst.sh
connect('weblogic', 'password', 't3://IP:PORP')
Step 2: Update the DataSource
edit()
startEdit()
cd ('/JDBCSystemResources/LocalSvcTblDataSource/JDBCResource/LocalSvcTblDataSource')
set('DatasourceType', 'AGL')
save()
activate()
exit()
3. Restart WebLogic (If Needed)
Post a Comment