一、前提依赖
1、假设是Windows环境
2、假设Oracle已经安装成功
3、假设监听器创建成功
4、假设数据库创建成功
5、假设已经用Navicat使用SYSTEM账户链接数据库
二、执行命令
--创建命名空间
create tablespace tablespace_localhost datafile 'D:\oracle\tablespaces\localhost.dbf' size 1024M;
--创建用户
create user root identified by root default tablespace tablespace_localhost;
--授权
--表示把 connect,resource权限授予root用户
grant connect,resource to root;
--授权dba
grant dba to root;