Download presentation
Presentation is loading. Please wait.
Published byAmbrose White Modified over 9 years ago
1
ABSTRACT The JDBC (Java Database Connectivity) API is the industry standard for database- independent connectivity between the Java programming language and a wide range of databases. The JDBC API provides a call-level API for SQL-based database access. JDBC technology allows you to use the Java programming language to exploit "Write Once, Run Anywhere" capabilities for applications that require access to enterprise data. The project uses JDBC technology in order to provide the end user with a uniform interface that enables them to query multiple databases located in different servers. Database servers used in the project are PostgreSQL and MySQL. Using the project, the user is able to access and retrieve information from databases within short span of time while maintaining the security of the databases. This project has a wide variety of applications because this would help to implement distributed computing in the future. PROJECT OBJECTIVE to provide the user with an efficient and interactive interface that would query multiple databases a more comprehensive approach to access the database and to reduce response time and cost. To save users time by providing user with uniform GUI to query multiple database. PROJECT DESIGN Birla Institute of Technology and Science, Pilani – Dubai Campus PROJECT IMPLEMENTATION WORKING The user writes the SQL query in a GUI (Graphical User Interface) The SQL query is validated i.e. is checked for syntax and valid fields & table name, otherwise the GUI will prompt user to check the syntax. The interface will first extract the table name from the query Open the file “getdbname.txt” that contains database name of that particular table Then, it opens another file “dbserver.txt” to find the database server to which the database belongs to. Then it is connected to the particular database server using jdbc connection. It will determine whether the SQL is a simple query or an update. The interface will execute the query and store the result in the text file named output.txt in a tabular form. The text file is automatically generated once the execution of query is done INTERFACE USER INPUT SQL Queries MySQL : select title,author from ecedb group by year having count(year)>=10; PostgreSQL: select title, author from mechdb where subj='WELDING' AND year=(select year from mechdb where isbn=‘0766818969’); USEFULLNESS AND APPLICATIONS OF PROJECT facilitates the reduction of cost in terms of response time. to provide the user with a front end that enables them to query distributed database while maintaining the security of database. can access the database as well as retrieve information within short span of time. This project can be use to bank organizations and airline reservation system where they have to queries large as well as many databases located in different servers. OUTPUT DATABASES AND TABLES Databases and tables created in MySQL 1) Books 1.1) compdb 1.2) ecedb 2) Student 2.1) grade Databases and tables created in PostgreSQL 1) Lib_books 1.1) mechdb 1.2) medbook 2) Records_stud 2.1) course CONCLUSION used for searching multiple databases located in database servers. successfully implemented using JAVA and JDBC with several simple and complex queries which have been initiated using a single front end. It searches the databases and executes the queries in an quickly and efficiently. This is a small step into the world of distributed computing FURTHER EXTENSIONS The project can be further extended in Linux platform under PostgreSQL and MySQL as well as ORACLE & SQL Server 2000. Further implemented in a heterogeneous database environment where the databases can be located in different servers across the internet and internet. The database will be accessed using the IP address of the network.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.