[ENGINE]
#DO NOT CHANGE THIS.
Response File Version=1.0.0.0.0
[GENERIC]
#The oracle home location. This can be an existing Oracle Home or a new Oracle Home
ORACLE_HOME=/u02/bea
#Set this variable value to the Installation Type selected. e.g. WebLogic Server, Coherence, Complete with Examples.
INSTALL_TYPE=WebLogic Server
#Provide the My Oracle Support Username. If you wish to ignore Oracle Configuration Manager configuration provide empty string for user name.
MYORACLESUPPORT_USERNAME=
#Provide the My Oracle Support Password
MYORACLESUPPORT_PASSWORD=<SECURE VALUE>
#Set this to true if you wish to decline the security updates. Setting this to true and providing empty string for My Oracle Support username will ignore the Oracle Configuration Manager configuration
DECLINE_SECURITY_UPDATES=true
#Set this to true if My Oracle Support Password is specified
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
#Provide the Proxy Host
PROXY_HOST=
#Provide the Proxy Port
PROXY_PORT=
#Provide the Proxy Username
PROXY_USER=
#Provide the Proxy Password
PROXY_PWD=<SECURE VALUE>
#Type String (URL format) Indicates the OCM Repeater URL which should be of the format [scheme[Http/Https]]://[repeater host]:[repeater port]
COLLECTOR_SUPPORTHUB_URL=
2、创建Loc文件 oraInst.loc
inventory_loc=/home/weblogic/oraInventory
inst_group=weblogic
然后执行:
readTemplate('/data/wls1212/wlserver/common/templates/wls/wls.jar')
cd('Servers/AdminServer')
cmo.setName("testAdminServer")
set('ListenAddress','10.10.15.96')
set('ListenPort',8888)
cd('/')
cd("/Security/base_domain/User/weblogic")
cmo.setPassword("weblogic123")
setOption("OverwriteDomain",'true')
setOption('ServerStartMode','prod')
writeDomain('/data/domains/test11_domain')
closeTemplate()
readDomain('/data/domains/test11_domain')
cd('/')
create('ManagedServer8002','Server')
cd('Server/ManagedServer8002')
set('ListenPort',8002)
set('ListenAddress','10.10.15.96')
set('MaxOpenSockCount',5000)
cd('/')
create('ManagedServer8003','Server')
cd('Server/ManagedServer8003')
set('ListenPort',8003)
set('ListenAddress','10.10.15.96')
cd('/')
create('ManagedServer8004','Server')
cd('Server/ManagedServer8004')
set('ListenPort',8004)
set('ListenAddress','10.10.15.96')
cd('/')
create('ManagedServer8005','Server')
cd('Server/ManagedServer8005')
set('ListenPort',8005)
set('ListenAddress','10.10.15.96')
cd('/')
create('ManagedServer8006','Server')
cd('Server/ManagedServer8006')
set('ListenPort',8006)
set('ListenAddress','10.10.15.97')
cd('/')
create('ManagedServer8007','Server')
cd('Server/ManagedServer8007')
set('ListenPort',8007)
set('ListenAddress','10.10.15.97')
cd('/')
create('xlcpt_Cluster','Cluster')
assign('Server','ManagedServer8002,ManagedServer8003,ManagedServer8004,ManagedServer8005,ManagedServer8006,ManagedServer8007','Cluster','xlcpt_Cluster')
cd('Cluster/xlcpt_Cluster')
set('MulticastAddress','237.0.0.101')
set('MulticastPort', 8050)
set('WeblogicPluginEnabled','true')
updateDomain()
closeDomain()
exit()
/data/wls1212/wlserver/common/bin/wlst.sh create_testdomain.py
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/28869493/viewspace-2152706/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/28869493/viewspace-2152706/