set echo off verify off pause off feedback on termout on
spool oratut.log
grant connect,resource to oratut identified by *******;
prompt Connecting to oratut
connect ********/*******
drop table calls;
drop table lookup;
drop sequence seq_nr;
prompt Creating calls
prompt Creating lookup
create table lookup(
rem ###############################################################
prompt Creating sequences
rem ###############################################################
create sequence seq_nr
grant all on calls to system with grant option;
grant select on calls to public;
grant all on lookup to system with grant option;
grant select on lookup to public;
grant select on seq_nr to public;
connect SYSTEM/PWD;
revoke connect from oratut;
grant connect to ***** identified by *****;
grant select,update,insert, delete on oratut.calls to *****;
grant select,update,insert, delete on oratut.lookup to *****;
exit