HELP about How to connect with Database without JDBC ?

Hello all,
i have oracel8i database and my programe work fine with JDBC
but now
i want to connect my programe with database without using JDBC connection please any body tell me syntex for that,
Class.forName("oracle.jdbc.driver.OracleDriver");
databaseConnection = DriverManager.getConnection("??","arif","arif");
i have user arif in my database and my computer name is "ABCD"
Please help me,
i m thanksfull,
onlyforjava.

Thanks i try it,
url = "jdbc:oracle:thin:@ABCD:1521:" + sid;
connection = DriverManager.getConnection(url,"arif","arif");
but after that i got exception,
java.sql.SQLException: Protocol violation
Please help me,
i m thanksfull.
onlyforjava.

Similar Messages

  • How make connection with DataBase without define the my DataBase in ODBC

    hi ...... iam using odbc-jdbc to connect an simple DB so i defined my DB on ODBC ....how i can connect my DB without define it on ODBC ,or, do this defination by programmer not by user ........thanks

    after search >>u can do that by JDBC .if u connect your application with microsoft DBMS so u can download the driver free from microsoft.
    good luck

  • How to connect with database in JBuilder?

    Hi,
    I try to connect with database in JBuilder7, but the connection is failed. please tell me what is wrong? thanks!
    In connection tab:
    Driver: sun.jdbc.odbc.jdbcodbcDriver
    URL: jdbc:odbc:MS Access Database:h:\onlinestore\database\book.mdb
    Error:
    com.borland.dx.dataset.DataSetException: [Microsoft][ODBC Driver Manager] Data source name too long
    Jun

    URL: jdbc:odbc:MS Access Database:h:\onlinestore\database\book.mdbshould be jdbc:odbc:DBname:book.mdb

  • How to Connect Oracle Database without using TNS entry

    Hi,
    i need to connect Oracle Database server from my pc without using the TNS entry. How to do that?
    Regards,
    007

    You have marked the question as answered, so it means you can answer my questions:
    1.How do i check that i can make easy connect to the server or not, I mean is it configured on Server ?
    2.Can I make connection with easy connect without having Net Services software installed on the client ?
    3.What if I am not able to access sqlnet.ora ?
    4.Is there any difference in connect string, which is based upon OS for easy connect ?
    5.How do i use global database name, if it is configured ?
    6.What are pros and cons of using easy connect ?
    7....
    20....
    I think this are those 20 questions which John is talking about.
    Regards
    Girish Sharma

  • How to connect with database

    Hi All,
    i just finished BI installation 10.3.2 on 10g database. Can any one please inform me what steps i have to do more to access the 10g database by my BI application.
    I searched there is not sql*net or tnsname connection string in B I application.
    only jdbc connection, I don;t know what to enter where to enter for jdbc connection.
    All help will be appreciated.
    thanks
    A

    Hi A
    To confirm are you talking about the BI Publisher interface or the BIEE?
    If the former then pls check the user guide - there is help for setting up your connections to dbs via jdbc
    Regards
    Tim

  •   Could somebody help in "how to Connect to database" 

    I'm trying to connect to database and there's a messege appearing tells " ORA-12154: TNS: could not resolve service name", so please if does anybody know how to solve this problem to send me a solution on my email address ( [email protected])........... Thanks

    What client you are using to connect to the database??
    If you are using the database's own client that the above solution works.
    If you are using forms then you must set the tnsnames.ora of the forms that you are using, and not the database's.
    Forms6: %ORACLE_HOME%/Net80/ADMIN/tnsnames.ora
    Forms9 and above: %ORACLE_HOME%/NETWORK/ADMIN/tnsnames.ora
    Or for both cases you can use the net Configuration Assistance provided by Oracle which is a GUI interface of defining TNS Names.
    Regards,
    Tony Garabedian

  • How to connect with database 11g from jdk1.6

    Hi
    Actually i am a beginner to java, please provide some documents related to database connectivity and
    explain stepwise for connection to oracle database 11g using jdk1.6.
    Regards
    Dhabas

    Star with the [JDBC tutorial. |http://java.sun.com/docs/books/tutorial/jdbc/].
    LAter you should look up datasources and how to configure and use them.

  • [b]How can i connect with database(oracle 9i) from form developer at runtim

    Hi Friends,
    My problem is as follows, please show me a way.
    Let's asume, I have form (developed in 6i) which has database data block. Now, at form level a have assigned on_logon trigger and I have written the following PL/SQL statement in that trigger:
    begin
    null;
    end;
    So, when I run this form without connecting to database It does not prompt for a connection. Now I have button lebeled as "Connect" in this form, when user will click on it it will display a window having text boxes to enter user name, password and database name; once the user fill those text boxes and click on a button lebeled as "Ok" then the form runtime environment should be connected with database as per information provided by user. Here to mention that the user already been created, only the connection will be stablished. For example: I want to connect the form with database as "scott/tiger@oradata9i".
    To do this, what PL/SQL command statement should i write in that "OK" button's "when_button_pressed" trigger?
    If any of you know about this please help me.

    Hi
    I've answered this question already. If I understand you right, you can use 'LOGON' built-in of Forms. Take a look into documentation.

  • I am a OS10.7.4 user. yesterday i bought a Lacie external hard disk but error message appear said " You cant open the applicant LaCie setup assistant because PowerPC applicants are no longer support". please help me how to connect my mac with Lacie??

    i am a OS10.7.4 user. yesterday i bought a Lacie external hard disk but error message appear said " You cant open the applicant LaCie setup assistant because PowerPC applicants are no longer support". please help me how to connect my mac with Lacie??

    You do not need the Setup Assistant; in fact, you do not need any software on an external hard drive. I have two LaCie's; I erased the drive as soon as I plugged it in. You will need to format it anyway because most hard drives come Windows formatted. So, if you only want to use it with the Mac, highlight it in Disk Utility and choose Mac OS Extended (Journaled) as the format and the GUID Partition scheme under Options. While doing that, it will erase the drive (and get rid of the LaCie software) - once finished, your drive is ready to use for Time Machine or any other backup plans you have for it.

  • How to connect oracle database with JAVA

    how to connect oracle database with JAVA....
    using j2sdk and Jcreator . which connector to use .. what are the code for that ..

    PLEASE .... Ask in an Oracle Java forum.
    And read the documentaiton. There is a whole document devoted to doing that. http://download.oracle.com/docs/cd/B19306_01/java.102/b14355/toc.htm has examples.
    PLEASE ... do not ask product questions in a forum which clearly has a title saying it is devoted to assisting with download problems.

  • How to connect mySQL database with jdbc

    Who can tell me how to connect mySQL database with jdbc? Thanks

    http://onesearch.sun.com/search/developers/index.jsp?and=connect+mysql&nh=10&phr=&qt=&not=&field=title&since=&col=devforums&rf=0&Search.x=24&Search.y=16

  • How to connect MySql database with JSP

    Dear everyone,
    how to connect MySql database with JSP......

    It's too bad that nobody has ever asked this question before...

  • How to connect Access database Dynamically

    Hi,
    I want to make connection to Access database with java with dynamically. I know to make connect to database in the following way:
    This way, I go to setting->controlPanel->Administrative tools->ODBC & then i select database & i use following code"
    public void  databaseconnect(){
        try{
          Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
          connection =  DriverManager.getConnection("jdbc:odbc:student");
          output.append("Connection Successful\n");
        catch(ClassNotFoundException cnex){
          cnex.printStackTrace();
          output.append("Connection Unsuccessful\n"+cnex.toString());
        catch(SQLException sqlex){
          sqlex.printStackTrace();
          output.append("Connection unsuccessful\n"+sqlex.toString());
            catch(Exception ex){
              ex.printStackTrace();
              output.append(ex.toString());
    }But now i want to know the way to make connection to database dynamically. How this is possible? I want to make connection to database without selecting database from the Administrative tool? Is there anybody can help me?
    With regards
    Bina

    http://faq.javaranch.com/view?OdbcJdbcQuestions

  • How to Connect MySQL Database Through JTable?

    Hi,
    How to Connect MySQL Database Through JTable? anyone of u knows these concept please send me coding of that Part..
    Thanks,
    Guru..

    Start by reading the tutorials. There's a section on Swing which shows you how to use tables and a section on JDBC which shows you how to use SQL.
    And you can always search the forum as well since there are working examples of both posted on the forum.
    If you need further help with a specific problem then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.
    Don't forget to use the [Code Formatting Tags|http://forum.java.sun.com/help.jspa?sec=formatting], so the posted code retains its original formatting.

  • Datareader is not able to connect with database-Urgent

    Hi All,
    All of a sudden the Datareader component in my ML experiment is not able to connect with database with the following error:
    [ModuleOutput] DllModuleHost Error: 1 : Program::Main encountered fatal exception: Microsoft.Analytics.Exceptions.ErrorMapping+ModuleException: Error 0000: Internal error ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: The value's length for key 'password' exceeds it's limit of '128'.
    Module finished after a runtime of 00:00:00.2031339 with exit code -2
    Module failed due to negative exit code of -2
    It complains about the password being long-but the same credentials I have been using for the last 2 months and still able to use it to run sql queries on that same database using the management portal.
    It appears that Azure encrypts the password and that encrypted password is too long...just my guess after looking that the output.Inside Ml it just says as internal error
    Would appreciate if someone can point to the issue at the earliest...(There is a demo early next week)
    Subscription:Enterprise,
    LOCATION: East Asia
    Regards,
    Biswajit

    Hi,
    Please check this url:
    https://studio.azureml.net/Home/ViewWorkspace/bc85d4f81d2246c4b1430eb395229a3a?&hashSeg=#Workspaces/Experiments/Experiment/bc85d4f81d2246c4b1430eb395229a3a.f-id.11776ae4400f4c1aa9f58308c30810fa/ViewExperiment
    which is an experiment which I created doing save as of the experiment in which the data reader works.
    I stripped everything except the data reader and setup the rest of the components...I finally have to write the results back ,so also pulled a Writer component.
    Now,the data reader works fine..but the Writer fails:
    Error 0071: Incorrect username "acnadmin" or password is passed
    Strangely,its the same credentials set in the DataReader.
    Looks like all the DataInput/Output components created recently only have the problem.
    Once again,while the datareader in this case passes the password in plain text,the writer encrypts,hence fails.

Maybe you are looking for

  • DVI to Mini Display not working

    hi, i just bought an adapter to go from my DVI 24" VG2030 monitor into my macbook pro's minidisplay port. i've got everything connected and powered but nothing happens with the display. "detect display" seems to do nothing when i click it and merely

  • Bug report: ube_ipa: internal error when compiling with -xO5

    When compiling imlib2-1.1.2, one source file causes compilation to fail with the following error message: ube_ipa: internal error cc: ube_ipa failed for loader_tiff.c The command which fails is (probably wrapped): cc -DHAVE_CONFIG_H -I. -I. -I.. -I.

  • Low memory on iPad 2

    The diagnostics of my iPad 2 says that my iPad has low memory.however I have 21.5 GB available. Please help. Thanks

  • TFS 2012 Update 4 - Build Alert - "A build controller or agent's status changes" doesn't work correctly

    We are running TFS2012 Update 4 and have set up some build alerts.  The alert we have set up is "A build controller or agent's status changes".  When this alert is first set up the default filters which are included are for fields "Team Project" and

  • Database creation using backups files

    Hi, I would like to create a test database from backup of my production database. I am new to this task. Please correct me if I am wrong. in production server 1.Login as sysdba in the and issue "alter database backup controlfile to trace" command in