Oracle创建用户和解决锁表问题

阅读更多
1.oracle创建用户
-- Create the user 
create user WANDA_WXG
  default tablespace SYSTEM
  temporary tablespace TEMP
  profile DEFAULT
  password expire;
-- Grant/Revoke role privileges 
grant connect to WANDA_WXG;
grant dba to WANDA_WXG;
grant resource to WANDA_WXG;
-- Grant/Revoke system privileges 
grant unlimited tablespace to WANDA_WXG;

 

 

2.解决Oracle锁表问题
select t2.SID,t2.SERIAL# a from v$locked_object t1,v$session t2 where t1.SESSION_ID = t2.SID
alter system kill session 'sid,SERIAL#';

 

你可能感兴趣的:(Oracle创建用户和解决锁表问题)