ORACLE常用增加用户、表空间语句

 

查询表空间的文件路径

select * from dba_data_files ;

 

 

创建表空间

system用户下执行以下SQL:

create tablespace  表空间名 datafile  '路径\表空间文件名.dbf'  size 30G autoextend on  next  30M;

 

创建用户

create user newnhbi_work
identified by newnhbi_work
default tablespace users
temporary tablespace temp
profile default account unlock;
grant connect to newnhbi_work;
grant dba to newnhbi_work;
grant unlimited tablespace to newnhbi_work;

去除用户密码期限

ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;

 

posted on 2022-11-16 10:18  巍巍之道  阅读(133)  评论(0编辑  收藏  举报

导航