表空间不存在ora-00959???

来源:互联网 发布:ubuntu下wine安装qq 编辑:程序博客网 时间:2024/05/10 05:19

学习rman,先建表空间

CREATE TABLESPACE "rman_ts"

NOLOGGING
DATAFILE 'F:\oracle\product\10.2.0\oradata\macdb\DATA01.dbf' SIZE 20M,
'F:\oracle\product\10.2.0\oradata\macdb\DATA02.dbf' SIZE 20M,
'F:\oracle\product\10.2.0\oradata\macdb\DATA03.dbf' SIZE 20M,
'F:\oracle\product\10.2.0\oradata\macdb\DATA04.dbf' SIZE 20M,
'F:\oracle\product\10.2.0\oradata\macdb\DATA05.dbf' SIZE 20M EXTENT

MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO ;

建用户

SQL> create user rman identified by rman#216
2 default tablespace rman_ts
3 temporary tablespace temp;
create user rman identified by rman#216
*
第 1 行出现错误:
ORA-00959: 表空间 'RMAN_TS' 不存在

刚建的表空间啊,坑爹啊.

SQL> select tablespace_name from dba_tablespaces;

TABLESPACE_NAME
------------------------------
SYSTEM
UNDOTBS1
SYSAUX
TEMP
USERS
rman_ts

已选择6行。

明明存在啊.

纠结了半天,原来建表空间时候语句是copy的表空间名"rman_ts",drop掉后,重建,一切ok.