# 테이블 스페이스 생성
create tablespace opendocs datafile '/data/tibero/opendocs_tbl01.dbf' size 1000m autoextend on next 100m;
# 테이블 스페이스 추가시
alter tablespace opendocs add datafile '/data/tibero/opendocs_tbl02.dbf' size 1000m autoextend on next 100m;
2> 사용자 생성 | 삭제 (project / project_pw 계정)
# 사용자 생성
create user project identified by "project_pw" default tablespace opendocs;
# 사용자 삭제
drop user project cascade;
3> 사용자 접속 권한부여
# 접속권한
grant resource, connect to project;
# select 권한
grant select any table to project;
GRANT DROP USER TO EXAM;
GRANT LOCK ANY TABLE TO EXAM;
GRANT SELECT ANY TABLE TO EXAM;
GRANT INSERT ANY TABLE TO EXAM;
GRANT UPDATE ANY TABLE TO EXAM;
GRANT DELETE ANY TABLE TO EXAM;
GRANT SYSDBA TO EXAM;
GRANT CREATE VIEW TO EXAM;
GRANT SELECT ANY SEQUENCE TO EXAM;
GRANT GRANT ANY ROLE TO EXAM;
GRANT EXECUTE ANY PROCEDURE TO EXAM;
GRANT DROP ANY TRIGGER TO EXAM;
GRANT GRANT ANY PRIVILEGE TO EXAM;
GRANT GRANT ANY OBJECT PRIVILEGE TO EXAM;
GRANT EXECUTE ANY LIBRARY TO EXAM;
GRANT CREATE ANY TABLE TO EXAM;
sudo su
cd /home
cp tibero6-bin-FS07_CS_2005-linux64-186930-opt-tested.tar.gz ./
tar zxvf tibero6-bin-FS07_CS_2005-linux64-186930-opt-tested.tar.gz
rm tibero6-bin-FS07_CS_2005-linux64-186930-opt-tested.tar.gz
압축해제 폴더에 license.xml 파일을 복사
cd /home/tibero6/license
cp license.xml ./
get_tip.sh 실행 (환경 파일(.tip)과 tbdsn.tbr, psm_commands 파일이 생성)
cd /home/tibero6/config
./gen_tip.sh
-----------------------------------------------------------
Using TB_SID "opendocs"
/home/tibero/Tibero/tibero6/config/tibero.tip generated
/home/tibero/Tibero/tibero6/config/psm_commands generated
/home/tibero/Tibero/tibero6/client/config/tbdsn.tbr generated.
Running client/config/gen_esql_cfg.sh
Done.
-----------------------------------------------------------
Tibero 서버 ‘NOMOUNT모드’ 기동
tbboot nomount
sys 사용자로 접속
tbsql sys/tibero
※ 아래 에러 발생시 라이브러리 설치
tbsql: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
# 라이브러리 설치
sudo add-apt-repository universe
sudo apt-get install libncurses5
Database 생성
SQL> create database "opendocs"
user sys identified by tibero
maxinstances 8
maxdatafiles 100
character set MSWIN949
national character set UTF16
logfile
group 1 'log001.log' size 100M,
group 2 'log002.log' size 100M,
group 3 'log003.log' size 100M
maxloggroups 255
maxlogmembers 8
noarchivelog
datafile 'system001.dtf' size 100M autoextend on next 100M maxsize unlimited
default temporary tablespace TEMP
tempfile 'temp001.dtf' size 100M autoextend on next 100M maxsize unlimited
extent management local autoallocate
undo tablespace UNDO
datafile 'undo001.dtf' size 100M autoextend on next 100M maxsize unlimited
extent management local autoallocate;
Database created.
SQL> quit
Disconnected.
NOMAL모드로 Tibero 서버 시작
tbdown
tbboot
shell 파일을 실행하여 role / system user / view / package 등을 반영