Home
Search results “Jdbc oracle sql exception”
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
 
03:55
complete tutorial for beginner to Connect Java Application with Oracle database through jdbc
Views: 29670 alam jamal
Oracle Database Tutorial 70: IO ERROR: The network adapter could not establish the connection
 
03:34
IO ERROR: The network adapter could not establish the connection Learn how to solve this Oracle Database / SQL Developer Error with in 4 minutes ------------------------------------------------------------------------ ►►►LINKS◄◄◄ Blog : http://bit.ly/sql-developer-error-the-network-adapter-could-not-establish-the-connection Previous Tutorial ► Intersect and Minus SQL set operators https://youtu.be/sDZFpwEw1k8 ------------------------------------------------------------------------- ►►►Let's Get Free Uber Cab◄◄◄ Use Referral Code UberRebellionRider and get $20 free for your first ride. ------------------------------------------------------------------------- ►►►Help Me In Getting A Job◄◄◄ ►Help Me In Getting A Good Job By Connecting With Me on My LinkedIn and Endorsing My Skills. All My Contact Info is Down Below. You Can Also Refer Me To Your Company Thanks ------------------------------------------------------------------------- Copy Cloud referral link || Use this link to join copy cloud and get 20GB of free storage https://copy.com?r=kb4rc1 -------------------------------------------------------------------------- ►Make sure you SUBSCRIBE and be the 1st one to see my videos! -------------------------------------------------------------------------- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ►►►Find me on Social Media◄◄◄ Follow What I am up to as it happens on https://twitter.com/rebellionrider https://www.facebook.com/imthebhardwaj http://instagram.com/rebellionrider https://plus.google.com/+Rebellionrider http://in.linkedin.com/in/mannbhardwaj/ http://rebellionrider.tumblr.com/ http://www.pinterest.com/rebellionrider/ You can also Email me at for E-mail address please check About section Please LIKE and SHARE my videos it makes me happy. Thanks for liking, commenting, sharing and watching more of our videos This is Manish from RebellionRider.com ♥ I LOVE ALL MY VIEWERS AND SUBSCRIBERS
Views: 163383 Manish Sharma
java.sql.SQLException: No suitable driver found for jdbc
 
01:58
Funciona para Netbeans , Eclipse
Views: 28841 n3x4 n3x4r
JAVA JDBC tutorial for beginners   SQL Exceptions 05
 
07:14
Welcome to Java JDBC Course in which i will teach you how to use databases within java application. throughout this course we will use mysql database manager. you can download Jdbc driver form mysql.com . Database Link : https://www.dropbox.com/s/t6y55p2lom9e2bg/school.sql?dl=0 These are the technologies are covered in this Course : JavaFx Java JDBC using MySQL/Connecting MySQL jdbc MySQL JavaFx tutorial MySQL JavaFx create database MySQL JavaFx example connect to MySQL database JavaFx MySQL maven JavaFx embedded database MySQL database Statement in java jdbc PreparedStatement in java jdbc Resultset in java JDBC Let's Connect : Twitter: https://goo.gl/9rmbxI Youtube: https://goo.gl/mmFkgB GooglePlus: https://plus.google.com/u/1/+AwaisMirza1 Snapchat:Add me on Snapchat! Username: mirzaawais https://www.snapchat.com/add/mirzaawais Follow Umair : Facebook: https://www.facebook.com/umair.jameel.904 Business enquiry : [email protected]
Views: 1172 Awais Mirza
ClassNotFoundException oracle jdbc driver OracleDriver in Eclipse
 
13:23
If your Eclipse editor not found ojdbc14.jar file path..then you can do this procedure....it will solve your ClassNotFoundException in your JDBC Application in Eclipse...
Views: 15075 SIVA KRISHNA KASTURI
JAVA: How to make connection between JDBC and Oracle database(Using Type 4 Driver)
 
15:14
class forname oracle jdbc oracledriver code for connecting database in java code for database connectivity in java code for jdbc connection code for jdbc connection in java code to connect to database in java code to connect to oracle database in java com oracle jdbc driver connect database in java connect database java connect database oracle connect database to java connect java to database connect java to oracle connect java to oracle database connect jdbc connect oracle database connect oracle database in java connect oracle database java connect to a database java connect to database java jdbc example with oracle jdbc for oracle jdbc for oracle 10g connect java to oracle java oracle connection example java oracle database connection example oracle java connection oracle jdbc driver oracledriver oracle jdbc url
Views: 45253 Programming Lifestyle
jdbc : apache tomcat & mysql : java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
 
03:22
how to fix jdbc : apache tomcat & mysql : java.lang.ClassNotFoundException: com.mysql.jdbc.Driver, javax.servlet.ServletException: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
Views: 9430 Safaa Al-Hayali
10 JAVA JDBC DataBases  Error handling
 
08:42
تم رفع اكواد على الرابط التالي : https://www.dropbox.com/s/5a5g812jv820a8w/BDjava.zip?dl=0
Views: 1473 Muhammed Essa
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
 
03:28
How to resolve java.lang.ClassNotFoundException: com.mysql.jdbc.Driver error? In this video tutorial I have explained you the reason of the java.lang.ClassNotFoundException: com.mysql.jdbc.Driver error and also explained you how to resolve the error? The error java.lang.ClassNotFoundException: com.mysql.jdbc.Driver comes in a Java application when there is no MySQL JDBC driver present in the application. View the complete details of the tutorial at http://www.roseindia.net/jdbc/javalang-ClassNotFoundException-com-mysql-jdbc-Driver.shtml
Views: 101323 Deepak Kumar
JDBC DRIVER ISSUE(ERROR) SOLVE :- Class.forName("com.mysql.jdbc.Driver"); class not found exception
 
04:49
Hit like button and share the video subscribe and comment #Anandgutte. ..... support..... Don't click this 👉 https://goo.gl/MPdLmd Basically in this video I am going to solve your JDBC driver error that is class not found error For that error solution you need j connector present in your tomcat lib folder follow the steps in video and successfully solve you error Hit Like if this video solves your problem thanks for watching my video don't forget to sub my channel and comment down it's working Thank You!!! subscribe 👉https://goo.gl/MPdLmd Check my channel 👉https://goo.gl/Dn1D4a JDBC Connector J👉https://dev.mysql.com/downloads/connector/j/5.1.html Check my other content about coding in smartphone: 👉https://youtu.be/vUlv_mFEVAw Check my most Recent Upload 👉https://goo.gl/pFxVPe Check my Most Popular Upload 👉https://goo.gl/oVoX9J share** Support** Comment** Like** Don't Forget to subscribe** **************************************** Join me on : - Instagram : -https://goo.gl/6djvW2 Facebook : -https://goo.gl/mg81ip Twitter : - https://goo.gl/g1wQh7 Google+ : - https://goo.gl/4VPfnq About Anand Gutte channel :- It is a educational channel about progmming languages c cpp Python java and many other things technology in daily life #JDBC #Driver
Views: 577 Anand Gaming
how to set classpath for jdbc driver
 
02:32
how to set the classpath in java for jdbc programs in windows
Views: 45549 www.itsoftpoint.com
SQL Error ORA-00942 Table or View Does Not Exist in Oracle Database
 
05:03
How to use Tab View (Data Dictionary) of Oracle Database to solve the SQL Error ORA-00942 Table or View Does Not Exist error in Oracle Database ------------------------------------------------------------------------ ►►►LINKS◄◄◄ Blog: http://bit.ly/ora-00942 Previous Tutorial ► ------------------------------------------------------------------------- ►Make sure you SUBSCRIBE and be the 1st one to see my videos! ------------------------------------------------------------------------- ►►►Find me on Social Media◄◄◄ Follow What I am up to as it happens on https://twitter.com/rebellionrider http://instagram.com/rebellionrider https://plus.google.com/+Rebellionrider http://in.linkedin.com/in/mannbhardwaj/ ___Facebook Official Page of Manish Sharma___ https://www.facebook.com/TheRebellionRider/ ___Facebook Official Page of RebellionRider.com___ https://www.facebook.com/RebellionRider.official/ You can also Email me at for E-mail address please check the About section Please please LIKE and SHARE my videos it makes me happy. Thanks for liking, commenting, sharing and watching more of our videos This is Manish from RebellionRider.com ♥ I LOVE ALL MY VIEWERS AND SUBSCRIBERS
Views: 8255 Manish Sharma
How to use type 4 jdbc driver in eclipse(oracle 11g or 10g)
 
03:06
This Video shows you "How to use type 4 jdbc driver in eclipse(oracle 11g or 10g)" ---------------------------------------------------------------------------------- Before you do this you should have ------------------------------------------------------ (1) Oracle 11g or 10g installed in your pc (2) Eclipse installed in your pc (3) Write the jdbc program (4) Execute the query in SQL Prompt that you are used in your jdbc program --------------------------------------------------------------------------- STEPS 1. Before running the jdbc program, just in case make sure the query executes correctly 2. write the program( i will provide the jdbc program code below) 3. go to Eclipse 4. 'Right Click' on JRE System Library(Build path --~ Configure Build path--~ Add External Jars--~ *choose ojdbc 6 jar -----C:\oraclexe\app\oracle\product\11.2.0\server\jdbc\lib---- (just search for ojdbc6 jar in oracle path or (oraclexe) path) 5. click open 6. click Apply 7. click Apply and close --------------------------------------------- sample jdbc type 4 driver program to execute --------------------------------------------- package com.nt.jdbc; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.Scanner; public class FourthDriver { public static void main(String[] args) { Scanner sc=null; String user=null,pass=null; Connection con=null; ResultSet rs=null; Statement st=null; String query=null; int count=0; try { sc=new Scanner(System.in); if(sc!=null) { System.out.println("Enter Username: "); user=sc.nextLine(); System.out.println("Enter password: "); pass=sc.nextLine(); } user="'"+user+"'"; pass="'"+pass+"'"; Class.forName("oracle.jdbc.driver.OracleDriver"); con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","system","manager"); if(con!=null) st=con.createStatement(); /*SELECT COUNT(*) FROM USERLIST WHERE UNAME='jaya' AND PWD='123';*/ query="SELECT COUNT(*) FROM USERLIST WHERE UNAME="+user+" AND PWD="+pass; System.out.println(query); if(st!=null) rs=st.executeQuery(query); if(rs!=null) { if(rs.next()) count=rs.getInt(1); System.out.println(count); } if(count==0) System.out.println("Invalid Credentials"); else System.out.println("Valid Credentials"); }//try catch(SQLException se){ se.printStackTrace(); System.out.println("Record insertion failed"); } // catch(ClassNotFoundException cnf){ // System.out.println("Record insertion failed"); // cnf.printStackTrace(); // // } catch(Exception e){ System.out.println("Record insertion failed"); e.printStackTrace(); } finally { try { if(rs!=null) rs.close(); }catch(SQLException se) { se.printStackTrace(); } try { if(st!=null) st.close(); }catch(SQLException se) { se.printStackTrace(); } try { if(con!=null) con.close(); }catch(SQLException se) { se.printStackTrace(); } try { if(sc!=null) sc.close(); }catch(Exception se) { se.printStackTrace(); } }//finally }//method }//class ---------------------------------------------------------------------- ask in comments if you have any doubts ---------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------- Visit www.99techbuzz.com for more Articles like this Video :) ________________________________________________________________ Subscribe to the Channel http://www.youtube.com/channel/UCndUIPHik4T497b2sC_A6sw?sub_confirmation=1 ---------------------------------------------------------------------------------------------------------- For more tips and tricks like The Facebook Page https://www.facebook.com/99techbuzz/ ----------------------------------------------------------------------------------------------------------
Views: 714 99TechBuzz
JDBC and Database Connectivity
 
14:14
// To retrive data from database package com.anwari.jdbc; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; public class Test { public static void main(String[] args) { Connection con = null; Statement st = null; ResultSet rs = null; try { Class.forName("oracle.jdbc.driver.OracleDriver"); //create connection obj con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system", "manager"); //create Statement object st = con.createStatement(); //create resultset object rs = st.executeQuery("Select pno ,pname,price from product "); while(rs.next()) { System.out.println("Product ID "+rs.getString(1)+" Product Name "+rs.getString(2)+" Product Price "+rs.getDouble(3)); } } catch (ClassNotFoundException | SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); } if(rs!=null) { try { rs.close(); } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); } } if(st!=null) { try { st.close(); } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); } } if(con!=null) { try { con.close(); } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } }
Views: 334 AfghanCoders
the network adapter could not establish the connection oracle
 
02:57
Hi Friends, This video i am going to show how to solve "the network adapter could not establish the connection oracle" Please Subsribe my channel:https://www.youtube.com/channel/UCEWY9zMRyieD27sL7Bac6-g please follow in faceBook:https://www.facebook.com/gangapatnam.anil.5 Jdbc Tutorials:https://www.youtube.com/watch?v=6H8akL-qGkk&list=PL3177GweV25A04wH3BjYrMVlGbOOtN7kP spring Mvc Tutorial:https://www.youtube.com/watch?v=auMXfLVn9Ck&list=PL3177GweV25DoBIL3nfwaLTbcbWZ8tMbs Restful Tutotail:https://www.youtube.com/watch?v=QIJt0-O3u_Q&list=PL3177GweV25B8ygrJtJTQtnrWPwNClShP
Views: 17929 Gangapatnam Anil
Crear Pool de Conexion GlassFish Server (Mysql-Oracle)
 
10:47
Vídeo tutorial de como crear pool de conexión GlassFish Server Solución Error class java.lang.RuntimeException Comandos Oracle y Mysql asadmin.bat create-jdbc-connection-pool --datasourceclassname com.mysql.jdbc.jdbc2.optional.MysqlDataSource --restype javax.sql.DataSource --property "portNumber=3306:serverName=localhost:DatabaseName=oms:password=123456:user=root:url=jdbc\\:mysql\\://localhost\\:3306/oms\\?zeroDateTimeBehavior\\=convertToNull" MysqlPoolConexion asadmin.bat create-jdbc-resource --connectionpoolid MysqlPoolConexion jdbc/mysqlCon asadmin.bat create-jdbc-connection-pool --datasourceclassname oracle.jdbc.pool.OracleDataSource --restype javax.sql.DataSource --property user=jacabarcas:password=123456:url="jdbc\:oracle\:thin\:@localhost\:1521\:XE" OraclePoolConexion asadmin.bat create-jdbc-resource --connectionpoolid OraclePoolConexion jdbc/oracleCon Solución Error (HTTP Status 500 - Internal Server Error type Exception report messageInternal Server Error descriptionThe server encountered an internal error that prevented it from fulfilling this request. exception java.lang.IllegalStateException: getOutputStream() has already been called for this response note The full stack traces of the exception and its root causes are available in the GlassFish Server Open Source Edition 4.1.1 logs.)
ORA-12505: TNS:listener does not currently know of SID given in connect descriptor
 
06:44
This video will show you How to fix "MSVCR100.dll missing from your computer" error which comes for various application when you try to run the application like Visual studio 2008, 2010 or 2012, wamp or php server, some popular games etc. Follow the steps that i have showed in this video. For that i have used the following link to download MSVCR100.dll file. Use this link to download the dll file http://jhelioviewer.org/libjhv/Microsoft.VC100.CRT-x86-32/msvcr100.dll
Views: 55317 Bangalore Techie
How to Resolve Oracle SQL Parent Key Not Found (ORA-02291)
 
05:49
In this video, we’ll explain what the ORA-02291 “parent key not found” error is, see an example, and look at how to resolve it. This error usually happens when we try to insert data into a table. It looks like this: Error is: ORA-02291: integrity constraint (constraint_name) violated - parent key not found So what does this error mean? It means we’re trying to insert data into a child table, and there is no related record in the parent table. If a foreign key has been set up to enforce this relationship, there needs to be a parent to insert a child that refers to it. Watch the video to see an example of this error as well as how to resolve it. For more information on Oracle SQL, refer to the Database Star website here: https://www.databasestar.com/
Views: 4225 Database Star
java.lang.ClassNotFoundException: com.mysql.jdbc:Driver-[Solved]
 
03:14
Download the Source Code of the project here http://chillyfacts.com/java-program-to-connect-to-mysql-database/ Solution for ClassNotFoundException-How to add jar file in eclipse java project http://chillyfacts.com/how-to-add-jar-file-in-eclipse-java-project/ Mysql connector jar download http://chillyfacts.com/mysql-connector-jar-download/ How to install Mysql DataBase https://www.youtube.com/watch?v=izNdC8ekzE8 Best Mysql Client for Windows https://www.youtube.com/watch?v=TaDn1vOTCLk ------------------------------------ Exception java.lang.ClassNotFoundException: com.mysql.jdbc.Driver at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:169) at Simple.MyProg.main(MyProg.java:15)
Views: 17180 jinu jawad m
Java Oracle Connection Part1
 
05:06
How to Connect Oracle database to Java Java Oracle Connection Part2 at : http://youtu.be/T_DceKcyBJg download Link : http://www.mediafire.com/download.php?grgdh35vzlcyivj has "jar file" + "SQL class" + "pdf show steps"
Views: 45760 Abdelrahman Hassan
Java trouble shooting - JDBC - Parameter index out of range
 
03:35
This video shows the cause and solution to the error Parameter index out of range when dealing with JDBC.
Views: 4445 Jaret Wright
JSP with Oracle Database connection || Registration Page Example
 
22:17
In this video I have shown How to design Registration form in html and then how you can connect this form with JSP to store the form data into oracle database Pre-Requirement ------------------- 1. JDK (10.0.2) 2. Oracle Database (11g) 3. Apache Tomcat (9.0) 4. paste driver inside "Apache Software Foundation\Tomcat 9.0\lib" (ojdbc14); How to install oracle 11g in Windows 10 https://www.youtube.com/watch?v=TcXMyrjN7yg Oracle Database Connection with Login Form in java Swing 2018 || JDBC Connection https://www.youtube.com/watch?v=pddGJhRxQG8 -~-~~-~~~-~~-~- Please watch: "Employee Leave Management System Using PHP With Source Code" https://www.youtube.com/watch?v=PFWFtg-SyUo -~-~~-~~~-~~-~-
Views: 2931 Technical Babaji
No Suitable Driver Found For Jdbc Postgresql
 
02:32
No Suitable Driver Found For Jdbc Postgresql http://div.eweibo.ru/No%20Suitable%20Driver%20Found%20For%20Jdbc%20Postgresql SQLException: No suitable driver found for jdbc:postgresql:192. NexentaSearch at java. SQLException: No suitable driver found for jdbc: oracle:thin:@localhost:1521:CON. DriverManager. ConnectionDriverManager. PostgreSQL JDBC driver, then run. One item I couldn’t find yet anywhere is how would you go about detecting database. Before you proceed, don"t forget to copy the JDBC Driver"s jar into $CATALINA_HOMElib. DBCP"s Classloader to find them. SQLException: No suitable driver found for at java. DriverManager. ConnectionDriverManager. PostgreSQL SQLException: No suitable driver found for jdbc:mysql:dimvidi2202:3306ca_tw. DriverManager. ConnectionDriverManager. How to fix: “No suitable driver found for jdbc:mysql:localhostdbname” error when using pools? Fix 1466 No Suitable Driver Found for jdbc:postgresql.. No Suitable Driver Found For Jdbc Postgresql
SQL jdbc Connection in java
 
12:21
Facebook : https://www.facebook.com/TheProgrammingPortal/
java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver Solved
 
12:08
java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver Solved Link http://ucanaccess.sourceforge.net/site.html
Views: 13220 Mahesh Karande
How to connect to oracle database in java (using Eclipse)
 
06:26
How to connect to oracle database in java (using Eclipse) Database: Oracle 10g Enterprise Edition Download jar: Steps 1.Go to Link : http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-112010-090769.html 2. Accept the licence agreement. 3. Select ojdbc6.jar
Views: 111485 Vishnu Kyatannawar
Hibernate Tutorial #8 - Test the JDBC Connection
 
06:20
FULL COURSE: Spring MVC and Hibernate (200+ videos) - http://www.luv2code.com/full-spring ---- This Hibernate tutorial series will help you quickly get up to speed with Hibernate. ---- DOWNLOAD SOURCE CODE for Hibernate tutorial. http://www.luv2code.com/hibernate-tutorial/ ---- View more videos on the playlist, Hibernate Tutorial: https://goo.gl/UKAdaq ---- Follow luv2code for more Hibernate tutorials: Website: http://www.luv2code.com YouTube: http://goo.gl/EV6Kwv Twitter: http://goo.gl/ALMzLG Facebook: http://goo.gl/8pDRdA --- If you liked my Hibernate tutorial, then join my mailing list: Get exclusive access to new Java tutorials. - http://www.luv2code.com/joinlist --- Questions or problems about this Hibernate tutorial? Post them in the comments section below. --- Want to suggest a video for my Hibernate tutorial? Leave a comment below. I'm always looking for new video ideas. Let me know what video you'd like for me to create for this Hibernate tutorial. --- Hibernate Tutorial Transcript In this video, we're going to test our JDBC connection. In the previous video, we did a lot of work with downloading JAR files. What I want to do hear is just do a very simple test to make sure that our JDBC connection works just fine. What we're going to do is create a very simple JDBC program, just to test everything out, just to make sure everything works out okay. What I would like to do, is move into this hibernate tutorial under the source. I'll create a new package. Right click, I'll say New Package. The actual name of the package, I'll call it com.luv2code.jdbc. Once you're happy with that package name, go ahead and click on finish. Now what I would like to do is actually create a new class. Again, right click on that package name. I'll say New Class. The actual name that I'll use for this class, I'll call it Testjdbc. Just very simple, and to the point. I'll also check the low item here for public static void, just so I can have a main method for this program. Then again, hit on Finish. All right, great. We have a very basic program here and let's go ahead and dig in. Let's start writing some code. I have a very simple try catch block. I have catch exception EXC. I'll do the EXC.print stack trace in case something goes wrong. Hopefully not. What I'll do is I'll just set up some variables here for my database connection information. First off, I'll set up my JDBC URL. I'll call it JDBC:mysequel:localhost3306/ I give the name of my database scheme, which is hbstudenttracker. Here I'll say use SSL=false. Just so that I don't get that pesky SSL warning that my sequel introduced recently, which is really annoying. Anyway, use SSL will make that go away. All right, so that's how JDBC URL, our user ID that we created, and we did all this stuff in previous slides here. Our user is HBStudent. We have this very secure system where our password is the same as our username. Only for training purposes, right? Okay, good. All right, so our URL, user ID, and password, great. We can use this information to actually give us a connection to a database. All right. Here, I'm just mentioning again that use SSL as equals false as to get rid of that pesky my sequel SSL warnings. All right, great. Let's go ahead and write some code here. I'm going to make use of my driver manager to get a connection. I'll also do some system out print lines here to tell myself what's going on here. All right, so I'll say system out print line, connecting to database. I'll just drop in that JDBC URL. Then I'll attempt to get a connection. Here I'll say connectionmycon=, and then I say driver manager.getconnection. I pass in my JDBC URL, my user ID, and my password. If that works out fine, then we have a successful connection. I can print a statement here saying connection successful. Yah-hoo. I like to have fun with this stuff. All right, so that's the piece there. Now, we need to fix some of our imports here. I can just click on this red X. We need to do that import on java.sql, so choose the second option here. Import Connection, and java.sql. Select that item. Yeah, that takes care of the item then. We should be good to go here. All right, so just some very basic code here to test out our database connection. Let's go ahead and run this application. I just do a right click, Run As, Java Application. Then it's going to fire up, and say connection successful. Let me expand this window here, so you can see everything. Connecting to database, connection successful. This is great. This is just a confirmation that we have the correct URL, user ID, and password. Also, more importantly, is that JDBC driver that we have on our lib directory, is associated with our class path. Know that we can get a valid connection. [Snip] for complete transcript, select More ... Transcript This is the end of the Hibernate tutorial transcript.
Views: 19569 luv2code
PL/SQL tutorial 82: How to Execute DDL statements with Execute Immediate Dynamic SQL
 
10:32
Native Dynamic SQL - Learn how to execute CREATE TABLE DDL statement using EXECUTE IMMEDIATE in Oracle Database by Manish Sharma ------------------------------------------------------------------------ ►►►LINKS◄◄◄ Blog: http://bit.ly/NDS-3 What Is A #Data Warehouse? http://bit.ly/the-data-warehouse Previous Tutorial ► Introduction to Dynamic SQL: https://youtu.be/Yzk1zENbhg4 ► Introduction to Execute Immediately: https://youtu.be/47KzYVBNbIs ► Create Table: https://youtu.be/UU0EEfpa-2c ►Alter Table: https://youtu.be/8yAaO_ySTkw ------------------------------------------------------------------------- ►Make sure you SUBSCRIBE and be the 1st one to see my videos! ------------------------------------------------------------------------- ►►►Find me on Social Media◄◄◄ Follow What I am up to as it happens on https://twitter.com/rebellionrider http://instagram.com/rebellionrider https://plus.google.com/+Rebellionrider http://in.linkedin.com/in/mannbhardwaj/ ___Facebook Official Page of Manish Sharma___ https://www.facebook.com/TheRebellionRider/ ___Facebook Official Page of RebellionRider.com___ https://www.facebook.com/RebellionRider.official/ You can also Email me at for E-mail address please check the About section Please please LIKE and SHARE my videos it makes me happy. Thanks for liking, commenting, sharing and watching more of our videos This is Manish from RebellionRider.com ♥ I LOVE ALL MY VIEWERS AND SUBSCRIBERS
Views: 4898 Manish Sharma
Jdbc tutorial part-5 | Advanced Java Tutorial |  Inserting Record into Database  |  JDBC  Videos
 
05:25
In This Video we will learn how to insert record into the database using JDBC program. Program code;- =================================================== import java.sql.DriverManager; import java.sql.Connection; import java.sql.Statement; import java.sql.SQLException; public class InsertingRecordDemo{ public static void main(String[] args) throws SQLException{ DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver()); Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","system","password"); Statement st=con.createStatement(); st.executeUpdate("insert into student values(53,'ramu',50.5)"); System.out.println("record is insterted"); } } =================================================== JDBC (java database connectivity) FREE video tutorials. Thanks for watching my video. SUBCRIBE my channel for new updates-
Views: 32 RAJASEKHAR REDDY
Oracle Database 11g XE (Express Edition) Install guide and connect with SQL Developer
 
18:16
Welcome to MyOnlineEdu.com's video tutorial. In this video you will learn how to install Oracle Database 11g XE (Express Edition) and then connect the database using Oracle SQL Developer IDE tool. You can avail an instructor based live class from MyOnlineEdu.com. To enroll click the lick: https://www.myonlineedu.com/course/view/6/oracle-sql-and-plsql-11g-fundamentals
Views: 373691 MyOnlineEdu.com
Resolved Oracle ERROR: The network adapter could not establish the connection
 
01:20
A cada persona que ve este video y se suscribe al canal me ayuda a llegar los 1000 subs y no ser eliminado del Youtube Partner Program, de verdad estoy agradecido por el apoyo que me dan. No puedo crear una conexión de base de datos en SQL Developer porque el adaptador de red no pudo establecer conección. ----------- ******Gracias por Suscribirse!****** Saludos a 🇮🇳🇺🇸🇧🇷🇨🇱🇨🇴🇪🇨🇵🇪 desde 🇨🇷 Gracias por apoyar este proyecto. Lista completa de video tutoriales: http://bit.ly/2DyOy75 Blog: http://codingraph.com/blog/ Facebook: https://www.facebook.com/Codingraph Perfil LinkedIn: https://goo.gl/pBx2o8 Instagram: http://instagram.com/codingraph Twitter: https://twitter.com/Codingraph ------------------ How to Fix The Network Adapter Could Not Establish The Connection the network adapter could not establish the connection oracle - YouTube IO ERROR: The network adapter could not establish the connection Learn how to solve this Oracle Database the network adapter could not establish the connection oracle sql developer, éste es el error que nos aparece a algunos al momento de conectarnos a nuestra base de datos desde sqldeveloper. La version de Oracle que se uso en este video fue Oracle Database 11g
Views: 15325 Codingraph
[Solved] java.lang.ClassNotFoundException:  com.mysql.jdbc.Driver
 
02:07
This videos show how to remove the runtime Exception of Java program to connect java to the mysql database. And it will also shows how to install java - mysql database connector, to run the java program to connectto the mysql database. Link For download Drivers: https://dev.mysql.com/downloads/connector/j/ Exception Name: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver Please Subscribe the channel. Thank You!!
Views: 14668 Garbage Value
Catalog Search Operation returning Blank page in OIM11Gr2PS3 (Catalog for OIM 11gR2 coming blank)
 
12:06
IN This video I discussed about one strange issue, i.e When Users are searching for catalog they see Blank Page. And the error message is java.sql.SQLException: Invalid column name at oracle.jdbc.driver.OracleStatement.getColumnIndex(OracleStatement.java:5096) at oracle.jdbc.driver.OracleResultSetImpl.findColumn(OracleResultSetImpl.java:6284) at oracle.jdbc.driver.OracleResultSet.getString(OracleResultSet.java:1215) at weblogic.jdbc.wrapper.ResultSet_oracle_jdbc_driver_OracleResultSetImpl.getString(Unknown Source) at oracle.iam.catalog.util.Utility.getMetaDataColumnsPopulatedAsMetaDataIfAny(Utility.java:318
Views: 188 Amit Kumar Gupta
Allow remote connections to SQL Server Express : How to Video
 
07:36
Enable remote connection on SQL Server 2014 express. By default, when SQL Server Express is installed it generates a random port to listen on. In this video you will learn how to configure SQL Server 2014 Express to accept remote connections over TCP/IP using SQL Server Configuration Manager and how to open the port on firewall for incoming connection.
Views: 253796 Sachin Samy
Oracle: fixed errors 17002 and 12505
 
02:52
Oracle Database 11g XE: sqldeveloper new connection, fixed errors IO Error: The Network Adapter could not establish the connection Vendor code 17002; ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
Views: 51225 Integral
java sql SQLException  No suitable driver found for jdbc
 
01:58
java sql SQLException No suitable driver found for jdbc java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/school
Views: 4264 Farhan Meo
JDBC - CallableStatement Cursor and multiple out param(Oracle)
 
05:18
Java Source Code here: http://ramj2ee.blogspot.com/2015/07/jdbc-callablestatement-cursor-and.html To Download JDBCCallableStatementDemoOracleCursorMultiOutApp Project Click the below link: https://sites.google.com/site/javaee4321/jdbc/JDBCCallableStatementDemoOracleCursorMultiOutApp.zip?attredirects=0&d=1 Github link: https://github.com/ramram43210/Java/tree/master/JDBC/JDBCCallableStatementDemoOracleCursorMultiOutApp Bitbucket Link: https://bitbucket.org/ramram43210/java/src/92fc9016492af9d79a3335e7089fafc0c9b8cdcc/JDBC/JDBCCallableStatementDemoOracleCursorMultiOutApp/?at=master JDBC - CallableStatement Cursor and multiple out param(Oracle). JavaEE Tutorials and Sample code - Click here : http://ramj2ee.blogspot.in/
Views: 1730 Ram N
PL/SQL: Weak Vs Strong RefCursor && Normal cursor Vs RefCursor
 
10:26
In this tutorial, you'll learn Weak Vs Strong Ref Cursor && Normal cursor Vs Ref Cursor... PL/SQL (Procedural Language/Structured Query Language) is Oracle Corporation's procedural extension for SQL and the Oracle relational database. PL/SQL is available in Oracle Database (since version 7), TimesTen in-memory database (since version 11.2.1), and IBM DB2 (since version 9.7).[1] Oracle Corporation usually extends PL/SQL functionality with each successive release of the Oracle Database. PL/SQL includes procedural language elements such as conditions and loops. It allows declaration of constants and variables, procedures and functions, types and variables of those types, and triggers. It can handle exceptions (runtime errors). Arrays are supported involving the use of PL/SQL collections. Implementations from version 8 of Oracle Database onwards have included features associated with object-orientation. One can create PL/SQL units such as procedures, functions, packages, types, and triggers, which are stored in the database for reuse by applications that use any of the Oracle Database programmatic interfaces. PL/SQL works analogously to the embedded procedural languages associated with other relational databases. For example, Sybase ASE and Microsoft SQL Server have Transact-SQL, PostgreSQL has PL/pgSQL (which emulates PL/SQL to an extent), and IBM DB2 includes SQL Procedural Language,[2] which conforms to the ISO SQL’s SQL/PSM standard. The designers of PL/SQL modeled its syntax on that of Ada. Both Ada and PL/SQL have Pascal as a common ancestor, and so PL/SQL also resembles Pascal in several aspects. However, the structure of a PL/SQL package does not resemble the basic Object Pascal program structure as implemented by a Borland Delphi or Free Pascal unit. Programmers can define public and private global data-types, constants and static variables in a PL/SQL package.[3] PL/SQL also allows for the definition of classes and instantiating these as objects in PL/SQL code. This resembles usage in object-oriented programming languages like Object Pascal, C++ and Java. PL/SQL refers to a class as an "Abstract Data Type" (ADT) or "User Defined Type" (UDT), and defines it as an Oracle SQL data-type as opposed to a PL/SQL user-defined type, allowing its use in both the Oracle SQL Engine and the Oracle PL/SQL engine. The constructor and methods of an Abstract Data Type are written in PL/SQL. The resulting Abstract Data Type can operate as an object class in PL/SQL. Such objects can also persist as column values in Oracle database tables. PL/SQL is fundamentally distinct from Transact-SQL, despite superficial similarities. Porting code from one to the other usually involves non-trivial work, not only due to the differences in the feature sets of the two languages,[4] but also due to the very significant differences in the way Oracle and SQL Server deal with concurrency and locking. There are software tools available that claim to facilitate porting including Oracle Translation Scratch Editor,[5] CEITON MSSQL/Oracle Compiler [6] and SwisSQL.[7] The StepSqlite product is a PL/SQL compiler for the popular small database SQLite. PL/SQL Program Unit A PL/SQL program unit is one of the following: PL/SQL anonymous block, procedure, function, package specification, package body, trigger, type specification, type body, library. Program units are the PL/SQL source code that is compiled, developed and ultimately executed on the database. The basic unit of a PL/SQL source program is the block, which groups together related declarations and statements. A PL/SQL block is defined by the keywords DECLARE, BEGIN, EXCEPTION, and END. These keywords divide the block into a declarative part, an executable part, and an exception-handling part. The declaration section is optional and may be used to define and initialize constants and variables. If a variable is not initialized then it defaults to NULL value. The optional exception-handling part is used to handle run time errors. Only the executable part is required. A block can have a label. Package Packages are groups of conceptually linked functions, procedures, variables, PL/SQL table and record TYPE statements, constants, cursors etc. The use of packages promotes re-use of code. Packages are composed of the package specification and an optional package body. The specification is the interface to the application; it declares the types, variables, constants, exceptions, cursors, and subprograms available. The body fully defines cursors and subprograms, and so implements the specification. Two advantages of packages are: Modular approach, encapsulation/hiding of business logic, security, performance improvement, re-usability. They support object-oriented programming features like function overloading and encapsulation. Using package variables one can declare session level (scoped) variables, since variables declared in the package specification have a session scope.
Views: 9330 radhikaravikumar
Basics of jdbc programming Tutorial-11(Retrieving a text file from oracle database)
 
09:46
this video deals with the overall idea of how the jdbc program is connected to the database to retrieve a text file from the database. //Retrieving a text file from the oracle database import java.sql.*; import java.io.*; class Jdbc { public static void main(String[] args) throws Exception { Connection con=null; PreparedStatement pst=null; ResultSet rs=null; try { Class.forName("oracle.jdbc.driver.OracleDriver"); con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "student","shubham123"); if(con!=null) { System.out.println("connection established"); pst=con.prepareStatement("select * from myfile"); } if(pst!=null) { System.out.println("preparedstatement object created"); rs=pst.executeQuery(); rs.next(); Clob c=rs.getClob(1); System.out.println("File Size="+c.length()); Reader r=c.getCharacterStream(); int ch; FileWriter fw=new FileWriter("f://text.txt"); while((ch=r.read())!=-1) fw.write((char)ch); fw.close(); } } catch(SQLException e) { e.printStackTrace(); } catch(ClassNotFoundException e) { e.printStackTrace(); } catch(Exception e) { e.printStackTrace(); } finally { pst.close(); con.close(); } } }
Views: 66 Learn it by Fun
ORA-12505: TNS:listener does not currently know of SID given in connect descriptor
 
01:49
solution of error: Status : Failure -Test failed: Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
Views: 89849 INNo MATHs
JDBC MAC ORACLE
 
04:55
Establishing connection to oracle database using a simple java application created in the Mac OS platform using terminal. Here you go with the code for practice/reference: package jdbcdemos; import java.sql.*; public class ConnTest { static String name; static int id,age; public static void main(String args[])throws Exception { name=args[0]; id=Integer.parseInt(args[1]); age=Integer.parseInt(args[2]); Class.forName("oracle.jdbc.driver.OracleDriver"); System.out.println("driver is loaded"); Connection con=DriverManager.getConnection("jdbc:oracle:thin:@192.168.31.211:1521:orcl","jayant","jayant"); if(con!=null) System.out.println("Connection established successfully"); else System.out.println("Connection not established"); Statement stmt=con.createStatement(); int n=stmt.executeUpdate("insert into students values('"+name+"',"+id+","+age+")"); if(n==1) System.out.println("Records inserted successfully into the table"); System.out.println("\n"+"Fetching record from the table...."); ResultSet rs=stmt.executeQuery("select * from students"); while(rs.next()) { System.out.println("Name: "+rs.getString(1)); System.out.println("ID: "+rs.getInt(2)); System.out.println("Age: "+rs.getInt(3)); } rs.close(); stmt.close(); con.close(); } }
Views: 167 JAYANT AGARWAL
How to Create a Migration Repository in Oracle SQL Developer
 
02:54
This demo will show how to create a migration repository in Oracle SQL Developer. The migration repository is a database schema that stores the meta data collected and transformed in the migration process. Copyright © 2013 Oracle and/or its affiliates. Oracle® is a registered trademark of Oracle and/or its affiliates. All rights reserved. Oracle disclaims any warranties or representations as to the accuracy or completeness of this recording, demonstration, and/or written materials (the "Materials"). The Materials are provided "as is" without any warranty of any kind, either express or implied, including without limitation warranties of merchantability, fitness for a particular purpose, and non-infringement.
Views: 102308 Oracle Learning Library
connect java with sql (jdbc) Statement
 
05:43
code java : public static void affiche_base(String url,Connection con) throws SQLException{ con = DriverManager.getConnection(url, "root", ""); System.out.println("Connection is done"); Statement mystmt = con.createStatement(); ResultSet myrs = mystmt.executeQuery("select * from presonne"); System.out.println("---------------------------"); while(myrs.next()){ System.out.println("| "+myrs.getString("nom")+" | "+myrs.getString(2)+" | "+myrs.getInt(3)+" |"); System.out.println("--------------------------"); } }
Views: 292 Otaku Style
JDBC Driver Part-5 | Install MySQL Database | Error Nr-1045 | Access denied Error | In Hindi
 
14:31
In this Video You can Understand How to Install MySQL Database .? During Installation faces the problem of error Error Nr-1045 and Access denied Error. Download MySql Url- https://www.dropbox.com/s/d2g7kuupxjkvru2/My%20Sql%20with%20Jar.zip?dl=0 Jdbc Driver.? What is Driver.? DriverManager.?Connection.? Driver is an interface which is found in java.sql package. Every Driver Class should implements this driver interface. Stay tuned with me for more upcoming Videos, don't forget to subscribe my YouTube Channel and share your valuable comments in Comment section down below, i'll be happy t o help you all, your Surya ☺ To download JDK click in this link: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html To download Android Studio click in this link: https://developer.android.com/studio/index.html Download my you tube channel Android application from here- https://www.dropbox.com/s/stoehcarylm... Firebase Tutorial No-6 URl- https://www.youtube.com/watch?v=5IWBzZui4xA&t=25s Firebase Tutorial No-1 URl- https://www.youtube.com/watch?v=gf0VQLfwZ6w&t=25s Firebase Tutorial No-2 URl- https://www.youtube.com/watch?v=srgALzxKt6Y&t=521s Firebase Tutorial No-3 URl- https://www.youtube.com/watch?v=TW0uOKIyUpE&t=6s Firebase Tutorial No-4 URl- https://www.youtube.com/watch?v=XXxRALV9YxI&t=47s Write program url using Firebase Database- https://www.dropbox.com/s/wxggu30ajqa992c/FirebaseDemo%20%282%29.zip?dl=0 Sqlite database tutorials part-1 url- https://www.youtube.com/watch?v=6a9lIxU9XvI&t=21s Sqlite database tutorials part-2 url- https://www.youtube.com/watch?v=h1PeqaAQhdg&t=6s Storage option url- https://www.youtube.com/watch?v=KgCfx... Internal Storage url- https://www.youtube.com/watch?v=O-VKJ... External Storage url- https://www.youtube.com/watch?v=EteGm... Shared Prefrences url- https://www.youtube.com/watch?v=KZJC2... Spinner Url- https://www.youtube.com/watch?v=o3KZz... CustomListView Url- https://www.youtube.com/watch?v=2geTp... ListView In Android Studio Part-1 https://www.youtube.com/watch?v=taItn... ListView In Android Studio Part-1 ListView In Android Studio Part-2 With EventHandling https://www.youtube.com/watch?v=F3tsW... ListView In Android Studio Part-3 With EventHandling https://www.youtube.com/watch?v=fCh5D... Firebase:- https://www.youtube.com/watch?v=Lncmj... How to Install Java Url- https://www.youtube.com/watch?v=NXlHE... Download my you tube channel Android application from here- https://www.dropbox.com/s/stoehcarylm... GridLayout url- https://www.youtube.com/watch?v=B3TUS... TableLayout url- https://www.youtube.com/watch?v=wbV3t... RelativeLayout- https://www.youtube.com/watch?v=80Kk_... https://www.youtube.com/watch?v=1jnNF... Linearlayout- https://www.youtube.com/watch?v=yY3xL... https://www.youtube.com/watch?v=vnEdL... Connect on Socials:- Facebook:- https://www.facebook.com/AndroJavaTec... Twitter:- https://twitter.com/AndroJavaTech4U Google Plus:- https://plus.google.com/u/0/+AndroJav... LinkedIn:- https://www.linkedin.com/in/androjava...
Views: 577 AndroJava Tech4U
Java JDBC Tutorial - Part 1: Connect to MySQL database with Java
 
09:06
5 FREE JAVA VIDEO COURSES - CLICK HERE - https://goo.gl/7i95F8 --- View more videos on my "Java JDBC Tutorial" Playlist: http://goo.gl/crT4nS Closed-Captioning and English subtitles available. In this tutorial, you will learn how to connect to a MySQL database with Java. Download source code from - http://www.luv2code.com/2014/03/21/connect-to-mysql-database-with-java-jdbc/ Please subscribe to my channel. http://goo.gl/EV6Kwv ---- Follow luv2code: Website: http://www.luv2code.com YouTube: http://goo.gl/EV6Kwv Twitter: http://goo.gl/ALMzLG Facebook: http://goo.gl/8pDRdA --- Join my mailing list: Get advance notice on new tutorials. Emails about 1 per week. - http://www.luv2code.com/joinlist --- Questions or problems? Post them in the comments section below. --- Want to suggest a video? Leave a comment below. I'm always looking for new video ideas. Let me know what video you'd like for me to create. --- Video Transcript Time - 00:00 Hello. In this tutorial, you will learn how to connect to a MySQL database with Java. In this session we’re going to learn how to connect a MySQL database with Java. Before we get started there are some prep work that needs to take place. One is that you need to have a MySQL database already installed. If not, you can download one from the site listed here on the slide. Time - 00:20 Next, we’ll need to download and install a MySQL JDBC driver. This driver will allow the Java program to connect to the database. You can download it from this URL, and I’ll do that now. I’ll just take this URL, drop it into my favorite browser and here I am at the page. I’m on this page, this is for downloading the Connector/J browser. I’ll select the platform, platform independent. Now move down and I’ll select download and it will download a zip archive. Make sure you download the most recent version. In this case it’s 5.1.29. Make sure you download something at that version or later. Time - 01:04 Download, scroll down, select, “No thanks, just start my download.” This will start downloading the file for you. Now what we can do is show it in the finder. I’ll double click it to extract it. At this point I have the driver extracted. There’s a file in here called MySQL connector.jar that we’ll use later. Time - 01:34 Next, what I need to do is create a Java project in Eclipse. Let’s do that. On Eclipse I’ll say I’ll save file, new, Java project. This will be JDBC demo and I will select finish. What I’ll do is I will add a new class. New, class, this will be my driver and it will have a public static void main region. At this point we have a shell for our project created. Time - 02:28 Next, what we’ll do is we will talk to the actual development process and I really like this slide because it outlines exactly what we need to do. The first thing we’ll do is add the database driver to the classpath. Next, we’ll get a connection, we’ll submit a SQL query and then we’ll process the result set. Time - 02:48 Let’s start with step one, adding a MySQL database driver to the classpath. In our Eclipse project I’m going to add a new folder called lib, lib for library. In this lib folder I’m going to add the driver that I downloaded earlier. What I’ll do is I’ll just grab this driver. It’s the MySQL connector bin.jar and I’ll just drag and drop it to this lib folder. It will prompt me and I’ll say go ahead and copy the file. Time - 03:25 Next, I need to add the jar file, the driver to the classpath. I’ve set this up with properties, choose Java build path and then I’ll choose add jars. Expand this folder, that lib, I’ll grab that jar file and I’ll have it setup. Great. Time - 03:51 Now we can start coding. We need to get a connection, submit a SQL query and process a result set. Let me just sketch this out on a slide over here. The first thing I’ll do up top is I’ll just do an import on java.sql.* because all of the classes and interfaces that we need are in this package. Time - 04:17 I’ll also just setup a try catch block just to handle for any exception that may occur. Small typo there. Time - 04:40 Inside of this section I’m going to first get a connection to database. Then next I will create a statement. Then from here I will execute a SQL query and then I will process the result set. Time - 05:16 That’s my basic game plan, let’s fill it in with some real code. Here I’ll say connection, myConn = DriverManager.getConnection. I’ll give the jdbc:mysql://localhost:3306/demo student, student. Student is the user ID and student is also the password. [snip] Click the Transcripts tab for full transcript.
Views: 661669 luv2code
How to install Oracle JDBC driver in Maven project
 
04:05
Before copying ojdbc6.jar to "jdk-home"/jre/lib/ext/, in IDEA you need to add the ojdbc6.jarfile in "Structure" - "SDK" - "add classpath" to "jdk-home'/jre/lib/ext/ojdbc6.jar Source + sql script + Maven command: https://github.com/igortereshchenko/Java/tree/e190afbbe93a320942153cb4c381a12dcf173a23/OracleConnection
Views: 7351 Igor Tereshchenko
Basics of jdbc programming Tutorial-6(ResultSet interface part-2)
 
20:12
this video deals with the ResultSet interface and different methods inside in .we came to know about the use of concurrency and updatation in ResultSet object with java codes. import java.sql.*; class Jdbc { public static void main(String args[])throws Exception { Connection con=null; Statement st=null; ResultSet rs=null; String query=null; try { Class.forName("oracle.jdbc.driver.OracleDriver"); con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","student","shubham123"); if(con!=null) { System.out.println("connection established"); st=con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE); } if(st!=null) { System.out.println("statement object created"); query="select * from emp026"; rs=st.executeQuery(query); if(rs.next()==true) { //getting the record of 3rd row rs.absolute(3); System.out.println("the 3rd row is"); System.out.println(rs.getInt(1)+" "+rs.getString(2)+" "+rs.getString(3)+" " +rs.getInt(4)+" "+rs.getString(5)+" "+rs.getString(6)); //getting the record of 1st row System.out.println("the 1st row is"); rs.first(); System.out.println(rs.getInt(1)+" "+rs.getString(2)+" "+rs.getString(3)+" " +rs.getInt(4)+" "+rs.getString(5)+" "+rs.getString(6)); //getting the record of last row System.out.println("the last row is"); rs.last(); System.out.println(rs.getInt(1)+" "+rs.getString(2)+" "+rs.getString(3)+" " +rs.getInt(4)+" "+rs.getString(5)+" "+rs.getString(6)); } } } catch(SQLException e) { e.printStackTrace(); } catch(ClassNotFoundException e) { e.printStackTrace(); } catch(Exception e) { e.printStackTrace(); } finally { st.close(); con.close(); } } } //updation in ResulSet import java.sql.*; class Jdbc { public static void main(String args[])throws Exception { Connection con=null; Statement st=null; ResultSet rs=null; String query=null; try { Class.forName("oracle.jdbc.driver.OracleDriver"); con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","student","shubham123"); if(con!=null) { System.out.println("connection established"); st=con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE); } if(st!=null) { System.out.println("statement object created"); query="select salary from emp026 where ename='AMAR'"; rs=st.executeQuery(query); while(rs.next()) { double sal=(rs.getDouble(1)); rs.updateDouble("Salary",sal*1.2); rs.updateRow(); } rs=st.executeQuery("select * from emp026"); while(rs.next()) { System.out.println(rs.getDouble(3)); } } } catch(SQLException e) { e.printStackTrace(); } catch(ClassNotFoundException e) { e.printStackTrace(); } catch(Exception e) { e.printStackTrace(); } finally { st.close(); con.close(); } } }
Views: 188 Learn it by Fun
Install and configure Sql Developer on Windows | Oracle Tutorial
 
05:12
How to Install SQL Developer on Windows 1) Download for the below link http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html 2) Make sure you have Java Development Kit installed with latest version. http://www.oracle.com/technetwork/java/javase/downloads/index.html 3) Install SQL developer as rpm -ihv sqldeveloper-xxx.noarch.rpm (replace xxx with exact version of your SQL developer) Run SQL developer on linux command prompt as $ sqldeveloper 4) Create a new connection to connect to user Technology Lair : www.technologylair.org Subscribe : http://www.youtube.com/subscription_center?add_user=technologylair For More Videos : http://www.youtube.com/user/technologylair/videos For Video Tutorials :http://www.youtube.com/playlist?list=PLC71CFFF7A916DCAA For Android : http://www.youtube.com/playlist?list=PLUXK1VpPWQKHI1l-NvM5jvNKKnmNy9eHp For Linux : https://www.youtube.com/playlist?list=PLUXK1VpPWQKHV2xOmjQgUNj3Hrmcslj-H Kalam e Iqbal : http://www.youtube.com/playlist?list=PLF057785BD260F061 Like us on Facebook : https://www.facebook.com/technologylair Tweet us : http://twitter.com/technologylair Follow us : https://plus.google.com/u/0/118196883367288585963/posts Pin us : http://www.pinterest.com/technologylair/
Views: 346210 TechLair

Here!
Here!
Here!
Here!
Here!