1、登录
sqlplus / as sysdba;//登陆sys帐户
sqlplus sys as sysdba;//同上
sqlplus scott/tiger;//登陆普通用户scott
2、创建表空间
create tablespace user_data
logging
datafile 'D:\oracle\oradata\Oracle9i\user_data.dbf'
size 50m
autoextend on
next 50m maxsize 20480m
extent management local;
3、创建用户并授予表空间
create user username identified by password
default tablespace user_data
temporary tablespace user_temp;
4、用户授权
grant connect,resource,dba to username;
原文链接:https://www.f2er.com/oracle/213955.html