Database connection issue using SQLPLUS

I have a WIN7 Host named DELL-i5 and a WINXP VM named VMXP on VMWARE.
Now, the host has a Oracle 11g database orders, SID - orders, username - SYSTEM, password - abc123. I have set the listener to be on port 1521 using NETCA.
The VM has Oracle client 11g.
The VM is connected as Bridged and host and VM can ping each other.
Now, when I choose to connect to the database using this command from VM :
sqlplus SYSTEM/abc123@//DELL-i5:1521/orders
I get ORA-12170: TNSConenct timeout occurred
I have tried the following on th Host's SQLPLUS and only this worked
SYSTEM/abc123@orders
What do I do ? Thanks
Edited by: ztech123 on 28-Oct-2010 18:38

ztech123 wrote:
I get ORA-12170: TNSConenct timeout occurredFull details of the error from the oerr comand:
<i>12170, 00000, "TNS:Connect timeout occurred"
// *Cause:  The server shut down because connection establishment or
// communication with a client failed to complete within the allotted time
// interval. This may be a result of network or system delays; or this may
// indicate that a malicious client is trying to cause a Denial of Service
// attack on the server.
// *Action: If the error occurred because of a slow network or system,
// reconfigure one or all of the parameters SQLNET.INBOUND_CONNECT_TIMEOUT,
// SQLNET.SEND_TIMEOUT, SQLNET.RECV_TIMEOUT in sqlnet.ora to larger values.
// If a malicious client is suspected, use the address in sqlnet.log to
// identify the source and restrict access. Note that logged addresses may
// not be reliable as they can be forged (e.g. in TCP/IP).</i>
What do I do ? ThanksYou have tested connectivity via ICMP - so there is a network route between the sender and receiver. However a timeout results when using 1521/tcp for access via SQL*Plus.
First test connectivity for that port using telnet. On VMXP try the following.
telnet dell-i5 1521
Do you get a connection? If not, then it means that despite ICMP reporting connectivity, there is none on 1521/tcp. In that case the culprit could be a firewall.
If you do get a connection, then try sqlplus next, but without a tnsnames.ora and sqlnet.ora file - e.g.
sqlnet syste/abc123@"(DESCRIPTION= (ADDRESS= (PROTOCOL=TCP)(HOST=dell-i5)(PORT=1521)) (CONNECT_DATA= (SID=orders) (SERVER=dedicated)))"
The idea is to keep the number of configuration files and details to a minimum for testing purposes and to isolate the problem.
Also check basic stuff like netmasks of both the guest and host operating systems, routing tables and so on.

Similar Messages

  • Oc4j and database connections issue (way too many created)

    I seem to be experiencing a serious issue every time someone connects to my application. New connections are made to the database instead of using existing connections (i.e. pooling doesn't seem to work). In my data-sources.xml, the pools are set to have a max-connections of 3, yet when I query the v$sessions view, there are additional sessions created every time the application is hit which has sent it way over the max-connections parameter in the data-sources.xml file. If oc4j is pooling the connections how can this happen? Is there any way of tracking where this is occurring or what could be causing this? (SQLNET.EXPIRE_TIME has been set, database is 10g, oc4j is 101202 and oc4j on linux platform)
    Thanks
    Paul

    Paul,
    According to the documentation for OC4J 10.1.2, if you use the value of the "ejb-location" attribute (from the "data-sources.xml" file) when doing a JNDI lookup of your datasource, then you should be using connection pooling.
    It's probably also an idea to not define a "pooled-location" attribute in your "data-sources.xml" file.
    Also, you can get database connection information via the "Spy" [Web] application. Use the following URL:
    http://oc4jHost:oc4jPort/dmsoc4j/Spy
    Of-course you need to replace "oc4jHost" and "oc4jPort" with the appropriate values. For example if you open your Web browser on the same machine that OC4J is running on, and if you are using the default port, then the URL will be:
    http://localhost:8888/dmsoc4j/Spy
    Good Luck,
    Avi.

  • Connectivity issues using MS Query in Excel

    Hi,
    I am currently having an issue with the connectivity when using the MS Query. This started about two weeks ago. I am running Windows 7 enterprise with office 2010. I am pulling data from an Oracle Database using the Microsoft ODBC for Oracle driver. Two
    weeks ago using the MS Query option, it would take seconds for the two to connect. Now it takes 20 to 30 minutes and that is if it connects at all.
    I am unsure of why all of the sudden the initial connection between the two is taking this long. To my knowledge no major updates or patches have been installed to either software.
    Any advice would be great.
    Thanks

    Are you using SQL plus? Have you tried Oracle's SQL
    developer? It is free, does not require an install
    on your computer (you can run it from a flash drive),
    and it exports pretty smoothly to excel.I'm not using SQL Plus -- this was purely excel / ODBC as the client and Oracle as the database layer.
    I had looked at SQL Developer, along with DB Visualizer (along the same lines , as a sql gui with some export capability to .csv and excel formats). However, I don't think it quite served my purpose in trying to have a workable data-source where I could pull from Excel and use VBScript or C# to do the manipulation and customized reporting/charting/pivot-tabling.
    My eventual workaround was to bypass MS Query altogether for creating the 'external data table' in Excel, and instead create the query through code.

  • How to share the same Database Connection when using several Task Flows ?

    Hi All,
    I’m using JDev 11.1.1.3.0.
    I’m developing ADF Fusion Applications (ABC BC, ADF Faces…)
    These applications are deployed on a Weblogic server.
    Each application has only one Application Module.
    All Application Modules have the same connection type defined: JDBC DataSource : jdbc/GCCDS
    It is working fine.
    I’ve also developed Task Flow Applications for small thinks that are reused in multiple main applications.
    Each Task Flow Application has also one Application Module with the same connections type as main applications.
    All these task flows are deployed to JAR file (ADF Library JAR File) and are reused on my main applications. (drag and drop from the Resource Palette to ADF Regions….).
    There are some parameters passed to Task Flows, so that they can filter data depending on which main applications they are called from.
    Everything is working perfectly.
    All my main applications are using more and more task flows. Which is nice for the reusability etc…?
    Only ONE PROBLEM: DATABASE CONNECTIONS.
    Every Task Flows service made a database connection. So one user may have 10 database connections for the same adf page. And when there are 100 users that are working at the same time, it becomes a problem.
    How to share the same database connections for the main applications and all task flows which are used in the main application?
    Best Regards
    Nicolas

    Hi John,
    When I open a ADF Library JAR file of one of my task flow. (gcc_tf_recentSites.jar)
    I can see TF_RecentSitesService.xml and TF_RecentSitesServiceImpl.class in gcc_tf_recentSites.jar\mu\gcc\tf\recentSites\model\service folder
    + bc4j.xcfg in gcc_tf_recentSites.jar\mu\gcc\tf\recentSites\model\service\common folder.
    bc4j.xcfg details are
    +<?xml version = '1.0' encoding = 'UTF-8'?>+
    +<BC4JConfig version="11.1" xmlns="http://xmlns.oracle.com/bc4j/configuration">+
    +<AppModuleConfigBag ApplicationName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService">+
    +<AppModuleConfig DeployPlatform="LOCAL" jbo.project="mu.gcc.tf.recentSites.model.TF_RecentSites_Model" name="TF_RecentSitesServiceLocal" ApplicationName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService">+
    +<Security AppModuleJndiName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService"/>+
    +<Custom JDBCDataSource="jdbc/GCCDS"/>+
    +</AppModuleConfig>+
    +<AppModuleConfig name="TF_RecentSitesServiceShared" ApplicationName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService" DeployPlatform="LOCAL" JDBCName="gccdev" jbo.project="mu.gcc.tf.recentSites.model.TF_RecentSites_Model">+
    +<AM-Pooling jbo.ampool.maxpoolsize="1" jbo.ampool.isuseexclusive="false"/>+
    +<Security AppModuleJndiName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService"/>+
    +</AppModuleConfig>+
    +</AppModuleConfigBag>+
    +</BC4JConfig>+
    So, it seems that the Application Module is packaged with the task flow....
    Is it normal ?
    Regards
    Nicolas

  • Database connecting problem using iPlanet Server

    hi experts,
    i am new begi to iPlanet server.
    before that i was using JWS2.0.
    simple servlet is working fine in iPlanet.
    when coming to database connectivity, there is error shown as
    "SQLException java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified "
    below is my servlet
    import javax.servlet.*;          
    import javax.servlet.http.*;
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    public class test1 extends HttpServlet
    Connection dbCon;
    Statement stat;
    public void init(ServletConfig config) throws javax.servlet.ServletException
    public void doGet (HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException
    ResultSet rs;
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    try
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    dbCon = DriverManager.getConnection("jdbc:odbc:collegeodbc","","");
    stat = dbCon.createStatement();
    rs = stat.executeQuery("select * from degrees");
    rs.next();
    out.println(rs.getString(1));
    rs.close();
    catch(ClassNotFoundException ce)
    out.println("Class Not Found "+ce);
    catch(SQLException se)
    out.println("SQLException "+se);
    public void destroy()
    this same coding with void main() in system working fine.
    still that servlet working fine with JWS2.0 also, but not in iPlanet.
    any idea.
    Plz help experts
    thanks in adv.

    hi,
    yes u can avoid restarting the server after compiling a servlet
    just follow the following instruction
    go to \Netscape\Server4\https-admserv\config\contexts.properties
    and uncomment the following lines
    context.global.reloadInterval=1
    context.global.isModifiedCheckAggressive=true
    and do the same step for the following properties file in
    \Netscape\Server4\https-"ur machine name"\config\contexts.properties
    and u can avoid restarting the server after u compile a servlet

  • Which Database connectivity is used professionally in JSP/Servlet?

    Hi friends,
    Can you tell me which type of database connectivity is generally used in professional web-related projects.
    I mean to say,
    1) Class.forName method or
    2) context lookup using JNDI Data Source method.
    Also,
    I wonder how in shared hosting anybody writes their <Resource> tag inside TomcatRoot\conf\server.xml file.
    In my local Tomcat6 i can do that. But, in Live Shared hosting how to handle JNDI Datasource?
    ---Sujoy

    me_sujoy wrote:
    Hi friends,
    Can you tell me which type of database connectivity is generally used in professional web-related projects.
    I mean to say,
    1) Class.forName method or
    2) context lookup using JNDI Data Source method.By using a connection pool (usually the one provided by the server).
    >
    Also,
    I wonder how in shared hosting anybody writes their <Resource> tag inside TomcatRoot\conf\server.xml file.
    In my local Tomcat6 i can do that. But, in Live Shared hosting how to handle JNDI Datasource?Uhm, by using the context.xml. See the documentation for your Tomcat.

  • Need suggestion for a database connection issue in an EJB Application

    Hi Friends,
    I am facing some serious problem in my EJB application. Some times, my application is waiting for unknown reason while it connects to database as executing a stored procedure to get and assign a unique number to a transaction.
    This stored procedure is used to get a unique number from database and update the database with the new unique number which is incremented by previous number.
    During this waiting time, if any other transaction hits my application, then my application assigning same unique number to these 2 transactions.
    But It is not happening always. It is happening very less number of times. What should I take care of the code to not happen this? Can I implement any synchronization kind of thing here?
    If I implement synchronization kind of thing, If the first transaction gets the lock and waits for some time, then I think it will effect for subsequent transactions. Could You please suggest me on this issue?
    Thanks in Advance to All.

    Here is my datasources.xml :
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
    <beans>     
         <bean id="myDataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
              <property name="jndiName" value="jdbc/myDS"/>
              <property name="resourceRef" value="false"/>
         </bean>
    </beans>

  • Database connectivity issues since upgrading to 2011

    I have several reports that were created in CR 2008.  Since upgrading to 2011, none of them connect to the SQL server when I try to refresh the data.  The error message says invalid logon.  I can get the reports to refresh if I follow this process:
    1.     Close the report
    2.     Delete connections to the SQL server
    3.     Close CR
    4.     Open CR
    5.     Create a new blank report and connect to the same data source as the failed report
    6.     Open the report that was failing
    7.     Refresh the data
    Everything works at that point.  Once I close CR, next time I access the report I have to go through the entire process again.  Saving the reports after successfully establishing a connection does not fix the issue.  I have reset the data source location from the database menu as well as established new system and file DSNs.  Any help would be greatly appreciated.
    Thank you,
    Darren

    Hi Darren,
    What I meant for version of CR 2011 is to click on Help About... you'll see the version number there.
    Interesting, So if it fails in the ODBC Admin test then of course it's going to fail in CR Designer, CR simply uses what connection info you specify in the DSN or in the file. If you can get the DSN to work non-kerberose then adding that configuration to your File DSN should allow CR to work also.
    Couple of possibilities, Older versions of CR ignored the security configuration, or at least this one test, and it was fixed in CR 2011, or possibly the File DSN needs to have the security type enabled through the connection property. Check MS for help on what the info in the line is to enable it.
    Another possible solution is according to this MS Kbase they recommend that you use Kerberose...
    http://support.microsoft.com/kb/909801
    So the result is, Set Kerberose on the Server or find out how MS will support non-kerberose security client side and see if that works. But because MS recommends using it discuss with your DBA and recommend to all to enable it and use it.
    Thanks again
    Don

  • Oracle 10g olap cube connectivity issue using Crystal Reports 2008

    Hi
    Kindly help me out with a solution. I have created a cube in oracle 10gR2 database using Oracle Analytic Workspace Manager. I am trying to connect to this cube using Crystal report Olap datasorces. But I am only getting 4 options to connect to Hyperion Essbase, HOLOS Cube, Microsoft OLEDB, Microsoft OLAP Analysis Services 8.0 and 9.0.  I am not getting any option for connection to Oracle OLAP. How do I do that or if it does not support kindly let me know.
    Thanks in advance
    Troyee

    Hi Troyee,
    I have discussed the issue with OLAP engineer and he told me that connectivity to OLAP cube is not supported.
    and please next time address OLAP questions to the following category:
    Expert Forums » Business Objects » Other Business Objects Products
    (see the relevant category description)
    Vitaly Izmaylov
    Crystal Reports Design forum moderator

  • NW 7.3 Installation - Oracle Database connection issue.

    Dear SDN,
    I am trying to install the SAP NW 7.3 but fail due the connection to oracle database. (My System details : Windows 7, 64 bit, 4gb ram - copyied NW7.3 server for 64 bit)
    I hvae installed the Oracle database and client. I have checked and stated the services, updated the host file, started the database with SQL editor, checked the Oracle Enterprise Manager, all looks fine.
    When I run the Sapinst, it finds the database but unable to process next due to connection error. error message looks like :
    Cannot connect to jaiswal
    Error(s) returned:
    SQL Server does not exist or access denied.
    SOLUTION: Check that you specified the correct name for the database server, that the server is running and you are authorized to log on to it.
    Please advice on the issue.
    Best Regards
    Arun Jaiswal

    Dear Vincent
    I am using the Oracle as database. When I extract the part-1-5 folder for Oracle database and started the run the sapinst under extracted folder > data units > _MSS.
    Best Regards
    Arun Jaiswal

  • Crystal report DataBase Connection Issue.

    I am trying to change the connection string of the report file dynamically base on the connection info in the web.config.
    I have connected to the database A while designing  the report if  to change the database dynamically to database B from code behind.
    I have used the following code.
    But getting an error as "DataBase Logon failed".
    may some one help  in resolving this issue ASAP.
    ParameterFields myParams = new ParameterFields();
                            ParameterField myParam = new ParameterField();
                            ParameterDiscreteValue myDiscreteValue = new ParameterDiscreteValue();
                            myParam.ParameterFieldName = "@ID";
                            myParam.ReportName = strreportfile;
                            myDiscreteValue.Value = Convert.ToInt32(Session["ID"]);
                            myParam.CurrentValues.Add(myDiscreteValue);
                            myParams.Add(myParam);
                                               CrystalReportViewer1.EnableDatabaseLogonPrompt = false;
                            CrystalDecisions.Shared.TableLogOnInfo crConnectionInfo = new CrystalDecisions.Shared.TableLogOnInfo();
                            crConnectionInfo.ConnectionInfo.ServerName = ConfigurationManager.AppSettings["ServerName"].ToString();                        crConnectionInfo.ConnectionInfo.DatabaseName = ConfigurationManager.AppSettins["DatabaseName"].ToString();
                            crConnectionInfo.ConnectionInfo.UserID = ConfigurationManager.AppSettings["UserId"].ToString();
    ConfigurationManager.AppSettings("UserID").ToString;
                            crConnectionInfo.ConnectionInfo.Password = ConfigurationManager.AppSettings["password"].ToString();
                            foreach (InternalConnectionInfo conn in objReportDocument.DataSourceConnections)
                                conn.SetConnection(crConnectionInfo.ConnectionInfo.UserID, crConnectionInfo.ConnectionInfo.Password, crConnectionInfo.ConnectionInfo.ServerName, crConnectionInfo.ConnectionInfo.DatabaseName);
                            CrystalReportViewer1.EnableParameterPrompt = false;
                          objReportDocument.OpenSubreport("test2.rpt");
                         objReportDocument.Subreports[0].SetDatabaseLogon(crConnectionInfo.ConnectionInfo.UserID, crConnectionInfo.ConnectionInfo.Password, crConnectionInfo.ConnectionInfo.ServerName, crConnectionInfo.ConnectionInfo.DatabaseName);
                            for (int index = 0; index <= reportdoc.Database.Tables.Count - 1; index++)
                              reportdoc.Database.Tables[index].ApplyLogOnInfo(crConnectionInfo);
                       CrystalReportViewer1.ParameterFieldInfo = myParams;
                            CrystalReportViewer1.ReportSource = objReportDocument;

    Moved to .NET SDK forums.
    SEARCH here, 100's of posts on how to debug your DB connection problem.
    Good luck
    Don

  • Oracle database Connectivity issue

    We are using Oracle 11g database with java 1.6
    When i am deploying my application i am getting below error
    09:48:13,604 INFO [STDOUT] SQL Exception occured:
    09:48:13,605 ERROR [STDERR] java.sql.SQLException:
    09:48:13,607 ERROR [STDERR] at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
    09:48:13,607 ERROR [STDERR] at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:131)
    09:48:13,607 ERROR [STDERR] at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:204)
    09:48:13,608 ERROR [STDERR] at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java:650)
    09:48:13,608 ERROR [STDERR] at oracle.jdbc.driver.T2CConnection.processOCIConnectionPooling(T2CConnection.java:997)
    09:48:13,608 ERROR [STDERR] at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:239)
    09:48:13,609 ERROR [STDERR] at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:508)
    09:48:13,609 ERROR [STDERR] at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:133)
    09:48:13,609 ERROR [STDERR] at oracle.jdbc.driver.OracleOCIConnection.<init>(OracleOCIConnection.java:60)
    09:48:13,610 ERROR [STDERR] at oracle.jdbc.driver.OracleOCIConnection.<init>(OracleOCIConnection.java:44)
    09:48:13,610 ERROR [STDERR] at oracle.jdbc.oci.OracleOCIConnection.<init>(OracleOCIConnection.java:36)
    09:48:13,610 ERROR [STDERR] at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:49)
    09:48:13,611 ERROR [STDERR] at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:510)
    09:48:13,611 ERROR [STDERR] at oracle.jdbc.pool.OracleOCIConnectionPool.createConnectionPool(OracleOCIConnectionPool.java:864)
    09:48:13,611 ERROR [STDERR] at oracle.jdbc.pool.OracleOCIConnectionPool.<init>(OracleOCIConnectionPool.java:149)
    09:48:13,614 ERROR [STDERR] at javax.servlet.GenericServlet.init(GenericServlet.java:242)
    09:48:13,615 ERROR [STDERR] at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1208)
    09:48:13,615 ERROR [STDERR] at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1108)
    09:48:13,615 ERROR [STDERR] at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3628)
    09:48:13,616 ERROR [STDERR] at org.apache.catalina.core.StandardContext.start(StandardContext.java:3851)
    09:48:13,616 ERROR [STDERR] at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:299)
    09:48:13,616 ERROR [STDERR] at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:138)
    09:48:13,617 ERROR [STDERR] at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
    09:48:13,617 ERROR [STDERR] at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
    09:48:13,617 ERROR [STDERR] at org.jboss.web.deployers.WebModule.start(WebModule.java:95)
    09:48:13,617 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    09:48:13,618 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    09:48:13,618 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    09:48:13,618 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
    09:48:13,619 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
    09:48:13,619 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
    09:48:13,619 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    09:48:13,620 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:271)
    09:48:13,620 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670)
    09:48:13,620 ERROR [STDERR] at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
    This error come when my application is trying to connect to data base
    try {
    proxyPool = new OracleOCIConnectionPool(strUserId ,strPassword, url,poolConfig); // error is coming at this line
    System.out.println("Connection pool created");
    } catch (SQLException sqle) {
    System.out.println("SQL Exception occured:");
    sqle.printStackTrace();
    if(proxyPool != null) {
    proxyPool.close();
    proxyPool = null;
    throw sqle;
    Please help me find resolution of this problem
    Thanks,
    Kumar
    Edited by: 906270 on Jan 9, 2012 3:01 AM

    906270 wrote:
    We are using Oracle 11g database with java 1.6Err...no that is not all you are doing. Looks like a whole bunch of stuff is in there.
    Please help me find resolution of this problemWrite a command line application in java. That means it does NOT run in jboss.
    It should do nothing but connect to oracle with the OCI connection string and report the results.
    Run it on the same box as jboss.
    Run it as the same user as jboss.
    If it succeeds then your problem is jboss or the user.
    If it doesn't then report the exception that that throws. And post the code (using code tags.)

  • DW in a wamp environment - database connectivity issues

    I'm new to creating dynamic websites. I'm working with The Missing Manual Tutorial and setting up a wamp localhost testing environment. On the last step in setting up the environment, I'm trying to point DW to the MySql database cosmofarmer and the only database that shows up in the window menu is information_schema database (which I cannot find in any file). The database I want to connect to is located in the MySql/data folder (which is the default for MySql), but in DW/databases there's no option to browse to select it. I can see cosmofarmer in phpMyAdmin window. Is there a way to point DW to find the dbases in the MySql default folder? should I put the dbases in different folder, or what will work?
    Any advice appreciated.

    Best way to go is in PHPmyAdmin create a new database for each site you are working on. Then create a new user for your local MySQL and give this user the exact same username and password that you will be using for the live server database for the same site, finally give this user full permissions for the database for this site ONLY.
    Now you can create a DSN for this site with the username and password you created, which will be the same as on the server so you won't have to remember to edit your DSN settings before uploading to the server.
    Hope this helps.
    Lawrence Cramer - *Adobe Community Professional*
    http://www.Cartweaver.com
    Shopping Cart for Adobe Dreamweaver
    available in PHP, ColdFusion, and ASP
    Stay updated - http://blog.cartweaver.com

  • Jdev 10.1.3 Database connectivity issue

    I have migrated form Jdev 10.1.2 to Jdev 10.1.3.1.and have configured my database setting i.e URL,USER NAME,Password etc in Embedded OC4J sever preferences.
    When I run my application through run button on the menu bar it get connected to the database and application get start properly.but after 10 ro 15 min ,its automatically hitting the database with wrong id or password and my database get locked due to too many wrong hits.It continues hitting the database server with wrong id and password even i terminate the OC4J server forcefully.In order to get the hits block I have to close the Jdev IDE.
    I have checked all the connection settings,user id and password.

    This is a WSDL file from a Web Service provider which we will have to uses as it is.
    Suprisingle the same WSDL file works just fine in Jdev 10.1.2. But Jdev 10.1.2 does not create all the .java files specified by WSDL.
    Jdev 10.1.3 creates all the files but does not work.

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

Maybe you are looking for