top of page

CREATE commands

 ------------------napravi korisnika MIKI sa passwordom test

 SQL>create user MIKI identified by test;   

 

-------------------napravi tablespace APLIKACIJA velicine 1G

 SQL>create tablespace APLIKACIJA datafile size 1G;    

 

-------------------napravi tabelu NIKOLA.RANGO kao VIEW DBA_USERS bez podataka user tabela

  SQL>create table NIKOLA.RANGO as select * from DBA_users where 1=2;      

 

 ------------------user nikola pravi tabelu u tablespace u PROIZVODNJA istog formata kao DBA_USERS , prazna tabela

SQL>create table NIKOLA.BRADILKO tablespace PROIZVODNJA as select * from sys.dba_users where 1=2; 

 

 ----------------- napravi TABLESPACE za ovu putanju

SQL>create tablespace TEST datafile '/u01/app/oracle/oradata/baza131/datafile/BAZA131/datafile/TEST01.dbf' SIZE 55M autoextend on maxsize 333M;         

 

iz Developera 

SQL>create synonym mil_prijem for integra.mil_prijem;

                                         ime_tabele                user.ime_tabele              

                                    kako bi da se zove

 

 

© 2015 by Sasa Djuric

  • Twitter Square
  • facebook-square
bottom of page