Any reported problems using jdbc over a WAN?

If im trying to connect to a Database that's on a WAN will I experience any issues in using jdbc to connect and execute queries to that database?
I know problems would come up if my wan network is slow, but has jdbc been able to handle long distance database queries? timeout values?

but why?
is it because of security? If a company had a database with your personal info hanging out on the Web for anyone to query without any validation or security, how would you feel about it?
design pattern issues? It's just good layered design.
just doesnt make sense?Not in my opinion.
have u experienced/heard of any problems of
connecting to a database over a WAN and executing
queries?You don't say anything about who the client is. If the database is behind a firewall, outside clients shouldn't be able to access the port where the listener is running. Only port 80 should be open on that firewall.
So you either write a servlet that listens on port 80 for HTTP requests from a browser-based client OR you ask your firewall admin to punch a hole in the firewall and open up the port on which your database is listening for queries and use a Swing client.
If s/he agrees to do it, quit immediately. It means your company doesn't know anything about security.
%

Similar Messages

  • Is there any known problem using Oracle SQL Developer 3.0.04 with Java 1.7?

    I'm new to Oracle. I have installed Oracle SQL Developer 3.0.04 and Java 1.7. When I run Oracle SQL Developer, I will get the window Running this product is supported with minimum Java version of 1.6.0_04 and a maximum version less than 1.7. This product will not be supported....
    Is there any known problem using Oracle SQL Developer 3.0.04 with Java 1.7?
    I have already downloaded Java 1.6 but don't know whether I need to uninstall Java 1.7 first. If don't need to uninstall Java 1.7, how can I set Oracle SQL Developer to run with Java 1.6?
    Thanks for any help.
    Edited by: 881656 on Aug 25, 2011 11:22 AM

    Hi,
    One prior post discussing the use of Java 7 is:
    SQL Developer 3.0  and Java SE 7?
    There is no need to uninstall any Java version (except if you have disk space constraints) and no problem switching between Java versions. This may be controlled in the sqldeveloper.conf file in your ...\sqldeveloper\sqldeveloper\bin directory via the SetJavaHome line. For example:
    #SetJavaHome ../../jdk
    SetJavaHome C:/Program Files/Java/jdk1.6.0_26
    #SetJavaHome C:/Program Files/Java/jdk1.7.0Regards,
    Gary Graham
    SQL Developer Team

  • Running web report that uses jdbc

    I have been trying to run a web report from oc4j. The report was created in reprots 9i. The url:
    http://localhost:8888/reports/test/myReport.jsp?userid=username/password@dbname
    works great for a report that was created using a sql connection. It doesn't work for a report created using a jdbc connection. When I try to use it for a jdbc report I get the following error:
    REP-4100: Failed to execute data source. REP-0069: Internal error JDBCPDS-62000:Invalid sign-on parameter P_JDBCPDS
    What url should I use to run a report that uses jdbc? Thanks.

    Hi Roger
    To clarify, for reports which have PDS based queries, you need to give a sign on parameter in the url. This sign on parameter is nothing but the connection details. In case of reports designed with sql query, you provide userid in the url. The default sign on parameter name for JDBC PDS based report is p_jdbcpds. When you design a report, you have option of changing this sign on name. In case your report has sign on parameter name different to default sign on name, you need to specify that sing on parameter name in the URL.
    For JDBC query with Oracle thin driver, the sign on parameter would look like:
    scott/tiger@(DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (COMMUNITY = tcp.world)
    (PROTOCOL = TCP)
    (Host = xxx-xxx)
    (Port = 1521)
    (ADDRESS =
    (COMMUNITY = tcp.world)
    (PROTOCOL = TCP)
    (Host = xxx)
    (Port = 1526)
    (CONNECT_DATA = (SID = xxxx)
    After @, you basically gives DB connection info as defined in tnsname.ora file for that DB.
    Thanks
    Rohit

  • AVCD on MAC: are there any processing problems using say, VLC?

    AVCD on MAC: are there any processing problems using say, VLC?

    We've actually found that the Server 10.6.3 DVD does an amazingly smooth job of upgrading 10.5.8. We've been upgrading our production servers and nothing has gone wrong yet. Snow Leopard employs an archive and install method of upgrading which results in an install which is very close to a clean install. So it's been very convenient for us because our servers are used as Windows PDCs and it's a pain in the *** to have to re-join all PCs to the domain if we start from scratch.

  • HT4718 are there any reported problems with safari with the new OS X Mavericks?

    My early 2008 iMac running OS X 10.9.2 all of the sudden has problems loading pages in safari.  The problem timing is the same as the upgrade to Maverick. The computer is connecting to wifi and other devices such as iPhones and three PCs have no problems.  The ISP is Xfinity.  Are there any reported problems with Maverick and Safari?

    Try searching.

  • Problems Using JDBC

    Hi,
    I am trying to connect to a database using JDBC. But I get the invalid logon error. The surprising thing is that I can use the exact same username ("sys as sysdba") and the same password to login using SQLPlus. Anybody have any ideas why this might be happening?
    Cheers
    Suchit

    A couple points
    1) Your JDBC application should almost certainly not be trying to connect to an Oracle database using the SYS account (unless you're building a replacement for OEM). The SYS account is the most powerful account in the database and should not be used except for a handful of administrative actions. SYS is special-- there are a number of rules that don't apply to it that are likely to cause you frustration over time because things like the recycle bin work differently for SYS than for other users.
    2) Your application should never create tables in the SYS schema. That is a no-no, it's unsupported, and generally no good will come of it.
    So it is probably a good thing that your application started having problems connecting as SYS-- that should just reinforce the habit of creating new users, assigning those users appropriate privileges, and installing your application tables in that new schema. There are any number of things that you might have changed that would cause problems-- you're probably better off not trying to debug this problem. If you're still curious, can you post the exact Oracle error you are getting and the exact JDBC connection string you are using?
    Justin

  • Problem using JDBC to connect to WBEM ODBC driver

    Hello,
    I've got a problem to connect to WBEM ODBC driver using JDBC. The error is:
    exception due a la requetejava.sql.SQLException: [Microsoft][WBEM ODBC Driver]Unable to connect
    When I try to connect to a MS access database, replacing only the ODBC source name, it's working. I can access to the MS access db. But when I put the WMI ODBC source name, WMI, I've got this error.
    Does anybody know what could happened? Is it possible to access to WMI through JDBC? With MS access, accessing WMI ODBC is working !
    Thanks very much for your help.
    Here is the part of the source code :
    import java.sql.*;
    import java.io.*;
    public class Main_1 {
    /** Creates a new instance of Main_1 */
    public Main_1() {
    * @param args the command line arguments
    public static void main(String[] args) {
    try {
    String url = "jdbc:odbc:WMI";
    Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection(url);     
    String query = "Select * from Win32_Processor";
    //String query = "Select * from test;";
    ResultSet results;
    Statement stmt = con.createStatement();
    results = stmt.executeQuery(query);
    //System.out.println (results);
    catch(Exception e){
         System.out.println("exception due a la requete" + e);
    e.printStackTrace();
    }

    you have to first start the network listener before you can run the program
    start TNSLSNR before running the jdbc program

  • Problem using Jdbc-Odbc Bridge

    Hi,
    I am using Java 2 SDK and I am trying to access MS Access database on my machine using Jdbc-Odbc bridge. I have set up the DSN in ODBC. But I get the following error when I run my program -
    'No Suitable Driver'
    Here's my code snippet-
    Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver");
    String dsn = "jdbc:odbc:DriverInfoDB";
    Connection con = DriverManager.getConnection(dsn,"","");
    con.setAutoCommit(false);
    Statement stmt;
    String query = null; // SQL select string
    ResultSet rs; // SQL query results
    stmt = con.createStatement();
    .....etc etc...
    Where is the error in this code??
    Help Needed!!
    Thanks
    Vivek.

    try
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection(dsn,"guest","guest");
    OR DriverManager.getConnection(dsn);
    System.out.println("Conection's opened");
    catch(ClassNotFoundException cnfe)
    System.err.println(cnfe);
    catch(SQLException sqle)
    System.err.println(sqle);
    try that code and double check you DSN Name . it's a good practice to greate a system DSN.
    i hope that helps.
    FEEL FREE TO ASK. WON'T BITE U
    ABDUL

  • Problem using JDBC and MS SQL Server

    I got a problem trying to acces a database on my SQL Server. I created the table and my connection seems ok, but when i try to get some data from a table, this happens (see below).
    java.sql.SQLException: [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name 'players'.
    at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6879)
    at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7036)
    at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(JdbcOdbc.java:3065)
    at sun.jdbc.odbc.JdbcOdbcStatement.execute (JdbcOdbcStatement.java:338)
    at sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(JdbcOdbcStatement.java:253)
    at Team.<init>(Team.java:18)
    at Simulator.main(Simulator.java:5)
    here's the code that i used to access the db with:
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection conn = DriverManager.getConnection
    ("jdbc:odbc:BRAIN2WINXPPJH","sm","sm");
    Statement stm = conn.createStatement();
    String query = "Select * from players where teamnr = " + nr +
    " order by squadnr";
    ResultSet rs = stm.executeQuery(query);
    any help is more than welcome
    tnx
    Jo

    If all the tables are in the same database, you can use
    Connection.setCatalog("db-name")
    to change the current database. But the suggestion to include the database name in the SQL statement is safer, because you do not need to worry about changing the database at the right point.
    Thomas

  • Problem using JDBC driver with JSP

    Hi, I am trying to connecto to my mysql server via a JSP page, but it seems that there is a problem with the driver call or something in my configuration that unables me to connect. I have the mysql-connector-java-3.0.7-stable driver.
    This is how my classpath looks like:
    CLASSPATH=/home/hooper/Sources/mysql-connector-java-4.0.7-stable/lib:/home/hooper/Sources/mysql-connector-java-3.0.7-stable/com:/home/hooper/Sources/mysql-connector-java-3.0.7-stable/mysql-connector-java-3.0.7-stable-bin.jar:/usr/java/j2sdk1.4.1_02:.:/usr/java/j2sdk1.4.1_02/lib/tools.jar:/usr/java/j2sdk1.4.1_02
    And this is my JSP page code:
    <%@ page language="java" import= "java.sql.*"%>
    <%
    Connection con = null;
         String userName = "hooper";
         String password = ""; //No password
         String url = "jdbc:mysql://localhost/test";
         //Load the Driver class file
         Class.forName("com.mysql.jdbc.Driver");
         //Make a connection to the MySQL database
         con = DriverManager.getConnection (url, userName, password);
         out.println ("Database connection established");
              if (con != null){
                   //Close the connection
                   con.close();
    %>
    And this is the error I get from Tomcat4.1.18:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: com.mysql.jdbc.Driver
    root cause
    javax.servlet.ServletException: com.mysql.jdbc.Driver
    I hope someone can help me with this.
    Thanks,
    Luis

    Hi..
    Try using this way
    String userName = "hooper";
    String password = ""; //No password
    String url = "jdbc:mysql://localhost:3306/test";
    Class.forName("org.gjt.mm.mysql.Driver");
    try to download the driver for mysql and add it to your classpath
    Hope this works
    Regd
    Vasi

  • Problem using JDBC Connector

    Hi,
    I have problem connecting to MS SQL Server using the JDBC Connector. I have 2 main questions, one is on the DQE and the other is on user mapping.
    I have a created a JDBC System Landscape using the portal component com.sap.portal.systems.jdbc.
    Following are the properties I have set and also I have listed where I am finding propblems.
    - User Management
    User MApping Type : Admin, User
    - Connection Properties
    Connection Timeout: 1000
    Connection URL: jdbc:microsoft:sqlserver://10.7.1.5:1433;DatabaseName=SAPEP
    Driver Class Name: com.sap.portals.jdbc.sqlserver.SQLServerDriver
    (Here I do not know whihc driver to use. Do I have to use the above one or this one com.microsoft.jdbc.sqlserver.SQLServerDriver. Anyway, both of them Did not work)
    - Distributed Query Engine (DQE) (What is this, and what Parameters I need to pass here)
    Also, While doing the user mapping, we need to provide the username and password. What username and password is that? Is it the DB user name and Password?
    Any help will be well appriciated.
    Thanks and regards,
    Babu

    Hi Babu,
    Here's what's needed in the system (examples are from my system):
    CONNECTION PROPERTIES:
       -- Connection URL: jdbc:sap:sqlserver://p031617:1433;DatabaseName=pubs
       -- DRIVER CLASS NAME: com.sap.portals.jdbc.sqlserver.SQLServerDriver
       -- VALIDATE CONNECTION: yes
    USER MANAGEMENT:
       -- USER MAPPING TYPE: admin, user
    DQE: Put in admin user/password (DQE is for distributed queries between multiple, heterogeneous databases, but you still need to use it for simple queries)
    Create an alias
    Go to User Administration and set user mapping for the admin user
    Test connection
    Each user that access the system will need user mapping.
    Hope this helps.
    Daniel

  • Where can I report problems using iOS 7 to Apple?

    I couldn't find possibility to report bug/problems to Apple. There aare some websites that cause iOS 7 to crash and reboot. I want to report it so they could fix it. Its really annoying.
    Thanks for any feedback.

    A better way to report specific bugs is to use the https://bugreport.apple.com/ website.  This will create a bug report on Apple's internal bug reporting system, while the feedback link will not.
    You can use your Apple ID to sign in to bugreport.apple.com, but it needs to be associated with a developer center.  When prompted, you can register for free with the Safari Dev Center so that you can then report a bugs in Safari (or any other software component).

  • Is there any advantage in using Vault over Time Machine?

    Hi all,
    Yesterday I imported around 6000+ pictures from iPhoto and consolidated them into my Aperture library. After much re-organisation into projects, folders etc. I decided to update my backup Vault to preserve all my hard work. The Vault is located on a connected external drive with plenty of spare storage. I had previously backed up successfully to the vault when there was only a few dozen pictures in my library.
    After initiating the Vault update process I then left it to get on it (and to have dinner and then watch the football...) and after several hours was dismayed to find that the process appeared to be stuck at just over 50% completion. It was obvious that no further progress was being made.
    I was also concerned that there appeared to be no mechanism to cancel the process and the only course of action I could take was to apply a Force Quit against Aperture - not something that I care to do, if I can possibly avoid it.
    After a rudimentary search of this community I saw that several others had experienced the same problem - although some suggested that a fix had been applied in recent versions (although I am running the latest version).
    Given this, I'm reluctant to use the Vault again - particularly as there appears to be no means of cancelling a stuck job. I do however use Time Machine, so my questions are:
    1) Do I really need to use Vault if I have Time Machine making regular backups of my Aperture library to an external drive?
    2) Does using Vault give any advantages over Time Machine?
    3) Is anyone else experiencing this problem with the current version of Aperture (v3.3)?
    4) Is there anyway of cancelling a stuck Vault update other than the sledgehammer approach of Force Quit?
    Thanks in anticipation,
    Simon.

    SImon,
    Vault and Time Machine address different needs. Probably you will want to have both.
    The advantage of Time Machine: incremental backups of previous versions, very compact storage. And you can integrate it into your regular backup of the whole system and include the regular masters as well. But the disadvantage: Time Machine decides for you, what will be deleted, if the backup drives get full. You do not have control over what will be saved and what not from the previous versions.
    The advantage of vaults: You can make full backups of your library for well defined moments in time - snapshots of important states. I'd create a vault, whenever I make a major upgrade of the system at least.
    Is there anyway of cancelling a stuck Vault update other than the sledgehammer approach of Force Quit?
    If the graphical user interface is unresponsive, like when updating a vault, you can use the Terminal to send the "termination signal" to Aperture: Sometimes this will succeed, even if the "Quit" button does not work:
    Look for the Process ID of Aperture in the Activity Monitor (launch Applications > Utilities > Activity Monitor" and click the CPU heading. This will bring Aperture close to the top of the list. Make a note of the PID number in the first column, in this case 66550.
    Launch a Terminal window and enter the following command:
    kill -TERM 66550           (insert Aperture's PID instead of 66550)
    This will send the "Software Termination Signal - TERM to Aperture, the same as pressing the "Quit" button should do, but send it directly, and not from the GUI that is unresponsive. This way I always succeded in cancelling a vaul update without force quitting. Not all processes can be terminated this way, however. The Terminal.app is also in the Applications > Utilities folder.
    Regards
    Léonie

  • Problem using JDBC Thin driver with Oracle 8i Personal Edition

    Hi all, I have an issue I have been unable to figure out. In order to make my code as portable as possible I am using the JDBC thin driver to access my database. I have been able to connect to an instance of Oracle 8i on a Sun box by hardcoding the following string into getConnection() call:
    conn = DriverManager.getConnection("jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(COMMUNITY=tcp.world)(PROTOCOL=TCP)(Host=<myhostname>)(Port=1521))(ADDRESS=(COMMUNITY=tcp.w orld)(PROTOCOL=TCP)(Host = <myhostname>)(Port = 1526)))(CONNECT_DATA = (SID = <mysidname>)))", <myuser>, <mypassword>);
    My problem is that I cannot figure out what string to use to connect to my local instance of Oracle 8i Personal. I used the following string (the sid I got from the looking at the init.ora file):
    conn = DriverManager.getConnection("jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(COMMUNITY=tcp.world)(PROTOCOL=TCP)(Host=localhost)(Port=1521))(ADDRESS=(COMMUNITY=tcp.world)(PRO TOCOL=TCP)(Host = localhost)(Port = 1526)))(CONNECT_DATA = (SID = orcl)))", "scott", "tiger");
    That didn't work, so I took the only entry found in my tnsnames.ora file in as:
    conn = DriverManager.getConnection("jdbc:oracle:thin:@(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0)))(CONNECT_DATA = (SID = PLSExtProc)(PRESENTATION = RO)))", "scott", "tiger");
    I am not knowing what is wrong, but that didn't work neither. Any suggestions would be highly appreciated.
    Thanks....
    null

    try this:
    conn = DriverManager.getConnection("jdbc:oracle:thin:scott/tiger:@hostname:1521:sid");
    or use system/manager as username/passward
    null

  • Problem using JDBC connection

    I'am using 9iAS R2 and I have a entity bean using a DataSource with out any problem, but I also have a client program using the same datasource. I can lookup the datasource without any problems, I get a connection, but when I try to createStatement() on the connection I get an Exception see below.
    I hope some one can help me!
    Regards
    Morten
    java.lang.NullPointerException
         at com.evermind.sql.OrionPooledDataSource.addUsedConnection(OrionPooledDataSource.java:539)
         at com.evermind.sql.OrionPooledDataSource.getPooledInstance(OrionPooledDataSource.java:290)
         at com.evermind.sql.OrionCMTConnection.setConnection(OrionCMTConnection.java:189)
         at com.evermind.sql.OrionCMTConnection.intercept(OrionCMTConnection.java:127)
         at com.evermind.sql.FilterConnection.getMetaData(FilterConnection.java:75)
         at com.evermind.sql.FilterConnection.getMetaData(FilterConnection.java:76)
         at dk.modulus.regelmaskine.RegelParamDAO.getRegelParametre(RegelParamDAO.java:33)

    Hi Morten,
    Have you tried running OC4J in "debug" mode? This web page has more details:
    http://kb.atlassian.com/content/atlassian/howto/orionproperties.jsp
    You may also like to try "P6Spy"
    http://www.theserverside.com/home/thread.jsp?thread_id=8337
    And here is a web page from Oracle's "Technet" site regarding debugging
    OC4J:
    http://otn.oracle.com/tech/java/oc4j/htdocs/oc4j-logging-debugging-technote.html
    Hope this helps you.
    Good Luck,
    Avi.

Maybe you are looking for

  • Java not working with 10.6.8 iMac

    Java is no longer working on my intel iMac with Snow Leapord 10.6.8 with Firefox.  This issue has come up when trying to use two different programs that I previously was able to use; Java automatically ran.  I have tried to read previous discussions

  • Business systems defined in SLD not visible in Integration Directory.

    Hi, After having finished with the SLD configuration involving defining the product, software component, TS and BS. Then I imported in the Integration Repository from SLD and then defined message interfaces, types etc. After that, in Integration Dire

  • Is this App possible

    I'd like to with one or two buttons presses be able to record a voice note and then have the mp3 or wav file of that voice note automatically attached to a specific (one only) email that is then sent. Is this possible, if so how hard would it be ? If

  • Don't know how to access my email away from home

    i don't know how to access my email away from home. can't find webmail or email options. == User Agent == Mozilla/4.0 (compatible; MSIE 7.0; AOL 9.1; AOLBuild 4334.5009; Windows NT 6.0; Trident/4.0; GTB6.3; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.307

  • Doubts over the tablet battery.(t​hinkpad 8)

    I am Brazilian, and I have a question about the battery. Sorry my bad English, as in Brazil is hard to find information about this device. I see in the lenovo site that the battery lasts between 7 or 8 hours. My tablet is the lenovo thinkpad 8, 64 gb