Accessing an online database

Would it be possible to access a database online directly from a desktop application. I'm thinking probably not because of security restrictions on most webservers, the easiest way I'm thinking is to write some servlets that access the database then call them using an HTTPUrlConnection.
Is there a better way to do this?

Sure it's possible to access a database on a remote
system. (That was what you meant by "online", right?)
Certainly there are security issues here but it's
technically not a problem.Security and performance issues. Even with a fast connection returning a large ResultSet is going to be painful. Why don't you just setup a database to use locally?

Similar Messages

  • My preferences allow pop-ups and yet when I try to generate a letterfrom an online database I'm using for work, FifreFox "prevents po-ups from this site" Why?

    I need to access an online database to generate letters for an assigned project. I click on the appropriate link to generate letters, the file is conveyed to my downloads, and I open it using Adobe to create a pdf. This worked fine for the first 5 letters. When I tried to generate the 6th, a yellow banner appeared informing me that "FireFox prevented this site from opening a pop-up window" which prevented me from getting the letter into downloads to open in Adobe. Even though I don't have the pop-up blocker on, I clicked on preferences and found the site in question already listed as allowed. Why is this happening? How can I continue my work?

    * Go to your concerned website
    * Right-click empty space within the page and click '''View Page Info'''
    * In the '''Page Info''' window, select the '''Permissions''' panel
    * Under '''Load Images''' , '''Open Pop-up windows''', '''Set Cookies''' -> place/Remove Checkmark from '''Use Default''' and change the setting to '''Allow'''
    * Close the Page Info window
    Check and tell if its working.

  • Access vs. SQL Server for online database

    I have a client who insisted on using Access for his online
    database because he wanted to be able to download it quickly and
    easily to be able to manipulate data on his end. However, after
    importing about 20 thousand records into his existing database,
    he's not happy with the speed at which it's now processing searches
    - the search criteria and underlying queries are very complicated
    to begin with. We had the SQL Server discussion previously, but he
    wanted to keep it in Access. So, my question is...how much faster
    can SQL Server process data over Microsoft Access? Will the results
    be significant enough to justify converting the database to SQL
    Server? Would his data process faster if he was on a dedicated
    server instead of a shared server? Thanks!

    If you can get away with using 3 digit zip code areas for
    some of your partners, that might cut down on the total number of
    records in your database. Also, in addition to indexing, indexing,
    indexing, be aware that the "distinct" keyword is a pretty big
    resource hog as well. Might be best to stay away from that one.
    Not sure if I remember if Access supports stored procedures
    or not, but any queries that you can precompile on the database
    side will speed things up a bit.
    Of course, you could just explain to him that downloading a
    20,000 record access file, waiting for it to finish, editing it,
    uploading it back to the server, and waiting for it to finish is
    not exactly a very effective work flow. You could switch everything
    over to MS SQL and then just give him a bound data grid into the
    data in CF if he really wants to manipulate the records like that.
    But then again, I know how these things go. My
    condolences.

  • Regular Expressions on an online database

    Hi everyone, I'm kinda new so if what I'm about to ask seems crazy bear with me.
    What kind of issues would be involved with using a regular expression to search an online database?
    The Site says that Java 1.4 now supports a great deal of regex functions but I'm wondering would it be possible to type a regex into some control and for t to evaluate this against what's in the Database?
    Am I making sense?
    Thanks everyone,
    Robin Spiteri.

    Normally you access a database via JDBC & SQL. So the question is whether SQL supports regular expressions; this has nothing to do with java (any version). As far as I know regexps are not part of standard SQL although this might not be true for all SQL databases --> I think you cannot use regexps directly to query a database.
    If the database you're using supports regexps, and you are really sure that this will be "THE" database, and the system won't change, you can of course included regexps in the SQL, but that'll make it difficult to move to another database
    What you definitely can do is loop through the resultset and kick out the records you don't want, e.g.
    while(rs.next()) {
      if(!matchMyRegExp(rs.getString(1))) {
        // loop if reg exp is not matched
        continue;
      // do something
    }This should work on any database, but at the cost of transferring more data than needed from the db to the application.

  • Creating a midlet thats dependent on a online database

    Hi,
    I'm new to Java. I'm in the process of creating a midlet, but need to access an online mysql database. I've been searching, but all the ways i've found so far are long to implement and seem very complicated. Is there no quick and simple way to do this?
    Thanks

    all the database treatement should be done on the service side...
    ( j2me -> servlet -> database -> servlet -> j2me)
    http://developers.sun.com/techtopics/mobility/allarticles/#ws

  • Unable to access values from database in login page..

    Hey all,
    Friends I have a login.jsp page and I want if i enter username and password then it will be accessed from database and after verifying the details it will open main.jsp.I made a database as "abc" and created DSN as 1st_login having table 1st_login. But the problem is that I am unable to access values from database.
    So Please help me.
    Following is my code:
    <HTML>
    <body background="a.jpg">
    <marquee>
                        <CENTER><font size="5" face="times" color="#993300"><b>Welcome to the"<U><I>XYZ</I></U>" of ABC</font></b></CENTER></marquee>
              <br>
              <br>
              <br>
              <br><br>
              <br>
         <form name="login_form">
              <CENTER><font size="4" face="times new roman">
    Username          
              <input name="username" type="text" class="inputbox" alt="username" size="20"  />
              <br>
         <br>
              Password          
              <input type="password" name="pwd" class="inputbox" size="20" alt="password" />
              <br/>
              <input type="hidden" name="option" value="login" />
              <br>
              <input type="SUBMIT" name="SUBMIT" class="button" value="Submit" onClick="return check();"> </CENTER>
              </td>
         </tr>
         <tr>
              <td>
              </form>
              </table>
    <%
    try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection connection = DriverManager.getConnection("jdbc:odbc:1st_login");
    Statement statement = connection.createStatement();
    String query = "SELECT username, password FROM 1st_login WHERE username='";
    query += request.getParameter("username") + "' AND password='";
    query += request.getParameter("password") + "';";
    ResultSet resSum = statement.executeQuery(query);
    //change: you gotta move the pointer to the first row of the result set.
    resSum.next();
    if (request.getParameter("username").equalsIgnoreCase(resSum.getString("username")) && request.getParameter("password").equalsIgnoreCase(resSum.getString("password")))
    %>
    //now it must connected to next page..
    <%
    else
    %>
    <h2>You better check your username and password!</h2>
    <%
    }catch (SQLException ex ){
    System.err.println( ex);
    }catch (Exception er){
    er.printStackTrace();
    %>
    <input type="hidden" name="op2" value="login" />
         <input type="hidden" name="lang" value="english" />
         <input type="hidden" name="return" value="/" />
         <input type="hidden" name="message" value="0" />
         <br>
              <br><br>
              <br><br>
              <br><br><br><br><br>
              <font size="2" face="arial" color="#993300">
         <p align="center"> <B>ABC &copy; PQR</B>
    </BODY>
    </HTML>
    and in this code i am getting following error
    C:\Project\SRS\build\generated\src\org\apache\jsp\loginjsp.java:93: cannot find symbol_
    C:\Project\SRS\build\generated\src\org\apache\jsp\loginjsp.java:93: cannot find symbol_
    C:\Project\SRS\build\generated\src\org\apache\jsp\loginjsp.java:94: cannot find symbol_
    C:\Project\SRS\build\generated\src\org\apache\jsp\loginjsp.java:95: cannot find symbol_
    4 errors
    C:\Project\SRS\nbproject\build-impl.xml:360: The following error occurred while executing this line:
    C:\Project\SRS\nbproject\build-impl.xml:142: Compile failed; see the compiler error output for details.
    BUILD FAILED (total time: 6 seconds)

    As long as you're unable to compile Java code, please use the 'New to Java' forum. This is really trival.
    To ease writing, debugging and maintenance, I highly recommend you to write Java code in Java classes rather than JSP files. Start learning Servlets.

  • Access to MySql Database in the Web Service

    Hi all,
    In my j2me web service project, i want to access to MySql database in the web service and
    my installation is
    Tomcat 5.0 for Java WSDP,
    Java Web Services Developer Pack 1.5,
    MySql Server 5.0 and environment variables are adjusted...
    server.xml where is in "C:\tomcat50-jwsdp\conf" is adjusted like this
    <!-- Replace the above Realm with one of the following to get a Realm
    stored in a database and accessed via JDBC -->
    <Realm className="org.apache.catalina.realm.JDBCRealm"
         debug="99"
         driverName="com.mysql.jdbc.Driver"
         connectionURL="jdbc:mysql://localhost:3306/erendb"
         connectionName="root"
         connectionPassword=""
    />
    but i have not access to MySql database in the web service yet...
    please help...

    Hi Luis,
    If you see closely, the productID is actually a concatenation of the areaID and the productID. The reasoning here is that a product can be in multiple nodes of the product catalog and one would need to specify the product on a particular node for the direct URL to work.
    On a client site, we came up with a better solution by creating a new FM to retrieve the specific areaID and productID for a product. This FM could be called by extending the webshop. Then a .NET program was written to re-direct a shortened form of the URL to the long URL and therefore the specific product in the product catalog. Eg.: http://yyyyy.com/b2c/b2c/product would be automatically redirected to http://yyyyy.com/b2c/b2c/init.do?shop=<shop name>&areaID=<area Guid>&productID=<product Guid>, something similar to the concept behind "tinyurl.com". A point to remember here is that this would work only for the B2C webshop.
    Hope this helps.
    Cheers,
    Ashok.

  • Installing multiple instances accessing the same database

    Hi,
    I want to install two different instances of Oracle 10g in two different machines which will access the same database which will be stored in the shared storage.
    Is it possible to install them without installing RAC? The instances will be one active and the other passive, so the services will be up in one server and down in the other and the switching (shutting down one server and starting up the other) will be manual.
    Two servers will be running Linux and clustered in Linux level.
    Does Oracle offers this solution without installing Clusterware software?
    Thank you

    > The instances will be one active and the other passive, so the services will be up in one server and down in
    the other and the switching (shutting down one server and starting up the other) will be manual
    Missed this part as I was thinking proper cluster and RAC.
    This is neither. Yes, this can be done using two servers and shared storage.
    Is it a good idea? Not really. As this configuration does not provide redundancy at physical database level. You loose that storage.. bye-bye database. Does not matter whether you have a 100 backup servers that can be used.
    Thus the business reasons that you are trying to meet with this config have to be clarified and expectations determined.
    Separate servers using Data Guard will be a far more superior solution in many respects.

  • How do I access my online Palm account?

    I need to change the credit card number in my Palm account because my other one expired. I do not see a link anywhere on Palm's web site to access my online account to do this. I know I set it up and even have my password, just don't know the url for it.
    I would think Palm would just have a link on here somewhere to "Login". Any help would be greatly appreciated. Thanks!

    Hello and welcome to the forums;
    Changing your credit card on file for the App Catalog is done through the device, the same way it was initially added. Open the app catalog, and tap on Preferences & Accounts. The top box is the Account box, tap on it, enter your Palm Profile password, and tap Continue.
    From the next screen, change or update any new information, tap Submit, and that's it.
    Hope this helps,
    TreoAide

  • How to assign read only access for a database to a single user?

    Hi All,
    I have created a login for one of the user , and i used deny view to deny that user access to any of the databases to be shown.Now, he cannot see any databases in the explorer window.
    My question is now i want to give this user permission ( read-only) to a single database. How can i do that? I have googled around and found some solutions but nothing is working.
    Can someone please help me with any suggestions.
    Thanks a lot for your time and suggestions in advance.
    Thanks

    Hi Bhanu,
    Thanks for your reply, I am not sure i got it. I have a user created with the name of 'msam_test' and if i login into management studio with this userid and password i dont see any databases showing up because i used the DENY View command to hide which is
    working fine.Now i just want to see only 1 database named 'suresh3_test' with a read only access to this database.
    I tried using your code in the below way
    USE [suresh3_test]
    CREATE USER [<msam_test>] FOR LOGIN [<msam_test>] WITH DEFAULT_SCHEMA=[dbo]
     exec SP_ADDROLEMEMBER 'DB_DATAREADER','<msam_test>'
    But i receive an error saying
    Msg 15007, Level 16, State 1, Line 3
    '<msam_test>' is not a valid login or you do not have permission.
    Msg 15410, Level 11, State 1, Procedure sp_addrolemember, Line 75
    User or role '<msam_test>' does not exist in this database.
    Can you please help me on this.
    Thanks

  • Read only access for a Database!

    Hi All,
    I need to create a user for my database who can have readonly access to the database and can work as *"Read Only Apps".*
    Senario:-* I want to give access to development team through TOAD/ SQL* but that user can not delete/update any thing from apps schema.
    Thanks,
    Anchorage

    Anchorage,
    Please refer to the following link:
    Read Only Schema in Oracle APPS 11i
    http://oracle.anilpassi.com/read-only-schema-in-oracle-apps-11i.html
    You may also search this forum as the same topic was discussed here many times before.

  • Is it possible to have two DADs that access the same database?????

    Hello,
    Is it possible to have two DADs that access the same database?
    One DAD would be password protected with Authentication mode Per Package and the other DAD would not require a password/login
    If it is possible can you also give suggestions about how to do this
    Thanks
    Doug

    I HAD THE SAME PROBLEM WITH SHARING MY LIBRARY WITH MY SON. WHAT I DID WIAS CREATED A LIBRARY FOR HIS USE ONLY. IN ITUNES CLICK--FILE--NEW PLAYLIST AND THIS SHOULD ADD AN UNTILED PLAY LIST IN YOUR SIDE BAR. CLICK ON IT AND RENAME IT. HE CAN KEEP ALL OF HIS MUSIC IN THIS LIBRARY. SELECT ALL OF HIS MUSIC FROM YOUR LIBRARY AND DRAG IT INTO HIS. ONCE THIS IS DONE YOU CAN THEN REMOVE HIS SONS FROM YOU PLAY LIST. MAKE SURE YOU ONE REMOVE IT FROM YOUR PLAY LIST AND NOT DELETE THE FILE.
    HOPE THIS HELPS
    G4   Mac OS X (10.3.9)  

  • I can no longer access my online banking account in firefox

    I can no longer access my online bank account in firefox, although I can in IE. I can get through the login ID and security question, but when I type in my password and click on login, it consistently tells me I have the wrong password. I have no trouble logging in with IE. I have deleted my history completely, deleted the sqlite files from my profile, and done everything else I can find in the support area with no results. I have been able to access this website for years in firefox, and all of a sudden today I cannot. I called the bank and they even reset my password and tested firefox on their end and said they have no problems with it. I have not installed any new addons. I disabled firefox preloader. Any suggestions?

    I see you are using LastPass. Could that add-on be interfering with your login?? You could try disabling it temporarily under Tools > Add-ons to test that theory.

  • Working offline with data from Access 2010 web database

    Hello all,
    I have an Access 2010 web database that I have published to a SharePoint site. Users currently work with the data via one of several Access 2010 front end applications that simply have linked tables and client queires, forms and reports. On a couple
    of occasions, we have had issues with our SharePoint site that have left users unable to access the data. A couple of times it was due to our site collection suddenly and inexplicably becoming read only and the last time (while I was on vacation, of course)
    due to some license changes my folks were unable to access the site.
    I'm getting ready to go on vacation again. What i would like to do is have a sort of emergency back up plan should things go awry again while I'm gone.
    What I envision is a back up database that has actual data tables, rather than simply linked lists, that I can sync with my SharePoint lists on a regular basis. That way, should the SharePoint lists become inaccessible, users could continue to work with
    the data offline and any changes can be synced once a connection is restored.
    I have read through
    this article, but in each scenario I was unable to actually open tables to work with the data once offline. Is this a situation where I should simply have folks work offline with a local copy containing all of the data and then republish? Or, is there
    a way to simply sync? Any thoughts or suggestions would be appreciated. I'm really hoping to leave my laptop at home on this next trip.
    Thanks,
    Greg

    Hi,
    I am trying to involve someone familiar with this topic to further look at this issue.  There might be some time delay, appreciate your patience.
    Thanks
    Daniel Yang
    TechNet Community Support

  • Cannot open 2 Virtual Machines at the same time to access the same Database

    Folks,
    Hello.
    I am installing Oracle Database 11gR2 RAC system using 2 Virtual Machines (rac1 and rac2) on the top of VMPlayer 3.
    The VM rac1 and rac2 run correctly when one of them is shutdown.
    Their locations are F:\VM_RAC\rac1 and F:\VM_RAC\rac2.
    While rac2 is running, I open rac1. But this error message comes up:
    Error: "Cannot open the disk F:\VM_RAC\sharerac\asm1.vmdk or one of snapshot disks it depends on. Reason: failed to lock the file."
    While rac1 is running, I open rac2. But this error message comes up:
    Error: "Cannot open the disk F:\VM_RAC\sharerac\asm1.vmdk or one of snapshot disks it depends on. Reason: failed to lock the file."
    The 2 error messages are the same. This means I cannot open 2 VMs rac1 and rac2 at the same time. When we run RAC system, we have to open 2 machines or more than 2 machines at the same time so that all machines can access the same Database Server.
    My question is:
    Can any folk tell me how to have rac1 and rac2 run at the same time ?
    Thanks.

    You need to disable disk locking, which ordinarily is performed by the first VM to prevent any other VMs from corrupting your vmdk files via uncoordinated writes. You will have to shutdown both of your VMs and edit the *.vmx flat file for each, adding lines like the following (settings taken from workstation 6, but should be nearly identical settings for VM Player 3.x):
    http://crosbysite.blogspot.com/2007/10/clustering-in-vmware-workstation-6.html
    scsi1.sharedbus = "Virtual"
    disk.locking = "false"
    diskLib.dataCacheMaxSize = "0"
    diskLib.dataCacheMaxReadAheadSize = "0"
    diskLib.dataCacheMinReadAheadSize = "0"
    diskLib.dataCachePageSize = "4096"
    diskLib.maxUnsyncedWrites = "0"
    A few comments:
    - your shared disks (scsi1) must be on a separate virtual scsi bus than the boot disk (scsi0), to allow setting the sharedbus flag as seen above.
    - you must also ensure the cache parameters and unsynced writes settings are set to guarantee that all IO is immediately flushed to the vmdk file so the other VM can immediately access the latest version of data.

Maybe you are looking for

  • Backup to external drive question

    Alright, so I have been trying to partition my Macbook HD for a little while now (to install Bootcamp), but it is now telling me to backup all data and format my HD. So, after looking around for a little while, I found a backup program on the Apple d

  • Urgent(Issue in RSA7 and SMQ1)

    We have two data sources 0CRM_OPPT_H and 0CRM_OPPT_I are in RSA7 and we deleted queues manually for these data source in SMQ1. Whenever we dochanges to records related to these data sources that changes we can able to see in RSA3 and Data base tables

  • Start job from portlet

    Hi, I try to start a job from a portlet with this the following code: IPTObjectManager obm = ipSession.GetObjectManagers(PT_CLASSIDS.PT_JOB_ID); IPTJob job = (IPTJob)obm.Open(jobId,true); serverCtx = (IPTServerContext)job.GetInterfaces("IPTServerCont

  • Unwanted duplicates on desktop

    I was trying to create a new folder and somehow all of my folders and files on the desktop have been duplicated. How do I safely get rid of the duplicate files?

  • インストールが0%から進まない(Illustrator CC2014)

    インストールが0%から進まない