1. sysdba 접속
관리자 권한으로 데이터베이스에 접속합니다.
[kevin@cheroky admin]$ gsql --as sysdba Copyright (c) 2010, 2012, Sunje Software, Inc. All rights reserved. Release 2012.2.1.0 revision(11831) Connected to SUNDB Database. gSQL> |
2. create user
ID : orange , PASSWORD : yellow 인 사용자를 생성하고, Default Tablespace와 Temporary Tablespace를 지정 합니다.
- Default Tablespace : DATA의 기본저장소로 사용됩니다.
- Temporary Tablespace : Index의 기본저장소로 사용됩니다.
ALL 권한을 부여합니다.
gSQL> create user orange identified by yellow default tablespace TBS_DATA_USR Temporary Tablespace TBS_INDX_USR; User created. gSQL> grant all privileges on database to orange; Grant succeeded. gSQL> |