YOU ARE DOWNLOADING DOCUMENT

Please tick the box to continue:

Transcript
Page 1: Oracle Tablespace - Basic

Oracle Database TablespaceEryk Budi Pratama – Dimas Aryo AnggoroAdvanced Database LabInformatics Engineering –Bakrie University

Page 2: Oracle Tablespace - Basic

Tablespace

Oracle stores data logically in tablespacesand physically in datafiles associated with the corresponding tablespace.

Page 3: Oracle Tablespace - Basic
Page 4: Oracle Tablespace - Basic
Page 5: Oracle Tablespace - Basic
Page 6: Oracle Tablespace - Basic
Page 7: Oracle Tablespace - Basic

List tablespaces

select * from user_free_space;

Page 8: Oracle Tablespace - Basic

Create Tablespace

Create tablespace nama-tablespacedatafile ‘nama-datafile.dat’

size 2M autoextend on next 500K

maxsize 4M;

Page 9: Oracle Tablespace - Basic

Altering Tablespace

alter database

datafile ‘nama-datafile.dat’

resize 6M;

Page 10: Oracle Tablespace - Basic

Adding Datafile

alter tablespace dataku add datafile‘nama-datafile.dat’ size 2M;

Page 11: Oracle Tablespace - Basic

Drop Tablespace

drop tablespace nama-tablespaceincluding contents;

Page 12: Oracle Tablespace - Basic

Create User

create user nama_user

identified by password-user

default tablespace dtpraktek;

Page 13: Oracle Tablespace - Basic

Grant & Resource

grant connect to user01;

grant resource to user01;

Page 14: Oracle Tablespace - Basic

Q&A


Related Documents