Java Connect to Oracle database Made Easy

Ғылым және технология

Learn to write Java code that connects to Oracle database, insert a new row and get all rows from a table in Oracle database.
What you will learn:
- Create a table in Oracle Database XE using Oracle SQL Developer.
- Code the first Java project that connects to Oracle database express server, then insert a new row to a table. Use Oracle JDBC driver as a referenced Jar file in the classpath. Then close the connection
- Code the second project based on Maven. Make connection to Oracle database; get all rows from a table. Declare a Maven dependency for Oracle JDBC driver.
In addition, you will also learn:
- Understand how a Java program talks to a database server via JDBC API and JDBC driver.
- Understand Oracle JDBC driver (OJDBC): versions, database URL and driver types.
- Use Oracle SQL Developer tool to create a table with sequence and trigger for the primary column.
For text-based tutorial about Java Connect to Oracle database: www.codejava.net/java-se/jdbc...

Пікірлер: 66

  • @ruslan17050
    @ruslan1705019 күн бұрын

    Thank you very much! Perfect explanation with code example, helped me a lot! Wish all the best!

  • @CodeJava

    @CodeJava

    17 күн бұрын

    You are welcome! Glad it helped.

  • @galaxystardude538
    @galaxystardude5382 жыл бұрын

    Thank you! This was a great tutorial, very easy to follow!

  • @CodeJava

    @CodeJava

    2 жыл бұрын

    Glad it was helpful!

  • @trieutruong2410
    @trieutruong24102 жыл бұрын

    Great instruction, thanks for your effort.

  • @CodeJava

    @CodeJava

    2 жыл бұрын

    Glad it was helpful!

  • @user-fz3iu7ih6c
    @user-fz3iu7ih6c2 жыл бұрын

    Thank you very much! Special for resolve exceptions with JDBC driver

  • @CodeJava

    @CodeJava

    2 жыл бұрын

    You are welcome!

  • @julioprado3320
    @julioprado3320 Жыл бұрын

    thanks mate, it really worked for me!

  • @CodeJava

    @CodeJava

    Жыл бұрын

    you're welcome. Glad it helped :)

  • @ulyses1018
    @ulyses1018 Жыл бұрын

    thank you for this tutorial. I was able to perform on my own code and it works very easy. I will suscribe

  • @CodeJava

    @CodeJava

    Жыл бұрын

    Glad it helped!

  • @kimivanbay-an2352
    @kimivanbay-an23522 жыл бұрын

    thankyou this helps me even if im not a java developer

  • @CodeJava

    @CodeJava

    2 жыл бұрын

    glad it helped.

  • @sakthisakthi-wu4dt
    @sakthisakthi-wu4dt3 жыл бұрын

    Really I couldn't find any place this information , thanks

  • @CodeJava

    @CodeJava

    3 жыл бұрын

    Glad I could help:)

  • @klmbI
    @klmbI3 жыл бұрын

    My English is poor. I am using Intellij IDEA and and my DB. But still I did it. Thank you so much. I have not found this information anywhere else.

  • @CodeJava

    @CodeJava

    3 жыл бұрын

    Glad this video helped. Are you from Russia?

  • @sakthisakthi-wu4dt
    @sakthisakthi-wu4dt3 жыл бұрын

    I have subscribed your channel and expecting more videos

  • @CodeJava

    @CodeJava

    3 жыл бұрын

    thank you, bro!

  • @thepunisher3141
    @thepunisher31414 жыл бұрын

    thank you bro, ramadan karim

  • @CodeJava

    @CodeJava

    4 жыл бұрын

    You're welcome. Glad it helped. Why don't subscribe?

  • @ephraimzachariah5921

    @ephraimzachariah5921

    3 жыл бұрын

    pro tip: watch movies at kaldroStream. I've been using them for watching all kinds of movies during the lockdown.

  • @davisconner240

    @davisconner240

    3 жыл бұрын

    @Ephraim Zachariah definitely, been using Flixzone} for months myself :D

  • @priyathakurl0712
    @priyathakurl07122 жыл бұрын

    thanku so much! this vedio has solve my problem.

  • @CodeJava

    @CodeJava

    2 жыл бұрын

    Happy to help

  • @sakthisakthi-wu4dt
    @sakthisakthi-wu4dt3 жыл бұрын

    Please create more videos how to fetch particular record at run time and particular column value write into excel sheet .

  • @CodeJava

    @CodeJava

    3 жыл бұрын

    For writing data from database to Excel, I recommend you to check this tutorial: www.codejava.net/coding/java-code-example-to-export-data-from-database-to-excel-file

  • @mpvishnuprakash1515
    @mpvishnuprakash15152 жыл бұрын

    I am getting java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist But i have created emp table is oracle sql

  • @wahyudifirdaus4061
    @wahyudifirdaus40614 жыл бұрын

    good job 👍

  • @CodeJava

    @CodeJava

    4 жыл бұрын

    Thank you! Cheers!

  • @sakthisakthi-wu4dt
    @sakthisakthi-wu4dt3 жыл бұрын

    Create some videos how to write database particular cell data in Excel file and selenium automation testing with Java videos .

  • @CodeJava

    @CodeJava

    3 жыл бұрын

    Noted.

  • @BoburLatipov
    @BoburLatipov3 жыл бұрын

    thank you

  • @CodeJava

    @CodeJava

    3 жыл бұрын

    You're welcome. Glad it helped. Subscribed?

  • @sakthisakthi-wu4dt
    @sakthisakthi-wu4dt3 жыл бұрын

    How to fetch particular column cell value and how to validate database record data in eclipse

  • @CodeJava

    @CodeJava

    3 жыл бұрын

    I think you will find this video helpful: kzread.info/dash/bejne/Y6R1mJZmltLPqps.html

  • @clintonpiercy6651
    @clintonpiercy66512 жыл бұрын

    Nice an easy tyvm

  • @CodeJava

    @CodeJava

    2 жыл бұрын

    Glad it helped.

  • @prabeshrai7060
    @prabeshrai70604 жыл бұрын

    Sir while modifying program, i got error "ORA-01008: not all variables bound" Please help me.

  • @CodeJava

    @CodeJava

    4 жыл бұрын

    Hmm. I have no idea about that error.

  • @robertb5357
    @robertb53574 жыл бұрын

    For the past week, I am unable to clear the error " ORA-00942: table or view does not exist". I have followed the exact same procedures via the tutorial.

  • @CodeJava

    @CodeJava

    4 жыл бұрын

    perhaps you are connecting to the wrong database, or using wrong table name.

  • @robertb5357

    @robertb5357

    4 жыл бұрын

    @@CodeJavaThanks for your response. I figured out the problem. The SQL Developer prefers the table names to be in all CAPS.

  • @robertb5357

    @robertb5357

    4 жыл бұрын

    @@CodeJava Can I ask one more question? Why does one needs to create a new Maven dependency project and class to extract all rows from a table? I was able to write a method in the initial project class and extract the table data?

  • @CodeJava

    @CodeJava

    4 жыл бұрын

    @@robertb5357 because it is essential to code a program/app that needs to get information from a database.

  • @yazilimportali6431
    @yazilimportali6431 Жыл бұрын

    Thanks

  • @CodeJava

    @CodeJava

    Жыл бұрын

    Welcome

  • @levantai9918
    @levantai99183 жыл бұрын

    great bro

  • @CodeJava

    @CodeJava

    3 жыл бұрын

    Thank you so much 😀

  • @shine5521
    @shine55214 жыл бұрын

    I m facing prblem while using Sql developer tool i am not able to expand my connection nor can see the query results does someone know what can be the possible reason?

  • @CodeJava

    @CodeJava

    4 жыл бұрын

    Did you provide username and password to connect? It's probably the credentials are invalid.

  • @rodgervinsmoke8220
    @rodgervinsmoke822010 ай бұрын

    I downloaded the.jar file. But I dont know how t include it in my eclipse workspace

  • @CodeJava

    @CodeJava

    10 ай бұрын

    go to project properties > Java Build Path > Libraries > add your .jar file.

  • @DineshKumar-ip7yb
    @DineshKumar-ip7yb4 жыл бұрын

    If the voice over is precise and clear this would be an great tutorial

  • @shadabahmad931
    @shadabahmad931 Жыл бұрын

    Still I'm getting "java.sql.sqlsyntaxErrorEcception: ORQ-00942:table or view does not exist " This error please help me resolve this I'm stuck on this problem for last 3-4 days

  • @CodeJava

    @CodeJava

    Жыл бұрын

    check typos and table name your SQL statement.

  • @HmongMovie1
    @HmongMovie13 жыл бұрын

    I don't understand why you use Maven, can you explain please?

  • @CodeJava

    @CodeJava

    3 жыл бұрын

    Maven is very useful when your project requires many external libraries (dependencies) as it manages the dependencies for you.

  • @DharmendraKrGupta-ts8lj
    @DharmendraKrGupta-ts8lj2 жыл бұрын

    Sir, I am using ubuntu then how can i used jdbc please tell to me

  • @CodeJava

    @CodeJava

    2 жыл бұрын

    did you follow this video? what did you try? The steps to use JDBC is as same as on Windows.

  • @DharmendraKrGupta-ts8lj

    @DharmendraKrGupta-ts8lj

    2 жыл бұрын

    @@CodeJava thank you sir

  • @ongpytran4552
    @ongpytran45523 жыл бұрын

    anh là người việt đúng k :v?

  • @CodeJava

    @CodeJava

    3 жыл бұрын

    đúng rồi em.

  • @ayushitaya7804
    @ayushitaya7804 Жыл бұрын

    very useful!!!!

  • @CodeJava

    @CodeJava

    Жыл бұрын

    Glad it was helpful!

Келесі