oracle数据库 表空间意外删除问题

#sqlplus
please input user name:ss_hr
input password:ss_hr
连接到:
Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production

SQL> create table emp(
  2         id integer primary key
  3  );
create table emp(
*1 行出现错误:
ORA-00959: 表空间 'TEST' 不存在

今天登陆oracle系统 遇到上述问题,可能是不小心把表空间删掉了

于是改用system账户登陆,查看表空间使用情况

SQL> conn system/cici123love
已连接。
SELECT  tablespace_name FROM dba_tablespaces;

果然显示结果不包含 TEST表空间,下面将一个已有的表空间(CICI)赋予给ss_hr账户

SQL> alter user ss_hr quota unlimited on CICI;

用户已更改。

SQL>create table emp(id integer)tablespace CICI;


表就建立成功啦!

 

 

posted @ 2012-12-26 14:08  王超_cc  阅读(143)  评论(0编辑  收藏  举报