Ways to connect to database

Can someone plz provide ways we can connect to database in Java
thanks

http://java.sun.com/docs/books/tutorial/jdbc/index.html
http://java.sun.com/developer/onlineTraining/Database/JDBC20Intro/
love the [url http://java.sun.com/docs/books/tutorial]Tutorials.

Similar Messages

  • Hi guys Pls tell me a way to connect db4 database with jsp and which driver

    hi guys
    Pls tell me a way to connect db4 database with jsp and
    also tell me which driver i have to use
    also tell me how to connect with excel sheets

    take a look at the follwing links. There, you'll find all what you need :
    DB4:
    http://www.oracle.com/database/berkeley-db/je/index.html
    http://www.oracle.com/technology/products/berkeley-db/je/index.html
    http://www.oracle.com/database/berkeley-db/db/index.html
    http://www.oracle.com/database/docs/berkeley-db-je-datasheet.pdf
    Excel:
    http://64.18.163.122/rgagnon/javadetails/java-0516.html
    Hope That Helps

  • Connect Oracle Database with help of sql server storedprocedure

    Hii,
              Is there Any way to connect Oracle Database Using sql server storedprocedure.I want access oracle database and take some data and insert into my sql server database.so is there any way to connect in one
    stored procedure to connect oracle database and take some data and insert in to my sql server database.
    Nikunj Nandaniya

    Hello,
    I am getting below error when i kust Clic k on Test Connection in SSMS:
    TITLE: Microsoft SQL Server Management Studio
    The test connection to the linked server failed.
    ADDITIONAL INFORMATION:
    An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
    Cannot initialize the data source object of OLE DB provider "OraOLEDB.Oracle" for linked server "test".
    OLE DB provider "OraOLEDB.Oracle" for linked server "test" returned message "ORA-12154: TNS:could not resolve the connect identifier specified". (Microsoft SQL Server, Error: 7303)
    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.4000&EvtSrc=MSSQLServer&EvtID=7303&LinkId=20476
    BUTTONS:
    OK
    Can you please guide is there any other setting i need to do after install Oracle Client ?
    Best Regards,
    Tushar Malvi

  • Connecting Oracle DataBase through WebDynpro

    Hi,
    I created a Dynamic table, now I should display the data from Oracle Database. I tried in many various ways to connect to database, but the data is not retrieving.
    Can u explain the reasons and give necessary coding to retrieve the data.
    Its very very urgent.

    Hi
    I think you can do using the APIs provided by SAP.
    Check this link
    JDBC Reference
    or
    Try connectinc using lookup.
    try{
    InitialContext ctx=new InitialContext();
    javax.sql.DataSource ds=(javax.sql.DataSource)ctx.lookup("jdbc/SAPJ2EDB");
    java.sql.Connection con=ds.getConnection();
    java.sql.Statement stmt=con.createStatement();
    con.close();
    catch(Exception e)
    wdComponentAPI.getMessageManager().reportException("Exception "+e,true);
    Check this thread moreuseful.
    WebDynpro and Oracle Connection
    Please Check these threads
    Re: I need a j2ee code for getting data from oracle database
    Re: oracle connection
    Re: problem with displaying records from the database in a table ui element
    See this sample application and help
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/f0b0e990-0201-0010-cc96-d7ecd2e51715
    I hope these links will help u resolve your problem.
    All The Best
    Priyanka
    Do Reward Points

  • RMAN off line backup failed as unable to connect to database while databse

    Hi,
    I am facing below error while running offline rman backup:
    OS: HP-UX, Database : 11.1.7
    Issue:
    1. using simple shell script stopping the database then mounting it for rman backup (script is running from root)
    3. rman unable to connect to database then tried various ways to connect to database as bellow but no success:
    SQL> conn rman/rman@orcl
    ERROR:
    ORA-12537: TNS:connection closed
    while
    SQL> conn rman/rman as sysdba
    Connected.
    SQL>
    SQL> conn rman/rman
    ERROR:
    ORA-01033: ORACLE initialization or shutdown in progress
    Process ID: 0
    Session ID: 555 Serial number: 29
    Alert log tail:
    Setting recovery target incarnation to 2
    Successful mount of redo thread 1, with mount id 3261837737
    Database mounted in Exclusive Mode
    Lost write protection disabled
    Completed: ALTER DATABASE MOUNT
    This all goes fine if I just restart the database manually
    can some help me on this......
    Thanks

    user11993192 wrote:
    Hi,
    I am facing below error while running offline rman backup:
    OS: HP-UX, Database : 11.1.7
    Issue:
    1. using simple shell script stopping the database then mounting it for rman backup (script is running from root)
    3. rman unable to connect to database then tried various ways to connect to database as bellow but no success:
    SQL> conn rman/rman@orcl
    ERROR:
    ORA-12537: TNS:connection closed
    while
    SQL> conn rman/rman as sysdba
    Connected.
    SQL>
    SQL> conn rman/rman
    ERROR:
    ORA-01033: ORACLE initialization or shutdown in progress
    Process ID: 0
    Session ID: 555 Serial number: 29
    Alert log tail:
    Setting recovery target incarnation to 2
    Successful mount of redo thread 1, with mount id 3261837737
    Database mounted in Exclusive Mode
    Lost write protection disabled
    Completed: ALTER DATABASE MOUNT
    This all goes fine if I just restart the database manually
    can some help me on this......
    ThanksIn addition to the other comments (don't shut down the db yourself, just tell rman to do a cold backup and let rman handle the details) let me point out that trying to do any db related stuff as root is asking for all kinds of trouble. In fact, it is a general principle that root should never be used for anything that doesn't absolutely require root access. And orcle backups don't absolutely require root access.
    Bottom line is ... you must want to take this backup in the worst way possible, because that's exactly how you are going about it -- in the worst way possible. You really should spend some more time reading up on rman backups and revamp your entire approach to this problem.
    Edited by: EdStevens on Sep 25, 2011 11:38 AM

  • I want to know the ways of connecting 9iAS to Database and clients to database through 9iAS as middleware.

    My question was about the necessity of implementing OID or any other version of LDAP.
    We have a new 9iAS and 8.1.7 database implementation and i have a doubt about their networking architecture.
    I want to know the ways of connecting 9iAS to Database and clients to database through 9iAS as middleware. We are debating if OID is compulsory or if we can go ahead with this implementation with out OID.
    Can you please help me and provide me couple of implementation designs(i.e connecting clients to database through 9iAS). It would be great if any one can provide me the implementation's with and with out OID.
    -Thanks

    Hi ,
    For all delta and full DTP loads you can get  information in table  RSICCONT .Check table  RSMONICDP  this will give you detail information .Here you will get all the information with timestamp and request id .
    Hope these tables will serve your purpose .
    Regards,
    Jaya

  • Code to connect to database in  Webdynpro-- iviews

    Hi All-
    Could you let me know the code to connect to database
    in WebDynPro-->iviews.
    Regards,
    Cris

    Hi,
    Here are the two ways of connecting to a database through coding:
    ////1////
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
              java.sql.Connection conn= java.sql.DriverManager.getConnection("jdbc:microsoft:sqlserver://<IP>:<port>;user=<abc>;password=<xyz>;database=<DB name>");
    ////2////     
    InitialContext initialContext = new InitialContext();
    DataSource dataSource = (DataSource)initialContext.lookup("jdbc/SRI");
    java.sql.Connection conn = dataSource.getConnection();
    Regards
    Srinivasan T

  • HTTPS connection from database

    Hi all,
    I have to implement https connection from a database with a Web server which requests a client certificate. I have the certificate in the wallet, but UTL_HTTP does not send it to the Web server.
    So, is there any way to connect to a Web server which requires a client certificate?

    Could you explain how transport protocol influences certificate exchange during SSL session?

  • (Cisco Historical Reporting / HRC ) All available connections to database server are in use by other client machines. Please try again later and check the log file for error 5054

    Hi All,
    I am getting an error message "All available connections to database server are in use by other client machines. Please try again later and check the log file for error 5054"  when trying to log into HRC (This user has the reporting capabilities) . I checked the log files this is what i found out 
    The log file stated that there were ongoing connections of HRC with the CCX  (I am sure there isn't any active login to HRC)
    || When you tried to login the following error was being displayed because the maximum number of connections were reached for the server .  We can see that a total number of 5 connections have been configured . ||
    1: 6/20/2014 9:13:49 AM %CHC-LOG_SUBFAC-3-UNK:Current number of connections (5) from historical Clients/Scheduler to 'CRA_DATABASE' database exceeded the maximum number of possible connections (5).Check with your administrator about changing this limit on server (wfengine.properties), however this might impact server performance.
    || Below we can see all 5 connections being used up . ||
    2: 6/20/2014 9:13:49 AM %CHC-LOG_SUBFAC-3-UNK:[DB Connections From Clients (count=5)]|[(#1) 'username'='uccxhrc','hostname'='3SK5FS1.ucsfmedicalcenter.org']|[(#2) 'username'='uccxhrc','hostname'='PFS-HHXDGX1.ucsfmedicalcenter.org']|[(#3) 'username'='uccxhrc','hostname'='PFS-HHXDGX1.ucsfmedicalcenter.org']|[(#4) 'username'='uccxhrc','hostname'='PFS-HHXDGX1.ucsfmedicalcenter.org']|[(#5) 'username'='uccxhrc','hostname'='47BMMM1.ucsfmedicalcenter.org']
    || Once the maximum number of connection was reached it threw an error . ||
    3: 6/20/2014 9:13:49 AM %CHC-LOG_SUBFAC-3-UNK:Number of max connection to 'CRA_DATABASE' database was reached! Connection could not be established.
    4: 6/20/2014 9:13:49 AM %CHC-LOG_SUBFAC-3-UNK:Database connection to 'CRA_DATABASE' failed due to (All available connections to database server are in use by other client machines. Please try again later and check the log file for error 5054.)
    Current exact UCCX Version 9.0.2.11001-24
    Current CUCM Version 8.6.2.23900-10
    Business impact  Not Critical
    Exact error message  All available connections to database server are in use by other client machines. Please try again later and check the log file for error 5054
    What is the OS version of the PC you are running  and is it physical machine or virtual machine that is running the HRC client ..
    OS Version Windows 7 Home Premium  64 bit and it’s a physical machine.
    . The Max DB Connections for Report Client Sessions is set to 5 for each servers (There are two servers). The no of HR Sessions is set to 10.
    I wanted to know if there is a way to find the HRC sessions active now and terminate the one or more or all of that sessions from the server end ? 

    We have had this "PRX5" problem with Exchange 2013 since the RTM version.  We recently applied CU3, and it did not correct the problem.  We have seen this problem on every Exchange 2013 we manage.  They are all installations where all roles
    are installed on the same Windows server, and in our case, they are all Windows virtual machines using Windows 2012 Hyper-V.
    We have tried all the "this fixed it for me" solutions regarding DNS, network cards, host file entries and so forth.  None of those "solutions" made any difference whatsoever.  The occurrence of the temporary error PRX5 seems totally random. 
    About 2 out of 20 incoming mail test by Microsoft Connectivity Analyzer fail with this PRX5 error.
    Most people don't ever notice the issue because remote mail servers retry the connection later.  However, telephone voice mail systems that forward voice message files to email, or other such applications such as your scanner, often don't retry and
    simply fail.  Our phone system actually disables all further attempts to send voice mail to a particular user if the PRX5 error is returned when the email is sent by the phone system.
    Is Microsoft totally oblivious to this problem?
    PRX5 is a serious issue that needs an Exchange team resolution, or at least an acknowledgement that the problem actually does exist and has negative consequences for proper mail flow.
    JSB

  • How to find out number of connections to database?

    Hi,
    How can I find number of connections connected to the database 4 hours ago. For examply, if current time is 5PM and I want to see total number of connections connected to database (and from what user?) in between 1 and 2 PM, is there a way to find that out?
    I see v$session has a column MACHINE from which I can use count function to check the # of concurrent connections but I am not sure how to check the # of connections that happend few hours ago. Any suggestions?
    --MM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    you should have audit on .. and create logon trigger and make entry in the tabe ..that would give you .
    --Girish                                                                                                                                                                                                                                       

  • Need help in connecting to Database

    Hi,
    I have installed Oracle Database 10g Express Edition.I can connect to the standard hr schema (hr/hr) via both command line and SQL Developer. But when I installed Oracle DevSuite 10g today to work on Oracle reports builder,
    I can't connect to that by SQL*PLUS or inside any other application ,like reports.
    I get a ORA-12560 TNS Protocol adapter error.
    I have also looked up my tnsnames.ora file ; it has a working localhost entry.
    Please suggest a way to connect to it.Thanks.
    -RC

    ORA-12560 can mean that ORACLE_SID environment variable is not set at OS level on Windows.
    If this is not the case please see Testing and Troubleshooting Oracle Net Services http://download.oracle.com/docs/cd/B19306_01/network.102/b14212/part3.htm#i436520
    Edited by: P. Forstmann on 27 août 2011 10:52

  • Retrieve list of values w/o connecting to database

    How can I meet this requirements: Users don't have connection to database(no network connection). But, he needs to have the have the values retrived from the list of values in a dialog which are actually database values. I can imagine gaving a text file and retrive from there, but, I have no idea what to do if the list is huge. Text files wouldn't suffice. Any ideas on this.
    TIA.

    It's not so much lines as characters.
    I have used some fairly long XML files and still had descent performance. (It's been awhile, I can't remember the number of lines) The problem comes in when you have lots of levels
    ie
    <productList>
    <product>
    <sub1>
    <suba></suba>
    </sub1>
    </product>
    </productList>
    or there is a lot of text within the tags. I really haven't done any benchmarking, so I'm not sure what that many lines would do.
    Another possibility might be to use something like an MS Access db. That way the file could be local. You lose some code portability, if that's an issue. You also have to pay for MS Office licenses, if you don't have them. You'll get better speed performance from this option. However, I'm not sure that Access will handle that many rows.
    How's that for a bunch of options, but no clear cut answers?
    -Mike

  • PDA Application Connect to Database

    Hi,
    I want to develop application sit on PDA(like iPAQ) eg.Contact Manager (to keep personal contact). this require a database to keep all these information in the PDA so that can be retrieve.
    Its there any Micro-Database that can be installed into PDA (free?).
    Please show me the link to get this Installaler, JDBC and documentation.
    Please show me also the way to create database and table in PDA. and step to install this micro-db into the PDA.
    It would be more helpful, if someone can give me some simple example of a PDA Application connect to Database.
    Thanks in advance, Regards

    Open source one is :
    http://sourceforge.net/projects/hsqldb
    This one is not absolute free but the price is quite compelling.$995 for unlimited install.
    http://www.quadcap.com/home.html
    http://www.quadcap.com/purchase/index.html
    4. The rights granted pursuant to this Agreement are contingent upon Licensee's payment of the license fees for the QED Software. The License Fee for this Commercial Redistribution License is USD $995.
    Even SQL CE from MS is free, as long as you not use it connected to backend system. so if u could work out other sync implementation or u dont need data sync at all, this might be a choice too. The issue is no official JDBC driver for SQL CE though there is for SQL server.
    However, I have no hand on experience on those 3. We are evaluating Pointbase Micro, thought not free.l

  • Best way to connect CF10 DB Connection to FoxPro?

    In previous versions of CF this was a pain. Now in CF10 it seems even more so.
    I need to connect to a Microsoft Visual Fox Pro database from ColdFusion 10 running on Windows Server 2008 R2 64 bit edition.
    Can someone point me to a tutorial on how to get this working with a JDBC or ODBC (not likely) solution?

    Re: Best way to connect X-Fi elite pro to logitech z5500? ok after a long time i had some progress today finally . so i found out there is no DD or DTS encoder software coming for x-fi elite pro automatially and it has to be purchased from : http://buy.soundblaster.com/_creativelabsstore/cgi-bin/pd.cgi?page=product_detail&category=Software&pid=F 2222DDN6Z2H2ADDEZD
    after that u get the same output no matter u use optical, coax or analogue connection. so i pretty much now get the same result by using any of these connections.
    and finally this package is really usefull , actually way better than the drivers creative provides itself : http://forums.creative.com/t5/Sound-Blaster/SB-X-Fi-Series-Support-Pack-2-0-05-5-2009/m-p/527485
    i almost retured this soud card toda but after i could fix my problem, i start loving it again lol

  • Now that Garageband is on the iPhone, is there any way to connect a Korg nanoKey to it?

    The subject says it all - I'm wondering if there's any way to connect a Korg nanoKey to my iPhone 3GS running the current version of iOS.
    Thanks and have fun!

    It would take a significant amount of work as you would have to change the pages to PHP. You would also lose any more compatibility with Muse.
    An alternative would be to host with Adobe Business Catalyst and upgrade to the eCommerce hosting plan and do your database functions using Business Catalyst Web Apps. It is a bit of a learning curve but in my opinion the better option than hosting on third party hosting and trying to convert everything.
    Keep in mind that even if you change the pages to php to add mySQL connection this would all have to be done by hand or with Dreamweaver. Muse does not support Database connectivity or dynamic content. The only real practical workaround is to use Business Catalyst along with Muse.

Maybe you are looking for

  • How to transport the data contains in the table from development to product

    How to transport the data contains in the table from development to production. Please let me know ASAP.

  • JTable column headers missing

    I created a JTable using: JTable table = new JTable(v,cN); where v is my vector that holds the data and cN is a vector to hold the column names as below: Vector cN = new Vector();      cN.add("Registry Keys");      cN.add("Program Name");      cN.add

  • Custom InfoObject for date, problem with offset

    Hi all, I have a BEx reports presenting 0CALWEEK and another IO I created for dates. This IO has the same properties as 0CALWEEK (but it was not created as a reference of 0CALWEEK). In my report I'd like to use offsets for both IO's. It works perfect

  • Multiple destination tables, oracle sequence problems

    Hello, Please look at this sql - there is 2 steps to add data to 2 destination tables: - step1: INSERT INTO OBIEKTY (ID_OB, TELEFON, FAX, NR_LOKALU, UWAGI, ULICA, GEOM, NR_BUDYNKU, KOD_POCZTOWY, LISTA_OBIEKTOW, EMAIL, GMINA, NAZWA, WOJEWODZTWO, MIEJS

  • PDO Extension for DW CS4/5

    I have upload a basic PHP:PDO connection and Recordset Query creation extension for Dreamweaver to my web site - http://www.pziecina.com/design/dreamweaver/pdo_extension.php This is only a trial version for testing purposes, please read the documenta