JDBC 10g - Support for TNS name entries

Hello,
I found the following statement:
JDBC-Thin support for TNSNAMES.ORA Lookup: similar to JDBC-OCI, both client-side and server-side JDBC-Thin can now read the local TNSNAMES.ORA file to resolve service name or TNS alias. Consequently Java in the database will also be in position to reference external Oracle database, using service name. See the JDBC documentation for more details.
in the Oracle white paper "What’s New for Java DB, JDBC, and Database Web Services in Oracle Database 10g". However, I have found several statments/notes in the accompanying 10g JDBC documentation that appear to directly contradict the statement above. For example, the following note:
Note:
Because the JDBC Thin driver can be used in applets that do not depend on an Oracle client installation, you cannot use a TNSNAMES entry to set up a Thin driver connection.
Does anybody know if the JDBC Thin driver supports connection via a TNSNAMES entry? If so, can you direct me to the documentation on how to use it.
FYI, I have managed to establish a connection using a TNS alias and JDBC-OCI as follows:
OracleDataSource ods = new OracleDataSource();
ods.setTNSEntryName("MyTNSAlias");
ods.setUser("scott");
ods.setPassword("tiger");
ods.setDriverType("oci8");
Connection conn = ods.getConnection();
However, if I set driver type to "thin" instead of "oci8", I get the following error:
Exception in thread "main" java.sql.SQLException: Io exception: SO Exception was generated
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:333)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:404)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:140)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:169)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:108)
at prototype.TNSTest.main(TNSTest.java:36)
Thanks in advance.

Hi,
I wrote the white paper in question and am in position to confirm that in 10.2, JDBC-Thin does indeed support tnsnames.ora; you need to specify the location (i.e., directory) of the tnsnames.ora file in the oracle.net.tns.admin system property
java -Doracle.net.tns_admin=$ORACLE_HOME/network/admini have working examples in my book.
I'll have it fixed in the online doc, our printed doc is sometimes out of sync.
Kuassi http://db360.blogspot.com

Similar Messages

  • Internationalization support for File Names

    I want to know does it make sense to provide multilingual support for File Names. Say, I have a file called PurchaseOrder.pdf and it will be sent to users as an email attachment. We can localize the file name(for example, in Chinese: &#35746;&#21333;.pdf).
    But I want to know whether it is a standard to localize the file name. If not, should it be given in English, no matter which locale the user is using.
    Thanks in advance
    Edited by: Giritharan on Feb 1, 2010 1:53 AM

    ... hopefully you will not have to send another document to the same deliverer the very same day. Even if you add the minutes, a date tells you nothing about the contents. This is no problem as long as I receive nothing but purchase confirmations from you. But as a customer I will receive both sales confirmations and invoices, and then I think it's nice to see what the document is about.
    By the way, a person working in an international trading company is supposed nowadays to understand the English words "purchase, sale and invoice", isn't it? Maybe in 50 or 100 years from now Chinese will be the lingua franca. So be prepared for a change ;-)

  • ADF 10g support for Internet Explorer 8

    hi
    Working with Oracle support (in SR 7732252.994) we first reached this conclusion ...
    "Microsoft Internet Explorer 8 is not a supported for the ADF Faces applications built using JDeveloper 10.1.3.5.0"
    When I subsequently asked ...
    "Will there be a JDeveloper 10g release (post 10.1.3.5.0) that will support IE8 ?"
    ... the answer was ...
    "Jdeveloper 10.1.3.5 is the last release in the Jdeveloper 10g branch and there will be no more releases after 10.1.3.5.
    Therefore, there will be no support for IE 8 in the Jdeveloper 10g branch."
    question
    (q1)What is supposed to happen to ADF 10g production applications deployed in an environment that allows little control over the browser that is used (extranet/internet)?
    many thanks
    Jan Vervecken

    Thanks for your reply Shay.
    We plan to officially support IE8 with the next patch release to JDeveloper 11g - currently planned for later this year.That matches what I wrote in my initial post in this forum thread about IE8 support.
    We usually only certify browsers after they officially go production.That does not really answer my question (q1) in this forum thread.
    It is more like, how can I assess that Oracle will support any successor(s) of IE8 or successor(s) of any currently supported browsers for ADF 11g applications in the future? How long will Oracle support "commonly used browsers" for an ADF 11g application I build today, so how long will I be able to use that application?
    How do I answer such questions for ADF 11g applications that should be deployed on the internet (where, as some extranet environments, you typically have not that much (or no) control over which browsers your users use ... although some would like to argue with that, see forum thread "ADF Faces RC browser support and browser market share")?
    (By the way, do you have any feedback for the forum thread "ADF 10g support for Internet Explorer 8"?)
    regards
    Jan

  • C5 multiple numbers for 1 name entry - Aaaargh

    Hi, on my C5 that our company have decided to use as a standart phone, I am very unhappy with the way multiple numbers are available (nearly unavailable) for one naming entry. So calling a contact on anything but the default number is very cumbersome. When a phone is used for business this is REALLY a problem.
    Can this be fixed? Alternatively - other do other Nokia phones NOT have this issue?

    Try with the OVI Suite..
    http://europe.nokia.com/support/download-software/nokia-ovi-suite
    --------------------------------------------------​--------------------------------------------------------​--------------------------------------------------​--If you find this helpful, pl. hit the White Star in Green Box...

  • Oracle 10g support for EM64T and Windows 64-bit

    Is there support for this configuration either in a patch release for 10g or is it planned for the near future?

    Hi,
    Oracle 10gR1 is certified for Tru64 UNIX 5.1b.
    Certification of Oracle 10gR2 for Tru64 UNIX 5.1b.is planned for 1st quarter 2006.
    If it does not support directly, is there a patch available etc..No idea, perhaps can you create an iTAR to post the question.
    But if you read the metalink note 283751.1 Pre-Install checks for 10gR1 RDBMS (10.1.x) - Tru64 Platforms, you can see that no workaround provide...
    Nicolas.
    Message was edited by:
    N. Gasparotto
    Adding metalink note reference.

  • Oracle 10G support for both Cyrillic and Western European Character Sets

    Dear all,
    Our DB currently supports western EU characters sets but we need to also support Russian Characters.
    Is there a common character set for both? or some trick that does the job?
    Thanks.
    DB: Oracle 10G R2
    OS: Linux
    Current Char Set:
    NLS_CHARACTERSET     WE8ISO8859P1
    NLS_CALENDAR     GREGORIAN
    NLS_NCHAR_CHARACTERSET     AL16UTF16

    AL32UTF8 will always do the job.
    CL8ISO8859P5
    CL8MSWIN1251
    could to the job according to http://download.oracle.com/docs/cd/B19306_01/server.102/b14225/applocaledata.htm#sthref1960.
    Edited by: P. Forstmann on 9 août 2011 17:41

  • JDBC - Optional support for certain methods

    According to the notes on http://java.sun.com/products/jdbc/driverdevs.html (Section A.2.1) a method that is inappropriate for the underlying DBMS may throw SQLException. Presumably the text associated with this exception would indicate that the method is not supported. However, the actual text used is not defined. Indeed, how can it be if full internationalisation is to be accounted for?
    And so to my dilemma...
    Let's say I want to write a generic wrapper for any JDBC driver and somewhere in my code I want to invoke PreparedStatement.setBigDecimal(). This method must be implemented but isn't necessarily supported. [ The JDBC driver supplied by SAS Institute is an example of this. ] When invoked, this method throws SQL Exception unconditionally.
    What I want to be able to do is to determine in advance whether or not this method, or indeed any of the optional methods, is supported.
    There are certain useful methods available in the implementation of DatabaseMetaData but nothing to help me in this particular case.
    It's no good catching the exception because there's no well-defined way to interrogate the exception's message String to determine how or why it was generated.
    Am I missing something here or is this really a "hole" in the standard?

    Am I missing something here or is this really a "hole"
    in the standard? You are missing something.
    You are assuming that there is some sort of real standard compliance for JDBC drivers.
    There is not.

  • Oracle 10g support for TRU 64 4.0.f

    Hi,
    I need some information on, Can Oracle 10g be installed on TRU64 unix version 4.0.f.
    If it does not support directly, is there a patch available etc..
    Can somebody confirm.
    Thanks,
    Nagarajan Dandapani

    Hi,
    Oracle 10gR1 is certified for Tru64 UNIX 5.1b.
    Certification of Oracle 10gR2 for Tru64 UNIX 5.1b.is planned for 1st quarter 2006.
    If it does not support directly, is there a patch available etc..No idea, perhaps can you create an iTAR to post the question.
    But if you read the metalink note 283751.1 Pre-Install checks for 10gR1 RDBMS (10.1.x) - Tru64 Platforms, you can see that no workaround provide...
    Nicolas.
    Message was edited by:
    N. Gasparotto
    Adding metalink note reference.

  • Support for "Display Name"

    Hi,
    While sending the mail using javax.mail, do we have any way to specify the "Display Name" for an email i.e. I want to specify the display name for an email apart from "From" email address. I don't want to see the email address as the "From" entity...it should have a name (under which obviously there will be an email address).
    Any clues?
    Thanks,
    Deepak.

    Thanks Paul, it works!!! I missed such an obvious thing..:-)
    +Deepak.                                                                                                                                                                                           

  • PeopleTools v8.48 with Oracle 10G support for SLES

    Hi,
    I would like to know if this combination: PeopleTools v8.48 + Oracle 10g is full supported on SUSE Linux Enterprise Server (9 or 10)? If so. Is it possible to have a screenshot or document to justify it?
    Thanks in advance
    Saludos from México

    PeopleTools v8.48 + Oracle 10g is full supported on SUSE Linux Enterprise Server (9 or 10)?Yes, it is supported.
    Connect to the peoplesoft website, then go to the following menu :
    » Implement, Optimize, and Upgrade
    » » Implementation Guide
    » » » Supported Platforms
    » » » » By Operating System (OS)
    » » » » » SUSE Enterprise
    » » » » » » Oracle 10.2.0.3.0 64-bit
    » » » » » » » PT 8.48
    » » » » » » » » DBMS Server only
    You will see :
    SUSE Enterprise 9 64-bit
    SUSE Enterprise 9
    Nicolas.

  • CamelCase support for Logical Names.

    It is possible to have cammelCase when naming logical entities. can we make this a preference. so that people that want to see uppcase names can set it, or can have it in camelCase?
    At this time when creating a logical entity, my only choice is to use FISCAL_CALENDAR, However I wanted to be able to display FiscalCalendar.

    Do you mean in the context of reverse engineering and merging? (A mixed case name remains mixed in the properties -- it is only displayed as SHOUT)
    I can use mixed case in forward development in the logical layer.
    To change the display try switching:
    Preferences > Data Modeler > Diagram > Logical Model > choose Bachman rather than Barker notation.
    cf.:
    Re: Entity name showing all upper case only in Logical Model
    It is interesting that reverse engineering and merging a view using Barker does result in mixed case display in contrast to doing the same with a table.
    Edited by: KevinDavis on May 7, 2012 1:57 PM

  • JDeveloper 10g support for resin

    Does anyone know if there is anyway of adding resin to the list of application server conncetion options within JDeveloper 10.1.2.
    Thanks in advance.

    Supported probably yes.
    Certified - no.
    Certified means that we do testing on that platform and we currently not testing on Resin.
    Supported - yes - because we support deployment to any J2EE compliant application server. So if Resin is J2EE compliant we should be able to deploy on it, and if it doesn't work because of problems on the JDeveloper side you can open a TAR with Oracle Support about it.

  • Support for using TNSNAMES with Oracle Thin Driver?

    Hi.
    In the official Oracle JDBC FAQ (http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm), they say that from the "10.2.0.1.0" release, the Thin driver hast support for using TNSNAMES entries. Thus, you can use URLs like this:
    jdbc:oracle:thin:@GL (thin driver, but connection info defined in tnsnames.ora)
    Does anyone know how could I use an URL like this? Do I have to install the Oracle client? or can I simply copy a tnsnames.ora file someplace on disk and specify its ubication through an environment variable or something like that?
    I haven't find util information in the Oracle site....any ideas are much appreciated.
    Thanks in advance.

    I just found some info here:
    Re: Thin Driver and Load Balancing
    Thank you very much.

  • Dropping support for Internet Explorer 8,  and  Firefox 20.x or below

    Starting April 30th, we will discontinue support for all Internet Explorer 8 versions and all Firefox 20 versions and below. In order to continue using Business Catalyst Admin user interface without problems, you and your clients need to upgrade to a more recent browser:
    Download Internet Explorer
    Download Safari
    Download Chrome
    Download Firefox

    Thanks for your reply Shay.
    We plan to officially support IE8 with the next patch release to JDeveloper 11g - currently planned for later this year.That matches what I wrote in my initial post in this forum thread about IE8 support.
    We usually only certify browsers after they officially go production.That does not really answer my question (q1) in this forum thread.
    It is more like, how can I assess that Oracle will support any successor(s) of IE8 or successor(s) of any currently supported browsers for ADF 11g applications in the future? How long will Oracle support "commonly used browsers" for an ADF 11g application I build today, so how long will I be able to use that application?
    How do I answer such questions for ADF 11g applications that should be deployed on the internet (where, as some extranet environments, you typically have not that much (or no) control over which browsers your users use ... although some would like to argue with that, see forum thread "ADF Faces RC browser support and browser market share")?
    (By the way, do you have any feedback for the forum thread "ADF 10g support for Internet Explorer 8"?)
    regards
    Jan

  • ADF 11g support for Internet Explorer 8 plus x

    hi
    Given the current situation for ADF 10g, see forum thread "ADF 10g support for Internet Explorer 8" ...
    at ADF 10g support for Internet Explorer 8
    ... I was wondering about the future browser support in ADF 11g.
    (Specifically about IE8 the knownissues.html document for JDeveloper and ADF 11g (11.1.1.1.0) currently says "Internet Explorer 8 is neither supported nor certified. If you must use IE8, set the compatibility view settings in your IE8 browser to ALL. In IE8, go to the Tools menu -> Compatibility View Settings and check the last checkbox "Display All Websites In Compatibility View"." and "... IE8 support should be in the upcoming first patch set. ..." Re: PanelStretchLayout on IE8.)
    question
    (q1) What is the life expectancy of applications built with ADF (Faces) 11g in regard to their future browser support?
    many thanks
    Jan Vervecken
    edit 20091001 : fixed link to knownissues.html

    Thanks for your reply Shay.
    We plan to officially support IE8 with the next patch release to JDeveloper 11g - currently planned for later this year.That matches what I wrote in my initial post in this forum thread about IE8 support.
    We usually only certify browsers after they officially go production.That does not really answer my question (q1) in this forum thread.
    It is more like, how can I assess that Oracle will support any successor(s) of IE8 or successor(s) of any currently supported browsers for ADF 11g applications in the future? How long will Oracle support "commonly used browsers" for an ADF 11g application I build today, so how long will I be able to use that application?
    How do I answer such questions for ADF 11g applications that should be deployed on the internet (where, as some extranet environments, you typically have not that much (or no) control over which browsers your users use ... although some would like to argue with that, see forum thread "ADF Faces RC browser support and browser market share")?
    (By the way, do you have any feedback for the forum thread "ADF 10g support for Internet Explorer 8"?)
    regards
    Jan

Maybe you are looking for

  • Sharing music between 2 accounts on one computer

    I have 2 accounts on my Windows XP Pro machine, both of which can see and utilise iTunes (though unfortunately, not at the same time - though this is another problem entirely). Both of these users iTunes accounts have been set so that they utilise th

  • Does the duration of the video change after putting a slow motion effect?

    Hi, I'm new with this After Effect software, and through researches and youtube videos, i learned how to make a slow motion clip, but i found a problem just after i was so happy to learn something new. Because I was so excited to try it out, i took a

  • No Approve button in changed PO

    Experts, SRM5.0 Ext classic We have a PO which was changed and went to the approver. Now when approver logs into approve this PO, he sees it in his inbox, clicks on it but strangely there is no approve/reject button!!(It is completely missing, not gr

  • WHERE ARE MY PICTURES AT?

    My phone is a blackberry Curve 9380 and last time I updated 3 of my apps, 2 folders of pictures in Images just disappeared. Why is that? How can I have my photos back? 

  • Why do gestures stop working after Mountain Lion update?

    I've just installed Mountain Lion on my MBP, and soon after a reboot, gestures stop working. Rebooting fixes this, at least temporarily. But soon afterwards I can't switch between screens with three finger swipe etc. Yes, gestures are enabled in pref