...
코드 블럭 | ||||
---|---|---|---|---|
| ||||
create user userID identified by userpassword default tablespace user_tablespace quota unlimited on user_tablespace; |
위의 명령어로 user를 만든 후 다음 명령어로 quota가 잘만들어졌는지 확인해본다.
코드 블럭 |
---|
select tablespace_name, username, bytes, max_bytes
from dba_ts_quotas
where tablespace_name = 'USER_TABLESPACE' and username = 'JIRA';
위의 결과값이 아무것도 나오지 않으면(no rows selected) 문제가 있는 것이고
아래와 같이 나오면 quota가 주어진 것, 즉 해당 유저로 insert table 같은 것이 unlimited하게 사용할 수 있게 잘 설정해준 것이다.
TABLE USERNA BYTES MAX_BYTES
----- ------ ---------- ----------
USERS FOOBAR 0 10485760
1 row selected. |
펼치기 | ||
---|---|---|
| ||
oracle 12c에서는 위의 명령어에서 다음과 같은 에러가 난다. ERROR at line 1: 이를 방지하기 위해
를 해준다. 자세한 사항은 https://wookoa.tistory.com/239 참고 |
...