Presentation is loading. Please wait.

Presentation is loading. Please wait.

DATABASE TOOLS CS 260 Database Systems. Overview  Database accounts  Oracle SQL Developer  MySQL Workbench.

Similar presentations


Presentation on theme: "DATABASE TOOLS CS 260 Database Systems. Overview  Database accounts  Oracle SQL Developer  MySQL Workbench."— Presentation transcript:

1 DATABASE TOOLS CS 260 Database Systems

2 Overview  Database accounts  Oracle SQL Developer  MySQL Workbench

3 Database Accounts  You all have accounts for an Oracle database as well as a MySQL database  Database server: dario.cs.uwec.edu  You should have received an email containing your account information for dario  We’ll use two programs to connect to those databases Oracle SQL Developer MySQL Workbench

4 Database Accounts  Oracle SQL Developer and MySQL Workbench availability  In the CS labs Connect to the CS lab environment remotely https://virtual.uwec.edu  Install them locally on your computer Oracle SQL Developer http://www.oracle.com/technetwork/developer-tools/sql- developer/overview/index.html MySQL Workbench http://www.mysql.com/products/workbench/ You will need to VPN into the UWEC network when off campus when running these programs locally http://www.uwec.edu/Help/drives/vpn.htm

5 Database Accounts  A “schema” identifies a collection of database objects  Tables  Views  Stored programs  Etc.  In Oracle, the term “schema” essentially refers to a user account  Access to specific objects can be granted to other users  In MySQL, the term “schema” essentially refers to a database  Access to specific objects or schemas can be granted to other users

6 Database Accounts Username/ Password Tables (all in the same schema) Database SID  Oracle database structure

7 Database Accounts Username/ Password Tables (in individual databases) Individual Databases  MySQL database structure

8 Oracle SQL Developer New Connection… Username and Password were sent via email Hostname: dario.cs.uwec.edu Port: 1521 SID: csdev

9 Oracle SQL Developer Expand a database to see its details (as shown) Expand “Tables” to view tables in schema (as shown) Expand a table to see its fields Click a table to see its details (as shown) Click “Columns” to see the selected table’s column details Click “Data” to see the table’s data (as shown) Click “Constraints” to see the table’s constraints

10 Oracle SQL Developer Click the SQL tab to execute SQL commands on the specified database SQL scripts can be saved Click the “Run Statement” button (first) to execute the SQL statement where the cursor resides (as shown) Click the “Run Script” button (second) to execute all SQL statements in the script Click the “Commit” button (sixth) to write any changes to disk View results of “Run Script” View results of “Run Statement”

11 MySQL Workbench Hostname: dario.cs.uwec.edu Port: 3306 Username and Password: emailed Default Schema: (same as username) (use caps for username and schema)

12 MySQL Workbench Expand a database to see its details (as shown) Expand “Tables” to view tables in schema (as shown) Expand a table to see its fields (and possibly other details) Right-click on a table name and click “Select Rows” to see its data (as shown) Click on a table (in Schemas) to view column details here Version 6 will also display some constraint information here

13 MySQL Workbench Click a tab to execute SQL commands on a database SQL scripts can be saved Use the lightning bolt button to execute a highlighted statement or all statements if none highlighted (as shown) Use the lightning bolt with cursor button to execute the statement on which the cursor lies View results of executed query(ies) Enable or disable autocommit (automatically write changes to disk) If autocommit is disabled, the commit and rollback buttons will become enabled


Download ppt "DATABASE TOOLS CS 260 Database Systems. Overview  Database accounts  Oracle SQL Developer  MySQL Workbench."

Similar presentations


Ads by Google