session 2 deploy and run mtech 1st lab question blob and clob using java
TRANSCRIPT
Mtech DBMS LAB Question 1
Application For BLOB and CLOB objectsRunning a ready application with mysql
Getting the Project files• https://drive.google.com/open?id=0B9-jNu3myO7cVDhmaC1tblBaQ
WM(Link available in description below)• Creating mysql Schema (if you are using oracle you will need to search
on how create database and table as the query may slightly differ) or else please describe in comments the issue faced, and I will try to provide the solution• You can also join our discord community and will help you with
anything we can
Changes to do while running on any other database eg. oracle• Replace mysqlConnector jar to odbc jar from
https://drive.google.com/open?id=0B9-jNu3myO7ccjZrVjhieWFIMXM• Change the database connection details in all .java files from
Please refer to http://www.javatpoint.com/example-to-connect-to-the-oracle-database which seems to be good place to start
Copy the file to local system• Please copy the .zip file to your local system• Unzip the file, we will get the eclipse project
Creation of project in eclipse• Please go though the previous installation video to create a new
dynamic web project in eclipse• Add the mysql connector jar as described• Copy the files as we will discuss now
Change the password of mysql• Change the password of mysql in all 3 .java files• Run the application by choosing “Run on Server option”
Further improvements of this project• As per VTU all necessary requirements are complete• As per proper coding standards we can have single connection class
and get the DB connections from it instead of specifying in all .java files• The code structure can be improved by using maven/gradle builds• Another video coming soon for development from scratch
Thank you