Database connection without driver? pl. help

Hello there
is it possible connecting databases without having jdbc or jdbc-odbc driver? anybody has any idea or thought?
mortoza

Use JNI. This requires that an native interface to the database exists (what a jdbc driver would use.)
Use RunTime.exec(). Although that would not really be a 'connection'. This requires that command line tools exist for OS that can provide whatever functionality you need.
Use a socket. This requires that the database provides some sort of socket interface, and that you can get the documentation for it, and then can write the code to use it. For example Oracle and MS SQL Server both have a socket interface. I am not sure if Oracle provides docs and the MS SQL Server interface is probably documented only in fragmented terms (there is probably more than one.)

Similar Messages

  • Creating database connection without administrator

    I need to create a new database connection for coldfusion mx
    7 on winblows 2003 but coldfusion administrator is broken. Is there
    any way to create a new JDBC connection without it? Perhaps some
    registry or ini file editing? How about for ODBC?

    You can code a template to create a datasource using the
    adminAPI. The examples do just that. View the MSSQL example on this
    page,
    Administrator
    API.
    However, you might just want to fix you CFAdmin. Got to a
    working CFMX7 server of the same version. Zip up all of CFIDE
    (usually under wwwroot of cfusion or your docroot). Delete the
    'broken' one on your server. Unzip the CFIDE zip to replace.

  • JDev TP4 - Test Database Connection without password

    Hi,
    I create a new database connection for an application,
    if I specify that password is not saved and press Test Connection button with an empty password, the "connection information" dialog for username and password is displayed behind the "connecting" dialog. It is not possible to switch to "connection information" dialog.
    Although there is a Cancel button on the "connecting" dialog, it is also not possible to press it. To close JDeveloper, it is killed from Task Manager.
    If Save Password on the create database connection is checked and an empty password is given pressing Test Connection button, "Test failed: Password cannot be null or empty" error message is given.
    Without testing the connection, I can save the connection in both situations.
    regards,
    Bahar

    Bahar,
    indeed this is annoying ;-( I checked with a later build and the bug is fixed meanwhile.
    Thanks for posting this
    Frank

  • Database connection without username

    Hello,
    Using JDeveloper Database connection wizard, can we create
    a connection to the database without using user name and
    password? That is, I need to login with a "/".
    Murali

    The thick drivers need a client side install of SQL*Net and the relevant oracle /bin directory containing that the ocijdbc9.dll will need to be in your library path.
    So the question is - do you want OPS$ functionality enought to do a client side SQL*Net install on each machine?

  • Why is the data source not getting database connection without  exception?

    experts,
    I am trying to config server.xml to get database connection. i am now getting no exception duing the connection, but the returned connection is NULL, why? thanks/ this is my codes:
    public synchronized Connection getConnection()
    try{
    Context ctx = new InitialContext();
    if (ctx == null)
    throw new Exception("Context is null");
    Context initContext = new InitialContext();
    Context envContext = (Context)initContext.lookup("java:/comp/env");
    DataSource ds = (DataSource)envContext.lookup("test");
    Connection conn = ds.getConnection();
    }catch(Exception ex)
    ex.printStackTrace();
    return conn;
    }

    Remove the first slash after "java:".
    Context envContext =(Context)initContext.lookup("java:comp/env");

  • Database connectivity without using Class.forName()

    Hi,
    Can anyone please tell how we can connect to a database without in java without using the Class.forName() method , and then how the database driver gets loaded.
    Regards,
    Tanmoy

    Hi,
    I recently wrote code that connects to a database without using Class.forName() in order to be compatible with Microsoft's JVM. I read about it here:
    http://www.idssoftware.com/faq-e.html#E1
    Basically, you create a new Driver object and use its connect method.
    Here's what my particular code ended up being:
    String url = "jdbc:mysql://localhost:3306/test?user=root&password=mypass";
    Driver drv = new org.gjt.mm.mysql.Driver();
    Connection con = drv.connect(url,null);

  • BIOS doesnt recognize SATA connected Hard Drive- need help flashing bios from bootable USB

    hi
    I have an envy laptop running InsydeH20 bios rev f14.
    the bios doesn't recognize the internally connected hdd/ssd.
    I have heard that with insyde bios', sometimes you have to unlock 'secret capabilities' to recognize hardware incl internal hdd.
    but I am just trying to reflash my bios.
    the problem is that I cant get into windows because it doesn't recognize my hard drive and windows doesn't allow insallation to usb connected drives.
    I downloaded the patch from hp.com for my product and it actually has an option for making a bootable USB for use on the actual system, and I did this. the instructions are to just restart my computer with the bootable usb. I have tried Legacy support on and off, neither updates bios.
    I highly doubt it has anything to do with the physical sata connector.
    basically I need to flash my bios from bootable usb. I have done some research about making a bootable dos usb etc etc but I don't know what program to even run and how..
    this is a link to my product:
    http://h10025.www1.hp.com/ewfrf/wc/product?cc=ca&dlc=en&lc=en&os=4132&product=5400031&sw_lang=
    Pleeeeeaaseee someone help!!!!!!!!!!!!!!!!!!
    Thanks!!

    hi
    I need to flash the bios of my system. the bios is not recognizing hardware and cannot boot into windows to run the bios flash for windows.
    on my other comp I ran the bios update patch and chose ' install to bootable usb ' so that I could use it on my system.
    cannot run on my laptop. tried booting from the media. tried allowing 'legacy' compatibility.
    im running insydeH2O rev f14 right now.
    here is a link to my system:
    http://h10025.www1.hp.com/ewfrf/wc/product?cc=ca&dlc=en&lc=en&os=4132&product=5400031&sw_lang=
    thanks to anyone who can help!!!!!!!!!!!!!!

  • How to immediately released database connection in jclient form app ?

    Hello Steve,
    We want our jclient form application could immediately released database connection when its be closed,
    We had follow your Weblog technical paper about http://radio.weblogs.com/0118231/stories/2005/02/10/amPoolingConsiderationsForAdfJclient.html , it mentioned following step to release Jclient database connection, but in our jclient project when we close separate jclient form application the database connection seems not immediately released(we monitor through TOAD trace session), the database connection will continue stay alive until we close the all project application.
    •Call panelBinding.releaseDataControl() method before our form application closed,
    •Set the AM pool's minimum available size to 0 (zero), and set the idle time and pool monitor interval shorter if the up-to 20-minute wait (in case it takes two wakeup cycles for the AM instance to be idle more than its idle time) is not something you like, or
    •Disable AM pooling altogether (jbo.ampooling.doampooling=false)In our project application the database connection behavior like following:
    1.when we open every Jclient form application , it will establish a new database connection for every form application
    2.But when we closed the jclient form application , the database connection still exist
    3.But when we open the same jclient form application again, the database connection will not create new database connection , it seems using the same connection when this application first create.
    4.when we close the all project application , it will release all database connection.
    Could you help us, thanks.
    Sincerely from, TIng-Rung

    Hello Steve,
    We have been study the paper that you mentioned, sorry that we still got some confused about AM pool and jdbc pool, My project bc4j,xcfg like following , could you help us what we missing ?
    ==============================
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <BC4JConfig>
    <AppModuleConfigBag>
    <AppModuleConfig name="xxxAppModuleLocal">
    <jbo.ampool.maxinactiveage>5000</jbo.ampool.maxinactiveage>
    <user>xxx</user>
    <jbo.project>His</jbo.project>
    <AppModuleJndiName>com.xxx.business.module.xxxAppModule</AppModuleJndiName>
    <DeployPlatform>LOCAL</DeployPlatform>
    <jbo.poolmonitorsleepinterval>10000</jbo.poolmonitorsleepinterval>
    <jbo.poolmaxinactiveage>5000</jbo.poolmaxinactiveage>
    <JDBCName>NEWNTUHRIS</JDBCName>
    <RELEASE_MODE>Stateless</RELEASE_MODE>
    <jbo.recyclethreshold>0</jbo.recyclethreshold>
    <ApplicationName>com.xxx.business.module.xxxAppModule</ApplicationName>
    <java.naming.factory.initial>oracle.jbo.common.JboInitialContextFactory</java.naming.factory.initial>
    <password>xxxx</password>
    <jbo.poolminavailablesize>0</jbo.poolminavailablesize>
    <DBconnection>jdbc:oracle:thin:@10.0.0.8:1521:xxx</DBconnection>
    <jbo.ampool.minavailablesize>0</jbo.ampool.minavailablesize>
    <jbo.ampool.monitorsleepinterval>10000</jbo.ampool.monitorsleepinterval>
    </AppModuleConfig>
    </AppModuleConfigBag>
    <ConnectionDefinition name="xxx">
    <ENTRY name="JDBC_PORT" value="1521"/>
    <ENTRY name="ConnectionType" value="JDBC"/>
    <ENTRY name="HOSTNAME" value="xx.xx.xx.xx"/>
    <ENTRY name="DeployPassword" value="true"/>
    <ENTRY name="user" value="xxx"/>
    <ENTRY name="ConnectionName" value="xxx"/>
    <ENTRY name="SID" value="xxx"/>
    <ENTRY name="password">
    <![CDATA[{904}0505E5FED797881374FDE8BD1606B6CF01]]>
    </ENTRY>
    <ENTRY name="JdbcDriver" value="oracle.jdbc.driver.OracleDriver"/>
    <ENTRY name="ORACLE_JDBC_TYPE" value="thin"/>
    <ENTRY name="DeployPassword" value="true"/>
    </ConnectionDefinition>
    </BC4JConfig>
    and our jclient code to release connection like following:
    tabbedPane.addCloseListener(new CloseListener(){
    public void closeOperation(MouseEvent e){       
    cleanTabComponentListener(tabbedPane.getComponentAt(tabbedPane.getOverTabIndex()));
    tabbedPane.remove(tabbedPane.getOverTabIndex());
    UPanelBinding panelbd = tabbedPane.getPanelBinding();
    panelbd.releaseDataControl();
    panelbd.getBindingContext().release();
    }

  • Database connection lost during running report

    Hello Experts, Our environment is WINDOWS2008 SERVER / ORACLE 10G / ORACLE REPORTS.
    The problem we are facing is , while running one of the particular reports which runs oracle reports , connection to database server gets lost. Acturally the form is printing a
    bar code label, this is performed by running oracle reports runtime 10g. I dont know what is the reason the database connectivity gets lost from reports runtime engine. But the form runtime engine working fine without any database connectivity issue. Kinldy help me to resolve this issue. thanks

    Please, close this thread and open a new one in the correct forum.
    Reports

  • Database connection lost during report

    Hello Experts, Our environment is WINDOWS2008 SERVER / ORACLE 10G / ORACLE REPORTS.
    The problem we are facing is , while running one of the particular reports which runs oracle reports , connection to database server gets lost. Acturally the form is printing a
    bar code label, this is performed by running oracle reports runtime 10g. I dont know what is the reason the database connectivity gets lost from reports runtime engine. But the form runtime engine working fine without any database connectivity issue. Kinldy help me to resolve this issue. thanks

    Hi,
    1- what is the Reports version being used?
    2- What is the error you are getting?
    3- Have you tried to enable reports trace and see what is happening in trace file?
    Thanks, Roberto

  • How TO use configurable Database connection with ADF BC

    I have developed a simple JSF/ ADF BC web application that connects to a database and read/display data from the db tables. I have successfully deployed the application to Tomcat 5.5.17. However, now i need to change the database the application is connecting to. My question is How can I change the Database connection without having to change the application modules or rebuild the war file ??? In other words, is there a specific file (xml) where the database connection can be changed?

    If you set up the application with a data source (I am not sure if this is possible using another app server, I use OC4J), then you would just change it there. However if you created a database connection in the JDEV and pointed your data model to that, then you will have to change and rebuild.
    You might be able to edit the xml file that contains the setttings, I am not sure my CM guys dont allow this, all of our changes have to go through our code repository.

  • Database connection via ftp

    I only have FTP access to a server that runs JSPs.
    Is there any way to get a database connection without physically going to the server?

    Correct.
    The dsn will be provided by administrator of ur server.
    Call him. He might have given u a list of parameters.
    Check it. It must be there.
    Bye,
    Samir

  • GLDI/ADI6 database connection

    GLDI is installed on a number of PC's (70)and we have recently upgraded to
    Release 11 and ADI6. The database name for Release 10.7 is the same as the new
    Release 11 database (Version 8.0.5). The problem arises when the users try to
    logon to ADI6. Because the old database name is the same as the new one, then
    the logon is not successful.
    Could you suggest a method of rolling out the new database connection for
    ADI6 to approx 70 users and remove the old GLDI database connection (without depending on user intervention.)?
    The settings are stored in Registry - HKEY_CURRENT_USER/SOFTWARE/ORACLE/GLDI/GLDI90 APPSINSTANCES
    Note:
    As a result of unsuccessful logons a file is generated on the server in
    /ph01/app/oracle/admin/PHP1/cdump.
    This could potentially cause problems on the server by filling up the file
    system.

    user13465498 wrote:
    issue 1 - Database connection not found
    In HFR, when I am running a report, which uses lot of attributes to fetch data, it is giving me error - "Database connection not found".Have you ever run this report successfully? Looks like it is not mapped to the correct database. Login to Workspace and either create or modify the db connection and map it to the report.
    issue 2 - Performance of report
    Another issue - similar report, the report, takes approx 30 mins to run, and then it returns approx 30 rows of data.(which is present in the system), is there a way the performance can be improved, because in real life, the user shall have lot of rows of data. Couple of things that could improve the performance:
    - Suppress zero and missing data if you haven't already.
    - If it is possible, let the users select dimension members from the POV or Page.
    Cheers,
    Mehmet

  • HELP IN DATABASE CONNECTIVITY IN A SERVLET`

    HI there,
    I have some issues in an application. I have a servlet which is called Servlet1.class. I have deployed this in my tomcat webapps folder. There is a stand alone application called MailAgent.class which pools into a mail box and retrieves the messages and converts them as HTTP messages. Then the MailAgent.class sends the HTTP message as multipart post (email message) to the servlet. In the servlet I am trying to establish a database connection with the JDBC driver from third party vendor. I am unable to get the driver class when I establish the connection with the database. Is there any issues with servlet and database access. I am able to connect if I run as a stand alone application.
    Any help would be greatly appreciated.
    Thanks
    John

    There shouldn't be any .class file in your webapps folder. I hope you mean that you created a subdirectory under webapps, with a WEB-INF under that and /classes and /lib under that. Your servlet .class file and its package directory structure belong under webapps/yourApp/WEB-INF/classes, right?
    You can create database connections in a servlet, although I agree with the previous poster that you'd be better off putting database code into objects that you could test off-line, without the servlet.
    You've got to have the JDBC driver JARs in the webapps/yourApp/WEB-INF/lib directory, for starters.
    If you get really adventurous you can create a pooled JNDI data source, but maybe that's another day's work. Get the basic connection working first.

  • J2EE Struts - Database connection failed - help???:(

    Hello,
    I have built a little web application and it works without any problems. In the next step I tried to add a database connection but I have already worked on it for at least one day and I could not fix the problem with the database connection.
    I downloaded the MySQL Server 5.0 and installed it, furthermore I have downloaded the jdbc driver mysql-connector-java-3.1.11.zip and extracted it to the MySQL Server 5.0 directory. Furthermore I have added under system settings - system - etended - system variables the whole path to the driver -> C:\Programme\MySQL\MySQL Server 5.0\mysql-connector-java-3.1.11\mysql-connector-java-3.1.11-bin.jar to the CLASSPATH systemvariable.
    Then I have startet the SQL Server 5.0 with mysqld --console from the command line.
    Furthermore I have added under Project-Properties-Java Build Path - Libraries - Add External JARs in Eclipse the mysql-connector-java-3.1.11-bin.jar to my Struts WebProject.
    To test the whole thing I have added to the existing test-database from mysql a table named owner and wanted to test the database connection in the Action-class with the following statements - I quote the whole execute method of the OwnerAction class:
    public ActionForward execute(
                     ActionMapping mapping,
                     ActionForm form,
                     HttpServletRequest request,
                     HttpServletResponse response)
                     throws Exception {
                   OwnerForm ownerForm = (OwnerForm) form;
                   String greet = ownerForm.getGreet();
                   String name = ownerForm.getName();
                   request.setAttribute("name", name);
                   request.setAttribute("greet", greet);
                   String address = ownerForm.getAddress();
                   String email = ownerForm.getEmail();
                   int tel = ownerForm.getTel();
                   Connection conn = null;
                   Statement stmt = null;
                   ResultSet rs = null;
                   DriverManager.registerDriver(new org.gjt.mm.mysql.Driver());
                   conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/test","root","sa");
                   try {
                         //conn = dataSource.getConnection();
                         stmt = conn.createStatement();
                         int id = 0;
                         rs = stmt.executeQuery("select max(id) as counter from owner");
                         while(rs.next()){
                            id = rs.getInt("counter");
                         id += 1;
                         stmt.executeUpdate("insert into owner values("+id+", '"+greet+"', '"+name+"', '"+email+"', '"+address+"', "+tel+")");
                         rs.close();
                         stmt.close();
                         conn.close();
                      catch(SQLException e){
                         throw new SQLException("database error");
                      // Forward control to the specified success target
                      return (mapping.findForward("success"));
          }But when I execute the WebApplication and the Action will be called the following error message appears in the browser:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Servlet execution threw an exception
         org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
    root cause
    java.lang.NoClassDefFoundError: org/gjt/mm/mysql/Driver
         com.asprise.struts.action.OwnerAction.execute(OwnerAction.java:72)
         org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5 logs.
    It must depend with anything that the driver was not found but I have defined it in the CLASSPATH variable and added it to the Web-Project in eclispe.
    Has anybody an idea what I have else made wrong or have forgotten??:(:(:(
    thanks in advance
    lg
    pat

    One thing I have forgotten - I have also copied the mysql-connector-java-3.1.11-bin.jar in the WebRoot\WEB-INF\lib directory of my EasyStruts WebApplication.
    Can anything else be wrong??:(:((
    regards

Maybe you are looking for