|
|
|
@ -14,11 +14,12 @@ import java.sql.SQLException;
|
|
|
|
* @description:
|
|
|
|
* @description:
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Slf4j
|
|
|
|
@Slf4j
|
|
|
|
public class Test240918 {
|
|
|
|
public class GoldenDBTest {
|
|
|
|
|
|
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
public static void main(String[] args) {
|
|
|
|
String driverName = "com.goldendb.jdbc.Driver";
|
|
|
|
String driverName = "com.goldendb.jdbc.Driver";
|
|
|
|
String url = "jdbc:goldendb:loadbalance://10.115.255.4:8880,10.115.255.4:8881,10.115.255.4:8882/nmgjtjt?characterEncoding=gbk&allowMultiQueries=true&rewriteBatchedStatements=true&useCursorFetch=false&cachePrepStmts=true&prepStmtCacheSqlLimit=2000&prepStmtCacheSize=10240&useSSL=false&isConnectionLevel=true&connectTimeout=3600000&socketTimeout=3600000&autoReconnect=true&oracleMode=true&noAccessToProcedureBodies=true&useOldAliasMetadataBehavior=true";
|
|
|
|
//String url = "jdbc:goldendb:loadbalance://10.115.255.4:8880,10.115.255.4:8881,10.115.255.4:8882/nmgjtjt?characterEncoding=gbk&allowMultiQueries=true&rewriteBatchedStatements=true&useCursorFetch=false&cachePrepStmts=true&prepStmtCacheSqlLimit=2000&prepStmtCacheSize=10240&useSSL=false&isConnectionLevel=true&connectTimeout=3600000&socketTimeout=3600000&autoReconnect=true&oracleMode=true&noAccessToProcedureBodies=true&useOldAliasMetadataBehavior=true";
|
|
|
|
|
|
|
|
String url = "jdbc:goldendb:loadbalance://10.115.255.4:8880/nmgjtjt?characterEncoding=gbk&allowMultiQueries=true&rewriteBatchedStatements=true&useCursorFetch=false&cachePrepStmts=true&prepStmtCacheSqlLimit=2000&prepStmtCacheSize=10240&useSSL=false&isConnectionLevel=true&connectTimeout=3600000&socketTimeout=3600000&autoReconnect=true&oracleMode=true&noAccessToProcedureBodies=true&useOldAliasMetadataBehavior=true";
|
|
|
|
|
|
|
|
|
|
|
|
String username = "nmgjtjt";
|
|
|
|
String username = "nmgjtjt";
|
|
|
|
String password = "sysadmin";
|
|
|
|
String password = "sysadmin";
|