I am trying to connect to Oracle BI Discover
When I try connecting to OracleBI I get the following message. What am i doing wrong and what do I need to download to make this work? Thank you.
Java Plug-in 1.6.0_17
Using JRE version 1.6.0_17-b04 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\knicholson
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
load: class oracle.disco.DiscoApplet not found.
java.lang.ClassNotFoundException: oracle.disco.DiscoApplet
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.net.ssl.SSLException: Received fatal alert: unexpected_message
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.HttpURLConnection.getResponseCode(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 7 more
Exception: java.lang.ClassNotFoundException: oracle.disco.DiscoApplet
load: class oracle.disco.DiscoApplet not found.
java.lang.ClassNotFoundException: oracle.disco.DiscoApplet
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.net.ssl.SSLException: Received fatal alert: unexpected_message
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.HttpURLConnection.getResponseCode(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 7 more
Exception: java.lang.ClassNotFoundException: oracle.disco.DiscoApplet
user12200683 wrote:
When I try connecting to OracleBI I get the following message. What am i doing wrong and what do I need to download to make this work? Thank you. Not sure, but perhaps people who disucss BI (over in the BI forums) might be interested in helping you. (start by clicking on the 'Forum Home' link at top of page andd screolling down to 'Business Intelligence' category.)
Exception: java.lang.ClassNotFoundException: oracle.disco.DiscoAppletSounds like you have not set up your envcironment correctly.
Similar Messages
-
Trying to connect to oracle 8i
trying to connect to oracle 8i.i have the oracle driver dnlded from oracle website.when i try to make a new connection i get the following error during runtime:
java.lang.UnsatisfiedLinkError: G:\Oracle\Ora81\BIN\ocijdbc8.dll: One of the library files needed to run this application cannot be found
at ....
the file ocijdbc8.dll is in the specified directory.
plz help.Hi,
how do you want to connect to the Oracle DB?
Using a JDBC-driver?
I haven't tried it on 8i, but
maybe this code will help you to connect to a oracle DB vie JDBC.
You need the driver (normally its a zip-file, that you must include
in your classpath)
this look like this when compiling:
javac -classpath ".;..;./jdbc80520-nt/classes111.zip" Test.java
When starting the programm the file should be also included in the classpath.
Here a little example-programm:
import java.sql.*;
import java.util.*;
class Test {
// Here insert your server, the port and the dsn-name
String dsnName = "jdbc:oracle:thin:@<Server>:<Port>:<DSN-Name>";
// Here insert your username
String userName = "<username>";
// Here insert your password
String password = "<password>";
Connection jdbc = null;
public Test() {
try {
// Open Connection
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
connection =
java.sql.DriverManager.getConnection(conURL, userName, password);
System.out.println("Opened connection");
// Do something
// closing connection
connection.close();
System.out.println("Connection terminated");
} catch (Exception exc) {
exc.printStackTrace();
try {
connection.close();
System.out.println("Connection terminated with Exception");
} catch (SQLException exc) {}
public static void main(String[] args) {
Test t = new Test();
}Maybe it helps you.
Ciao Nies -
"stack overflow" when trying to connect with Oracle ODBC
Hi,
I'm trying to connect to Oracle DB (8.1.7.3.0) from WinNT 4.0 SP6 with Oracle ODBC driver 8.0.6.6.0. I've been trying to connect with "Oracle ODBC Test" and with "MS Query". In either way I end up with Dr. Watson reporting about "stack overflow". Before starting to upgrade ODBC driver I wanted to ask - should these versions of driver and DB work together at all (even unofficially)? Or may I be missing some other thing? Any hints, ideas are welcome.
Regards,
Madis PriilinnThank You for replying, Justin!
Yes, I can connect successfully to the database through other tools - at the moment I tried SQL*Plus, Net8 Easy Config and Schema Manager.
The Oracle client in the NT machine is 8.0.5.0.0. And unfortunately I do not know anything about the Oracle installation on this machine and at the moment I don't have that person near me too whom to ask also. But I think the installation was ok, because the connection through ODBC was working before the DB upgrade as far as I understood (sorry, again at the moment I don't know what was the previous version of DB. I will ask that information as soon as possible).
The main problem that bothers me at the moment is that I can't install 8.1.* series OraODBC driver with 8.0.5.0.0 Oracle Installer. I managed to install 8.0.6.6.0 version of the driver, but not the newer ones. As far as I've understood I have to upgrade the whole Oracle in the NT machine to upgrade that installer. Am I correct?
Regards,
Madis Priilinn -
Trying to Connect from Oracle to Sybase
Hi
Iam trying to connect from Oracle to Sybase only to retrieve data which is why--Generic COnnectivity. Everything was fine like creating default entries with hsodbc(instead of default tg4sybs) in listner.ora, tnsnames.ora like discussed in this forum. But, the final problem which Iam encountering is:
ERROR at line 1:
ORA-02085: database link HSODBC.US.ORACLE.COM connects to HO.WORLD
Can anyone explain about this problem and solution?? Please help....It is URGENT!
Thanks
Gopikrishna.This happens with global naming set to true for the database.
How to check if global_names is true or false:
openSQL*plus connection to the database and type
SHOW PARAMETER GLOBAL_NAMES
What to do:
1. you can alter your SQL*Plus session each time you
connect:
ALTER SESSION SET GLOBAL_NAMES=FALSE;
2. you can set global_names to false within the init.ora
of the database
3. you can change the default GLOBAL_NAME HO.WORLD of the
HSODBC system while changing the values in the init.ora
of the hsodbc:
HS_DB_NAME=HSODBC
HS_DB_DOMAIN=us.oracle.com -
Trying to connect to Oracle using Web App
Hi Guys, I'm hoping someone here can help. This question goes out to anyone who has tried to connect to an Oracle database via web application written using Java Server Pages and Servlets. There is a specific file called the context.xml that contains the connection parameters to Oracle. Please note thread of conversation derived from a Java forum I've posted to earlier.
The bottom line is that "orcl" is the SID value for the Oracle database. The connection pool apparently isn't able to create connection objects based on the SID value given. When I attempt to run the test.jsp page in the browser I get the error message noted below. I still don't know how to fix this and simply must get it working.
Any advise is welcome.
Alan
I'm putting together a test page test.jsp in Tomcat that attempts to access my Oracle database running on the same machine. The point here is just to make sure I have the connection parameters correctly set before proceeding too far into the web application.
In my context.xml file I have the following:
<Resource name="jdbc/myoracle" auth="Container"
type="javax.sql.DataSource" driverClassName="oracle.jdbc.OracleDriver"
url="jdbc:oracle:thin:@127.0.0.1:1521:orcl"
username="BASIC_USER" password="tiger" maxActive="6" maxIdle="3"
maxWait="10000"/> In my web.xml file I have the following:
<resource-ref>
<description>Oracle Datasource example</description>
<res-ref-name>jdbc/myoracle</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>My test.jsp page simply attempts to open a connection with the database and to display data from one table.
When I go into the browser to open the page I get the following SQLExceptioin error:
SQL Problem: Cannot create PoolableConnectionFactory (Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor )
SQL State: null
Vendor Error: 0
It refers to the SID value in the descriptor. Well...you can see from the descriptor that I've written "orcl". That is the SID. url="jdbc:oracle:thin:@127.0.0.1:1521:orcl"
At this point I'm spinning my wheels. I don't know what else to do to make this work.
Please advise.
Alan
[Dukes Earned 111] Karanjit
Posts:459
Registered: 2/28/08
Re: Tying test jsp page in Tomcat
Jul 23, 2009 12:31 AM (reply 1 of 2) (In reply to original post )
Click to email this message
Oracle docs say:
ORA-12505:TNS:listener does not currently know of SID given in connect descriptor
Cause: The listener received a request to establish a connection to a database or other service. The connect descriptor received by the listener specified a SID for an instance (usually a database instance) that either has not yet dynamically registered with the listener or has not been statically configured for the listener. This may be a temporary condition such as after the listener has started, but before the database instance has registered with the listener.
Action:
- Wait a moment and try to connect a second time.
- Check which instances are currently known by the listener by executing: lsnrctl services <listener name>
- Check that the SID parameter in the connect descriptor specifies an instance known by the listener.
- Check for an event in the listener.log file.
[Dukes Earned 0] ashiers
Posts:126
Registered: 12/26/01
Re: Tying test jsp page in Tomcat
Jul 23, 2009 7:40 AM (reply 2 of 2) (In reply to #1 )
Click to email this message Click to edit this message...
Thanks for the description for the Error message 12505. It doesn't help much. This I did find out by running this command: LSNRCTL SERVICES LISTENER
C:\>LSNRCTL SERVICES LISTENER
LSNRCTL for 32-bit Windows: Version 11.1.0.6.0 - Production on 23-JUL-2009 11:12
:00
Copyright (c) 1991, 2007, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
Services Summary...
Service "orcl" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:545 refused:0 state:ready
LOCAL SERVER
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:64 refused:0 current:0 max:1022 state:ready
DISPATCHER <machine: DOHWS1911, pid: 804>
(ADDRESS=(PROTOCOL=tcp)(HOST=DOHWS1911)(PORT=1101))
Service "orcl_XPT" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:545 refused:0 state:ready
LOCAL SERVER
The command completed successfully
So, according to this orcl is the correct SID parameter. Please advise further.
Alansb92075 wrote:
Listener Log File c:\oracle11g\diag\tnslsnr\DOHWS1911\listener\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=DOHWS1911)(PORT=1521)))
Please note HOST=DOHWS1911.
Does DOHWS1911 map to 127.0.0.1?
post results from following command
tnsping orcl
Please post last 2 - 3 dozen lines from c:\oracle11g\diag\tnslsnr\DOHWS1911\listener\alert\log.xml
take very soon after the error is reported
Yes DOHWS1911 is the host name given to my computer and probably is mapped to 127.0.0.1.
When I ran tnspring orcl I get:
C:\>tnspring orcl
'tnspring' is not recognized as an internal or external command,
operable program or batch file.
Following is the tail end of the log.xml file after attempting to connect:
<msg time='2009-07-23T16:41:02.031-03:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='DOHWS1911'
host_addr='10.1.186.192'>
<txt>23-JUL-2009 16:41:02 * service_update * orcl * 0
</txt>
</msg>
<msg time='2009-07-23T16:41:20.031-03:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='DOHWS1911'
host_addr='10.1.186.192'>
<txt>23-JUL-2009 16:41:20 * service_update * orcl * 0
</txt>
</msg>
<msg time='2009-07-23T16:41:53.031-03:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='DOHWS1911'
host_addr='10.1.186.192'>
<txt>23-JUL-2009 16:41:53 * service_update * orcl * 0
</txt>
</msg>
<msg time='2009-07-23T16:42:01.562-03:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='DOHWS1911'
host_addr='10.1.186.192'>
<txt>23-JUL-2009 16:42:01 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=services)(ARGUMENTS=64)(SERVICE=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=DOHWS1911)(PORT=1521))))(VERSION=185599488)) * services * 0
</txt>
</msg>
<msg time='2009-07-23T16:42:02.546-03:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='DOHWS1911'
host_addr='10.1.186.192'>
<txt>23-JUL-2009 16:42:02 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=status)(ARGUMENTS=64)(SERVICE=(ADDRESS=(PROTOCOL=TCP)(HOST=DOHWS1911)(PORT=1521)))(VERSION=185599488)) * status * 0
</txt>
</msg>
<msg time='2009-07-23T16:43:30.984-03:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='DOHWS1911'
host_addr='10.1.186.192'>
<txt>23-JUL-2009 16:43:30 * (CONNECT_DATA=(SID=mysid)(CID=(PROGRAM=)(HOST=__jdbc__)(USER=SHIERSAJ))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1594)) * establish * mysid * 12505
</txt>
</msg>
<msg time='2009-07-23T16:43:31.000-03:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='DOHWS1911'
host_addr='10.1.186.192'>
<txt>TNS-12505: TNS:listener does not currently know of SID given in connect descriptor
</txt>
</msg>GOD! It doesn't get any more Greek than this!
What does it all mean? HELP!
Alan -
Crystal Report 9 crashes while trying to connect to Oracle
Post Author: sminabe
CA Forum: General
Hi,I'm having trouble with Crystal Report 9 and wondering if someone could give me a clue.When I try to connect to Oracle using "Refresh" button, Crystal Report 9 crashes everytime.And, the following error appears in the Application Event Log.Faulting application crw32.exe, version 9.2.3.1699, faulting module crqe.dll, version 9.2.1.1839, fault address 0x00009007.Environment:Crystal Report Version: Crystal Report 9 SP7OS: Windows 2003 Server SP1CPU: Intel Xeon CPUOther Major Applications: Oracle 9i, Citrix Presentation Server 4.0Other Facts:- This happens to every Crystal Report files on the machine.- The same Crystal Report files work fine on other machine with exactly the same environment ex) OS ver/CR ver/Installed app...- I could never connect ot Oracle successfully on this machine - it's not like it used to work before.Things that I have tried:- I have tried reinstallation of CR9 without uninstalling but it didn't work.- I have uninstalled CR9 and installed it again and then restarted the machine but it didn't work.- I originally tried without any SP installed and applied SP7 afterwards but the results were the same.- I tried turning on and off the DEP (Data Execution Protection) for CR9. But the results were the same.Can someone give me an advice what I should try from here, please?Let me know if you want more info.Many thanks,SeijiAlso, see this ARTICLE from the Tips & Tricks sub-forum, for things to look at with crashes and hangs. It covers the hardware, the OS and the software, and offers links for tuning up the system, and getting it ready for video editing. I know that there is a lot of material in there, but Neale has done a great job of putting things into a checklist, and offering links to other material.
That rec. is for use along with John T's links, which are a bit more specific to your burned DVD's.
Good luck,
Hunt -
Issues when trying to connect to Oracle database
Hi
We have set up a linked server in SQL Server to connect to an Oracle database. We are using SQL Server 2008 R2 Enterprise (64 bit) on Windows Server 2008 and Oracle client 11g 11.02.00.01 connecting to Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production using UTF8.
Most tables are selectable without error, however, we got this error message for some:
Msg 7347, Level 16, State 1, Line 1
OLE DB provider 'OraOLEDB.Oracle' for linked server 'OurLinkedServer' returned data that does not match expected data length for column '[OraOLEDB.Oracle].Ourfieldname'. The (maximum) expected data length is 6, while the returned data length is 2.
This error message refers to a column of type char(3)
Will the characterset cause this error (I’ve read that SQL Server doesn’t support UTF8)?
If not, is there some other resolution that anyone can think of?
Any suggestions are greatly appreciated.
Thanks a lot!
TomThank You for replying, Justin!
Yes, I can connect successfully to the database through other tools - at the moment I tried SQL*Plus, Net8 Easy Config and Schema Manager.
The Oracle client in the NT machine is 8.0.5.0.0. And unfortunately I do not know anything about the Oracle installation on this machine and at the moment I don't have that person near me too whom to ask also. But I think the installation was ok, because the connection through ODBC was working before the DB upgrade as far as I understood (sorry, again at the moment I don't know what was the previous version of DB. I will ask that information as soon as possible).
The main problem that bothers me at the moment is that I can't install 8.1.* series OraODBC driver with 8.0.5.0.0 Oracle Installer. I managed to install 8.0.6.6.0 version of the driver, but not the newer ones. As far as I've understood I have to upgrade the whole Oracle in the NT machine to upgrade that installer. Am I correct?
Regards,
Madis Priilinn -
While trying to connect to Oracle database 11g from SQL developer (Error)
Hi Guys,
Installed OIM in virtual machine with Windows 2008 and when trying to connect to Database after completing installation receiving with Error ' No more data to read from socket'
Vendor code : 17410. can anybody give suggestion on this.
thanks
sri485.yes i tried connecting DB directly its working fine and i tried select * from DUAL it displays 2 . VMware with OIM working fine in my system and when i copied the same VMWARE file to other system and i tried running OIM and connecting to DB it not working.
log trace:
<Aug 21, 2012 2:28:56 PM BST> <Warning> <DeploymentService> <BEA-290014> <Inval
d user name or password.>
<Aug 21, 2012 2:28:58 PM BST> <Error> <OIM Authenticator> <BEA-000000> <Error s
tting SQL Hint java.sql.SQLException: Unable to start the Universal Connection
ool: oracle.ucp.UniversalConnectionPoolException: Error during pool creation in
Universal Connection Pool Manager MBean: oracle.ucp.UniversalConnectionPoolExce
tion: Error during pool creation in Universal Connection Pool Manager: oracle.u
p.UniversalConnectionPoolException: Universal Connection Pool already exists in
the Universal Connection Pool Manager. Universal Connection Pool cannot be adde
to the Universal Connection Pool Manager>
java.sql.SQLException: Unable to start the Universal Connection Pool: oracle.uc
.UniversalConnectionPoolException: Error during pool creation in Universal Conn
ction Pool Manager MBean: oracle.ucp.UniversalConnectionPoolException: Error du
ing pool creation in Universal Connection Pool Manager: oracle.ucp.UniversalCon
ectionPoolException: Universal Connection Pool already exists in the Universal
onnection Pool Manager. Universal Connection Pool cannot be added to the Univer
al Connection Pool Manager
at oracle.ucp.util.UCPErrorHandler.newSQLException(UCPErrorHandler.java
488)
at oracle.ucp.util.UCPErrorHandler.throwSQLException(UCPErrorHandler.ja
a:163)
at oracle.ucp.jdbc.PoolDataSourceImpl.startPool(PoolDataSourceImpl.java
651)
at oracle.ucp.jdbc.PoolDataSourceImpl.getConnection(PoolDataSourceImpl.
ava:890)
at oracle.ucp.jdbc.PoolDataSourceImpl.getConnection(PoolDataSourceImpl.
ava:857)
at oracle.ucp.jdbc.PoolDataSourceImpl.getConnection(PoolDataSourceImpl.
ava:851)
at oracle.iam.platform.auth.impl.DBStore.getConnection(DBStore.java:130
at oracle.iam.platform.auth.impl.DBStore.setSQLHint(DBStore.java:107)
at oracle.iam.platform.auth.impl.DBStore.<init>(DBStore.java:62)
at oracle.iam.platform.auth.impl.DBStore.getInstance(DBStore.java:83)
at oracle.iam.platform.auth.impl.Authenticator.<init>(Authenticator.jav
:87)
at oracle.iam.platform.auth.impl.Authenticator.getInstance(Authenticato
.java:71)
at oracle.iam.platform.auth.providers.wls.OIMAuthLoginModule.login(OIMA
thLoginModule.java:43)
at com.bea.common.security.internal.service.LoginModuleWrapper$1.run(Lo
inModuleWrapper.java:110)
at java.security.AccessController.doPrivileged(Native Method)
at com.bea.common.security.internal.service.LoginModuleWrapper.login(Lo
inModuleWrapper.java:106)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:
86)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:
80)
at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
at com.bea.common.security.internal.service.JAASLoginServiceImpl.login(
AASLoginServiceImpl.java:113)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.bea.common.security.internal.utils.Delegator$ProxyInvocationHand
er.invoke(Delegator.java:57)
at $Proxy25.login(Unknown Source)
at weblogic.security.service.internal.WLSJAASLoginServiceImpl$ServiceIm
l.login(WLSJAASLoginServiceImpl.java:89)
at com.bea.common.security.internal.service.JAASAuthenticationServiceIm
l.authenticate(JAASAuthenticationServiceImpl.java:82)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.bea.common.security.internal.utils.Delegator$ProxyInvocationHand
er.invoke(Delegator.java:57)
at $Proxy43.authenticate(Unknown Source)
at weblogic.security.service.WLSJAASAuthenticationServiceWrapper.authen
icate(WLSJAASAuthenticationServiceWrapper.java:40)
at weblogic.security.service.PrincipalAuthenticator.authenticate(Princi
alAuthenticator.java:348)
at weblogic.security.service.PrincipalAuthenticator.authenticate(Princi
alAuthenticator.java:355)
at weblogic.management.servlet.BootstrapServlet$1.run(BootstrapServlet.
ava:169)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticat
dSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java
146)
at weblogic.management.servlet.BootstrapServlet.processGet(BootstrapSer
let.java:119)
at weblogic.management.servlet.BootstrapServlet.doGet(BootstrapServlet.
ava:108)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.ru
(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecur
tyHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.ja
a:300)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.ja
a:183)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActi
n.wrapRun(WebAppServletContext.java:3717)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActi
n.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticat
dSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java
120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebApp
ervletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServlet
ontext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.
ava:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Caused by: oracle.ucp.UniversalConnectionPoolException: Error during pool creat
on in Universal Connection Pool Manager MBean: oracle.ucp.UniversalConnectionPo
lException: Error during pool creation in Universal Connection Pool Manager: or
cle.ucp.UniversalConnectionPoolException: Universal Connection Pool already exi
ts in the Universal Connection Pool Manager. Universal Connection Pool cannot b
added to the Universal Connection Pool Manager
at oracle.ucp.util.UCPErrorHandler.newUniversalConnectionPoolException(
CPErrorHandler.java:368)
at oracle.ucp.util.UCPErrorHandler.throwUniversalConnectionPoolExceptio
(UCPErrorHandler.java:49)
at oracle.ucp.util.UCPErrorHandler.throwUniversalConnectionPoolExceptio
(UCPErrorHandler.java:80)
at oracle.ucp.admin.UniversalConnectionPoolManagerMBeanImpl.createConne
tionPool(UniversalConnectionPoolManagerMBeanImpl.java:316)
at oracle.ucp.jdbc.PoolDataSourceImpl.startPool(PoolDataSourceImpl.java
625)
... 61 more
<Aug 21, 2012 2:28:58 PM BST> <Error> <Configuration Management> <BEA-150035> <
n attempt was made to download the configuration for the server oim_server1 by
he user iamamin with an invalid password.>
thanks
sri485 -
Newbie trying to connect to Oracle using ojdbc14
Hey Programming Pals;
I am trying to connect to a remote oracle data base.
I have installed oracle client (allowing me to be able to connect with PL/SQL developer).
Now I need to connect with JDBC.
I down loaded ojdbc14 and put it in my tomcat bin directory.
I than made an entry in path and in classpath to this jar file.
Here is the code I am using to try and connect with:
try
{ DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
catch (ClassNotFoundException c)
System.out.println("Could not load the ODBC driver:" + c);
Here is the error I am getting:
An error occurred at line: 38 in the jsp file: /jsp/form.jsp
Generated servlet error:
[javac] Compiling 1 source file
D:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\jhtp5\jsp\form_jsp.java:85: package ojdbc14.oracle.jdbc.driver does not exist
DriverManager.registerDriver(new ojdbc14.oracle.jdbc.driver.OracleDriver());
I browsed through the jar and verified this path exists. Why can't the jvm find it?
Here are my system variables:
CLASSPATH:
.;D:\Program Files\Apache Group\Tomcat 4.1\bin\ojdbc14.jar
PATH:
D:\Program Files\Apache Group\Tomcat 4.1\bin\ojdbc14.jar;D:\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem
Any help would be appreciated.
LukeTomcat doesn't use the System classpath.
Put the ojdbc14.jar file in the web-inf/lib directory of your web application, restart Tomcat, and try again.
Cheers,
evnafets -
Applet trying to connect to Oracle Database
Hello!
I am trying to access an Oracle 8i database from an Applet. The problem is that the following exception is reported in IE 5.5
and the Applet is not run.
exception: com.ms.security.SecurityEceptionEx[oracle/net/nt/TcpNTAdpater.connect]:cannot access "pc38"
(where my database is being hosted on the intranet at a NT workstation called pc38). The applet does not seem to be able to connect to the datase due to security reason).
In Netscape no exception is shown in the Java Console but the Applet is not run anyway.
What do I have to do for the Applet to be able to connect to the database. The code for the Applet and the HTML file have been appended to this message.
Thanx in advance
Saad
/*********************************Applet*******************************/
String serviceName="ora816";
String hostName="pc38";
String userName="ipweb355";
String password="ipweb355";
String port="1521";
Connection conn=null;
try
java.sql.DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
String url = "jdbc:oracle:thin:@"+this.hostName+":"+this.port+":"+this.serviceName;
System.out.println("url = "+url+ " UserName = "+this.userName+ " password = "+this.password+" port = "+this.port );
conn = java.sql.DriverManager.getConnection(url, this.userName, this.password);
public void paint(Graphics g){
g.drawString("HI there",20,20);
try{
Connection con = conn;
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("Select COUNT(*) AS NUM_ROWS from TABLE_ONE");
rs.next();
String temp = rs.getString("NUM_ROWS");
g.drawString(temp,100,20);
catch(SQLException e){
g.drawString(e.getMessage(),20,20);
/********************HTML*********************************************/
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
<TITLE>
HTML Test Page
</TITLE>
</HEAD>
<BODY>
testApplet will appear below in a Java enabled browser.<BR>
<APPLET
CODEBASE = "D:\IPWeb\Swings\TreeApplet\src"
ARCHIVE = "classes111.zip"
CODE = "testApplet.class"
NAME = "TestApplet"
WIDTH = 400
HEIGHT = 300
HSPACE = 0
VSPACE = 0
ALIGN = middle
>
</APPLET>
</BODY>
</HTML>
<!--the classes111.zip is being send in the Archive file so that the java.lang.ClassNotFound Exception is not reported-->
/*********************************************************************/Hi!
Try to add this line to java.policy file on machine that's running applet:
permission java.security.AllPermission; -
Invalid username/password. when trying to connect to oracle discoverer
Hi All,
Today when i try to connect to discoverer using oracle apps user and password.
I am getting an error.
Failed to connect to database - Unable to connect to Oracle Applications database: invalid username/password.
I was able to connect previously. Please help me on this.
discoverer version:11.1.1.4.0
Apps version : 12.1.3
db version : 11.2.0.3
Please suggest.
Thanks and Regards,Was this working before? If yes, any changes been done recently?
Was the dbc file recreated recently?
Please see these docs/links.
After Cloning Oracle Applications And Resetting APPS Password, Discoverer 10g/11g Fails With Error: Unable To Connect To Oracle Applications Database (afscpgcs) [ID 788706.1]
Apps User Logging Into Discoverer Plus/Viewer Get Error "A connection error has occurred. -Unable to connect to Oracle Applications database: Your password has expired." [ID 871384.1]
Getting Invalid Username/Password While Running Adupdeul On E-Business Suite R12 [ID 562876.1]
Attempting to Import Discoverer EUL through adupdeul, returns the error "Failed to connect to database - Unable to connect to Oracle Applications database: invalid username/password" [ID 1243866.1]
https://forums.oracle.com/forums/search.jspa?threadID=&q=%27Unable+to+connect+to+Oracle+Applications+database%27&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
Thanks,
Hussein -
ORA-12154 error when trying to connect to Oracle 11g DB from Excel 2010
All,
I am trying to set up Excel 2010 64-bit to connect to an Oracle 11g database, but am having some trouble due to an "ORA-12154 could not resolve the connect identifier specified" error. I am able to TNSping the SID name, as well as connect to SQLplus. The TNS entry works, and the Oracle Home is in the right spot. I am even able to put the full connection string in the "Data Source" field when creating a data link in Excel and have it connect to the DB. But I would like to be able to create one that used the SID rather than the full connection string, as other users will have to use this. The developer behind the Excel solution created a number of .odc files to connect to various databases, so this gives extra weight behind figuring out how to connect via a SID rather than a full connection string. Any suggestions?user10832104 wrote:
All,
I am trying to set up Excel 2010 64-bit to connect to an Oracle 11g database, but am having some trouble due to an "ORA-12154 could not resolve the connect identifier specified" error. I am able to TNSping the SID name, as well as connect to SQLplus. The TNS entry works, and the Oracle Home is in the right spot. I am even able to put the full connection string in the "Data Source" field when creating a data link in Excel and have it connect to the DB. But I would like to be able to create one that used the SID rather than the full connection string, as other users will have to use this. The developer behind the Excel solution created a number of .odc files to connect to various databases, so this gives extra weight behind figuring out how to connect via a SID rather than a full connection string. Any suggestions?
If you are able to connect with sqlplus, then this really becomes a question of how to define a data connection in Excel.
But after quickly googling ..
In excel ...
"Data" tab
"from other sources"
"from data connection wizard"
select ODBC DSN
On data link properties, select the "connection" tab
select "Use Data Source Name" and hit the drop-down
select a dsn that you had previously set up to point to the oracle database.
Anyway, that looks like how it is supposed to be done. I'm getting a dll initialization error. Probably due to the fact I have both 32-bit and 64-bit oracle clients, and windows never handles that very gracefully. But then Windows never graceffully handles anything that isn't MicroSoft. To paraphrase Forest Gump, "My momma always said Windows was like a box of chocolates. You never know what you're going to get."
In any event, the error you report means it was actually tying to look it up in tnsnames, but what you supplied wasn't found there. That can also be a big issue when dealing with MS products, because they don't use the same terminology, so lead people into entering something other than what Oracle expects. Are you referencing an ODBC DSN? If so, have you tested that apart from Excel? -
Getting Error trying to connect to Oracle 9i
Dear Folks,
I have developed a JSP based site which is running on Oracle 9i App Server and using Oracle 9i as Database. But whenever a program tries to access the Database, It is giving the following error:
SQLException
Connection refused(DESCRIPTION=(TMP=)(VSNNUM=150999297)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
Could anyone tell me any solution for this error? I believe this is the result of a configuration problem. If so what is the problem. I need to solve this immediately. Please Help.
You may email me at [email protected]Connection refused Error may be thrown if your DB is out of resources. Please check the following.
1. How many active connections do you have?
2. What is the size of the MAX_CONNECTIONS parameter in the DB?
3. Is there any more authentication process involved which fails to return you proper credentials and hence refusing connection?
Hope this helps.
Cheers.
Sekar. -
To all, I have two programs one and HTML and the other one is a .asp. When I run the HTML and it calls the .asp program,
I just get the HTML titles that I put in. I am not sure if I am connecting to the database correctly or if I am not displaying the results returned by the program correctly? More information about the platform that I am running on. I am using a hp computer that is running Microsoft windows xp home edition. I am enclosing the code for both .html and .asp. If anybody wishes to see how I set up my ODBC connection, I will upload the files that have snapshots of how I did this to the filles section.
.html
<html>
<head>
<title>SQL Entry Form</title>
</head>
<body>
<h1 align="center">SQL Entry Form</h1>
<form id="frmSQL" name="frmSQL" action="dbtest2.asp" method="post">
<center><p><input id="cmdSubmit" name="cmdSubmit" type= "submit" value="Execute">
<input id="cmdReset" name="cmdReset" type= "reset" value="Reset">
</center>
</form>
</body>
</html>
.asp
<%@ Language=_VBScript %>
<% option explicit %>
<% response.buffer = True %>
<html>
<head>
<title>Show Results</title>
</head>
<body>
<center><h1><b>Before the Oracle SQL Statements</b></h1></center>
<%
Dim objConn
Dim rs
set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open "Driver={Microsoft ODBC Driver for Oracle};" &
"ConnectString=xtextron;" & "Uid=system;" & "Pwd=manager"
set rs=objConn.execute("SELECT sysdate FROM dual")
Response.Write "sysdate = " & rs("sysdate") & "<br>"
objConn.Close
%>
<center><h1><b>After the Oracle SQL Statements</b></h1></center>
</body>
</html>Monica,
The error reported from the tnsping is -
Adaptador TNSNAMES utilizado para resolver el alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.18.125.103)(PORT = 1521))) (CONNECT_DATA = (SID = AS400_CRPDTA)) (HS = OK))
TNS-12541: TNS:no hay ningún listener
so looks like a problem with the listener and it is also reporting the SID as AS400_CRPDTA and not AS400_DTA as you have in the tnsnames.ora. Are you accessing the correct tnsnames.ora file ?
Also, the listener.ora entry is -
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = HOST)(PORT = 1521))
Are you using the actual host name in the HOST entry instead of (HOST = HOST) ?
What is the output from issuing -
lsncrtl
then the 'status' and 'services' command ?
And an obvious question - did you stop and start the listener after adding the new entry ?
Also, this is completely incorrect -
4) create initAS400_DTA in D:\oracle\bise1\db\hs\admin:
(SID_DESC =
(SID_NAME = AS400_DTA)
(ORACLE_HOME = D:\oracle\bise1\db)
(PROGRAM = hsodbc)
The initAS400_DTA.ora file should only have these entries -
HS_FDS_CONNECT_INFORMATION =AS400_DTA
HS_FDS_TRACE_LEVEL=debug
And finally, 10.2 HSODBC is now desupported and you should install and use the replacement product which is the 11g Database Gateway for ODBC (DG4ODBC).
The following note has links to further information -
Note.1083703.1 Master Note for Oracle Gateway Products
If you want to continue to use HSODBC then refer to this note -
Note 109730.1 How to setup generic connectivity (HSODBC) for Windows NT
but we strongly recommend you install and use DG4ODBC so that you are on a fully supported version.
Regards,
Mike -
ClassNotFoundException...trying to connect to Oracle 8i.
Hi All,
I am very much new to Java. Got the problem when running the follwing code with JDK 1.5.0 and Oracle 8i.
Please someone can help me. I haven't got any CLASSPATHs set.
import java.sql.*;
public class test{
public static void main(String[] args) throws
SQLException,ClassNotFoundException {
//load oracle driver
Class.forName("oracle.jdbc.driver.OracleDriver");
System.out.println("Driver Loaded");
//connecTION to the sample database
String url = "jdbc.oracle:thin:@gs:1521:gs";
Connection conn=DriverManager.getConnection (url,"scott","tiger");
System.out.println("Database connection successful");
//create a statement
Statement stmt = conn.createStatement();
ResultSet rset =stmt.executeQuery("select sysdate from Dual");
while (rset.next())
System.out.println(rset.getString(1));
TNSNAMES.ORA file is
GS =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = gs)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = GS)
Thanks in anticipation.
ChittiFirst, you need to have an appropriate driver jar (or zip - oracle has oddly packaged their drivers in the past but is starting to do things more normally). If you don't have the drivers, you can download them from:
http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
You can use newer drivers with older DBs, and vice versa, see:
http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq_0.htm#02_02
The newer drivers are faster, but also there are some little differences.
The FAQ answers many other newbie questions and there are lots of other resources here:
http://www.oracle.com/technology/tech/java/index.html
http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/index.html
http://download-east.oracle.com/docs/cd/A87862_01/NT817CLI/java.817/index.htm
Once you have the jar, you need to put that jar someplace, and put that place in a classpath that is provided to you application on startup (or to your IDE for when it starts the app).
Maybe you are looking for
-
How to get iphone 4 out of recovery mode?
Hello I was trying to update my phone and now it's stuck in recovery mode. I have tried everything I could think of and nothing seems to be working. I hooked it up to iTunes to do a restore and it won't restore it just keeps giving me a download mess
-
Hi Experts My logo is too big for my Form Window in SAP script. How do I restrict the logo size to fit the size of the window. Regards,
-
Hi All If we have only one R/3 system, we can use JCO's. Incase of multiple R/3 systems, how we can access different functional modules in each system? Thanks Rajesh
-
NLB with IIS on an external infrastructure
Hello, I set up a 2 IIS with NLB infrastructure. It want it to dispatch my clients 50-50. It works in my internal network but it doesn't work from external when my clients are behind a unique public IP adress (all my connections are directed on my fi
-
I have two computers, a new Intel Imac on 10.7 and an old PowerPc MacBook running the final OS for that. My Apple Mail checks both my IMAP server for work and my .Mac account and both lost substantial chunks of Sent mail a couple of days ago. I don't