일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- oracle system lock
- mssql database 삭제
- oracle account_status expired
- oracle 테스트 데이터
- oracle datapump
- SQL Server
- oracle
- partition_options=merge
- MSSQL
- oracle dba_profile password_life_time
- sql user 생성
- create role
- supplemental log 활성화
- oracle pdb
- 오라클
- ora-28002: the password will expire within 7 days
- oracle role 삭제
- SSMS
- Oracle RAC
- oracle SCN
- Oracle Database
- oracleasm
- oracle supplemental
- ora-00439: feature not enabled: partitioning
- ora-39083 ora-00439
- oracle tde
- oracle 파티션 datapump
- oracle install
- oracle awr
- ORA-00020
Archives
- Today
- Total
신문지한장
[SQL] oracle schema 및 tablespace 삭제 추출문 본문
OS : CentOS7.9 (64bit)
DB : Oracle Database 11g ( Release - 11.2.0.4 ) [모든 버전 적용]
1. schema 삭제 추출문
select 'DROP USER ' || username || ' cascade;' From dba_users where account_status>= 'OPEN' order by created;
2. tablespace 삭제 추출문
select distinct 'DROP TABLESPACE ' || tablespace_name || ' INCLUDING CONTENTS AND DATAFILES;'
from dba_data_files
where tablespace_name not in ('SYSTEM','SYSAUX','USERS','UNDOTBS1','UNDOTBS2','DRSYS','RBS','TEMP','TOOLS');
'Oracle > sql&script' 카테고리의 다른 글
oracle hotbackup check (0) | 2024.04.18 |
---|---|
[SQL] redo log 그룹, 멤버 조회 (1) | 2024.01.04 |
[SQL] Tablespace 및 Datafile 조회 (0) | 2024.01.04 |
[SQL] datapump(exp/imp) 이관시 tablespace & temptablespace 생성 추출문 (0) | 2023.11.30 |
[SQL] oracle 이관 시 확인해야 할 정보 (as-is, to-be) (0) | 2023.11.25 |