Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Relational Databases
A relational database is a collection of data items organized as a set of formally-described tables from which data can be accessed or reassembled in many different ways without having to reorganize the database tables. It stores all its data inside tables, and nothing more. All operations on data are done on the tables themselves or produces another tables as the result.
Relational Databases
Table Structure
A table is a set of rows and columns. It has a set of tables containing data fitted into predefined categories. Each table (which is sometimes called a relation) contains one or more data categories in columns. Each row contains a unique instance of data for the categories defined by the columns.
Relational Databases
Normalization
Normalization is the process of efficiently organizing data in a database. Advantages of the normalization process
Eliminating redundant data (for example, storing the same data in more than one table) Ensuring data dependencies make sense (only storing related data in a table).
Relational Databases
Key Fields
Key fields uniquely identify each row of data on a relational database table.
If there can be only one ID per student, then the key would be STUDENT_ID on the PSU_STUDENT_TBL. If a student can have more than one recorded skill and more than one degree, then we would need two additional tables, each with STUDENT_ID as a key plus at least one more key field to uniquely identify rows of data.
Relational Databases
Parent Child Tables
During normalization, the breakdown of data based on a single field that occurs multiple times indicates a parent/child relationship . The table holding basic Student information and the tables constructed to hold data about a Students Experience and a Students Educational background represent parent/child relationships. A child table must have all the key fields of the parent table in the same order plus at least one additional key field.
Relational Databases
Parent Child Tables
Data Model
It is a diagram of the underlying database tables and their relationships. It is often helpful to have a map illustrating the various tables and their interrelationships
SYSOBJECTS SYSCOLUMNS
PSRECDEFN PSPNLDEFN
PS_PSU_STUDENT_TBL PS_PSU_INSTR_TBL
Query Analyzer
SQL SELECT Syntax SELECT [COLUMNS] FROM [TABLE_NAME] SELECT [COLUMNS] FROM [TABLE_NAME] WHERE [COLUMN1] = [CONDITION] SELECT [COLUMNS] FROM [TABLE_NAME] WHERE [COLUMN1] = [CONDITION] ORDER BY [COLUMNS] [DESC/ASC] SELECT [COLUMNS],GROUP FUNCTIONS FROM [TABLE_NAME] WHERE [COLUMN1] = [CONDITION] GROUP BY [COLUMNS] Group Functions Max/Min/Count/Sum
Query Analyzer
SQL INSERT/UPDATE/DELETE Syntax INSERT INTO [TABLE_NAME] [COLUMNS] VALUES[VALUE1,VALUE2] UPDATE [TABLE_NAME] SET [COLUMN] = [VALUE] WHERE [COLUMN1] = [CONDITION] DELETE FROM [TABLE_NAME] WHERE [COLUMN1] = [CONDITION]
Query Analyzer
Online Page Action Command Retrieve data from the search page in an Update mode. Use the Add action to add a new search key to a control table Resulting SQL
SELECT INSERT
Use Alt + 7 (Row Insert) to add a row with an existing search key to a INSERT transaction tab le in an Update mode.
Save a page.
COMMIT
DELETE
ROLLBACK UPDATE
(2 TIER Connectivity)
Database Server Client
ODBC CONNECTIVITY
Advantages
Simpler architecture requiring only client workstation and database server components to be installed. System administrators are not required to invest time learning application server administration. No need to consider purchasing either an additional machine or upgrading an existing machine to use as an application server.
Features of PIA
Pure Internet Server-centric Component-centric Four-tier Architecture
Network Protocol The protocol used is HTTP Security - SSL security can be implemented in PIA
Web Browser
Uses HTTP protocol Receives only:
HTML / XML Java script Cookie
Browse r
HTTP/HTTPS
Web server
Jolt/Tuxedo
Application server
DB SQL server
Web Server
Web services HTTP, XML, SOAP, WSDL, and UDDI Servlet Engine Java Servlets:
Page Servlets: Content Retrieval and Page Assembly Portal Servlets: Content Retrieval and Page Assembly Integration Gateway Servlets: Listener Connectors Report Repository Servlets
Browser
HTTP/HTTPS
Web Server
Jolt/Tuxedo
Application Server
SQL
DB Server
These requests move to the Web Server From the Webserver the request is passed to the Application server which communicates with the database. The response to request follows the reverse path
Application Server
It is the Heart of PIA - contains all application logic / HTML / XML generation Supports Lightweight Directory Access Protocol (LDAP) integration
LDAP
Browser HTTP/HTTPS
Web Server
Jolt/Tuxedo
Applicatio n Server
SQL
DB Server
APPLICATION SERVER
BROWSER
WEB SERVER
HR Domain
HR Database
BROWSER
Database Server
Consists of application data and metadata Contains three types of PeopleSoft tables: System Catalog Tables PeopleTools Tables Application Data Tables
Browser
HTTP/HTTPS
Web Server
Jolt/Tuxedo
Application server
SQL
DB Server
Components of Process Scheduler: Process Scheduler Server Agent Distributed Agent The Process Scheduler is used to schedule the processes in PeopleSoft. It can be consider as a part of the Application Server and communicates with the DB directly.
Logging in PIA
Sign In
User Id Password
PIA URL
Web Server
PS Portal Servlet
Menu
Component
Ref Type
Hot Keys
Access Keys
Question???