티스토리 뷰
1. user 생성
a. 일반 접속만 되는 user
conn / as sysdba;
undefine UserName;
create user &&UserName identified by "&Password"
/
select username from dba_users where username=upper('&UserName')
/
prompt Show Grant!!!!
select grantee, privilege from dba_sys_privs
where grantee=upper('&UserName')
/
undefine UserName;
b. schema 유저(객체를 소유한 유저)- quota,create table,create index, create procedure,create view, etc
conn / as sysdba;
undefine username;
CREATE USER &&username
PROFILE DEFAULT
IDENTIFIED BY "&Password"
DEFAULT TABLESPACE EXAMPLE
QUOTA 10 M ON EXAMPLE
ACCOUNT UNLOCK
/
GRANT create session,
create table,
create any index,
create procedure,
create view,
CONNECT TO &username
/
select username from dba_users where username=upper('&username')
/
select grantee, privilege from dba_sys_privs
where grantee=upper('&username')
/
'DataBase > Oracle' 카테고리의 다른 글
PL/SQL 예제 리스트 (0) | 2012.10.17 |
---|---|
스크립트파일 (0) | 2012.10.17 |
oracle service 등록 (0) | 2012.10.17 |
오라클 스크립트 oracle.sh (0) | 2012.10.17 |
Archive mode 끄고 켜기 (0) | 2012.10.17 |
- Total
- Today
- Yesterday
- 투싼
- recovery
- 한글
- 인덱스
- Flashback
- MS-SQL
- Backup
- 오라클
- PL/SQL
- postgresql jsonb index
- 아이폰4
- iPhone
- iOS5
- 독도
- query 잘림
- 갤럭시S
- 출시일
- parameter
- postgresql pg_stat_activity
- 리눅스
- SQLPlus
- 아이폰
- oracle
- index
- linux
- 윈도우
- postgresql jsonb
- PostgreSQL
- tablespace
- Managing Schema Objects