Problem in jdbc connecting as sysdba
Dear ORACians,
i am using database 8.1.5 and jdbc 8.1.5 and jdk 1.5.
my problem: i want to connect to the database as sysdba through jdbc.
oracle is telling that to connect to the db as sysdba we have to use properties file. i did the same. It is connecting to the db as normal mode not as sysdba mode why???
Actual code is:
Properties conProp = new Properties();
conProp.put("user", tf[2].getText());
conProp.put("password", String.valueOf(cpwd.getPassword()));
conProp.put("internal_logon", "SYSDBA");
try{
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
String conUrl ="jdbc:oracle:thin:@"+tf[0].getText()+":"+tf[1].getText()+":"+tf[3].getText();
conn=DriverManager.getConnection(conUrl,conProp);
stat=conn.createStatement();
JOptionPane.showMessageDialog(f,"Connection Estblished...");
jdcn.dispose();
}catch(Exception w){
JOptionPane.showMessageDialog(f,String.valueOf(w));
i hope ORACians will guide me to develop my apps in proper direction.
urs
selvan
Thanks for ur reply but when i add "as sydba" with password property it gives error:
Properties conProp = new Properties();
conProp.put("user", tf[2].getText());
conProp.put("password", String.valueOf(cpwd.getPassword())+"AS SYSDBA");
the error is :
java.sql.SQLException: ORA-01017 invalid username/password; logon denied
selvan
Similar Messages
-
Problem with JDBC Connection for HDB hanadb 02
Hi folks,
Ok I have an instance based on the 7.4 SP5 HANA CAL solution.
But when I suspend and restart the R3 system doesn't start again.
I've followed the instructions in the user guide and can access the backend instance and see that for HDB GetProcessList everything is GREEN, running
while for A4H GetProcessList everything is GREY, stopped
When I try to start the A4H instance I get
Checking HDB database
Database is not available via R3trans
Database must be started first
The messages I found on SCN suggested this might be a license problem with the HANA database, so I tried to follow the install license instructions for the HANA database via the HANA studio, but when I try to open the HDB(SYSTEM) > Properties > Licence, I then get the messages
Error while reading the licence information from system HDB hanadb 02
Reason:
Cannot retrieve JDBC Connection for HDB hanadb 02
So what do I try now?
Any suggestions?
Rgds,
JocelynThanks Ivanka! That sorted it.
For the benefit of others...the error message was found in the server log files
/var/log/applianceagent.log
/var/log/appliancedeploy.log -
Problem in JDBC connection through tugladad
During run time, i am getting this problem
Exception in thread "main" java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
My program is
import java.sql.*;
public class DBOpp
public static void main(String args []) throws Exception{
class.forName("oracle.jdbc.driver.OracleDriver");
Connection con=DriverManager.getConnection
("jdbc"oracle:thin:@localhost:1251:myoracle", "scott","tiger");
System.out.println("Connection established ");
Statement stmt=con.createStatement();
String str1="insert into abc values ( 145,'wersd','GHTYR');
stmt.executeUpdate(str1);
con.close();
I am using JDK 1.5.0.2 and oracle 9i ( server ).
JDK1.5.0.2 is in c drive and oracle is in E drive.
I would like to know how i can solve this problem.
Thanks & Regards
Dipak4948ec00-1a38-46d9-bb14-0faf6b9c4a49 wrote:
During run time, i am getting this problem
Exception in thread "main" java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
My program is
import java.sql.*;
public class DBOpp
public static void main(String args []) throws Exception{
class.forName("oracle.jdbc.driver.OracleDriver");
Connection con=DriverManager.getConnection
("jdbc"oracle:thin:@localhost:1251:myoracle", "scott","tiger");
System.out.println("Connection established ");
Statement stmt=con.createStatement();
String str1="insert into abc values ( 145,'wersd','GHTYR');
stmt.executeUpdate(str1);
con.close();
I am using JDK 1.5.0.2 and oracle 9i ( server ).
JDK1.5.0.2 is in c drive and oracle is in E drive.
I would like to know how i can solve this problem.
Thanks & Regards
Dipak
Put the JDBC jar file in your classpath. Don't know if the new 12c driver still supports 9i but the 11.2 driver does.
You can download the Oracle JDBC jar files here:
http://www.oracle.com/technetwork/database/features/jdbc/index-091264.html
Also see the JDBC FAQ for info about the various combinations of database, JDK and JDBC drivers supported
http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-faq-090281.html#02_06
Why are you still using such an ancient and unsupported database? -
Problem in jdbc connection to sql server
I hv some problem in connection. i am not sure hv to use this line of code. My server name is YC\YC and i m using window autentic usr name and passwd. How to i solve the problem? Thanks!
Connection connection = DriverManager.getConnection(
"jdbc:microsoft:sqlserver://<Host>:1433",<"UID>","<PWD>");Is it means that add a new user?
Now i add a new user name "boon" passwd "abc123"
SQL service manager there state my server running is YC\YC, is it that one my server name and instance?
Connection connection = DriverManager.getConnection(
"jdbc:microsoft:sqlserver://YC\\YC:1433", "boon", "abc123"); -
Problem in Jdbc connectivity with Oracle8i!!
can you tell me,
how can i connect jdbc with oracle 8i.
i written a connectivity code with oci8.
here is that two lines.
Class.forName("oracle.jdbc.driver.OracleDriver");
m_conn = DriverManager.getConnection("jdbc:oracle:oci8:@qit-uq-cbiw_orcl","scott","tiger");
i was able to compile the script.But when i try to run this with jsp,then it was showing me an error saying "no driver specified".
pls help me to sort out this problem.
thanx
SR-
shiju.dreamcenter.net
nullShiju,
You need to include the port and SID in your connect string. So if your port is 1521 and your SID is ORCL, your connect string becomes
"jdbc:oracle:oci8:@qit-uq-cbiw_orcl:1521:ORCL"
Blaise
null -
how to connect to oracle as sysdba via jython?
below is the code
please help
from com.ziclix.python.sql import zxJDBC
import java.lang as lang
import java.util.Properties
Properties props=new Properties()
props.put("user","sys")
props.put("password","sys")
props.put("internal_logon","sysdba")
db =zxJDBC.connect('jdbc:oracle:thin:@10.106.253.71:1521:dwdb',props,'oracle.jdbc.driver.OracleDriver')
print 'connection ok'
Result:
Traceback (innermost last):
(no code object) at line 0
File "post.py", line 5
Properties props=new Properties()
^
SyntaxError: invalid syntax
Thanks
Sakthivel KHi Guru
I tried but it returned with invalid login.
I am able to login as normal user but couldn't able to logon as sysdba.
help me....
Program:
import java.sql as jsql
import java.lang as lang
driver, url, user, passwd = (
"oracle.jdbc.driver.OracleDriver",
"jdbc:oracle:thin:@10.106.253.71:1521:dwdb",
"sys as sysdba",
"sys")
lang.Class.forName(driver)
c = jsql.DriverManager.getConnection(url,user,passwd)
print 'connection ok'
Result:
java.sql.SQLException: ORA-01017: invalid username/password; logon denied
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
:125)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:277)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:272)
at oracle.jdbc.driver.T4CTTIoauthenticate.receiveOauth(T4CTTIoauthentica
te.java:647)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:308)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:
361)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:151)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtensio
n.java:32)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:595)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java
at org.python.core.PyObject.__call__(PyObject.java)
at org.python.core.PyObject.invoke(PyObject.java)
at org.python.pycode._pyx0.f$0(324.py:9)
at org.python.pycode._pyx0.call_function(324.py)
at org.python.core.PyTableCode.call(PyTableCode.java)
at org.python.core.PyCode.call(PyCode.java)
at org.python.core.Py.runCode(Py.java)
at org.python.core.__builtin__.execfile_flags(__builtin__.java)
at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java)
at org.python.util.jython.main(jython.java)
java.sql.SQLException: java.sql.SQLException: ORA-01017: invalid username/passwo
rd; logon denied -
Problem in - JDBC Connection for MS-Access in JSP
Hi,
I am using Three tier Architecture. that is MS-Access as a Database, JAva Web Server as a server and HTML as a frontend.
I always getting error during the execution of JSP code.
Coding in JSP:
<%@ page import="java.sql.*"%>
<%
java.sql.Connection con;
java.sql.PreparedStatement pstmt;
java.sql.ResultSet rst;
String sDBQ= application.getRealPath("dem.mdb");
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb)};DBQ="+sDBQ);
pstmt = con.prepareStatement("select * from employee");
rst = pstmt.executeQuery();
if (rst.next())
String s1=rst.getString("EmployeeId");
String s2=rst.getString("EmployeeName");
out.println(s1);
out.println(s2);
catch(Exception e)
out.println("Error "+e);
%>
I'm getting this error
java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name too long
Please anyone rectify ithi
[Microsoft][ODBC Driver Manager] Data source name(dsn)
con=DriverManager.getConnection("jdbc:odbc:dsn);
first you open the control panel --open ODBCdatasource--user dsn--click add--and select MS-Access--click finish--one window is come --type "dsn"--then click ok --ok .then try it it will come.(before you doing program you can set this) -
Problem in jdbc connect thru oracle
hi all
i hv installed oracle 8i on win2k
i wanna connect thru jdbc
but i am getting error below
i donno whr i got struck?
plz help me
thnx in advance
bye
////////// details ///////////////////////
import java.sql.*;
///win2000,oracle 8i
/// try to fix whr i hv done mistake
import java.io.*;
class JDBC1
public static void main(String[] args)
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver ");
//// i tried all below connections
Connection cn=DriverManager.getConnection("jdbc:odbc:santhu:PLSExtProc","scott","tiger"); /// oracle_sid=santhu hv given
//Connection cn= DriverManager.getConnection("jdbc:odbc:PLSExtProc","scott","tiger"); /// PLSExtProc it is given in tnsnames.ora file
//Connection cn=DriverManager.getConnection("jdbc:odbc:oracle:PLSExtProc","scott","tiger"); /// driver name i hv given as oracle and one more as santhu--both for oracle driver
Statement st=cn.createStatement();
ResultSet rs=st.executeQuery("select * from dept");
int dno;
String dname;
while(rs.next())
dno=rs.getInt("deptno");
dname=rs.getString("dname");
System.out.println(dno+dname);
catch(Exception e)
System.out.println(e);
/// compiled successfully
/// but runtime error::SQLException---data source name not found no default driver specified
//// saying tns-12538 error
/// tnsping-----error is coming.........
/// lsnrctl start --------is not working
//// lsnrctl status ------is also not working
/// in services i hv set oraclelistener to auotmatic start
/// in net8 configuration assistent everything is ok
/// try to do it today...ok na
// i put classpath to home dir of oracle
///////////listener.ora file //////////////////////////////
# LISTENER.ORA Network Configuration File: D:\Oracle\Ora81\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = Vaman)(PORT = 1521))
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = vaman)(PORT = 2481))
(PROTOCOL_STACK =
(PRESENTATION = GIOP)
(SESSION = RAW)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = D:\Oracle\Ora81)
(PROGRAM = extproc)
(SID_DESC =
(GLOBAL_DBNAME = santhu)
(ORACLE_HOME = D:\Oracle\Ora81)
(SID_NAME = santhu)
/////////////////tnsnames.ora file///////////////////
# LISTENER.ORA Network Configuration File: D:\Oracle\Ora81\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = Vaman)(PORT = 1521))
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = vaman)(PORT = 2481))
(PROTOCOL_STACK =
(PRESENTATION = GIOP)
(SESSION = RAW)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = D:\Oracle\Ora81)
(PROGRAM = extproc)
(SID_DESC =
(GLOBAL_DBNAME = santhu)
(ORACLE_HOME = D:\Oracle\Ora81)
(SID_NAME = santhu)
////////////////////////////////////////////////Class.forName("oracle.jdbc.OracleDriver");
Connection con = DriverManager.getConnection("jdbc:oracle:thin:@<hostname>:1521:<database name>", "scott", "tiger");
You can find OracleDriver in classes12.jar (<ORA_HOME>/jdbc).
Check your tnsnames.ora file for <hostname> and <database name>. For example, if you had a following entry in tnsnames.ora file:
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = SOMEHOST)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
you would write:
Connection con = DriverManager.getConnection("jdbc:oracle:thin:@SOMEHOST:1521:XE", "scott", "tiger"); -
Problem in JDBC connection to database
Hi,
I m new to JDBC. I want to retrive some data from the database in my JSP page. How do i do it ??? I written a following code,
String custid = null;
String custname = null;
String custref = null;
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@<server>:1521:yoda","scott","tiger");
Statement stmt = conn.createStatement();
String strCustomer = "select customer_id from fmm_user_access where login_id = '" + username + "';";
ResultSet rset = stmt.executeQuery(strCustomer);
while (rset.next())
custid = rset.getString(1);
custref = "1."+custid;
strCustomer = "select full_name from fmm_ofin_customers where customer_ref ='"+ custref + "'";
ResultSet rset1 = stmt.executeQuery(strCustomer);
while (rset1.next())
custname = rset1.getString(1);
conn.close();
} //try
catch (Exception e) {e.getMessage();}
Are there any setup issues which i m missing, like setting some paths. Please advise.
Thanks in advance
UnmeshHi Unmesh,
I did not see any code in your JSP page which is printing the output of your query.
You may want to modify your JSP to display the results like this
<%@ page import="java.sql.*" %>
<HTML><BODY>
<%
strCustomer = "select full_name from fmm_ofin_customers where customer_ref ='"+ custref + "'";
ResultSet rset1 = stmt.executeQuery(strCustomer);
while (rset1.next())
custname = rset1.getString(1); %>
Customer Name is <%=custname%>
<BR>
<% }
conn.close();
........... %>
</BODY></HTML>
And you will need to ensure that the JDBC drivers( classes12.jar or ojdbc14.jar) are in your classpath.
A couple of other observations I have about your code is
1. You must explicitly close the ResultSet and Statement objects after you finish using them: rset.close();stmt.close()
2. Try using PreparedStatements for your insert statements which allows you to define bind parameters. In your case -
PreparedStatement pstmt =
conn.prepareStatement ("select customer_id from fmm_user_access where login_id = ?");
pstmt.setString (1, userName);
You can refer to JDBC samples on OTN for more information : http://otn.oracle.com/sample_code/tech/java/sqlj_jdbc/content.html
Hope this helps.
Sujatha. -
I'am using 9iAS R2 and I have a entity bean using a DataSource with out any problem, but I also have a client program using the same datasource. I can lookup the datasource without any problems, I get a connection, but when I try to createStatement() on the connection I get an Exception see below.
I hope some one can help me!
Regards
Morten
java.lang.NullPointerException
at com.evermind.sql.OrionPooledDataSource.addUsedConnection(OrionPooledDataSource.java:539)
at com.evermind.sql.OrionPooledDataSource.getPooledInstance(OrionPooledDataSource.java:290)
at com.evermind.sql.OrionCMTConnection.setConnection(OrionCMTConnection.java:189)
at com.evermind.sql.OrionCMTConnection.intercept(OrionCMTConnection.java:127)
at com.evermind.sql.FilterConnection.getMetaData(FilterConnection.java:75)
at com.evermind.sql.FilterConnection.getMetaData(FilterConnection.java:76)
at dk.modulus.regelmaskine.RegelParamDAO.getRegelParametre(RegelParamDAO.java:33)Hi Morten,
Have you tried running OC4J in "debug" mode? This web page has more details:
http://kb.atlassian.com/content/atlassian/howto/orionproperties.jsp
You may also like to try "P6Spy"
http://www.theserverside.com/home/thread.jsp?thread_id=8337
And here is a web page from Oracle's "Technet" site regarding debugging
OC4J:
http://otn.oracle.com/tech/java/oc4j/htdocs/oc4j-logging-debugging-technote.html
Hope this helps you.
Good Luck,
Avi. -
Problems with JDBC Connection, invalid Oracle-URL
H,
i can't use a JBDC Connection. Maybee i tried a wrong oracle url syntac
This Url jdbc:oracle:thin@bilent:1521:bilent throws an error
java.sql.SQLException: invalid Oracle-URL
The following parameter worked
Driver :thin
hostname:bilent
JDBC Port:1521
SID:bilent
What is wrong in the oracle url?
THANKSHi,
You are missing ":" after thin and host name. Your URL should be
jdbc:oracle:thin:@bilent:1521:bilent-Arun -
Problem wtih JDBC Connecting in jsf program.
Hey guys. I have a web app setup thanks to some of you guys on here. I'm using mysql jdbc access for login. I'm using the connection pool and resource for connectivity.
Basically what I'm asking is can I use to DataSource variables on the same page. The reason I'm asking that is. I can connect fine with the login code.
* To change this template, choose Tools | Templates
* and open the template in the editor.
package beans;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.annotation.Resource;
import javax.faces.context.FacesContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import javax.sql.DataSource;
* @author Drew
public class Login {
@Resource(name = "jdbc/must2")
private DataSource ds;
private String email;
private String password;
* @return the email
public String getEmail() {
return email;
* @param email the email to set
public void setEmail(String email) {
this.email = email;
* @return the password
public String getPassword() {
return password;
* @param password the password to set
public void setPassword(String password) {
this.password = password;
public String VerifyUser() throws SQLException {
if (this.email.equals("") || this.password.equals("")) {
return "fail";
} else {
if (ds == null) {
throw new SQLException("No data source");
Connection conn = ds.getConnection();
if (conn == null) {
throw new SQLException("No connection");
try {
PreparedStatement passwordQuery = conn.prepareStatement("SELECT password from user WHERE email = ?");
passwordQuery.setString(1, this.email);
ResultSet result = passwordQuery.executeQuery();
result.next();
String storedPassword = result.getString("password");
System.out.println(storedPassword);
if (this.password.equals(storedPassword)) {
FacesContext context = FacesContext.getCurrentInstance();
HttpServletRequest request = (HttpServletRequest) context.getExternalContext().getRequest();
HttpSession httpSession = request.getSession();
httpSession.setAttribute("login", "Login");
System.out.println("Success");
return "success";
} else {
return "fail";
} finally {
conn.close();
System.out.println("Login connection closed");
}Ok now I have some separate code that access the same database but fills a table on the same login.jspx page.
package page;
import java.util.ArrayList;
import classes.Line;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.annotation.Resource;
import javax.sql.DataSource;
public class LineStatus {
@Resource(name = "jdbc/must2")
private DataSource ds;
private ArrayList line = new ArrayList();
public LineStatus() {
try {
GetLineStatus();
} catch (SQLException ex) {
Logger.getLogger(LineStatus.class.getName()).log(Level.SEVERE, null, ex);
public void GetLineStatus() throws SQLException {
if (ds == null) {
throw new SQLException("No data source");
Connection conn = ds.getConnection();
if (conn == null) {
throw new SQLException("No connection");
try {
PreparedStatement passwordQuery = conn.prepareStatement("SELECT DISTINCT pkg_line_id,shortname, " +
"line_status FROM pkg_line_tree LEFT JOIN pkg_line using (pkg_line_id) " +
"WHERE tree_id = ? ORDER by shortname");
passwordQuery.setInt(1, 3075);
System.out.println(passwordQuery);
ResultSet result = passwordQuery.executeQuery();
while (result.next()) {
line.add(new Line(58285, "Line 1", "Test", 43500, 21695));
} finally {
conn.close();
public ArrayList getLine() {
return line;
}There is nothing wrong with the code. I checked it over and over. Even replaced this code with my same login code that works. Every time I run the page I get "no data source". Obviously becasue Datasource is null. I have setup to catch the error. I'm guessing that the two backing beans can't access the same data base on the same page. I'm not sure though. I need to figure out how to get around this. Thanks for any help guys.
Edited by: dothedru22 on Oct 16, 2009 7:44 AMAnybody know? I've tried everything I can think of.
-
Oracle keeping JDBC connections ...
All
has anyone come got any ideas on this:
WLS6.0 sp2 on Win2k
Oracle v8
JDBC connection pool configured with 10 min connections / 50 max conns (in
increments of 5). Shrinking is active, and is set to run every 15mins.
What were seeing is that Oracle doesnt let go of any of the JDBC
connections. It literally keeps them for days on end, until we have to
manually kill them because theyre causing other DB problems.
any ideas ?
tks
willHello, I am using ALUI G6 (former Plumtree) and I am experiencing the same problem.
JDBC connections are not released and we reach the connection max number easily.
Please, can somebody help us ?
Thanks for your help,
Kind regards -
WLS 10.0 JDBC connection pool shrink not working
We seem to be having a problem with jdbc connection pools not shrinking. In the connection pool properties in the WLS console we have:
Initial Capacity 4
Maximum Capacity 15
Shrink Frequency 900
However when I look at the underlying xml config file (see below) the last two values above are not present in the config!
Any ideas what is going on here?
thankyou,
Chris
<?xml version='1.0' encoding='UTF-8'?>
<jdbc-data-source xmlns="http://www.bea.com/ns/weblogic/90" xmlns:sec="http://www.bea.com/ns/weblogic/90/security" xmlns
:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wls="http://www.bea.com/ns/weblogic/90/security/wls" xsi:schemaLo
cation="http://www.bea.com/ns/weblogic/920 http://www.bea.com/ns/weblogic/920.xsd">
<name>mdmrDataSource</name>
<jdbc-driver-params>
<url>jdbc:oracle:thin:@(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = xxxrac01-vip.nzlxxx01.com) (PORT = 1521))
(ADDRESS = (PROTOCOL = TCP) (HOST = xxxrac02-vip.nzlxxx01.com) (PORT = 1521)) (LOAD_BALANCE = yes) (CONNECT_DATA =(SERVE
R = DEDICATED) (SERVICE_NAME = xxxrac.nzlami01.com)))</url>
<driver-name>oracle.jdbc.pool.OracleDataSource</driver-name>
<properties>
<property>
<name>user</name>
<value>xxx_comms</value>
</property>
<property>
<name>fastConnectionFailoverEnabled</name>
<value>true</value>
</property>
<property>
<name>implicitCachingEnabled</name>
<value>true</value>
</property>
<property>
<name>connectionCachingEnabled</name>
<value>true</value>
</property>
<property>
<name>ONSConfiguration</name>
<value>nodes=xxxrac1:6251,xxxrac2:6251</value>
</property>
</properties>
<password-encrypted>xxx</password-encrypted>
</jdbc-driver-params>
<jdbc-connection-pool-params>
<initial-capacity>4</initial-capacity>
<test-connections-on-reserve>true</test-connections-on-reserve>
<test-table-name>SQL SELECT 1 FROM DUAL</test-table-name>
</jdbc-connection-pool-params>
<jdbc-data-source-params>
<jndi-name>jdbc/XXXX</jndi-name>
<global-transactions-protocol>None</global-transactions-protocol>
</jdbc-data-source-params>
</jdbc-data-source>You are right that the XML seems to lask those other settings... Did you
sae those settings from the console?
This is what's in one of mine....
<jdbc-connection-pool-params>
<initial-capacity>0</initial-capacity>
<max-capacity>300</max-capacity>
<shrink-frequency-seconds>900</shrink-frequency-seconds> -
Protocol violation error in jdbc connection
Hi all
I am facing a problem with jdbc connection to oracle DB.
My code works sometimes, and sometimes it throws one (or more) of the following SQLExceptions:
protocol violation
Bigger type length than Maximum.
The same code works in munerous locations with numerous DBs.
Th DB version is 10.2.0.4
and I downloaded the latest ojdbc14.jar driver
I would appreciate any assistance
Thanks
RonHi
Thanks for replying
I looked at the error code and the object types, but it fails when calling next in the result set.
And I did not set the object types at that point
The object type is set only after running get functions (For example resultSet.getInt())
Also, the same code works in many other locations and even in that environment it succeeds sometimes.
Also, sometimes it fails only with the Protocol violation error and sometimes with both errors.
Any ideas?
Maybe you are looking for
-
I noticed that the updates installed from the update center do not install on OS X. If I run the update center, it downloads everything and appears to install it all, but after I restart Creator and go to the update center again, all the same updates
-
High and low sound in the final output to DVD.
At playback, the audio at the DVD menu is loud compared to the movie on the DVD. In FCP, I am staying below the 0dB with the audio so that it doesn't become distorted. In DVDSP, I can't control the volume. The menu audio is way too loud. its like tha
-
CS5: Where is Help?
Just got CS5. When I go to Help menu, all I get is Mac Help, no Photoshop Help. Yes, I am in PS, and they are the PS menus.
-
Executing a SQLScript in SqlPlus Windows
Hi, i have oracle sql*plus version 9.0.1.0.0 when i try SQL>@C:/ARORA/ANALYTICS/DISTRIBUTION/DATABASE/WIN_ORCL/ARORACONNECT/cr_aroraconnect_jcd_tables.sql It either hangs..... or it gives Dr.Watson Error. But when i reduce the total length of the com
-
Re: Itunes Music Library
I have lost all my music on itunes after disconnecting my ipod. The music is still on my ipod but not mac itunes library. Can I either restore the library or reconnect ipod and sync music back over?