当前位置:  数据库>oracle

ORA-12514:RMAN连接报错解决

    来源: 互联网  发布时间:2017-05-09

    本文导语: 今天用rman连接数据库报错[linuxidc@rhel55 ~]$rman target sys/Oracle@orcl ORA-12514: TNS:listener does not currently know of service requested in connect descriptor[linuxidc@rhel55 ~]$lsnrctl stop [linuxidc@rhel55 ~]$cd $ORACLE_HOME [linuxidc@rhel55 db_1]$vim listener.ora 修改/u01/app/orac...

今天用rman连接数据库报错
[linuxidc@rhel55 ~]$rman target sys/Oracle@orcl

ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
[linuxidc@rhel55 ~]$lsnrctl stop

[linuxidc@rhel55 ~]$cd $ORACLE_HOME

[linuxidc@rhel55 db_1]$vim listener.ora

修改/u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora文件
加上
SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = orcl)
      (ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1)
    )
  )
然后重启lisener服务,就ok了[linuxidc@rhel55 db_1]cd[linuxidc@rhel55 ~]$lsnrctl start

[linuxidc@rhel55 ~]$
[linuxidc@rhel55 ~]$ rman target sys/oracle@orcl

Recovery Manager: Release 11.2.0.1.0 - Production on Wed Oct 3 04:37:05 2012

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

connected to target database: ORCL (DBID=1302004769, not open)

RMAN> show all ;

using target database control file instead of recovery catalog
RMAN configuration parameters for database with db_unique_name ORCL are:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 31 DAYS;
CONFIGURE BACKUP OPTIMIZATION ON;
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOA                                                      D TRUE ; # default
CONFIGURE EXCLUDE FOR TABLESPACE 'SYSAUX';
CONFIGURE EXCLUDE FOR TABLESPACE 'USERS';
CONFIGURE EXCLUDE FOR TABLESPACE 'EXAMPLE';
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/11.0.2/db_1/dbs/                                                      snapcf_orcl.f'; # default

RMAN>exit
[linuxidc@rhel55 ~]rman help#查看帮助
[linuxidc@rhel55 ~]rman target sys/oracle@orcl log /home/linuxidc/rman_log.txt#记录日志
RMAN>configure device type disk parallelism 4 backup type to  compressed backupset;
RMAN>configure device type disk clear;#reset
RMAN>configure device type sbt_tape parallelism 4 backup type to  backupset;
RMAN>configure device type disk clear;#reset again
RMAN>configure device type sbt_tape parallelism 4 backup type to  compressed backupset;
RMAN>configure device type disk clear;#reset again
RMAN>configure device type disk parallelism 4 backup type to  copy;#copy只能是disk类型的
RMAN>configure device type disk clear;#reset again
RMAN>configure retention policy  to recovery window of 7 days;#基于恢复窗口的备份保留策略,7天
RMAN>
RMAN> configure retention policy clear;#默认是基于冗余策略,每个文件至少保留一份

old RMAN configuration parameters:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
RMAN configuration parameters are successfully reset to default value

RMAN> show retention policy;
RMAN configuration parameters for database with db_unique_name ORCL are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default

RMAN> config retention policy to redundancy 2;#基于冗余,每个文件至少保留2份

RMAN>configure retention policy to recovery window of 0 days;
RMAN>report obsolete;#查看过时的备份文件
RMAN>delete obsolete;#根据保留策略,删除过时的备份文件
RMAN>configure retention policy to recovery window of 7 days;


    
 
 

您可能感兴趣的文章:

  • oracle ORA-01114、ORA-27067错误解决方法
  • Orcle的package中访问其它Schema的表报错ORA-00942解决方法
  • oracle远程连接服务器出现 ORA-12170 TNS:连接超时 解决办法
  • 解决报错ora-32035的方法分析
  • ORA-12514及ORA-28547错误解决方案
  • 基于ORA-12170 TNS 连接超时解决办法详解
  • 安装oracle出现error:ora-01031:insufficient privilleges的解决
  • plsql连接oracle数据库报ora 12154错误解决方法
  • zilong28提问:Tomcat3.2报错内容是Error occurs when connecting DB: ORA-00020: maximum number of processes(59) exceeded 我应该如何解决,先谢了
  • ORA-28002 Oracle 11g存在密码过期问题解决方案
  • Linux 下数据库oracle出现ORA-27102错误的解决办法
  • Oracle ORA-22908(NULL表值的参考)异常分析与解决方法
  • PHP连接Oracle错误ORA-24324服务句柄未初始化的解决方法
  • ORACLE出现错误1033和错误ORA-00600的解决方法
  • 如何解决ORA-01843与NLS_DATE_FORMAT问题
  •  
    本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
    本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。












  • 相关文章推荐
  • 出现ORA-01401和ORA-01008错误?
  • Eclipse连接Oracle数据库的ORA-00604 ORA-12705错误
  • Oracle不能删除表 ORA-00604 ORA-01422 错误
  • 如何得到带有ora的行的下一行
  • 如何配置 linux 下 oracle 的 listener .ora 和
  • 浅析如何在tnsnames.ora中配置监听
  • [Oracle] 浅析令人抓狂的ORA-01555问题
  • aq.executeQuery: ORA-00020: maximum number of processes (59) exceeded
  • Oracle 数据库闪回功能设置出现ORA-19809和ORA-19804错误
  • ORA-00947:Not enough values (没有足够的值)的深入分析
  • solaris10 安装 ora9.2.0.1 时报错
  • 在UNIX下,我的ORA817该怎么样才可以自己启动呀?
  • 谁能帮忙解释一下: ORA-01000 : maximun open cursors exceeded
  • 关于Oracle游标的问题(ORA-01000: maximum open cursors exceeded)
  • 我在Linux7。3下面装了一个Oracle8i,但是现在启动不起来了,总是报错ORA-01031: insufficient privileges
  • oracle 11g导出数据时报ORA 1455错误的处理方法
  • oracle报错(ORA-00600)问题处理
  • 为什么我读取数据库时出现:ORA-00600: 内部错误代码,参数: [ttcgcshnd-1], [0], [],错误?
  • Oracle 10g之ORA-32004问题
  • 在客户端配置TNS测试报错ORA-12170:TNS:连接超时


  • 站内导航:


    特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

    ©2012-2021,