WebLogic Server 12c????????????????????????????????????/???????WebLogic Server 12c Forum 2012?????
- by ???02
2012?1??????WebLogic Server 12c???200??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????2012?8????????WebLogic Server 12c Forum 2012????????·??????????????????????????/?????????????????(???)
????????????WebLogic Server 12c?????????
??WebLogic Server???????·???????WebLogic Server?????????????????????????????????????WebLogic Server 12c Forum 2012?????????????????·????????????????????????????????????????????????????·?????????????WebLogic Server 12c??????????????/?????????????
???????????????????????????? ?????????????????????????????????????
?????? ???????????????????????????????????
??????????????????????????????????????????????????????????????????????????“??????????????????????????”????????????????????????WebLogic Server 11g??????????????????
(1)????????????????????! = ??ID?????????
WebLogic Server???????????????????????????????????????????????????????????????????????
?????????????????
?????????·???????????????????
??????init.d????????????
???????????????ID????(boot.properties)??????????????????????WebLogic Server??????????????????????????????????
???ID?????????
<DOMAIN_HOME>/servers//security???????????·?????boot.properties????????????2???????
username=
password=
???????????????????WebLogic Server??????????????????????????????????????????????????????????????????
(2)WLST???????????????????! = WLST?????????
WebLogic Server???????????????????????????????????????????????????????????????/?????????????WLST(WebLogic Scripting Tool)????????????????????????????????????????????????????????????????????/????????????WLST??????????
?????????????WLST???????????????????????Python?Java?????Jython?????????????WebLogic Server?????????????MBean???????????????????????????????????WLST?????????????Excel????????????????????????????????????????????????????????????????????????????WLST??????????????????????????????????
?WLST????????????
????????[????·????]-[???????]?????????????????[??]????????
???????????????????????????[?????]????????py?????WLST???????????????????????????[??]???????????????????
???????????????WLST?????????????????????WLST????????????????????????????????????????????????????????????????????
(3)????SQL?WebLogic Server???????! = ????·?????
??????????WebLogic Server??????????????????????????????SQL??????????????????????????????????·????????????????????????????????????????·???????????WebLogic Server????????·???????·???????????????WebLogic Server????/?????????????????????????????????????JDBC????????????????????????????SQL?ResultSet?????????????·?????????
????·?????????????
?????·???????
????????[??]-[????]-[?????]-?????????????WebLogic Server?????/?????????????????????????????????????????[weblogic]-[jdbc]-[sql]-[DebugJDBCSQL]?????????[???]????????
??????JDBC?????·???????·?????????
????/???????????????????????/????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
(4)[??]??????????????! = [??????????]?????
?[??]????????????????????????????????????????????????????????????????????????????[??]?????????????????????????????????2??????????????????????????????????????????????????????????????????????????????????????????????????????[??????????]?????????2??????????????????????????
?????????2?????????????
????????[??????]-[???]-[???????????????]??????[???·???????]?????[??????????]?????????[??]????????
???????????????????????????
(5)????????????????????????????! = ?V$SESSION.PROGRAM??????????????
???Oracle Database??????????????????????????
WebLogic Server?????????????????????????????????????????????????????????????????????????????1??WebLogic Server?????????????????????????????????????????????????????????????????????????????????????????????????????????????????
???????????????V$SESSION.PROGRAM?????????????Oracle Database?????????·?????????????????????????????????V$SESSION????????????????PROGRAM????????????????????????????WebLogic Server???????????????????????????JDBC Thin Client???JDBC????????????????????????????????????????PROGRAM???????????????????????·??????????????????????
V$SESSION.PROGRAM????????????????????????????
?V$SESSION.PROGRAM???????????????
???????????([???JDBC?????????]??)?[?????]?????1???????
v$session.program=
(6)???·???????·????????! = ????·????·?????????
WebLogic Server?????????????????????????????????(???·??)????????????????·???????1??????????????????????????????????????????WebLogic Server??????????????????????????????????
??????????????????·????·?????????????????????????WebLogic Server??????????????????????????????????????
???????????JDK???????Log4j????????????????WebLogic Server????????????????
WebLogic Server????????JDK?Log4j??????????????????JDK??????????
????·????·????????????????
?????·????·?????????
JDK???Log4j?????????????????????/??????????????
?JDK???:weblogic.logging.ServerLoggingHandler
?Log4j???:weblogic.logging.log4j.ServerLoggingAppender
??????Log4j?????????????(????)?
<appender name="file" class="org.apache.log4j.FileAppender">
<param name="File" value=“applog.log" />
<param name="Append" value="true" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d %5p %c{1} - %m%n" />
</layout>
</appender>
<appender name="server" class="weblogic.logging.log4j.ServerLoggingAppender"/>
?????????????????????????????????????????WebLogic Server??????????????????????????????????????
?JDK???:-Djava.util.loggin.config.file=<PATH>
?Log4j???:-Dlog4j.configuration=<PATH>
???????????WAR??????????????????????·????·??????????WebLogic Server??????????????????????????????????????WebLogic Server????????????????????
(7)BEA??????????????????????! = GetMessage???????
WebLogic Server????????·??????????????(?BEA-XXXXXX??????????????????BEA?????)????WebLogic Server?HTML??????????????????Web?????????????????????????????????????????????
????????????GetMessage?????????????BEA??????????????????????????????????????????
?GetMessage?????????
java?????WebLogic Server?GetMessage????????????
java weblogic.GetMessage
??????????
?-id XXXX:????????????
?-verbose:?????????
?-lang XX:???????(?????????????????????????????????????)
????BEA-000337??????????????????????????????
java weblogic.GetMessage -verbose -id 000337 -lang ja
000337: ?????"{2}"?????{0}?"{1}"??????????????????????????(StuckThreadMaxTime)"{3}"?????????????·????:
{4}
L10n?????: weblogic.kernel
I18n?????: weblogic.kernel
??????: WebLogicServer
???: ???
????·????: false
????????: ????????????????????????????????
??: ????????????????????????????????????
?????: ??????????????????????????????????????????????????????????????·???(weblogic.Admin THREAD_DUMP)?????????
?????????BEA??????????????????????????????????????????????????????????????????????????????????
????????“WebLogic??”!? WebLogic Server 12c????/???
????????????? ???????????? ?????????????????
?????????????? ???????????? ????????????WebLogic Server???????????????????????????????????????????????WebLogic Server 12c?????????????????????????????????????????????????????????WebLogic Server 11g(10.3.6)????????????
?????????Mac OS X???(???????)?IE 6?7???????????????
??OTN??????????????????System Requirements and Supported Platforms for WebLogic Server 12c (12.1.1.x)?????????????Mac OS?????????????2012?8?2?????Mac OS X Snow Leopard????Java SE 7??????????
???Internet Explorer(IE) 6.x??7.x???????????????????IE????????IE 8.x????????????
????Web?????WebLogic Server?????????Web???·??????64?????????????(WebLogic Server??????????64?????)?????????WebLogic Server?????????????????????????????????????????
?RESTful?????????
Java EE 6?JAX-RS????????????WebLogic Server 12c????????????????????????????????????
?RESTful???????????
[????]-[??]-[??]?[RESTful??????????]?????????WebLogic Server??????????????????URL??????????????????????????
http(s)://:/management/tenant-monitoring/servers
???????servers??????clusters???applications???datasources???????????????????????????????????????????????
????HTML??????JSON?XML????????????????????????????????????????????????????????????????????
?JDBC????????(1):??????·????
???????????????????????WebLogic Server??????????????????????????????????12c??Active GridLink for RAC????????????????????????????????????
1??????????·?????????????????????[????]?????????[??????]?????????????????????????????????????????????????????????????????????
<DOMAIN_HOME>/servers//logs/datasource.log
??????????????????????????????????????
??????????????????????WLDF????????????????WebLogic Server 12c??????????????????????
?JDBC????????(2):??????????
????????????????[??]-[?????]???[????]?????????????????????????????????????????????????????????????????WebLogic Server 12c??????????????????????????????????????
??????????????????????????????????WebLogic Server 11g(10.3.1)???1???????????????????????????????????????
?JDBC????????(3):?????????
WebLogic Server 12c??[??]-[?????]????????????????????[?????????]???1???????????????????????????????????????????????????????????????????????????????????????????????????????????????Oracle Database??????????????????????????
ErrorCode
?????
3113
???????end-of-file????????
3114
Oracle??????????
1033
Oracle???????????????
1034
Oracle???????
1089
?????????? - ??????????
1090
???????? - ??????????
17002
I/O??
?????????(1):?????/??????????????????
??????????2??????
1???WebLogic Server?????????????????????????????????????????
-Dweblogic.management.username=
-Dweblogic.management.password=
????????????ID????????????????
?????????(2):SSL????Certicom??????
SSL?????Certicom(?????10.3.3?????)???????JSSE(Java Secure Socket Extension)?????????????????????????????????????????
???????????????????????????????
????????????WebLogic Server?????????????????????????????????Java?????????·????2??????????Java????????????????nodemanager.properties?????????????StartScriptEnabled?????????false??true??????
?????????????false?????????????WebLogic Server??????????????????true??????????????startWebLogic???????????????WebLogic Server??????????????startWebLogic????????????????????????????????????????????????????????????????
???/???????(1):setDomainEnv????????????????
??/?????????????“?????·???”????????????????????????????2????
1??setDomainEnv?????????????????????????????32???JDK????????Perm?????????????
?WebLogic Server 11g(10.3.5)
MEM_PERM_SIZE_64BIT="-XX:PermSize=128m"
MEM_PERM_SIZE_32BIT="-XX:PermSize=48m"
...
MEM_MAX_PERM_SIZE_64BIT="-XX:MaxPermSize=256m"
MEM_MAX_PERM_SIZE_32BIT="-XX:MaxPermSize=128m"
?WebLogic Server 12c(12.1.1)
MEM_PERM_SIZE_64BIT="-XX:PermSize=128m"
MEM_PERM_SIZE_32BIT="-XX:PermSize=128m"
...
MEM_MAX_PERM_SIZE_64BIT="-XX:MaxPermSize=256m"
MEM_MAX_PERM_SIZE_32BIT="-XX:MaxPermSize=256m"
???/???????(2):stopWebLogic??????shutdown.py?????????
??/???????????2????stopWebLogic??????????????shutdown.py??????????????????????????????ID/????????????????????????shutdown.py??????????????WebLogic Server 11g(10.3.3)?????????????ID????????????????????WebLogic Server 12c????????
?????????????
?????????????/???
???????????/??????????????
???KernelMBean????UseConcurrentQueueForRequestManager?????????????????????????????[????]--[??????]-[??]?[?????·???????????????]??????????????????????????????????????????MBean???????????????????????????????????????????????????????????????????????????????????????????(???)?
??1???Windows?????????beasvc.exe????wlsvc.exe????????????????????????wlsvc _???????BEA????????????????(???)?
????WLST???????Jython???????????????????2.1??2.2.1????????(???11g??2.2.1???????)???????????????……?(???)?
???????WebLogic Server 12c???????????????????????/????????????????????????????????????????WebLogic Server?????????WebLogic Server????????????Facebook?????????WebLogic!??????????????