본문 바로가기
DB/oracle

oracle xe

by 하하IT 2021. 2. 10.

[root@gs product]# echo $ORACLE_HOME
/opt/oracle/product/18c/dbhomeXE
[root@gs product]# echo $ORACLE_SID
XE
[root@gs product]# echo $ORACLE_BASE
/opt/oracle
[root@gs product]#


export ORACLE_SID=XE 
export ORACLE_HOME=/opt/oracle/product/18c/dbhomeXE 
export ORACLE_BASE=/opt/oracle


cd /opt/oracle/product/18c/dbhomeXE/bin

/opt/oracle/product/18c/dbhomeXE/bin/exp 유저명/비밀번호 file=덤프파일명 owner=유저명 statistics=none log=로그파일명 

 


ALTER SESSION SET "_ORACLE_SCRIPT"=true;

drop user gmuser cascade;

 

 

create user gmuser identified by 비밀번호; 

grant connect,  resource to 유저명
grant create view to 유저명;

create tablespace 유저명_data_tbl  datafile 'dbf파일 절대경로' size 1000m extent management local;

create temporary tablespace 유저명_temp_tbl  tempfile 'dbf파일 절대경로' size 500m ;

create tablespace 유저명_index_tbl  datafile 'dbf파일 절대경로' size 1000m extent management local;

 

alter user 유저명 default tablespace 유저명_data_tbl 
temporary tablespace 유저명_temp_tbl; 

grant unlimited tablespace to 유저명;

 

 

/opt/oracle/product/18c/dbhomeXE/bin/imp