ODBC DSNless connection

I created some ASP pages for a database and while onmy local
machine everything was good.
When uploaded to my host the connection failed and they
suggested a DSNless connection, i reasearched it on the net and
there were several tutorials but none of them worked.
The current connection is
// FileName="Connection_odbc_conn_dsn.htm"
// Type="ADO"
// DesigntimeType="ADO"
// HTTP="false"
// Catalog=""
// Schema=""
var MM_tracks_STRING = "dsn=tracks;"
and the link on the ASP pages is
<%@LANGUAGE="JAVASCRIPT"%>
<!--#include file="Connections/tracks.asp" -->
<%
var rstracks_cmd = Server.CreateObject ("ADODB.Command");
rstracks_cmd.ActiveConnection = MM_tracks_STRING;
rstracks_cmd.CommandText = "SELECT * FROM tracks ORDER BY
Suburb ASC";
rstracks_cmd.Prepared = true;
var rstracks = rstracks_cmd.Execute();
var rstracks_numRows = 0;
%>
Can anyone help me modify this to get it working?

replace this:
<!--#include file="Connections/tracks.asp" -->
With this:
<%
Dim MM_tracks_STRING
MM_tracks_STRING = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\SomeFolder\SomeDatabase.mdb;"
%>
Be sure to keep the MM_tracks_STRING = line on one line
Ken Ford
Adobe Community Expert
Fordwebs, LLC
http://www.fordwebs.com
"XaeroRamirez" <[email protected]> wrote in
message news:eto73e$29c$[email protected]..
>I created some ASP pages for a database and while onmy
local machine everything
> was good.
> When uploaded to my host the connection failed and they
suggested a DSNless
> connection, i reasearched it on the net and there were
several tutorials but
> none of them worked.
> The current connection is
> // FileName="Connection_odbc_conn_dsn.htm"
> // Type="ADO"
> // DesigntimeType="ADO"
> // HTTP="false"
> // Catalog=""
> // Schema=""
> var MM_tracks_STRING = "dsn=tracks;"
>
> and the link on the ASP pages is
> <%@LANGUAGE="JAVASCRIPT"%>
> <!--#include file="Connections/tracks.asp" -->
> <%
> var rstracks_cmd = Server.CreateObject
("ADODB.Command");
> rstracks_cmd.ActiveConnection = MM_tracks_STRING;
> rstracks_cmd.CommandText = "SELECT * FROM tracks ORDER
BY Suburb ASC";
> rstracks_cmd.Prepared = true;
>
> var rstracks = rstracks_cmd.Execute();
> var rstracks_numRows = 0;
> %>
>
> Can anyone help me modify this to get it working?
>

Similar Messages

  • Using Password with DSNless connection to Access DB

    Has anyone actually used a password to connect to a local Access database? I keep getting the "Not a valid password" error.
    I have created an application for distribution and do not want to allow the users to change my database, so I put a password on it. Because the users can create new databases with the program, I would like to use a DSNless connection to allow the user to change the databases easily.
    I have successfully worked with the database through a DSN connection with the password, and with the DSNless connection without a password, but am unable to get in with a DSNless connection and a password.
    I have read as many postings and topics using the main key words as I can find in the APIs, forums, tutorials, bug databases, etc., but this topic is not addressed.
    I have tried as many permutations on the advice I did find, and nothing works so far. Here are a few of the tries I made:
    String theurl = "jdbc:odbc:Driver={MicroSoft Access Driver (*.mdb)}; DBQ=c:\\demo\demo.mdb;Password=\"demo\"";
    con = DriverManager.getConnection(theurl)
    String userid = "";
    String password = "demo" 
    String theurl = "jdbc:odbc:Driver={MicroSoft Access Driver (*.mdb)};DBQ=c:\\demo\demo.mdb;"
    con = DriverManager.getConnection(theurl,userid,password);What am I doing wrong?
    I would appreciate any help I can get.

    I'm sorry, I should have posted my entire code. As you can see, I have included the Class.forName method. The password that I set on was on the database; I did not create any users. The question about copying a database vs. creating a new one is moot here, because this database was created independently from any others. (However, you are correct in that I am actually copying a "Master" version of the database, not actually creating a totally new one.)
    Here is my code:
    import java.sql.*;
    import java.util.*;
    import sun.jdbc.odbc.*;
    public class testPassword {
      private String theurl;
      private String user = "";
      private String password = "";
      private Connection con;
      private Statement stmt;
      public testPassword() {
        try {
          Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              theurl = "jdbc:odbc:Driver={MicroSoft Access Driver (*.mdb)};" +
                "DBQ=c:\\demo\\demo.mdb;Password=\"demo\"";
          boolean found = false;
          con = DriverManager.getConnection(theurl);
          try {
           stmt = con.createStatement();
           String pword = "";
            String query = "SELECT password FROM SysInfo";   // system Info
            ResultSet rs = stmt.executeQuery(query);
            while (rs.next()) {
              pword = rs.getString("password");
            rs.close();
            stmt.close();
            con.close();
            System.out.println("Inner Password: " + pword);
            System.exit(0);
          } catch (Exception e) {
              System.out.println("Inner failed " + e.toString());
              System.out.println("Outer Password: " + password);
        } catch (Exception ex) {
            System.out.println("Outer failed " + ex.toString());
            System.out.println("URL: " + theurl);   
      public static void main(String [] args) {
           testPassword app = new testPassword();
    }BTW, for those replies that I keep seeing all over the forum that say that you MUST create a DSN, that is NOT correct. Please do a search on "dsnless" or "dsn-less" and you will see that it is totally feasible.

  • Automatically create ODBC DSN connection with special port and password. Add-OdbcDsn cmdlet

    Hi,
    I first posted a question in the SQL forum but I'm posting it here instead because its a Powershell question.
    In a non-persitent VDI enviroment we are trying to automatically create a ODBC DSN connection to a SQL server.
    We are using Windows 8.1 so we also have Powershell 4 together with the add-odbcdsn cmdlet. 
    But when trying to add set -SetPropertyValue for network port different than default and a password we get an error.
    here is the command:
    Add-OdbcDsn -Name test -DriverName "SQL Server" -DsnType User -SetPropertyValue @("PWD=test", "SERVER=10.0.0.1")
    and here is the error message:
    Add-OdbcDsn : Attempt to set the {UID or PWD} key of a DSN. These keys should not be stored in the registry for securit
    y reason. Provide the credential information at runtime via SQLDriverConnect, SQLConnect or SQLBrowseConnect.
    At line:1 char:1
    + Add-OdbcDsn -Name test -DriverName "SQL Server" -DsnType User -SetPropertyValue @ ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidArgument: (MSFT_OdbcDsnTask:Root/Microsoft/...SFT_OdbcDsnTask) [Add-OdbcDsn], Cim
    Exception
    + FullyQualifiedErrorId : MI RESULT 4,Add-OdbcDsn
    NB!:  this command does not contain a port number, but when adding it without a password(PWD string) we just the default port.

    Hi Primeid,
    Agree with Jrv, we cannot store  UID and PWD in an ODBC datasource, For example, you can create a DSN using the user interface but if you look at the DSN stored in the registry the UID and PWD are not stored.
    ODBC it is always required when you connect using a DSN that the caller supply UID and PWD if they want to use standard login during connection time. 
    These similar discussion are for your reference:
    Creating ODBC DSN for SQL Native
    Client fails for not-integrated authentication
    is user name and password required in ODBC admin / User DSN?
    In addition, to read data from a SQL Server database using an ODBC DSN with SQL Authentication via powershell, please refer to this script:
    Open SQL database with ODBC DSN and SQL AuthenticationIf
    there is anything else regarding this issue, please feel free to post back.
    If you have any feedback on our support, please click here.
    Best Regards,
    Anna Wang
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • ODBC (RDO) Connection Information : DataBase Server ID Greyed out

    Post Author: Eany
    CA Forum: Data Connectivity and SQL
    When I select the refresh option (Crystal XI) for a report which previously worked fine, I get sent to the ODBC (RDO) connection Information screen.
    The first box for Server ID is greyed out.
    When I go to enter the password, I get
    Login Failed
    HY000 General Error : Invalid file dsn  Database Vendor Error 556.
    But If I then create a new report, selecting the same dsn as was used for the report above, there is no problem.

    Hi Thib,
    It won't work, WEB servers do not allow you to "Browse" their folder structures directly. You could how ever create a WEB Service to do this, it does the querying for you and then passes the data back. You'll have to search the WEB for more info on how to create a WEB Service and then check with your security guys if this is something you want to do.
    Bottom line is ODBC or native or OLE DB is not going to work. And if you do open it up so you could it would be a major security hole for anyone to get to.
    Other options are to create a VPN server so you can remotely connect to the server and get direct access to the table.
    There are other options also, what you want to do is not doable.
    You did not say why you want to do this? Add more info and someone may have a suggestion for you.
    Major DB's like Oracle, MS SQL Server and others allow this to work through their clients so you may want to look at that option also.
    Thank you
    Don

  • Crystal Reports and ODBC (RDO) connection

    Hi,
    I'm using SQL Server 2005 and Crystal Reports 2008. I connected my Crystal Report to the SQL database using an ODBC (RDO) connection. In the past I was able to add a field to a table in the database, and I was able to see the new field immediately in Crystal Reports.
    Now, when I add a new field to a table in the database I'm not able to see the new field and I no longer receive updates when something changes in the database. Two questions:
    1)Any idea what might be causing the disconnect between the database and my report?
    2)Is ODBC (RDO) the recommended connection for what I'm trying to do?

    Once you connect to your DB then click on Database and Verify database. This will update the filed list in Crystal.
    OLE DB is actually a better connector to use as it has more power than ODBC.
    Thank you
    Don

  • Dreamweaver & DSNless connection

    Dreamweaver & DSNless connection
    I am fairly familiar with Dreamweaver and creating static web
    pages. However this is my first attempt at a dynamic webpage and I
    have hit several hurdles.
    First I setup a DSN connection...but was later told by my
    host that a DSNless connection would work better. So that is what I
    am not working on.
    They told me to use the following script
    Set oConn=Server.CreateObject("ADODB.Connection")
    filePath = Server.MapPath("Your Access DB File")
    oConn.Open("Provider=Microsoft.Jet.OLEDB.4.0;Data Source="
    +filePath)
    So I did that I entered this script into the Database/Custom
    Connection String/Connection string in Dreamweaver CS3
    Set oConn=Server.CreateObject("ADODB.Connection"); filePath =
    Server.MapPath("echohockeydb.mdb");
    oConn.Open("Provider=Microsoft.Jet.OLEDB.4.0;Data Source="
    +\echohockey\Database)
    When I click "Test" I get the following error
    Unknown error 0x800A0BB9
    Arguements are of the wrong type, are out of acceptable
    range, or are in conflict with one another.
    Since I am just learning, I don't know if I entered the
    information in the script wrong, or if my problem lies elsewhere.
    The really frustrating part is that my page is uploaded and it
    works, but I need to change the data that is on the page. When I go
    back to add/edit the record sets it tells me that it cannot find
    the record set or the database connection.
    Is the problem obvious? Do you need mor info to troubleshoot?
    Sorry for this question, I am teetering on the edge of being out of
    my league with this project.
    THANKS!

    "Dante2004" <[email protected]> wrote in
    message
    news:[email protected]...
    > Still working on this...
    >
    > Learning more as I go...I have two connection files for
    the DSNless
    > connection
    >
    > connECHOHockey.asp
    > <%
    > Set oConn=Server.CreateObject("ADODB.Connection")
    > filePath = Server.MapPath("Database\echohockeydb.mdb")
    > oConn.Open("Provider=Microsoft.Jet.OLEDB.4.0;Data
    Source=" +filePath)
    > %>
    >
    > And connECHOHockey2.asp
    > <%
    > ' FileName="Connection_ado_conn_string.htm"
    > ' Type="ADO"
    > ' DesigntimeType="ADO"
    > ' HTTP="true"
    > ' Catalog=""
    > ' Schema=""
    > Dim MM_connECHOHockey2
    > MM_connECHOHockey2_STRING = Driver={Microsoft Access
    Driver (*.mdb)}
    > Dbq=C:\Inetpub\wwwroot\echohockey\Database\echohoc
    keydb.mdb;
    > %>
    >
    > I figured out why the pages that work, are working. They
    are referencing
    > connECHOHockey.asp The problem is, that when I goto
    Application|Databases
    > in
    > DW, it only lists connECHOHockey2.asp When I go into the
    > connECHOHockey2.asp
    > database to add bindings, it says that it is unable to
    select tables with
    > this
    > connection. If I goto databases and test the connection
    I get this
    > error...
    >
    > "Format of the initialization string does not conform to
    the OLE DB
    > specification".
    >
    > I haven't gotten this error before. Not sure if this is
    progress or not.
    Unless the forum mangled your code (doesn't seem like it
    because
    connECHOHockey looks okay)
    You are missing quotes in the MM_connECHOHockey2_STRING
    connectionstring
    MM_connECHOHockey2_STRING = "Driver={Microsoft Access Driver
    (*.mdb)};Dbq=C:\Inetpub\wwwroot\echohockey\Database\echohoc
    keydb.mdb;"
    The problem with MapPath in a dreamweaver connectionstring is
    that
    dreamweaver doesn't execute that function, you can try fixing
    this by
    defining the connectionstring twice, first with the full path
    of the
    database on your local machine (this is what dreamweaver will
    use), and
    second with the mappath, it'll override the connectionstring
    when the page
    is executed by the server, but not by Dreamweaver because it
    only looks for
    the first string.
    <%
    ' FileName="Connection_ado_conn_string.htm"
    ' Type="ADO"
    ' DesigntimeType="ADO"
    ' HTTP="true"
    ' Catalog=""
    ' Schema=""
    Dim MM_connECHOHockey2
    MM_connECHOHockey2_STRING = "Driver={Microsoft Access Driver
    (*.mdb)};Dbq=C:\Inetpub\wwwroot\echohockey\Database\echohockeydb.mdb;"
    MM_connECHOHockey2_STRING = "Driver={Microsoft Access Driver
    (*.mdb)};Dbq="
    & Server.MapPath("Database\echohockeydb.mdb") & ";"
    %>
    Joris

  • JDBC ODBC bridge connections using 2.1.1

    Hi,
    I have reviewed a lot of postings related to JDBC and third party drivers and understand how to connect to the packaged drivers such as MySQL and MS SQL Server/Sybase. Where I'm stuck is the reference in the Connections help to JDBC. We have a ODBC system DSN that's not part of the existing JDBC drivers. The help implies it's possible to create a JDBC:ODBC bridge connection and that JDBC:ODBC bridge functionality is part of the JDK therefore should not require additional jar files. However, the JDBC tab is not an available connection type by default. I traced the JDBC ODBC bridge to the rt.jar and tried adding that to the third party extensions but that has not resulted in the JDBC tab becoming available.
    Is the JDBC tab only available when using commercial JDBC ODBC bridge drivers ?
    For all other connections (DB2, TimesTen, Teradata etc) the help is very specific about which jar files you need and any other requirements but the JDBC section it is unclear how you enable JDBC connectivity.
    Thanks
    Steven
    Edited by: slisint on 14-Jan-2011 18:07

    We are using the JDBC-ODBC bridge to do a prepared
    statement. I have seen other bugs that suggest this
    is problematic with older version of JRE, but was
    supposedly fixed in later versions.
    java.sql.SQLException: General errorIf it is not too late, check the following link:
    http://java.sun.com/j2se/1.3/docs/guide/jdbc/getstart/GettingStartedTOC.fm.html
    Sections 6.1.3 and 8 (especially tables at the end).
    I had the same case, and the problem was that the field in the Oracle database was defined as NUMBER(4), witch is equivalent to INTEGER in JDBC types, and function setInt should be used with INTEGER, instead of setLong.
    This is explained in sections I mentioned.

  • JDBC-ODBC-Bridge connection to SQL Database

    Hi guys
    I have a problem. I've made a little game which I want to put on my website. It has a highscore-list which I want to connect to my web host's database server to get the current list.
    I tried this with JDBC and got it to work locally but when I uploaded it to my site it didn't work. I contacted my web host's technical support who told me that their server didn't have the JDBC driver and that I should use ODBC instead. I did lots of reading and found out about this JDBC-ODBC-Bridge. I have since been trying to implement this into my program but hasn't been successful.
    In my original JDBC connection I used
    private String url = "jdbc:mysql://" + host +  "/" + mydatabase;
    Class.forName("com.mysql.jdbc.Driver");
    Connection connection = DriverManager.getConnection(url, username, password);Now I'm trying
    private String url = "jdbc:odbc://" + host + "/" + database;
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection connection = DriverManager.getConnection(url, username, password);But, at least when trying it locally, I get the error
    java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name is too long.
    at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6957)
    at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7114)
    at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:3073)
    at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:323)
    at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:174)
    at java.sql.DriverManager.getConnection(DriverManager.java:582)
    at java.sql.DriverManager.getConnection(DriverManager.java:185)
    at HighscoreDB.readFile(HighscoreDB.java:53)
    at HighscoreDB.displayList(HighscoreDB.java:97)
    at HighscoreDB.main(HighscoreDB.java:33)Please help ;)
    Edited by: YZF-R1 on 2009-apr-09 13:26

    YZF-R1 wrote:
    masijade. wrote:
    Do you know what ODBC is?I think I at least have the basic idea, I learnt most of what I know from this post:
    [http://forums.sun.com/thread.jspa?threadID=211735&start=2&forumID=48]
    masijade. wrote:
    While "reading about this JDBC-ODBC Driver" did you also read about how to enter the URLs for it?No, I couldn't find that piece of information, why don't you tell me ;)
    Here
    >
    masijade. wrote:
    Did also read about the fact about needing to configure ODBC DSNs? Or about the fact that the connection URL is radically different if you don't configure one?No I did not. Please explain =)
    Here
    >
    PhHein wrote:
    Plus, JDBC-ODBC Bridges are evil!I'm beginning to realize this myself :O:(
    BalusC wrote:
    Drop that whole ODBC idea and just gently read the documentation which come along with the MySQL JDBC driver.I read a lot of it when I used the JDBC driver locally but how's that going to help me if the server doesn't have the JDBC driver installed?How will the Bridge help you if the ODBC Driver is not installed? And, the JDBC Driver (the Type 4.0 ones, which the MySQL Driver is) is 100% Java, so it can even be included in an Applet, if the HTML page that accesses it is done right, and the jars are "packaged" properly.

  • Informatica Workflow Manager ODBC Relational Connection for ETL in DAC

    In Informatica Workflow Manager, I have created a Relational Connection of type ODBC and specified Connect String as "DSN=BIEEDW" where "BIEEDW" is the System ODBC DSN already set pointing to a SQL Server 2008 database.
    However, when the ETL run in DAC, the following error occurs in Session log files showing that the database and driver cannot be located:
    MAPPING> CMN_1569 Server Mode: [UNICODE]
    MAPPING> CMN_1570 Server Code page: [MS Windows Traditional Chinese, superset of Big 5]
    MAPPING> TM_6151 The session sort order is [Binary].
    MAPPING> TM_6156 Using low precision processing.
    MAPPING> TM_6180 Deadlock retry logic will not be implemented.
    MAPPING> TM_6187 Session target-based commit interval is [10000].
    MAPPING> TM_6307 DTM error log disabled.
    MAPPING> TE_7022 TShmWriter: Initialized
    MAPPING> DBG_21075 Connecting to database [DSN=BIEEDW], user [bieedw02]
    MAPPING> CMN_1761 Timestamp Event: [Wed May 22 01:29:17 2013]
    MAPPING> CMN_1022 Database driver error...
    CMN_1022 [
    [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
    Database driver error...
    Function Name : Connect
    Database driver error...
    Function Name : Connect
    Database Error: Failed to connect to database using user [bieedw02] and connection string [DSN=BIEEDW].]
    Any hint in setting the Connect String for ODBC Relational Connection?

    Hi,
    Let me tell you the real story:
    Our server architecture consists of two servers:
    Windows Server 2008 R2 (64-bit) platform with the following installed:
    - SQL Server 2008
    - DAC 10.1.3.4.1
    - OBIEE 11g
    - BI Apps (Financial Analytics) 7.9.6.3
    - Informatica Server 9.1.0 HotFix 2
    Windows Server 2003 Enterprise Edition SP2 (32-bit) platform with the following installed:
    - Informatica Clients (i.e. Workflow Manager, Repository Manager, Designer and Workflow Monitor)
    And thus the ODBC Relational Connection is configured in Informatica Client machine (Workflow Manager) which is a 32-bit platform.
    Any idea?

  • Using Oracle ODBC Gateway connecting to a remote Oracle database

    Oracle 11gR2
    RHEL 6.4
    Has anyone use the Oracle ODBC Gateway to connect to another Oracle database?  Any issues with that configuration?  Where do I get the ODBC drivers for Linux?
    (I know, "why not use a dblink?" -- well that would be against company security policies)

    Hi,
       From the Oracle point of view we support using DG4ODBC for Oracle to Oracle connections. However, we have not actually tested it as DG4ODBC is primarily designed for access to non-Oracle databases.
    How DG4ODBC will work between Oracle databases depends on the ODBC driver and what that supports. You will need an ODBC Oracle driver which you can get from various suppliers including Oracle but also vendors such as DataDirect, Easysoft etc. You could try a Google search.
    You say you do not want to use database links but that is how DG4ODBC is used, You cannot do -
    sqlplus user/password@dg4odbc_oracle
    Once Dg4ODBC is setup and configured as in this note - if you are using Linux 64-bit -
    How to Configure DG4ODBC on 64bit Unix OS (Linux, Solaris, AIX, HP-UX Itanium) to Connect to Non-Oracle Databases Post Install (Doc ID 561033.1)
    then in the Oracle database you create a database link and select from tables in the other Oracle database -
    select * from table@dg4odbc_db_link ;
    Regards,
    Mike

  • ODBC Error connecting to a stored procedure SQL Server 2008 - Crystal 8.5

    I am running a local copy of SQL server 2008 and get an ODBC error when connecting to any stored procedure with or without parameter. The database are running in SQL Server 2000 compatibility mode on the local server.
    Do not get the error when connecting to one or more databse tables or when connecting to a stored procedure on a remote database.
    The error reported is "ODBC error:[Microsoft][ODBC SQL Server driver] Syntax error or access violation"
    I am running Vista OS.
    Any help would be appreciated..

    Hello,
    Interesting combination. All but CR 8.5 is supported on that OS.
    When you created your DSN did you using the 2008 Client or MDAC?
    I suggest you go back to supported platforms for CR 8.5
    If not then start debugging Vista permissions to start with...
    good luck
    Don

  • ODBC Filemaker Connection

    I have created a 32 bit system DSN to my filemaker database with connection success.  When i log into the Coldfusion admin and try and set a database... I name it and select ODBC socket... when it does to the next screen the ODBC DSN drop down is empty.  Does anyone know why and how I fix it?  (I am testing local 127.0.0.1 Windows 7) thanks.

    Hi Scarecrow,
    The only gotchas I can see, from a cursory perusal of other
    discussions, is that 1) the FM server must be configured for remote
    access, and 2) the Filemaker server must be running with the target
    database open. AFAIK, FM doesn't allow simple ODBC file access as
    we are used to with other DB products.
    Good luck!

  • How to create odbc (dsn) connection for OBIEE AND INFOR in unix environment

    Hi,
    we are establishing OBIA in Unix environment we set all the things fine but we are getting problem how to create ODBC connection
    for INFORMATICA AND OBIEE. I searched some blogs thats telling there is a ODBC.INI file we need to configure.
    but i am not getting clear idea to give parameters and it will not showing any TNSNAME ..........etc
    please any body give clear idea about how to create ODBC connection and LOCATION of that file AND parameter which i need to give.
    Thanks,
    charan....

    Hi Dpka,
    yah i already checked that one but i have not find out any parameter for TNS NAME information.
    is OBIEE connected to ORACLE DATA BASE without giving TNS information?............in UNIX OPERATING SYSTEM.
    pls give me the clear idea abt how to connect OBIEE, INFORMATICA to ORACLE DATA BASE IN UNIX ENVRNMENT
    thanks,
    charan.

  • Jdbc:odbc driver connection issues

    I need to use the jdbc:odbc driver to access a non-oracle db from a jsp. I am sure my dsn is fine as I can use a non JSP java app to connect to the odbc db. I have loaded the sun.jdbc.odbc classes in the schema I am working in as it is not loaded by default in 9.2.0.7 currently I am on a windows system. I have found the following:
    public static void doTest()throws Exception{
    // load the local Oracle Driver
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    connLocalOracle = new OracleDriver().defaultConnection();
    // load the odbc driver
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    if I exit at this point the jsp does not through an exception
    however if I include the line:
    connODBC = DriverManager.getConnection(odbcURL,"XX","XX");
    I get the error:
    SQL> execute do_jdbc_odbc_test;
    BEGIN do_jdbc_odbc_test; END;
    ERROR at line 1:
    ORA-29532: Java call terminated by uncaught Java exception:
    java.lang.UnsatisfiedLinkError: sun.jdbc.odbc.JdbcOdbc.allocConnect
    ORA-06512: at "TU1.DO_JDBC_ODBC_TEST", line 0
    ORA-06512: at line 1
    So I am assuming I am loading the driver but the driver is not talking to the odbc configuration in windows.
    What permissions would I need to give to the user to allow this connection to occur?
    How can I find out if this is indeed the case?
    If not how can I make this connection happen using ODBC?

    If by jsp you mean Java Stored Procedure, the hybrid JDbc-ODBC stack won't work. You can connect to non-Oracle RDBMS from within Java in the database by using a pure Java JDBC driver of the target RDBM. Fwiw, a complete example connecting to SQl Server from with JavaDB is described in my upcoming book. (See http://db360.blogspot.com/)
    Kuassi

  • Error 10061 WSAECONNREFUSED when I do ODBC Test Connection!

    Hi
    Am still trying to create a DSN in ODBC however can't get the connection to work..
    Any help and Suggestions greatly appreciated!!
    Regards
    Meir R

    Hello,
    Please, check if you have the right ODBC driver. You should choose Oracle in XEClient.
    Then, for the connexion you'll have to set the following:
    Data Source Name: {color:red}name{color}
    Description: {color:red}description{color}
    TNS Service Name: {color:red}127.0.0.1:1521/XE{color}
    User ID: {color:red}Oracle user{color}In fact I thought at first you wanted to connect with the browser and for it you have to
    use the port 8080.
    For ODBC you need the Listener port which by default is *1521*.
    Please, let me know if it works.
    Hope it can help.
    Best regards,
    Jean-Valentin

Maybe you are looking for

  • Wireless key is not working on my Satellite 1410

    I have Satellite 1410-303 system. I installed one broadcom802.11b/gwlan its working properly but I cannot off and on by fn-f8 key using. I want solve the problem. Can anybody offer a solution?

  • Directly procured materials in stock help

    To All We currently have a problem when dealing with directly procured materials. Following a completed build of our product we have a surplus of directly proceured materials that have been ordered in error or are a result of specification changes. W

  • Got email saying my subscription has expired?

    Just paid my membership, got an email stating it had been paid for, and then got an email today saying it's expired? Don't know what's going on. Please help.

  • 781084 - Cannot add document which needs approval to a Service Call

    Hi Experts, Is there any update on this error per SAP Note 781084? Symptom: When linking a sales document, which needs to be approved via an approval procedure, to a Service Call under the Expenses tab page, the document will not be displayed in the

  • Can anyone explain me abt Cash inflow and outflow

    Hi all, Can anyone explain me the cummulative cash inflow and out flow available while creating an info object. with an example in realtime scenario. thanxs in advance hari