Assignment #3: Department of Computer Science Spring Semester 2016
Assignment #3: Department of Computer Science Spring Semester 2016
Assignment #3: Department of Computer Science Spring Semester 2016
DataBase Designer:
The term database design can be used to describe many different parts of
the design of an overall database system. Principally, and most correctly, it
can be thought of as the logical design of the base data structures used to
store the data. In the relational model these are the tables and views. In
an object database the entities and relationships map directly to object
classes and named relationships. However, the term database design could
also be used to apply to the overall process of designing, not just the base
data structures, but also the forms and queries used as part of the overall
database application within the database management system (DBMS).
Question 2:
Steps of Oracle 11g Installations:
Leave EMail blank.
Un-check …Receive Security Updates… tick-box.
Click Next.
If integration with Oracle Support is required, it can be configured later.
Click Yes.
Depending upon the specification of the desktop wait for approx 30 mins…
Database Console can be configured later.
Click OK.
Note down any information required from the Database Configuration Assistant
summary.
Click OK.
Click Close.
Question 3:
Steps of ORACLE 10g forms installation and configuration
Setting Environment Variables:
Important:
1. Select Start > Settings > Control Panel > System.
2. Select the Environment tab.
3. Select the TMP or TEMP variable from the User Variables for username list box.
4. Change the Value field to a directory with 300 MB, or more, of free space.
5. Click Set.
6. Click OK.
1. Select Start > Settings > Control Panel > System.
2. Select the Advanced tab.
3. Click Environment Variables.
4. Select the TMP or TEMP variable from the User Variables for username list box.
5. Click Edit.
6. Change the Variable Value field to a directory with 300 MB, or more, of free
space.
7. Click OK until you exit System Properties.
1. Select Start > Settings > Control Panel > System.
2. Select the Performance tab.
3. Click Change.
4. Select the appropriate drive and enter the new value in the Initial size
(MB) field.
5. Click Set.
6. Click OK until you exit System Properties.
1. Select Start > Settings > Control Panel > System.
2. Select the Advanced tab.
3. Click Performance Options.
4. Click Change.
5. Select the appropriate drive and enter the new value in the Initial size
(MB) field.
6. Click Set.
7. Click OK until you exit System Properties.
Question 4:
Open sql developer and Login from user
Click on table
Right click on table and create new table Student
Use + to add attributes (SID,SNAME,SAGE,SADD).
Classify each attribute with a data type eg varchar2,char,number,date (SID
number(10), SNAME varchar2(20))
Use not null function and tick on primary key (SID number(10) not null)
Right click on edit and use constraint option (primary key(SID))
CTRL + S to save
Question 5:
Steps for view are;
Select the desirable table (Student) for creating view
Right click on view to create new view with a view name eg STUD_INFO
Select required column for view(SID,SNAME)
Question 6:
DML QUERY
STUDENT
go_block('STUDENT');
insert_record;
execute_query;
commit;
go_block('STUDENT');
delete_record;
execute_query;
commit;
COURSE
go_block('COURSE');
insert_record;
execute_query;
commit;
go_block('COURSE');
delete_record;
execute_query;
commit;
TEACHER
go_block('TEACHER');
insert _record;
execute_query;
commit;
go_block('TEACHER');
delete_record;
execute_query;
commit;
DDL QUERY
STUDENT
NEW_FORM (FRMSTUDENT) VARCHAR2;
COURSE
NEW_FORM (FRMCOURSE) VARCHAR2;
TEACHER
NEW_FORM (FRMTEACHER) VARCHAR2;
STUDENT
exit_form;
COURSE
exit_form;
TEACHER
exit_form;