Common Problems in RMAN backup

Source: Internet
Author: User

ORA-01031insufficient privileges

Gpasswd-d Oracle dba -- remove oracle from the dba group


View oracle attributes

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,200 5, 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


Solution:

Usermod-d/home/oracle/-G dba oracle -- add oracle users to the dba group

[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,200 5, 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


Solution:

• 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/registry.805026198.dbf
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3


Solution:

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 '123 ';

 

 

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
  • Next Page

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.