RMAN 备份出现:RMAN-20021: database not set
程序员文章站
2022-06-17 10:55:55
...
RMAN 备份出现:RMAN-20021: database not set
RMAN> backup full database format '/opt/Oracle/backup/backup_%T_%s_%p.bak';
Starting backup at 01-SEP-11
using channel ORA_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup command at 09/01/2011 00:30:19
RMAN-20021: database not set
RMAN-06031: could not translate database keyword
原因是在另一个窗口将数据库由mount改到open操作引起的:
SQL> ALTER DATABASE OPEN;
此时,RMAN未接获数据库打开的通知,,退出,再从新连入即可解决。
(如果不行尝试设置nls_lang,其实应该不用的)
推荐阅读
-
解决SQL SERVER数据库备份时出现“操作系统错误5(拒绝访问)。BACKUP DATABASE 正在异常终止。”错误的解决办法
-
mysql备份数据出现mysqldump: Got error: 1049: Unknown database ‘jxgl>jxgl.sql‘ when selecting the database
-
RMAN 备份出现:RMAN-20021: database not set
-
rman备份archivelog出现ORA-19625
-
rman备份出现ORA-19502/ORA-27063错误
-
rman备份出现ORA-19625
-
RMAN 备份出现:RMAN-20021: database not set
-
RMAN备份动态性能视图 V$BACKUP_SET
-
RMAN备份动态性能视图 V$BACKUP_SET
-
mysql备份数据出现mysqldump: Got error: 1049: Unknown database ‘jxgl>jxgl.sql‘ when selecting the database