欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

Oracle创建用户的方法

程序员文章站 2022-06-24 20:12:02
创建用户 -- Create the user create user MEP identified by whq1987 default tablespac...

创建用户

-- Create the user 
create user MEP
  identified by whq1987
  default tablespace MEP
  temporary tablespace MEP_TEMP
  profile DEFAULT;
-- Grant/Revoke role privileges 
grant connect to MEP;
grant datapump_exp_full_database to MEP;
grant datapump_imp_full_database to MEP;
grant dba to MEP;
grant exp_full_database to MEP;
grant imp_full_database to MEP;
grant resource to MEP;
-- Grant/Revoke system privileges 
grant alter_user to MEP;
grant comment any table to MEP;
grant create any view to MEP;
grant create session to MEP;
grant create user to MEP;
grant delete any table to MEP;
grant drop user to MEP;
grant export full database to MEP;
grant unlimited tablespace to MEP;