Connection error with mysql

hi,
i'm using j2sdk1.4.2 and mysql 3.x, and i'm having problems with the connection of these two. i used the latest connector which is mysql-connector-java-3.0.14-production-bin.jar, and i followed all the steps for installing this connector. my classpath is already set to where i placed the jar file. however, i still get this error :
java.sql.SQLException : unable to connect to any hosts due to exception: java.net.ConnectException : Connection refused : connect
what should i do?
and by the way, here's the code :
import java.sql.*;
public class JdbcExample1 {
public static void main(String args[]) {
try {
Class.forName("com.mysql.jdbc.Driver").newInstance();
Connection con = DriverManager.getConnection("jdbc:mysql:///");
if(!con.isClosed())
System.out.println("Successfully connected to MySQL server...");
} catch(Exception e) {
System.err.println("Exception: " + e.getMessage());
     e.printStackTrace();
} }

Hi, I am new to all these.
Recently I been trying to get Mysql and JSP and Tomcat working but try and try still cannot. Since you guys are on this topic and more knowledgeable I hope that you could help me out. Thanks.
I have the same set up as you except mysql version 4.0
MySQL is working fine by itself, JSP is working fine connecting to Apache Tomcat fine but cannot get MySQL data connected to show on Tomcat.
Sample code as below
import java.sql.*;
import java.io.*;
class StocksMy {
public static void main (String args []) {
try {
Class.forName("com.mysql.jdbc.Driver").newInstance();
try {
} catch (Exception e) {
System.out.println("StocksMy");
System.exit(1);
Connection conn =DriverManager.getConnection
("jdbc:mysql://:3306/StocksMy);
Statement stmt = conn.createStatement();
ResultSet rset = stmt.executeQuery ("select * from stocks");
while (rset.next()) {
String ticker=rset.getString(1).trim();
String title=rset.getString(2).trim();
String price=rset.getString(3).trim();
String blanks=
System.out.print (ticker);
System.out.print(blanks.substring(1,8-ticker.length()));
System.out.print (title);
System.out.print(blanks.substring(1,41-title.length()));
System.out.println (price);
} catch (Exception e) {
System.out.println("StocksMy: JDBC exception");
System.exit(1);
PLEASE is this correct?
How to get this to show up in Tomcat (localhost:8080) ?
I guess must convert to JSP first? How? Can show from sample above or a simple sample?
All very confusing to me.
Thanks guys.

Similar Messages

  • Can' t connect Java with MySQL

    My goal is to connect Java with MySQL. I found many solutions on Internet, but I always get the same mistake:
    SQLException: No suitable driver
    SQLState: 08001
    VendorError: 0MySQL works fine alone or with php.Only thing left me to think is that the installed versions are not compatible for this mysql-connector-java-5.0.4
    I don't believe that could be a reason.
    Installed versions are:
    Apache Tomcat 5.5.20 Server
    Apache HTTP Server 2.2.4
    PHP 5.2.0
    MySQL 5.2
    jre 1.5.0_11
    jdk1.5.0_11
    Apache Tomacat JK2 connector Version: 1.2.20 File Name: mod_jk-apache-2.2.3.so
    mysql-connector-java-5.0.4
    I also set connector in class path: C:\mysql-connector-java-5.0.4;C:\mysql-connector-java-5.0.4\mysql-connector-java-5.0.4-bin.jar;C:\mysql-connector-java-5.0.4\src\com\mysql\jdbc
    For installation I used manulas from:
    http://apacheguide.org/jsp.php
    http://doc.51windows.net/mysql/?url=/MySQL/ch23s03.html
    Here is also a test code in java:
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
       public class Connect
           public static void main (String[] args)
               Connection conn = null;
               try {
        conn =
           DriverManager.getConnection("jdbc:mysql://localhost/first_test" +
                                       "user=monty&password=greatsqldb");
        // Do something with the Connection
    } catch (SQLException ex) {
        // handle any errors
        System.out.println("SQLException: " + ex.getMessage());
        System.out.println("SQLState: " + ex.getSQLState());
        System.out.println("VendorError: " + ex.getErrorCode());
       }i'm desperate, please help or tell me someone who'll know the answer.
    Thank You in advance

    hey buddy .. it seems yr code is wrong .. in getconnection () method u should also specify the port ,which u r not doing ...
    the default port for MySQL is 3306 ... see below i am giving you a sample code ... its working fine .. and dont forget to put the MySQL driver jar path in to classpath and also copy the jar into common/lib folder of your tomcat ....
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    public class MySQLConnectionTest {
         public static void main(String[] args) {
    new MySQLConnectionTest().connTest();
    public void connTest() {
              String tableName = "portfolio"; //change as per setting
              String hostName = "10.81.9.39"; // please change for the target database ip or hostname
              String dbPort = "3306"; //change if not using the default
              String dbName = "tradingsystem"; //change as per the given DB name
              String username = "root"; //change as per setting
              String password = "password"; //change as per setting
              System.out.println("before try");
              Double data=0.0;
         Double data1=0.0;
              try {
    Class.forName("org.gjt.mm.mysql.Driver");
                   System.out.println("before driver manager");
    Connection conn = DriverManager.getConnection("jdbc:mysql://"+hostName+":"+dbPort+"/"+dbName, username, password);
    String query1 = "select * from "+tableName+" where User_id='trader1' and Stock_Type='Equity'";
    System.out.println("quesry1="+query1);
    Statement stmt = conn.createStatement();
    ResultSet rs1 = stmt.executeQuery(query1);
    while(rs1.next())
         System.out.println("hiiiiii for rs1");
         System.out.println(rs1);
         Quantity=(Integer)rs1.getObject(5);
         MarketPrice=(Double) rs1.getObject(8);
         data=Quantity*MarketPrice;
         data1+=data;
         System.out.println("data1="+data1);
         i=0;
    rs1.close();
    stmt.close();
    conn.close();
    } catch (ClassNotFoundException e) {
    e.printStackTrace(System.err);
    } catch (SQLException e) {
    e.printStackTrace(System.err);
    i hope it will work for u...
    cheers,

  • How to connect APEX with MYSQL via Apex's Database link

    How do i connect APEX with MYSQL via Apex's Database link? The OBE doesn't go into specific detail about how to link the two.
    can someone please elaborate on what these are and where i can find them in mysql:
    Database Link Name      
    Connect To Schema      
    Password      
    Remote Hostname or IP      
    Remote Host Port      
    SID or Service Name      
    I need to link to mysql database so I can set up a 3D pie chart in apex

    Hi jononioo
    A database link is a device for connecting between Oracle database instances only. Oracle does have a method for connecting to other database systems (Transparent Gateway) but this is restricted to other commercial databases and I don't believe there is a gateway for Mysql. (I could be wrong)
    I don't know Mysql but maybe there is some way to push data to the Oracle instance. Other than that, is there any reason why the data has to reside in the Mysql database?
    Regards
    Andre

  • OS X LION 10.8.2 connection error with AFP

    Ok the issue is that i tried to access my external harddrive over AFP with OS X LION and got a error message like this one above. I couldn’t login with a registered user .
    We had the same problem in a earlier update but somehow got around it follwing the terminal commands from: http://www.alexanderwilde.com/2011/04/os-x-lion-connection-error-with-afp-and-wo rkaround/
    But now after the update its back to be broken again...
    Please help!
    Thanks

    Exactly the same problem here for a satellite user working abroad.
    10.8.2 - cannot connect to the server over AFP. I've run the commands in the link posted, no dice.
    Users running 10.8.2 on the internal LAN have no issues however, just this one off-site user.

  • Unidentified Error when connecting DW with MySql

    Hi
    I am trying to connect to Mysql Database which is hosted by a hosting company on their server.  I have been given a static IP address and port to access this database remotely. I have add the information below to DW 8 in an attempt to gain access the info is below.  I get an unidentified error when i test the connection i don't know where to put this static IP and port.  Can someone help thanks
    DW information is as follows:
    My login is
    username buildingbids
    password ********
    I am trying to connect from dreamweaver
    Details of that are below
    Local Info
    Sitename buildingbids
    Local root folder C:\Documents and Settings\Main User\My Documents\WEB SITES\buildingbids\
    HTTP address http://www.buildingbids.ie
    Remote Info
    Access FTP
    FTPhost ftp1.reg365.net
    Host Directory web
    Login buildingbids.ie
    Password ******
    This works when i test it
    Testing Server
    Server Model PHP MySQL
    Access FTP
    FTPhost ftp1.reg365.net
    Host Directory web
    Login buildingbids.ie
    Password kevinmac
    This works when i test it
    URL Prefix http://ftp1.reg365.net/
    When i go to test the connection i get a message saying an unidentified error has occured.
    My connbuildingbids code is
    <?php
    # FileName="Connection_php_mysql.htm"
    # Type="MYSQL"
    # HTTP="true"
    $hostname_connbuildingbids = "ftp1.reg365.net";
    $database_connbuildingbids = "buildingbids";
    $username_connbuildingbids = "buildingbids";
    $password_connbuildingbids = "kevinmac";
    $connbuildingbids = mysql_pconnect($hostname_connbuildingbids, $username_connbuildingbids, $password_connbuildingbids) or trigger_error(mysql_error(),E_USER_ERROR);
    ?>
    My connection criteria is
    Connection name connbuildingbids
    MySql Server mysql1.mylogin.ie
    Username buildingbids
    Password *********
    Database buildingbids

    Yes they only allow it with a static IP address which i have and have been granted Remote access
    I have gone to a different server and now my code is like this
    My connbuildingbids code is
    <?php
    # FileName="Connection_php_mysql.htm"
    # Type="MYSQL"
    # HTTP="true"
    $hostname_connbuildingbids = "bono.hostireland.com";
    $database_connbuildingbids = "buildingbids";
    $username_connbuildingbids = "buildingbids";
    $password_connbuildingbids = "*********";
    $connbuildingbids = mysql_pconnect($hostname_connbuildingbids, $username_connbuildingbids, $password_connbuildingbids) or trigger_error(mysql_error(),E_USER_ERROR);
    ?>
    My connection criteris is
    Connection name     connbuildingbids
    MySql Server          bono.hostireland.com
    Username               buildingbids
    Password               *************
    Database               buildingbids
    I get a different error now it says
    Mysql error #:1045  access denied for Buildingbids@localhost (Password:Yes) 
    so it looks like its looking locally for the database by default and i cant stop it.  I did orriginally have MySql set up on my pc and had done some test databases but i have deleted everything now even MySql but i still get this error so i am missing something.  Does anyone know why or how can i stop it defaulting locally. Thanks

  • Database connection error with JSP

    I'm having problems connecting to a mysql database via a helper object in my jsp pages. I've researched this for the last two days and nothing I have tried is yet to make a difference.
    My java code is essentially the following (minus try/catch for readability):
         Connection con = null;
         String dsn = "jdbc:odbc:mwtech";
         String user = "root";
         String password = "";
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         con = DriverManager.getConnection(dsn, user, password);When I run this via JBuilder, it connects to my database without a problem. But when I try to use this same object via a jsp I keep getting the error:
    java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified .
    I'm running Tomcat 4.1 as my web-server, my database is named mwtech and has a User DSN registered in the ODBC panel.
    I've made the following alterations to my server.xml and web.xml files:
    server.xml
    <Context path="" reloadable="true" docBase="ROOT" debug="0" >
         <ResourceParams name="jdbc/mwtech">
             <parameter>
                    <name>driverClassName</name>
                    <value>sun.jdbc.odbc.JdbcOdbcDriver</value>
             </parameter>
             <parameter>
                    <name>url</name>
                    <value>jdbc:odbc:mwtech</value>
             </parameter>
             <parameter>
                    <name>user</name>
                    <value>root</value>
             </parameter>
             <parameter>
                    <name>password</name>
                    <value></value>
             </parameter>
          </ResourceParams>
    </Context>
    WEB-INF\web.xml<resource-ref>
    <res-ref-name>jdbc/odbc</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    I have also tried configuring this to work with the mysql connector/J driver, but that didn't work either (in fact, it made things worse so it won't even run via JBuilder).
    Any help would be greatly appreciated.
    --Slowly going insane...                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    It's not working because you're failing to provide access to the drivers from the application.
    ODBC works in your IDE because your IDE is pathed for both J2EE and J2SE.
    ODBC does not work in the Servlet container because it is not core there.
    Connector/J doesn't work in either because Connector/J is not part of either core J2SE or J2EE. So....
    Once again download the Conenctor/J driver (this is the better way to go, trust me on this). Put the mysql-connector-java-xxxx.jar file in the <%WEB_ROOT%>/WEB-INF/lib directory of your application. (replace <%WEB_ROOT%> with your root context). This should now work, both in your IDE and your web-app.

  • Connectivity java with mySql

    Hi
    Can any one tell me how should i connect my java application with mySql database here is the small code which i written.
    import java.sql.*;
    class tryjdbc
         public static void main(String[] args) throws Exception
         try
              Class.forName("com.mysql.jdbc.Driver").newInstance();
              String connectionURL = "jdbc:mysql://localhost:3306/learn?user=root;password=";
              Connection connection = DriverManager.getConnection(connectionURL, "root", "");
              Statement statement = connection.createStatement();
              ResultSet rs = statement.executeQuery("Select ecode from emp");
              while (rs.next())
                   System.out.println(rs.getString("ecode"));
              catch (Exception e){
                   System.out.println(e);
    Can any one please tell me the error there is no eror in compiling but at run time it gives error
    java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    Thanks in advance
    Dhiraj

    Hi Dhiraj,
    String connectionURL = "jdbc:mysql://localhost:3306/learn?user=root;password=";
    Connection connection = DriverManager.getConnection(connectionURL, "root", "");
    It seems to be your trying to pass twice of your properties details. One from through URL and another from by pasing the parameters on getConnection() method. Better to avoid to use two place in same application. and one more thing I want to confirm r u using "stable" Driver or "alpha" Driver.
    Raju

  • Connection Error with iPod mini to Bose Home Theater System

    When connecting my iPod mini to my Bose Home Theater system, it recognizes that iPod has been connected, but after the "Acquiring Signal" process, it gives me an "iPod connection error. Please re-insert iPod into docking station." I tried several times, but the result is the same.
    My iPod mini has been updated with the latest software, and I did a system restore to return everything to factory defaults, but still no luck.
    Any suggestions.

    Hi. What you need to do is Launch DVD Player. Go to Preferences. Select Disc Setup tab. In Audio Output under Audio in the second part of the menu, select Digital Out-Built-in-Output. Then click OK. See if this works, 'cause mine does.

  • IPhone 3G 2.1 connection error with iTunes 8 on Windows Vista Enterprise

    I was previously able to connect my iphone with my work computer (Windows Vista Enterprise) and it would recognize my phone. However, since I updated my iphone to version 2.1, it will not recognize the phone and gives me the following error message:
    "iTunes could not connect to the iphone because an unknown error occured (0xE8000024)."
    I am able to connect my phone with version 2.1 to my home computer running Windows XP SP2.
    Any idea what may be causing the connection error in Windows Vista?

    Hey TranceCadet,
    This could be caused by a USB connection issue.
    Make sure the iPhone is directly connected to a high speed USB port on the PC and not plugged into a hub, monitor, or keyboard. Disconnect any other USB devices, other than the keyboard and mouse.
    This article has some general USB troubleshooting tips: http://support.apple.com/kb/TS1286
    You may also want to disable or reconfigure any security software. This article will walk you through putting the PC in a selective startup mode, which will bypass most application conflicts.
    http://support.apple.com/kb/HT2292
    Jason

  • After updating to Firefox 33.0.3 why am I getting Untrusted Connection Errors with Yahoo and Amazon?

    I have updated to Firefox 33.0.3 and now I am getting untrusted connection errors when trying to go to Yahoo.com and Amazon.com this happens with both http and https. My time is in sync. I tried deleting the cert8.db file.
    I have looked at other solutions and they have not worked. These sites were working fine on the previous version for me but now with this new update they are not working. Why hasn't Mozilla fixed this already?

    Yes I have tried the steps above. For example, When I try to get to Yahoo web site, I get this:
    This Connection is Untrusted
    You have asked Firefox to connect securely to www.yahoo.com, but we can't confirm that your connection is secure.
    Normally, when you try to connect securely, sites will present trusted identification to prove that you are going to the right place. However, this site's identity can't be verified.
    What Should I Do?
    If you usually connect to this site without problems, this error could mean that someone is trying to impersonate the site, and you shouldn't continue.
    www.yahoo.com uses an invalid security certificate. The certificate is not trusted because no issuer chain was provided. (Error code: sec_error_unknown_issuer)
    I do not have the option to do an exception because I can only click on the Technical Details and the Get me Out of Here button.
    As I've said in my previous post, I have deleted the cert8.db file, my clock is in sync, and I have tried to do the other solutions but they have not worked.

  • ExecuteQuery() error with MySQL

    I have already followed all the steps recommended by OTN to create a connection with MySQL (most up-to-date files) in JDeveloper 10g. It works fine except when I try to find a view and execute a query using an Application Module in a jsp:
    ApplicationModule appMod = appMod.getGenericAppMod();
    ViewObject voTabEmployee = appMod.findViewObject("TabEmployee");
    voTabEmployee.executeQuery();
    It works ok when connected to Oracle DB but it raises the following exception when I move Business Components to a MySQL connection, exactly as recommended:
    java.lang.ClassCastException: com.mysql.jdbc.ServerPreparedStatement
    Any help would be highly appreciated.
    Marcio

    Hi Marcio
    The ApplicationModule that you create in your source (utilApp.java) is created using the default configuration that uses the OracleSQLBuilder as the default SQLBuilder (configured to work with Oracle Databases). Thus, when you use MySQL or any other database (and I confirmed this using SQLServer), a ClassCastException is thrown.
    Instead of using the following lines:
    Context ic = new InitialContext(env);
    String theAMDefName = "mysysjcom.MySysJComModule";
    ApplicationModuleHome home = (ApplicationModuleHome) ic.lookup(theAMDefName);
    ApplicationModule appMod = home.create();
    appMod.getTransaction().connectToDataSource(null, "jdbc/MYSYSJCOMCoreDS", false);
    can you use the following lines:?
    Context ic = new InitialContext(env);
    String theAMDefName = "mysysjcom.MySysJComModule";
    ApplicationModule appMod = Configuration.createRootApplicationModule(theAMDefName, <config_name>);
    ic.lookup(theAMDefName);
    I got your sample working with the above change
    This will ensure that you are using the same configuration that has the SQLBuilder correctly set to your Database type
    Thanks
    Prasanth

  • Hoe to connect java with mysql 5.0

    I have installed the new Os. in that RHE-5 Os is there, now I want that java can connect ot mysql but , its not able connect with mysql so please guide me.

    1) download mysql connector/J JDBC driver from mysql.com
    2) put the driver jar somewhere where you can put it in the classpath of your application
    3) use proper setup code to connect to the database (search google, tons of examples)
    If at any step you have no clue what I am talking about, you need a good book to help you further.

  • ORCHESTRTAOR connection error with AD

    I have installed Orchestrator 2012 r2 in a machine and its a member of a domain.
    I am not able create a user through orchestrator, its showing following error.
    DirectoryEntry.Bind(Boolean throwIfFail)
       at System.DirectoryServices.DirectoryEntry.Bind()
       at System.DirectoryServices.DirectoryEntry.RefreshCache()
       at System.DirectoryServices.DirectoryEntry.FillCache(String propertyName)
       at System.DirectoryServices.DirectoryEntry.get_NativeGuid()
       at System.DirectoryServices.DirectoryEntry.get_Guid()
       at Microsoft.Accelerators.ActiveDirectoryCore.Internals.SafeDirectoryEntry.Exists()
       at Microsoft.Accelerators.ActiveDirectoryCore.LdapUser.CreateNew(ISafeDirectoryFactory factory, DistinguishedName distinguishedName, String samAccountName)
       at Microsoft.Accelerators.ActiveDirectoryCore.LdapDirectory.CreateNewUser(DistinguishedName distinguishedName, String samAccountName)
       at Microsoft.SystemCenter.IntegrationPack.ActiveDirectory.Execution.CreateUserExecutor.CreateExecutionObject(ILdapDirectory ldapDirectory)
       at Microsoft.SystemCenter.IntegrationPack.ActiveDirectory.Execution.AExecutor.Execute()
       at Microsoft.SystemCenter.IntegrationPack.ActiveDirectory.Execution.ActiveDirectoryProgram.ExecuteProxy(ExecutionProxy proxy)
       at Microsoft.SystemCenter.IntegrationPack.ActiveDirectory.AActiveDirectoryActivity.Execute(IActivityRequest request, IActivityResponse response)
    Could you please help me through this.
    Thank You

    Hi,
    Did you receive the error with "Create User" Activity from the Microsoft Active Directory Integration Pack (IP) for System Center 2012 - Orchestrator? Are Activities from this IP like "Get User" working? -> A vaild "Container
    Distinguished Name" must be specified, either in the "Create User" Activity or a default in the connection settings of the Active Directory IP.
    Perhaps you can share how the Activity and the connection is configured. It will help to help you.
    Regards,
    Stefan
    www.sc-orchestrator.eu ,
    Blog sc-orchestrator.eu

  • Unable to start SAP due to the connection error with Oracle

    Dear All,
    We have done distributed installation. CI, Oracle has been installed successfully.
    But when we tried to connect the DB from CI. we are getting the error
    R3trans -d is giving the return code 00012,  when we tried to start system from CI.
    Following is the trans.log error
    $ more trans.log
    4 ETW000 R3trans version 6.09 (release 640 - 26.10.04 - 15:45:42).
    4 ETW000 ===============================================
    4 ETW000
    4 ETW000 date&time   : 05.05.2009 - 18:03:30
    4 ETW000 control file: <no ctrlfile>
    4 ETW000 R3trans was called as follows: R3trans -d
    4 ETW000  trace at level 2 opened for a given file pointer
    4 ETW000  [dev trc     ,00000]  Tue May  5 18:03:30 2009                              48  0.000048
    4 ETW000  [dev trc     ,00000]  db_con_init called                                    11  0.000059
    4 ETW000  [dev trc     ,00000]  create_con (con_name=R/3)                             40  0.000099
    4 ETW000  [dev trc     ,00000]  Loading DB library '/usr/sap/BSW/SYS/exe/run/dboraslib.o' ...
    4 ETW000                                                                              37  0.000136
    4 ETW000  [dev trc     ,00000]  load shared library (/usr/sap/BSW/SYS/exe/run/dboraslib.o), hdl 0
    4 ETW000                                                                            3493  0.003629
    4 ETW000  [dev trc     ,00000]  Library '/usr/sap/BSW/SYS/exe/run/dboraslib.o' loaded
    4 ETW000                                                                              18  0.003647
    4 ETW000  [dev trc     ,00000]  function DbSlExpFuns loaded from library /usr/sap/BSW/SYS/exe/run/dboraslib.o
    4 ETW000                                                                              34  0.003681
    4 ETW000  [dev trc     ,00000]  Version of '/usr/sap/BSW/SYS/exe/run/dboraslib.o' is "640.00", patchlevel (0.32)
    4 ETW000                                                                             120  0.003801
    4 ETW000  [dev trc     ,00000]  function dsql_db_init loaded from library /usr/sap/BSW/SYS/exe/run/dboraslib.o
    4 ETW000                                                                              20  0.003821
    4 ETW000  [dev trc     ,00000]  function dbdd_exp_funs loaded from library /usr/sap/BSW/SYS/exe/run/dboraslib.o
    4 ETW000                                                                              42  0.003863
    4 ETW000  [dev trc     ,00000]  New connection 0 created                              20  0.003883
    4 ETW000  [dev trc     ,00000]  0: name = R/3, con_id = -000000001 state = DISCONNECTED, perm = YES, reco = NO , timeout = 00
    0, con_max = 255, con_opt = 255, occ = NO
    4 ETW000                                                                              23  0.003906
    4 ETW000  [dev trc     ,00000]  db_con_connect (con_name=R/3)                         25  0.003931
    4 ETW000  [dev trc     ,00000]  find_con_by_name found the following connection for reuse:
    4 ETW000                                                                              18  0.003949
    4 ETW000  [dev trc     ,00000]  0: name = R/3, con_id = 000000000 state = DISCONNECTED, perm = YES, reco = NO , timeout = 000
    , con_max = 255, con_opt = 255, occ = NO
    4 ETW000                                                                              20  0.003969
    4 ETW000  [dev trc     ,00000]  Got ORACLE_HOME=/oracle/BSW/920_64 from environment
    4 ETW000                                                                             300  0.004269
    4 ETW000  [dev trc     ,00000]  -->oci_initialize                                     20  0.004289
    4 ETW000  [dev trc     ,00000]  Client NLS settings: AMERICAN_AMERICA.WE8DEC        4762  0.009051
    4 ETW000  [dev trc     ,00000]  Logon as OPS$-user to get SAPR3's password            29  0.009080
    4 ETW000  [dev trc     ,00000]  Connecting as /@BSW on connection 0 ...               22  0.009102
    4 ETW000  [dev trc     ,00000]  Allocating service context handle                     22  0.009124
    4 ETW000  [dev trc     ,00000]  Allocating server context handle                      13  0.009137
    4 ETW000  [dev trc     ,00000]  Attaching to DB Server BSW (con_hdl=0,svchp=110791c98,svrhp=1107942f8)
    4 ETW000                                                                              67  0.009204
    4 ETW000  [dev trc     ,00000]  Assigning server context 1107942f8 to service context 110791c98
    4 ETW000                                                                           39616  0.048820
    4 ETW000  [dev trc     ,00000]  Allocating user session handle                        29  0.048849
    4 ETW000  [dev trc     ,00000]  Starting user session (con_hdl=0,svchp=110791c98,srvhp=1107942f8,usrhp=11079cd38)
    4 ETW000                                                                              24  0.048873
    4 ETW000  [dboci.c     ,00000]  *** ERROR => OCI-call 'OCISessionBegin' failed: rc = 1034
    4 ETW000                                                                            2415  0.051288
    4 ETW000  [dev trc     ,00000]  server_detach(con_hdl=0,stale=1,svrhp=1107942f8)
    4 ETW000                                                                              28  0.051316
    4 ETW000  [dev trc     ,00000]  Detaching from DB Server (con_hdl=0,svchp=110791c98,srvhp=1107942f8)
    4 ETW000                                                                              18  0.051334
    4 ETW000  [dev trc     ,00000]  Deallocating server context handle 1107942f8         142  0.051476
    4 ETW000  [dbsloci.    ,00000]  *** ERROR => CONNECT failed with sql error '1034'
    4 ETW000                                                                              25  0.051501
    4 ETW000  [dev trc     ,00000]  Try to connect with default password                  20  0.051521
    4 ETW000  [dev trc     ,00000]  Connecting as SAPR3/<pwd>@BSW on connection 0 ...
    4 ETW000                                                                              19  0.051540
    4 ETW000  [dev trc     ,00000]  Allocating server context handle                      11  0.051551
    4 ETW000  [dev trc     ,00000]  Attaching to DB Server BSW (con_hdl=0,svchp=110791c98,svrhp=1107942f8)
    4 ETW000                                                                              27  0.051578
    4 ETW000  [dev trc     ,00000]  Assigning server context 1107942f8 to service context 110791c98
    4 ETW000                                                                           33038  0.084616
    4 ETW000  [dev trc     ,00000]  Assigning username to user session 11079cd38          15  0.084631
    4 ETW000  [dev trc     ,00000]  Assigning password to user session 11079cd38          13  0.084644
    4 ETW000  [dev trc     ,00000]  Starting user session (con_hdl=0,svchp=110791c98,srvhp=1107942f8,usrhp=11079cd38)
    4 ETW000                                                                              22  0.084666
    4 ETW000  [dboci.c     ,00000]  *** ERROR => OCI-call 'OCISessionBegin' failed: rc = 1034
    4 ETW000                                                                            1858  0.086524
    4 ETW000  [dev trc     ,00000]  server_detach(con_hdl=0,stale=1,svrhp=1107942f8)
    4 ETW000                                                                              18  0.086542
    4 ETW000  [dev trc     ,00000]  Detaching from DB Server (con_hdl=0,svchp=110791c98,srvhp=1107942f8)
    4 ETW000                                                                              19  0.086561
    4 ETW000  [dev trc     ,00000]  Deallocating server context handle 1107942f8         123  0.086684
    4 ETW000  [dbsloci.    ,00000]  *** ERROR => CONNECT failed with sql error '1034'
    4 ETW000                                                                              24  0.086708
    4 ETW000  [dblink      ,00419]  ***LOG BY2=>sql error 1034   performing CON [dblink#1 @ 419]
    4 ETW000                                                                              57  0.086765
    4 ETW000  [dblink      ,00419]  ***LOG BY0=>ORA-01034: ORACLE not available           18  0.086783
    4 ETW000                        ORA-27101: shared memory realm does not exist
    4 ETW000                        IBM AIX RISC System/6000 Error: 2: No such file or directory [dblink#1 @ 419]
    2EETW169 no connect possible: "DBMS = ORACLE                           --- dbs_ora_tnsname = 'BSW'"
    Could you please provide us the relavant solution.

    hi
    > 4 ETW000  [dblink      ,00419]  ***LOG BY0=>ORA-01034: ORACLE not available           18  0.086783
    Check for your ORACLE_HOME and ORACLE_SID
    ORA-01034 is thrown during you attempt to upgrade because there is an invalid entry in one of the following files:
    /etc/oratab
    /var/opt/oracle/oratab
    Regards,
    Nitin Salunkhe

  • Connection error with server

    My configuration: Windows 7 and i use a proxy
    I've receive an error message when i launch adobe digital edition :
    Error to obtain licence.connection problem with server licence : E_ADEPT_XML_SYNTAX

    Is the home instance up and running?
    Did you try doing a full server restart
    opmnctl stopall
    opmnctl startallVerify all the apps are running with this command:
    opmnctl status -app -land make sure orabpel is active.
    -steve-

Maybe you are looking for