在linux中,oracle数据库只能创建一个。但是可以为不同的用户创建不同的表空间。格式如下:
create tablespace antispam datafile'\oracle\oradata\antispam\dbantispamtemp.dbf' size 50M autoextend on next 128k maxsize unlimited;
create temporary tablespace antispamtmp tempfile 'dbantispamtmp.ora' size 5M autoextend on next 128k maxsize unlimited;
create user anti_spam identified by lanhuo default tablespace antispam temporary tablespace antispamtmp account unlock;
然后对用户,付相应的权限:
grant dba,resource,connect to anti_spam;
liunx 下图形化建立 oracle 数据库
命令模式下
dbca
来打开图形化界面。