Help needed for MySQL 5 database DSN less connection with Oracle reports

Hi,
I am using Oracle Develper Suite and java (J2EE) for my application. I am using MySql 5 as database tool. I want to use Oracle reports of Oracle Develper suite. I have created some reports by first creating system DSN for MySql database and then connect Oracle reports to that DSN by "jdbc:odbc" connection string provided in Oracle Report developer wizard. This is working fine.
I want to generate reports without creating system DSN (DSN less) so that i can use my application on any computer without creating DSN for Oracle Reports. I am deploying my application on OC4j as "EAR" file.
Help in this regard will be highly appreciated.
Regards.

Using an 8i client, you will need to configure the tnsnames.ora file with appropriate connection information if you are using local naming. If you are using host naming or something like an Oracle Names server to resolve TNS aliases, you can skip the tnsnames.ora configuration. A default installation of the Oracle client, though, will probably be using local naming.
If the tnsnames.ora file is configured, or you have configured an alternate way of resolving TNS aliases, you should be able to use the connection string
DRIVER={Oracle ODBC Driver};DBQ=<<TNS alias>>;UID=system;PWD=managerIf you wanted to move to the 10g client (the 10g Instant Client could be useful here), there are some streamlined naming methods that could be used instead of configuring the tnsnames.ora file.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC

Similar Messages

  • DSN Less connection with Text Driver

    Hi to all,
    I want to connect Text file without DSN connection.
    Everyone's solution and suggestions in this regards is higly appreciated.
    Thanks in advance.
    khiz_eng

    It seems nobody is interested in my problem.Could be.
    Or they don't know a solution.
    If it is doable then it should be possible to figure it out yourself. You search the forum for DSN-less solutions. And you use the File DSN trick (which you will find when searching DSN-less) to determine the parameters.
    And finally it might not be possible since it depends on whether the ODBC driver supports that. Not all do.

  • DSN less connection with MS- Access

    Please help me find the solution to this problem.
    I want to create a DSN connection through a program.
    Regards,
    Vivek.

    Hi,
    if you want to look to
    http://forum.java.sun.com/thread.jsp?forum=48&thread=139448
    There we figured out a complete example; you also see the typical error messages which you may also encounter.

  • DSN-LESS Connetion with SQLServer

    I am working on client server application and looking for a way to have dsn less connection with sqlserver2000 from java client application instead of using jdbc-odbc bridge.
    If anybody of u have work on it then pls help me
    thanks
    Your Friend

    I am working on client server application and looking
    for a way to have dsn less connection with
    sqlserver2000 from java client application instead of
    using jdbc-odbc bridge.That statement does not make sense. By definition the only time you would need a DSN-less connection string is if you are using jdbc-odbc.
    So your question is one of the following:
    1. You want to know how to create a DSN-less connection string using MS SQL Server. Answer - search this forum using "DSN-less" and "SQL Server" and you will find examples.
    2. You want a different driver. Answer - search for commercial drivers here: http://industry.java.sun.com/products/jdbc/drivers. Microsoft also has a driver depending on the version of SQL Server you are using and here is a free driver http://jtds.sourceforge.net/

  • DSN Less Connections

    Hi,
    The majority of our ASP pages use a DSN Less connection. An example is
    Set dbConnection = Server.CreateObject("ADODB.Connection")
    dbConnection.open "Provider=MSDAORA;Data Source=tnsname;User ID=username;Password=password"
    However I cannot get this to work with the instant client. I can even change the provider to "Oracle in instantclient10_2" and it errors out. DSN Connections like the one below work great
    Set dbConnection = Server.CreateObject("ADODB.Connection")
    dbConnection.open "DSN=dsn_name;UID=username;PWD=password"
    But I do not really want to go around to all of web servers and recode them (nor make the programmers do it). Is there a way to use DSN Less connections with Instant Client? Am I using incorrect syntax, or is it just not possible currently?
    Thanks in advance.
    //Karl

    I finally found an example that worked. The biggest clue to troubleshooting these connection is to reboot the server as IIS reset does not always clean up its cache.
    Anyway the answer was this
    Set dbConnection = Server.CreateObject("ADODB.Connection")
    dbConnection.open "Driver={Oracle in instantclient10_2};Dbq=<db name>;UID=<username>;PWD=<password>;"
    Thanks
    //Karl

  • How to create a DSN Less Connection using MySQL

    Hi All
    How to create a DSN Less Connection using MySQL?
    http://www.caucho.com/projects/jdbc-mysql/index.xtp and downloaded Caucho driver and installed the jar ---- caucho-jdbc-mysql-0.2.7.jar in my classpath..
    this is how i embedded the code
    try
    driver = (Driver) Class.forName("com.caucho-jdbc-mysql-0.2.7.Driver").newInstance();
    catch (Exception e)
    lastErr = "Cannot load the driver, reason:"+e.toString();
    nothing seems to work with code..
    Unable to proceed..Any piece of code would be of great help..
    Thanks and regds
    Gautam

    According to the installation instructions for that driver:
    The driver is com.caucho.jdbc.mysql.Driver
    The url is jdbc:mysql-caucho://hostname:port/database
    You used something else for the driver name. So it doesn't work. By the way, I found those instructions here: http://www.caucho.com/projects/jdbc-mysql/

  • Example code - dsn less connection to MySQL ?

    Has anybody got any example code on how to connect to a MySQL
    database without using DSN ?
    eg. <cfset myconnectionstring="....
    My hosting company say they prefer me NOT to use a DSN. Do
    you think they're correct in saying this ?

    You can create a dsn less connection for access on a PRE-MX
    (ie ColdFusion 5.0) environment. CFMX does not currently allow for
    DNS-Less connections, due to a "restriction" with JDBC.
    So it seems that your hosting company are nutters! :) It is
    normal for your host to create the dsn themselves, however, it will
    be limited by the number of dbs you have. I imagie you can have up
    to 2 mysql dsns without charge, mssql will cost per db/dsn and
    access should be free for one dsn connection.
    HTHs

  • Help needed for writing query

    help needed for writing query
    i have the following tables(with data) as mentioned below
    FK*-foregin key (SUBJECTS)
    FK**-foregin key (COMBINATION)
    1)SUBJECTS(table name)     
    SUB_ID(NUMBER) SUB_CODE(VARCHAR2) SUB_NAME (VARCHAR2)
    2           02           Computer Science
    3           03           Physics
    4           04           Chemistry
    5           05           Mathematics
    7           07           Commerce
    8           08           Computer Applications
    9           09           Biology
    2)COMBINATION
    COMB_ID(NUMBER) COMB_NAME(VARCHAR2) SUB_ID1(NUMBER(FK*)) SUB_ID2(NUMBER(FK*)) SUB_ID3(NUMBER(FK*)) SUBJ_ID4(NUMBER(FK*))
    383           S1      9           4           2           3
    384           S2      4           2           5           3
    ---------I actually designed the ABOVE table also like this
    3) a)COMBINATION
    COMB_ID(NUMBER) COMB_NAME(VARCHAR2)
    383           S1
    384           S2
    b)COMBINATION_DET
    COMBDET_ID(NUMBER) COMB_ID(FK**) SUB_ID(FK*)
    1               383          9
    2               383          4
    3               383          2
    4               383          3
    5               384          4
    6               384          2          
    7               384          5
    8               384          3
    Business rule: a combination consists of a maximum of 4 subjects (must contain)
    and the user is less relevant to a COMB_NAME(name of combinations) but user need
    the subjects contained in combinations
    i need the following output
    COMB_ID COMB_NAME SUBJECT1 SUBJECT2      SUBJECT3      SUBJECT4
    383     S1     Biology Chemistry      Computer Science Physics
    384     S2     Chemistry Computer Science Mathematics Physics
    or even this is enough(what i actually needed)
    COMB_ID     subjects
    383           Biology,Chemistry,Computer Science,Physics
    384           Chemistry,Computer Science,Mathematics,Physics
    you can use any of the COMBINATION table(either (2) or (3))
    and i want to know
    1)which design is good in this case
    (i think SUB_ID1,SUB_ID2,SUB_ID3,SUB_ID4 is not a
    good method to link with same table but if 4 subjects only(and must) comes
    detail table is not neccessary )
    now i am achieving the result by program-coding in C# after getting the rows from oracle
    i am using oracle 9i (also ODP.NET)
    i want to know how can i get the result in the stored procedure itsef.
    2)how it could be designed in any other way.
    any help/suggestion is welcome
    thanks for your time --Pradeesh

    Well I forgot the table-alias, here now with:
    SELECT C.COMB_ID
    , C.COMB_NAME
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID1) AS SUBJECT_NAME1
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID2) AS SUBJECT_NAME2
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID3) AS SUBJECT_NAME3
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID4) AS SUBJECT_NAME4
    FROM COMBINATION C;
    As you need exactly 4 subjects, the columns-solution is just fine I would say.

  • JCA adapter for MySQL or databases

    Hi,
    does anyone knows where to get an free/open source JCA adapter for MySQL or databases?
    Juraj

    I remember extending the ResourceAdapter helper classes from IBM's websphere server.
    In most cases your application server would provide a generic class that you extend to add support for more databases.
    In weblogic the resourceadapter deployed on the server includes support for mysql already and so is the case for JBoss.
    If you are using any other server, then try to see how JBoss have implemented their resourceadapter...ResourceAdapters are deployed on the app server as RAR files

  • Color management help needed for adobe CS5 and Epson printer 1400-Prints coming out too dark with re

    Color management help needed for adobe CS5 and Epson printer 1400-Prints coming out too dark with reddish cast and loss of detail
    System: Windows 7
    Adobe CS5
    Printer: Epson Stylus Photo 1400
    Paper: Inkjet matte presentation paper with slight luster
    Installed latest patch for Adobe CS5
    Epson driver up to date
    After reading solutions online and trying them for my settings for 2 days I am still unable to print what I am seeing on my screen in Adobe CS5. I calibrated my monitor, but am not sure once calibration is saved if I somehow use this setting in Photoshop’s color management.
    The files I am printing are photographs of dogs with lots of detail  I digitally painted with my Wacom tablet in Photoshop CS5 and then printed with Epson Stylus 1400 on inkjet paper 20lb with slight luster.
    My Printed images lose a lot of the detail & come out way to dark with a reddish cast and loss of detail when I used these settings in the printing window:
    Color Handling: Photoshop manages color, Color management -ICM, OFF no color adjustment.
    When I change to these settings in printer window: Color Handling:  Printer manages color.  Color management- Color Controls, 1.8 Gamma and choose Epson Standard it prints lighter, but with reddish cast and very little detail and this is the best setting I have used so far.
    Based on what I have read on line, I think the issue is mainly to do with what controls are set in the Photoshop Color Settings window and the Epson Printer preferences. I have screen images attached of these windows and would appreciate knowing what you recommend I enter for each choice.
    Also I am confused as to what ICM color management system to use with this printer and CS5:
    What is the best ICM to use with PS CS5 & the Epson 1400 printer? Should I use the same ICM for both?
    Do I embed the ICM I choose into the new files I create? 
    Do I view all files in the CS5 workspace in this default ICM?
    Do I set my monitor setting to the same ICM?
    If new file opens in CS5 workspace and it has a different embedded profile than my workspace, do I convert it?
    Do I set my printer, Monitor and PS CS5 color settings to the same ICM?
    Is using the same ICM for all devices what is called a consistent workflow?
    I appreciate any and all advice that can be sent my way on this complicated issue. Thank you in advance for your time and kind help.

    It may be possible to figure out by watching a Dr.Brown video on the subject of color printing. Adobe tv
    I hope this may help...............

  • File missing (file\BCD error code 0Xc0000034 help need for work!

    file missing (file\BCD  error code 0Xc0000034 help need for work!    what can i do?
    have an p 2000 notebook pc

     Hi bobkunkle, welcome to the HP Forums. I understand you cannot boot passed the error you are receiving.
    What is the model or product number of your notebook? What version of Windows is installed?
    Guide to finding your product number
    Which Windows operating system am I running?
    TwoPointOh
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • Help need for force to signout All session ! how...

    hi
         help need for force to  signout All session !  how ??
    Solved!
    Go to Solution.

    Hi and welcome to the Skype Community,
    To force a signout of all instances your Skype is signed into please change your password: https://support.skype.com/en/faq/FA95/how-do-i-change-my-password
    Follow the latest Skype Community News
    ↓ Did my reply answer your question? Accept it as a solution to help others, Thanks. ↓

  • 10g - DSN Less Connect

    I'm looking for a way to use Microsoft odbc to create a dsn-less connection to an Oracle 10g database using vbscript. The script will run from client OS' on both XPsp2 (mdac2.8) and VistaBusiness-x32 (windows dac 6.0)
    The script will call a stored procedure that strips the colons, spaces, dashes or periods in the stored mac_address item then query the server with a mac address and receive the workstation name and a few other items stored in the db. I will be sending the mac address with no colons, etc.
    From what I've gleaned from other sources, the following should be close but I want to check before I go to my db guy for query help.
    strConnection="Driver={Microsoft ODBC for Oracle}; Server=OracleServerName;uid=username;pwd=password;"
    set conn=Server.CreateObject("ADODB.Connection")
    conn.Open strConnection
    Any code on executing the function and querying for the provided mac address would be helpful since I'm completely clueless... which comes first, the chicken or the egg..
    Shoot, even if someone would post code on how I can check if the connection is actually made..
    Thanks

    ...So I take it that I'll have to have the server
    export to csv or a db format that will provide a
    connection on a stock xp or vista box.I'm not sure exactly what you're saying here. Are you suggesting that you'd export the data on the server to a CSV file, copy that to a network share, and have your application create an ODBC connection to the CSV file?
    Are you wedded to installing absolutely nothing else? The Oracle Instant Client, for example, just requires copying 3 or 4 DLLs to a directory & setting some environment variables in order to install a minimal Oracle client and ODBC driver (though it won't work with the Microsoft ODBC driver for Oracle). That's normally a pretty minimal burden for an application to include in its installation scripts.
    Justin

  • Establishing DSN less connection to .csv file

    Hello to all,
    I need to establish dsn less connection to .csv file, can anybody suggest me the solution.
    Please treat this matter as urgency,
    Thanks in advance.
    Y_mail

    Hi Mohammad,
    it would be easier for us all if you would continue one of your previous topics about the same problem:
    http://forum.java.sun.com/thread.jsp?forum=48&thread=194701
    http://forum.java.sun.com/thread.jsp?forum=48&thread=193727
    http://forum.java.sun.com/thread.jsp?forum=48&thread=194147
    http://forum.java.sun.com/thread.jsp?forum=48&thread=190876
    Also changing your userprofile doesn't help much.
    If you watch the replies to your topics, you see that in this one
    http://forum.java.sun.com/thread.jsp?forum=48&thread=193727
    we're about to work out a solution for reading a csv file with BufferedReader. The JDBC connection mentioned there is only for putting the retrieved values into Access afterwards; for your task this part can be ignored.
    So I think you should find your solution there.
    If not, please ask again - but please (!) don't start a new topic or user again for that same problem.

  • DSN-less Connection in a Servlet

    hai,
    I am using the following DSN-less Connection in a servlet. It is working fine in as
    a stand alone application. But it is not working in a a servlet.It is throwing DSN name too
    long exception.
    dsn="DRIVER={Microsoft Access Driver (*.mdb)};DBQ=d:\\db1.mdb";
              try
              System.out.println("DSN-less connection.......................");
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    con=DriverManager.getConnection("jdbc:odbc:"+dsn);
              if(con!=null)
                   System.out.println("Connected");
              else
                   System.out.println("Not Connected");
              st=con.createStatement();
              System.out.println("connected.........................");
              catch(Exception e)
              {   e.printStackTrace();
    Please give me the details why it is not working.
    I am using jdk1.3 and jsdk2.0.
    bye
    -raja

    Dear jschell,
    I am very thankful to u for being my problem solved.
    As u said the problem is with the syntax and with environment.
    I have changed the syntax in connection string by inserting a
    space in between
    DRIVER={Microsoft Access Driver and (*.mdb)};DBQ=c:\\db1.mdb";
    and running the servlet in servletrunner it is working.
    Now to run the same servlet using a webserver I need to configure it properly.
    I am usning Java Web Server. Earlier I installed JDK1.2 on my system and
    now I changed it to JDK1.3. There r some problems while uninstalling JDK1.2.
    May be the JWS is using the jdk1.2 runtime environment.
    Pleaselet me clear this.
    Thanks a lot for all the help u have done so far.....
    -raja

Maybe you are looking for