Skrypty z rozdziau 3 ksiki ORACLE9i, podrcznik administratora.  Wicej informacji w pliku readme.doc.


alter user UYTKOWNIK quota 0 on SYSTEM;

create user NAZWA_UYTKOWNIKA identified by HASO
default tablespace NAZWA_PRZESTRZENI_TABEL;

alter user NAZWA_UYTKOWNIKA default tablespace NAZWA_PRZESTRZENI_TABEL;


alter index EMPLOYEE$DEPT_NO rebuild
tablespace INDEXES
storage (initial 2M next 2M pctincrease 0);


create table JOB
(Job_Code     NUMBER,
Description   VARCHAR2(35),
constraint JOB_PK primary key (Job_Code)
using index tablespace INDEXES
storage (initial 2M next 2M pctincrease 0))
tablespace DATA
storage (initial 5M next 5M pctincrease 0);


alter table EMPLOYEE_TYPE
  add constraint UNIQ_DESCR  unique(DESCRIPTION)
using index tablespace INDEXES_2;


alter user SYSTEM quota 50M on TOOLS;


alter index TOOLTAB_PK rebuild
tablespace TOOLS_I
storage (initial 2M next 2M pctincrease 0);


set transaction use rollback segment SEGMENT_NAME


create user NAZWA_UYTKOWNIKA identified by HASO
default tablespace DATA
temporary tablespace TEMP;


alter user NAZWA_UYTKOWNIKA temporary tablespace TEMP;


create user NAZWA_UYTKOWNIKA identified by HASO
default tablespace NAZWA_PRZESTRZENI_TABEL
temporary tablespace TEMP_USER;

alter user NAZWA_UYTKOWNIKA temporary tablespace TEMP_USER;

create user NAZWA_UYTKOWNIKA identified by HASO
default tablespace USERS
temporary tablespace TEMP;

alter user NAZWA_UYTKOWNIKA default tablespace USERS;
alter user NAZWA_UYTKOWNIKA quota nnnn on USERS;


alter tablespace TEMP_WORK read only;





