Connection of java and oracle 10g express edition

hello!!!!!
I'm new to databases as well as JDBC. I want to know how to connect to oracle 10g express edition with java to create a desktop application.
Let me know step by step procedure if possible.....
Also tell me which softwares or drivers other than oracle 10g and jdk1.6 will be required......
Do i need to keep all the required softwares and drivers in the same folder???
please give any other information which is required for the connection
thank you!!!

hello!!!!!
I'm new to databases as well as JDBC. I want to know how to connect to oracle 10g express edition with java to create a desktop application.
Let me know step by step procedure if possible.....
Also tell me which softwares or drivers other than oracle 10g and jdk1.6 will be required......
Do i need to keep all the required softwares and drivers in the same folder???
please give any other information which is required for the connection
thank you!!!

Similar Messages

  • Difference Between Oracle Database 10g And Oracle 10g Express Edition

    Can any body Tell me What is The Difference Between Oracle Database 10g And Oracle 10g Express Edition.

    http://www.oracle.com/database/product_editions.html
    This link might help you.

  • Java Connection Pooling issue with Oracle 10g Express Edition

    Hello
    I have a Java based web application that uses the Oracle 10g Express Edition database. I am using a connection pool to get connections to the database.
    I use the NetBeans IDE and run my web application on the bundled Tomcat server(5.5.7) that comes with the IDE. Though when I initially run the application from the IDE, the connection pool is set up fine, when I recompile my java code and try to run the application again, I get the following error each time:
    Listener refused the connection with the following error:
    ORA-12516, TNS:listener could not find available handler with the
    matching protocol stack.
    The logs before the error shows up, indicate that the connection pool object is fine and gives me the number of available connections and the number of active connections and so on, which I have printed from the constructor of the Connection Pool class:
    For e.g.:
    Cache size = 17
    Available Connections = 17
    Cache Limit = 1000
    Active size = 0
    However, if I kill my Tomcat server process and run the application again, it works fine with no error.
    I looked around for possible causes and solutions and all I could find
    was increasing the processes parameter value in the init.ora file. I have increased the parameter value to from 100 to 20000 now, in increments of 500/1000 each time but it hasnt worked so far.
    Someone else suggested that I increase the size of my connection pool; I initially had it set to a minimum limit of 5, an initial limit of 10 and a maximum limit of 1000. However if I set the Initial Limit to anything above 17 connections, I see the following log on the Bundled Tomcat log and my application doesn't run at all:
    Log: Loading JDBC Driver : class=oracle.jdbc.driver.OracleDriver ...
    Log: Loaded JDBC Driver
    Log: Connection with URL=jdbc:oracle:thin:@localhost:1521:xe as username/password
    Error code not handled : 0
    Exception Message :java.sql.SQLException: Listener refused the connection with the following error:
    ORA-12519, TNS: no appropriate service handler found
    The Connection descriptor used by the client was:
    localhost:1521:xe
    // End of log
    And the Bundled Tomcat server automatically shuts down.
    Again the System.out statements from the Connection Pool class constructor show that the cache has been initialized and that currently there are free connections available in the pool.
    E.g.
    Cache size = 18
    Available Connections = 18
    Cache Limit = 1000
    Active size = 0
    Has anyone faced anything similar? Could someone please suggest what I'm doing wrong here and what I should do to set right this problem?
    Swetha

    hello, please pardon me, my english is basic. i do of my best. i had the same problem until reading the pdf documentation 2 days for java devvelloper.it is simple, follow this way.
    try {OracleDataSource ds;
         Connection conn;
      ds = new OracleDataSource();
      ds.setURL("jdbc:oracle:thin:@localhost");
      conn = ds.getConnection("userid","password");
    Statement stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
    don't forget to Dowload the user client of oracle Express Edition. do the rest of your program and it will work. take a look to the documentation pdf for java develloper. all it is explained.  good look                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Fedora Core 6 and ORACLE 10g Express Edition Problem

    Hello
    I have to following problwm
    I have installed Oracle XE in a machine that has FC 6
    I found that:
    1. Oracle is well installed on server
    2. Listener of Oracle is started (LSNRCTL) and doing status
    3. The host is configured setting my IP so ther is no problem of Host name (Also the same i did on Mandriva I had previously installed.
    4. The swap of the system is 1.7 GB so i think it is OK
    The problem is that when doing SQLPLUS kai login to "an idle instance" and doing
    "startup nomount" send an 00600 error keltnfy-lmdInit error.
    another problem is that the http access is disabled.
    Oracle setup was done by disabling SELinux.
    Any help?

    Searches on the net and Metalink for the keltnfy-lmdInit suggest there is a problem in the name resolution.

  • How can I uninstall Oracle 10g express edition(Western European).

    Hi
    I tried to install Oracle 10g express edition(Western European) in my laptop which is having windows vista home basic, but it was not installed properly so that I remove the related files in the program files, and i again tried to install Oracle 10g express edition(Universal) but it was not installed saying that already Oracle 10g express edition(Western European) edition was there and both Oracle 10g express edition(Western European) and Oracle 10g express edition(Universal) cannot co exist. can any help me regarding this one.........
    I need to install Oracle 10g express edition(Universal) now.

    Oracle XE can be uninstalled like other applications from Control Panel => Add/Remove Programs
    my laptop which is having windows vista home basicYour Vista version is not certified, as you can see in Oracle Certification Matrices ( Oracle Database is certified to run on the Business, Enterprise, and Ultimate editions of Microsoft Windows Vista ).

  • How to connect to ORACLE 10g Express Edition using struts?

    HI! There
    I am using Oracle Jdeveloper as IDE, JBoss as application server, Oracle 10G Express edition as DBMS. As I am new to Struts & Jboss, so Can anybody tell me that How to connect to Database? Please also give Struts-config.xml datasource config too.
    If someone can give a set of codes to enter and retrieve the data to/from database it will be really help full for me. Well connectivity with any version e.g. 9i, 10g, 10g XE will do......
    Thanks

    Well I have already configure a datasource in struts-config.xml as Stated below:
    <data-sources>
    <data-source>
    <set-property property="autoCommit" value="false"/>
    <set-property property="description" value="Data Source Config. for SMS"/>
    <set-property property="driverClass" value="oracle.jdbc.OracleDriver"/>
    <set-property property="maxCount" value="4"/>
    <set-property property="minCount" value="2"/>
    <set-property property="password" value="password"/>
    <set-property property="url" value="jdbc:oracle:thin:@127.0.0.1:1521:XE"/> <set-property property="user" value="sms"/>
    </data-source>
    </data-sources>
    Now the Only problem That I am facing is how to look up this data source from a Java file of Model layer.
    Please Guide me further

  • How to plugin oracle 10g express edition in Eclipse Java EE

    Hi guys,
    I have downloaded Eclipse Java EE and also downloaded Oracle 10g express edition. Please some one guide me how do I plugin the database in Eclipse and use DTP in Eclipse. I am new to Oracle and Java, Please help me.
    Thanks

    Hi,
    I have installed OEPE through Eclipse Update Manager for Eclipse Galileo 3.5. I have already installed oracle10g express edition and Appache tomcat 6.0 for web development.
    Now I have unlocked the hr user and following instruction from white paper to use OEPE
    http://www.oracle.com/technology/pub/articles/cioroianu-eclipse-jpa.html
    Now you can configure the database connection in Eclipse. Click Window > Show View > Other..., select Data Management > Data Source Explorer, and click OK. Right click Database Connections, click New, select Oracle Database Connection, enter the hr name for the connection, and click Next.
    Select Oracle Database 10g Driver Default, change the server name in the jdbc:oracle:thin:@localhost:1521:xe URL if necessary, enter the hr user name and its password, click Test Connection to verify that everything is correct, and click Finish
    But here when I tried to connect to the database, it give me error - Creating connection to New oracle database connection has encountered a problem
    Couldn't connect to New Oracle Database Connection.
    Error creating SQL Model Connection connection to New Oracle Database Connection.(Error: IO exception: The Network Adapter could not establish the connection)
    Io exception: The Network Adapter could not establish the connection
    Error creating SQL Model Connection connection to New Oracle Database Connection.(Error: IO exception: The Network Adapter could not establish the connection)
    Io exception: The Network Adapter could not establish the connection
    I know i am wrong some where, Please tell me where I am going wrong? Do I need to download and configure weblogic 10g first? Is this don't work with Apache tomcat server instead?
    Thanks
    Edited by: Jay Virk on 02-Oct-2009 04:36

  • Oracle 10g Express Edition and Forms 6i

    Hi,
    Need to know if Oracle 10g express edition supports forms 6i or not?
    Please advise.
    Thanks you very much.

    Thanks for the answers.
    Yes, XE universal does not work, but XE Western European does. I am having a hard time to configure Net8. The net configuration tools simply crash right away every time I try to run them. The sql*plus on form side crashes when I hit the connect button. The only thing that can run with no problem is form. I had to manually edit the tnsnames.ora file on form side, setting host=computer name and sid=XE. Tried many times until it worked.

  • Can i work with oracle 10g express edition by connecting it with visuval studio 2010?

    i have oracle 10g-express edition,and visuval studio 2010, can i have a connectivity between these two?or it requires any additional installations,or any special procedures for installing it? HELP ME..

    You might want to post this in the Oracle 10g XE support forum, where you might get a better response. The is is the support form for Oracle App Express..
    Thank you,
    Tony Miller
    Monroe, WA

  • Can not connect Oracle 10g express edition from report builder.

    I have newly installed report builder . Different home was selected for Report builder and oracle. Oracle database server is also in the same machine. But i am not able to connect my oracle 10g express edition database. It throws error ORA-12154 : TNS could not resolve service name.( same error displayed while trying to connect from SQL Plus).But from toad i am able to access the database. May be because here I am able to select the proper home.
    Here i am adding my tns entry
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 1ECA66A679AB494)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    can any one suggest what the actual problem is?
    Thanks ..........

    Hello,
    Oracle 10g XE is rather specific and, I'm not sure that you can upgrade it to 10.2.0.4 .
    However, Oracle published an Upgrade Guide for Oracle Express Edition but, it's limited to *10.2.0.3*:
    http://download.oracle.com/docs/cd/B25329_01/doc/server.102/b32391/toc.htm
    But be careful:
    Once you have upgraded to Oracle Database 10g, you cannot downgrade back to Oracle Database Express Edition.Hope this help.
    Best regards,
    Jean-Valentin
    Edited by: Lubiez Jean-Valentin on May 22, 2010 12:06 AM

  • Connecting oracle 10g express edition to jdeveloper

    I am having all kinds of problems connecting oracle 10g express edition with my jdeveloper 10.1.3.3. I can query the database from my command line so I know it is set up, but for whatever reason jdeveloper will not connect with it. When I try to connect with the database through jdeveloper here is the error I keep getting:
    Listener refused the connection with the following error:
    ORA-12518, TNS:listener could not hand off client connection
    The Connection descriptor used by the client was:
    localhost:1521:ORCL
    I have been all through the google results looking for an answer and have come to the conclusion that it is something with either the listerner file or the tns file, but as of yet have been unable to locate them. here are both of those files too.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (ADDRESS = (PROTOCOL = TCP)(HOST = ##########)(PORT = 1521))
    DEFAULT_SERVICE_LISTENER = (XE)
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = #########)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    Please any help would be appreciated I have been at this for days, thanks.

    This has to be some kind of bug with 10g express because I see lots of people having similar problems. I'm in the process of uninstalling 10g, and I will re-install it see if that makes a difference. Again if anyone has any other ideas please keep them coming because this is utter BS it shouldn't be this hard.

  • Issues during reinstallation Oracle 10g express edition and Forms 6i

    I've been racking my head over this issue for the past two three days. Exasperated, I tried searching in the forums but could not find a specific scenario like this.
    I am facing issues while trying to get forms 6i to work with oracle 10g Express edition
    i have windows XP home edition (installed service pack 2) and installed oracle 10g express edition as well as the oracle 10g express client and SQL developer on the same machine. The database started fine and I was able to use Enterprise manager.
    After that I tried installing Forms 6i and whatever i try i am not able to connect to the database from Forms though I was able to connect easily from SQL developer. I used to get the error 12154 "TNS:could not resolve service name"
    I dont know if Forms 6i expects the database connector string in some particular format. I searched on the net and found some people solved the issue by reinstalling the database software.
    My machine name was complex so I changed it as well and reinstalled the software. Again the DB was fine and connections were fine but no way I could get forms to connect to the DB. All the time
    I tried installing Forms to the same folder that Oracle express edition home in the hope that it might fix the problem. That only caused my database to crash. The oracle xe service shows as started but the Enterprise manager link does not work and it seems the database is down. I tried uninstalling and reinstalling client and server to no avail.
    Has anyone gone through such a situation and solved this ? Appreciate your help.

    The statement about XP Home is correct, but in this case I would say the initial problem (Forms and ORA-12154) is independent of that, it also happens in a supported environment. I think it's the old problem, a second Oracle home was installed, but tnsnames.ora containing the connect informations is located in the first home.
    Either tnsnames.ora is copied from to <Second_ORACLE_HOME>\network\admin or the environment variable TNS_ADMIN is set system-wide to <First_ORACLE_HOME>\network\admin.
    I think now it's necessary to create a clean machine (remove all Oracle components as explained in the database installation guide for Windows). Then repeat the installation , but XE and Forms 6i in different ORACLE_HOMEs.
    Werner

  • Installing and Running Oracle 10g Express Edition on Microsoft Vista

    My computer is running on Microsoft Vista.
    I downloaded Oracle 10g Express Edition for Vista.
    I ran the setup.exe. Everything went well there.
    But, when I open the SQLPlus program, a window prompts me to enter my username, password and host string.
    Can someone please tell me what it is expecting for these fields? I am using the same username and password I used to create my Oracle account.
    But what is the host string?
    Appreciate it.
    Thanks.

    This may help
    http://sites.google.com/site/delphibasics/home/delphibasicsarticles/installingoracledatabase10gexpresseditiononwindowsvista
    Check out the section "Access demonstration data"
    Also this is not the best place to post a question of this nature. This might be better :
    Database Installation
    Best Regards
    mseberg

  • Oracle 10g Express Edition - number of simultaneous connections

    Goodmorning,
    I'm goingo to test Oracle 10g Express Edition but I ned to know the max numbers of simultaneous connections it supports.
    Many thanks to all.

    Hi,
    >>Can you tel me how to increase this number in oracle 10g express???
    Just modifying the processes parameter is sufficient. The sessions parameter will be adjusted automatically.
    SQL> alter system set processes=200 scope=spfile;
    SQL> shutdown immediate
    SQL> startupFor more information, take a look at this [url http://forums.oracle.com/forums/thread.jspa?messageID=1672879&#1672879]thread
    Cheers
    Legatti

  • Backing up all data and objects of Oracle 10g Express Edition...

    Hi,
    I have tables, packages, views, procedures, etc. in Oracle 10g Express Edition, running on Windows XP. I would like to create a backup of the complete database (objects, relationships, all data, etc) into a file that I can restore in case the database crashes.
    What do I do?
    Thanks.

    markk2 wrote:
    I am actually using it for Production. Yes, I would need objects and data.I would suggest to look at the Standard Edition as well if you are using it for production.
    Is there a way to backup everything without data and then backup everything with data? Also, is there a way to restore everything without data and then restore everything with data?What's the meaning of "backup everything withiut data" and "then backup everything with data" ? The data is in the tables alone. The rest of the objects are not containing data but are using it, be it views, procedures etc. There is no such restore like without data. Without data, all what you would be getting would be structures of the tables which is going to be of no use. The export/import tool, is a simple tool which can put the tables (and other objects as well) along with their data in your dumpfile . In the situation of loss of a table, you can do an import from that dump file and you can restore the table back(with or without data, depends on the choice of yours while running Import command) . But this is just going to be a logical recovery of the object(s). For a complete database, it's better to use RMAN which would copy the datafiles and keep it with itself. Later, when you have a crash, you can restore those files to get teh database recovered. But if you want complete security, its better to put your db in the archive log and then do the backup along with the archive log files.
    HTH
    Aman....
    How to do this exactly? Thanks!

Maybe you are looking for

  • BDC for MB21

    Hello, Please help me with BDC for mb21 for multiple item System to sytem no of items display in MB21 screen varies & new items has to be entered further. For eg: if I have 30 items to be reserved. My MB21 screen is showing only 19 item, to reserve t

  • Preventing line breaks within field

    Hi, Some of my fields contain phrases that should stay together rather than break over a line. For example, one of my fields is a date field (e.g. 27 October 2009) and I'd liike the whole date field to stay together on one line. Is there any way to c

  • Officejet Pro 8600 N911a

    Howdy, first time post.  When I use the Printer Assistant and try to "Shop for Supplies Online" I get a "500 Internal Server Error"  Win7, 64 bit, Google Chromium 64 bit browser. I've  tried to manipulate the html file in App Data, but even if I can

  • ITunes not showing GET prompt next to gray podcast that have not been down loaded.  This is an subscribed to podcast.  I click on it and it will download ... but where is the GET icon

    Not seeing the GET icon in the podcast window along the shaded(gray) podcast names in the window containing a subscribed to podcast.  Now if I click on one of these podcast it will download.  Typical behavior was that I would see a handful of podcast

  • I've just about had it with Dock items disappearing...

    I'm getting more than a little ****** at icons disappearing from the Dock. I realize that I must be accidently dragging them off the dock, but is there ANY way to LOCK icons on the dock. A few minutes ago my "Mail" icon disappeard. I was able to make