Access ODBC Database source

I have setup the ODBC Database source ,but when I run the form builder of the developer6i under windows2000,connect with
('username/password@odbc:database source name') ,It don't successed
I think it maybe is developer6i's problem itself.
plese help me
null

<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Javier Sirvent:
There are a patch for Forms6i (NT) that includes OCA 6.0.0.35 at oracle page.
http://otn.oracle.com/software/products/forms/software_index.htm <HR></BLOCKQUOTE>
I am ok thank you very much!
null

Similar Messages

  • Access odbc data sources from PL/SQL

    Dear All,
    I would like to know is there any way where i could access odbc data sources from pl/sql (i.e i would like to insert, update records into MSAccess table from pl/sql procedures, triggers). Would appreciate any help regarding this.

    The only way I know of how is to write and external function library and use that to access ODBC datasource ...if someone else knows something else I would be interesting in hearing about that also.

  • Accessing ODBC Database through CF and Dreamweaver

    Ok, so I have a db connection set up under the ODBC administrator.  It is using Oracle 8 or 9 (can't remember) but it is what I use so that I can connect to it through my company's Accounting Software.  I want to query it using Dreamweaver and make a CF page of the query.
    Here's what I've done:
    In CF Admin, I created the datasource, chose ODBC, chose the Server name and username and pw and it connected successfully.
    Went into Dreamweaver, added the datasource and Tested Connection--it connected successfully.  I can even expand the Tables tree and see the tables.
    Now, when I create a query in a new CF document, I get an error when the query runs (like if I'm editing the Record Set and I click Test, it gives me an error).
    Here is the error:
    MM_ERROR:-1:[Macromedia][SequeLink JDBC Driver][ODBC Socket][Oracle][ODBC][Ora]ORA-00942: table or view does not exist
          java.sql.SQLException: [Macromedia][SequeLink JDBC Driver][ODBC Socket][Oracle][ODBC][Ora]ORA-00942: table or view does not exist
          at macromedia.sequelink.ssp.Diagnostic.toSQLException(Unknown Source)
          at macromedia.sequelink.ssp.Chain.cnvDiagnostics(Unknown Source)
          at macromedia.sequelink.ssp.Chain.decodeDiagnostic(Unknown Source)
          at macromedia.sequelink.ssp.Chain.decodeBody(Unknown Source)
          at macromedia.sequelink.ssp.Chain.decode(Unknown Source)
          at macromedia.sequelink.ssp.Chain.send(Unknown Source)
          at macromedia.sequelink.ctxt.stmt.StatementContext.execDirect(Unknown Source)
          at macromedia.jdbc.sequelink.SequeLinkImplStatement.execute(Unknown Source)
          at macromedia.jdbc.slbase.BaseStatement.commonExecute(Unknown Source)
          at macromedia.jdbc.slbase.BaseStatement.executeQueryInternal(Unknown Source)
          at macromedia.jdbc.slbase.BaseStatement.executeQuery(Unknown Source)
          at coldfusion.server.j2ee.sql.JRunStatement.executeQuery(JRunStatement.java:132)
          at coldfusion.rds.DbFuncsServlet$DbSqlStatementOperator.processCmd(DbFuncsServlet.java:453)
          at coldfusion.rds.DbFuncsServlet.processCmd(DbFuncsServlet.java:77)
          at coldfusion.rds.RdsServlet.doPost(RdsServlet.java:80)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
          at coldfusion.rds.RdsFrontEndServlet.doPost(RdsFrontEndServlet.java:104)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
          at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
          at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
          at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
          at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
          at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
          at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
          at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
          at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
          at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
          at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    Here is the CFM page code:
    <cfquery name="qGetTB" datasource="khamp">
    SELECT ALL
    KHAMELEON.GL_DETAIL.BATCH_NO,
    KHAMELEON.GL_DETAIL.ACCOUNT,
    KHAMELEON.GL_DETAIL.TRX_DES1,
    KHAMELEON.GL_DETAIL.AMOUNT,
    KHAMELEON.GL_DETAIL.BK2_AMT,
    KHAMELEON.GL_ENTITY_MASTER.ENTITY,
    KHAMELEON.GL_DETAIL.SOURCE,
    KHAMELEON.GL_DETAIL.FYEAR,
    KHAMELEON.GL_DETAIL.PERIOD,
    KHAMELEON.GL_DETAIL.TRX_DES2,
    KHAMELEON.GL_DETAIL.ACCTG_DATE,
    KHAMELEON.GL_ACCOUNT.DES1
    FROM KHAMELEON.GL_DETAIL,
    KHAMELEON.GL_ACCOUNT,
    KHAMELEON.GL_ENTITY_MASTER
    WHERE (KHAMELEON.GL_DETAIL.FYEAR='2009' AND KHAMELEON.GL_DETAIL.PERIOD BETWEEN '01' AND '06')
    AND KHAMELEON.GL_DETAIL.ACCOUNT='60700'
    AND ((KHAMELEON.GL_ACCOUNT.ACCOUNT=KHAMELEON.GL_DETAIL.ACCOUNT)
    AND (KHAMELEON.GL_ENTITY_MASTER.ENTITY=KHAMELEON.GL_DETAIL.SUB_ENTITY))
    ORDER BY KHAMELEON.GL_DETAIL.ACCOUNT ASC,
    KHAMELEON.GL_DETAIL.TRX_DES1 ASC
    </cfquery>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Ventyx Financial Reports</title>
    </head>
    <body>
    <table border="1">
      <tr>
        <td>ACCOUNT</td>
        <td>DES1</td>
        <td>ENTITY</td>
        <td>AMOUNT</td>
      </tr>
      <cfoutput query="qGetTB">
        <tr>
          <td>#qGetTB.KHAMELEON.GL_DETAIL.BATCH_NO#</td>
          <td>#qGetTB.KHAMELEON.GL_DETAIL.ACCOUNT#</td>
          <td>#qGetTB.KHAMELEON.GL_DETAIL.TRX_DES1#</td>
          <td>#qGetTB.KHAMELEON.GL_DETAIL.AMOUNT#</td>
        </tr>
      </cfoutput>
    </table>
    </body>
    </html>
    Do you know what is going wrong?  Also, when I edit the recordset, there is a place for username and pw but if I entere it there, it shows up plaintext in the cfm code which doesn't sound like a good idea.  Do I have to enter it there?  Even if I do, I still get the error.

    Yes, if you use the Oracle driver, you can create the Oracle dataconnection directly in ColdFusion by providing it the SID, Server, Port, Username and Password for the oracle database to which you are trying to connect.
    Using this dirver means you don't need to set up any ODBC or Oracle Listner clients on the maching for ColdFusion.  Other software that maybe using those connections is a different matter of course.
    ODBC is a ODBC to JDBC bridge that allows ColdFusion to connect to any ODBC connectors you have set up on the Microsoft ODBC pannel.
    But you do need a function Data Source configured in the ColdFusion administrator, whether it be an Oracle, ODBC, or "Other" JDBC driver.

  • Accessing ODBC Databases

    Eclipse ODBC

    <p>If you search the web you will likely find a number of JDBC-ODBC drivers. Sun does not officially recommend using their JDBC-ODBC driver in production. However, once you have a supported driver it should work. The other option is to convert to a native JDBC driver. You can use the SetDataSource location wizard to help modify the report to use the new JDBC datasource. Hope this helps. </p><p>Regards,<br />Sean Johnson (CR4E Product Manager) <br /><br /> <a href="http://www.eclipseplugincentral.com/Web_Links-index-req-ratelink-lid-639.html">Rate this plugin @ Eclipse Plugin Central</a>          </p>

  • Excel-2007 cannot connect to Oracle ODBC data source, Control Panel can.

    <p>
    I cannot make an ODBC connection from Exce-2007 to Oracle work. I am an expert Excel and VBA user (since 1994) and I have frequently used Excel to access ODBC databases, including Oracle (I have done this with Excel-2003 both with worksheet queries and have written VBA ADO-connection routines). And even though in Excel-2007 a worksheet ODBC query is supposed to be easier to create than in previous version of Excel, my connection fails. Any suggestions and all help are welcome and much appreciated.
    DETAILS
    </p>
    <p>
    1) <strong>What is my system?</strong> I am using Excel-2007 on Windows Vista x64 and Oracle server v.11g on my computer (all this is on my computer, no network issues).
    2)<strong> Why use Excel with Oracle at all?</strong> I use Excel-2007 to access Oracle rather than Access-2007 (or any other application like TOAD, etc.) because I do engineering calculations with the data stored in Oracle. These calculations are easier done in Excel (I suppose that one alternative to this could be to use some sql or Access to get the data from the database, then store it as plain vanilla CSV file, then open this file in Excel, then do the math (the math involves complex optimisation algorithms), then save the results as CSV, then use some sql or Access to put the data back into the database. Howwever this does not strike me as a quick or neat solution. And after all Excel has been designed to access ODBC databases, so why not use it?)
    3) <strong>What do I do in Excel-2007 that won't work?</strong> I create an ODBC link to Oracle that does not work. In Excel-2007 this is straightforward:
    </p>
    <ul>
         <li>define an ODBC connection (Data tab --&gt; From other sources --&gt; From data connection wizard);</li>
         <li>define a query on the worksheet -- that's it, this is all!</li>
    </ul>
    <p>
    I start with creating an ODBC connection:
    a) I choose an ODBC data source type: <strong><em>ODBC DSN</em></strong>
    b) Excel-2007 displays the list of the available ODBC data sources. I see in it <strong><em>my Oracle database name</em></strong> and I select it.
    c) Excel-2007 displays the Data Link Properties:
    - the "Provider" has a list of the OLE DB drivers with preselected "<strong><em>Microsoft OLE DB Provider for ODBC Drivers</em></strong>". I keep this default selection.
    - the "Connection" tab has a connection string "<strong><em>DSN=&lt;my database name&gt;</em></strong>" which I keep, it also has fields for the <strong><em>user name</em></strong> and the <strong><em>password</em></strong>, which I fill with the correct credentials.
    - Finally there is a button "Test Connection", which when I click produces the following error message:
    <strong><font color="#ff0000">"Test connection failed because of an error in initializing provider.</font></strong><strong><br />
    </strong><strong><font color="#ff0000">Unespecified error"</font></strong><strong>
    </strong>
    4) <strong>Additional food for thought:</strong>
    a) In the above walk-through the only data, which I type, are the user name and password, everything else is selected from lists offered by Excel-2007, hence any possibility of typos being the cause of the problem can safely be discarded.
    b) I can test the ODBC driver in the Control Panel and it shows that it can connect to the Oracle database:
    - in <strong><em>Control Panel --&gt; Admin Tools --&gt; Data Sources (ODBC)</em></strong> on the "User DSN" tab I can see the list of the available ODBC data sources (same list as in Excel-2007, point 3b above) with the name of my database in it;
    - selecting the name of my database from the list of the sources and clicking "Configure" button opens a tab with <strong><em>Data Source Name</em></strong> (same as in Excel-2007), TNS Service Name and User ID. I enter <strong><em>&lt;user name&gt;/&lt;password&gt;</em></strong> and click "Test Connection" button. A message "<strong><em>Connection successful</em></strong>" appears (just for a test I enter <u>incorrect user credentials</u> and "<strong><em>Unable to connect</em></strong>" message appears)
    BOTTOM LINE
    </p>
    <p>
    The procedure for using an ODBC connection from Excel is very simple, in the past I have created and used such connections numerous times with Excel-2003 and earlier on Win-XP and earlier. But now on Excel-2007 and Vista-x64 I cannot make it work.
    Also, testing an ODBC connection driver is really easy and simple to be done in the Control Panel. There testing the same ODBC connection, which fails in Excel-2007, results in success.
    I am frustrated by the simplicity of the problem and yet the persistant error. I have lost now two full days in failed attempts to make the simple procedure work and in searching the internet for answers.
    All help is highly appreciated <img class="emoticon" src="images/emoticons/happy.gif" border="0" alt="" width="16" height="16" />,
    Plamen
    </p>

    Did you find the solution to your problem?
    If not, I think I may know.
    Excel 2007 is a 32-bit application.
    When installing 32-bit applications in a 64-bit environment, the "default" location is:
    C:\Program files (x86)\...
    Excel then launches from this location.
    However, when it connects to Oracle and passes the name of the calling program, Oracle attempts to "interpret" the value of (x86) as if
    the value within the parenthesis are being passed as a reference. Of course, iOracle doesn't find anything, so the result is (),
    and then it cannot return the connection info back to the calling application.
    I corrected it by installing Excel in C:\Program Files\, and once launched from that location, it works the same as on the 32-bit machines.
    However, at my location, they are FORCING Excel to be installed in the(x86) location.
    What I'm trying to discover now is:
    Is it possible to flag Oracle to NOT process the embedded variables?
    Or, is it possible to assign a variable in Oracle such that x86 = "(x86)", so that the end result is viable?
    Have you had any luck with your installation?
    thanks,
    Paul

  • Access As Database data source + licensing

    Hello,
    If I was to develop an application with Microsoft Access as the data source, I can connect to the Access database like so
         update the database
       private boolean updateDatabase(String value)
                 try
                       Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                 catch (Exception e)
                       System.out.println("Failed to load JDBC/ODBC driver.");
                       return false;
                 try
                 {  createDatabaseConnection();
                     query="UPDATE Sonething SET value='"+value+"' WHERE Name='Chris'";
                        stmt = con.createStatement();
                        stmt.executeUpdate(query);
                        con.close();
              catch (Exception e)
                  e.printStackTrace(System.err);
                  return false;
           return true;
         Create a connection to the access database
         using a dsn-less connection
       private void createDatabaseConnection()
            try
                 url ="jdbc:odbc:DRIVER={Microsoft Access Driver(*.mdb)};DBQ=.//dbase//testdb.mdb";     
                con=DriverManager.getConnection(url,"test","password");     
          catch(Exception e)
               e.printStackTrace(System.err);     
    However the questions are as follows, If I use Access as the database source does the client computer need a copy of access and are there any licensing restrictions in distributing the .mdb ?
    THanks
    Chris

    No licence required for this type of access. You can distrubute and use programmaticaly MS Access database.

  • ODBC Data Source Error

    I was having with Crystal communicating with one of my Access databases that had a list box. In Crystal it would take the list box, add and remove letters. It was suggested that I check with my IT department to see if there are any updates. Well they upgraded me from Crystal XI to Crystal XI R2. Things have gone downhill from there. First I couldnu2019t even open the program and they ended up reinstalling everything again. Now I can open Crystal, but all reports I previously created and new ones I try to create cannot make any connection through ODBC. My IT person and I have tried several things even installing a couple new drivers. My IT department does not provide technical support for software so now Iu2019m on my own to figure this out. If anyone can provide me with any assistance or any suggestions where to check I would greatly appreciate it.
    My problem is any time I try to make an ODBC connection to either create or update a report I go through the steps and get an error at the connection information page and cannot go any further. This error happens with MS Access or MS Excel.  The error is "Login Failed. Details: Cannot obtain error message from server. I have no logins or passwords.

    In the Organizer workspace, do a
    File > Catalog > Recover
    command. That command "cleans up" your Elements catalog and often resolves ODBC data source error messages.

  • VB 2008, CR component and MS Acc: how to access with database(not user) pwd

    These are the detail of the query:
    1. MS Access 2003 and later database via OLE DB provide for entry of a u201Cdatabase passwordu201D to provide additional protection.
    2. In VB 2005 and in VB2008 environment I have managed to establish a connection with a database password and open recordsets using ADO connection. See code below.
    Note. stPassword is user password and stDBPassword is database password with the following code:
    With cnn
              'set connection string
              .ConnectionString "Provider=Microsoft.Jet.OLEDB.4.0; Password=" & stPassword & ";Data Source=T:\CPI.mdb;User ID=" & stUser & ";Persist Security Info=False;" & "Jet OLEDB:System database=t:\cpi.mdw;Jet OLEDB:Database Password=" & stDBPassword
              .Open()  
    End With
    3. When using Crystal Reports component supplied with VS 2008 I can only provide USER NAME and USER PASSWORD. No information is available how and where to enter DATABASE PASSWORD to the Crystal Reports component. As a result, Crystal Reports Viewer starts to run. Obviously access is denied because no DATABASE PASSWORD has been provided to the component. A common dialog comes up to enter database password.
    4. User does not necessarily need know the DATABASE password and I am not interested in providing the database password to every user who runs reports. In this project database password serves as a form of protection from tampering with the database structure and contents through the use MS Access to access the database.
    5. Here is the code to demonstrate logon via Crystal Component described above:
    Imports CrystalDecisions.CrystalReports.Engine
    Imports CrystalDecisions.Shared
    And then in a sub:
        Dim cnnInfo As ConnectionInfo = New ConnectionInfo()
        'cnnInfo.DatabaseName = cnn.DefaultDatabase
        cnnInfo.UserID = stUser
        cnnInfo.Password = stPassword
    No place to input DATABASE password!!!
    Does anyone know how can I input database password or provide a connection string or maybe ADO connection object which is opened within the project code.

    It seems like it is not possible to set the DB level password with the CR Visual Studio bundled version (as stated in the following KB c2010267). You would need to use the full version, and use the code below:
    Symptom
    A VB .NET application uses Crystal Reports for Visual Studio .NET as the reporting development tool.
    A report is created that connects to a password protected Microsoft Access Database.
    How do you pass a password (for database level security) or a password and user ID (for user level security) at runtime using the different connection methods(Native/ODBC/OLEDB)?
    Resolution
    To pass the database level password or a user level
    userid/password at runtime, use the following code
    sample:
    'Add the following namespaces to the top of the code
    'page
    Imports CrystalDecisions.CrystalReports.Engine
    Imports CrystalDecisions.Shared
    Dim crReportDocument As New ReportDocument()
    Dim crConnectionInfo as New ConnectionInfo
    Dim crtableLogoninfo As New TableLogOnInfo()
    Dim CrTables As Tables
    Dim CrTable As Table
    crReportDocument = New CrystalReport1()
    With crConnectionInfo
    <**Insert code from below depending on the type of
    connection and the version of Crystal Reports you are
    using**>
    End With
    CrTables = crReportDocument.Database.Tables
    For Each crTable in crTables
    crTableLogonInfo.ConnectionInfo =
    crConnectionInfo
    CrTable.ApplyLogOnInfo(crTableLogOnInfo)
    Next
    CrystalReportViewer1.ReportSource =
    crReportDocument
    Database Level Security
    " For Native and ODBC connections, use the following
    code:
    .Password = "Password"
    " For OLEDB connections, use the following code:
    .Password = chr(10) + "Password"
    ====================
    NOTE:
    You cannot set a database level password when
    using Crystal Reports for Visual Studio .NET 2002 or
    2003.
    ====================
    User Level Security
    " For ODBC and OLEDB connections, use the following
    code:
    .Password = "Password"
    .UserID = "UserID"
    For ODBC connections, in the ODBC data source, you
    have to point the system database to the appropriate
    MDW file. In addition, click the 'Advanced' button and
    specify the User ID and password.
    ====================
    NOTE:
    You cannot set a user level password when using
    a native connection with Crystal Reports 9.2 and
    Crystal Reports for Visual Studio .NET 2002 or 2003.
    This KB is valid for:
    CRYS REPORTS VS .NET.9.1
    CR FOR VS .NET 2005
    CR FOR VS .NET 2008

  • Why do SQL sample programs work when there is no entry for the data sources in the ODBC Data Source Administrator that are used by the sample program?

    Hi,
    I am trying to understand how to access an SQL database from CVI.  
    I don't understand how the sample programs shipped with the toolkit can access the database they use if it is not listed in the ODBC Data Source Administrator.
    In the code, I see the line:
    hdbc = DBConnect ("DSN=CVI SQL Samples");
    However, there is not an entry that I can find in the ODBC Administrator for "CVI SQL Samples."
    The SQL help suggests there should be a User DSN named, "CVI32_Samples", but I don't see that entry in the ODBC Administrator on my win-7 system.
    I believe the sample program is accessing a database file named, "C:\Users\Public\Documents\National Instruments\CVI\Samples\sql\samples.mdb".
    Exactly how is the call to DBConnect() translated to the file, "samples.MDB", if there is no entry in the ODBC Administrator?
    Regards,
    Mark 

    I figured it out.  There is a 32 bit ODBC administrator and a 64 bit ODBC administrator.  The ODBC administrator I run through the control panel is the 64 bit ODBC administrator. To access the 32 bit administrator I need to run, "C:\Windows\SysWOW64\odbcad32.exe".
    I am running the samples in 32 bit mode, so I need to use the 32 bit ODBC administrator.
    Best,
    Mark

  • Instant client installation unavailable in ODBC data sources

    I'm trying to install instant client to enable MS Excel to access an Oracle database. OS is Windows 7.
    After installing instant client plus the odbc package, I can't see a new entry in the odbc data sources - only the standard Microsoft sources (Excel, Access, SQL Server) show up.
    There's also an Oracle SQL developer installation on my computer. Connection to the database works fine in SQL developer - so the DB does exist and it is accessible.
    Steps conducted during instant client installation:
    - Downloaded basic lite instant client (11.2.0.3.0) for windows.x64
    - Downloaded odbc package for windows.x64
    - unpacked zip file to instantclient directory
    - executed the odbc_install.exe in the instantclient directory. I'm not sure if this install.exe does anything at all. There was no error message but also no confirmation or reaction of any kind.
    - executing the install file from the cmd window gave me a message, that the odbc drivers were already installed. So I guess odbc_install.exe was executed properly
    - setting some system variables
         1) path variable: added instantclient directory to the ones already listed in path
         2) tns_admin: new entry, pointing to instantclient directory
         3) ld_library_path: new entry, pointing to instantclient directory
    - wrote an tnsnames.ora file using the connect information also used in SQL developer
    - saved tnsnames.ora file in instantclient directory
    - rebooted computer to activate changes
    When opening the odbc data source administration, I'm only able to see Microsoft drivers for Access, Excel, SQL Server. I'd expect to get an Oracle driver option to add to the installed drivers.
    Wild & uneducated guesses about what might cause the problem:
    - IC is installed on E: drive. Maybe some component is expected to be saved on C: (low likelihood, many others would have complained by now)
    - Win 7 often asks for explicit permission to do this or that via popup windows. Maybe the odbc-component encounters such a request ans says "Ummm....???"
    Any idea, what I might try to get an oracle entry in the odbc data source list?
    Best regards
    Peter
    Edited by: 1003309 on 30.04.2013 05:33

    I'm not sure to be honest, but what I downloaded did not have a setup.exe.
    Does what you're talking about allow you to connect to Oracle databases via ODBC? If so, is it downloadble from the Oracle site?

  • MS Access ODBC to Oracle missing tables

    When linking Oracle 8i tables to a MSAccess database using an ODBC connection, some of the tables are not being shown in the list for selection. I can't seem to find any differences between those tables that are listed and those that are not. This is a PeopleSoft system using Oracle as the backend database. Please help!!!

    I found my the answer to my own question....I used the Oracle Driver that was installed with my client install. For those of you that are trying to connect to Oracle from Access. I had to create the link using VBA, there is an extra parameter that needs passed in the connection to Oracle, the XSM Parameter. This will create a link in Access called "fsdev_PS_MASTER_ITEM_TBL", the source oracle table is SYSADM.PS_MASTER_ITEM_TBL. You must also have the Microsoft DAO 3.6 Object library installed in the Tools --> References. See the code below:
    Option Compare Database
    Option Explicit
    Function AttachTable() As Variant
    On Error GoTo AttachTable_Err
    Dim db As Database
    Dim tdef As TableDef
    Dim strConnect As String
    Set db = CurrentDb()
    strConnect = "ODBC;DSN=FSDEV;DBQ=FSDEV;DATABASE=;XSM='SYSADM'"
    ' NOTE: DSN is your ODBC Data Source Name; DBQ is your TNSNAMES.ORA entry name
    ' NOTE: YOU MUST PASS IN THE XSM PARAMETER IN NEWER VERSIONS OF ORACLE DB
    Set tdef = db.CreateTableDef("fsdev_PS_MASTER_ITEM_TBL")
    tdef.Connect = strConnect
    tdef.SourceTableName = "SYSADM.PS_MASTER_ITEM_TBL"
    db.TableDefs.Append tdef
    AttachTable_Exit:
    Exit Function
    AttachTable_Err:
    MsgBox "Error: " & Str(Err) & " - " & Error$ & " occured in global module."
    Resume AttachTable_Exit
    End Function

  • Need Help on Troubleshooting IR Error: Failed to acquire access to database

    Hi there,
    I have been struggling with the following error "Failed to acquire access to database" and ODBC driver error "Data source name not found and no default driver specified" when opening an IR document for a few weeks.
    The IR document uses an oce file called ABC.oce and DAS has been configured accordingly.
    ODBC System Data Source called ABC created on server running IR DAS as follows:
    - Driver: Oracle in OraClient11g_home1
    - TNS entry: ABC
    - Connection tested successfully;
    IR DAS entry ABC created as follows:
    - Connectivity Type: ODBC
    - Database Type: Oracle
    - Hostname: ABC
    oce file called ABC.ore created as follows:
    Interactive Reporting Database Connection
    Connection Software: ODBC
    Database: ORA8
    Host: ABC
    Username and password have been entered in the oce file as well.
    What possibly have I missed?
    Any help will be highly appreciated.

    Are you using the Hyperion ODBC drivers which comes with the Hyperion installation?

  • Automatic Creation of ODBC Data Source From Within Java App

    Good Day Good People :)
    I was wondering if it were possible for a java application to automatically set up an ODBC data source for a JDBC connection in a windows environment.
    This is the method I call to initialise a connection to my database:
    public void initialiseLocalConnection ()
    url = "jdbc:odbc:ICUDB";
    try
    Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver");
    icuCon = DriverManager.getConnection (url);
    catch (Exception e)
    JOptionPane.showMessageDialog (null, "Error Creating Connection to ICU Database!\n" +
    "Please set up an ODBC data source pointing\n" +
    "to the icudb.mdb file located in the data\n" +
    "folder of the ICU directory and call the\n" +
    "connection 'ICUDB'.", "Database Connection Error", JOptionPane.ERROR_MESSAGE);
    Is it possible to create the ODBC data source ICUDB if it does not exist from within my application.
    All information regarding the possibilty and the application of doing this would be greatly appreciated.
    Kind Regards
    Matt

    Thank you.
    During my search I for dsn-less connections I found the soloution:
    url = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=" +
    System.getProperty ("user.dir") + System.getProperty ("file.separator") +
    "data" + System.getProperty ("file.separator") + "icudb.mdb";
    try
    Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver");
    icuCon = DriverManager.getConnection (url);
    This works.
    Thanks for the replies.
    Matt :)

  • IBM Client Access ODBC Driver DB2/400 SQL7017 Unable to run statement with specified commit level #-7017

    Changed IBM As/400 system from V4R5 to V5R2 and now get this message when using Access to link to external database the same exact settings on everything I can determine on all computers. 
    IBM Client Access ODBC Driver DB2/400 SQL7017 Unable to run statement with specified commit level #-7017
    I have Commit immediate = *NONE in the Advanced Server Options in ODBC Data Source Administrator. It shows the AS/400 files in the Link Tables list and allows me to add it to the Access table objects, but when I try to open it in datasheet view I get that
    error.
    What am I missing?

    Ouch. That's a lot of paste...
    INFO: PATH = C:\oracle\product\10.2.0\client_2;C:\oracle\product\10.2.0
    \client_1;T:\SDCHS20N440\Oracle\agent10g\jlib;T:\SDCHS20N440
    \Oracle\agent10g\bin
    INFO: The flags set for this home (T:\SDCHS20N440\Oracle\agent10g) are:clean
    SEVERE: Abnormal program termination. An internal error has occured. Please
    provide the following files to Oracle Support : I wonder how "T:" is involved. Looks like you got a management agent on a network drive. If so, is this Home registered with the oraInventory on your machine? Can you try the same install on a machine without any previous Oracle software installed?

  • Jsp accessing a database

    is it possible for two jsp files to access the same database????
    i have the following code and im not sure if its the code thats causing my errors or if its how i have my datbase setup.
    <%
    if (request.getMethod().equals("POST")) {
    %>
    <jsp:useBean id="user" class="com.jguru.GetRoute">
    <jsp:setProperty name="user" property="*"/>
    </jsp:useBean>
    <p>
    <hr>
    <font color=green>
    <b>You submitted:<P>
    Start Town = :</b><br>
    <jsp:getProperty name="user" property="startTown"/><br>
    <br>
    <%-- Connect to the database--%>
    <%
    String data = "jdbc:odbc:Routes.mdb";
    String query = "Select * FROM Table1";
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    java.sql.Connection connection = java.sql.DriverManager.getConnection(data);
    java.sql.Statement s = connection.createStatement();
    java.sql.ResultSet record = s.executeQuery(query);
    while(record.next())
         %><br><br><%=record.getString("Towns")%> <%=record.getInt("Distance") %> <%=record.getString("Road") %><br><br><%
    connection.close();
    %>
    <%
    %>

    String data = "jdbc:odbc:Routes.mdb";JDBC URLs have the format:
    jdbc:<subprotocal>:<data source identifier>
    You should use SystemDSN, not your database name here. After you set up System DSN i.e. RoutesDSN,(Start->Settings->Control Panel->ODBC Data Sources -> System DSN ->Add... ) then using
    String data = "jdbc:odbc:RoutesDSN";
    If you get error, post your error message.

Maybe you are looking for

  • SRM 7.0 How to change the descr of Step 3 of the FPM in sourcing cockpit

    Hi I am trying to change the description of the Step 3 in carry out sourcing from Review Drafts ( No data ) to some custom description. So I went into the component configuration /SAPSRM/WDCC_FPM_DO_SOCO_GAF for the FPM_GAF_COMPONENT and replaced the

  • IPAD 2 is wiped and in endless restore loop with 5.1

    I downloaded and installed iOS5.1 about 7 hours ago after being prompted on both my iPad2 and iPhone4S via WIFI. No problem with the iPhone,works great. However, when the iPad rebooted it told me I needed to restore the device, which I attempted to d

  • Need to lock text changes...

    but still edit the paragraph spacing and letter and word spacing. Basicly I page and format books from authors before it gets to press and it would be nice not to have to worry about a stray keystroke adding a typo to preaproved text. is there anyway

  • Creating a matrix in Forms

    Hi All, Can anyone help me out on this. I need to create a matrix in Forms 5.0 wherein the values in the block is the sum of 2 different values from 2 other blocks. Please help on this. Thanx Vikas null

  • Can't login to icloud because I don't have the email address anymore

    I've tried to delete the account and restart a new one but since I downloaded find my iphone I can't until I turn that off, which I can't do because I can't login in the first place