일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- sql user 생성
- oracle install
- oracle account_status expired
- oracle datapump
- oracle 테스트 데이터
- ora-00439: feature not enabled: partitioning
- SQL Server
- Oracle RAC
- mssql database 삭제
- oracle pdb
- partition_options=merge
- oracle supplemental
- ora-39083 ora-00439
- oracle
- 오라클
- Oracle Database
- SSMS
- oracle awr
- oracleasm
- MSSQL
- oracle dba_profile password_life_time
- oracle SCN
- ORA-00020
- oracle role 삭제
- oracle 파티션 datapump
- supplemental log 활성화
- ora-28002: the password will expire within 7 days
- create role
- oracle system lock
- oracle tde
Archives
- Today
- Total
신문지한장
[SQL] oracle user 생성 및 삭제 본문
OS : CentOS 7.9
DB : Oracle Database 19c(19.23.0)
1. user 계정 생성
SQL> create user testuser identified by 1234
default tablespace testtbs // default tablespace 지정하는 부분
temporary tablespace temp // temporary tablespace 지정하는 부분
quota unlimited on testtbs // 할당량 지정 : 무제한
quota 0m on system; // system tablespace 사용 못하게 지정
2. user default tablespace, temporary_tablespace 정보 확인
SQL> select username,account_status,default_tablespace,temporary_tablespace from dba_users order by 1;
* 12c 부터 적용되는 quota
SQL> alter user SCOTT quota unlimited on USERS;
SQL> grant unlimited tablespace to SCOTT;
3. 사용자 계정 삭제 연관되어 있는거까지 전부 삭제
SQL> drop user test cascade;
*PDB일 경우 사용자 계정 생성하기전 아래 파라미터 변경 필수
C##을 붙여야 계정생성이 가능해서 C## 제거하고 생성하기 위함
SQL> ALTER SESSION SET "_ORACLE_SCRIPT"=TRUE;
'Oracle > sql&script' 카테고리의 다른 글
[SQL] 테스트 테이블 sql (DEPT, EMP) (1) | 2025.01.14 |
---|---|
[SQL] Oracle Supplemental logging 종류 및 사용 법 (ALL columns, PK columns) (0) | 2024.12.03 |
[SQL] oracle 파티션 테이블 생성 및 조회 (0) | 2024.12.02 |
[SQL] SCN으로 아카이브 파일 정보 확인하기 (0) | 2024.12.02 |
[SQL] oracle clean.sh (2) | 2024.11.20 |