웹로직 도메인 생성 테스트 (템플릿을 사용하여 별도의 GUI 환경 없이)
1. 기존 만들어져있는 Domain을 바탕으로 Template 파일 생성
2. 사용에 맞도록 알맞게 수정 (레퍼런스 참조)
3. Template 파일을 사용하여 새로운 Domain 생성
# 도메인 탬플릿 생성
./wlst.sh
/u01/app/oracle/product/Middleware/user_projects/domains/widetns_odi_domains
wls:/offline> readDomain('/u01/app/oracle/product/Middleware/user_projects/domains/widetns_odi_domains')
wls:/offline/widetns_odi_domains>writeTemplate('/home/oracle/widetns_domain_template.jar')
wls:/offline/widetns_odi_domains>exit()
Exiting WebLogic Scripting Tool.
# 생성 파일 확인
./wlst.sh
wls:/offline> readTemplate('/home/oracle/widetns_domain_template.jar')
wls:/offline/widetns_odi_domains>dumpVariables()
cmo: Proxy for widetns_odi_domains: Name=widetns_odi_domains, Type=DomainConfig
exitonerror: true
recording: false
wls:/offline/widetns_odi_domains>ls()
drw- AnyMachine
drw- AppDeployment
drw- EmbeddedLDAP
drw- JDBCSystemResource
drw- Library
drw- Security
drw- SecurityConfiguration
drw- Server
drw- ShutdownClass
drw- StartupClass
drw- WLDFSystemResource
-rw- Active false
-rw- AdminServerName AdminServer
-rw- AdministrationMBeanAuditingEnabled false
-rw- AdministrationPort 9002
-rw- AdministrationPortEnabled false
-rw- AdministrationProtocol null
-rw- AutoDeployForSubmodulesEnabled true
-rw- ClusterConstraintsEnabled false
-rw- ConfigBackupEnabled false
-rw- ConfigurationAuditType null
-rw- ConfigurationVersion 10.3.5.0
-rw- ConsoleContextPath console
-rw- ConsoleEnabled true
-rw- ConsoleExtensionDirectory console-ext
-rw- DomainVersion 10.3.5.0
-rw- ExalogicOptimizationsEnabled false
-rw- GuardianEnabled false
-rw- InternalAppsDeployOnDemandEnabled true
-rw- LastModificationTime 0
-rw- MsgIdPrefixCompatibilityEnabled true
-rw- Name widetns_odi_domains
-rw- Notes null
-rw- OcmEnabled true
-rw- ProductionModeEnabled false
-rw- RootDirectory null
wls:/offline/widetns_odi_domains>
# 도메인 생성
wls:/offline> createDomain('/home/oracle/widetns_domain_template.jar','/u01/app/oracle/product/Middleware/user_projects/domains/new_domain','weblogic','welcome1')
ref: http://download.oracle.com/docs/cd/E13222_01/wls/docs90/config_scripting/domains.html
1. 기존 만들어져있는 Domain을 바탕으로 Template 파일 생성
2. 사용에 맞도록 알맞게 수정 (레퍼런스 참조)
3. Template 파일을 사용하여 새로운 Domain 생성
# 도메인 탬플릿 생성
./wlst.sh
/u01/app/oracle/product/Middleware/user_projects/domains/widetns_odi_domains
wls:/offline> readDomain('/u01/app/oracle/product/Middleware/user_projects/domains/widetns_odi_domains')
wls:/offline/widetns_odi_domains>writeTemplate('/home/oracle/widetns_domain_template.jar')
wls:/offline/widetns_odi_domains>exit()
Exiting WebLogic Scripting Tool.
# 생성 파일 확인
./wlst.sh
wls:/offline> readTemplate('/home/oracle/widetns_domain_template.jar')
wls:/offline/widetns_odi_domains>dumpVariables()
cmo: Proxy for widetns_odi_domains: Name=widetns_odi_domains, Type=DomainConfig
exitonerror: true
recording: false
wls:/offline/widetns_odi_domains>ls()
drw- AnyMachine
drw- AppDeployment
drw- EmbeddedLDAP
drw- JDBCSystemResource
drw- Library
drw- Security
drw- SecurityConfiguration
drw- Server
drw- ShutdownClass
drw- StartupClass
drw- WLDFSystemResource
-rw- Active false
-rw- AdminServerName AdminServer
-rw- AdministrationMBeanAuditingEnabled false
-rw- AdministrationPort 9002
-rw- AdministrationPortEnabled false
-rw- AdministrationProtocol null
-rw- AutoDeployForSubmodulesEnabled true
-rw- ClusterConstraintsEnabled false
-rw- ConfigBackupEnabled false
-rw- ConfigurationAuditType null
-rw- ConfigurationVersion 10.3.5.0
-rw- ConsoleContextPath console
-rw- ConsoleEnabled true
-rw- ConsoleExtensionDirectory console-ext
-rw- DomainVersion 10.3.5.0
-rw- ExalogicOptimizationsEnabled false
-rw- GuardianEnabled false
-rw- InternalAppsDeployOnDemandEnabled true
-rw- LastModificationTime 0
-rw- MsgIdPrefixCompatibilityEnabled true
-rw- Name widetns_odi_domains
-rw- Notes null
-rw- OcmEnabled true
-rw- ProductionModeEnabled false
-rw- RootDirectory null
wls:/offline/widetns_odi_domains>
# 도메인 생성
wls:/offline> createDomain('/home/oracle/widetns_domain_template.jar','/u01/app/oracle/product/Middleware/user_projects/domains/new_domain','weblogic','welcome1')
ref: http://download.oracle.com/docs/cd/E13222_01/wls/docs90/config_scripting/domains.html