Database connection questions

<p>Hello,</p><p>1) Whenever I use a JDBC connection in my report, viewing that report (outside of preview) always prompts me with a database logon prompt.   How do I get rid of this?</p><p> </p><p>2) I would like to use JNDI for my db datasource at runtime.  I found a section in the help on JNDI, but it doesn&#39;t really clarify this for me (other than it can be done).  Can I specify a JNDI source in the design?  If so, how??  I saw a post somewhere where someone said to just make the connection name the same as the JNDI name.  I tried doing that, and I tried doing the same with the "database name" field.  I couldn&#39;t get it to work.  If this is the right way, what format for the JNDI name do I use?  Do I use the full path "java:comp/env/jdbc/mydb" or "mydb"... etc. I tried different combinations without succes.<br /></p><p>I saw sample code that modifies the data source at runtime, I guess this could work for JNDI if I have to do it that way, but would rather keep it in the design if possible.</p><p> </p><p>Thanks </p><p> </p>

<p>Hi Sean,</p><p>u00C2 I implemented your code and I am getting the following exception:</p><u><font size="2" color="#000080">com.crystaldecisions.sdk.occa.report.lib.ReportSDKException</font></u><font size="2">: Unexpected database connector error---- Error code:-2147467259 Error code name:failed</font><font size="2"> <p align="left">at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(Unknown Source)</p><p align="left">at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)</p><p align="left">at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)</p><p align="left">at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)</p><p align="left">at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)</p><p align="left">at com.crystaldecisions.sdk.occa.report.application.ag.a(Unknown Source)</p><p align="left">at com.crystaldecisions.sdk.occa.report.application.av.if(Unknown Source)</p><p align="left">at com.crystaldecisions.sdk.occa.report.application.an.new(Unknown Source)</p><p align="left">at com.crystaldecisions.sdk.occa.report.application.cb.for(Unknown Source)</p><p align="left">at com.crystaldecisions.proxy.remoteagent.u.performDo(Unknown Source)</p><p align="left">at com.crystaldecisions.proxy.remoteagent.u.a(Unknown Source)</p><p align="left">at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(Unknown Source)</p><p align="left">at com.crystaldecisions.sdk.occa.report.application.DatabaseController.setTableLocation(Unknown Source)</p><p align="left">at com.crystaldecisions.reports.sdk.DatabaseController.setTableLocation(Unknown Source)</p>at com.businessobjects.samples.JRCHelperSample.changeDataSource(</font><u><font size="2" color="#000080">JRCHelperSample.java:787</font></u><font size="2">)</font><font size="2"> <p align="left">at northnetwork.report.CrystalReportEngine.createReportDocument(<u><font size="2" color="#000080">CrystalReportEngine.java:56</font></u><font size="2">)at northnetwork.report.CrystalReportEngine.<init>(</font></p></font><u><font size="2" color="#000080">CrystalReportEngine.java:40</font></u><font size="2">)</font><font size="2"> <p align="left">at org.apache.jsp.parameter.viewReport_jsp._jspService(<u><font size="2" color="#000080">viewReport_jsp.java:77</font></u><font size="2">)at org.apache.jasper.runtime.HttpJspBase.service(</font></p></font><u><font size="2" color="#000080">HttpJspBase.java:97</font></u><font size="2">)</font><font size="2"> <p align="left">at javax.servlet.http.HttpServlet.service(<u><font size="2" color="#000080">HttpServlet.java:802</font></u><font size="2">)at org.apache.jasper.servlet.JspServletWrapper.service(</font></p></font><u><font size="2" color="#000080">JspServletWrapper.java:334</font></u><font size="2">)</font><font size="2"> <p align="left">at org.apache.jasper.servlet.JspServlet.serviceJspFile(<u><font size="2" color="#000080">JspServlet.java:314</font></u><font size="2">)at org.apache.jasper.servlet.JspServlet.service(</font></p></font><u><font size="2" color="#000080">JspServlet.java:264</font></u><font size="2">)</font><font size="2"> <p align="left">at javax.servlet.http.HttpServlet.service(<u><font size="2" color="#000080">HttpServlet.java:802</font></u><font size="2">)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(</font></p></font><u><font size="2" color="#000080">ApplicationFilterChain.java:252</font></u><font size="2">)</font><font size="2"> <p align="left">at org.apache.catalina.core.ApplicationFilterChain.doFilter(<u><font size="2" color="#000080">ApplicationFilterChain.java:173</font></u><font size="2">)at org.apache.catalina.core.StandardWrapperValve.invoke(</font></p></font><u><font size="2" color="#000080">StandardWrapperValve.java:213</font></u><font size="2">)</font><font size="2"> <p align="left">at org.apache.catalina.core.StandardContextValve.invoke(<u><font size="2" color="#000080">StandardContextValve.java:178</font></u><font size="2">)at org.apache.catalina.core.StandardHostValve.invoke(</font></p></font><u><font size="2" color="#000080">StandardHostValve.java:126</font></u><font size="2">)</font><font size="2"> <p align="left">at org.apache.catalina.valves.ErrorReportValve.invoke(<u><font size="2" color="#000080">ErrorReportValve.java:105</font></u><font size="2">)at org.apache.catalina.core.StandardEngineValve.invoke(</font></p></font><u><font size="2" color="#000080">StandardEngineValve.java:107</font></u><font size="2">)</font><font size="2"> <p align="left">at org.apache.catalina.connector.CoyoteAdapter.service(<u><font size="2" color="#000080">CoyoteAdapter.java:148</font></u><font size="2">)at org.apache.coyote.http11.Http11Processor.process(</font></p></font><u><font size="2" color="#000080">Http11Processor.java:869</font></u><font size="2">)</font><font size="2"> <p align="left">at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(<u><font size="2" color="#000080">Http11BaseProtocol.java:664</font></u><font size="2">)at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(</font></p></font><u><font size="2" color="#000080">PoolTcpEndpoint.java:527</font></u><font size="2">)</font><font size="2"> <p align="left">at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(<u><font size="2" color="#000080">LeaderFollowerWorkerThread.java:80</font></u><font size="2">)at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(</font></p></font><u><font size="2"
color="#000080">ThreadPool.java:684</font></u><font size="2">)</font><font size="2"> <p align="left">at java.lang.Thread.run(Unknown Source)</p><p align="left">Caused by: com.crystaldecisions.reports.reportdefinition.datainterface.e: Unexpected database connector error</p><p align="left">at com.crystaldecisions.reports.reportdefinition.datainterface.a.a(Unknown Source)</p><p align="left">at com.crystaldecisions.reports.reportdefinition.datainterface.a.a(Unknown Source)</p><p align="left">at com.crystaldecisions.reports.reportdefinition.datainterface.a.a(Unknown Source)</p><p align="left">at com.crystaldecisions.reports.reportdefinition.datainterface.g.a(Unknown Source)</p><p align="left">at com.crystaldecisions.reports.dataengine.bj.new(Unknown Source)</p><p align="left">at com.crystaldecisions.reports.common.as.a(Unknown Source)</p><p align="left">at com.crystaldecisions.reports.common.ae.a(Unknown Source)</p><p align="left">at com.businessobjects.reports.sdk.b.k.a(Unknown Source)</p><p align="left">at com.businessobjects.reports.sdk.b.w.m(Unknown Source)</p><p align="left">... 37 more</p><p align="left">Caused by: com.crystaldecisions.reports.queryengine.am: Unexpected database connector error</p><p align="left">at com.crystaldecisions.reports.queryengine.driverImpl.o.if(Unknown Source)</p><p align="left">at com.crystaldecisions.reports.queryengine.ax.new(Unknown Source)</p><p align="left">at com.crystaldecisions.reports.queryengine.ax.byte(Unknown Source)</p><p align="left">... 46 more</p><p align="left">Caused by</p><p align="left">com.crystaldecisions.reports.reportdefinition.datainterface.e: Unexpected database connector error</p><p align="left">at com.crystaldecisions.reports.reportdefinition.datainterface.a.a(Unknown Source)</p><p align="left">at com.crystaldecisions.reports.reportdefinition.datainterface.a.a(Unknown Source)</p><p align="left">at com.crystaldecisions.reports.reportdefinition.datainterface.a.a(Unknown Source)</p><p align="left">at com.crystaldecisions.reports.reportdefinition.datainterface.g.a(Unknown Source)</p><p align="left">at com.crystaldecisions.reports.dataengine.bj.new(Unknown Source)</p><p align="left">at com.crystaldecisions.reports.common.as.a(Unknown Source)</p><p align="left">at com.crystaldecisions.reports.common.ae.a(Unknown Source)</p><p align="left">at com.businessobjects.reports.sdk.b.k.a(Unknown Source)</p><p align="left">at com.businessobjects.reports.sdk.b.w.m(Unknown Source)</p><p align="left">at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)</p><p align="left">at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)</p><p align="left">at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)</p><p align="left">at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)</p><p align="left">at com.crystaldecisions.sdk.occa.report.application.ag.a(Unknown Source)</p><p align="left">at com.crystaldecisions.sdk.occa.report.application.av.if(Unknown Source)</p><p align="left">at com.crystaldecisions.sdk.occa.report.application.an.new(Unknown Source)</p><p align="left">at com.crystaldecisions.sdk.occa.report.application.cb.for(Unknown Source)</p><p align="left">at com.crystaldecisions.proxy.remoteagent.u.performDo(Unknown Source)</p><p align="left">at com.crystaldecisions.proxy.remoteagent.u.a(Unknown Source)</p><p align="left">at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(Unknown Source)</p><p align="left">at com.crystaldecisions.sdk.occa.report.application.DatabaseController.setTableLocation(Unknown Source)</p><p align="left">at com.crystaldecisions.reports.sdk.DatabaseController.setTableLocation(Unknown Source)</p>at com.businessobjects.samples.JRCHelperSample.changeDataSource(</font><u><font size="2" color="#000080">JRCHelperSample.java:787</font></u><font size="2">)</font><font size="2"> <p align="left">at northnetwork.report.CrystalReportEngine.createReportDocument(<u><font size="2" color="#000080">CrystalReportEngine.java:56</font></u><font size="2">)at northnetwork.report.CrystalReportEngine.<init>(</font></p></font><u><font size="2" color="#000080">CrystalReportEngine.java:40</font></u><font size="2">)</font><font size="2"> <p align="left">at org.apache.jsp.parameter.viewReport_jsp._jspService(<u><font size="2" color="#000080">viewReport_jsp.java:77</font></u><font size="2">)at org.apache.jasper.runtime.HttpJspBase.service(</font></p></font><u><font size="2" color="#000080">HttpJspBase.java:97</font></u><font size="2">)</font><font size="2"> <p align="left">at javax.servlet.http.HttpServlet.service(<u><font size="2" color="#000080">HttpServlet.java:802</font></u><font size="2">)at org.apache.jasper.servlet.JspServletWrapper.service(</font></p></font><u><font size="2" color="#000080">JspServletWrapper.java:334</font></u><font size="2">)</font><font size="2"> <p align="left">at org.apache.jasper.servlet.JspServlet.serviceJspFile(<u><font size="2" color="#000080">JspServlet.java:314</font></u><font size="2">)at org.apache.jasper.servlet.JspServlet.service(</font></p></font><u><font size="2" color="#000080">JspServlet.java:264</font></u><font size="2">)</font><font size="2"> <p align="left">at javax.servlet.http.HttpServlet.service(<u><font size="2" color="#000080">HttpServlet.java:802</font></u><font size="2">)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(</font></p></font><u><font size="2" color="#000080">ApplicationFilterChain.java:252</font></u><font size="2">)</font><font size="2"> <p align="left">at org.apache.catalina.core.ApplicationFilterChain.doFilter(<u><font size="2"
color="#000080">ApplicationFilterChain.java:173</font></u><font size="2">)at org.apache.catalina.core.StandardWrapperValve.invoke(</font></p></font><u><font size="2" color="#000080">StandardWrapperValve.java:213</font></u><font size="2">)</font><font size="2"> <p align="left">at org.apache.catalina.core.StandardContextValve.invoke(<u><font size="2" color="#000080">StandardContextValve.java:178</font></u><font size="2">)at org.apache.catalina.core.StandardHostValve.invoke(</font></p></font><u><font size="2" color="#000080">StandardHostValve.java:126</font></u><font size="2">)</font><font size="2"> <p align="left">at org.apache.catalina.valves.ErrorReportValve.invoke(<u><font size="2" color="#000080">ErrorReportValve.java:105</font></u><font size="2">)at org.apache.catalina.core.StandardEngineValve.invoke(</font></p></font><u><font size="2" color="#000080">StandardEngineValve.java:107</font></u><font size="2">)</font><font size="2"> <p align="left">at org.apache.catalina.connector.CoyoteAdapter.service(<u><font size="2" color="#000080">CoyoteAdapter.java:148</font></u><font size="2">)at org.apache.coyote.http11.Http11Processor.process(</font></p></font><u><font size="2" color="#000080">Http11Processor.java:869</font></u><font size="2">)</font><font size="2"> <p align="left">at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(<u><font size="2" color="#000080">Http11BaseProtocol.java:664</font></u><font size="2">)at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(</font></p></font><u><font size="2" color="#000080">PoolTcpEndpoint.java:527</font></u><font size="2">)</font><font size="2"> <p align="left">at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(<u><font size="2" color="#000080">LeaderFollowerWorkerThread.java:80</font></u><font size="2">)at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(</font></p></font><u><font size="2" color="#000080">ThreadPool.java:684</font></u><font size="2">)</font><font size="2"> <p align="left">at java.lang.Thread.run(Unknown Source)</p><p align="left">Caused by: com.crystaldecisions.reports.queryengine.am: Unexpected database connector error</p><p align="left">at com.crystaldecisions.reports.queryengine.driverImpl.o.if(Unknown Source)</p><p align="left">at com.crystaldecisions.reports.queryengine.ax.new(Unknown Source)</p><p align="left">at com.crystaldecisions.reports.queryengine.ax.byte(Unknown Source)</p><p align="left">... 46 more</p><p align="left">Caused by:</p><p align="left">com.crystaldecisions.reports.reportdefinition.datainterface.e: Unexpected database connector error</p><p align="left">at com.crystaldecisions.reports.reportdefinition.datainterface.a.a(Unknown Source)</p><p align="left">at com.crystaldecisions.reports.reportdefinition.datainterface.a.a(Unknown Source)</p><p align="left">at com.crystaldecisions.reports.reportdefinition.datainterface.a.a(Unknown Source)</p><p align="left">at com.crystaldecisions.reports.reportdefinition.datainterface.g.a(Unknown Source)</p><p align="left">at com.crystaldecisions.reports.dataengine.bj.new(Unknown Source)</p><p align="left">at com.crystaldecisions.reports.common.as.a(Unknown Source)</p><p align="left">at com.crystaldecisions.reports.common.ae.a(Unknown Source)</p><p align="left">at com.businessobjects.reports.sdk.b.k.a(Unknown Source)</p><p align="left">at com.businessobjects.reports.sdk.b.w.m(Unknown Source)</p><p align="left">at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)</p><p align="left">at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)</p><p align="left">at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)</p><p align="left">at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)</p><p align="left">at com.crystaldecisions.sdk.occa.report.application.ag.a(Unknown Source)</p><p align="left">at com.crystaldecisions.sdk.occa.report.application.av.if(Unknown Source)</p><p align="left">at com.crystaldecisions.sdk.occa.report.application.an.new(Unknown Source)</p><p align="left">at com.crystaldecisions.sdk.occa.report.application.cb.for(Unknown Source)</p><p align="left">at com.crystaldecisions.proxy.remoteagent.u.performDo(Unknown Source)</p><p align="left">at com.crystaldecisions.proxy.remoteagent.u.a(Unknown Source)</p><p align="left">at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(Unknown Source)</p><p align="left">at com.crystaldecisions.sdk.occa.report.application.DatabaseController.setTableLocation(Unknown Source)</p><p align="left">at com.crystaldecisions.reports.sdk.DatabaseController.setTableLocation(Unknown Source)</p>at com.businessobjects.samples.JRCHelperSample.changeDataSource(</font><u><font size="2" color="#000080">JRCHelperSample.java:787</font></u><font size="2">)</font><font size="2"> <p align="left">at northnetwork.report.CrystalReportEngine.createReportDocument(<u><font size="2" color="#000080">CrystalReportEngine.java:56</font></u><font size="2">)at northnetwork.report.CrystalReportEngine.<init>(</font></p></font><u><font size="2" color="#000080">CrystalReportEngine.java:40</font></u><font size="2">)</font><font size="2"> <p align="left">at org.apache.jsp.parameter.viewReport_jsp._jspService(<u><font size="2" color="#000080">viewReport_jsp.java:77</font></u><font size="2">)at org.apache.jasper.runtime.HttpJspBase.service(</font></p></font><u><font size="2"
color="#000080">HttpJspBase.java:97</font></u><font size="2">)</font><font size="2"> <p align="left">at javax.servlet.http.HttpServlet.service(<u><font size="2" color="#000080">HttpServlet.java:802</font></u><font size="2">)at org.apache.jasper.servlet.JspServletWrapper.service(</font></p></font><u><font size="2" color="#000080">JspServletWrapper.java:334</font></u><font size="2">)</font><font size="2"> <p align="left">at org.apache.jasper.servlet.JspServlet.serviceJspFile(<u><font size="2" color="#000080">JspServlet.java:314</font></u><font size="2">)at org.apache.jasper.servlet.JspServlet.service(</font></p></font><u><font size="2" color="#000080">JspServlet.java:264</font></u><font size="2">)</font><font size="2"> <p align="left">at javax.servlet.http.HttpServlet.service(<u><font size="2" color="#000080">HttpServlet.java:802</font></u><font size="2">)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(</font></p></font><u><font size="2" color="#000080">ApplicationFilterChain.java:252</font></u><font size="2">)</font><font size="2"> <p align="left">at org.apache.catalina.core.ApplicationFilterChain.doFilter(<u><font size="2" color="#000080">ApplicationFilterChain.java:173</font></u><font size="2">)at org.apache.catalina.core.StandardWrapperValve.invoke(</font></p></font><u><font size="2" color="#000080">StandardWrapperValve.java:213</font></u><font size="2">)</font><font size="2"> <p align="left">at org.apache.catalina.core.StandardContextValve.invoke(<u><font size="2" color="#000080">StandardContextValve.java:178</font></u><font size="2">)at org.apache.catalina.core.StandardHostValve.invoke(</font></p></font><u><font size="2" color="#000080">StandardHostValve.java:126</font></u><font size="2">)</font><font size="2"> <p align="left">at org.apache.catalina.valves.ErrorReportValve.invoke(<u><font size="2" color="#000080">ErrorReportValve.java:105</font></u><font size="2">)at org.apache.catalina.core.StandardEngineValve.invoke(</font></p></font><u><font size="2" color="#000080">StandardEngineValve.java:107</font></u><font size="2">)</font><font size="2"> <p align="left">at org.apache.catalina.connector.CoyoteAdapter.service(<u><font size="2" color="#000080">CoyoteAdapter.java:148</font></u><font size="2">)at org.apache.coyote.http11.Http11Processor.process(</font></p></font><u><font size="2" color="#000080">Http11Processor.java:869</font></u><font size="2">)</font><font size="2"> <p align="left">at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(<u><font size="2" color="#000080">Http11BaseProtocol.java:664</font></u><font size="2">)at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(</font></p></font><u><font size="2" color="#000080">PoolTcpEndpoint.java:527</font></u><font size="2">)</font><font size="2"> <p align="left">at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(<u><font size="2" color="#000080">LeaderFollowerWorkerThread.java:80</font></u><font size="2">)at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(</font></p></font><u><font size="2" color="#000080">ThreadPool.java:684</font></u><font size="2">)</font><font size="2"> <p align="left">at java.lang.Thread.run(Unknown Source)</p><p align="left">Caused by: com.crystaldecisions.reports.queryengine.am: Unexpected database connector error</p><p align="left">at com.crystaldecisions.reports.queryengine.driverImpl.o.if(Unknown Source)</p><p align="left">at com.crystaldecisions.reports.queryengine.ax.new(Unknown Source)</p><p align="left">at com.crystaldecisions.reports.queryengine.ax.byte(Unknown Source)</p><p align="left">... 46 more</p></font>

Similar Messages

  • Database connectivity question?

    when I select the OLE DB provider is "microsoft OLE DB provider for
    ODBC Drivers",I can write to database,but I can't read from database
    using data connectivity toolkit?
    but when I select the OLE DB provider is "microsoft JET 4.0 OLE DB
    provider"
    that's no problem.i don't known why?
    thank you in advance!
    [email protected]

    ebarker wrote in message news:<[email protected]>...
    > Please look at the
    > href="http://www.ni.com/pdf/manuals/321525c.pdf">LabVIEW Database
    > Connectivity User Manual, specifically chaper 2, as it explains in
    > great detail the differences between the two different providers.
    > Good luck!
    I have saw LabVIEW Database Connectivity User Manual,I can't get some
    useful information.
    when I select the OLE DB provider is "microsoft OLE DB provider for
    ODBC Drivers",I can write to database,but I can't read from database
    using data connectivity toolkit?I stored data in access database (.db
    file) and i use the SQL language:
    SELECT * FROM motor WHERE serial="aaa"
    the error is :
    "error-21472179
    04 occurred at conn Execute.vi-fetch record.vi(myvi).
    possible reasons:
    Invlid string:specified field does not exist or contains an
    unsupported character"
    but when I select the OLE DB provider is "microsoft JET 4.0 OLE DB
    provider" ,i can read the record using the same language.

  • Database connection question...

    i am using Java 1.5.0_06 and to connect to MySQL database i use Connector/J and the following code:
    try {
    Class.forName("com.mysql.jdbc.Driver");
    } catch(java.lang.ClassNotFoundException e) {
    System.err.print("Main: ClassNotFoundException: ");
    System.err.println(e.getMessage());
    return;
    try {
    con = DriverManager.getConnection(dburl);
    ps = con.prepareStatement(
    I was told i should be using a DataSource to do connection pooling and i have read over the info and downloaded jdbc2_0-stdext.jar and i am using MySQL and windows XP pro.
    the code looks like this
    Context ctx = new InitialContext();
    DataSource ds = (DataSource)ctx.lookup("jdbc/InventoryDB");
    Connection con = ds.getConnection("myUserName", "myPassword");
    then i just use con as i have already in my code.
    Can someone please point me in the right direction to get this working.
    I read this:
    A systems administrator or someone working in that capacity deploys a DataSource object. Deployment, which involves setting the DataSource object's properties and then registering it with a JNDI naming service, is generally done with a tool. As part of the registration process, the systems administrator will associate the DataSource object with a logical name. This name can be almost anything, usually being a name that describes the data source and that is easy to remember. In the example that follows, the logical name for the data source is InventoryDB . By convention, logical names for DataSource objects are in the subcontext jdbc , so the full logical name in this example is jdbc/InventoryDB .
    i have goggled but can't seem to find out exactly what i need to do next.
    I can't find the "tool" and have to be honest i am lost lol.
    can the The JDBC 2.0 Optional Package work with Java 1.5.0_06?

    i am using Java 1.5.0_06 and to connect to MySQL database i use Connector/J and the following code: i updated it to use manual connection pooling like so:
    final String dburl = "jdbc:mysql://localhost/......";
    Connection con = null;
    try {
    Class.forName("com.mysql.jdbc.Driver");
    } catch(java.lang.ClassNotFoundException e) {
    System.err.print("Main: ClassNotFoundException: ");
    System.err.println(e.getMessage());
    return;
    try {
    DataSource dataSource = setupDataSource(dburl);
    con = dataSource.getConnection();
    con.close();
    public static DataSource setupDataSource(String connectURI) {
    ObjectPool connectionPool = new GenericObjectPool(null);
    ConnectionFactory connectionFactory = new DriverManagerConnectionFactory(connectURI,null);
    PoolableConnectionFactory poolableConnectionFactory = new PoolableConnectionFactory(connectionFactory,connectionPool,null,null,false,true);
    PoolingDataSource dataSource = new PoolingDataSource(connectionPool);
    return dataSource;
    so i compiled and ran it and it worked no problem but my question is that this is a server that does some db work upon starting and then waits for clients like so:
    while (listening)
         new PSMultiServerThread(serverSocket.accept()).start();
    so once i am in PSMultiServerThread what exactly do i need to do?
    i know i don't need to do this again:
    Class.forName("com.mysql.jdbc.Driver");
    but do i need to do this again:
    DataSource dataSource = setupDataSource(dburl);
    i geuss i have to to declare the variable lol.
    and do i include this code in the PSMultiServerThread
    public static DataSource setupDataSource(String connectURI) {
    ObjectPool connectionPool = new GenericObjectPool(null);
    ConnectionFactory connectionFactory = new DriverManagerConnectionFactory(connectURI,null);
    PoolableConnectionFactory poolableConnectionFactory = new PoolableConnectionFactory(connectionFactory,connectionPool,null,null,false,true);
    PoolingDataSource dataSource = new PoolingDataSource(connectionPool);
    return dataSource;
    --------------------------------------------------------------------------------------

  • Database connectivity questions

    I have a site made in CS3 that uses db connectivity and works fine.  Now I'm in CS5 and need to add some dynamic pages to it.  The site already has a DSN and works. I don't know if I've just forgotten in the last few years how to do it or if something changed.
    If I add a new asp JavaScript page, the + in the Databases window stays grayed out, with the Create a Site, etc. in the pane (even though the site is defined) so I can't add a DSN connection.  If I add a new asp VBScript page (just wondering if the type of language is the problem) I can add a DSN, but when I put in the Connection name (using the same Connections name the other pages use), I get an error that it cannot create a new Connection because the file already exists.
    I'm trying to do this in a site where the dynamic pages have been created using extensions by WebAssist, which no longer support ASP in CS5 so I'm trying to figure out what to do for any new pages.  I'm wondring if that's what's messing me up? Because even trying to open the pages that work, the CS5 version of DW has the + grayed out and no DSN shown.  I can add new pages with CS3 but obviously I want to be able to add new ones with CS5, even if I can't edit the old WebAssist pages with it.  I hope I don't have to start all over and rebuild the entire site.
    Any suggestions or insights would be appreciated.  Thank you.

    If I add a new asp JavaScript page
    Don't.  You are not using ASP/JavaScript.  Use ASP/VBScript.
    If I add a new asp VBScript page (just wondering if the type of language is the problem) I can add a DSN, but when I put in the Connection name (using the same Connections name the other pages use), I get an error that it cannot create a new Connection because the file already exists.
    Hmm - I'm not sure what the problem is here.  You should be able to have multiple connection files that use the same DSN.  But I have to tell you, it's been a LOOOONG time since I've used ASP and DSNs.

  • Design question for database connection in multithreaded socket-server

    Dear community,
    I am programming a multithreaded socket server. The server creates a new thread for each connection.
    The threads and several objects witch are instanced by each thread have to access database-connectivity. Therefore I implemented factory class which administer database connection in a pool. At this point I have a design question.
    How should I access the connections from the threads? There are two options:
    a) Should I implement in my server class a new method like "getDatabaseConnection" which calls the factory class and returns a pooled connection to the database? In this case each object has to know the server-object and have to call this method in order to get a database connection. That could become very complex as I have to safe a instance of the server object in each object ...
    b) Should I develop a static method in my factory class so that each thread could get a database connection by calling the static method of the factory?
    Thank you very much for your answer!
    Kind regards,
    Dak
    Message was edited by:
    dakger

    So your suggestion is to use a static method from a
    central class. But those static-methods are not realy
    object oriented, are they?There's only one static method, and that's getInstance
    If I use singleton pattern, I only create one
    instance of the database pooling class in order to
    cionfigure it (driver, access data to database and so
    on). The threads use than a static method of this
    class to get database connection?They use a static method to get the pool instance, getConnection is not static.
    Kaj

  • ODI database connection - session question

    Hi,
    I have a package, where I have used a procedure.
    In my procedure, I open a database connection.
    My question is - In my next procedure - will I be able to use my same database connection which I created in previous step?
    Re-phrasing the question - for any number of database transaction happening in a package, will ODI opens multiple database connection per step or will there be only one single database connection?
    Thank you,
    Paras

    I believe its one per session so one connection inside the package. I think you should be , although i have not tried it practically.

  • Database Connection design question

    Hello, I have a design question. Awhile back I needed to create a database connection to SQL Server, so I created a class to do it
    import java.sql.*;
    import java.io.*;
    import java.net.MalformedURLException;
    import org.w3c.dom.Document;
    import org.w3c.dom.*;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    public class SQLServerConnection
         private static Connection connection = null;
         public SQLServerConnection(String user, String password, String dbName) throws java.sql.SQLException
              getDBConnection(user, password, dbName);
         public SQLServerConnection(String configFileName) throws java.sql.SQLException
              getDBConnection(configFileName);
         private void getDBConnection(String user, String password, String dbName) throws java.sql.SQLException
             DriverManager.registerDriver(new com.microsoft.jdbc.sqlserver.SQLServerDriver());
             connection = DriverManager.getConnection(
                  "jdbc:microsoft:sqlserver:" + dbName, user, password);              
         private void getDBConnection(String configFileName) throws java.sql.SQLException
              String user;
              String password;
              String dbName;
              try
                   DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
                   DocumentBuilder db = factory.newDocumentBuilder();
                   Document doc = db.parse(configFileName);
                   doc.getDocumentElement().normalize();
                   // get the configuration information
                   password = getConfigParameter("password", doc);
                   user = getConfigParameter("username", doc);
                   dbName = getConfigParameter("databasename", doc);
                   getDBConnection(user, password, dbName);
              catch (MalformedURLException murle)
                   System.out.println("Unable to connect to: " + configFileName + " -- " + murle);
                   System.exit(1);
              catch (FileNotFoundException fnfe)
                   System.out.println("Configuration file " + configFileName + " not found.");
                   System.exit(1);
              catch (IOException ioe)
                   System.out.println("IOException: " + ioe);
                   System.exit(1);
              catch (javax.xml.parsers.ParserConfigurationException pce)
                   System.out.println ("Parser Configuration Error: " + pce);
              catch (SAXException saxe)
                   System.out.println ("SAXException: " + saxe);
         private String getConfigParameter(String paramName, org.w3c.dom.Document doc)
              NodeList nl = doc.getElementsByTagName(paramName);
              if(nl != null)
                   Node n = null;
                   for (int i = 0; i < nl.getLength(); i++)
                        n = nl.item(i);          
                        if(n.hasChildNodes())
                             NodeList children = n.getChildNodes();
                             return ((Node)children.item(0)).getNodeValue();
              else
                   System.out.println ("nl is null");
              return "";          
         public void setCatalog(String catalogName) throws java.sql.SQLException
              connection.setCatalog(catalogName);
         public Connection getConnection()
              return connection;
         public void closeConnection()
              try
                   connection.close();
              catch(java.sql.SQLException sqle)
                   System.err.println ("SQL Server Connection failed to close: " + sqle);
    }Later on, I needed to do the same thing for MySQL, so I created a class for that, MySQLServerConnection which is exactly the same as above, except for:
    private void getDBConnection(String user, String password, String dbName) throws java.sql.SQLException
              try
                   Class.forName("com.mysql.jdbc.Driver").newInstance();
                   connection = DriverManager.getConnection(dbName, user, password);     
              catch(java.lang.ClassNotFoundException cnfe)
                   System.out.println (cnfe);
              catch(java.lang.InstantiationException ie)
                   System.out.println (ie);
              catch(java.lang.IllegalAccessException iae)
                   System.out.println (iae);
         }Later, on, I did the same thing with OracleServerConnection. My question is, I know this is probably not optimal code. For example, I didn't originally have a close connection method, so I had to go in and code one for all 3. I'm assuming that an interface would be a good idea so that if I have to code another database connection class I make sure and include all of the appropriate methods. I'm also assuming that it would have been smart to have a master class, maybe something like DatabaseConnection and extended these classes from that. Am I on the right track? Totally offbase?

    @nclow - I will work on trying the Factory Pattern for this over the weekend and post when I finish to see what you think.
    @abillconsl - just to make sure I understand, you're saying that I just try to connect and it will cycle through the different database connection possibilities and connect when it finds the right one? If it fails all 3, log an appropriate message. One question I have about this is, I thought I was being object oriented by separating the different types of db connections (Oracle, SQL Server, MySql) into different classes. Am I missing the point of OOP by what I was/am trying to accomplish? Going overboard? Also, does your way try and connect to all 3 even if I connected to one already?
    Thx, Grantarchy
    Edited by: grantarchy on May 9, 2008 9:50 PM

  • Questions about the database connection

    hi all,
    I am developing a project with JDeveloper 10g and I created a database connection to my Oracle RAC database.
    However, whenever I start the project with the JDeveloper and I do a "netstat -an" with the command prompt window. I show there are over 100 connection ESTABLISHED to my database. I don't have any idea how this happens. The problem is since there are over 100 connection established, I couldn't run the project with the JDeveloper's embedded OC4J.
    Can anyone help me to fix this problem?

    I have set the Max connections to 30 in the connection-pool setting of my project in the Embedded OC4J Server Preferences, but it doesn't work.
    There are still over 100 connections to the database...

  • Brand newbie question on database connection

    I'm brand new to Oracle databasing and am having trouble figuring out how to set up a connection to an existing database. Specifically, I'm not clear at all about the use of the tnsname.ora file. What I'm trying to do is set up a connection using an .asp page to connect to this database. I'm using :
         objConnect.Open ("Provider=MSDASQL;DRIVER={Microsoft ODBC for Oracle};Server=F12_PROD_MARS.WORLD;UID=FLGI;PWD=FLGI")
    [/CODE]
    Which gives me the "ORA-12154: TNS:could not resolve service name" error. I know the information that I need in my tnsname.ora file is:F12_PROD_MARS =
    (DESCRIPTION=
    (ADDRESS_LIST=
    (ADDRESS=
    (PROTOCOL=TCP)
    (Host=172.31.xx.xx)
    (Port=1521)
    (ADDRESS=
    (PROTOCOL=TCP)
    (Host=172.31.xx.xx)
    (Port=1526)
    (CONNECT_DATA=
    (SID=MARS)
    I don't know where the tnsname.ora file is supposed to be located or how to reference it from .asp or anything like that though. The only database connection experience I have is with my own access databases, but none trying to connect to someone elses oracle db. Any help at all or a link to some kind of starters guide would be much appreciated. Also, I downloaded pl/sql developer, but I cannot log on to that either. I don't know if its the same connection issue here, but I know my user/pass for the server is correct, what do I enter for database, so that the application knows where to go? Thanks again... -ST

    objConnect.Open ("Provider=MSDASQL;DRIVER={Microsoft
    t ODBC for
    Oracle};Server=F12_PROD_MARS.WORLD;UID=FLGI;PWD=FLGI")I take it you have the Oracle Client installed on the web app server i.e. where the MS ODBC driver lives
    ODBC now looks for tns name "f12_prod_mars.world" ...
    Which gives me the "ORA-12154: TNS:could not resolve service name" error.
    I know the information that I need in my tnsname.ora file is:
    F12_PROD_MARS =
    ... because it looks for that name, including .world, and cant find it. Name "f12_prod_mars" is not the same name, obviously. (like test.com and test.se are different)
    I don't know where the tnsname.ora file is supposed
    to be located or how to reference it from .asp orWhere is it located now? If you search the harddrives for tnsnames.ora, what do you get?
    connection issue here, but I know my user/pass for
    the server is correct, what do I enter for database,
    so that the application knows where to go? ThanksIf an app, like sql*plus, is asking for "Database:" it often means you give the tns name (=the alias for the tns connect descriptor, which is the thing with lots of ('s and )'s) :)
    Message was edited by:
    orafad

  • Question regarding Database Connection.

    Normally, after we open a database connection, we could use the Connection.close() method to close and return database connection back to a connection pool.
    What would happen if I nullify the connection without using the close() method to close a database connection?
    Would the database connection automatically close after I nullify it?
    If not, how the connection going to return back to the connection pool?

    The connection will close/be released automatically when the garbage collector runs, but you should NEVER rely on that because you never know when the GC will run or if it will collect all objects or only part of them. Best approach is to always have a finally block where you close/release the connection.
    Alin.

  • Performance with MySQL and Database connectivity toolbox

    Hi!
    I'm having quite some problems with the performance of MySQL and Database connectivity toolbox. However, I'm very happy with the ease of using database connectivity toolbox. The background is:
    I have 61 variables (ints and floats) which I would like to save in the MySQL-database. This is no problem, however, the loop time increases from 8ms to 50ms when using the database. I have concluded that it has to do with the DB Tools Insert Data.vi and I think that I have some kind of performance issue with this VI. The CPU never reach more the 15% of its maximum performance. I use a default setup and connect through ODBC.
    My questions are:
    1. I would like to save 61 variables each 8-10ms, is this impossible using this solution?
    2. Is there any way of increasing the performance of the DB Tools Insert Data.vi or use any other VI?
    3. Is there any way of adjusting the MySQL setup to achieve better performance?
    Thank you very much for your time.
    Regards,
    Mattias

    First of all, thank you very much for your time. All of you have been really good support to me.
    >> Is your database on a different computer?  Does your loop execute 61 times? 
    Database is on the same computer as the MySQL server.
    The loop saves 61 values at once to the database, in one SQL-statement.
    I have now added the front panel and block diagram for my test-VI. I have implemented the queue system and separate loops for producer and consumer. However, since the queue is building up faster then the consumer loop consumes values, the queue is building up quite fast and the disc starts working.
    The test database table that I add data to is created by a simple:
    create table test(aa int, bb char(15));
    ...I'm sure that this can be improved in some way.
    I always open and close the connection to the database "outside the loop". However, it still takes some 40-50 ms to save the data to the database table - so, unfortunatly no progress to far. I currently just want to save the data.
    Any more advise will be gratefully accepted.
    Regards,
    Mattias
    Message Edited by mattias@hv on 10-23-2007 07:50 AM
    Attachments:
    front panel 2.JPG ‏101 KB
    block diagram.JPG ‏135 KB

  • Database Connection Problem in Oracle9i Lite Web-to-Go

    Hi
    I am having problem in the Database Connectivity. I am using the OracleDriver class for the connection and have defined the DataSource in the struts-config.xml as
    <data-sources>
    <data-source>
    <set-property property="driverClass"
    value="oracle.jdbc.driver.OracleDriver" />
    <set-property property="url"
    value="jdbc:oracle:thin:@192.50.200.201:1521:WEBTOGO.WORLD" />
    <set-property property="maxCount"
    value="5"/>
    <set-property property="minCount"
    value="1"/>
    <set-property property="user"
    value="master"/>
    <set-property property="password"
    value="ramchow"/>
    </data-source>
    </data-sources>
    But when I am trying to do any database transaction it is throwing the following exception..
    log9: [ERROR] ActionServlet - -Initializing application data source org.apache.s
    truts.action.DATA_SOURCE <java.sql.SQLException: Io exception: Connection refuse
    d(DESCRIPTION=(TMP=)(VSNNUM=153093120)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505
    )(EMFI=4))))>java.sql.SQLException: Io exception: Connection refused(DESCRIPTION
    =(TMP=)(VSNNUM=153093120)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:180)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:222)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:335)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:361)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va:442)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:321)
    at org.apache.struts.legacy.GenericDataSource.createConnection(GenericDa
    taSource.java:805)
    at org.apache.struts.legacy.GenericDataSource.open(GenericDataSource.jav
    a:741)
    at org.apache.struts.action.ActionServlet.initModuleDataSources(ActionSe
    rvlet.java:1085)
    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:472)
    at javax.servlet.GenericServlet.init(GenericServlet.java:258)
    at oracle.lite.web.JupServlet.createInstance(JupServlet.java:349)
    at oracle.lite.web.JupServlet.getServlet(JupServlet.java:322)
    at oracle.lite.web.JupServlet.service(JupServlet.java:216)
    at oracle.lite.web.AppServletHandler.handle(AppServletHandler.java:297)
    at oracle.lite.web.JupApplication.service(JupApplication.java:550)
    at oracle.lite.web.JupHandler.handle(JupHandler.java:109)
    at oracle.lite.web.HTTPServer.process(HTTPServer.java:306)
    at oracle.lite.web.HTTPServer.handleRequest(HTTPServer.java:162)
    at oracle.lite.web.JupServer.handle(JupServer.java:310)
    at oracle.lite.web.SocketListener.process(SocketListener.java:172)
    at oracle.lite.web.SocketListener$ReqHandler.run(SocketListener.java:226
    log9: javax.servlet.UnavailableException: Initializing application data source o
    rg.apache.struts.action.DATA_SOURCE
    log9: at org.apache.struts.action.ActionServlet.initModuleDataSources(ActionSe
    rvlet.java:1091)
    log9: at org.apache.struts.action.ActionServlet.init(ActionServlet.java:472)
    log9: at javax.servlet.GenericServlet.init(GenericServlet.java:258)
    log9: at oracle.lite.web.JupServlet.createInstance(JupServlet.java:349)
    log9: at oracle.lite.web.JupServlet.getServlet(JupServlet.java:322)
    log9: at oracle.lite.web.JupServlet.service(JupServlet.java:216)
    log9: at oracle.lite.web.AppServletHandler.handle(AppServletHandler.java:297)
    log9: at oracle.lite.web.JupApplication.service(JupApplication.java:550)
    log9: at oracle.lite.web.JupHandler.handle(JupHandler.java:109)
    log9: at oracle.lite.web.HTTPServer.process(HTTPServer.java:306)
    log9: at oracle.lite.web.HTTPServer.handleRequest(HTTPServer.java:162)
    log9: at oracle.lite.web.JupServer.handle(JupServer.java:310)
    log9: at oracle.lite.web.SocketListener.process(SocketListener.java:172)
    log9: at oracle.lite.web.SocketListener$ReqHandler.run(SocketListener.java:226.
    Can anybody guide me what can be the problem asap.
    regards
    ramchow

    Ramesh,
    This looks like it might be a Java class mismatch error. Do you have multiple versions of Java installed on your machine? If so, you may want to keep one version and remove the rest.
    If you're already running just one version, you may want to check the registry and classpath for references to multiple Java versions, or version that no longer exist.
    Please let me know if you have additional questions.
    Junius

  • How can I use SQL TOOLKIT concurrently with Database Connectivity ?

    I have installed LabVIEW 6.1 with the Database Connectivity Toolkit and the SQL Compatibility Toolkit (e.g. _SQL folder). I am trying to make the transition from the SQL Toolkit VIs to the Database Connectivity toolkits, but for compatability with existing systems I would like to be able to run the two sets of VIs concurrently (but not in the same app).
    When I read into 6.1 a connection VI that I wrote with LabVIEW 6.0 and the SQL toolkit the connection reference type gets changed from a number to type connection (see attachments) . Does compatbility mean that my SQL toolkit VIs are converted to a form compatible with the new ADO ?
    Can I use the SQL Toolkit VIs or the Database connectivit
    y VIs in the same installation of 6.1 ?
    Can I have the SQL Toolkit VIs appear on the functions pallette and function as they did when only the SQL toolkit was installed ?
    Attachments:
    CNNCT.vi ‏20 KB
    CNNCT.vi ‏22 KB

    In response to your #2 below:
    Actually it is possible to have the old SQL Toolkit and new Database
    connectivity in the same installation of LabVIEW. I have only tried it on
    6i, but don't see why it wouldn't work on 6.1. The trick is not to install
    the SQL toolkit compatabitily VI's. The old SQL toolkit uses the Intersolve
    dll through ODBC while the new Database connectivity uses ADO so it is
    possible to use both methods not only in the same LabVIEW install, but it
    the same running application. It has been a while since I originally did
    this, so I am posting only to mention that it is possible and not exactly
    how to do it. If anyone is interested in more details just respond.
    Brian
    "Jeff B" wrote in message
    news:[email protected]...
    > First, direct answers to your direct questions:
    >
    > 1. Does compatbility mean that my SQL toolkit VIs are converted to a
    > form compatible with the new ADO ?
    >
    > Yes
    >
    > 2. Can I use the SQL Toolkit VIs or the Database connectivity VIs in
    > the same installation of 6.1 ?
    >
    > No
    >
    > 3. Can I have the SQL Toolkit VIs appear on the functions pallette
    > and function as they did when only the SQL toolkit was installed ?
    >
    > No
    >
    >
    > Now an elaboration:
    >
    > Having the old SQL Toolkit and the new Database Connectivity Toolset
    > installed on the same version of LabVIEW on the same computer is not
    > supported.
    >
    > Once you install the Database Connectivity Toolset, any VIs written
    > with the SQL Toolkit will run, but with the ADO layer, as you
    > suspected.
    >
    > Internally, the only way we can have both the SQL Toolkit and the
    > Database Connectivity Toolset installed on the same computer for
    > troubleshooting customer issues is to have them installed on different
    > versions of LabVIEW. I, for example, have LabVIEW 5.1.2, 6.0.3, and
    > 6.1 all installed on my computer, and I have the SQL Toolkit install
    > on LabVIEW 5.1.2, and the Database Connectivity Toolset installed on
    > LabVIEW 6.0.3. In this configuration I can still run SQL Toolkit VIs
    > independent of the Database Connectivity Toolset if I open and run
    > them in LabVIEW 5.1.2.

  • Multiple DB connection question.

    I have a MDB that currently processes a message and updates a Oracle DB say Database A. Now we want that MDB to check some flags on a different Oracle database instance, say Database B before it updates the Database A.
    Basically, the during the processing of a message the MDB has to access Database A, Database B and Database A again in that order. My question is whatever I am trying to do is reccommended? Since I need connection to Database A again after I do some woek with Database B, can I still keep that connection around or do I have to close that right away?
    I am using wls 8.1.
    Any suggestions?
    Thanks
    JB

    <p>The short answer is that you can keep both connections around at the same time, without any issues. Just be careful with any cleanup where you close connections, and make sure that both get dealt with regardless of any exceptions that might occur.</p>
    <p>But depending on the number of MDBs in your configured pool, it might be a more efficient use of database connections to create a smaller pool of stateless session beans to hold those database connections and expose utility methods for the queries (which could use prepared statements)</p>
    Kevin Powe<br>
    Senior Consultant
    Message was edited by:
    kevinpowe

  • Multiple Database Servers Question

    Hi,
    Please forgive this ignorant question, but can someone tell
    me how one would go about using multiple database servers?
    Just as there comes a time where one would need more than
    one web server and would need to use a load balancing
    solution, what happens when one would need more than one
    Database Server?
    How does one go about implementing that solution?
    Is there some way to have two database servers carrying the
    same information with some kind of load balancing solution
    in front of it(?) or does one place some tables on one
    Database
    server, and other tables on the other database server?
    (I have no clue as to how things would work.)
    Thanks in advance,
    Joe

    Microsoft SQL allows for clustering of SQL databases, so for
    instance two servers connected to a fileshare and a virtual address
    shared across the two physical boxes. Database connections are made
    to the virtual addres which will then be handled by the active
    node. Becuase a database is ultimately a file(s) on a disk it can
    only be attached to one node at a time so you end up with an
    active/inactive cluster.

Maybe you are looking for

  • Macbook Pro DVI and Video Out woes..

    Hey, this seems to be a known issue although specifics are difficult to nail down. I've had my macbook pro since shortly after they were launched and been using the DVI - S-video adapter since day one, and it's been outputting to all TVs with no prob

  • Safari doesn't open my homepage under private browsing

    after upgrading to safari 5.1, whenever i close my browser then reopen after a few minutes or when re-starting my mac, my home page opens up to igoogle but not the igoogle i normally use. under preferences my signed in igoogle page is designated as t

  • Firefox crashs

    Firefox wont open at all, I've re-downloaded it and it still wouldn't open. bp-2daab16b-e1a0-4100-ac29-3b0622131206

  • Connecting as sysdba returns ORA-01017: invalid username/password

    SQL Developer on my Win7 x64 Enterprise machine with Oracle 11gR2 Express was working fine until I tried to install the ODAC connectors so I could use Oracle as a data source for C# and VB in Visual Studio 2010. The connection properties are: Connect

  • How do I go back to 4.0 after upgrading to 4.0.1 ?

    I upgraded to version 4.0.1 two days ago. I haven't been pleased with the performance (frequent freezes, slow loading), and one of my favorite tools that I need for work doesn't work properly. I'd like to uninstall the upgrade and go back to 4.0. How