weblogic手工建立簡單域的方法(包含節點,叢集)

huangdazhu發表於2018-04-09

[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/,如需轉載,請註明出處,否則將追究法律責任。

相關文章