Sie sind auf Seite 1von 2

How to Run The Project

---------------------(A).Initialize the Database


1.Initialize administrator table
(a) create the table admin as follows
create table admin (adminname varchar2(20),adminpsw varchar2(20));
(b) insert some rows into admin table as follows
insert into admin values('&adminname','&adminpsw');
2.Initialize empployee table
(a) create the table emptable as follows
create table emptable(empid varchar2(20) primary key, empname varchar2(2
0),empsal number(8,2),empaddress varchar2(50),empbranch varchar2(20),emphiredate
date,emppsw varchar2(20));
(b) insert some rows into emptable table as follows
insert into emptable values('&empid','&empname',&empsal,'&empaddress','&
empbranch','&emphiredate','&emppsw');
3.Initialize stock table
(a) create the table for stock as follows
create table stock(stocktype varchar2(4),availability number(8));
(b) insert some rows into stock table as follows
insert into stock values('&stocktype',&availability);
4.Initialize customertransacation table
(a) create the table for customertransaction as follows
create table customertransaction (custname varchar2(20),custaddress va
rchar2(50),ornamenttype varchar2(20),ornamentmodel varchar2(20),qualitytype varc
har2(20),weight number(10),totalcost number(10,4),branchname varchar2(20),orderd
ate date);
5.Create and compile the following procedures in Oracle DataBase
(a) adminexistprocedure
(b) oprexistprocedure
(c) empidexistprocedure

(B).Install Apache Tomcat Server


1.You just double click on the icon of "Apache Tomcat Server".
2.Make sure that You have already installed JAVA in your system
3.Make sure that port number(7070) you are going to specify for Tomcat Serve
r doesn't conflict with that of Oracle

(C).Run the Tomcat Server


1.start->All Programs->Apache Tomcat6.0->Monitor Tomcat

2.You can find an icon of Tomcat at the notification area of task bar
3.Right click on the icon and then select Start service
(D).Run the project
1.Click on the Internet Explorer icon
2.Type in the address bar of Internet Explorer interface the following URL
"http://localhost:7070/myproject/home.html"
3.Go through the directions

Das könnte Ihnen auch gefallen