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.

Similar Messages

  • Access Web Database - Select record and make report with all associated records

    Hey everyone,
    Right now I'm in the middle of trying to convert an Access client database to be web compatible and I'm running into some problems. For this question, I think I may need to explain a little bit about the database:
    The database I'm making is designed to store information about music rights for different songs. The users can input information about writers, producers, organizations, properties, businesses - which is stored all in different related tables. Then, when a
    user inputs a song, they choose which writers, produces, organizations, etc. are affiliated with that song. 
    What I'm trying to do is make a report where you can choose a writer from the list of all the writers and then produce a report with all of the songs by that writer. 
    I was able to do this in the Access client by making a report that, when opened would trigger (using the On Open event) a form to open where you would choose a writer from a combo box and then click a button. When the button was clicked, it would use the value
    in the combo box in a query, which would find all of the songs by that writer and then open up the report which would have the writer and all of their songs on it. 
    Because web reports don't have many event options and web queries are very limited, I have not found a way to make this report.
    Any help at all would be greatly appreciated!

    Hi,
    I found that you've cross post the quesion on our Answer forum, are you satisfiled the reply from there?
    http://answers.microsoft.com/en-us/office/forum/office_2010-access/web-database-select-record-and-make-report-with/04ce4e25-a964-4146-9a34-f9cb26bb0496
    Regards,
    George Zhao
    TechNet Community Support

  • Hello I can not access my account through MacBook Pro solution knowing I access the account through iTunes and iPad please help

    Hello I can not access my account through MacBook Pro solution knowing I access the account through iTunes and iPad please helpfile://localhost/Users/mhmd/Desktop/%E2%80%8Fلقطة%20الشاشة%20٢%D9%A0١٢-١٢-٢ ١%20في%20٥%E2%80%8E.١٦%E2%80%8E.٤٢%20ص.pngfile://localhost/Users/mhmd/Desktop/%E 2%80%8Fلقطة%20الشاشة%20٢%D9%A0١٢-١٢-٢١%20في%20٥%E2%80%8E.%D9%A0٩%E2%80%8E.٤١%20ص .png

    Ummm...
    Can you explain in details what happens when you try?

  • How to access my database through internet?

    so my program have a database in it and the program have lots of getting and setting information from this database.
    but this database is supposed to be on a server obviously, but since renting server is something that i put as last thing to do when i want to start full tests and debugging, i keep using database in the project, but if i have plan to later on remove this
    database from my project and set my program to use the database on my server, how can i do this.
    in general i want to know how to connect to a database on my server.and what are the possible changes i should do in my project

    Hi soorena12,
    Since this forum is discuss the VS IDE, based on your issue, I
    am afraid that the issue is out of support of  Visual Studio General Question.
    To help you find the correct forum to support this issue,could you please tell me which type database you create, is it a SQL Server or other?
    What program you create for the database? If possible, please share some code about your issue here.
    If you have any update information about your issue, please tell me.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Problem in accessing the database through VPN

    I am having problem connecting to the database through VPN but it is working perfectly fine if i connect to the network directly.
    It would be really great if you could help me to resolve this issue.
    Thanks

    I am having problem connecting to the database through VPN but it is working perfectly fine if i connect to the network directly.Fix the VPN problem.
    Check the logfiles.
    For better advice provide any meaningful detail.
    If I do not poke myself in the eye, it does not hurt.
    Tell me to to stop feeling pain.

  • 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

  • Accessing OS/390 through Java and reading VSAM files

    I hope this is the apporiate forum for this question. I am fairly new to Java but am interested in learning about using Java to connect to a mainframe and read a VSAM file. So my questions are:
    1.) Where can I find information on this on this topic
    2.) Would this require database drivers, and if so, are there any open source drivers for reading VSAM
    Thanks for your help,
    John

    You can get an evaluation copy of WebSphere Information Integrator Classic Federation for z/OS v8.2. This will include JDBC clients for Windows and Unix platforms as well as a z/OS data server component that can access the VSAM data. .
    There are two ways to order an evaluation copy:
    Through the IBM zSeries account rep
    Via the Shop zSeries Web site

  • Removing admin password form Access 2003 database front end and back end

    We have a legacy database that has been passed down from the original creator, who is no longer with the organization. It was created in Access 2003. It has a front end and a back end. The original admin password can not be located and we are in the process
    of upgrading this application to 2010.  Is there a way to remove that password so we can make changes to the original files?

    Hi,
    What password are you talking about, the one created with the workgroup manager? That will be difficult since 2010 doesn't have the workgroup manager anymore. You can still use the database in the 2010 environment but you can't make any changes to the original
    database without the password.
    Maurice

  • HT1766 my screen is trashed can I access my contacts through Itunes and sync it to my ipad?

    I dropped my phone and the screen went totally white. I also have an I pad but need to know if there is any other way to access my contacts I have some really important phones numbers I can afford to loose. I have backed up the phone but just cant use it.Please help. I have an I pad and if there is anyway I can sync the contacts from one to the other that would be so great. direct email me if you like. [email protected]

    DVDs are encrypted to stop you from doing this.  It is illegal to break this encryption.
    "Shouldn't I be able to store DVDs I own in the video library so I can sync the movie to my iPhone?"
    No. DVDs are encrypted to stop you from doing this.  It is illegal to break this encryption.
    CDs are not encrypted, as the music industry allows copying music for your own use.  The movie/tv industry does not allow this, so they encrypt their products.

  • 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>

  • Class not found Exception when accessing database through java using ASP

    I am trying to access the database through ASP via java:
    the database is setup as a system database..
    the java class works fine if i try to run it as a stand alone.. but as soon as I run it through ASP.. it does not get passed the driver line.. is there anything in particular I need to do ?
    JAVA and ASP and the output code looks like as follows:
    java code looks like this:
    import java.sql.*;
    public class testDB{
    private Connection connection;
    private Statement statement;
    public static void main(String[] args){
    public String getDriver(){
    String x = "start of program ";     
    try{
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              x = x + " Got Driver";
              connection = java.sql.DriverManager.getConnection("jdbc:odbc:database", "sunny", "jassal");
              x = x + " After connection statement";
              statement = connection.createStatement();
              x = x + " After statement statement";
              statement.execute("Insert into name (name, age) values ('hello', 33)");
              x = x + " after insert";
              connection.close();
         } catch (Exception sqlex){x = x + sqlex.getMessage() + " " ;
              x = x + sqlex.toString() + " " ;
              x = x + sqlex.getLocalizedMessage();}
    return x;
    and the asp looks like this:
    <html>
    <%
         set javaobject = GetObject("java:testDB")
         response.write "after getting object"
         response.write javaobject.getDriver()
         set javaobject = nothing
    %>
    </html>
    after getting objectstart of program sun/jdbc/odbc/JdbcOdbcDriver java.lang.ClassNotFoundException: sun/jdbc/odbc/JdbcOdbcDriver sun/jdbc/odbc/JdbcOdbcDriver

    what would I set the classpath to be .. and I am sorry I am new to this.. but how would I be able to check the CLASSPATH .. or even how do I set the CLASSPATH.. to which directory would i need to set the classpath to
    I know I can set the classpath in dos by set CLASSPATH=
    but I dont know how to set it so it would read the drivers

  • Accessing an API through a Database Link

    Hi,
    I am using Jdeveloper 11.1.2.2.0
    My use case is that, I need to access an API through a DB Link and pass some parameters/data using this DB link into the API and commit it into the remote database.
    I will be having a page from where I will passing the parameters, which should be committed into the database of the API provider.
    For this I have created a DB link and tried to query data from the remote database tables, its working.
    How to pass the parameters into the API using DB link and commit it into the remote database ?
    Thanks,
    Nigel.

    Hi Frank,
    Thanks for the suggestion.
    But in my case I need to call the external API using a DB Link.
    I am able to call the API and it is returning me the statements that the new row is being created successfully and returns the ID of the newly created row.
    But when I try again to access the Database through a query it is showing all the Rows with theirs ID's and data inside them, before and after the Row which I entered.
    The rows which has the ID which I entered is having no values in their columns. Is it because the data is not getting committed ?
    What is the reason for this ?
    Thanks,
    Nigel.
    Edited by: Nigel Thomas on Jun 14, 2012 2:52 AM

  • Using Single Datasource to Access Multiple Databases

    Hi,
    We would like to know the pros and cons of accessing multiple
    databases through a single datasource, versus accessing each
    database through its own datasource. Our environment includes
    multiple web servers w/ the latest version of ColdFusion MX 7,
    clustered through a load balancer. Each web server has 800+ dsns
    pointing to different SQL databases on the same SQL server. We have
    noticed that the ColdFusion administrator is taking a long time to
    display or verify all datasources and sometimes it even times out.
    Another problem is that sometimes the neo-query file gets corrupted
    (for unknown reasons) which results in the deletion of one, or
    more, or all datasources on the web server.
    Because of the issues above we are researching the
    possibility of removing most of the datasources, and then accessing
    each database through a single bridge datasource. In that regard we
    plan to change our queries by inserting the sql db name and user in
    front of each table in the query such as:
    <cfquery name="query" datasource="single_dsn_name">
    select * from [#dbname#].dbo.tableName
    </cfquery>
    In the example above, obviously #dbname# would be a variable
    that will hold the name of the requested database. The code above
    would similarly apply to queries using, update, insert and join
    words.
    Are there any limitations or negatives from scalability,
    performance, and reliability perspective in implementing the above
    scenario versus having one datasource for each database.
    Also, if there is a better way of accomplishing this, we
    would love to hear about it.

    Here is my opinion, because I work with both schemas. The
    main advantage to use one datasource for all DBs in a SQL Server is
    the simplicity of administration.
    But the main disadvantage is security, because you are using
    a single user to access all DB in a server, you don't have
    isolation, and a user that knows your schema can access data of
    other DBs that he sould not be authorized.
    Another issue is is a user must access 2 differents DB with
    different permissions (a DB only read and the other read/write),
    you'll have to create another datasource, user, etc for it.
    But the decision depends in the enviroment. If you are a
    hosting company, I would use 1 datasource for user or DB. If the
    servers and DBs are of the same company, I could use one datasource
    for each SQL server.
    Best regards

  • Can midlet directly access a database?

    I'm creating a midlet that connects to a database. Do i need to go through a server and then access the database or can i directly access the database through the midlet?
    Does anyone have a sample code that have a midlet interacts directly with a database? Or is it impposible to do so without going through a web server.
    Blaise,

    Your message arrived at the rigth address :)
    I am experienced in J2ME programming and made several projects with it including my graduation thesis . (you can check http://2m.turkmenweb.com for my J2ME projects).
    You can directly acces from MIDlet DB, but it is not so reccomended, since mobile devices have certain limitations. When we had to use DB in our J2ME projects(with MIDP1.0 and MIDP2.0) we achieved it by collaboration of JSP with our MIDlet.. That is MIDlet was only sending a URL to Tomcat Server (JSP server) i.e. http://someurl.com/show?task=topusers, and this URL was parsed by a Servlet which was making all needed conenctions to DB.
    I also know that there are K editions (very small) of DBMS built especially for mobile devices. You can use them also .. I guess Oracle has such a thing..
    Good luck!
    Muhammed Mamedov
    [email protected]

  • Monitoring Physical standby database through OEM

    HI ,
    We are monitoring Physical standby database through OEM and we monitor from console using SYS user
    As per our company policy we change our sys password every month so after change it we need to change SYS password from console also
    so is any way we can change SYS password on console using command line utility? if yes then please give us the command
    Thanks

    we monitor from console using SYS userYou have to monitor it using a SYSDBA user not necessarily SYS. So you can create a user e.g. SYS_MONITOR which has different policy than SYS. Although it is best to change that password on regular bases too, maybe every 3 months.
    so is any way we can change SYS password on console using command line utility?I don't get your question. Are you asking if it is possible to change the monitoring username/password using some command line utility? If so, I haven't heard of such tool. But there could be a package like MGMT_TARGET which you can manipulate the credentials if you know how to use it.

Maybe you are looking for

  • Moving an object in the stage

    Any help on this would be greatly appreciated. I have an object that is serving as a background for a flash website. The background object (a table) moves and rotates around when clicked, exposing different parts of the table on the stage when the us

  • T. Code for Mass reversal of IV documents

    hi, We use the T. Code MR8M for IV document reversal. what is the T. Code for Mass reversal of IV documents. Tx

  • IPhoto Mac and PhotoStream on iOS7

    My friends and I just came back from a vacation trip.  We all have iPhone's, and created a shared photostream (iOS7) so we all can add our photos to one place.  I would like to use iPhoto on my mac to create some photo books, presentations, etc. But

  • Chapter playlist end action not working right

    Using Encore CS4 I have created nine sub-menus and each one contains a Chapter Playlist assigned to a button. The submenu's are titled by year starting with 2002. The problem I am having is that no matter what I set the end action or override to all

  • How to make a JSP page always come from servlet

    Hi! Although ihave used "<%@ page session="true" %>" in some of my JSP pages, it can be accessed by just typing in the URL of that page in the browser.(After invalidating the session) I want that page to be accessed only if it is called theough a ser