Working with an online database

Hi,
I would like to know what differences I have to account for when using an online database (with JDBC), rather than a local one? Are there any security issues? Can I connect to the online database and use it in the same way that I would do with a local database, or is it much more complicated?
thanks ..

There is no difference in the jdbc code when you connect to a local database as compared to when you conntect to an online db (like an Oracle Server running on a remote machine).
When loading the driver you just have to make sure that you load it with the right settings.
Driver driver = (Driver) Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
Properties p = new Properties();
p.put("user", "scott");
p.put("password", "tiger");
Connection con = driver.connect("jdbc:oracle:thin:@localhost:1521:sid1", p);
If you want to connect to a remote machine read the machine name (or IP address) and port from an configuration file rather than hard coding it.
hope this helps.
regards,
Abhishek.

Similar Messages

  • Hi Pls help me, How to work with SQL 2000 Database

    I have database using SQL 2000, How to connect and work with SQL 2000 Database. thanks

    Log on to www.SQLite.org that may help you.
    Using the Sqlite3.dll and after customizing your code with SQLite3.h you can read and write on to that DB.

  • Regarding  working with oracle spatial database connections

    sir/madem,
    i am an engg student, my final year project on inserting data into oracle spatial database through java /jsp , i am working with oracle spatial database 10g/11g,
    i want know how to insert/retrive/ manuplute the spatial data into oracle spatial databse for 10g/11g, through java programing,
    the syntax for connection of oracle spatial database 10g/11g, needed,
    i have less time to finish my project
    i hope u  help me
    thank u
    kasim
    ([[email protected]|mailto:[email protected]])

    For database access from Java, you will use JDBC.
    For the specifics of the oracle spatial database, you'll have to check the documentation/forum of Oracle.
    * [How To Ask Questions The Smart Way|http://www.catb.org/~esr/faqs/smart-questions.html]
    * [JDBC Tutorial|http://java.sun.com/docs/books/tutorial/jdbc/index.html]

  • Project working with Project Online in Office 365

    Hello,
    My question is related to project working and using Project Online to track projects.
    * Can I use a single "Project Online with Project Pro for Office 365" subscription for tracking and creating reports about all project sites and their tasks in Office 365?
    Meaning, if we have multiple projects designed in Project Pro and then uploaded directly to Office 365, can we gather the task, resource and progress information from these projects (created directly to Office 365) in a Project Online overview? One person
    using Project Online to oversee multiple projects, others uploading their projects and changing task information in Office 365 to a SharePoint site with Project Pro and Office 365 subscriptions.
    We want to have one person with Project Online overseeing the progress and create reports on all projects that have been uploaded to Office 365 (Project Portfolio Management), but not creating new projects. Is this possible with just one Project Online subscription?
    The other users would all have an Office 365 Enterprise 3/4 subscription for accessing Office 365, collaborating and updating their tasks. Project managers would have a Project Pro subscription for creating and uploading projects to Office 365.
    Thank you in advance.

    Helen,
    Your question is slightly confusing, so let me try and say it this way: 
    1) Your PMs (multiple) will use Project Pro, to create and publish plans to Project Online
    2) You will have one user who will 'administer' Project Online and create reports etc.,
    3) You will not have any other users access Project Online
    4) I am not sure about you 'SharePoint' comment--so excluding this.
    The problem is that, Project Pro+Office 365 does not necessarily give you access to Project Online. This combination is more useful when you are using just Project Pro or using project Pro to sync plans with Task lists on SharePoint Site. Plans that are
    uploaded this way will NOT appear in Project Online. So, the person who has the Project Online license will not have any data to report on.
    Having said that, here are few options:
    1) Stick with Project Pro +Office 365. Team Members can access "Task" lists in SharePoint Sites. In this scenario, Reporting will be somewhat complex, because each site is its own, and you might have to customize to be able to report across multiple sites. 
    2) If you want an easier Project Portfolio Management, Project Online is better. However, in this case, your PMs need to get Project Online with
    Project Pro for Office 365 which will allow them to publish plans to Project Online. Then your user with project Online license can generate reports for the portfolio easily. In this scenario, if you want team members to be able to submit timesheets,
    work with documents etc., you might want to look into getting the Project Lite for them (http://blogs.office.com/2014/03/31/project-lite-may-1st/)
    Hope it helps.
    Prasanna Adavi,PMP,MCTS,MCITP,MCT http://thinkepm.blogspot.com

  • Forms 6i: working with Microsot access database

    I have developed a form that works with a Microsoft Access database instead of an Oracle database (I use ODBC). The form has a block based in a table named dias and this block has a column named dia based in the column dia.
    When I try to compile this program unit:
    PROCEDURE pru IS
    BEGIN
    select dia from dias;
    END;
    appears the following error: error 201, el identificador dia debe declararse (you have got to declare dia)
    And if I try to compile this:
    PROCEDURE pru IS
    BEGIN
    select dias.dia from dias;
    END;
    appears the following error: error 414,no hay ninguna columna dia en la tabla (there is not any column named dia in the table)
    The :system.last_query variable is "select dia from dias" when I do a query.
    Please, I need your help urgently.
    Thanks,
    Sara

    Try this:
    Properties props = new Properties();
    props.put ("user", user);
    props.put ("password", password);
    props.put ("charSet", "UTF8");
    c = DriverManager.getConnection (url, props);

  • Does BAM works with only Oracle database at the backend.

    Hi, I was wondering if Oracle Bussiness Activity Monitor(BAM) implemented within ADF application works with Oracle database as Oracle database is one of the very few databases supporting Database Change Notification? Or can it be implemented using MySQL database etc.
    Thanks!
    Edited by: 996574 on Jun 3, 2013 2:06 PM

    AFAIK only Oracle db supports Database Change Notification.
    Timo

  • ODBC Cartridge works with MicroSoft Access database?

    I need to work with data saved in the Access Database, I wonder
    if the ODBC Cartridge will work with Access? From the
    documentation, it only mentions Informix, System.... it didn't
    mention Access or Excel ...
    Any suggestion or prior experience to share will be appreciated.
    Your asap response is much appreciated...thanks.
    Frankie
    null

    Hi,
    I'm using OAS407 with ODBC cartridge and connecting to
    Access. Also, Oracle support put an enhancement request
    in for us to modify the ODBC cartridge to return BODY
    tags thru ICX, so ODBC cartridge can be used with
    LiveHTML. Is that what you want to know?
    Regards,
    Mike Thomas
    Frankie (guest) wrote:
    : I need to work with data saved in the Access Database, I
    wonder
    : if the ODBC Cartridge will work with Access? From the
    : documentation, it only mentions Informix, System.... it didn't
    : mention Access or Excel ...
    : Any suggestion or prior experience to share will be
    appreciated.
    : Your asap response is much appreciated...thanks.
    : Frankie
    null

  • To make BI Beans work with Oracle 9i Database for Windows...

    I have tried the following combination
    Oracle Database 9.0.1.2 + Patch 3(Patchset:2227410)
    Jdevelper9i RC
    BI Beans RC
    But, when I tried to create a new calculation or new presentation, I got "Connection information is incomplete, Service Name is not specified." error. So, I added " <oracle.dss.addins.wizard.connection.serviceName>OLAPServer</oracle.dss.addins.wizard.connection.serviceName>" in IDEConnections.xml. After this, it ended up with the "BIB-16601" error again:(
    Please let me know whether I have to wait for another patch or not. Because, if the cause of this error is my configuration and all the Oracle Products are fine, I have to check my configuration again to make it work. But, if I simply have to wait for a new patch, I can do something else till then:)
    Thank you.
    Seiji
    P.S. If someone could make BI Beans work with Jdeveloper9irc and Oracle OLAP Services on Windows, PLEASE let me know.

    I found an answer for my question in the JDeveloper 9i forum ( The title is "OLAP Patch"). I will wait for the new patch.

  • Can 9i client work with 8i & 7 database?

    Not sure if this is the correct forum, but here's my question.
    I have a 8i database which I access using a ODP.NET (VB.NET program). I also need access to an Oracle 7 database from the same application.
    1) will 9i client work with 7 database?
    2) if not, if I install 8i & 9i Client, can I programmatically pick which one I use (not using the oracle home selection program)?
    I could create materialized view of the oracle 7 tables on the 8i database, but seems like alot of duplicated storage. If I can't get this to work I would have to resort to the Microsoft ODP for Oracle since I can use 8i client with it.
    Thanks!
    Bob

    Wouldn't changing the system PATH variable in code alter it for every web application running? If I have multiple applications running changing the PATH to suite the current call could inadvertently affect another application. The only other solution is to run MS data provider or ODP.NET/9i on one Web server, and 8i on another.
    Bob

  • 8610 printer problem with an online database

    brand new printer - prints docs fine - when I try to print from my ACT database I get a little yellow "splash" with an exclamation mark in it next to my mouse arrow - won't print - everything is installed correctly - did the checks - please help - had an HP 6500 for over 4 years that was no problem  - thanks

    Hi @CLWM  ,
    I see by your post that you aren't able to print from the Act Database Software, but you can print from other applications. I would like to help you out today.
    It might be a issue with the printer language, it might not be compatible with the Act Database Software.
    The language on the printer is HP PCL 3 enhanced.
    What language is the Act Database Software?
    Download and run the Print and Scan Doctor. It will diagnose the issue and might automatically resolve it. Find and fix common printer problems using HP diagnostic tools for Windows?
    What were the results when you ran the Print and Scan Doctor? (did it print or scan, any error messages)
    Have a fantastic day!
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • Jdev 10g really going to work with other jdbc database ?

    Just making my jdev sample (struts - adf - binding list with navigation buttons) working fine with firebird jdbc driver, As soon as I change my wiewiterator rangesize property from -1 to 10 and I see an ugly message :
    JBO-27122: SQL error during statement preparation. Statement: SELECT count(1) FROM (SELECT VIndividuCodeAdh.IN_CODE, VIndividuCodeAdh.IN_NOM, VIndividuCodeAdh.IN_PRENOM, VIndividuCodeAdh.IN_TITRE, VIndividuCodeAdh.AO_CODE, VIndividuCodeAdh.AO_CLOTURE, VIndividuCodeAdh.STATUS FROM V_INDIVIDU_CODE_ADH VIndividuCodeAdh) ESTCOUNT
    GDS Exception. Dynamic SQL Error SQL error code = -104 Token unknown - line 1, char 23 SELECT
    JDev team, do you really think that standard sql db will support that kind of syntax : select x from (select ...) ?

    Hello, the one site you have to visit is www.ibphoenix.com, they have everything you need about firebird sql db.
    Coming back to my pb, what is strange, is that I have check in AppModule->Configuration and jdb.SQLBuilder is set to SQL92 and jbo.TypeMap is set to java, and even though JDev generates that specific SQL.
    select count(1) from (select xxxx from table) is definitly not SQL 92. The wizard for business components from table doesn't retrieve the tables or views from firebird, I had to do it manually with New..->EntityObject. Is there another place where the sql 92 parameter are defined ?
    Olivier

  • How to work with EJBs and database for a simple login application

    Hi all :)
    I am new in JSP,EJB and Servlets. I just wanted to develop a simple login application, using JSP+EJBand servlets. In some tutorial I found that the beans are already populatesd with database records. But will it be good logic to retrive all records into a bean and then search for a perticuler users data for authentication.
    Can any one tell me me what is the best logic for doing so. :(
    Thanx in advance.

    Himanshu.Shekhar wrote:
    Hi all :)
    I am new in JSP,EJB and Servlets. I just wanted to develop a simple login application, using JSP+EJBand servlets. In some tutorial I found that the beans are already populatesd with database records. But will it be good logic to retrive all records into a bean and then search for a perticuler users data for authentication.No. Let the database do the search. It's far more efficient.
    %

  • Can forms 11g work with oracle 9i database?

    Hi all,
    Can anyone say if we can install forms 11g over WLS, using oracle 11g database for repository only, and activate/connect our forms to oracle 9i database?
    is this how it's done?
    our production database is 9.2.0.4 on sun solaris.
    Please advise,
    thanks,
    Amit

    It will work. Its just a Net 80 connection from WLS to the Oracle 9 database.
    fr_inst/config/tnsnames.ora
    Best Regards
    mseberg

  • Working with local SQL databases in AIR

    This question was posted in response to the following article: http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118676a5497-7fb4.html

    Hi Randy,
    It is from the retrieving data article.
    The first error that I got was
    1120: Access of undefined property conn.    DatabaseTest.mxml   
    /DatabaseTest/src    line 16    Flex Problem
    I then declared a variable for conn and received the following error as
    the app started to run.
    Error: Error #3109: Operation is not permitted when the
    SQLStatement.sqlConnection property is not set.
         at Error$/throwError()
         at flash.data::SQLStatement/checkAllowed()
         at flash.data::SQLStatement/checkReady()
         at flash.data::SQLStatement/execute()
         at DatabaseTest/init()[C:\Users\Neil\Adobe Flash Builder
    4.6\DatabaseTest\src\DatabaseTest.mxml:28]
         at
    DatabaseTest/___DatabaseTest_WindowedApplication1_creationComplete()[C:\Users\Neil\Adobe
    Flash Builder 4.6\DatabaseTest\src\DatabaseTest.mxml:2]
         at flash.events::EventDispatcher/dispatchEventFunction()
         at flash.events::EventDispatcher/dispatchEvent()
         at
    mx.core::UIComponent/dispatchEvent()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\ UIComponent.as:13152]
         at mx.core::UIComponent/set
    initialized()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:1818]
         at
    mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.y\frameworks\projects\framewor k\src\mx\managers\LayoutManager.as:842]
         at
    mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.y\frameworks\projects\ framework\src\mx\managers\LayoutManager.as:1180]
    Neil
    [email protected]

  • My web form is not working with PayPal

    Only seamless gateways such as the "Pro" version of PayPal, eWay or Authorize.net will work with form payments. Gateways that have the user leave BC, such as PayPal Standard, Google Checkout or Realex, only work with the online store.

    I did further testing:
    1. I turned off the IPN and I still received the Error page.
    2. Than I went and turned off the Payment Data Transfer, and now I got the blank page... /PaymentProcess.aspx?paypal=success. However, I still got the paypal transaction ID attached to the orders.
    3. I turned on the IPN and still got the blank  /PaymentProcess.aspx?paypal=success and I still got the paypal transaction ID attached to the orders.So the conclusion is that IPN has no bearing on payments made with PayPal Standard when it is used with custom forms.
    4. I chaged the URL in the Return URL to go to the secure home page instea of to /PaymentProcess.aspx. and...it still sent me to the PaymentProcess.aspx and I still got the paypal transaction ID attached to the orders.
    5. I made the purchase using shoping cart to ensure it works too and this time I even received the receipt on the /PaymentProcess.aspx. The Ref# and Auth Code were "Not Applicable" but it still worked and it was recorded in the orders with the paypal transaction ID
    So my conclusions are:
    1. IPN has no bearing on PayPal payments made from the custom web form
    2. Payment Data Transfer being on sends to the pafe that can't be processesd and it renders Error message
    3. Return URL always send you to the PaymentProcess/aspx regardless what secure url you put in there.
    4. Transcation ID is always passed to the orders as long as it can connect to PayPal. I guess ur will do it as long as the Payment Gateway has the proper informration in there.
    5. It works the same from the custom web form and from checkout form.
    I hope this sheds some light and serves some purpose to whoever is completely confused by this as I am.
    Mario and Liam, thanks for your help. Much appreciated.

Maybe you are looking for

  • HTC Incredible reboot fix that works and does NOT require hard reset

    Like many of you unfortunate souls out there I have had my HTC Incredible go into a rebooting loop over the last month or so. The following recounts some observations and and a solution which appears to work. First off, my son and I both have the sam

  • Convert sql/server to oracle

    I have a problem with left joint sql/server GTxtSQL = " select E.*, CodFamille, LibFamille, CodSFamille, LibSFamille, " _ & " CodLocal, LibLocal, CodService, LibService, F.CodFourn, F1.CodFourn as CodFournSAV " _ & " from tp_Index_1 IX, t_Equip E, t_

  • ECM spent budget was clean up when approval manager reject an org unit?

    Hi HR Experts, When an approval manager rejects an org unit, the spent budget of this org unit is clean up but the budget still distributed to each employee in that org in the infotype 0759 therefore leads to inconsistency of budget in ECM. Is there

  • Error when trying to run UCM from browser -The portal page for your Content

    Hi When I try and run the UCM in a browser using "http://localhost/idc", it showing "The portal page for your Content Server needs to be rebuilt. Start the WebLayout Editor as a standalone application and select Update Portal... from the Options menu

  • Flash CC crashes after launching

    Hey, I just installed Flas CC on my MacBookPro... after launching Flash, the Application freezes and crashes... I searched the forum... still ihave no idea... every other CC-Application works just fine Error Log: Process:         Adobe Flash CC [1121