Connect between database oracle and jdeveloper

i want a simple example to connct database oracle and jdeveloper
to insert record or update or delete or query

The easy way: http://www.oracle.com/technology/obe/obe1013jdev/10131/masterdetail_adf_bc/master-detail_pagewith_adf_bc.htm
Or if you want to hand code JDBC then:
http://www.oracle.com/pls/db111/to_toc?pathname=appdev.111%2Fb28765%2Ftoc.htm&remark=portal+%28Books%29

Similar Messages

  • Please help, probleme de connection to database oracle and  java

    Ihave a problem to make connection to database Oracle when I use a simple code of java
    ======================
    import java.sql.*;
    public class Exemple1 {
    public static void main (String args[]) {
    Statement stmt = null;
    Connection con=null;
    try {
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    con = DriverManager.getConnection ("jdbc:oracle:thin:@localhost:1521:GB","scott","tiger");
    catch (Exception e) { System.out.println(e);        }
    =================
    I have :
    * Linux (Fedora core3).
    * Oracle 10g
    My var. environ.:
    * ORACLE_HOME=/u01/app/oracle/product/10.1.0/Db_1
    * PATH=$ORACLE_HOME/bin
    * CLASSPATH=$ORACLE_HOME/jdbc/lib/ojdbc14.jar
    the error is:
    Exception in thread "main" java.lang.NoClassDefFoundError: while resolving class: oracle.sql.CharacterSet
    at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.5.0.0)
    at JvResolvePoolEntry(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0)
    at oracle.jdbc.driver.DBConversion.DBConversion(short, short, short) (Unknown Source)
    at oracle.jdbc.driver.T4CConnection.connect(java.lang.String, java.util.Properties) (Unknown Source)
    at oracle.jdbc.driver.T4CConnection.logon() (Unknown Source)
    I don't know what's heppen exactly?

    If
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    is replaced
    with
    Class.forName("oracle.jdbc.driver.OracleDriver");does the java.lang.NoClassDefFoundError: while resolving class: oracle.sql.CharacterSet get generated?

  • Need help in establishing the connection between BO federator and Oracle DB

    Hi Experts,
    I am working on BO federator and now I need to establish the connection between BO federator and the oracle db to use this as the source for the federator,
    I know we need to download the respective oracle DB connect .jar file from the oracle web site and place it under the drivers section(folder) of the BO Federator.
    Now I need to understand what is/are the next steps I need to follow and what are the values for the following parameters which are required during establishing the connectivity while creation of data sources from federator end.
    Host Name:
    Port:
    SID:
    Schema:
    Please share the details, any help will be highly appreciated.
    Thanks with regards,
    Vinay

    Hi,
    Please find below details.
    Host Name: Server Name or IP Address (Oracle)
    Port: (oracle Server Port)
    SID:SID is a unique name for an Oracle database instance. -> To switch between Oracle databases, users must specify the desired SID <-. The SID is included in the CONNECT DATA parts of the connect descriptors in a TNSNAMES.ORA file
    Schema: no need to enter(Blank)
    Thanks,
    Amit

  • How can i make a connection between an application and a database over net

    dear sir
    how can i make connection between an appliction and a database over internet while the client side appliction is behind proxy and firewall
    for example how the live update of norton antivirus makes connection to the data server to make comparetions and get new virus definitions
    does that depend on sockets technology ?
    what references can guide me to the solution please?

    The ability to do so depends entirely on the JDBC driver implementation having some proxy method. It needs to recognize the HTTP or SOCKS proxy and use them to connect, and the firewall and proxy need to allow those specific port connections.
    To the best of my knowledge, all of these update utilities, e.g. live update for Netscape, Norton, etc., do not connect directly to the database. As it is, no sane security person would allow a database to be exposed to the Net. Rather, they connect using HTTP or HTTPS, which normally traverses firewalls just fine, to connect to a Web or application server on the far end. That application server then parses the request and retrieves whatever it needs to from the database.
    In other words, you cannot have a 2-tier client/server application. You need a 3-tier application:
    your client -> Web/app server -> database
    where the connection from your client to the Web/app server is over http or https through the firewall and proxies.
    Hope this helps.
    Avi
    dear sir
    how can i make connection between an appliction and a
    database over internet while the client side
    appliction is behind proxy and firewall
    for example how the live update of norton antivirus
    makes connection to the data server to make
    comparetions and get new virus definitions
    does that depend on sockets technology ?
    what references can guide me to the solution please?

  • Database Lite and JDeveloper / ADF

    Hello,
    I'm planning to create a small application which will run on mobile PC in an off-line mode, having synchronization with master DB once connected to the proper network.
    The main architecture on the target PC may be :
    - Oracle Lite
    - GlassFish
    - ADF application
    I downloaded JDeveloper 11.1.1.3.0 and the latest version of Oracle Lite (10.3.0.3).
    I'm looking the tutorials but none of them are talking about the JDeveloper 11g version, they all speak about BC4J/OC4J. Since I'm new to Oracle's product I don't know these "products" (framework ?) and in the 11g version this seems to have disappeared.
    Are those versions compatible with each other ?
    Will the tutorial work ?
    Regards
    PS: the same thread is present on the JDeveloper forum

    The main thread will be the one on JDeveloper section :)
    ==> Database Lite and JDeveloper / ADF

  • Difference Between Database Schema and Database User Account ??

    First i would like to know what an Oracle Database schema exactly is ?
    And what is it for and also What is it's use ?
    Later the exact "Difference Between Database Schema and Database User Account".
    I googled about it but i'm unable to find out it's The difference,
    Please try to explain in a simple manner........
    Thank you very Much in Advance..........

    user13655582 wrote:
    Greate example. but i would like add one more point..
    a user is a schema and schema is a user. but when this applies to the user that he become a schema, only if he has got some objects. so we can say while creating the user which dosent contain any objects called simple user account but afterwords when he has got an objects then we can say its a schema as the above user has shown you through the exampleIt is just word-play. There is nothing in like a 'status' indicator to say "USER_A is just a user but USER_B has become a schema". Many people use the terms "user" and "schema" interchangeably, and some very good DBAs will insist this is correct. I don't disagree with them even though I usually try to make the distinction.
    In a typical application, all of the objects (tables, procedures, etc) that implement the app will be owned by a "application schema owner" - a user which exists for the sole purpose of owning the schema. Said user will have no privileges at all .. especially not CREATE SESSION. Except for possible maintenance activity no one ever actually connects as this user. User accounts are then given to actual humans who connect with their own accounts. The accounts have the necessary system and object privileges granted to them - via a role. One could also create a special account (let's call it APP_ADMIN) that is used for maintenance and batch operations within the application.

  • Confussing between Database User and Application User in Discoverer

    Hi All,
    I am new to Discoverer.
    Please let me know the difference between Database User and Application User in Discoverer Administrator as well as in Discoverer Desktop Editions.
    1) While I am trying to connect to Discoverer Desktop, I am unable to connect to it with Apps Database User.
    2) Where the Discoverer compenent will be installed and what the configuration settings need to done work on it.
    Please let me know the answers soon.
    Thanks in Advance.

    Hello
    I think a database user should pretty much be self explanatory - this is a user account that exists in the database. This account is created by your Database Administrator (DBA).
    The second kind of user that Discoverer understands is a user that exists inside Oracle E-Business Suite (EBS), formerly known as Oracle Applications, hence an application user. This user account gets created by the EBS system administrator.
    Now, just because you're using EBS, it does not automatically follow that users will be application users. Let me explain.
    Discoverer can be installed in one of two modes, standard mode and Applications mode.
    The vast majority of organizations use standard mode which means they allow database users to access the system.
    The only time that you will need an applications account is under the following two rules:
    1. Your organization is using E-Business Suite, AND
    2. Your Discoverer administrator has installed Discoverer in Applications mode.
    Applicatons mode does not happen automatically, even if you have EBS, and you cannot install that mode by accident. You have to tell Discoverer that it is operating in that mode, provide some additional EBS account information, make security assignments and set users have to deliberately tell Discoverer they want to connect using an applications account.
    May I suggest you get hold of a copy of the Oracle Discoverer 10g Handbook that I wrote. That book explains in detail the differences between the modes. I also have a free white paper on my website that describes how to install Discoverer into Applications mode.
    I hope this helps
    Best wishes
    Michael
    http://ascbi.com

  • Difference between database, websheet and packaged applications

    Hi,
    Can any one explain the difference between database, websheet and packaged applications?
    So far i have worked on database application and not aware of the other applications.
    Regards
    Narender B

    Narender wrote:
    Can any one explain the difference between database, websheet and packaged applications?
    So far i have worked on database application and not aware of the other applications.
    This is fully covered in the documentation:
    About Database Applications
    About Websheet Applications
    About Packaged Applications
    There is little difference between packaged applications and database applications, other than that packaged applications are supplied by Oracle and database applications are created by you.

  • How to get connectivity between Personal Oracle 8.0.0.3 & Developer 2000 (Any Version

    Can anybody tell me how to get connectivity between Personal Oracle 8.0.3 and Developer 2000 Rel 2.1 in Win 98 Environment.
    I am able to install either Oracle 8 or Developer 2000 but not both, even if I use different Oracle Homes.
    When I posted the same question to www.xperts.com someone wrote to me saying that a patch has to be used to get the connectivity.
    I have been trying to solve the problem for last 6 months, but could not do it.
    Can you please tell me how to get the connectivity or atleast tell me which version will facilitate connectivity in a stand alone PC.
    Thanks and regards,
    Ashok
    null

    For Windows98. Worked for me, but no guarantee it will solve your problem.
    1) Install Dev2K.
    2) Install PO8i in a separate Oracle home.
    3) Use the following for TNSNAMES.ORA in your DEV2K Home:
    # C:\ORAWINKS\NETWORK\ADMIN\TNSNAMES.ORA Configuration File:C:\orawinKS\NETWORK\ADMIN\tnsnames.ora
    # Generated by Oracle Net8 Assistant
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    MYORCL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = ORCL)
    null

  • Difference between Database, instance and schema

    Hi
    I don't know the clear difference between database, instance and schema.. In the broad sense, everything seems to be the same. If anyone can differentiate between them with some example, that will be of great help.
    Thank you.

    Hi,
    In Oracle, people often do use "database" and "instance" interchangeably, or together as one term: "database instance".
    A "schema" is quite different. A schema is a collection of objects (such as tables, indexes or procedures). Every object belongs to exactly one schema, and every schema is a part of exactly one database. (Names may not be unique, however. For example, your database may have one schema named SCOTT, and another schema named USER1. Each of those schemas may have a table named EMP. The EMP table in the SCOTT schema, or SCOTT.EMP, is not the same as the EMP table in the USER1 schema, or USER1.EMP. A different database, my database for example, may also have schemas called SCOTT and USER1, which are completely independent of the SCOTT and USER1 in your database.)

  • Difference between Database Mirroring and Cloning?

    Hi,
    Can anybody tell me the exact difference between Database Mirrorring and cloning?
    Is database mirroring and multiplexing same?
    Thanks
    Rajesh

    cannot be kept current automatically with the source database It is possible using manually scripted code to automatically update a cloned database to in effect build your own mirrowing process. This is basically a description of home grown Data Guard and is how many sites maintained a ready to use backup prior to Oracle introducing Data Guard.
    The best way to create a clone database today is probably to use the rman duplicate command.
    The clone could be the base for use with a mirrowing process you are setting up or used for other purposes such as providing a consistent frozen snapshot of production for special reporting. It could become the unit test or system test environment or perhaps be used for diaster recovery purposes.
    A clone is a one-time event. Mirrowing is an ongoing process.
    HTH -- Mark D Powell --

  • Difference between Database view and Table

    Hi there,
    Can anyone tell me the difference between Database view and Table.
    Will the Database view query be more faster than a database table?

    Tables and database views can be defined in the ABAP Dictionary.
    These objects are created in the underlying database with this definition. Changes in the definition of a table or database view are also automatically made in the database.
    Data from several tables can be combined in a meaningful way using a view (join).
    You can also hide information that is of no interest to you (projection) or only display
    those data records that satisfy certain conditions (selection).
    Database views implement an inner join. You only get those records which have an
    entry in all the tables included in the view.
    in views db modifications are not possible
    views only contain data at run time
    when they consult the database
    in case of views the join definitions are already sstored in the database itself
    whereas join as open sql is a query to oracle  database as similar select statements
    Views are optimized by SAP and stored in the repository while Joins
    are in reports that needs to be compiled at every execution
    Reward if helps
    Regards,
    Senthil
    Message was edited by: senthil kumar

  • Connection between SDM client and server is broken

    Dear All,
    First of all this is what I have
    -NW04 SPS 17
    -NWDS Version: 7.0.09 Build id: 200608262203
    -using VPN connection
    -telnet on port 57018 is succesfull
    I can login to SDM server (from NWDS and from SDM GUI) I can see the state of SDM(green light), restart it, can navigate through tabs in GUI, but every time I am trying to deploy an ear i have this error:
    Deployment exception : Filetransfer failed: Error received from server: Connection between SDM client and server is broken
    Inner exception was :
    Filetransfer failed: Error received from server: Connection between SDM client and server is broken
    I have already read a lot of topics,blogs,notes but didn't find the solution.
    Can anybody help me?
    Best Regards

    Having same issue. Nothing helped so far... Using NWDS 7.0 SP18.
    I have turned SDM tracing on and this is what I see on client side after sending first data package:
    com.sap.sdm.is.cs.cmd.client.impl.CmdClientImpl: debug "20120224140253 0280/17 Client: finished sending string part"
    com.sap.sdm.is.cs.cmd.client.impl.CmdClientImpl: debug "20120224140253 0280/0 Client: receive String part from Server"
    com.sap.sdm.is.cs.cmd.client.impl.CmdClientImpl.receiveFromServer(NetComm ..): Entering method
    com.sap.bc.cts.tp.net.NetComm.receive(): Entering method
    com.sap.bc.cts.tp.net.NetComm: debug "Method "receive(char[])" could not read all requested bytes. There are still 12 bytes to read"
    com.sap.bc.cts.tp.net.NetComm: debug "Caught IOException during read of header bytes (-1,          43):Connection reset"
    com.sap.bc.cts.tp.net.NetComm: debug "  throwing IOException(net.id_000001)"
    com.sap.bc.cts.tp.net.NetComm.receive(): Exiting method
    com.sap.sdm.is.cs.cmd.client.impl.CmdClientImpl: Exiting method
    com.sap.sdm.is.cs.cmd.client.impl.CmdClientImpl: debug "20120224140253 0281/1 Client: connection was broken"
    com.sap.sdm.is.cs.cmd.client.impl.CmdClientImpl: Exiting method
    com.sap.sdm.is.cs.cmd.client.impl.CmdClientImpl: debug "20120224140253 0281/0 Client: finshed sendAndReceive"
    com.sap.sdm.is.cs.cmd.client.impl.CmdClientImpl: Exiting method
    My connection on server is still active so I have to restart SDM server to reset and try it again.
    Anyone have idea whats happening?
    Edited by: skyrma on Feb 24, 2012 2:46 PM
    Edited by: skyrma on Feb 24, 2012 2:47 PM
    Edited by: skyrma on Feb 24, 2012 2:47 PM

  • (Trouble printing) Trouble with connection between Macbook Pro and Hp Deskjet 1510.

    Trouble with connection between Macbook Pro and Hp Deskjet 1510. (Nothing Prints).
    I have a Macbook Pro and am having difficulty printing documents from ‘Pages' from my Hp Deskjet 1510. I have installed the necessary software for the printer and it is connected via USB. Every time I try to print the printer icon comes up as it should, 'printing' and then 'job completed' and then the icon disappears. (Nothing is printed.) I thought it might be something to do with Pages compatibility with the printer but exporting the document to Word or making it a PDF doesn’t change anything. I don’t have Microsoft Word on my computer. The scanner does work and when I printed a ‘Test Page’ that worked too.
    Let me know if you know why this is happening.

    With these settings the network now works flawlessly, however, when i have my ethernet cable plugged in, my internet access via my airport card(on the macbook pro) is no longer available. Hoping you can tell me why this would be with this info i've provided.
    Educated guess. The networking devices have priorities as to which are used. The standard order is that Ethernet has a higher priority than Airport.
    While your Ethernet is unplugged it is inactive and the Mac ignores it. Once you plug it in, the Mac sees that it is active and switches traffic to that interface.
    I actually take advantage of this feature at home, but configuring my Airport and Ethernet with identical fixed IP addresses. Normally I'll use Airport, but if I'm copying a huge file and I want faster performance, I'll just walk my MacBook (previously iBook, previously Powerbook) over to my Ethernet switch and plug in my MacBook. Magically, the Mac detects that the Ethernet is active and continues the file transfer uninterrupted over the faster 100baseT Ethernet connection. When the transfer is finished, or if I really need to move back to the Comfy Chair, I unplug the Ethernet cable, and all activity reverts back to the Airport, all without disrupting any existing networking connections.
    You on the other hand have totally different settings for your Ethernet and your Airport, so when you switch to Ethernet, you basically loose your Airport connections.
    Something you can try:
    System Preferences -> Network
    Gear icon on the bottom left, next to the [+] [-] icons.
    Select *Set Service Order...*
    Now Drag the network interfaces into the perfer priority order you want. In this case put Airport above Ethernet.
    NOTE: You may want to create a new Network Location for this, instead of messing with your normal home Location (which is most likely the default Automatic. That way you have your original you can always fall back to.

  • Can't establish wireless connection between the printer and computer.

    I recently upgraded my wireless to an Apple AirPort Time Capsule. I'm able to set up the printer via USB cable. And I'm able to set up the printer on the network via the Airport WPA utility. However I cannot establish a wireless connection between the computer and the printer. When I go to the printers window  in my system prefereces, there is no wireless printer available to add in the "available printers" menu. Only the USB version printer is listed and of course when I disconnect the USB cable it shows as offline.I've tried all the fixes on HP's support pages. I've tried reinstalling the printer on both the router and the computer numerous times. The only thing I haven't done is reinstall the printer using the "Install Wizard" software that is supposed to come with the printer - (mine never came with it in the first place and of course HP doesn't have it available for download). And when I reset the printer to factory settings, then connect it to the computer via the USB, there is no installation software that pops up. Cant even find the **bleep** thing in "Finder". (I'm assuming that it should show up as some sort of external device.) I've checked to make sure both computer and printer are on the same network. (sometimes my computer will grab a connection with the next nearest network.) I've checked all the settings for the printer via the HTML configuration utility. I've even updated my Macbook software and restarted it multiple times. Note: the printer actually worked for a bit when I first switched routers, but the printer's wireless function went offline several times and then quit  altogether. Really frustrated that I bought another HP product thinking this time things would be different. HP is no help unless you want to pay $$ for a phone call. I'm about ready to take this thing out in the desert to use for target practice and never buy another HP product ever again.

    Hi , I saw your post regarding the problems you are having with your LaserJet Pro P1102w Printer not showing on your Macintosh computer. I may have found some resources for you. 
    I have a few questions for you, so I can offer some additional assistance:Before you upgraded to the Apple AirPort Time Capsule, was the printer working wirelessly without any issues?
    When you say; 'I reset the printer to factory settings', how where you trying to do this? 
    I found some instructions from this post: How do I reset my Laserjet p1102w to its defaults, copied here for you:
    To restore the printer back to factory settings, turn the printer off, hold down the wireless button and the cancel button (x button) then turn the printer back on and don't release the two buttons until the printer stops making noise. (When they say turn the printer off, I think they mean unplug the power cable.)
    "I've checked to make sure both computer and printer are on the same network."  Do you know if you are able to access the printers Embedded Web Server (EWS)?To access the EWS - Make sure that the Ready light () is on and that the printer is idle and silent.Press and hold the Cancel button (), and release it when the Ready light () begins blinking.The configuration page prints.Type the IP address or host name of the product in the address field of a supported Web browser, and then press Enter on your keyboardLet me know if this page loads 
    To answer a few more items you have listed:... When I go to the printers window in my system preferences, there is no wireless printer available to add in the "available printers" menu.This could be an issue with your print system, I recommend resetting the printing system and then Repair Disk Permissions - after that try to add the printer again.
    ... the "Install Wizard" software that is supposed to come with the printer - (mine never came with it in the first place and of course HP doesn't have it available for download)HP provides their software/drivers to Apple to be released through your Apple software updates. You can review this document on how to Install a Mac Printer Driver Using Apple Software Update. Which leads into your next point...
    ... there is no installation software that pops upWhen you connect the USB cable your mac may still recognize the printer software as being already installed - check for apple updatesOn the Mac, click the Apple menu (), and then click Software Update, or click About this Mac, and then click Software Update. A list of available updates displays.
    ... Not seeing the printer in "Finder" From what I understand most printers will not show in Finder unless you install a memory card into a supported port on certain printer models, only then will it read it like an external device. A few more things you can check are that the new settings in the Apple AirPort Time Capsule are setup to allow the printer to communicate. There are several of these settings listed in this document; Tips and Workarounds for Common Wireless Network Printer Issues.  HP regularly releases firmware updates that may also correct the problem you are experiencing. You can click on this link to Getting Printer Updates for HP LaserJet Pro P1102w Printer.  I did find 2 more documents that may offer some additional information as well;HP LaserJet Pro P1102w Printer - Connecting the Printer After Changing Your Wireless NetworkAn 'Unable to Find Printer' Error Displays for the HP LaserJet Pro P1102w Printer  Please let me know if any of these steps resolved your issue, or the details of what happened.  I look forward to hearing from you, hopefully with good news!   Thanks, 

Maybe you are looking for

  • SQL Query Help Needed

    I'm having trouble with an SQL query. I've created a simple logon page wherein a user will enter their user name and password. The program will look in an Access database for the user name, sort it by Date/Time modified, and check to see if their pas

  • Publishing a web album to an existing site (non MobileMe)

    I'm a complete newbie to iMac, and iWeb. I have an existing website to which I'd like to publish a photo gallery. Can I do this in iWeb? So far I can only see how to publish to a MobileMe site which I'm not interested in getting. Any help would be ap

  • HELP!  My iTunes playlists are missing.  I updated to 11.0.4

    I updated iTunes to 11.0.4 and all my playlists are missing.  I followed the advice on the iTunes website and it didn't work.  I am unable to set up NEW playlists also. HELP?  Anyone else have this problem with 11.0.4?  Thanks for any help.

  • [Solved] Determine font used to render a character with fontconfig?

    Hey guys, I was curious if there was a way using one of the fc-* fontconfig utilities (or another tool) to determine what font will render a specific glyph in the current configuration. For example, if I wanted to know what font would render the '├'

  • CS 5.  Will it work with Mac OS 10.10.1?

    Will it work with Mac OS 10.10.1?  If not what is the latest version of Mac OS it would work correctly with? The most recent version of the Mac OS is 10.10.1 (Yosemite).  Do not wish to update if it will affect my ability to use CS 5. Thanks,