简体   繁体   English

创建JDBC连接池仅在GlassFish上为Oracle接受一个操作数

[英]Create JDBC Connection pool only accepts one operand for Oracle on GlassFish

after to fail to create a jdbc connection pool through glassfish admin console i tried to create a JDBC Connection Pool for Oracle on GlassFish through the Windows command line by typing in this command 在无法通过glassfish管理控制台创建jdbc连接池后,我尝试通过在Windows命令行中键入以下命令来在GlassFish上为Oracle创建JDBC连接池

 create-jdbc-connection-pool 
 –datasourceclassname oracle.jdbc.pool.OracleDataSource 
 –restype javax.sql.DataSource 
 –property user=user1:password=topSecret:URL="jdbc:oracle:thin:@localhost:1521:XE" MyExampleDB

I get the following error message: 我收到以下错误消息:

观看这张图片

Please help? 请帮忙? Is it even possible to create a JDBC Connection Pool with GlassFish? 甚至可以使用GlassFish创建JDBC连接池吗? Or better to migrate to WildFly? 还是更好地迁移到WildFly?

yes, it's possible to create JDBC Pool in glassfish 是的,可以在glassfish中创建JDBC Pool

I'm not sure about command line syntax, but via admin console it pretty easy 我不确定命令行语法,但是通过管理控制台很容易

see admin console: http://localhost:4848/common/index.jsf Resources -> JDBC - > JDBC Connection Pools 请参阅管理控制台: http:// localhost:4848 / common / index.jsf资源-> JDBC-> JDBC连接池

upd: UPD:

command line example 命令行示例

asadmin create-jdbc-connection-pool 
--restype=java.sql.Driver
--driverclassname=oracle.jdbc.pool.OracleDataSource
--property user=myuser:password=mypassword:url='jdbc:oracle:thin:@localhost:1521:xe'
test_ora_pool

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM