JDBC, Oracle and sqlnet.ora

Our DBA's have recently decided to play musical ports with our database servers. They keep changing the ports to our Oracle database servers without telling us first. They're justification in not telling us is that we should be using the name server specified in the sqlnet.ora config.
Is it possible to use a name server with JDBC to determine the DSN info? I can't seem to find much info on it.

That is a lousy predicament. I think you may be able
to work around it if you use the oci8 driver. See for
details:
http://download-west.oracle.com/otndoc/oracle9i/901_doc
java.901/a90211/connpoca.htm#1071294Yep, looks like oracle.jdbc.pool.OracleDataSource has support for it. Here's the OCI driver's javadoc:
public void setTNSEntryName(java.lang.String dbname)
Set the TNS entry name. Works only for JDBC OCI driver. Assumed that client side Oracle in installed and TNS_ADMIN env variable is set. If URL is set, this property will be ignored.
I swore I must have read this javadoc like 10 times before. Maybe I read the thin client one by mistake. shrug

Similar Messages

  • Connect with ldap.ora and sqlnet.ora

    Hi
    I am trying to connect Raptor to 9i oracle server. Our server connects using ldap.ora and sqlnet.ora files. I looked at some threads about this issue but do not understand how to connect. Is there a step by step instruction for connecting this way?
    Thanks
    DH

    Hi VRamirez,
    That's a pretty cool workaround. I'm sorry to hear it didn't work perfectly.
    Here is the "low tech" workaround anyone can use -
    From the %ORACLE_HOME% where your sqlnet.ora is, run %ORACLE_HOME%\bin\tnsping eg.
    C:\> tnsping oracle.world
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 21-APR-2006 22:56:31
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    c:\oracle\oracli92\network\admin\sqlnet.ora
    Used LDAP adapter to resolve the alias
    Attempting to contact (DESCRIPTION=(SOURCE_ROUTE=OFF)(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle.xxxx.xx)(
    PORT=xxxx)))(CONNECT_DATA=(SID=ORCL))(SRVR=SHARED))
    OK (200 msec)
    C:\>
    Now copy the (DESCRIPTION=...) and paste it into the advanced TNS info tab in the Connections dialog. This works for me for everything but RAC TNS aliases which have load balancing and failover configured -- the advanced TNS info tab chokes on those. For such connections, I was able to use the JDBC string.
    -Natalka
    http://toolkit.rdbms-insight.com

  • Listener.ora and tnsnames.ora and sqlnet.ora

    Hello newbie here, trying to look into simple RAC setup with 2 nodes (A.this.com, B.this.com), one service (PROD.this.com), one listener and one instance on each node (listener PRODlist1 using instance PRODinstance1 on node A, listener PRODlist2 using instance PRODinstance2 on node B), one database (ORCL).
    db global db name = orcl.this.com
    I would like loadbalancing=on, with TAF basic (no preconnect, retries 10, delay 5.)
    With dynamic service registration.
    What should the tnsnames.ora and listener.ora and sqlnet.ora look like?
    Have read all sorts of literature, getting confused...

    I post my sample configuration here:
    DBA1.WORLD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (FAILOVER=ON)
    (LOAD_BALANCE=ON)
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.1)(PORT = 1521))
    (CONNECT_DATA =
    (BACKUP=DBA2)
    (SERVICE_NAME = DBA.WORLD)
    DBA2.WORLD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (FAILOVER=ON)
    (LOAD_BALANCE=ON)
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.2)(PORT = 1521))
    (CONNECT_DATA =
    (BACKUP=DBA1)
    (SERVICE_NAME = DBA.WORLD)
    )

  • TNSNAME.ORA and SQLNET.ORA

    Hi there!
    My problems is regarding connection to Ora Frms/reports which for so many days I am trying but to no avail.
    Some are suggesting to copy TNSNAME.ORA AND SQLNET.ORA for in order to work better connection on FORMS/REPORT.
    Kindly advice on how to do it.
    thnaks
    null

    If you use 8i, form and report use TNS
    config from sqlplus. If you can get in sqlplus does not mean you can log in
    form ad report. You need to Config the TNS in an option called something like
    'Network Config Assistant'or similar. You should find it from the list.
    Another is to edit the TNSname.ora in the admin directory under you form and report initial path with the command from the previous mail

  • Database connectivity requiring oracle wallet, tnsnames.ora, and sqlnet.ora

    We have a new datasource that I need to write a report against.  In order to access the db, I have to install an Oracle wallet on my pc that contains a certificate.  I then have an entry in the sqlnet.ora file that references this wallet, and I have an entry in my tnsnames file.  I wrote a report successfully on my pc.  We then have our Business Objects installation on a Sun Solaris machine with Unix.  We installed the wallet, added the sqlnet.ora entry, and the tnsnames.ora entry.  I am able to connect to the db from the unix command prompt by typing sqlplus username@dbname successfully.  However, when I place my Crystal Report in Bus. Obj. I cannot get it to work.  I go to the CMC, select the report, choose Process, Database.  I am entering Use custom database logon info and choosing Oracle as my database driver.  I then enter the tnsnames entry into the server and enter my username and password and check the use use same database logon as when report is run.  I get the error The database logon information for this report is either incomplete or incorrect.  I'm guessing the report is not using the certificate in the wallet when it is trying to log on, but I'm not sure.  Does anyone have any suggestions or experience with this?  Thanks in advance for any help.

    Hi Angie,
    you should install the 32bit Oracle driver on your Solaris machine and adjust the LD_LIBRARY_PATH environment variable (in the profile of the BOBJ installation user) to point to the path of the 32bit libraries of your Oracle driver.
    BOBJ is not a native 64bit software and can therefore work only with the 32bit versions of the database drivers.
    Regards,
    Stratos
    Edited by: Efstratios Karaivazoglou on Jul 15, 2009 4:49 PM

  • Dead conection detection and sqlnet.ora

    Hello,
    I´m having some doubts regarding the sqlnet.ora.
    I´m configuring the sqlnet.expire_time=10 parameter in sqlnet.ora, restarted the listener and then I connected via a web conection and turned off my computer (client connection)
    Sometimes in 18 or 20 minutes the connection closes, sometimes it remains connected for hours. I turned the trace on and I see a message that the net service read the sqlnet.expire_time = 10 parameter.
    What could be wrong ? Anybody here had this kind of problems configuring dead conections detection ?
    Another doubt. How can I set a inactivity time ? for example , if the user don´t make a query in 30 minutes he´s disconected... I already tried it configuring in Enterprise manager but it also failed.
    SQLNET.EXPIRE_TIME
    Purpose:
    Determines time interval to send a probe to verify the session is alive
    Default: None
    Minimum Value: 0 minutes
    Recommended Value: 10 minutes
    Example:
    sqlnet.expire_time=10
    Thank you in advance,
    Felipe

    looking at the trace files we can see that the expire time is configured to 5 minutes . But making tests (like disconecting the net cable) I see a user conected and the 20 after 20 minutes it still conected ...
    --- TRACE CONFIGURATION INFORMATION FOLLOWS ---
    [13-SEP-2005 13:58:50:591] New trace stream is /oracle/db/9.2.0.4/network/admin/trace/svr_22551.trc
    [13-SEP-2005 13:58:50:591] New trace level is 6
    [13-SEP-2005 13:58:50:591] --- TRACE CONFIGURATION INFORMATION ENDS ---
    [13-SEP-2005 13:58:50:591]
    --- PARAMETER SOURCE INFORMATION FOLLOWS ---
    [13-SEP-2005 13:58:50:591] Attempted load of system pfile source /oracle/db/9.2.0.4/network/admin/sqlnet.ora
    [13-SEP-2005 13:58:50:591] Parameter source loaded successfully
    [13-SEP-2005 13:58:50:591]
    [13-SEP-2005 13:58:50:591] -> PARAMETER TABLE LOAD RESULTS FOLLOW <-
    [13-SEP-2005 13:58:50:591] Successful parameter table load
    [13-SEP-2005 13:58:50:591] -> PARAMETER TABLE HAS THE FOLLOWING CONTENTS <-
    [13-SEP-2005 13:58:50:591] SQLNET.EXPIRE_TIME = 5
    [13-SEP-2005 13:58:50:591] TRACE_DIRECTORY_SERVER = /oracle/db/9.2.0.4/network/admin/trace
    [13-SEP-2005 13:58:50:591] SQLNET.ENCRYPTION_TYPES_SERVER = (RC4_128)
    [13-SEP-2005 13:58:50:591] SSL_CIPHER_SUITES = (SSL_RSA_EXPORT_WITH_DES40_CBC_SHA, SSL_RSA_EXPORT_WITH_RC4_4
    0_MD5)
    [13-SEP-2005 13:58:50:592] SQLNET.ENCRYPTION_TYPES_CLIENT = (RC4_128)
    [13-SEP-2005 13:58:50:592] WALLET_LOCATION = (SOURCE = (METHOD = FILE) (METHOD_DATA = (DIRECTORY = /oracle/d
    b/9.2.0.4/network/admin)))
    [13-SEP-2005 13:58:50:592] TRACE_LEVEL_SERVER = admin
    [13-SEP-2005 13:58:50:592] NAMES.DIRECTORY_PATH = (TNSNAMES, ONAMES, HOSTNAME)
    [13-SEP-2005 13:58:50:592] sqlnet.crypto_seed = fewkpfrepgomrepogmropegjerpogjpejvvmmrpm
    [13-SEP-2005 13:58:50:592] SQLNET.CRYPTO_CHECKSUM_TYPES_CLIENT = (MD5)
    [13-SEP-2005 13:58:50:592] SQLNET.CRYPTO_CHECKSUM_TYPES_SERVER = (MD5)
    [13-SEP-2005 13:58:50:592] SSL_VERSION = 3.0
    [13-SEP-2005 13:58:50:592] SQLNET.CRYPTO_CHECKSUM_SERVER = accepted
    [13-SEP-2005 13:58:50:592] SQLNET.ENCRYPTION_CLIENT = accepted
    [13-SEP-2005 13:58:50:592] SSL_CLIENT_AUTHENTICATION = TRUE
    [13-SEP-2005 13:58:50:592] NAMES.DEFAULT_DOMAIN = sids.mg.gov.br
    [13-SEP-2005 13:58:50:592] --- PARAMETER SOURCE INFORMATION ENDS ---
    [13-SEP-2005 13:58:50:592]
    --- LOG CONFIGURATION INFORMATION FOLLOWS ---
    [13-SEP-2005 13:58:50:592] Log stream will be "/oracle/db/9.2.0.4/network/log/sqlnet.log"
    [13-SEP-2005 13:58:50:592] Log stream validation not requested
    [13-SEP-2005 13:58:50:592] --- LOG CONFIGURATION INFORMATION ENDS ---
    If anybody here experienced this same problem please let me know..

  • OS authentication in Oracle 10g via jdbc:oracle:oci

    I'm very much a newbie to Java / JDBC and I am trying, but failing, to connect with the database using OS authentication via jdbc, and hoping someone may help.
    My questions are:
    1. Is OS authentication supported for jdbc:oracle:oci with Oracle 10g ? I couldn't find a general statement of whether it works or not.
    (NB.The only information I managed to find, on another forum, is that it should be supported but there is a bug and so it does not work, but the author did not post all of his/her platform details, so the bug may only affect his/her situation. )
    2. If it is supported and works, could some one suggest what is wrong with my syntax . I could not find an example in any Oracle 10g/JDBC documentation.
    The details are as follows: -
    Database : - Oracle 10g Enterprise Edition 10.2.0.2.0 running on Solaris.
    Development platform : - NetBeans 6.1, JDK 1.6.
    Runtime environment: - JRE1.6 on Windows XP professional.
    OPS$ authentication : - the OPS$ accounts have been set-up and we use these successfully for PL/SQL and SQL Plus access.
    JDBC : - I can connect to the database with both jdbc:oracle:thin ( linking in ojdbc14.jar) and jdbc:oracle:oci by using username and password, so I know my JDBC library linkage is OK, eg. this works fine :
    final String url = new String("jdbc:oracle:oci:" + uname + "/" + pword + "@" + environment);
    where environment is the SID
    I have trawled the Oracle documentation which tells me that OS authentication is not supported for Oracle 10g for the jdbc:oracle:thin driver, so I have tried to connect with jdbc:oracle:oci driver using the following code :
    final String url = new String("jdbc:oracle:oci:/@" + environment);
    final Driver driver = new oracle.jdbc.OracleDriver();
    DriverManager.registerDriver(driver);
    final Properties props = new Properties();
    conn = DriverManager.getConnection(url);
    but this gives the following error :
    java.sql.SQLException: ORA-01017: invalid username/password; logon denied
    Other info: - The tnsnames.ora file contains nothing but there are entries in the ldap.ora and sqlnet.ora files.
    My questions are:
    1. Is OS authentication supported for jdbc:oracle:oci with Oracle 10g ? I couldn't find a general statement of whether it works or not.
    (NB.The only information I managed to find, on another forum, is that it should be supported but there is a bug and so it does not work, but the author did not post all of his/her platform details, so the bug may only affect his/her situation. )
    2. If it is supported and works, could some one suggest what is wrong with my syntax . I could not find an example in any Oracle 10g/JDBC documentation.

    If you specify the SID/service_name in the url, you are attempting to connect via SQL*NET and REMOTE_OS_AUTHENT must be set to true in the database. If you are connecting from the same host the database runs on, then just leave the SID off and make sure the ORACLE_SID environment variable is set.
    You can reproduce the same error you get in java with
    sqlplus /@SID
    SQL*Plus: Release 10.2.0.2.0 - Production on Fri Nov 7 12:14:08 2008
    Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.
    ERROR:
    ORA-01017: invalid username/password; logon deniedSample Code:
    import oracle.jdbc.pool.OracleDataSource;
    import java.sql.Connection;
    import java.sql.SQLException;
    public class conn {
      public static void main(String[] args) throws SQLException {
        OracleDataSource ods = new OracleDataSource();
        ods.setURL("jdbc:oracle:oci:/@");
        Connection conn = ods.getConnection();
        conn.close();
    }

  • Oracle and DBMS..? clarity required please!

    Greetings to everyone from Bahrain!!
    I'm a new member on this lovely forum and i would like to socialize with people here and make good contributions, i would like to investigate on or about Oracle database's, does Oracle have a query language and what are the tools beginners need to start learning Oracle DBMS!? your brief insights are welcomed and appreciated!!

    979159 wrote:
    Greetings to everyone from Bahrain!!
    I'm a new member on this lovely forum and i would like to socialize with people here Welcome to the forum. Please note that this is not a 'social forum'. Everyone here is either a working professional or studying to become one. Just like you, no one is paid to be here. Those who are working professionals all have paying jobs, and this forum ain't it. There will be an occasional 'social' comment amongst long term participants, but that is never the focus.
    and make good contributions, i would like to investigate on or about Oracle database's, does Oracle have a query language and what are the tools beginners need to start learning Oracle DBMS!? your brief insights are welcomed and appreciated!!Go to tahiti.oracle.com.
    Drill down to your product and version.
    <b><i><u>BOOKMARK THAT LOCATION</u></i></b>
    Spend a few minutes just getting familiar with what is available here. Take special note of the "books" and "search" tabs. Under the "books" tab you will find the complete documentation library.
    Spend a few minutes just getting familiar with what <b><i><u>kind</u></i></b> of documentation is available there by simply browsing the titles under the "Books" tab.
    Open the Reference Manual and spend a few minutes looking through the table of contents to get familiar with what <b><i><u>kind</u></i></b> of information is available there.
    Do the same with the SQL Reference Manual.
    Do the same with the Utilities manual.
    You don't have to read the above in depth. They are <b><i><u>reference</b></i></u> manuals. Just get familiar with <b><i><u>what</b></i></u> is there to <b><i><u>be</b></i></u> referenced. Ninety percent of the questions asked on this forum can be answered in less than 5 minutes by simply searching one of the above manuals.
    Then set yourself a plan to dig deeper.
    - Read a chapter a day from the Concepts Manual.
    - Take a look in your alert log. One of the first things listed at startup is the initialization parms with non-default values. Read up on each one of them (listed in your alert log) in the Reference Manual.
    - Take a look at your listener.ora, tnsnames.ora, and sqlnet.ora files. Go to the Network Administrators manual and read up on everything you see in those files.
    - When you have finished reading the Concepts Manual, do it again.
    Give a man a fish and he eats for a day. Teach a man to fish and he eats for a lifetime.
    ===
    For hands-on learning of just sql, I recommend you download and install Oracle-XE.
    For hands on learning of the full range of DBA skills, I recommend the following steps
    Download and install VirtualBox. It's free, from Oracle. That's all the clues you should need to locate it.
    Once you have installed VirtualBox, download Oracle Linux and use it to create a virtual server under VirtualBox.
    Once you have created a virtual Linux server under VirtualBox, download Oracle rdbms and install it on your virtual server.
    The above is very high level. The clues are there. Google is your friend. You will run into many issues as you try to do the above. Running into them and dealing with them is in itself part of your training. DBA's have to deal with a lot more than SQL, we have to deal with OS administration and network issues as well. Working through the above will give you a lot of that experience. Taking a pre-built system (there are some available) will inherently deny you the opportunity to gain important skills and learn important principles.

  • Where the init.ora ,   tnsnames.ora,   listener.ora,    sqlnet.ora

    If client-side and server-side software are located in different machines, basically, init.ora and listener.ora are located in the server-side, and tnsnames.ora and sqlnet.ora are located in the client-side, am I right?

    The confusion comes because, as stated earlier by Sanjay, a server could also be a client...
    Here a very simple example on one and only one Windows machine with the same user :
    ---here it is a connection as from client
    E:\apps\oracle\ora1110PE\NETWORK\ADMIN>tnsping demo111p
    TNS Ping Utility for 32-bit Windows: Version 11.1.0.7.0 - Production on 21-JUN-2009 09:36:38
    Copyright (c) 1997, 2008, Oracle.  All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = phoenix)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = DEMO111P)))
    OK (10 msec)
    E:\apps\oracle\ora1110PE\NETWORK\ADMIN>sqlplus scott/demo111@demo111p
    SQL*Plus: Release 11.1.0.7.0 - Production on Sun Jun 21 09:27:02 2009
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    Connected to:
    Personal Oracle Database 11g Release 11.1.0.7.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> quit
    Disconnected from Personal Oracle Database 11g Release 11.1.0.7.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    --- we remove the sqlnet.ora
    E:\apps\oracle\ora1110PE\NETWORK\ADMIN>rename sqlnet.ora _sqlnet.ora
    ---here it is a connection as from client
    E:\apps\oracle\ora1110PE\NETWORK\ADMIN>tnsping demo111p
    TNS Ping Utility for 32-bit Windows: Version 11.1.0.7.0 - Production on 21-JUN-2009 09:37:30
    Copyright (c) 1997, 2008, Oracle.  All rights reserved.
    Used parameter files:
    TNS-03505: Failed to resolve name
    E:\apps\oracle\ora1110PE\NETWORK\ADMIN>sqlplus scott/demo111@demo111p
    SQL*Plus: Release 11.1.0.7.0 - Production on Sun Jun 21 09:27:11 2009
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    ERROR:
    ORA-12154: TNS:could not resolve the connect identifier specified
    Enter user-name:
    ---here it is a connection as from server, still working, in that case it does not use tnsnames/sqlnet
    E:\apps\oracle\ora1110PE\NETWORK\ADMIN>set ORACLE_SID=demo111p
    E:\apps\oracle\ora1110PE\NETWORK\ADMIN>sqlplus scott/demo111
    SQL*Plus: Release 11.1.0.7.0 - Production on Sun Jun 21 09:27:37 2009
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    Connected to:
    Personal Oracle Database 11g Release 11.1.0.7.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL>So, we are on server, the behaviour change depending what we are connecting with (client or server method).
    Nicolas.

  • Tnsnames.ora, sqlnet.ora & listener.ora files are not exit

    DB version: 10.2
    Hello All,
    I just joined the project and notice tnsnames.ora, sqlnet.ora & listener.ora files are not exit under $ORACLE_HOME/network/admin.
    But still we can connect to the database,
    From command prompt or via enterprise manager studio from client site.
    Any idea?
    OR
    what is the best way to create above files in the existing database?
    DN

    tnsnames.ora and sqlnet.ora are client side files, listener.ora and sqlnet.ora are server side files.
    Listener.ora need not exist if using defaults and dynamic registration of services. It may be possible to cope without all those files, depending on the environment.
    Is the database on the local or remote computer and how are you connecting (from sqlplus)?
    Maybe you have a tnsnames.ora somwhere else? (Try using find command) Maybe TNS_ADMIN is set?

  • Oracle JDBC Driver, SQL, and erroneous ORA-00942

    We've been running the following prepared statement without trouble for several months: "SELECT ST FROM STATELT WHERE UPPER(ST)=UPPER(?) OR UPPER(STATE)=UPPER(?) OR UPPER(ABBREV)=UPPER(?) ", using the latest version of the Oracle JDBC drivers. The code that calls the statement, in this case, substitutes "ME" for the three ? characters via setString().
    Yesterday, we pointed our application to an identically populated schema running on the same Oracle 8.1.6.1.0 server. The only difference was that the schema name was 11 characters long rather than six. The STATELT synonym was valid, and could be queried via SQL*PLUS. However, running the query produced an ORA-00942: "table or view does not exist" error.
    Here's the really weird bit: Adding a space to the above anywhere that is legal including before SELECT, at the very end of the SQL, between SELECT and ST (so that there are 2 spaces there), on either side of any of the ='s, all make the SQL work.
    We tried this with an older 8.1.6 JDBC driver and the latest version from the Oracle TechNet site (downloaded yesterday), on three separate computers, and on Windows 2000 and Linux. The problem does seem to be specific to the new schema, but we see no reason why.
    I'd like to know what's up here, since it is shipping software. I'm beginning to suspect that the Oracle Server itself might be responsible, rather than the JDBC driver per se.

    Luis Cabral wrote:
    jschell wrote:
    Although if you are changing the object structure then the code to deal with it must change as well. So, especially in developement, why is restarting a problem?It is not that restarting per se is a problem. Here us developers do not have the required privileges to restart the JDBC pool and we have to ask the DBA to do it, and sometimes he is not immediately available. It is not a big thing but this can impact the development process.Your development process is hideously flawed then.
    The pool exists in the JEE server. And from your first post it seems that you have permission to restart that but not to access the management console. It is ridiculous to have access the the former and not the later.
    Not to mention that you should have your own JEE instance to develop on. Actually it is weird to me that a DBA would even be touching a JEE server. The competent ones I know don't even know how to do that. They know the database not the application servers.
    >
    In addition, having to restart a whole JDBC pool just because you changed a database object definition does not seem very flexible to me. Such issue does not exist in other connection types, for instance in OCI connections, that is why I thought there should be an option to turn it off if required.
    Well specifically you have to restart the pool because you were USING the object that changed.
    And I am rather certain that you can turn off the pool entirely.
    Even in production, I reckon that this may have a negative impact. For instance, say that you need to deploy a hot fix for a bug in one application that involves the re-creation of one single object type. This means that the whole JDBC pool, which may be used by other applications, may have to be shut down just because of that single object.Good point.
    I suggest you stop using complex objects in Oracle. I suspect that would eliminate the problem completely.

  • ORA-00601 Error using JDBC, Oracle 8i on Linux

    Hello,
    Spatial is considering using Oracle as its database platform. I was assigned
    the task of benchmarking the two platforms. So, I downloaded the latest copy
    of Oracle for Linux, version 8.1.6.1.0 ( 8i Enterprise Edition Release 2 ).
    I'm using RedHat 6.2, with a 2.2.14-5.0smp kernel. I ran the installer, set
    up the databases, and everything seemed to be running quite nicely. I copied
    a table and its data from mysql to Oracle, and wrote a java program to
    benchmark the two. This java program takes command line arguments, the first
    one being the connection URL, the second being the number of threads to
    start, the third being the number of operations to complete for each thread.
    So, if you pass it connection 35 35, it will open 35 threads, and each
    thread will then execute 35 selects, inserts, and updates. These are
    hard-coded queries, but they mimic the functionality currently in
    production.
    Oracle bombs on the update. I turned tracing on, and tried it again, with
    the same result. Here's an excerpt from one of the trace files:
    *** SESSION ID:(4.1) 2000-06-21 16:36:48.937
    kvotenlg: epc_collect failed. EPC error: -1073751468.
    CDF: /u01/app/oracle/product/8.1.6/otrace/admin/cdf/styorap0
    FDF: /u01/app/oracle/product/8.1.6/otrace/admin/fdf/oracled.fdf
    kvotenlg: epc_collect failed. ctx:368.
    I was not able to find any information regarding this error. However, this
    message ( or one very similar ) appeared in every trace file. I get the
    following at the end of the pmon_xxxx.trc file:
    Load Indicator not supported by OS !
    *** 2000-06-21 17:42:19.122
    error 601 detected in background process
    And, the following in the alert_sid.log file:
    Wed Jun 21 17:42:19 2000
    PMON: terminating instance due to error 601
    Instance terminated by PMON, pid = 3797
    I made the assumption that this error was actually ORA-00601, and took a
    peek on the internet for relavent information. The canned error message is
    "PMON process runs into lock conflict trying to recovery processes". I found
    someone who had a similar problem, who suggested setting mts_max_dispatchers
    in the initsid.ora file to 1. However, this did not work.
    Basically, when Oracle crashes, the java program is trying to update one
    column in 1225 rows, 35 times, for 35 threads. The java exception is below.
    java.sql.SQLException: No more data to read from socket
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java)
    at oracle.jdbc.dbaccess.DBError.check_error(DBError.java)
    at oracle.jdbc.ttc7.MAREngine.unmarshalUB1(MAREngine.java)
    at oracle.jdbc.ttc7.MAREngine.unmarshalSB1(MAREngine.java)
    at oracle.jdbc.ttc7.Oall7.receive(Oall7.java)
    at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java)
    at
    oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java)
    at
    oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java)
    at
    oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java)
    at
    oracle.jdbc.driver.OracleStatement.doExecuteWithBatch(OracleStatement.java)
    at
    oracle.jdbc.driver.OracleStatement.doExecute(OracleStatement.java)
    at
    oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java
    at
    oracle.jdbc.driver.OracleStatement.executeUpdate(OracleStatement.java)
    at ned.util.database.DBHammerThread.run(DBHammerThread.java:78)
    Has anyone seen this kind of behavior before? Is this merely a
    misconfiguration on my part? Help! :)
    -ned

    Sorry for the long delay in reply. I was using the thin client driver. However, when I switched to the oci8 driver, not only did I observe a 300% increase in speed, but this bizarre occurrence disappeared. I did find one issue with the oci8 driver, as follows.
    In this thread program, if I created a connection in the main program before any of the threads were instantiated, and when the first thread attempted to create a connection, it would produce a segmentation fault. This behavior was very easy to replicate, and it did not matter whether or not I close the original connection. This problem was circumvented by moving the code in the "main" program to create its connection after the child threads had created theirs.

  • Getting started with oracle and jdbc

    i have downloaded ojdbc14.zip from oracle.com
    it's documentation only tells you about the api and the packages and nothing about how to configure it.
    how do i get started? where do i unzip those files and what to do next?
    please help

    "The Old oracle.jdbc.driver Package Will Go Away Soon
    If you still have existing applications that use the
    old oracle.jdbc.driver
    package, now is the time to convert your code."
    And who is so foolish as to use concrete types
    instead of java.sql and javax.sql interfaces or embed
    driver class names in their code? Well, anybody who's more interested in optimal performance than being generic, and willing to put up with the headaches of that, such as providers of high-performance OR mapping tools or someone tuning a very heavily used bit. Or anybody working in a committed Oracle-only shop. It's not a one-size-fits-all world...
    Again, Oracle is evolving the standard. No, the standard is Sun's java.sql interface.Yea, Sun evolved Java, and Oracle is recommending the use of Datasources to keep step with that evolution...
    This still
    works, but Oracle is shifting away from <sid> and
    using <service name> instead. The alternate syntax
    for the URL is:
    String url=jdbc:oracle:thin:@<host>:<port>/<database>
    This has been true for as long as Oracle has had a
    thin, type IV JDBC driver. The URL syntax hasn't
    changed.
    Yes it has and Oracle says it has, here:
    http://download-west.oracle.com/docs/cd/B14117_01/java.101/b10979/urls.htm#BEIJFHHB
    Wherein it is written, in Section 3.2.1 of the Oracle� Database JDBC Developer's Guide and Reference, the sesction on the several supported URL formats for Oracle 10.1
    Notes:
    * Oracle Service IDs are no longer supported at 10g Release 1 (10.1).
    They go on to list three URL styles supported:
    Oracle Net connection descriptor - like an entry in tnsnames.ora (ick!)
    Thin-style service name - the most common, what was quoted above.
    LDAP syntax - for having an LDAP service resolve the database for you
    However, in the old 8.1.7 JDBC documentation, here:
    http://download-east.oracle.com/docs/cd/A87860_01/doc/java.817/a83724/basic1.htm#1006213
    Oracle lists support for:
    Net8 connection descriptor - Net8 is the old name for Oracle Net
    Thin-style sid name - what was quoted in the post to which I first responded.
    Thin-style sid name syntax has a colon between the port and the sid; thin-style service name syntax has a forward slash between the port and the service name. SIDs and service names are not the same thing, although they serve the same purpose in a URL (connecting you to the right instance) and often have the same value. However, a SID for a database is set at DB creation time, is unique to the DB, and cannot be changed easily. Multiple service names can be configured for a database, and they can easily be changed (if you're the DBA). Oracle is providing an additional leval of abstraction by moving to service names, to support additional features and choices. While many installations don't need all that and have in essence ignored the distinction bewteen SID and service name, some multi-database projects can benefit from it.
    >
    StuDerby, I think you should look into this a bit
    more. Your advice is far from optimal, IMO.
    Yeah, I could've taken the time to write a more generic, newbie friendly repsonse; instead, I lifted directly from the Oracle documentation that was cited earlier since newbies seem to have an aversion to reading documentation.

  • Path of Sqlnet.ora and Tnsnames.ora

    Hi all
    Why I have one
    Sqlnet.ora
    in
    C:\ORAWIN95\NETWORK\ADMIN
    and
    one in
    C:\ORAWIN95\NET80\ADMIN
    and
    Tnsnames.ora
    in
    C:\ORAWIN95\NET80\ADMIN
    and
    C:\ORAWIN95\NETWORK\ADMIN
    and
    C:\ORAWIN95\NET80\TNSAPI
    why they are duplicated?
    thanks
    Sobrinho

    It looks like you have (or had) multiple versions of SQL*Net.
    Oracle 8 put everything in %oracle_home%\net80 while Oracle 7 and 9 use %oracle_home%\network

  • Oracle server side jdbc thin driver throws ORA-01017

    We upgraded our database to 11.2.0.1 from 9.2.0.6.
    When we try to connect to an external database from Oracle JVM using server side jdbc thin driver, it throws invalid user id/password error.
    The below test code simulates the issue and is not working on the upgraded instance. The same code is working in fine in other 11.2.0.1 instances. It worked fine before upgrade. In all cases, we are connecting to the same target database instance which is also in 11.2.0.1. It fails only on this database.
    SEC_CASE_SENSITIVE_LOGON is set to false.
    Any inputs will be highly appreciated.
    Code:_
    create or replace and compile java source named TestConn as
    import java.sql.SQLException;
    import oracle.jdbc.OracleDriver;
    import oracle.jdbc.OracleConnection;
    import java.sql.DriverManager;
    public class TestConn {
         public  static String runTest() {
          String msg = "Start";
          OracleConnection tempOC = null;
          try {
          String pUrl = "jdbc:oracle:thin:@dev:1521:dev";
          String pUser = "tst_user";
          String pPwd = "dummy";
          DriverManager.registerDriver (new oracle.jdbc.OracleDriver());
          tempOC = (OracleConnection)DriverManager.getConnection(pUrl, pUser, pPwd);
    msg = "Success";
    } catch (SQLException sqle) {
          System.out.println(sqle.toString());
          sqle.printStackTrace();
          msg = "Failure";
            return msg;
    CREATE OR REPLACE FUNCTION test_conn RETURN VARCHAR2
    AS LANGUAGE JAVA
    NAME 'TestConn.runTest() return java.lang.String';
    set serverout on
    declare
    c varchar2(4000);
    begin
    dbms_java.set_output(5000);
    c:=test_conn();
    dbms_output.put_line(c);
    end;
    / Error Message_
    java.sql.SQLException: ORA-01017: invalid username/password; logon denied
    java.sql.SQLException: ORA-01017: invalid username/password; logon denied
           at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:439)
           at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:388)
           at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:381)
           at oracle.jdbc.driver.T4CTTIfun.processError(T4CTTIfun.java:564)
           at oracle.jdbc.driver.T4CTTIoauthenticate.processError(T4CTTIoauthenticate.java:431)
           at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:436)
           at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:186)
           at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:366)
           at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java)
           at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:359)
           at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java)
           at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:221)
           at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
           at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java)
           at java.sql.DriverManager.getConnection(DriverManager.java)
           at java.sql.DriverManager.getConnection(DriverManager.java)
           at TestConn.runTest(TESTCONN:22) Edited by: sskumar on Mar 6, 2011 1:12 PM

    At the time our issue was resolved, the bug was not published. And, I was told, there was no information in metalink about the isue. I am not sure whether they published some thing in the last few weeks.
    This is what resolved our issue.
    Step 1: alter system set java_jit_enabled=FALSE;
    Step 2: Try your test case. If it is the same issue as ours, your test case will be successful. If it succeeds, Go to step 3. If it does not succeed, it is a different issue.
    Step 3: alter system set java_jit_enabled=TRUE;
    Step 4: Run your test case. If it is the same issue, it is expected to fail. Go to Step 5 in case of failure.
    Step 5: Delete all rows from table java$mc$
    Step 6: Restart the database
    Step 7: Run your test case. It is expected to be successful.

Maybe you are looking for

  • Multiple iTunes Accounts Multiple Computers

    We have 2 MacMinis, and  a new  AppleTV2  and  one SonyTV.   How  do we get the AppleTV2   to work  with BOTH our iTunes  accounts.  One on each  computer?  Right now  it  just sees  the  first device.   We share a secure wireless network of  an Airp

  • Can you set Mail with 'outgoing only' addresses?

    I run my own mail server that collects all my incoming emails, but have many addresses to send from. On ahem Outlook, I could stop accounts from collecting mail, and set them to send mail only. Is there a way to set Mail to have 'send-only' email acc

  • How to make changes in default toolbar

    hi i m using oracle forms 6 and i want to know either it is possible to change in the default toolbar or not if so plz let me know how to make changes in default toolbar and re-adjust according to my need.i know how to create new toolbar and connect

  • Aperture file renaming

    Hello, I write this with an increasing level of frustration. I run projects in Aperture that require several shoots, or in the case of my image library, continuous shoots. How do I rename files so that it picks up the file number from the last file,

  • ISE Guest Portal Print Notification

    Hi, with the old NAC Guest Server I was able to "design" the guest notification printout with HTML elements. With ISE i can only write down some plain text. Does anyone know how to change things like font size for the printouts? Regards, Andreas