Introduction to Databases & Oracle: COMP 316 Module 1, Summaries of Computer Science

This module provides an introduction to databases and the oracle database management system (dbms). It covers fundamental concepts like database definitions, types of databases, and the purpose of dbms. The module also explores the key components of a database, including tables, rows, columns, schemas, indexes, primary keys, foreign keys, and views. It concludes with an overview of oracle database, its benefits, system requirements, and installation steps. The module also includes basic sql commands for interacting with databases.

Typology: Summaries

2024/2025

Uploaded on 02/05/2025

exam_master
exam_master ๐Ÿ‡ฐ๐Ÿ‡ช

17 documents

1 / 18

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Advanced Database
Systems in Oracle
COMP 316 - September 2024
Module 1 -Introduction to Databases & Oracle
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12

Partial preview of the text

Download Introduction to Databases & Oracle: COMP 316 Module 1 and more Summaries Computer Science in PDF only on Docsity!

Advanced Database

Systems in Oracle

COMP 316 - September 2024

Module 1 -Introduction to Databases & Oracle

1

Useful Links

โ— Google Meet Link: https://calendar.app.google/gxfacEvrHmt8aFhs

โ— Course Notes and Resources: https://drive.google.com/drive/folders/149HyG8VB-snBjAJpeFLgTEH8vkP jH6wk?usp=sharing

โ— Q/A Form: https://forms.gle/2qgkUozWgoNuzRBf

1-

Overview of Databases โ— Definition of a Database: A collection of organized data that can be easily accessed, managed, and updated.

โ— Database Management System (DBMS): Software that handles the storage, retrieval, and updating of data in a database.

โ—‹ Examples: Oracle, MySQL, SQL Server, PostgreSQL.

โ— Purpose of Databases:

โ—‹ Store and manage large amounts of data.

โ—‹ Ensure data integrity, security, and accessibility.

โ—‹ Enable efficient querying and reporting.

Types of Databases Relational Databases (RDBMS):

โ— Organize data into tables (rows and columns). โ— Use SQL (Structured Query Language) to manage and query data. โ— Examples: Oracle, MySQL, PostgreSQL.

Types of Databases

Types of Databases

Hierarchical Databases: โ— Organize data in a tree-like structure. โ— Example: IBM Information Management System (IMS).

Types of Databases Graph Databases: โ— Uses graph structures with nodes (entities), edges (relationships), and properties (attributes of nodes/edges) to store and manage data. โ— Use Cases: Social Networks, Recommendation Engines, Fraud Detection

Types of Databases

Object-Oriented Databases (OODBMS): โ— A database that integrates object-oriented programming (OOP) concepts with database technology. โ— Data is stored in the form of objects, as used in OOP languages like Java, Python, and C++.

Introduction to Oracle Database โ— System Requirements: โ—‹ Operating System: Windows, Linux, or macOS. โ—‹ RAM: Minimum of 4GB (recommended: 8GB or more). โ—‹ Disk Space: 10GB for installation and data storage. โ— Installation Steps: โ—‹ Download Oracle Database Express Edition 21c โ—‹ Run the installer and follow the setup wizard. โ—‹ Configure Global Database Name and SID (System Identifier). โ—‹ Set up Admin Credentials (SYS, SYSTEM users). โ—‹ Choose default options for storage and memory management or customize as needed. โ—‹ Start the Oracle Database service post-installation. (^) 1-131-

Basic SQL Commands โ— SQL (Structured Query Language): The language used to interact with databases. โ— Basic SQL Commands: โ—‹ SELECT: Retrieve data from one or more tables. โ–  Example: SELECT * FROM employees ; โ—‹ INSERT: Add new records to a table. โ–  Example: INSERT INTO employees (name, position) VALUES ('John Doe', 'Manager'); โ—‹ UPDATE: Modify existing records in a table. โ–  Example: UPDATE employees SET position = 'Senior Manager' WHERE id = 1; (^) 1-141-

Key Components of a Database โ— Tables: โ—‹ A collection of related data in rows and columns. โ—‹ Each table has a unique name and stores data records (rows) with attributes (columns). โ— Rows and Columns: โ—‹ Row (Tuple): A single record in the table. โ—‹ Column (Field): An attribute of the data stored in the table. โ— Schemas: โ—‹ The structure that defines how data is organized in a database. โ—‹ Includes tables, views, indexes, and relationships.

Key Components of a Database

โ— Indexes:

โ—‹ Used to speed up searches by creating an internal map of the data in the table.

โ— Primary Key:

โ—‹ A unique identifier for each record in a table. No two records can have the same primary key.

โ— Foreign Key:
โ—‹ A field in one table that refers to the primary key in another table,

creating a relationship between the tables.

โ— Views:

โ—‹ Virtual tables created by querying one or more tables. 1-171-