CS34311 CS3431 – Database Systems I Project Overview Elke A. Rundensteiner.

Slides:



Advertisements
Similar presentations
Murali Mani SQL-PL Interface. Murali Mani Some Possible Options Web Interface Perl /CGI with Oracle/mySQL Install your own web server and use servlets.
Advertisements

CS499 – Test Generation Project – Internal Docs This PowerPoint file is available at
Brian Alderman | MCT, CEO / Founder of MicroTechPoint Pete Harris | Microsoft Senior Content Publisher.
What is MySQL? MySQL is a relational database management system (A relational database stores data in separate tables rather than putting all the data.
Let’s try Oracle. Accessing Oracle The Oracle system, like the SQL Server system, is client / server. For SQL Server, –the client is the Query Analyser.
Using Relational Databases and SQL Steven Emory Department of Computer Science California State University, Los Angeles Laboratory 1: Introduction to Relational.
CS34311 CS3431 – Database Systems I Project Overview Murali Mani.
DT228/3 Web Development Databases. Database Almost all web application on the net access a database e.g. shopping sites, message boards, search engines.
7/2/2015Murali Mani -- CS5421 Database Management Systems DB Application Development Project Statement + Introduction to Oracle.
A Guide to MySQL 3. 2 Objectives Start MySQL and learn how to use the MySQL Reference Manual Create a database Change (activate) a database Create tables.
Oracle SQL*plus John Ortiz. Lecture 10SQL: Overview2 Overview  SQL: Structured Query Language, pronounced S. Q. L. or sequel.  A standard language for.
1 Foundations of Software Design Lecture 27: Java Database Programming Marti Hearst Fall 2002.
PHP Scripts HTML Forms Two-tier Software Architecture PHP Tools.
Confidential ODBC May 7, Features What is ODBC? Why Create an ODBC Driver for Rochade? How do we Expose Rochade as Relational Transformation.
Advance Computer Programming Java Database Connectivity (JDBC) – In order to connect a Java application to a database, you need to use a JDBC driver. –
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
MySQL Dr. Hsiang-Fu Yu National Taipei University of Education
1 CSC 440 Database Management Systems JDBC This presentation uses slides and lecture notes available from
Database System Concepts and Architecture Lecture # 3 22 June 2012 National University of Computer and Emerging Sciences.
A Guide to SQL, Eighth Edition Chapter Three Creating Tables.
Session 5: Working with MySQL iNET Academy Open Source Web Development.
Oracle for Software Developers. What is a relational database? Data is represented as a set of two- dimensional tables. (rows and columns) One or more.
INTERNET APPLICATION DEVELOPMENT For More visit:
PHP Programming with MySQL Slide 8-1 CHAPTER 8 Working with Databases and MySQL.
Using Java with PSQL and Oracle Thanks to Drs. Raj and Liu for sharing some of these slides TRUDY: ALSO NEED SAMPLE PROGRAM.
Views, Indexes and JDBC/JSP tutorial Professor: Dr. Shu-Ching Chen TA: Haiman Tian 1.
Movie Manager by Patrick Wesley and Chris Grey Internet Database Project for CS 8630 – Summer 2004 Dr. Guimaraes.
Web Server Administration Chapter 7 Installing and Testing a Programming Environment.
Chapter 7 Working with Databases and MySQL PHP Programming with MySQL 2 nd Edition.
CS 3630 Database Design and Implementation. Your Oracle Account UserName is the same as your UWP username Followed Not case sensitive Initial.
FTP Server and FTP Commands By Nanda Ganesan, Ph.D. © Nanda Ganesan, All Rights Reserved.
Oracle 10g Database Administrator: Implementation and Administration Chapter 2 Tools and Architecture.
Database control Introduction. The Database control is a tool that used by the database administrator to control the database. To enter to Database control.
CERN - IT Department CH-1211 Genève 23 Switzerland t DB Development Tools Benthic SQL Developer Application Express WLCG Service Reliability.
CS 3630 Database Design and Implementation. Assignment 3 Style! Agreement between database designer and the client. UserName1_EasyDrive UserName2_EasyDrive.
Index and JDBC/JSP tutorial Professor: Dr. Shu-Ching Chen TA: Hsin-Yu Ha.
Most information comes from Chapter 3, MySQL Tutorial: 1 MySQL: Part.
1 CS 430 Database Theory Winter 2005 Lecture 2: General Concepts.
Introduction to MySQL MySQL Overview by Ray Williams CS 320/565 Marymount University.
DATABASE TOOLS CS 260 Database Systems. Overview  Database accounts  Oracle SQL Developer  MySQL Workbench.
Oracle & SQL Introduction. Database Concepts Revision DB? DBMS? DB Application? Application Programs? DBS? Examples of DBS? Examples of DBMS? 2Oracle.
Web Server Administration Chapter 7 Installing and Testing a Programming Environment.
1 More basics on DB access Elke A. Rundensteiner.
1 Very basics on DB access Elke A. Rundensteiner.
Introduction to Taverna Online and Interaction service Aleksandra Pawlik University of Manchester.
SQL in Oracle. Set up Oracle access at IU You need to install Oracle Client: – – For windows:
Database Connectivity and Server-Side Scripting Chapter 12.
FTP COMMANDS OBJECTIVES. General overview. Introduction to FTP server. Types of FTP users. FTP commands examples. FTP commands in action (example of use).
Starting with Oracle SQL Plus. Today in the lab… Connect to SQL Plus – your schema. Set up two tables. Find the tables in the catalog. Insert four rows.
1 Introduction to SQL *Plus Oracle SQL Interface MIS309 Database Systems.
1 Very basics on DB access CS Nov DBMS? Oracle Accounts already created Documentation: mySQL: To create an account,
Intro To Oracle :part 1 1.Save your Memory Usage & Performance. 2.Oracle Login ways. 3.Adding Database to DB Trees. 4.How to Create your own user(schema).
2) Database System Concepts and Architecture. Slide 2- 2 Outline Data Models and Their Categories Schemas, Instances, and States Three-Schema Architecture.
CS320 Web and Internet Programming SQL and MySQL Chengyu Sun California State University, Los Angeles.
ISC321 Database Systems I Chapter 2: Overview of Database Languages and Architectures Fall 2015 Dr. Abdullah Almutairi.
Fundamental of Databases
CS 3630 Database Design and Implementation
CS320 Web and Internet Programming SQL and MySQL
SQL and SQL*Plus Interaction
Introduction to MySQL.
Basics on DB access Elke A. Rundensteiner.
Client Access, Queries, Stored Procedures, JDBC
Chapter 8 Working with Databases and MySQL
CS1222 Using Relational Databases and SQL
Intro to Relational Databases
Using SQL*Plus.
CS3220 Web and Internet Programming SQL and MySQL
CS3220 Web and Internet Programming SQL and MySQL
Presentation transcript:

CS34311 CS3431 – Database Systems I Project Overview Elke A. Rundensteiner

CS34312 One continuous course project Description: Envision a database application, and implement it fully. Teaming : Teams of 2 students each Grading : Collect points over the phases

CS34313 Phases Phase 0: Project Intent (due Wed, Oct 31, midnight via ) Decide on your team and project. Send a “register project” message under “projects” on mywpi with (a) the people in team (b) project title, and (c ) a description (of 2 pages or so) of your application Phase 1: Conceptual Design (due Wed Nov 7 midnight via turnin) Refine application requirements, represent as ER schema, note any constraints, discuss initial set of functions for users and administrators that will be supported. Phase 2: Refined Design (due Wed Nov 14, midnight via turnin) Represent refined ER schema, discuss refinements, translate the ER to relational, analyze the relational design using normalization theory, come up with DDL statements for the relational schema, test the DDL statements. Phase 3: Operational Design (due Wed Nov 28, midnight via turnin) Analyze the operations needed for your application, represent them in SQL DML, and test them using realistic data. Analyze interface requirements. Consider advanced technologies to improve your system, such as indexing or triggers. Phase 4: Complete Project (due Wed Dec 12, midnight via turnin plus life demonstration) Complete the project, building of an interface for the end-user. Finalize final documentation and project report. Consider usage of additional technologies to improve your system, such as indexing, views, triggers, stored procedures. Demonstration of your project to CS3431 staff.

CS34314 Phase 0 Details Now Think about PROJECT topic Tuesday, by 7pm, register self-formed team at mywpi. Subject: TEAM FORMED members: names and addresses Topic: title and one-liner about topic Tuesday, by 7pm, feel free to solicite partner on at mywpi. Subject: PROJECT IDEA member: you Topic: one-liner about topic you would like to find a partner for, any skills you would prefer your partner to have Wednesday, CS3431 Staff will assign remaining students to teams We’ll inform you of your team ID NUMBER We’ll inform you of your team members, if not self-picked Thursday, by midnight, for all Submit your project intent onto mywpi Clearly label the subject “PROJECT INTENT: TEAM ID NUMBER”

CS34315 What DBMS to use? Oracle Accounts already created, Version Documentation: mySQL: Version To create an account, visit Documentation:

CS34316 How to set up Oracle Check the type of shell that you are using. For this from your unix prompt, type: echo $SHELL Most of you will get for above “ /bin/tcsh “ – this means you are using turbo c-shell From your shell prompt, type : echo $PATH Set environment variables based on if path is empty or not ( next slide )

CS34317 How to set up Oracle Add following to your.cshrc – if your path is not empty setenv ORACLE_BASE /usr/local/oracle/ setenv ORACLE_HOME /usr/local/oracle/product/10.1.0/db_1 setenv PATH ${PATH}:${ORACLE_HOME}/bin setenv ORACLE_SID cs setenv TWO_TASK ${ORACLE_SID}

CS34318 How to set up Oracle (contd…) Add to.cshrc – if your path is empty setenv PATH. setenv ORACLE_BASE /usr/local/oracle setenv ORACLE_HOME /usr/local/oracle/product/10.1.0/db_1 setenv PATH ${PATH}:${ORACLE_HOME}/bin setenv ORACLE_SID cs setenv TWO_TASK ${ORACLE_SID}

CS34319 How to set up Oracle (contd…) After editing the file “.cshrc “ Please run : source.cshrc Or on CCC, run : source /usr/local/bin/csoraenv

CS Problems while setting up Oracle Important – Set up Oracle immediately and see that it is working Many of you will run into problems, typically due to simple typos If you have identified a project partner, start working with him/her on this ! Notes: The oracle server is 10g R2; server name is oracle.wpi.edu; port is #1521; and oracle sid is CS.

CS Oracle introduction Connecting sqlplus / For example, sqlplus myname/myname Change passwd using password command You will end up submitting your passwd; therefore don’t use password that you use for other purposes.

CS Oracle useful commands These commands can be executed from SQL shell SELECT * FROM cat; -- lists tables you have created SELECT table_name FROM user_tables; -- as above. DESCRIBE ; -- describes schema for table with name tableName help index; -- shows list of help topics; help start; -- illustrates how to use command start exit; -- exit from SQL shell

CS Using Oracle from Windows Multiple ways: Use aquastudio software from aquafold.com. connect to -- server: oracle.wpi.edu port: 1521 (this is the default) SID: cs Download oracle client for windows. Connect using sqlplus client or other tools: sqlplus

CS MySQL Introduction Connecting mysql -h -u -p Useful commands show tables; describe ; exit; Look at manual for other commands.

CS Working with the Data Server

CS Testing that you are set CREATE TABLE student(sNum INTEGER,sName VARCHAR (30)); -- creates table student with two columns INSERT INTO student VALUES (1, ‘Joe’); -- insert one row into the student table SELECT * FROM student; -- select all rows from student table DELETE FROM student; -- delete all rows in the student table DROP TABLE student; -- drop student table Purge recyclebin; -- purge recyclebin tables that get created. -- Only works if you are logged onto CCC1

CS Running scripts in SQLPlus To enter OS environment, use sqlplus command: Host Now you can execute OS commands, like : cd.., exit, etc. Create a file in your file system in the current directory called -- executes the script start createTable -- also executes the script If you want to save your output to a file (similar to script in Unix) spool spool off;

CS Loading data from a text file Create a table : CREATE TABLE myTable1 (a int, b int); Create data file, say: sample.dat Put data into the file : 1,11 2,22 3,33 4,44

CS Loading from text file (Contd) Create control file, say load.ctl LOAD DATA INFILE sample.dat INTO TABLE myTable1 FIELDS TERMINATED BY ‘,’ (a,b) Invoke SQL Loader (from your UNIX shell): $ sqlldr control=load.ctl

CS Building Interfaces Call Level Interface Perl – to build web interfaces JDBC – Java, servlets etc Embedded SQL C API (Pro*C) C++API (Pro*C++) Java API (SQLJ) [ Oracle ]

CS Get Started Now … Pick project partner (feel free to use mywpi to recruit partner) Jointly toss around ideas about cool project Try out basics – to assure you have access to oracle (and mysql)