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;
浙公网安备 33010602011771号