duplicate database的时候,rman连接 auxiliary database的后状态不正确

auxiliary database 已经被startup nomount,但是rman连接后显示状态是not started

$ export ORACLE_SID=dupdb
$ sqlplus ‘/as sysdba‘
SQL> startup nomount 

$ rman

Recovery Manager: Release 11.2.0.1.0 - Production on Fri Jun 26 14:16:14 2015

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

RMAN> connect  target sys/[email protected]

connected to target database: ORA11 (DBID=785451981)

RMAN>  connect auxiliary sys/[email protected]

connected to auxiliary database: DUPDB (not started)

#not started,说明我们连接到一个空闲例程,这种情况通常就是静态服务名中ORACLE_HOME配置不正确,或者SID配置不正确导致的。
检查监听文件,发现oracle_home路径最后多了一个‘/‘

SID_LIST_ORA11 =
        (SID_LIST =
                (SID_DESC =
                        (GLOBAL_DBNAME = ora11)
                        (ORACLE_HOME = /u11/app/oracle/product/11.2.0/dbhome_1)
                (SID_NAME =ora11)
                )
                (SID_DESC =
                        (GLOBAL_DBNAME = dupdb)
                        (ORACLE_HOME = /u11/app/oracle/product/11.2.0/dbhome_1/)
                        (SID_NAME =dupdb)
                )
        )

把上面代码中的‘/‘去掉即可。

另外我们通过sqlplus xxx/[email protected] as sysdba的方式也可以测试一下是否连接到启动实例的实例,还是连接上了空闲实例。

时间: 2024-08-09 02:21:21

duplicate database的时候,rman连接 auxiliary database的后状态不正确的相关文章

RMAN-04006: error from auxiliary database

Oracle11g RAC + DG 搭建过程中,在备库进行 duplicate时报错如下: [[email protected]:/u01/app/oracle/11.2/db_1/dbs]$rman target sys/[email protected]  auxiliary sys/[email protected] nocatalog Recovery Manager: Release 11.2.0.4.0 - Production on Fri Abc 21 17:33:01 xxx

oracle 11g RMAN:Active Database Duplication for standby database 创建dg 命令解读

基于生产的duplicate 复制,如果事先没有手动配置pfile(设定内存,进程,dg相关配置参数,数据库相关路径参数)则会出现各种参数无法转换的问题: 因为duplicate 会从生产自动拷贝pfile,控制文件,密码文件过来,如果主库和备库环境不一样(数据库软件路径,数据文件存储路径) 如果没在duplicate的命令中完整指定新环境备库的各种参数涉及路径,及转换参数,就会默认使用从主库拷贝过来的spfile中的参数设置(会忽略oracle 自定义的的缺省配置:比如adr 缺省会放在ORA

How to restore and recover a database from an RMAN backup. (Doc ID 881395.1)

APPLIES TO: Oracle Database - Enterprise Edition - Version 10.1.0.2 to 11.2.0.2 [Release 10.1 to 11.2]Oracle Database - Enterprise Edition - Version 11.2.0.4 to 11.2.0.4 [Release 11.2]Oracle Database - Enterprise Edition - Version 11.2.0.3 to 11.2.0.

原创:idea的 Database数据工具,连接mysql8配置、数据源正确选择

idea的 Database数据工具, 连接mysql8配置 需要更改数据库链接驱动为8.0.11以后,系统有8.0.13和8.0.15 1:新建数据源连接入口: Data Source from URL 强调:本人用mysql 要单独下载mysql8.0以后驱动 2:配置字符串链接,选择正确数据源 原文地址:https://www.cnblogs.com/asplover/p/12408606.html

【OPatch】从 Oracle Database 19.3 升级到 Oracle Database

1. 背景介绍由于Oracle Database 19c会作为Oracle长期支持的版本,官方也建议大家选择19c这个版本.而最新推出的20c会作为一个全新的发布序列,当前版本是20.1,此版本的生命周期也会比较短,因此可以再观望一下20c的后续版本.我安装了在Oracle官网可以下载到的19.3的版本,完成了升级到19.6版本的操作过程,给此项目工作提供文档支持. 2. 升级过程可以从MOS获得 Database 19.6 的 patch,名称如下: Patch 30463595: COMBO

How to create a logical standby database based on a physical standby database

The related steps about how to create a phisical standby database please refer:   http://blog.csdn.net/waterxcfg304/article/details/35991771 /* How to create a logical standby database based on a physical standby database   */ 以下是主库: 下列语句可以用来检查SQL应用能

【oracle】oracledba17 The database returns and error and the database instance shuts down

A media failure has occurred. This has resulted in all the membe rs of the next hop log group being rendered inaccessible to the log w riter process (LGWR) at a log switch. How does this failure affect th e operational database? A. The database re-cr

rman 连接本地、远程数据库方法解析

rman 连接: 连接到本地数据库: 1.首先指定ORACLE_SID : --如果数据库只有一个实例,那么就不需要进行指定了,rman默认连接到唯一的实例上: >set ORACLE_SID=ORCL 2.然后rman target usr/pwd nocatalog:--这样默认就是连接的指定的数据库服务名称,关于catalog是什么意思,我还不知道: >rman target usr/pwd nocatalog: 3.也可以不指定用户名和密码 rman target /:--这种方式以什

rman 增量恢复 dg gap后 主库添加新数据文件

1) On the standby database, 关闭 (MRP) SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL; 2) On the STANDBY DATABASE, 获取备库最小scn值,用作主库增量备份点 : col MIN(CHECKPOINT_CHANGE#) for 999999999999999999 col CURRENT_SCN for 99999999999999999 SELECT CURRE