INTools_Administration
INTools_Administration
By KAUSIK BISWAS
KEC I&C Deparment
1
Two types of administration job
¾ System Administrator
Initialize and assign a domain.
Create a department.
Add users to the SmartPlant Instrumentation user list.
2
REVISION OF BASICS
3
RDBMS
In a RDBMS, the data is logically perceived
as tables.
Tables are logical data structures that we assume
hold the data that the database intends to represent.
Tables are not physical structures.
Each table has a unique name.
4
Relational Databases
Most common data management scheme
Data is organized into two-dimensional
tables of rows and columns
– Data is decomposed to its simplest form
– Normalization reduces data inconsistency
– Referential integrity
5
What are the “normal forms”?
E. F. Codd in 1972 wrote a paper on “Further
Normalization of the Data Base Relational Model”
Normal forms reduce the amount of redundancy
and inconsistent dependency within databases.
Codd proposed three normal forms and through
the years two more have been added.
6
The Normal Forms
First Form
– Eliminate replicated data in tables
– Create compact tables for each set of related data
– Identify each set of related data with a primary key
Second Form
– Create separate tables for sets of values that apply to
multiple records
– Relate the tables with a foreign key
Third Form
– Eliminate fields that do not depend on the primary key
7
Candidate Key and Primary Key
of a Relation
The notion of a key is a fundamental
concept in the relational model
– Provides the basic mechanism for retrieving
tuples within any table of the database.
To distinguish a candidate key
– No two different tuples of the relation will have identical
entries in all attributes of the key
– The number of attributes that comprises the key must be
minimal
8
Candidate Key and Primary Key
of a Relation
Since a relation may have more than one
candidate key, one of these candidate keys
should be designated as the primary key
(PK) of the relation.
– The values of the primary key can be used as
the identification and addressing mechanism of
the relation.
– We will differentiate between the different rows
of the relation on the basis of their PK values.
– We will also uniquely retrieve tuples from a
relation based on the values of their PK values. 9
Foreign Keys
10
Foreign Keys
– The table that contains the foreign key is the
child table
– The table that contains the referenced
attribute(s) is the parent table.
– The FK value in each row of a child table is
either
NULL or
Must match the PK value of a tuple of the parent
table.
11
Database Connectivity
Open Database Connectivity (ODBC)
Standard method for applications to request
database information from other applications
(i.e., database servers)
Examples: Oracle, MS-SQL Server, MS-
Access, DB2
12
ODBC Example
Driver
Application Manager
14
Basic SQL Commands
Creating tables with CREATE
Adding data with INSERT
Viewing data with SELECT
Removing data with DELETE
Modifying data with UPDATE
Destroying tables with DROP
15
Examples
INSERT INTO tablename (column_name,…)
VALUES (value,…)
SELECT column,… FROM table,…
WHERE condition
GROUP BY group_by_expression
HAVING condition
ORDER BY order_expression
16
What are the admin activities
17
Activities……
Complete Oracle or MS SQL database maintenance
activities using the SPI Administration Utilities
18
Activities…….
Understand data and system integration issues with
other systems in COMPANY and work with Eng.
Systems and IT to solve the issues .
24