8.1.6 thin driver and Netscape plug in 1.2.2
Hi.
I'm trying to use the latest Oracle thin driver in an applet
using Netscapes plug-in 1.2.2.
I am getting the error below when I call
DriverManager.getConnection
The error seems to be a security error.
The code and driver works fine in a standalone application under
JDK 1.2.
The database I am connecting to is the same machine as the web
server and I am not using a firewall so there should be no
security violations. I have tried using both DNS name and IP
address for the target machine but I always get the same error.
Has anyone been able to use the 8.1.6 thin driver in an applet on
Netscape?
Thanks in advance, Sean.
-------Error message ------
java.lang.ExceptionInInitializerError:
java.security.AccessControlException: access denied
(java.util.PropertyPermission JdbcTrace read)
at
java.security.AccessControlContext.checkPermission(Unknown
Source)
at java.security.AccessController.checkPermission(Unknown
Source)
at java.lang.SecurityManager.checkPermission(Unknown
Source)
at java.lang.SecurityManager.checkPropertyAccess(Unknown
Source)
at java.lang.System.getProperty(Unknown Source)
at
oracle.jdbc.driver.OracleLog.<clinit>(OracleLog.java:604)
at
oracle.jdbc.dbaccess.DBConversion.<init>(DBConversion.java:87)
at
oracle.jdbc.ttc7.TTCConversion.<init>(TTCConversion.java:75)
at
oracle.jdbc.ttc7.TTC7Protocol.connect(TTC7Protocol.java:1126)
at
oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:182)
at
oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:
156)
at
oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDrive
r.java:231)
at
oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:208)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at JDBCTest.init(JDBCTest.java:10)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
null
It appears that your may be turning tracing on which is in turn requiring access to properties on the local file system. Use JDK 1.2.2's policytool to add a policy for either the Codebase, or sign your applet and then by Codebase and Sign By, adding a PropertyPermission, A Target of *, and an Action of read.
Similar Messages
-
Can I use a plug in USB camera reader to have a load of movies etc on an external hard drive and then plug and play so to speak? I'm off on holiday and haven't got the capacity on the iPad to have everything on that I'd like for the kids.
So basically I want a hard drive with X amount of films etc on. Can I then watch them on my iPad?
Hope this makes sense.External HDD won't work.
You need something like this:
http://www.seagate.com/goflexsatellite/ -
Problem w/ 8.1.6 Thin Driver and Oracle 8.0.5
I am attempting to connect to two data hosts.
One is Oracle 8.1.6, the other is Oracle 8.0.5. The DB Admin insists the user name and passwords are the same for both.
I am using the v8.1.6 100% Java thin driver under both JDK v1.2 and v1.3. My OS is Windows2K Professional.
I can always connect to the 8.1.6 database but never to the 8.0.5 database under any circumstances. The error I receive when attempting to connect to the 8.0.5 database is:
java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=134238208)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
Does any one have some insights here?
My test code fragment is as follows:
try{
Class.forName( "oracle.jdbc.driver.OracleDriver" ).newInstance();
String dbURL = "";
//dbURL = "jdbc:oracle:thin:@host1:1521:data_source_8_1_6";
dbURL = "jdbc:oracle:thin:@host2:1521:data_source_8_0_5";
Connection con = DriverManager.getConnection(dbURL, "test_user", "test_user");
java.sql.Statement stmt = con.createStatement();
String sq1String = "SELECT * FROM DUAL";
java.sql.ResultSet res = stmt.executeQuery(sq1String);
int rows = 0;
while(res.next()) {
rows++;
System.out.println("rows = " + rows);
catch(Exception e) {
System.out.println(e);
nulltnsping is working correctly. We can ping the host and it is listening on port 1521. Likewise, there are other applications inhouse using this datasource.
Since first posting my question, I have also tried running the test program on WinNT. Same problem arises.
Other suggestions? -
Oracle JDBC Thin Driver and Firewall Problem
Hi!
We have Oracle 8.1.5 and Websphere App Server. There is a
firewall between the two. A servlet creates a connection pool
(not that of Wesphere's). The frontend is JSP/HTML (no applets).
The servlet uses the Oracle JDBC Thin Driver for DB Connections.
The problem is - Once the connection is freed, the connection
pool is not being able to retrieve it and hence it created
another one, thus reaching the max. # of connections and the
system hangs. Restarting the DB service flushes the connection
and the application starts running again...
There was a similar problem discussed in this forums long ago. I
have not yet tried mentioning the firwall port and IP in the
connection string. But apart from that, is there any other
setting I need to do (on firewall or for the connectionstring)
to deal with this problem?
Someone had suggested to punch a hole in the firewall for the DB
port - but we can not really do that in the current scenario...
I would appreciate if anyone could share their experience
regarding how they resolved this issue.
Thanks in advance,
Vijaya.One more question -
Can we use Oracle JDBC OCI driver? We do not have any appletes...
Does it have firewall issues too? Is there any other driver that
we can use?
Thanks,
Vijaya. -
JDBC Thin driver and Oracle names server
Hi
Any managed to get the Thin driver to user the Names Server aliases, ie I want to connect to service xxx like
jdbc:oracle:thin:@xxxx and not specify instance and port as the DB is running in a multiple machine cluster and can be switched to a different machine...
With OCI driver I have managed on NT but having problem with OCI/Linux and Beta 10g...
Tks
AndreI don't have much experience with OCI from JDBC, but should work like any other kind of connection via SQL*Net. I.e. I would check if connection can be made using SQLPlus, check environment variables (ORACLE_HOME etc.) of 9iAS instance, check version of JDBC classes and their readme.txt. There are also some settings in sqlnet.ora file which might affect this (like default domain - try to use full name of alias - OCRL.WORLD or whatever alias you have there). You may also want to switch tracing for SQLNet and/or listener on (it's not easy to find in doc how to do it, though) to check if there is at least some traffic between klient and server...
Myrra -
JDBC Thin-Driver and Oracle Stored Procedure
I've got a Oracle stored procedure which returns a Oracle record.
How can I retrieve the record in java using the JDBC Thin-Driver ?
Record:
TYPE messagerec IS RECORD
(log_level VARCHAR(2), timestamp VARCHAR2(19), text VARCHAR2(200));Using PL/SQL BOOLEAN, RECORD Types, and TABLE Types:
Oracle SQLJ and JDBC do not support calling arguments or return values of the
PL/SQL BOOLEAN type or RECORD types. Also, when using the Thin driver, they
do not support calling arguments or return values of PL/SQL TABLE types (known
as indexed-by tables). TABLE types are supported for the OCI driver.
Check the following guide,
http://otn.oracle.com/tech/java/sqlj_jdbc/pdf/a96655.pdf -
JDBC thin driver and Oracle 8.1.6
Hi,
I have installed Oracle 8.1.6 on Windows NT 4.0 with service pack 4 and using Oracle JDBC thin driver driver (classes111.zip). My application is multithreaded, but each thread maintains its own connection (and own set of Statements). Things are okay in single threaded mode, but in multi threaded mode, I get weird errors!
1. My resultsets are SCROLL_SENTITIVE and UPDATABLE
2. Sometimes, while updating a row, "No current row" SQLException is thrown, although a row exists that satisfies my select criteria
3. I am also calling executeUpdate() for inserting new rows and such rows are not seen by successive resultsets!
Appreciate any hints! Thanks!Try this isntead.
java -classpath d:\jdbc\classes12.zip;. jdbccheckup
an error occured:
Exception in thread "main" java.lang.NoClassDefFoundError:jdbccheckup
Why?????? -
Jdbc thin driver and bulk binding slow insertion performance
Hello All,
We have a third party application reporting slow insertion performance, while I traced the session and found out most of elapsed time for one insert execution is sql*net more data from client, it appears bulk binding is being used here because one execution has 200 rows inserted. I am wondering whether this has something to do with their jdbc thin driver(10.1.0.2 version) and our database version 9205. Do you have any similar experience on this, what other possible directions should I explore?
here is the trace report from 10046 event, I hide table name for privacy reason.
Besides, I tested bulk binding in PL/SQL to insert 200 rows in one execution, no problem at all. Network folks confirm that network should not be an issue as well, ping time from app server to db server is sub milisecond and they are in the same data center.
INSERT INTO ...
values
(:1, :2, :3, :4, :5, :6, :7, :8, :9, :10, :11, :12, :13, :14, :15, :16, :17,
:18, :19, :20, :21, :22, :23, :24, :25, :26, :27, :28, :29, :30, :31, :32,
:33, :34, :35, :36, :37, :38, :39, :40, :41, :42, :43, :44, :45)
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.02 14.29 1 94 2565 200
Fetch 0 0.00 0.00 0 0 0 0
total 2 0.02 14.29 1 94 2565 200
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 25
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
SQL*Net more data from client 28 6.38 14.19
db file sequential read 1 0.02 0.02
SQL*Net message to client 1 0.00 0.00
SQL*Net message from client 1 0.00 0.00
********************************************************************************I have exactly the same problem, I tried to find out what is going on, changed several JDBC Drivers on AIX, but no hope, I also have ran the process on my laptop which produced a better and faster performance.
Therefore I made a special solution ( not practical) by creating flat files and defining the data as an external table, the oracle will read the data in those files as they were data inside a table, this gave me very fast insertion into the database, but still I am looking for an answer for your question here. Using Oracle on AIX machine is a normal business process followed by a lot of companies and there must be a solution for this. -
Problem with thin driver and tnsname syntax
I have tried to use the tnsname syntax for the thin driver.
ORACLE_HOME points to the right home, but I always get an E/A-Exception: Unknown host specified.
I thought that tnsname syntax is supported in the latest driver. What am I doing wrong?
Then entry:
MEDORA.euro.med.ge.com =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (COMMUNITY = TCP.euro.med.ge.com)(PROTOCOL = TCP)(Host = zzimedo1.euro.med.ge.com)(Port = 1521))
(CONNECT_DATA =
(SID = rad)
(GLOBAL_NAME = MEDORA.euro.med.ge.com)
)The URL: jdbc:oracle:thin:@medora
Thanks,
SaschaI have tried to use the tnsname syntax for the thin driver.
ORACLE_HOME points to the right home, but I always get an E/A-Exception: Unknown host specified.
I thought that tnsname syntax is supported in the latest driver. What am I doing wrong?
Then entry:
MEDORA.euro.med.ge.com =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (COMMUNITY = TCP.euro.med.ge.com)(PROTOCOL = TCP)(Host = zzimedo1.euro.med.ge.com)(Port = 1521))
(CONNECT_DATA =
(SID = rad)
(GLOBAL_NAME = MEDORA.euro.med.ge.com)
)The URL: jdbc:oracle:thin:@medora
Thanks,
Sascha -
Weblogic 9.2 Oracle Thin Driver and BLOB/CLoB ClassCastExceptions
Hi,
I think I may be about to ask a question that has been asked many times but I'm just trying to find the definitive best approach, if any to solve this problem.
I'm working with Weblogic 9.2 on Windows. I have a couple of JDBC Oracle DataSources configured for container connection pooling and the driver that I'm using is the "Oracle's Driver (Thin) Versions 9.0.1,9.2.0,10". When retrieving a Blob from the DB we're calling
oracle.sql.BLOB.blob = (oracle.sql.BLOB)(rs.getBlob(..))
This results in a java.lang.ClassCastException: weblogic.jdbc.wrapper.Blob_oracle_sql_BLOB
The same also occurs for Clobs.
I found a link to an article written in 2003 (http://forums.bea.com/bea/message.jspa?messageID=200019959&tstart=0) that suggests writing your own OracleConnection wrapper class.
I'm just wondering does anybody know if BEA have done anything to fix this problem, we're now on Weblogic 9.2 and this issue is still occuring. I'd rather not go down the route of writing additional code just so we can tell our customers that they can run on Weblogic (when they can successfully already run on Websphere and Tomcat).
Thanks,
AoifeFor anyone who was wondering I managed to get this working though I do unfortunatley have to place a weblogic specific class in to my code :-(
Used information provided at: http://support.bea.com/application_content/product_portlets/support_patterns/wls/CLOBBLOBDataTypeHandlingIssuesPattern.html#Recommended_programming_techniques
Regards,
Aoife -
Oracle Jdbc Thin driver and nls suppot
Hello,
I have a hungarian database with nls_lang variable set to hungarian. I'm trying to do a jdbc connection using classes12.zip
but I'm getting the hungarian characters converted to question marks or other characters.
I read suggestions that I must include the nls_charset12.zip in my classpath too. So I did that but I'm still having the same problem.
What is missed??
How do I get the right hungarian charachters without any conversion.
This is becoming frustrating and I'm not able to solve it yet.
Thanks for your helpOne more question -
Can we use Oracle JDBC OCI driver? We do not have any appletes...
Does it have firewall issues too? Is there any other driver that
we can use?
Thanks,
Vijaya. -
Hi,
Helpful suggestion needed,
I have around 7 LIVE sites running on a single server .the database we are using is oracle 8i .When the 7th site was not launched everything was working fine .But when we launched the 7th site .the 7th site is very slow.We traced it and found that the connection to oracle database is making it slow.We are using the same methods and drivers for all the sites to conect to the database.Sometimes it takes even less then a second to connect to the database but sometimes it take more then a minute just to get a connection to the oracle database. if i am going through the 7th site, then some times it is normal, but after accessing it for around few mins, it starts crawling. even if i click on a link it freezes for at least 8-10 mins. and in the meantime the other sites are also affected, i mean they also become slow. but as soon the 7th site gives some result, the others get back normal.
We are using thin drivers for connection in all the sites.
what could be the possible reason for this?
ThanksWhat webserver are you using? Could be you don't have enough idle instances
of your server standing by to serve requests?
Rick. -
I've bought a new USB SuperDrive, but don't know how to set it up. HAve put the cd in the machine, but now cannot eject it!
Have a look here for some suggestions for ejecting a stuck disk:
http://osxdaily.com/2009/08/28/eject-a-stuck-disk-from-your-mac-dvd-super-drive/ -
Jdbc connection using oracle thin driver( using jdk1.4 and oracle8 )
hello ..
while i was tring to connection using oracle thin driver and jdk1.4 am getting the below error message. i have set the class path for the driver also. am using oracle8 personal edition and jdk1.4.
[java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:333)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:404)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
va:468)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at Connexa.main(Connexa.java:18)[/b]
Press any key to continue...
my program is....
import java.sql.*;
import java.io.*;
import java.util.*;
import oracle.jdbc.driver.*;
// needed for new BFILE class
import oracle.sql.*;
public class Connexa {
public static void main (String args []) throws Exception {
Statement stmt=null;
try{
// Load the Oracle JDBC driver
//DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
Class.forName("oracle.jdbc.driver.OracleDriver");
// Connect to the database
// You can put a database name after the @ sign in the connection URL.
Connection conn =
DriverManager.getConnection("jdbc:oracle:thin:@127.0.0.1:1521:orcl","scott","tiger");
//Connection conn =
// DriverManager.getConnection ("jdbc:odbc:datasource", "system", "manager");
stmt = conn.createStatement ();
catch (SQLException e)
e.printStackTrace();The code itself is fine; the problem is with one of:
1) the connection URL
2) intermediate networking
3) the database itself
1) your connection URL is "jdbc:oracle:thin:@127.0.0.1:1521:orcl"
- is Oracle really running on the default port, 1521
- is the installation SID really "orcl"
2) lots of possibilities, but only a couple are likely
- is TCP/IP configured and running on your host
- is there a persoanl firewall rpduct running? perhaps it's blocking the connection
3) Is Oracle running?
Is the listener running? -
Problem with oracle 9i personal and thin driver
hi all,
this is the code i test the connection of thin driver and oracle 9i personal database.
but i got the error below, could someone tell me where i did wrong.
thank you...
import java.sql.*;
import java.math.*;
import java.io.*;
import java.awt.*;
import oracle.jdbc.driver.*;
class JdbcTest
public static void main(String arg[])
try
// load oracle driver
DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
//connect to the local database
Connection connection = DriverManager.getConnection
("jdbc:oracle:thin:@myhost:1521:ORCL","scott","tiger");
Statement statement = connection.createStatement();
ResultSet resultset = statement.executeQuery("SELECT ename FROM emp");
//print the name out
while(resultset.next())
System.out.println(resultset.getString(1));
//close the resultset, statement, and connection
resultset.close();
statement.close();
connection.close();
catch(SQLException sqle)
System.err.println(sqle);
} C:\CODE-JDBC\ORACLE\TEST-CONNECT>java JdbcTest
java.sql.SQLException: Io exception: The Network Adapter could not establish the connectionReplace this line:
DriverManager.registerDriver(new racle.jdbc.OracleDriver());with this one:
Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
Maybe you are looking for
-
Disappointed in Verizon wireless!
Back in March of 2010 we signed a 2 year agreement and got a phone called the razzle for free for our daughter. The phone broke after just 2 months but because we didn't put insurance on the phone Verizon said too bad. Called customer service and tri
-
File to idoc scenario error - not working yet :(
Hello! I'm trying to make changes in business partner record in CRM using idoc CRMXIF_PARTNER_SAVE_M01 I have an error 56 EDI: Partner profile not available. In Control record in we02 transaction, I have right Partner number for Recipient information
-
Importing Shared Contacts into the Global Address List (Outlook 2013)
A colleague of mine has made a contact list which is going to be shared with other colleagues to increase productivity. His question is, if it's possible to import the contact list into the Global Address List after it has been shared? The contact li
-
Why does it have to be this difficult? JES installation and a reboot
Hi, I downloaded JES for Windows, and I went through the default installation and configuration process. Everything works fine. I can use the Access Manager screens to create users and I got one of the example programs working that allows me to test
-
I want to display the character alt+0183 in my JLabel
This is driving me crazy... can anyone help?? thanks Tom