Connect db oracle with applet

My problem is the connection between applet and db oracle that it resides in another host of the web server.
Security problem address to me to I use oracle connection manager.
cman.ora is so shaped:
cman = (ADDRESS_LIST=
(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.20.14)(PORT=1630)(QUEUESIZE=32))
while the db connection is:
"jdbc:oracle:thin:@(description=(address_list= " +
"(address=(protocol=tcp)(port=1630)(host=192.168.20.14))"+
"(address=(protocol=tcp)(port=1521)(host=192.168.40.14)))" +
"(connect_data=(sid=dbbackup))"
but occurs the error :
java.sql.SQLException: Eccezione IO: Connection reset
WHY?
thank's all

Hi,
You should avoid connecting to a database from an applet. The applet should instead connect to a server process, which has a database connetion (or a pool of connections)
/Kaj

Similar Messages

  • Trying to simply connect to Oracle with VBscript/ASP - and I cannot.

    This is rather embarrassing. I am pretty fluent with ASP and VBscript, and I have written many a web application connecting to Microsoft SQL Server. Now I have a need to connect to an Oracle database, and I'm beating my head against the wall.
    1) Web server is Windows Server 2003 SP1
    2) Using ASP (not ASP.NET) & VBscript
    3) I have installed the Oracle drivers on the server - it is version 10g
    4) The administrator of the Oracle database to which I want to connect has created a username and password for me to use from within my code
    5) Here is the code I am trying to run:
    Set objConn = Server.CreateObject("ADODB.Connection")
    objConn.Open "Provider=MSDAORA;Data Source=XXXXXXX;User Id=YYYYYYY;Password=ZZZZZZZ;"
    That's it. 2 lines of code just trying to establish a connection. Using the user name and password provided to me by the administrator, and for Data Source I am using the IP address of the Oracle server (like I have done in the past when connecting to SQL Server). I receive the following error message when viewing this in a browser:
    Microsoft OLE DB Provider for Oracle error '80004005'
    ORA-12154: TNS:could not resolve the connect identifier specified
    Evidently, the Data Source I am using is not correct, but I was provided no other information from the admin. This is the first time any of us have tried to connect to Oracle using ASP/VBScript, so the administrator isn't sure what I need to do ... any help would be so appreciated.

    Hello,
    I got mine to work by setting up an ODBC System DSN and connecting to it. I think this bypasses the Microsoft driver, which might be what's causing the problem.
    Set Db = Server.CreateObject("ADODB.Connection")
    Db.Open "DSN=TEST;User ID=userid;Password=password;"
    Good luck, I've found it requires a lot of persistence...
    Al
    Springfield, MO

  • Error with Connection to Oracle with Wallet , JDBC, and UNIX

    Hello - our application has been getting this error periodically while connecting to an oracle database using OCI JDBC drivers.
    caused by: java.sql.SQLException: ORA-28759: failure to open file
    at oracle.jdbc.driver.DatabaseError.throwsSqlException(DatabaseError.java:125)
    at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java:681)
    at oracle.jdbc.driver.T2CConennection.logon(T2CConnection.java :362)
    at oracle.jdbc.driver.PhysicalConnection.<init>
    at oracle.jdbc.driver.T2CConnection.<init>
    at oracle.jdbc.driver.T2CDriverExtension.getConnection
    at oracle.jdbc.driver.OracleDriver.connect
    at java.sql.DriverManager.getConnection
    at java.sql.DriverManager.getConnection
    Once we get this error we keep getting it and are unable to get a connection until we restart it. the file it has the issue with is the cwallet.sso, which I figured out by turning on tracing. The file is there and it gets the connection originally - but for some reason periodically we lose access to that file. But when we get the error the file is there and when we restart the process it's perfectly fine.
    The only way we have been able to replicate this error is by create a sameple JAVA app which just keeps opening connections to the database with the wallet without closing the connections. Everytime we hit the 50th connection that error appears and it's unable to get another connection. If we close the connections everytime it's alright.
    It's not a limit on the amount of connections to oracle because we have no limit set. The best explaination we can find is that unix has some sort of limit on how many concurrent accesses to that file can be done within one process. We have been unable to figure out that limit. We tried playing around with the file descriptor limits to see if it gets more or less then 50, but no luck.
    If anyone has any other suggestions it would be greatly appreciated - we are stuck right now.
    Thanks!

    No suggestions?

  • How do I connect to Oracle with JDBC using "dedicated processor".

    Because of performance problems we want to try to connect to
    oracle using dedicated processor. We can do this from SQL Plus,
    does anybody know what we need to set up in order to utilize
    this from JDBC?

    Which Java runtime error? (stack trace?)

  • Cannot connect to Oracle with ASP

    I'm having problems connecting to an Oracle database in ASP. I am using the following code:
    Inc_ConnString = "Provider=OraOLEDB.Oracle;Data Source=my_db;" & _
              "User Id=user_name;Password=password"
    Set DBconn = Server.CreateObject("ADODB.Connection")
    DBconn.Open Inc_ConnString
    I am always getting the following error message:
    ADODB.Connection (0x800A0E7A)
    Provider cannot be found. It may not be properly installed.
    However, when I run the Visual Basic sample code, everything works fine.. with the same code. I have downloaded and installed the latests Oracle Provider for OLE DB, Oracle ODBC Drivers, Oracle Objects for OLE from www.oracle.com.. but I am still getting this error message..
    Any pointers?

    Give the IWAM_XXXX User full NTFS access rights to your %ORACLE_HOME%, ie. C:\oracle\ora92 and all subdirectories (this is documented in Metalink Doc-ID 258471.995).
    g

  • Connect to ORACLE with JSP

    I need to connect to a Oracle 9i Database using JSP; i need 2 connections:
    1 for TOMCAT running in Windows and 1 for Apache running in UNIX
    anyone? i need this code as soon as posible
    T

    Can't help you with the Apache side, but Tomcat is easy enough if you know Java and JDBC.
    Tomcat has excellent docs on how to set up a JNDI data source:
    http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html
    If you need help with JDBC, look at the JDBC tutorial:
    http://java.sun.com/docs/books/tutorial/jdbc/index.html
    Neither I nor anyone else is going to write this code for you, no matter how urgent your need. - MOD

  • I can not establish a connection to Oracle with an application in win 7

    I have an application in VB6 that connects to an Oracle Database 10g with Oracle native ole db but win7 can not make the connection with a standard user, only makes the connection to a user with administrator permissions. The error that shows the application's rubbish eg @, H, etc.. only rare characters.
    Edited by: gualja on 11/01/2013 04:13 PM

    Did you try adding the user in administrator group and running your programm, even doing so is giving you same error?
    Can you connect to sqlplus as non admin user and fire sql commands
    start>run>sqlplus (if you have more than one installation, run from your oracle_home/bin)
    connect as the non admin user and run sql
    if the "User Account Control is enabled", try disabling

  • How can i connect personnal oracle with Developer/2000

    hello,all
    First i Install Personnel oracle and then I install
    Developer/2000 in a different Oracle home.Now plz tell me wat
    should i do to connect these two.Plz write in detail.
    thank you ahead.

    Update the tnsnames.ora file in the ORACLE_HOME directory where you installed your Designer/2000.

  • PHP4: connect to oracle with ORA-12546 error

    I have install the PHP4 + apache 1.3.12 on redhat 6.2, by recompile the apache and php packages.
    Fortunately, the apache can startup. But when I run the program as below:
    PutEnv("ORACLE_HOME=/home/oracle/product/release");
    PutEnv("ORACLE_SID=orcl");
    $a=ocilogon("scott","tiger");
    ocilogoff($a);
    I get a error message:
    Warning: ociopen_server: Error while trying to retrieve text for error ORA-12546 in /usr/local/apache/htdocs/ora.php on line 5
    I checked the system very carefully, I can use "sqlplus scott/tiger@orcl" connect to the database, I can also use the SQLnavigator connect the database from other machine.
    Could any kind people help me to solute this problem.
    Thanks a lot.

    Originally posted by sumit1:
    Sorry for the previous message and try the following...
    $a=ocilogon("scott@orcl","tiger");
    and no need to use putEnv() function.
    Edwin
    email:[email protected]
    OK or try $a=ocilogon("scott","tiger","orcl"); or $a=ocilogon("scott","tiger","address of database server{localhost});

  • Diffenent connections to Oracle with one FORM

    I have the problem, that I have different kinds of database operations to realize with my form.
    One one hand there are some operations which have to work every time without a special connect (informations
    for everybody) and on the other hand there are operations for which the user has to identify.
    I have to save the userid for this operations. When the user has done, he must be disconnected without
    loosing the first connection.
    Has anybody an idea how to realize this?
    Thank's very much in advance.

    You may use tha facilities of the EXEC_SQL built-in package that allows having multiple database connections to the same database or to multiple databases. Still, that doesn't help for distributed transactions.
    See the online help for exec_sql.

  • PHP4: connect to oracle wither ORA-12546 error

    I have install the PHP4 + apache 1.3.12 on redhat 6.2, by recompile the apache and php packages.
    Fortunately, the apache can startup. But when I run the program as below:
    PutEnv("ORACLE_HOME=/home/oracle/product/release");
    PutEnv("ORACLE_SID=orcl");
    $a=ocilogon("scott","tiger");
    ocilogoff($a);
    I get a error message:
    Warning: ociopen_server: Error while trying to retrieve text for error ORA-12546 in /usr/local/apache/htdocs/ora.php on line 5
    I checked the system very carefully, I can use "sqlplus scott/tiger@orcl" connect to the database, I can also use the SQLnavigator connect the database from other machine.
    Could any kind people help me to solute this problem.
    Thanks a lot.

    Originally posted by sumit1:
    Sorry for the previous message and try the following...
    $a=ocilogon("scott@orcl","tiger");
    and no need to use putEnv() function.
    Edwin
    email:[email protected]
    OK or try $a=ocilogon("scott","tiger","orcl"); or $a=ocilogon("scott","tiger","address of database server{localhost});

  • Connecting to Oracle 9i with Win CE application

    Hello!
    I want to connect to Oracle 9i from an application running on Windows CE. This application has to be programmed using C++.
    Is that possible? Are there any C++ APIs, Client-Dlls or ODBC drivers for Windows CE?
    Best regards,
    Andreas Kämpf

    Hi!
    Not yet, but the Windows CE app isn't supposed to run on a mobile device. I'm using Win CE as RTOS. Therefore I need a light, high performance connection to the Oracle DB. I don't like the idea of middleware between the RTOS and the DB.
    Isn't there a way to connect to Oracle with a good performance?
    Best regards,
    Andreas Kämpf

  • Why to Use EJB rather then Direct Connection To Oracle Thru webDynpro?

    Hi
      Experts,
       I want to know that why to use EJB to connect to oracle rather then direct connection via WebDynpro.
       Please Give Me References to how to connect to oracle with EJB or WebDynpro.I want to tell you that i know JDBC,JAVA and basic web Dynpro.
      Please Reply Me Dear Friends...ASAP.

    EJB are better for a project beacuse the application is scalable, have less maintainence and have better performance.
    Have you gone throght these:
    Connect Oracle 9.2 DB to Web AS 6.40
    web dynpro - database connection
    web Dynpro application connecting to oracle
    /people/ramesh.jandhyala/blog/2007/01/02/webdynpro-and-oracle-using-dtos
    Regards,
    Ashwani Kr Sharma

  • Generic connection to oracle

    Hi !
    I heard about a generic connection to oracle (with OCI ??). The user x connects himself to the serveur with a generic login and password. Then he's connected as "user x".
    I'd like to know how does it work, and if it is possible to do audit trail with this type of connection.
    Thanks.

    listener problems

  • Connecting to Oracle 9i using Visual Basic 6.0

    Hi:
    I'm using a driver from DataDirect: DataDirect 5.1 Oracle to connect to oracle. I'm able to do test connect Successfully with a tool provided by Data Direct. The OS is Windows 2000 sp4
    I'm trying to use a source code I found in Microsoft web site and I get an error
    saying "[DataDirect][ODBC Oracle Driver]Insufficient information to connect to
    the data source". I think I'm in right direction, but something is missing. This
    is my first time trying to connect to Oracle using VB6. Pleas need help:
    Option Explicit
    Public db As New ADODB.Connection
    Public uid As String
    Public pwd As String
    Public dBase As String
    Sub OracleConnect()
    On Error GoTo logonError
    Dim Conn As String
    Dim drv As String
    uid = Trim$(frmLogon.txtUserId.Text)
    pwd = Trim$(frmLogon.txtPassword.Text)
    dBase = Trim$(frmLogon.txtDatabase.Text)
    Set db = New ADODB.Connection
    With frmLogon
    If .txtUserId.Text = "" Then
    MsgBox "Please Enter USER ID", vbExclamation
    .txtUserId.SetFocus
    Exit Sub
    ElseIf .txtPassword.Text = "" Then
    MsgBox "Please Enter Password", vbExclamation
    .txtPassword.SetFocus
    Exit Sub
    End If
    'Connection String
    If .txtDatabase.Text <> "" Then
    Conn = "UID= " & uid & ";PWD=" & pwd & ";DRIVER={DataDirect 5.1 Oracle};" _
    & "SERVER=" & dBase & ";"
    Else
    Conn = "UID= " & uid & ";PWD=" & pwd & ";DRIVER={DataDirect 5.1 Oracle};"
    End If
    End With
    Screen.MousePointer = vbHourglass
    'Connect With ORACLE
    With db
    .ConnectionString = Conn
    .CursorLocation = adUseClient
    .Open
    End With
    Screen.MousePointer = vbDefault
    logonError:
    If Err.Number <> 0 Then
    Screen.MousePointer = vbDefault
    MsgBox "If Any Error Occured Please Restart the Prog If Reqd. Error Description:" & Err.Description & "", vbCritical
    With frmLogon
    .txtUserId.Text = ""
    .txtPassword.Text = ""
    .txtDatabase.Text = ""
    .txtUserId.SetFocus
    End With
    Else
    Screen.MousePointer = vbDefault
    Unload frmLogon
    frmMain.Show
    End If
    End Sub

    I do this way!
    1. Create a system DSN from ODBC DataSource ... for example named it "mydsn"
       using 'Microsoft ODBC for Oracle' Driver
    2. In VB6, goto project->preferences, and select any "Microsoft Activex Data Objects 2.X library
    3. Write the following sample code for test:
    Dim cn As ADODB.Connection
    Dim rs As ADODB.Recordset
    Private Sub Form_Load()
    Set cn = New ADODB.Connection
    Set rs = New ADODB.Recordset
    cn.Open "dsn=mydsn", "scott", "tiger"
    rs.Open "select *  from emp", cn, adOpenDynamic, adLockOptimistic
    MsgBox "Connected to Oracle with scott....",vbinformation
    End Sub

Maybe you are looking for

  • Logic express & pro file diffrences

    im sure that its possible to open LE files into LP but is it also possible backwards? (open logic pro files in logic express)?

  • Any Mac Equivalent to "Pictures to EXE"?

    Apologies for this weird question but I was given a rather garbled message that had been passed on from person to person! Apparently a friend of a friend of a friend is wanting to do A/V with a Mac and wonders whether there is a similar program to th

  • Query output doubt

    Hi all, I am running the following query. select rawtohex(a.member), nvl(b.status, 'null'), b.group#, b.bytes from v $logfile a, v$log b where a.group#=b.group#; Its output: RAWTOHEX(A.MEMBER) NVL(B.STATUS,'NU GROUP# BYTES *2F6462326565655F686F6D655F

  • I cant edit linked files in photoshop

    When i click edit original it opens in preview mode how do i edit in PS

  • IMac Error Message for CD/DVDs

    I all of a sudden can no longer burn DVD/CDs. What I was specifically was trying to do was put pictures on a DVD which I've done dozens of times. I keep getting the same error message pop up right after I hit "burn" that says "This disc can't be burn