create index emp_sal
on emp(sal);
create index emp_job
on emp(job);
-- index_name 조회
select index_name
from user_indexes
where table_name='EMP';
drop table emp;
-- index도 같이 drop 되어서 조회 안됨
select index_name
from user_indexes
where table_name='EMP';
💡 emp table을 drop 하면 관련 index나 제약들이 모두 drop 됨
show recyclebin;
EMP_JOB BIN$9HANvoBuRYqVa/oHWqeYLw==$0 INDEX 2025-07-15:11:57:00
EMP_SAL BIN$ltgwXZ0UTX6ahXTbuQ/wTw==$0 INDEX 2025-07-15:11:57:00
EMP BIN$b2AN+vEaRBerdfK5x5i0Rw==$0 TABLE 2025-07-15:11:57:00
flashback table emp to before drop;
select * from emp;
select index_name, column_name
from user_ind_columns
where table_name='EMP';
alter index "BIN$ltgwXZ0UTX6ahXTbuQ/wTw==$0" rename to emp_sal;
alter index "BIN$9HANvoBuRYqVa/oHWqeYLw==$0" rename to emp_job;
create index dept_loc
on dept(loc);
drop table dept;
select index_name
from user_indexes
where table_name='DEPT';
show recyclebin;
flashback table dept to before drop;
select * from dept;
select index_name, column_name
from user_ind_columns
where table_name='DEPT';
alter index "BIN$35uHuU5pRpunYWUsEQwEBw==$0" rename to dept_loc;