删除用户和表空间 ## 删除用户 drop user userName cascade; ## 如果用户无法删除,并报错: ## ERROR at line 1: ## ORA-01940: cannot drop a user that is currently connected ## 通过查看用户的进行,并kill用户进程,然后删除用户. select sid,serial# from v$session where username='userName'; alter system ki…
1.1 删除表空间 drop tablespace QBKJ including contents and datafiles; 1.2 删除用户 drop user admin cascade; 1.3 创建表空间 create tablespace QBKJ datafile 'D:\app\oracle_tablespaces\QBKJ.dbf' size 1024M autoextend on next 5M maxsize 20480M; 注意:创建表空间时,路径要有,如o…