I can't restore tablespace. ORA-01539: tablespace '' is not online

依然范特西╮ 提交于 2020-12-15 03:52:35

问题


I try to create my first database backup. But it doesn't work. I don't know what I did wrong. Thanks in advance.

Backup tablespace:

BACKUP TABLESPACE USERS FORMAT 'c:\FRA\users%u';

My created backup tablespace:

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
5       Full    150.32M    DISK        00:00:02     28-NOV-20
        BP Key: 5   Status: AVAILABLE  Compressed: NO  Tag: TAG20201128T220319
        Piece Name: C:\FRA\USERS05VGMFT7
  List of Datafiles in backup set 5
  File LV Type Ckp SCN    Ckp Time  Abs Fuz SCN Sparse Name
  ---- -- ---- ---------- --------- ----------- ------ ----
  7       Full 17446796   28-NOV-20              NO    C:\NAUCZANIE\ORADATA\WWWOR\USERS01.DBF

I tried to restore tablespace and I got an error.

RMAN> RUN{
2> SQL 'ALTER TABLESPACE USERS OFFLINE';
3> RESTORE TABLESPACE USER;
4> RECOVER TABLESPACE USERS;
5> SQL 'ALTER TABLESPACE USERS ONLINE';
6> }

sql statement: ALTER TABLESPACE USERS OFFLINE
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of sql command on default channel at 11/28/2020 22:11:18
ORA-01539: tablespace '' is not online
RMAN-11003: failure during parse/execution of SQL statement: ALTER TABLESPACE USERS OFFLINE
ORA-01539: tablespace 'USERS' is not online

来源:https://stackoverflow.com/questions/65055016/i-cant-restore-tablespace-ora-01539-tablespace-is-not-online

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!