How to delete a user in Oracle 10 including all it's tablespace and datafiles

前端 未结 3 1133
迷失自我
迷失自我 2021-01-31 20:45

When I give the command to drop a user i.e. DROP USER \'username\' cascade,

  1. Does it deletes all the tablespace and datafiles used by that particular user.

3条回答
  •  北荒
    北荒 (楼主)
    2021-01-31 21:21

    You can check which table space is used by which user with the following query.

    SELECT USERNAME, DEFAULT_TABLESPACE FROM DBA_USERS;
    

    You can also see the list of table spaces by looking at the following tables

    DBA_TABLESPACES
    USER_TABLESPACES
    

提交回复
热议问题