RMAN備份中常見的問題

來源:互聯網
上載者:User

1:ORA-01031insufficient privileges

gpasswd  -d Oracle dba --將oracle移除出dba組


查看oracle屬性

uid=500(oracle) gid=500(oinstall) groups=500(oinstall)


[oracle@oracle10g ~]$ rman target  /
Recovery Manager: Release 10.2.0.1.0 - Production on Mon Jan 21 14:07:11 2013
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00554: initialization of internal recovery manager package failed
RMAN-04005: error from target database:
ORA-01031: insufficient privileges


解決:

usermod  -d /home/oracle/ -G dba  oracle --將oracle使用者加入dba組

[root@oracle10g ~]# usermod  -d /home/oracle/ -G dba oracle
[root@oracle10g ~]# su - oracle
[oracle@oracle10g ~]$ rman target  /
Recovery Manager: Release 10.2.0.1.0 - Production on Mon Jan 21 14:08:34 2013
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
connected to target database: PURPLE (DBID=2860377939)

 


2:Handling Disk Space Issues

ORA-19504: failed to create file "/oraback/BRDSTN/bsi2phe7_1_1"
ORA-27004: unable to write the header block of file


解決:

• Change the backup location to an area that has more space.
•Add disk space to the backup location.
•If using a flash recovery area (FRA), then either move the FRA or increase its size.
• Change the retention policy to fewer days or fewer backups.
•Delete old backup files that are no longer required

alter system set db_recovery_file_dest='/oraback02/FRA';


alter system set db_recovery_file_dest_size=100g;

 

 

3:RMAN-06059 Error

RMAN> backup database plus archivelog;
Starting backup at 21-JAN-13
current log archived
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=141 devtype=DISK
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup plus archivelog command at 01/21/2013 14:14:52
RMAN-06059: expected archived log not found, lost of archived log compromises recoverability
ORA-19625: error identifying file /oracle/archivelog/1_1_805026198.dbf
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3


解決:

RMAN> crosscheck archivelog all;

 

 

4:Terminating RMAN Processes

•Pre ss Ctrl+C from the RMAN interface. This approach, of course, works only if per-formed from the online session responsible for the process you want to terminate.
•Manually kill the OS process.

kill -9 4123
•Terminate the server session corresponding to an RMAN channel using an alter  system kill SQL statement


SQL>SELECT s.sid ,s.serial# ,p.spid ,s.client_info FROM v$process p, v$session s WHERE p.addr = s.paddr AND client_info LIKE '%rman%';
SQL>alter system kill session '158,122';

 

 

5:Diagnosing NLS Character Set Issues

ORA-12705: Cannot access NLS data files or invalid environment specified


• There’s a mismatch between the NLS character set of the client and that of the database server.

•You have an NLS-related operating system variable that has been set incorrectly.

 

 


SQL> conn /as sysdba
Connected.
SQL> select value from v$nls_parameters where parameter = 'NLS_CHARACTERSET';

VALUE
----------------------------------------------------------------
ZHS16GBK

  • 1
  • 2
  • 下一頁

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.