Connessione ODBC con ADO

salve a tutti.
ho la necessità di collegarmi ad un database Oracle tramite una connessione ODBC creata con ADO.
Ho cercato di impostare la stringa di connessione ma nulla.
nella stringa di connessione ODBC scrivo :
"Provider=MSDAORA.1;Password=prova;User ID=prova;Data
Source='prova';Persist Security Info=False;"
Solo che il collegamento non avviene.
l'errore che adesso dopo varie provi mi si presente è: ORA-12154:TNS:.....
Qualcusa sa aiutarmi su come impostare la stringa da ADO ? i parametri che devo passare ?
Uso delphi e mi devo collegare tramite ODBC al database Oracle.

Assicurarsi che il Oracle service nel tuo nome "TEST" fonte di dati esiste in TNSNAMES.ORA e che è possibile collegare ad esso con successo con SQL*Plus.

Similar Messages

  • Problemi con connessione 3g  con iphone 5

    avevo iphone 4  e nn avevo mai avuto problemi di connessione con il 3g pensando di cambiare comprai iphone 5 ma su questo punto sn rimasto deluso connessione 3g scarsissima  .  se  c'e' qualcuno di voi che ha risolto mi fa avvisi grazie

    What is your technical support question?

  • TNS and ODBC via ADO

    Hallo ,
    I'm trying to connect with VB 6.0 SP3 and SP4 on NT4.0/Win98 to an Oracle 8.1.5 on NT4.0 using client of 7.3.4 and 8.1.5 via TCP/IP.
    Establishing a connection is normally no problem. But after some transactions the connection is lost. The following errors occur:
    Fatal OSN connect error 12203, connecting to:
    (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle80)(ARGV0=oracle80ORCL)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))')))(CONNECT_DATA=(SID=ORCL)(CID=(PR OGRAM=VB6.EXE)(HOST=BENNE_MOB)(USER=benne))))
    VERSION INFORMATION:
    TNS for 32-bit Windows: Version 2.3.4.0.0 - Production
    Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 2.3.4.0.0 - Production
    Time: 14-FEB-01 21:07:13
    Tracing not turned on.
    Tns error struct:
    nr err code: 12203
    TNS-12203: TNS: Ziel nicht erreichbar
    ns main err code: 12560
    TNS-12560: TNS: Protokolladapterfehler
    ns secondary err code: 0
    nt main err code: 102
    TNS-00102: Fehler beim Zusammenstellen der Schl|sselwort/Wert-Paare
    nt secondary err code: 0
    nt OS err code: 0
    Remember i tried to connect through TCP/IP and the error message is created by BEQ-protocol?! Thats the first thing. This happens which kind of connection I ever use (ODBC with DSN and without; MS or Oracle Driver; OLE DB).
    I think the problem is in the listener of the server or a client parameter for the connection (if I run the programm on the server the error are not there).
    Please help.
    Thanks.
    null

    The Net8 Administrator's Guide has a chapter on Troubleshooting that walks through different ways to resolve the particular errors you're encountering.
    It does appear that your problem may be with the server, so I'd double-check that the listner process isn't dying before I started trying to debug the client.
    Justin

  • Oracle ODBC, VB6, ADO, extended ascii

    Dim lcn as ADODB.Connection
    Dim sql as string
    Dim s as string
    ' assume connection done here
    s = chr(149) 'bullet
    'value field is varchar2(64)
    sql = "update dbo.text set value = '" & s & "'
    With Microsoft ODBC for Oracle this works fine.
    With Oracle ODBC 8.01.63:
    value = chr(191) upside down question mark.
    This appears to be the case for all ascii characters 128-256.
    Note that:
    sql = "update dbo.text set value = Chr(149)"
    produces the desired result.
    Any suggestions or ideas?

    one more line of code:
    lcn.execute (sql)
    of course.
    null

  • Character sets and ado

    I have a table with a clob field on an Oracle 8.1.7.4 database. When querying the clob field via odbc and ado the value is truncated. The Oracle server and client are using a WE8ISO8859P1 character set. Has anyone come across this before.
    Thanks.

    I believe the data should be able to be represented by IS0-8859. The data is a long random string of characters that represents a fingerprint image.
    We seem to only get 996 characters back from the database. If I do a getchunk on the data then I get 996 characters of data, then 996 NULLS, then 996 characters of data and so on. The 996 NULLS should be data.
    The data is in the database because I can do a dbms_lob.substr and get the correct info back.

  • SSRS 2012 ERROR [IM014] [Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application

    I have a SSRS installation, I have deployed my connections to, but they fail with title message.  The drivers and ODBC on the box are setup and work fine with 32 bit ODBC conn manager. 
    When I run or configure my connections on the site, via the browser, I get errors connecting.
    I tried to find which app pool http://server/ReportServer application used, but I am not finding that, so my first ?
    How do I find in IIS what app pool SSRS application is using?
    I have 2008 server, running SQL 2012 V.S. 2010 and I think I need to enable my app pool to use 32 bit, but cannot figure out which one it uses?  I see default set to 32 bit = true, which I thought would be it.
    Can I set my SSRS project to use x86, platform? Like I did with SSIS? 
    If so, how?  SSRS and SQL 2012 somewhat new for me. Thanks
    Developer MS Reporting Services

    Hi DCady,
    To manage a data source that connects to a 32-bit driver under 64-bit platform, we use C:\Windows\SysWOW64\odbcad32.exe. To manage a data source that connects to a 64-bit driver, we use C:\Windows\System32\odbcad32.exe.
    Generally, if we use the 64-bit odbcad32.exe (C:\Windows\System32\odbcad32.exe) to configure or remove a DSN that connects to a 32-bit driver, for example, Driver do Microsoft Access (*.mdb), we will receive the following error message:
    The specified DSN contains an architecture mismatch between the Driver and Application
    To resolve this error, we need to use the 32-bit odbcad32.exe (C:\Windows\SysWOW64\odbacad32.exe) to configure or remove the DSN.
    Besides, please make sure there are no DSN using the same name in both 64-bit and 32-bit ODBC Data Source Administrator.
    Reference:
    Managing Data Sources
    Regards,
    Mike Yin
    If you have any feedback on our support, please click
    here
    Mike Yin
    TechNet Community Support

  • Lotus notes and SSIS ODBC connection not working

    I have created an ODBC source.  I tried using this in SSIS workflow ODBC, when I test the connection, it crashes my Visual Studio 2010

    Hi Kathy,
    Thank you for posting in MSDN forum.
    Based on your issue, could you please tell me if you connect the
    Lotus notes and SSIS ODBC with ADO.NET like this following link.
    https://social.msdn.microsoft.com/Forums/en-US/a6c32c6b-876a-4fd5-8faa-d6498a6755c7/updatedwhere-to-post-nonadonet-datagridview-tableadapter-odbcoledb-etc-questions?forum=adodotnetdataproviders
    If possible, please share me more detailed steps about how to connect the
    Lotus notes and SSIS ODBC in the VS2010.
    In addition, could you please share me some crash error message in this VS2010 when test this connection?
    To check if this issue is related to this VS IDE, I suggest you could try to connect
    Lotus notes and SSIS ODBC on other machine and then check if you still get this issue.
    (1) If you still get this crash issue, I assume that this issue is related to this connection
    Lotus notes and SSIS ODBC.
    (2) If you did not get same error message, I suggest you could try to restart your machine and then open this VS2010 as Admin on your local machine and then connect it check this issue again.
    Please try to close the firewall software on some other progress from this Task Manager and then check this issue.
    In addition, I suggest you could try to use this process monitor tool to check which process running when you test this connect.
    https://technet.microsoft.com/en-us/library/bb896645.aspx?f=255&MSPPError=-2147217396
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Cannot see ODBC driver as a data source

    Hi
    I've installed both the Win32 and Win64 11.2g clients on our Win2008R2sp1 server.
    I can get my connection to test fine from c:\windows\sysWOW64\odbcad32.exe (the 32bit ODBC Admin panel), and from sqlplus and sqldeveloper (all on the "client_2" x32bit product).
    I've set ORACLE_HOME to the 32bit product.
    D:\>echo %ORACLE_HOME%
    D:\oracle\product\11.2.0\client_2
    I have Strawberry Perl x32 installed and a x32bit VB Application. Neither will connect.
    Perl...
    D:\>perl -MDBI -le "my $h = DBI->connect('dbi:ODBC:dbase02',rouser,rouser); $h->disconnect()"DBI connect('dbase02','rouser',...) failed: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified (SQL-IM002) at -e line 1
    On my App I get
    S1000: [oracle]p[ODBC][Ora]ORA-12560: TNS:protocol adapter error.
    As I've said, the System DSN is on the 32bit ODBC Panel and is 'test's fine from there.
    Oddly enough I have a few identical servers where I'd set up connections that work fine, using the same setup. Could be we've had a patch that messed things up? Any ideas on how to get roud the SQL-IM002 or ORA-12560 error would be greatly appreciated.
    UPDATE: on servers where we have a working System DSN, if I simply clone it (open existing, change TNS Name and Identified and Save) the cloned 'new' System DSN works fine. However if I create it from scratch it does not! So something is prohibiting me from creating new System DSN entries that are accepted/read by the ODBC Driver???
    Many Thanks
    Kieran
    Edited by: user10688427 on 26-Apr-2012 06:18

    Can anyone help me out here?
    I've written a small test script to demonstrate the issue.
    You can clearly see that the DSN is available but I cannot connect, even using a Win32 perl module.
    D:\>perl ODBCCheck.pl
    ODBC Drivers
    ADO, DBM, ExampleP, File, Gofer, ODBC, Pg, Proxy, SQLite, Sponge, mysql
    DBD::ODBCinstalled
    dbi:ODBC:DBASE02
    DBI connect('DBASE02','browser',...) failed: [Microsoft][ODBC Driver Manager] Data source name not
    found and no default driver specified (SQL-IM002) at ODBCCheck.pl line 26
    Can't connect to data source 'dbi:Win32-ODBC:DBASE02' because I can't work out what driver to use (
    it doesn't seem to contain a 'dbi:driver:' prefix and the DBI_DRIVER env var is not set) at ODBCChec
    k.pl line 31
    <code>
    #!perl -w
    use DBI;
    use Win32::ODBC;
    print "ODBC Drivers \n";
    my @drivers = DBI->available_drivers;
    print join(", ", @drivers), "\n";
    print "-------------------------------------------------------------------------\n";
    my $d = join("", @drivers);
    print "DBD::ODBC";
    print "not" if ($d !~ /ODBC/);
    print "installed\n";
    print "-------------------------------------------------------------------------\n";
    my @dsns = DBI->data_sources('ODBC');
    foreach my $d (@dsns)
    print "$d\n";
    print "-------------------------------------------------------------------------\n";
    my $dbh = DBI->connect('dbi:ODBC:DBASE02', 'browser', 'browser');
    $dbh->disconnect() if ($dbh);
    print "-------------------------------------------------------------------------\n";
    my $dbh32 = DBI->connect('dbi:Win32-ODBC:DBASE02', 'browser', 'browser');
    $dbh32->disconnect() if ($dbh32);

  • ODBC Connection

    Hello All,
    I have a problem calling Stored Function using Microsoft ODBC conn with Oracle DB through Froms6i. I am using EXEC_SQL built-in package. I can call a procedure but can't call a function b'cause it returns a value.
    Pl. help me out with working code sample.
    Thanks,
    Anil

    Hello,
    why don't u use SQL NET?
    If u have any problem configuring, please let me know...
    regards
    Yogeeraj

  • What are the API's and OS Supported by Oracle TimesTen

    1.) What are all the API supported by oracle TimesTen?
    is the below are correct and whether other than this is there any other API supports oracle TimesTen
    JDBC,
    ODBC,
    OLAP,
    ADO.net,
    C++...............
    2.) What are the Platform supports?
    is the below are correct and whether other than this is there any other OS supports oracle TimesTen
    Linux x86-32 and x86-64:
    Oracle Linux 4 and 5
    Red Hat Enterprise Linux 4 and 5
    SUSE Enterprise Server 10 and 11
    MontaVista Linux CGE 5.0 and 6.0
    Asianux 3.0
    Microsoft Windows x86-32 and x86-64:
    Windows XP, Windows Vista, Windows Server 2003, Windows Server 2003 Release 2, Windows Server 2008, Windows 7
    Solaris SPARC 64-bit:
    Oracle Solaris 10
    Solaris x86-64:
    Oracle Solaris 10
    IBM AIX 64-bit:
    AIX 6.1 and 7.1
    Solaris SPARC 32-bit (client only):
    Oracle Solaris 10
    IBM AIX 32-bit (client only):
    AIX 6.1 and 7.1
    3.) What is the latest Version in Oracle TimesTen?
    4.) Maximum number of rows in a table.     2 Power 28 = 268,435,256 for 32 Bit     / (2 power 31-1) = 2,147,483,647 for 64 Bit
    if the Row value exceeds more than the specified value what will happen ? whether we need to have multiple tables
    Say TableA reaches 268,435,256 values and if few more rows are added then the value can be kept in new table TableB and so on..... or how?
    Thanks

    Dear 933663,
    1. What are all the API supported by oracle TimesTen?
    JDBC
    ODBC
    ADO.net
    OCI
    PRO*C
    +
    PL/SQL
    SQL
    2. What are the Platform supports?
    TimesTen 11.2.2.2.0 supports - Windows (32-bit, 64-bit), Linux x86 (32-bit, 64-bit), Solaris Sparc (64-bit), Solaris x86 (64-bit), IBM AIX Power (64-bit) (http://www.oracle.com/technetwork/products/timesten/downloads/index.html)
    The detailed information I could find only in 11.2.1 documentation (http://docs.oracle.com/cd/E18283_01/timesten.112/e13063/install.htm):
    Microsoft Windows 2000, Windows XP, Windows Vista and Windows Server 2003 and 2008 for Intel IA-32 and EM64T and AMD64 CPUs.
    Asianux 2.0 and 3.0 for Intel IA-32 and EM64T and AMD64 CPUs.
    SuSE LINUX Enterprise Server 10 for Intel IA-32 and EM64T and AMD64 CPUs.
    SuSE LINUX Enterprise Server 10 for Itanium2 CPUs
    Solaris 9 and 10 for UltraSparc CPUs
    Solaris 10 for AMD64 CPUs
    Red Hat Enterprise Linux 4 and 5 for Intel Itanium2 CPUs.
    Red Hat Enterprise Linux 4 and 5 for Intel IA-32 and EM64T and AMD64 CPUs.
    Oracle Enterprise Linux 4 and 5 for Intel IA-32 and EM64T and AMD64 CPUs.
    MontaVista Linux Carrier Grade Edition Release 4.0 and 5.0 for Intel IA-32, EM64T and AMD64 CPUs.
    HP-UX 11i v2 and 11iv3 for PA-RISC
    HP-UX 11i v2 and 11iv3 for Itanium2
    AIX 5L 5.3 and 6.1 for POWER CPUs
    3.) What is the latest Version in Oracle TimesTen?
    11.2.2.2.0 (http://www.oracle.com/technetwork/products/timesten/downloads/index.html)
    4) Maximum number of rows in a table. 2 Power 28 = 268,435,256 for 32 Bit / (2 power 31-1) = 2,147,483,647 for 64 Bit
    Actually, I couldn't find any information about rows limits for TimesTen tables and I've never faced with this problem.
    Best regards,
    Gennady

  • Rman problem with NLS_LANG mismatch b/w catalog and target DB

    Hi,
    I have target database NLS_LANG set to 'AMERICAN_AMERICA.JA16SJIS' and recovery catalog NLS_LANG set to 'JAPANESE_JAPAN.JA16EUC'. When backup is started the rman fails with the following error.
    <----
    RMAN-00571:
    ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS
    ===============
    RMAN-00571:
    ===========================================================
    RMAN-03002: failure of allocate command at 11/26/2007 11:22:41
    RMAN-03014: implicit resync of recovery catalog failed
    RMAN-03009: failure of partial resync command on default channel
    at
    11/26/2007 11:22:41
    ORA-06502: PL/SQL: numeric or value error
    ------>
    It works fine if I change the recovery catalog NLS_LANG to 'AMERICAN_AMERICA.JA16SJIS'
    Any help could be appreciated.
    Thanks,
    Prince

    Hello Faust,
    have already tried that in SQLPlus, SQLWorksheet, MS Access (OffXP). All apps used on the same computer. OS Win XP Prof.
    Result in Plus and Worksheet
    40 ! â a a î l c ç i Ä . < ( + ! 50 ! & e e e i n k g Ü $ * ) ; ^ 60 ! - /  A A Î L C Ç I ö , % > ? 70 ! E E E I N K G ` : § ' = " 80 ! a b c d e f g h i [ ] g @ 90 ! ° j k l m n o p q r º ¿ A0 ! µ ß s t u v w x y z G ¿ B0 ! 0 1 2 3 4 5 6 7 8 9 a ß ¿ d e ¿ C0 ! ä A B C D E F G H I š &#65533; t õ D0 ! ü J K L M N O P Q R · u i s u E0 ! Ö S T U V W X Y Z ² Š &#65533; T Õ F0 ! 0 1 2 3 4 5 6 7 8 9 ³ U I S U
    result in Access (via ODBC Con)
    40 ! â &#261; &#257; î &#316; &#269; ç &#299; Ä . < ( + ! 50 ! & &#275; &#281; &#279; &#303; &#326; &#311; &#291; Ü $ * ) ; ^ 60 ! - /  &#260; &#256; Î &#315; &#268; Ç &#298; ö , % > ? 70 ! &#274; &#280; &#278; &#302; &#325; &#310; &#290; ` : § ' = " 80 ! a b c d e f g h i [ ] &#287; @ 90 ! ° j k l m n o p q r º &#8793; A0 ! µ ß s t u v w x y z &#286; &#916; B0 ! &#8320; &#8321; &#8322; &#8323; &#8324; &#8325; &#8326; &#8327; &#8328; &#8329; &#945; &#946; &#947; &#948; &#949; &#969; C0 ! ä A B C D E F G H I š ž &#355; õ D0 ! ü J K L M N O P Q R · &#371; &#305; &#351; &#363; E0 ! Ö S T U V W X Y Z ² Š Ž &#354; Õ F0 ! 0 1 2 3 4 5 6 7 8 9 ³ &#370; &#304; &#350; &#362;

  • Oc4j connection pool: too much INACTIVE connections

    I am publishing an application - developed using Eclipse and previously published in Tomcat (where it works perfectly for a long time) - within corporate servers using Oc4j version 10.1.3. The database server is Oracle 9g.
    After the deployment operation, the application seems to work, but that happens during the work by users, there are still many connections whith status "INACTIVE", until to complete all the available connections.
    The datasource is set as follows:
    <connection-pool name="ConnectionPoolRichiestaPubblicazione">
    <connection-factory factory-class="oracle.jdbc.pool.OracleDataSource"
    user="REDAZIONE"
    password="password"
    url="jdbc:oracle:thin:@(DESCRIPTION=(FAILOVER=ON)
         (ADDRESS_LIST=(LOAD_BALANCE=ON)
         (ADDRESS=(PROTOCOL=TCP)
         (HOST=10.146.2.86)(PORT=1521))
         (ADDRESS=(PROTOCOL=TCP)(HOST=10.146.2.86)(PORT=1521)))
         (CONNECT_DATA=
    (SERVER=DEDICATED)
    (SERVICE_NAME=XE)
    (FAILOVER_MODE=(TYPE=SELECT)(METHOD=BASIC)(RETRIES=180)(DELAY=5))))">
    </connection-factory>
    </connection-pool>
    <managed-data-source
    jndi-name="jdbc/RichiestaPubblicazioneDS"
    name="RichiestaPubblicazioneDS"
    connection-pool-name="ConnectionPoolRichiestaPubblicazione" />
    The java code to establish a connection is as follows:
    private Connection creaConnessioneDataSource(String nomedatasource) throws ConnessioneException{
              LOGGER.debug("START");
              try {
                   InitialContext context = new InitialContext();
                   DataSource ds = (DataSource)context.lookup(nomedatasource);
                   LOGGER.debug("URL DATASOURCE : " + ds.getConnection().getMetaData().getURL());
                   LOGGER.debug("USERNAME : " + ds.getConnection().getMetaData().getUserName());
                   this.conn = ds.getConnection();
              catch( Exception e ) {
                   LOGGER.error("Errore nella connessione tramite datasource : " + StringUtils.getCustomStackTrace(e));
              LOGGER.debug("END");
              return this.conn;
    Connections and statements are closed using the following methods:
         public boolean chiudi(Connection conn){
              LOGGER.debug("START");
              boolean esito = false;
              if (conn != null){
                   try {
                        conn.close();
                        esito = true;
                        LOGGER.debug("Connessione chiusa");
                   catch (SQLException e) {
                        LOGGER.error("Eccezione nella chiusura della connessione : " + e);
              LOGGER.debug("END");
              return esito;
         public boolean chiudi(Statement stmt){
              LOGGER.debug("START");
              boolean esito = false;
              if (stmt != null){
                   try {
                        stmt.close();
                        esito = true;
                        LOGGER.debug("Statement chiuso");
                   } catch (SQLException e) {
                        LOGGER.error("Eccezione nella chiusura dello statement : " + e);
                        e.printStackTrace();
              LOGGER.debug("END");
              return esito;
    Here are a couple of examples of code that interact with the database:
         public List<StatoRichiestaSintesi> getElencoStatiRichieste() throws ConnessioneException{
              LOGGER.debug("START");
              List<StatoRichiestaSintesi> listaStati=new LinkedList<StatoRichiestaSintesi>();
              LOGGER.debug("Apriamo connessione e statement");
              Connection conn = databaseManager.creaConnessioneDataSource(datasource);
              Statement stmt = databaseManager.creaStatement(conn, false);
              String sql="SELECT * FROM STATORICHIESTA";
              try {
                   ResultSet rs = stmt.executeQuery(sql);
                   while(rs.next()){
                        StatoRichiestaSintesi temp=new StatoRichiestaSintesi();
                        temp.setIdStato(rs.getString(1));
                        temp.setDescrizioneStato(rs.getString(2));
                        listaStati.add(temp);
                   LOGGER.debug("Numero record trovati : " + listaStati.size());
              } catch (SQLException e) {
                   LOGGER.error("Eccezione di tipo SQL : " + StringUtils.getCustomStackTrace(e));
              finally{
                   LOGGER.debug("Chiusura di statement e connessione");
                   databaseManager.chiudi(stmt);
                   databaseManager.chiudi(conn);
              LOGGER.debug("END");
              return listaStati;
    Below is another example using PreparedStatement:
         private synchronized void aggiungiIndicazioneProgetto(String idprogetto, String idrichiesta) {
              LOGGER.debug("START");
              LOGGER.debug("Creo un oggetto di tipo connessione");
              Connection conn = databaseManager.creaConnessioneDataSource(datasource);
              LOGGER.debug("Definisco una query sql");
              String sql = "INSERT INTO RICHIESTAPROGETTO (IDRICHIESTA,IDPROGETTO) VALUES (?,?)";
              LOGGER.debug("Dichiaro un oggetto di tipo preparedstatement");
              PreparedStatement stmt = null;
              try {
                   LOGGER.debug("Istanzio l'oggetto statement");
                   stmt = conn.prepareStatement(sql);
                   LOGGER.debug("Imposto i segnalibri della query");
                   stmt.setString(1, idrichiesta);
                   stmt.setString(2, idprogetto);
                   LOGGER.debug("Eseguo la query di inserimento del progetto");
                   stmt.executeUpdate();
              } catch (SQLException e) {
                   LOGGER.error("Eccezione di tipo SQL : " + StringUtils.getCustomStackTrace(e));
              finally {
                   LOGGER.debug("Chiusura di statement e connessione");
                   databaseManager.chiudi(stmt);
                   databaseManager.chiudi(conn);
              LOGGER.debug("END");
         Which may be the cause for the described behavior?
         I hope someone help me..

    My problem is the following.
    If I deploy my application with the illustred datasource in my local OC4J (10.1.3 in a Standalone Environment) all work fine.
    The application creates a reasonable number of connections (in ORACLE - 10g Enterprise Edition Release 10.2.0.4.0 - db I run the query verification "select count(*) from v$session where username='MYAPPLICATION'"), and overall performance is very good.
    If, however, to deploy on the production machine of corporate (always 10.1.3, but obviously in Oracle Application Server Environment) the
    number of connections (status 'INACTIVE') grows massively, and this is saturated in a short time.
    The exception that at the end from the application is that:
    java.sql.SQLException: ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux Error: 2: No such file or directory
    oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:138)
    oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
    oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:277)
    oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:272)
    oracle.jdbc.driver.T4CTTIoauthenticate.receiveOsesskey(T4CTTIoauthenticate.java:243)
    oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:304)
    oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:430)
    oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:151)
    oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
    oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:608)
    oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:218)
    oracle.jdbc.pool.OracleConnectionPoolDataSource.getPhysicalConnection(OracleConnectionPoolDataSource.java:114)
    oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection(OracleConnectionPoolDataSource.java:77)
    oracle.jdbc.pool.OracleImplicitConnectionCache.makeCacheConnection(OracleImplicitConnectionCache.java:1361)
    oracle.jdbc.pool.OracleImplicitConnectionCache.getCacheConnection(OracleImplicitConnectionCache.java:441)
    oracle.jdbc.pool.OracleImplicitConnectionCache.getConnection(OracleImplicitConnectionCache.java:336)
    oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:286)
    oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:179)
    oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:159)
    oracle.oc4j.sql.DataSourceConnectionPoolDataSource.getPooledConnection(DataSourceConnectionPoolDataSource.java:57)
    oracle.oc4j.sql.xa.EmulatedXADataSource.getXAConnection(EmulatedXADataSource.java:92)
    oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl.createXAConnection(ManagedConnectionFactoryImpl.java:211)
    oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl.createManagedConnection(ManagedConnectionFactoryImpl.java:170)
    com.evermind.server.connector.ApplicationConnectionManager.createManagedConnection(ApplicationConnectionManager.java:1377)
    oracle.j2ee.connector.ConnectionPoolImpl.createManagedConnectionFromFactory(ConnectionPoolImpl.java:327)
    oracle.j2ee.connector.ConnectionPoolImpl.access$800(ConnectionPoolImpl.java:98)
    also I add the other attributes of Connection Pool of the Datasource:
    Connections:
    Initial size of Connection Cache = 0     
    Minimum Number of Connections = 0
    Maximum Number of Connections = -1
    Connection Retry Interval (seconds) = 1
    Maximum Connection Attempts = 3
    Maximum Number of Statements Cached = 0     
    Lower Threshold Limit On Pool (%)= 20     
    Validate Connection = False
    What I can do?
    many thanks..

  • [JAVA] problems with java and mysql

    Hi, i have already installed php + mysql and work's them fine, but i want to install java + mysql. I have downloaded eclipse and installed its, that's ok. I have download tomcat and, that's ok. I have download module jconnector and have copied the file .jar in the java home and set classpath. Run and compiled this source that's ok. At runtime the program ask: Impossible connection at the database, why ? It's the source of program:
    [JAVA]
    import java.sql.*;
    public class connessione {
    private String nomeDB; // Nome del Database a cui connettersi
    private String nomeUtente; // Nome utente utilizzato per la connessione al Database
    private String pwdUtente; // Password usata per la connessione al Database
    private String errore; // Raccoglie informazioni riguardo l'ultima eccezione sollevata
    private Connection db; // La connessione col Database
    private boolean connesso; // Flag che indica se la connessione � attiva o meno
    public connessione(String nomeDB) { this(nomeDB, "", ""); }
    public connessione(String nomeDB, String nomeUtente, String pwdUtente) {
    this.nomeDB = nomeDB;
    this.nomeUtente = nomeUtente;
    this.pwdUtente = pwdUtente;
    connesso = false;
    errore = "";
    // Apre la connessione con il Database
    public boolean connetti() {
    connesso = false;
    try {
    // Carico il driver JDBC per la connessione con il database MySQL
    Class.forName("com.mysql.jdbc.Driver");
    // Controllo che il nome del Database non sia nulla
    if (!nomeDB.equals("")) {
    // Controllo se il nome utente va usato o meno per la connessione
    if (nomeUtente.equals("")) {
    // La connessione non richiede nome utente e password
    db = DriverManager.getConnection("jdbc:mysql://localhost/" + nomeDB);
    } else {
    // La connessione richiede nome utente, controllo se necessita anche della password
    if (pwdUtente.equals("")) {
    // La connessione non necessita di password
    db = DriverManager.getConnection("jdbc:mysql://localhost/" + nomeDB + "?user=" + nomeUtente);
    } else {
    // La connessione necessita della password
    db = DriverManager.getConnection("jdbc:mysql://localhost/" + nomeDB + "?user=" + nomeUtente + "&password=" + pwdUtente);
    // La connessione � avvenuta con successo
    connesso = true;
    } else {
    System.out.println("Manca il nome del database!!");
    System.out.println("Scrivere il nome del database da utilizzare all'interno del file \"config.xml\"");
    System.exit(0);
    } catch (Exception e) { errore = e.getMessage(); }
    return connesso;
    public static void main(String [] args) {
    connessione a=new connessione("asta","root","");
    if(a.connetti())
    System.out.println("Connessione al database riuscita");
    else
    System.out.println("Connessione al database non riuscita");
    [JAVA]

    With this line I always pass the username and password also:
    db = DriverManager.getConnection("jdbc:mysql://localhost/" + nomeDB);
    db = DriverManager.getConnection("jdbc:mysql://localhost/" + nomeDB, useName, Password);
    Make sure you create your users in MySQL with the correct permissions

  • OCI Release 9.0.1 with Oracle 8i

    Consider the following situation:
    oracle8i (8.1.7) server on a win2000 machine
    there is an application using oci8 on another machine (linux) with the oracle 8.1.7 client libraries (there is no support for "scrollable" cursors)
    My question is:
    If i change (on linux) the client with that of 9.0.1 with the new oci and the new libraries (and, of course, rewrite the application), can I use the new scrollable cursors with the Oracle 8.1.7 database (we desperately need resultset data seek and row count)

    :) 10x
    then i am asking this, in terms of OCI:
    Is the scrollable cursor (and the row count of a select statement) is a client or a database feature?
    i am asking this because the cursor library in odbc and ado is allowing such things.

  • Server not found

    Hi,
    Wonder if anyone can assist.
    When attempting to sign in to Formscentral I am receiving the error:
    "Safari cannot find the server
    Safari can't open the page 'https://ims-na1.adobelogin.com/ims/authorize/v1?client_id=adobeformscentral&client_redirec t=https%3a%2f%2fformscentral.a…' because Safari can't find the server 'ims-na1.adobelogin.com'."
    A similar message is displayed when attempting access from Firefox and Chrome. I am wondering if there is a known issue at the moment preventing signing in to user areas?
    Many thanks.

    Step 3 gave me the solution. Creating a firewall rule to open port 1434 for UDP solved the problem, so thanks for the link.
    A couple things I don't understand though:
    The SQL Browser was running before I opened the port, and the problem hadn't occurred before yesterday. The IT guy swears he didn't change anything. Is there some event that the could've caused the port to close?
    Some of the PCs were able to connect through the MSAccess front-end using a connection string (both ODBC and ADO). However, even on those machines the SQL Server didn't appear in the server list on the ODBC data source administrator. How could this happen?
    Darrell H Burns

Maybe you are looking for

  • DVD drive died - l need to reinstall XP Satellite A105

    Hi everyone, My wife went on vacation to Hawaii, and while she was gone, her Satellite A105 (no longer under warranty with a dead DVD drive) started malfunctioning to the point where XP where freeze on boot. I tried everything I could but it wouldn't

  • Soap lookup in PI7.31 message mapping

    Hi All, I have a soap lookup created in UDF in PI message mapping I am taking material id from the source structure and use it as input parameter for the lookup webservice Here is the UDF code which takes material number and returns the internal id A

  • How to select record item,vendor & quotation wise

    Hi experts, I have one quiery regarding developing a report & smartforms i hav to fetch data item wise vendor wise & quotation wise in same requirement. thanks ketan pande ABAP consultant.

  • About KO88

    Hi experts, Currently we are working as per below sequence Semifinished Goods (SFG) ->BOM ->MRP->Production Order->Material issue (261)->Order confirnation->Settlement->Issue to Prooduction Order of Finished goods (FG)(261) Some times users who confi

  • Forms runtime as cartridge?

    In a document from July 1997 from Oracle called "Developer/2000 and the NCA: An Architectural Overview", authors Mark Doran et al, the future direction of the Forms Runtime was stated to be: In a release after 2.0, the Forms Runtime will be implement