Remote Database connection

hi all
i am using
mysql-connector-java-3.0.16-ga-bin.jar
to connect to mysql 4.0.18
the scenario is like this
the application connects to some 20 databases(mysql 4.0.18) which are available at 20
database servers one by one. i mean to say that this is not a multi-threaded application.
In this driver = com.mysql.jdbc.Driver
dcsIP = variable for 20 database
remote_db, remote_username and remote password are also variables
Class.forName(ResourceLoader.getString("driver"));               
DriverManager.setLoginTimeout(60);
connection =
DriverManager.getConnection("jdbc:mysql://"+dcsIP+"/"+ResourceLoader.getString("remote_
db"),ResourceLoader.getString("remote_username"),ResourceLoader.getString("remote_pass
word"));
statement = connection.createStatement();
statement.setQueryTimeout(60);
Using the above code i am able to get information from 20 database's and if at all there is
no mysql service running at the given dcsIP, i am getting exception and that is declared as
no connection.
But the actual problem is, for one server( identified the IP say XXX.XXX.X.XXX) among these
20, the application is loosing the control ie not even an exception is thrown. What might be
the reason.
For one thing i am sure is not the memory inconsistencies as the application is running fine
with 25 servers even ( excluding the server at XXX.XXX.X.XXX);
As this system is running continouly, if i restart the system i am able to get the connection
for XXX.XXX.X.XXX, but again after 3 to 4 days, not getting any response and the
application is getting blocked.
Kindly send me ur suggestions

Sounds like a network problem to me. Probably nothing to do with JDBC. Have you considered asking your network people to look at the problem?

Similar Messages

  • Error in Remote Database Connection

    I am trying to establish a connection for other database through remote database connection whenever i click the test connection i am getting the error like
    Bad Connection
    GetConnection failed: Caught Exception from getUrlAndDriver
    In trace file it shows like
    PSAPPSRV.5794 (42)      1-26493 14.30.43 19.832981 Cur#1.5794.LN290401 RC=0 Dur=0.000098 COM Stmt=SELECT VERSION FROM PSVERSION WHERE OBJECTTYPENAME = 'SYS'
    PSAPPSRV.5794 (42)      1-26494 14.30.43 0.020306 Cur#1.5794.LN290401 RC=0 Dur=0.000064 COM Stmt=SELECT VERSION FROM PSVERSION WHERE OBJECTTYPENAME = 'SYS'
    PSAPPSRV.5794 (42)      1-26495 14.30.43 0.016844 >>> start Nest=00 MISCTOOLS_WRK.TEST_CONNECT.FieldChange
    PSAPPSRV.5794 (42)      1-26496 14.30.43 0.000013 >>>>> Begin MISCTOOLS_WRK.TEST_CONNECT.FieldChange level 0 row 0
    PSAPPSRV.5794 (42)      1-26497 14.30.43 0.000019 1: DoSaveNow();
    PSAPPSRV.5794 (42)      1-26498 14.30.43 0.022858 <<< end Nest=00 MISCTOOLS_WRK.TEST_CONNECT.FieldChange Dur=0.022891 CPU=0.000000 Cycles=3
    PSAPPSRV.5794 (42)      1-26499 14.30.43 0.003037 >>> resume Nest=00 . MISCTOOLS_WRK.TEST_CONNECT.FieldChange
    PSAPPSRV.5794 (42)      1-26500 14.30.43 0.000028 1: DoSaveNow();
    PSAPPSRV.5794 (42)      1-26501 14.30.43 0.000004 2: &oRd = CreateJavaObject("com.peoplesoft.pt.remotedb.PSJDataSource");
    PSAPPSRV.5794 (42)      1-26502 14.30.43 0.781008 3: &b = &oRd.TestConnection(PSREMOTEDBDEFN.REMOTEDB_ID.Value);
    PSAPPSRV.5794 (42)      1-26503 14.30.43 0.000041 Fetch Field: PSREMOTEDBDEFN.REMOTEDB_ID Value=HCM91PRD
    PSAPPSRV.5794 (42)      1-26504 14.30.43 0.019209 Cur#2.5794.LN290401 RC=0 Dur=0.000097 COM Stmt=SELECT REMOTEDB_ID,DBTYPE,DESCR,LOCAL_CONNECT_FLAG,REMOTEDBCONNTYPE,REMOTEDBNAME,DBSERVER,DB_PORT,INFORMIXSERVERNAME,USERID,PASSWORD FROM PSREMOTEDBDEFN WHERE REMOTEDB_ID = :1
    PSAPPSRV.5794 (42)       1-26505  14.30.43    0.004232 Database Options: override_connection_reset: 0
    PSAPPSRV.5794 (42)      1-26506 14.30.43 0.048569 4: If &b Then
    PSAPPSRV.5794 (42)      1-26507 14.30.43 0.000003 7: WinMessage("Bad connection", %MsgStyle_OK);
    PSAPPSRV.5794 (42)      1-26508 14.30.43 0.000055 8: If &oRd.success() = False Then
    PSAPPSRV.5794 (42)      1-26509 14.30.43 0.000013 9: WinMessage(&oRd.getErrStr(), %MsgStyle_OK);
    PSAPPSRV.5794 (42)      1-26510 14.30.43 0.000014 10: End-If
    PSAPPSRV.5794 (42)      1-26511 14.30.43 0.000062 >>> reend Nest=00 . MISCTOOLS_WRK.TEST_CONNECT.FieldChange
    PSAPPSRV.5794 (42)      1-26512 14.30.43 0.009340 Cur#1.5794.LN290401 RC=0 Dur=0.000075 COM Stmt=SELECT PTTAPAGECUST FROM PSUSRTAPAGECUST WHERE MENUNAME = :1 AND PNLGRPNAME = :2 AND PNLNAME = :3 AND OPRID = :4
    PSAPPSRV.5794 (42)      1-26513 14.30.43 0.000009 Cur#1.5794.LN290401 RC=0 Dur=0.000000 Bind-1 type=2 length=9 value=UTILITIES
    PSAPPSRV.5794 (42)      1-26514 14.30.43 0.000003 Cur#1.5794.LN290401 RC=0 Dur=0.000000 Bind-2 type=2 length=14 value=REMOTEDB_TABLE
    PSAPPSRV.5794 (42)      1-26515 14.30.43 0.000003 Cur#1.5794.LN290401 RC=0 Dur=0.000000 Bind-3 type=2 length=8 value=REMOTEDB
    PSAPPSRV.5794 (42)      1-26516 14.30.43 0.000003 Cur#1.5794.LN290401 RC=0 Dur=0.000000 Bind-4 type=2 length=9 value=CAPIADMIN
    Edited by: abdul43 on Apr 11, 2013 12:19 AM

    Thank you for your help, RK.
    The problem was that sidadm was not the owner of ORA_NLS.
    Now I have another problem: when running startsap not boot disp + work.

  • How to know the TNS_ALIAS of a Remote Database Connectivity ??

    Hi ,
    I have a Remote DB Connection and a Local DB Connection in my System
    I want to create the Same Table and Data From my Remote DB Connection to Local DB Connection .
    I have used
    CREATE TABLE LOCAL_TABLE AS SELECT * FROM REMOTE_TABLE@TNS_ALIAS;
    But How can i know this TNS_ALIAS of the Remote Database connection (I just jave XE under my System)

    In "... FROM REMOTE_TABLE@TNS_ALIAS"
    The TNS_ALIAS is actually a Db link and not a tns alias!
    user10503747 wrote:
    i tried everyhting but its coming as no results .What is "everything", "its" and "no results" in this context? Please explain, and don't worry about copy-paste taxes.

  • Remote Database connection error on local database while running a procedur

    Dear Gurus,
    I am trying to run a procedure to grant Select Access to all objects of a schema to all schema but getting below error messages:
    Error report:
    ORA-02019: connection description for remote database not found
    This is on local database and all required privileges have been given to run this procedure but I dont understand why this error is being thrown every time. I am able to fetch all the tables directly (i.e. SELECT object_name FROM user_objects where OBJECT_TYPE IN('TABLE','VIEW','MATERIALIZED VIEW') AND STATUS='VALID')
    Kindly let me know if you have any solution.
    Procedure detail:
    declare
    sqltxt varchar(250);
    cursor course_det is
    SELECT object_name FROM user_objects where OBJECT_TYPE IN('TABLE','VIEW','MATERIALIZED VIEW') AND STATUS='VALID';
    v_objnm user_objects.object_name%type;
    begin
    open course_det;
    loop
    fetch course_det into v_objnm;
    exit when course_det%notfound;
    sqltxt :='GRANT SELECT ON ' || v_objnm|| ' TO public with grant option';
    EXECUTE IMMEDIATE sqltxt ;
    end loop;
    end;
    System detail:
    Oracle 11.2.0.3/Linux 5.3
    Ragards.
    Edited by: 877938 on Mar 20, 2013 12:27 AM

    Hi,
    It seems you are fetching records from one database to other. for that you need to create dblink for that.
    Create dblink first and then try to fetch records using that dblink.
    ORA-02019: connection description for remote database not found
    Cause: An attempt was made to connect or log in to a remote database using a connection description that could not be found.
    Action: Specify an existing database link. Query the data dictionary to see all existing database links. See your operating system-specific Net8 documentation for valid connection descriptors. 

  • Remote Database Connection DB2 - Oracle

    Hi All
    We need to maintain a remote db connection in DBACockpit. We are on DB2 UDB and we need to connect to Oracle. We have all the connection details.
    Now my query is do we need to maintain connection details at DB2 level also , or is it enough to maintain them in DBACockpit.
    Basically i need to connect from my SAP BI system which is on DB2 UDB 9.1 to Oracle Database.
    In oracle we can connect to different databases using TNS functionality, is something there like TNS in DB2 where we have to maintain the remote DB connection details? If yes request you to provide some relevant document for the same
    Thanks in Advance.
    Regards
    Kaleem.

    Hi Kaleem,
    if you want to administer your ORACLE database through DBACockpit, you need to prepare your system for a DBSL multiconnect to ORACLE as described in note 339092 ( i.e. install ORACLE client, ORACLE DBSL library, etc. ).
    This multiconnect can also be used for BI Connect.
    If you just want to query some ORACLE tables in your DB2 system, you may also consider to use the DB2 federation feature to create ncicknames within your DB2 database that point to ORACLE tables. In this case I suggest to consult the DB2 manuals on how to do this. You may also have to install an additional DB2 license for the hererogenous federation feature to create nicknames to ORACLE tables.
    Regards
                   Frank

  • MS SQL Server 2005 Remote Database Connection

    Hello Friends,
    I have a database in SQL Server 2005, i installed SQL server with windows authentication. Now when I tries to connect to the server using Type 3 jdbc. I downloaded jdbc 1.2 driver from,
    http://msdn2.microsoft.com/hi-in/data/aa937724(en-us).aspx
    now i want to connect to the database from remote machine(different network).
    How can i achieve this, and what setting i have to make to the sql server?
    Any suggestion will be greatly appreciated.
    Regards
    Mohneesh

    okey i done with some experiment.
    now i am able to do it from local machine with the following code
    String url="jdbc:sqlserver://LocalIP:1433;integratedSecurity=true;";
    Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
    Connection conn = DriverManager.getConnection("url");
    now when i move to remote system and change the Local IP to remote IP(server has static IP)
    it comes up with SQLException: Login failed.for user ''.
    com.microsoft.sqlserver.jdbc.SQLServerException: Login failed for user ''. The user is not associated with a trusted SQL Server connection.
    please help me its kinda urgent.
    Regards
    Mohneesh

  • Remote Database connection throught JDBC-ODBC

    Hi everybody
    I've developed an application which connects to a MS Access database throught the JDBC-ODBC bridge; if the database is on my local machine I've no problem at all, but I now need to connect to a database on a remote PC. I've set the DSN entry for the database on the remote computer and try to connect using something like:
    String db_name="jdbc:odbc:remote_pc_name\\\\DSN_db_name";
    Properties db_prop=new Properties();
    db_prop.setProperty("user","username");
    db_prop.setProperty("password","user_password");
    Connection dbconn=DriverManager.getConnection(db_name,db_prop);
    but the ODBC driver gives me the message
    "[Microsoft][ODBC Driver Manager] DSN not found and driver not specified.
    I've tried other possible "connection strings" but I always get the same message.
    The software works properly if I connect to the local DB with:
    String db_name="jdbc:odbc:DSN_db_name";
    Any idea how to connect to a remote DB through ODBC?
    Thanks

    No need for a separate thread really is there? its still relevant to the original.
    import java.awt.*;
    import java.sql.*;
    public class JDBC1 extends Frame {
         private static final String DB = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=\\\\http:\\\\www.cs.stir.ac.uk\\~dcl\\databasename.mdb";
         public static void main(String[] arguments) {
              try {
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
                   System.out.println("Driver registered!");
                         Connection conn = DriverManager.getConnection(DB, "", "");
                   System.out.println("Connected!");
                   Statement st = conn.createStatement();
                   System.out.println("Statement created!");
                   ResultSet rec = st.executeQuery("SELECT * FROM people");
                   System.out.println("Queried!");
                   while( rec.next() ) {
                        System.out.println( rec.getString(2) );
                   st.close();          //close the statement
                   conn.close();          //close the connection
              catch( SQLException s ) {
                   System.out.println("SQL Error: "+ s.toString() + " " + s.getErrorCode() );
                   s.printStackTrace();
              catch( Exception e ) {
                   System.out.println("Error: "+ e.toString() + e.getMessage() );
    }

  • Remote Database Connection On Windows 7

    Hi
    I have installed Oracle 10g database on Windows 7 and i want to access EM (enterprise manager) from another machine on which windows xp os installed both are 32 bit Operating Systems. when i type complete url of remote machine EM but it time out and take too long time, can you tell me is there any solution and is this security problem ? both computer are connected with wifi router and when i ping to remote machine its response is ok and both machine on WLAN (Wireless Local Area Network). Em on remote machine is running Fine
    Thanks in Advance

    Dear ,
    Please check both sides firewall setting .
    right-click the networking --> properties --> tabpage"advance "--> firewall setting.
    I met this problem before .
    Just shutdown firewall then try to connect again.
    tnks.
    K.Y.

  • WEC2013 remote database connectivity options

    Working on getting my app to boot on WEC2013 today and realized that I was missing System.Data.SqlClient.dll from my OS design.
    I went back to include it only to find that the SQL Managed Provider has been removed from WEC2013; according to CF 3.9 documentation the recommended work around is sqlite?
    Sqlite is a local database...what are the options for connecting to an off-box database?
    Hoping this is simply an oversight, thanks in advance for any options.

    I have encountered the same problem. I suppose there is no support for this in SQLite or any third-party extensions. Is the only way to build your own client-server architecture passing data to a remote system containing a database?

  • Remote database connections

    Hello. Does anyone out there know how i could connect to an oracle 8i database that is residing on a different server to my jsp pages? I indicate the domain name as well as the database name in the url (using jdbc) but i still get a TNS could not resolve service name error. Any advice would be greatly appreciated.

    Have you installed the oracle JDBC driver on your server?
    Try this if you do have the driver installed:
    private static final String driver = "oracle.jdbc.driver.OracleDriver";
         private static final String user = "blablabla";
         private static final String pass = "blablabla";
         private static final String dbURL = "jdbc:oracle:thin:@IP address for the oracle databse here:1521:database name";

  • Solution manager and CCMS monitoring of remote database

    I have Solution Manager 7 SP Basis 6 installed. I have oracle remote databases connected successfully. Under DBCockpit I see the instances I want to monitor. I can see the backup, tablespaces, etc. These remote instances are SAP Portal JAVA only version 7 but under the dbcockpit alerts only shows alert monitor. The database check and check conditions are in white. Is there a way to see these and be able to report on them? The CCMS tree under the local solution manager also shows these connected remote instances but they are also white in color as if inactive. All CCMS agents and saposcol are running perfectly on the remote systems. The stats tables have been built, the synonyms for the solution manager are in place. What am I missing?

    Hi,
    Please download that attachment "scripts_1139623.sar" provided in SAP Note 1139623 - Using transaction RZ20 to monitor remote Oracle databases.
    Upon extraction of scripts_1139623.sar the following files you will get.
    rz20_nonabap.sql
    dbcheckora10_oltp.sql
    dbcheckora.sql
    Then Perform the below mentioned Steps to resolve your issue.
    Step 1: Create tables DBCHECKORA and DBMSGORA:
      sqlplus SAPSR3DB/<pwd>
      SQL> @rz20_nonabap.sql
    Step 2: Fill the table DBCHECKORA:
      sqlplus SAPSR3DB/<pwd>
      SQL> @dbcheckora10_oltp   
    Step 3: Create the synonyms (as user ora<sid>):
    brconnect -u / -c -f crsyn -o SAPSR3DB
    sqlplus "/as sysdba"
    CREATE PUBLIC SYNONYM SAP_DBSTATC FOR SAPSR3DB.DBSTATC;
    CREATE PUBLIC SYNONYM SAP_DBCHECKORA FOR SAPSR3DB.DBCHECKORA;
    CREATE PUBLIC SYNONYM SAP_DBMSGORA FOR SAPSR3DB.DBMSGORA;
    Step 4: Grant Privileges for OPS$<SID>ADM User for the above created Tables
    sqlplus "/as sysdba"
    grant all on SAPSR3DB.DBSTATC to OPS$<SID>ADM;
    grant all on SAPSR3DB.DBCHECKORA to OPS$<SID>ADM;
    grant all on SAPSR3DB.DBMSGORA to OPS$<SID>ADM;
    grant all on SAPSR3DB.DBSTAIHORA to OPS$<SID>ADM;
    grant all on SAPSR3DB.DBSTATHORA to OPS$<SID>ADM;
    grant all on SAPSR3DB.DBSTATIORA to OPS$<SID>ADM;
    grant all on SAPSR3DB.DBSTATTORA to OPS$<SID>ADM;
    commit;
    Step 5:
    Now after successful execution of above mentioned Steps , in DBACOCKPIT (system configuration), try to save the Remote DB entry with "Collect Alert Data".  It will be saved without any error.
    If you find any errors, post the error contents as a reply of this thread message.
    Regards,
    Bhavik G. Shroff

  • Dw cs5 with existing wordpress site hosted on yahoo need help connecting to existing remote database

    I am having trouble establishing a database connection.  I can  connect with test databases but am having trouble using dreamweaver wtih  my existing wordpress website.  Am I able to use dreamweaver to edit  and live view my changes before uploading the changed files to my live  site?  Am I able to access my existing wordpress database with  dreaweaver?  I have imported it to my testing server/database but still  seem to be having trouble establishing a connection with it (think maybe  my folder hierarchy might be off).
    macintosh HD/Applications/MAMP/htdocs/nwm/wp/index.php
    "nwm" is the name of the folder that I have copied all of my site  files to and the folder I have dreamweaver pointing to.  "wp" is what I  have all of the wordpress files in (the ones I copied from my yahoo  server - including all my current theme files etc.)
    I am trying to put the info into the mysql connection dialog box:
    Connection Name: Testing (i am assuming this name is for my benefit only and doesn't actually matter)
    MySQL Server: mysql
    User Name: *****
    Password: *****
    Database: wp
    and am getting this message
    MySQL Error#: 2013
    Lost connection to MySQL server at 'reading initial communication packet', system error 61
    did some google seaches of the error.  Tried turning off the  firewall, and the advance tab allow mysql incoming  (there were 2 one  was allow one was not allow.  I changed both to allow)
    Cant really find anything on yahoo to help me out.  Looked in  phpmyadmin database named wp: wp_users to get the username and password  (which due to previous look for help - I think the password was  encrypted cuz it looked like a bunch of mumbo jumbo and am fairly  certain I know the correct password).
    Any help would be greatly appreciated!! I spent $50 on live chat  last night trying to resolve the issue only to find out at the end that  the guy really didn't understand my problem and doesn't have  dreamweaver.  I have also watched countless videos on Lynda.com and have  been thru forum after forum.  While this problem is only a couple weeks  old since I just got CS5.  I have been having trouble making any  headway learning php since I cant seem to make it past the set up  parts.  I have done the php / mysql essential training on lynda.com with  relative success except that I really dont want to work with any more  exercise files so I didn't go on to the beyond the basics. I recently  went thru most of the Dreamweaver CS5 and Wordpress 3. Also did the  first 4 chapters of Dreamweaver CS5 with PHP and MySQL. I need to start  integrating things into my live sites.  I am also trying to work my way  thru the learning php, mysql, javascript book by o'reily media by robin  nixon (as fun as reading a math text book) can't get thru it since I  can't relate any of it to my current sites/needs
    I am on MacBookPro OSX 10.6.6
    Installed MAMP to specification on all 20 tutorials I have tried including lynda.com
    Tested the testing server and is working
    Just installed dreamweaver cs5
    have been using wordpress online to create and edit posts (recently  upgraded to 3.? whatever the latest update was online which I believe  update the files on my yahoo server?)
    Have also installed wordpress on my computer (several times thru each tutorial trying to get this right.)
    Am I expecting the impossible?

    If wordpress controls it's own connection why am I unable to use the live view. I have synced the remote site to my local computer so all the files should be just as they are online with the exception of the DB which contains most of the content.
    I have done all of those steps.  I have even exported the database from inside internet phpmyadmin and imported into computer phpmyadmin.  When I hit live view I get one of couple of errors.
    1.  "One is that the dynamic related files could not be displayed due to an internal server error"
    At some point I was able to view some sample files inside dreamweaver.  But I would like to be able to view my real site files.  I was able to "connect" to the local databases (not the copy of my real one - I think that maybe that was because it is somehow nested inside another db an am going try to reimport to new location).  And then I changed the host/username/password trying to deal with the internal server error. Now instead I get the cannot connect to the database Error 2016 or whatever from the origianl post. Also, I am using yahoo if that matters and all I can find about what their server name is: mysql - is that correct?
    I have been thru this so many times with so many different tutorials I am losing track of what is what.
    2.  Can I access my remote database within dreamweaver? I do not want to create dummy files (seems to be a waste of time).  And while if it had worked exporting/importing a duplicate on to my computer would have satisfied me for a little while it also seems some what counter productive.  Since every post and page is different if I were doing a daily updates etc how would I be able to change the formating or design of them if I can't access the remote files.  Would I re- import everytime I want to work on it to get current database?
    I am trying to be clear.  I listed all the specs I could think as listed  in your "how to get help fast post" (yes I read that at least twice  too) of all of the steps and possible reasons for my problems.  I also  thought that the forum was on a seperate site so I didn't think it would  count as a duplicate.  I am frustrated to tears and am feeling  incredibly stupid that after all this time and all these tutorials yes  you are right I obviously am not understanding what is going on which is  why I am on this forum.

  • Connecting to Remote Database using Debian w/Oracle XE

    Hello.
    I have managed to install Oracle XE on a Debian box.
    I am trying to connect to a remote server located on my network.
    I am using the following connection string:
    # sqlplus <User>/<Password>@'(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=<IP>)(PORT=1521)))(CONNECT_DATA=(SID=<SID>)))'
    However, I was given both a SID and a Service_name.
    I tried connecting with both.
    Is it possible to parametrize both? I checked and the remote server is up, and that is the existing port.
    Thanks a lot!

    user603592 wrote:
    Hello.
    I have managed to install Oracle XE on a Debian box.
    I am trying to connect to a remote server located on my network.
    I am using the following connection string:
    # sqlplus <User>/<Password>@'(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=<IP>)(PORT=1521)))(CONNECT_DATA=(SID=<SID>)))'
    However, I was given both a SID and a Service_name.
    I tried connecting with both.
    Is it possible to parametrize both? yes, see below
    bcm@bcm-laptop:~$ sqlplus -h
    SQL*Plus: Release 11.2.0.1.0 Production
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Use SQL*Plus to execute SQL, PL/SQL and SQL*Plus statements.
    Usage 1: sqlplus -H | -V
        -H             Displays the SQL*Plus version and the
                 usage help.
        -V             Displays the SQL*Plus version.
    Usage 2: sqlplus [ [<option>] [{logon | /nolog}] [<start>] ]
      <option> is: [-C <version>] [-L] [-M "<options>"] [-R <level>] [-S]
        -C <version>   Sets the compatibility of affected commands to the
                 version specified by <version>.  The version has
                 the form "x.y[.z]".     For example, -C 10.2.0
        -L             Attempts to log on just once, instead of
                 reprompting on error.
        -M "<options>" Sets automatic HTML markup of output.  The options
                 have the form:
                 HTML [ON|OFF] [HEAD text] [BODY text] [TABLE text]
                 [ENTMAP {ON|OFF}] [SPOOL {ON|OFF}] [PRE[FORMAT] {ON|OFF}]
        -R <level>        Sets restricted mode to disable SQL*Plus commands
                 that interact with the file system.     The level can
                 be 1, 2 or 3.  The most restrictive is -R 3 which
                 disables all user commands interacting with the
                 file system.
        -S             Sets silent mode which suppresses the display of
                 the SQL*Plus banner, prompts, and echoing of
                 commands.
      <logon> is: {<username>[/<password>][@<connect_identifier>] | / }
               [AS {SYSDBA | SYSOPER | SYSASM}] [EDITION=value]
        Specifies the database account username, password and connect
        identifier for the database connection.  Without a connect
        identifier, SQL*Plus connects to the default database.
        The AS SYSDBA, AS SYSOPER and AS SYSASM  options are database
        administration privileges.
        <connect_identifier> can be in the form of Net Service Name
        or Easy Connect.
          @[<net_service_name> | [//]Host[:Port]/<service_name>]
         <net_service_name> is a simple name for a service that resolves
         to a connect descriptor.
         Example: Connect to database using Net Service Name and the
               database net service name is ORCL.
            sqlplus myusername/mypassword@ORCL
         Host specifies the host name or IP address of the database
         server computer.
         Port specifies the listening port on the database server.
         <service_name> specifies the service name of the database you
         want to access.
         Example: Connect to database using Easy Connect and the
               Service name is ORCL.
            sqlplus myusername/mypassword@Host/ORCL
        The /NOLOG option starts SQL*Plus without connecting to a
        database.
        The EDITION specifies the value for Session Edition.
      <start> is: @<URL>|<filename>[.<ext>] [<parameter> ...]
        Runs the specified SQL*Plus script from a web server (URL) or the
        local file system (filename.ext) with specified parameters that
        will be assigned to substitution variables in the script.
    When SQL*Plus starts, and after CONNECT commands, the site profile
    (e.g. $ORACLE_HOME/sqlplus/admin/glogin.sql) and the user profile
    (e.g. login.sql in the working directory) are run.  The files may
    contain SQL*Plus commands.
    Refer to the SQL*Plus User's Guide and Reference for more information.
    bcm@bcm-laptop:~$

  • Oracle 8.0.5 on RH6.0, unable to connect to remote database

    Hi Everybody,
    I have this problem, i have running oracle 8.0.5 on RH6.0
    everything works ok for me. But when i use sqlplus on box where
    is my Oracle running and try to connect to another database on
    my site (which is running on HPUX) I got resul ORA-01017 invalid
    username/password. Tnsping to this machine is ok, so i have this
    in my tnsname.ora When i create dabase link (with user which I
    try to use to connect remote database) on my local datbase to
    this database then link works sucessfully too. select * from
    dual@remote_database Ok. What's wrong ??? Remote database is
    Oracle 7.3.4.3 on HPUX. Any difference between SQL*Net of
    Oracle7 and 8 ???
    null

    Try putting
    disable_oob = ON
    in your sqlnet.ora file.
    Anwar.
    Radek Sedmak (guest) wrote:
    : Hi Everybody,
    : I have this problem, i have running oracle 8.0.5 on RH6.0
    : everything works ok for me. But when i use sqlplus on box where
    : is my Oracle running and try to connect to another database on
    : my site (which is running on HPUX) I got resul ORA-01017
    invalid
    : username/password. Tnsping to this machine is ok, so i have
    this
    : in my tnsname.ora When i create dabase link (with user which I
    : try to use to connect remote database) on my local datbase to
    : this database then link works sucessfully too. select * from
    : dual@remote_database Ok. What's wrong ??? Remote database is
    : Oracle 7.3.4.3 on HPUX. Any difference between SQL*Net of
    : Oracle7 and 8 ???
    null

  • How to connect to a remote database in a lan??

    Hey guys......! I need to connect to a remote msaccess database in a lan and import its data into my mysql database.I know how to connect to a msaccess database using ODBC.But I don't know how to connect to a remote database without creating dsn in the machine where database is.One thing more...I want to know, how can I import data into my mysql database?? Is there any query for that or simply I have to select data from msaccess database and insert into tables of my database??Please, send me the source code in the forum itself and explain also.This is the last feature of my project.So I need to do it as soon as possible.

    If the mdb file in LAN, Just map the network drive.[Windows Explorer/Tools/Map Network Drive] in your system from which we need to access the remote mdb. Then go to ODBC Data Source Admin.. and create a new data source[Microsoft Access Driver] . After clicking the Select button, you will find a Network Drive will be visible on your Drives drop down. Select the map Drive, If not visible then just click the Network button there and map the network path where the mdb files reside. And use the JdbdOdbcDriver class to connect from java.

Maybe you are looking for

  • MBP running out of battery power before sleeping - Help!

    Hi My MacBook Pro has been running out of battery power before the memory-saving sleep mode kicks in, so it dies with a little click of the HD. It's not a hibernation state as when I reattach the power supply it boots up a new session. I've noticed t

  • Help with creating a poster presentation?

    Hi, I'm a little embarrassed to ask this question, but I need help getting started with using InDesign to create a scientific poster.  This is really pathetic, I know, but the last time I used an Adobe product to make a poster was quite a few years a

  • Firewire 400 and 800

    I use my powerbook for digital video editting. I connected to dv camera to the firewire 400 port and connect an external hard drive to the firewire 800 port. Recently when doing this the device that is connected last does not show as being connected.

  • TV episodes in Different Folders

    I bought season four of Downton Abbey.  All previous seasons I have purchased have been automatically labelled "Masterpiece" in my itunes TV folder.  The last episode of season 4 was automatically labelled as "Downton Abbey" instead. The result is Se

  • IPhone 4S calender in iOS7

    WIth iOS7 (as in previous versions) the calender entries may be seen in 2 views - a long list (Black and White) itemising each entry separately even if there are 3 entries for one time of the day, or as what I would call coloured entries (depending o