Friday, September 28, 2012

Quick WLST script to create WLS domain using a template

readTemplate('/opt/oracle/fmw11_1_1_5/wlserver_10.3/common/templates/domains/wls.jar')
cd('Servers/AdminServer')
set('ListenAddress',''myhostname.com'')
set('ListenPort', 7001)
cd('/')
cd('Security/base_domain/User/weblogic')
cmo.setPassword('weblogic1')
setOption('OverwriteDomain', 'true')
writeDomain('/opt/oracle/fmw11_1_1_5/user_projects/domains/mydomain')
closeTemplate()
exit()





No comments: