EOS下控制台以及图形界面打印sql语句
EOS下控制台以及图形界面打印sql语句
场景需求:在eos中打印sql语句,包括数据实体,查询实体和命名sql的sql语句。
所需资源:
P6spy:负责拦截sql,并打印。
Sqlprofiler:解析p6spy拦截的sql,在基于swing的图形界面上显示,并提供监控分析功能。
Spy.properties:p6spy配置文件,用来指定数据库驱动,打印sql的目的地(文件,控制台,sqlprofiler界面),打印格式等。
EOS控制台打印
- 复制p6spy.ar,sqlprofiler.jar到web应用的lib目录下(如D:\Primeton\eos702\apache-tomcat-5.5.20\webapps\default\WEB-INF\lib)。
- 复制spy.properties到classpath下(如D:\Primeton\eos702\apache-tomcat-5.5.20\webapps\default\WEB-INF\classes)。
- 修改系统配置文件user-config.xml(D:\Primeton\eos702\apps_config\default\config),修改数据源的驱动路径为:com.p6spy.engine.spy.P6SpyDriver。
- 修改spy.properties文件为如下:
################################################################P6Spy Options File #
- See documentation for detailed instructions #
#################################################################
################################################################# - MODULES #
- #
- Modules provide the P6Spy functionality. If a module, such #
- as module_log is commented out, that functionality will not #
- be available. If it is not commented out (if it is active), #
- the functionality will be active. #
- #
- Values set in Modules cannot be reloaded using the #
- reloadproperties variable. Once they are loaded, they remain #
- in memory until the application is restarted. #
- #
#################################################################
module.log=com.p6spy.engine.logging.P6LogFactory
#module.outage=com.p6spy.engine.outage.P6OutageFactory
################################################################# - REALDRIVER(s) #
- #
- In your application server configuration file you replace the #
- "real driver" name with com.p6spy.engine.P6SpyDriver. This is #
- where you put the name of your real driver P6Spy can find and #
- register your real driver to do the database work. #
- #
- If your application uses several drivers specify them in #
- realdriver2, realdriver3. See the documentation for more #
- details. #
- #
- Values set in REALDRIVER(s) cannot be reloaded using the #
- reloadproperties variable. Once they are loaded, they remain #
- in memory until the application is restarted. #
- #
################################################################# - oracle driver
- realdriver=oracle.jdbc.driver.OracleDriver
- mysql Connector/J driver
- realdriver=com.mysql.jdbc.Driver
- informix driver
- realdriver=com.informix.jdbc.IfxDriver
- ibm db2 driver
- realdriver=COM.ibm.db2.jdbc.net.DB2Driver
- the mysql open source driver
realdriver=com.mysql.jdbc.Driver
#specifies another driver to use
realdriver2=
#specifies a third driver to use
realdriver3=
#the DriverManager class sequentially tries every driver that is
#registered to find the right driver. In some instances, it's possible to
#load up the realdriver before the p6spy driver, in which case your connections
#will not get wrapped as the realdriver will "steal" the connection before
#p6spy sees it. Set the following property to "true" to cause p6spy to
#explicitily deregister the realdrivers
deregisterdrivers=false
################################################################ - P6LOG SPECIFIC PROPERTIES #
################################################################ - no properties currently available
################################################################ - EXECUTION THRESHOLD PROPERTIES #
################################################################ - This feature applies to the standard logging of P6Spy. #
- While the standard logging logs out every statement #
- regardless of its execution time, this feature puts a time #
- condition on that logging. Only statements that have taken #
- longer than the time specified (in milliseconds) will be #
- logged. This way it is possible to see only statements that #
- have exceeded some high water mark. #
- This time is reloadable. #
# - executionthreshold=integer time (milliseconds)
#
executionthreshold=
################################################################ - P6OUTAGE SPECIFIC PROPERTIES #
################################################################ - Outage Detection
# - This feature detects long-running statements that may be indicative of
- a database outage problem. If this feature is turned on, it will log any
- statement that surpasses the configurable time boundary during its execution.
- When this feature is enabled, no other statements are logged except the long
- running statements. The interval property is the boundary time set in seconds.
- For example, if this is set to 2, then any statement requiring at least 2
- seconds will be logged. Note that the same statement will continue to be logged
- for as long as it executes. So if the interval is set to 2, and the query takes
- 11 seconds, it will be logged 5 times (at the 2, 4, 6, 8, 10 second intervals).
# - outagedetection=true|false
- outagedetectioninterval=integer time (seconds)
#
outagedetection=false
outagedetectioninterval=
################################################################ - COMMON PROPERTIES #
################################################################ - filter what is logged
filter=false - comma separated list of tables to include when filtering
include = - comma separated list of tables to exclude when filtering
exclude = - sql expression to evaluate if using regex filtering
sqlexpression =
- turn on tracing
autoflush = true - sets the date format using Java's SimpleDateFormat routine
dateformat=yyyy-MM-dd HH:mm:ss:SS
#list of categories to explicitly include
includecategories=
#list of categories to exclude: error, info, batch, debug, statement,
#commit, rollback and result are valid values
excludecategories=info,debug,result,batch
#allows you to use a regex engine or your own matching engine to determine
#which statements to log
#
#stringmatcher=com.p6spy.engine.common.GnuRegexMatcher
#stringmatcher=com.p6spy.engine.common.JakartaRegexMatcher
stringmatcher= - prints a stack trace for every statement logged
stacktrace=false - if stacktrace=true, specifies the stack trace to print
stacktraceclass= - determines if property file should be reloaded
reloadproperties=false - determines how often should be reloaded in seconds
reloadpropertiesinterval=60
#if=true then url must be prefixed with p6spy:
useprefix=false
#specifies the appender to use for logging
#appender=com.p6spy.engine.logging.appender.Log4jLogger
appender=com.p6spy.engine.logging.appender.StdoutLogger
#appender=com.p6spy.engine.logging.appender.FileLogger - name of logfile to use, note Windows users should make sure to use forward slashes in their pathname (e:/test/spy.log) (used for file logger only)
logfile = spy.log - append to the p6spy log file. if this is set to false the
- log file is truncated every time. (file logger only)
append=true
#The following are for log4j logging only
log4j.appender.STDOUT=org.apache.log4j.ConsoleAppender
log4j.appender.STDOUT.layout=org.apache.log4j.PatternLayout
log4j.appender.STDOUT.layout.ConversionPattern=p6spy - %m%n
#log4j.appender.SQLPROFILER_CLIENT=org.apache.log4j.net.SocketAppender
#log4j.appender.SQLPROFILER_CLIENT.RemoteHost=localhost
#log4j.appender.SQLPROFILER_CLIENT.Port=4445
#log4j.appender.SQLPROFILER_CLIENT.LocationInfo=true
log4j.logger.p6spy=INFO,STDOUT
################################################################# - DataSource replacement #
- #
- Replace the real DataSource class in your application server #
- configuration with the name com.p6spy.engine.spy.P6DataSource,#
- then add the JNDI name and class name of the real #
- DataSource here #
- #
- Values set in this item cannot be reloaded using the #
- reloadproperties variable. Once it is loaded, it remains #
- in memory until the application is restarted. #
- #
#################################################################
#realdatasource=/RealMySqlDS
#realdatasourceclass=com.mysql.jdbc.jdbc2.optional.MysqlDataSource
################################################################# - DataSource properties #
- #
- If you are using the DataSource support to intercept calls #
- to a DataSource that requires properties for proper setup, #
- define those properties here. Use name value pairs, separate #
- the name and value with a semicolon, and separate the #
- pairs with commas. #
- #
- The example shown here is for mysql #
- #
#################################################################
#realdatasourceproperties=port;3306,serverName;ibmhost,databaseName;mydb
################################################################# - JNDI DataSource lookup #
- #
- If you are using the DataSource support outside of an app #
- server, you will probably need to define the JNDI Context #
- environment. #
- #
- If the P6Spy code will be executing inside an app server then #
- do not use these properties, and the DataSource lookup will #
- use the naming context defined by the app server. #
- #
- The two standard elements of the naming environment are#
- jndicontextfactory and jndicontextproviderurl. If you need #
- additional elements, use the jndicontextcustom property. #
- You can define multiple properties in jndicontextcustom, #
- in name value pairs. Separate the name and value with a #
- semicolon, and separate the pairs with commas. #
- #
- The example shown here is for a standalone program running on #
- a machine that is also running JBoss, so the JDNI context #
- is configured for JBoss (3.0.4). #
- #
#################################################################
#jndicontextfactory=org.jnp.interfaces.NamingContextFactory
#jndicontextproviderurl=localhost:1099
#jndicontextcustom=java.naming.factory.url.pkgs;org.jboss.nameing:org.jnp.interfaces
#jndicontextfactory=com.ibm.websphere.naming.WsnInitialContextFactory
#jndicontextproviderurl=iiop://localhost:900 - 启动eos服务器,控制台在调用数据库查询的时候会打印如下的内容,即配置成功:
文件中打印
- 复制p6spy.ar,sqlprofiler.jar到web应用的lib目录下(如D:\Primeton\eos702\apache-tomcat-5.5.20\webapps\default\WEB-INF\lib)。
- 复制spy.properties到classpath下(如D:\Primeton\eos702\apache-tomcat-5.5.20\webapps\default\WEB-INF\classes)。
- 修改系统配置文件user-config.xml(D:\Primeton\eos702\apps_config\default\config),修改数据源的驱动路径为:com.p6spy.engine.spy.P6SpyDriver。
- 修改spy.properties文件为如下:
#################################################################
- P6Spy Options File #
- See documentation for detailed instructions #
#################################################################
################################################################# - MODULES #
- #
- Modules provide the P6Spy functionality. If a module, such #
- as module_log is commented out, that functionality will not #
- be available. If it is not commented out (if it is active), #
- the functionality will be active. #
- #
- Values set in Modules cannot be reloaded using the #
- reloadproperties variable. Once they are loaded, they remain #
- in memory until the application is restarted. #
- #
#################################################################
module.log=com.p6spy.engine.logging.P6LogFactory
#module.outage=com.p6spy.engine.outage.P6OutageFactory
################################################################# - REALDRIVER(s) #
- #
- In your application server configuration file you replace the #
- "real driver" name with com.p6spy.engine.P6SpyDriver. This is #
- where you put the name of your real driver P6Spy can find and #
- register your real driver to do the database work. #
- #
- If your application uses several drivers specify them in #
- realdriver2, realdriver3. See the documentation for more #
- details. #
- #
- Values set in REALDRIVER(s) cannot be reloaded using the #
- reloadproperties variable. Once they are loaded, they remain #
- in memory until the application is restarted. #
- #
################################################################# - oracle driver
- realdriver=oracle.jdbc.driver.OracleDriver
- mysql Connector/J driver
- realdriver=com.mysql.jdbc.Driver
- informix driver
- realdriver=com.informix.jdbc.IfxDriver
- ibm db2 driver
- realdriver=COM.ibm.db2.jdbc.net.DB2Driver
- the mysql open source driver
realdriver=com.mysql.jdbc.Driver
#specifies another driver to use
realdriver2=
#specifies a third driver to use
realdriver3=
#the DriverManager class sequentially tries every driver that is
#registered to find the right driver. In some instances, it's possible to
#load up the realdriver before the p6spy driver, in which case your connections
#will not get wrapped as the realdriver will "steal" the connection before
#p6spy sees it. Set the following property to "true" to cause p6spy to
#explicitily deregister the realdrivers
deregisterdrivers=false
################################################################ - P6LOG SPECIFIC PROPERTIES #
################################################################ - no properties currently available
################################################################ - EXECUTION THRESHOLD PROPERTIES #
################################################################ - This feature applies to the standard logging of P6Spy. #
- While the standard logging logs out every statement #
- regardless of its execution time, this feature puts a time #
- condition on that logging. Only statements that have taken #
- longer than the time specified (in milliseconds) will be #
- logged. This way it is possible to see only statements that #
- have exceeded some high water mark. #
- This time is reloadable. #
# - executionthreshold=integer time (milliseconds)
#
executionthreshold=
################################################################ - P6OUTAGE SPECIFIC PROPERTIES #
################################################################ - Outage Detection
# - This feature detects long-running statements that may be indicative of
- a database outage problem. If this feature is turned on, it will log any
- statement that surpasses the configurable time boundary during its execution.
- When this feature is enabled, no other statements are logged except the long
- running statements. The interval property is the boundary time set in seconds.
- For example, if this is set to 2, then any statement requiring at least 2
- seconds will be logged. Note that the same statement will continue to be logged
- for as long as it executes. So if the interval is set to 2, and the query takes
- 11 seconds, it will be logged 5 times (at the 2, 4, 6, 8, 10 second intervals).
# - outagedetection=true|false
- outagedetectioninterval=integer time (seconds)
#
outagedetection=false
outagedetectioninterval=
################################################################ - COMMON PROPERTIES #
################################################################ - filter what is logged
filter=false - comma separated list of tables to include when filtering
include = - comma separated list of tables to exclude when filtering
exclude = - sql expression to evaluate if using regex filtering
sqlexpression = - turn on tracing
autoflush = true - sets the date format using Java's SimpleDateFormat routine
dateformat=yyyy-MM-dd HH:mm:ss:SS
#list of categories to explicitly include
includecategories=
#list of categories to exclude: error, info, batch, debug, statement,
#commit, rollback and result are valid values
excludecategories=info,debug,result,batch
#allows you to use a regex engine or your own matching engine to determine
#which statements to log
#
#stringmatcher=com.p6spy.engine.common.GnuRegexMatcher
#stringmatcher=com.p6spy.engine.common.JakartaRegexMatcher
stringmatcher= - prints a stack trace for every statement logged
stacktrace=false - if stacktrace=true, specifies the stack trace to print
stacktraceclass= - determines if property file should be reloaded
reloadproperties=false - determines how often should be reloaded in seconds
reloadpropertiesinterval=60
#if=true then url must be prefixed with p6spy:
useprefix=false
#specifies the appender to use for logging
#appender=com.p6spy.engine.logging.appender.Log4jLogger
#appender=com.p6spy.engine.logging.appender.StdoutLogger
appender=com.p6spy.engine.logging.appender.FileLogger - name of logfile to use, note Windows users should make sure to use forward slashes in their pathname (e:/test/spy.log) (used for file logger only)
logfile = c:/abc/spy.log - append to the p6spy log file. if this is set to false the
- log file is truncated every time. (file logger only)
append=true
#The following are for log4j logging only
#log4j.appender.STDOUT=org.apache.log4j.ConsoleAppender
#log4j.appender.STDOUT.layout=org.apache.log4j.PatternLayout
#log4j.appender.STDOUT.layout.ConversionPattern=p6spy - %m%n
#log4j.appender.CHAINSAW_CLIENT=org.apache.log4j.net.SocketAppender
#log4j.appender.CHAINSAW_CLIENT.RemoteHost=localhost
#log4j.appender.CHAINSAW_CLIENT.Port=4445
#log4j.appender.CHAINSAW_CLIENT.LocationInfo=true
log4j.logger.p6spy=INFO,STDOUT
################################################################# - DataSource replacement #
- #
- Replace the real DataSource class in your application server #
- configuration with the name com.p6spy.engine.spy.P6DataSource,#
- then add the JNDI name and class name of the real #
- DataSource here #
- #
- Values set in this item cannot be reloaded using the #
- reloadproperties variable. Once it is loaded, it remains #
- in memory until the application is restarted. #
- #
#################################################################
#realdatasource=/RealMySqlDS
#realdatasourceclass=com.mysql.jdbc.jdbc2.optional.MysqlDataSource
################################################################# - DataSource properties #
- #
- If you are using the DataSource support to intercept calls #
- to a DataSource that requires properties for proper setup, #
- define those properties here. Use name value pairs, separate #
- the name and value with a semicolon, and separate the #
- pairs with commas. #
- #
- The example shown here is for mysql #
- #
#################################################################
#realdatasourceproperties=port;3306,serverName;ibmhost,databaseName;mydb
################################################################# - JNDI DataSource lookup #
- #
- If you are using the DataSource support outside of an app #
- server, you will probably need to define the JNDI Context #
- environment. #
- #
- If the P6Spy code will be executing inside an app server then #
- do not use these properties, and the DataSource lookup will #
- use the naming context defined by the app server. #
- #
- The two standard elements of the naming environment are#
- jndicontextfactory and jndicontextproviderurl. If you need #
- additional elements, use the jndicontextcustom property. #
- You can define multiple properties in jndicontextcustom, #
- in name value pairs. Separate the name and value with a #
- semicolon, and separate the pairs with commas. #
- #
- The example shown here is for a standalone program running on #
- a machine that is also running JBoss, so the JDNI context #
- is configured for JBoss (3.0.4). #
- #
#################################################################
#jndicontextfactory=org.jnp.interfaces.NamingContextFactory
#jndicontextproviderurl=localhost:1099
#jndicontextcustom=java.naming.factory.url.pkgs;org.jboss.nameing:org.jnp.interfaces
#jndicontextfactory=com.ibm.websphere.naming.WsnInitialContextFactory
#jndicontextproviderurl=iiop://localhost:900 - 启动前请在指定的路径下新建日志文件(logfile = c:/abc/spy.log),启动EOS服务器会在c:/abc/spy.log看到如下内容,表示配置成功:
图形界面中打印
- 复制p6spy.ar,sqlprofiler.jar到web应用的lib目录下(如D:\Primeton\eos702\apache-tomcat-5.5.20\webapps\default\WEB-INF\lib)。
- 复制spy.properties到classpath下(如D:\Primeton\eos702\apache-tomcat-5.5.20\webapps\default\WEB-INF\classes)。
- 修改系统配置文件user-config.xml(D:\Primeton\eos702\apps_config\default\config),修改数据源的驱动路径为:com.p6spy.engine.spy.P6SpyDriver。
- 修改spy.properties文件为如下:
#################################################################
- P6Spy Options File #
- See documentation for detailed instructions #
#################################################################
################################################################# - MODULES #
- #
- Modules provide the P6Spy functionality. If a module, such #
- as module_log is commented out, that functionality will not #
- be available. If it is not commented out (if it is active), #
- the functionality will be active. #
- #
- Values set in Modules cannot be reloaded using the #
- reloadproperties variable. Once they are loaded, they remain #
- in memory until the application is restarted. #
- #
#################################################################
module.log=com.p6spy.engine.logging.P6LogFactory
#module.outage=com.p6spy.engine.outage.P6OutageFactory
################################################################# - REALDRIVER(s) #
- #
- In your application server configuration file you replace the #
- "real driver" name with com.p6spy.engine.P6SpyDriver. This is #
- where you put the name of your real driver P6Spy can find and #
- register your real driver to do the database work. #
- #
- If your application uses several drivers specify them in #
- realdriver2, realdriver3. See the documentation for more #
- details. #
- #
- Values set in REALDRIVER(s) cannot be reloaded using the #
- reloadproperties variable. Once they are loaded, they remain #
- in memory until the application is restarted. #
- #
################################################################# - oracle driver
- realdriver=oracle.jdbc.driver.OracleDriver
- mysql Connector/J driver
- realdriver=com.mysql.jdbc.Driver
- informix driver
- realdriver=com.informix.jdbc.IfxDriver
- ibm db2 driver
- realdriver=COM.ibm.db2.jdbc.net.DB2Driver
- the mysql open source driver
realdriver=com.mysql.jdbc.Driver
#specifies another driver to use
realdriver2=
#specifies a third driver to use
realdriver3=
#the DriverManager class sequentially tries every driver that is
#registered to find the right driver. In some instances, it's possible to
#load up the realdriver before the p6spy driver, in which case your connections
#will not get wrapped as the realdriver will "steal" the connection before
#p6spy sees it. Set the following property to "true" to cause p6spy to
#explicitily deregister the realdrivers
deregisterdrivers=false
################################################################ - P6LOG SPECIFIC PROPERTIES #
################################################################ - no properties currently available
################################################################ - EXECUTION THRESHOLD PROPERTIES #
################################################################ - This feature applies to the standard logging of P6Spy. #
- While the standard logging logs out every statement #
- regardless of its execution time, this feature puts a time #
- condition on that logging. Only statements that have taken #
- longer than the time specified (in milliseconds) will be #
- logged. This way it is possible to see only statements that #
- have exceeded some high water mark. #
- This time is reloadable. #
# - executionthreshold=integer time (milliseconds)
#
executionthreshold=
################################################################ - P6OUTAGE SPECIFIC PROPERTIES #
################################################################ - Outage Detection
# - This feature detects long-running statements that may be indicative of
- a database outage problem. If this feature is turned on, it will log any
- statement that surpasses the configurable time boundary during its execution.
- When this feature is enabled, no other statements are logged except the long
- running statements. The interval property is the boundary time set in seconds.
- For example, if this is set to 2, then any statement requiring at least 2
- seconds will be logged. Note that the same statement will continue to be logged
- for as long as it executes. So if the interval is set to 2, and the query takes
- 11 seconds, it will be logged 5 times (at the 2, 4, 6, 8, 10 second intervals).
# - outagedetection=true|false
- outagedetectioninterval=integer time (seconds)
#
outagedetection=false
outagedetectioninterval=
################################################################ - COMMON PROPERTIES #
################################################################ - filter what is logged
filter=false - comma separated list of tables to include when filtering
include = - comma separated list of tables to exclude when filtering
exclude = - sql expression to evaluate if using regex filtering
sqlexpression = - turn on tracing
autoflush = true - sets the date format using Java's SimpleDateFormat routine
dateformat=
#list of categories to explicitly include
includecategories=
#list of categories to exclude: error, info, batch, debug, statement,
#commit, rollback and result are valid values
excludecategories=info,debug,result,batch
#allows you to use a regex engine or your own matching engine to determine
#which statements to log
#
#stringmatcher=com.p6spy.engine.common.GnuRegexMatcher
#stringmatcher=com.p6spy.engine.common.JakartaRegexMatcher
stringmatcher= - prints a stack trace for every statement logged
stacktrace=false - if stacktrace=true, specifies the stack trace to print
stacktraceclass= - determines if property file should be reloaded
reloadproperties=false - determines how often should be reloaded in seconds
reloadpropertiesinterval=60
#if=true then url must be prefixed with p6spy:
useprefix=false
#specifies the appender to use for logging
appender=com.p6spy.engine.logging.appender.Log4jLogger
#appender=com.p6spy.engine.logging.appender.StdoutLogger
#appender=com.p6spy.engine.logging.appender.FileLogger - name of logfile to use, note Windows users should make sure to use forward slashes in their pathname (e:/test/spy.log) (used for file logger only)
#logfile = spy.log - append to the p6spy log file. if this is set to false the
- log file is truncated every time. (file logger only)
append=true
#The following are for log4j logging only
#log4j.appender.STDOUT=org.apache.log4j.ConsoleAppender
#log4j.appender.STDOUT.layout=org.apache.log4j.PatternLayout
#log4j.appender.STDOUT.layout.ConversionPattern=p6spy - %m%n
log4j.appender.SQLPROFILER_CLIENT=org.apache.log4j.net.SocketAppender
log4j.appender.SQLPROFILER_CLIENT.RemoteHost=localhost
log4j.appender.SQLPROFILER_CLIENT.Port=4445
log4j.appender.SQLPROFILER_CLIENT.LocationInfo=true
#log4j.logger.p6spy=INFO,STDOUT
log4j.logger.p6spy=DEBUG, SQLPROFILER_CLIENT
################################################################# - DataSource replacement #
- #
- Replace the real DataSource class in your application server #
- configuration with the name com.p6spy.engine.spy.P6DataSource,#
- then add the JNDI name and class name of the real #
- DataSource here #
- #
- Values set in this item cannot be reloaded using the #
- reloadproperties variable. Once it is loaded, it remains #
- in memory until the application is restarted. #
- #
#################################################################
#realdatasource=/RealMySqlDS
#realdatasourceclass=com.mysql.jdbc.jdbc2.optional.MysqlDataSource
################################################################# - DataSource properties #
- #
- If you are using the DataSource support to intercept calls #
- to a DataSource that requires properties for proper setup, #
- define those properties here. Use name value pairs, separate #
- the name and value with a semicolon, and separate the #
- pairs with commas. #
- #
- The example shown here is for mysql #
- #
#################################################################
#realdatasourceproperties=port;3306,serverName;ibmhost,databaseName;mydb
################################################################# - JNDI DataSource lookup #
- #
- If you are using the DataSource support outside of an app #
- server, you will probably need to define the JNDI Context #
- environment. #
- #
- If the P6Spy code will be executing inside an app server then #
- do not use these properties, and the DataSource lookup will #
- use the naming context defined by the app server. #
- #
- The two standard elements of the naming environment are#
- jndicontextfactory and jndicontextproviderurl. If you need #
- additional elements, use the jndicontextcustom property. #
- You can define multiple properties in jndicontextcustom, #
- in name value pairs. Separate the name and value with a #
- semicolon, and separate the pairs with commas. #
- #
- The example shown here is for a standalone program running on #
- a machine that is also running JBoss, so the JDNI context #
- is configured for JBoss (3.0.4). #
- #
#################################################################
#jndicontextfactory=org.jnp.interfaces.NamingContextFactory
#jndicontextproviderurl=localhost:1099
#jndicontextcustom=java.naming.factory.url.pkgs;org.jboss.nameing:org.jnp.interfaces
#jndicontextfactory=com.ibm.websphere.naming.WsnInitialContextFactory
#jndicontextproviderurl=iiop://localhost:900 - 打开命令行窗口,进入sqlprofiler所在的路径,我这里是:D:\Primeton\eos702\apache-tomcat-5.5.20\webapps\default\WEB-INF\lib,执行
java -jar sqlprofiler.jar命令,弹出如下窗口:
所需资源:
转载于:https://www.cnblogs.com/JOEH60/p/8706319.html
EOS下控制台以及图形界面打印sql语句相关推荐
- Ubuntu18.04下无法进入图形界面、无法调整分辨率、无法重装显卡驱动问题的解决方式
Ubuntu18.04下无法进入图形界面.无法调整分辨率.无法重装显卡驱动问题的解决方式 参考文章: (1)Ubuntu18.04下无法进入图形界面.无法调整分辨率.无法重装显卡驱动问题的解决方式 ( ...
- CentOS7下安装GUI图形界面
1.如何在centOS7下安装GUI图形界面 当你安装centOS7服务器版本的时候,系统默认是不会安装GUI的图形界面程序,这个需要手动安装CentOS7 Gnome GUI包. 2.在系统下使用命 ...
- 如何打开电脑c语言窗口,C语言控制台窗口图形界面编程(五). -电脑资料
控制文本的移动是控制台窗口界面编程的一个很重要的功能,有了这个功能我们可以实现界面的滚动, BOOL ScrollConsoleScreenBuffer( //文本移动函数 HANDLE h ...
- Mybatis 开启控制台打印sql语句
概述 springboot+mybatis整合过程中,开启控制台sql语句打印的多种方式: 方法1 在springboot+mybatis整合中,可以将springboot的配置文件添加如下一段也可: ...
- mybatis开启log_mybatis使用spring-druid数据源连接池配置log4j打印sql语句以及开启监控平台...
杂七杂的杂 作为程序员,开发工程中,一套利于测试或者监控的工具很重要,mybatis默认没有提供log4j的打印sql语句的配置. 这对于开发rest服务,提供接口的开发者而言,是在很不好做,再加上m ...
- php打印mysql sql_php的打印sql语句的方法
echo M()->_sql(); 这样就可以调试当前生成的sql语句: //获取指定天的开始时间和结束时间 $datez="2016-05-12"; $t = strtot ...
- Spring boot mybatis 打印SQL语句
有时候从前端传参数到后端查数据库的时候不是很清楚的知道哪些参数能起作用,这个时候就需要简便的sql语句让你知道数据查询的过程中的参数,SQL语句了. 第一种方式,用mybatis集成的方式,在你的ap ...
- windows下bat处理执行Mysql的sql语句
这篇文章主要介绍了windows下bat批处理执行Mysql的sql语句,需要的朋友可以参考下 有时候我们需要用bat来定时执行mysql那么就可以参考下面的代码 直接上代码: @ECHO OFF S ...
- Mysql实现文章查询上一篇和下一篇功能,附sql语句?
mysql实现文章查询上一篇和下一篇功能,附sql语句? 最近在做一个项目用到的文章查询上一篇和下一篇功能,详见:http://www.yifen5.com Mysql实现文章查询上一篇和下一篇功能, ...
最新文章
- Cracking the coding interview--Q2.2
- VS2010在工具栏上创建查找组合框,即:CMFCToolBar中加入CMFCToolBarComboBoxButton
- 分层级联Transformer!苏黎世联邦提出TransCNN: 显著降低了计算/空间复杂度!
- FirstDay@JavaOne2017
- 【机器学习】理解机器学习
- DAG的深度优先搜索标记
- .sh是什么语言_为什么《山海经·中次二经》中,把“西王母”叫做“马腹”?...
- Axure高保真智慧校园管理系统/校园管理/人事管理/学籍管理/教学管理/流程审批/备课管理/考务管理/成绩管理/排课管理/选课管理/选课系统/调课申请/教师考评管理/web端管理系统
- 《jBPM4工作流应用开发指南》这本书
- 181113每日一句
- python3.5------用户的三次验证
- 小凡模拟器(DynamipsGUI)打不开的简单解决方法
- SEO优化与网站浏览量提升
- Python实现最近邻nearest、双线性bilinear、双三次bicubic插值
- 入职阿里两年的工作总结
- 【MySQL学习】数据库问题及着重点汇总
- 清华计算机考研报考人数,2020部分院校考研报考人数统计
- VPS云主机怎么用?
- 问卷星破除输入框粘贴限制的两种方法
- 可控硅整流电路中的波形系数