Oracle之表空间和用户和kill会话

2016/11/03 Oracle 共 448 字,约 2 分钟

创建表空间

create  bigfile tablespace 表空间名 datafile /xxx/xxx/xxx.dbf size 100m autoextend on next 1024m nologging;

创建用户

create user 用户 identified by 密码
	default tablespace 表空间名
	temporary tablespace temp;
	profile default;

删除用户

drop user 用户名 cascade;

删除表空间以及文件

drop tablespace weishu_tbs including contents and datafiles;

删除正在连接的用户

查看status

select t.USERNAME,t.SID,t.SERIAL#,t.STATUS from v$session t where lower(username)='XXX';

杀掉sid,sersial#

alter system kill session '822,8993'

删除用户

drop user weishu cascade;

 

文档信息

Search

    Table of Contents