ORACLE DA TABLESPACE OLUŞTURMA VE EKLEME YAPMA
TABLESPACE
OLUŞTURMA
1)Datafile’ları görüntülüyoruz:
SQL> select name from v$datafile;
NAME
--------------------------------------------------------------------------------
/u01/app/oracle/oradata/orcl/system01.dbf
/u01/app/oracle/oradata/orcl/mytbs01.dbf
/u01/app/oracle/oradata/orcl/sysaux01.dbf
/u01/app/oracle/oradata/orcl/undotbs01.dbf
/u01/app/oracle/oradata/orcl/example01.dbf
/u01/app/oracle/oradata/orcl/users01.dbf
/u01/app/oracle/oradata/orcl/deneme01.dbf
/u01/app/oracle/oradata/orcl/deneme02.dbf
8 rows selected.
2)Tablespace oluşturuyoruz:
SQL> create tablespace deneme_3 datafile
'/u01/app/oracle/oradata/orcl/deneme1.dbf' size 50M autoextend on next 5M
maxsize 50M;
Tablespace created.
3)Tablespace’e ekleme yapıyoruz:
SQL> ALTER
TABLESPACE deneme_3 ADD DATAFILE
'/u01/app/oracle/oradata/orcl/yavuzselim.dbf' SIZE 10M AUTOEXTEND ON NEXT 10M
MAXSIZE UNLIMITED;
Tablespace altered.
SQL> select name from v$datafile;
NAME
--------------------------------------------------------------------------------
/u01/app/oracle/oradata/orcl/system01.dbf
/u01/app/oracle/oradata/orcl/mytbs01.dbf
/u01/app/oracle/oradata/orcl/sysaux01.dbf
/u01/app/oracle/oradata/orcl/undotbs01.dbf
/u01/app/oracle/oradata/orcl/example01.dbf
/u01/app/oracle/oradata/orcl/users01.dbf
/u01/app/oracle/oradata/orcl/deneme01.dbf
/u01/app/oracle/oradata/orcl/deneme02.dbf
/u01/app/oracle/oradata/orcl/deneme1.dbf
/u01/app/oracle/oradata/orcl/yavuzselim.dbf
10 rows selected.
Yorumlar
Yorum Gönder