RMAN-04015 error reported when rman cannot be enabled after manual Oracle database creation
The solution is as follows:
SQL> shutdown immediate;
SQL> startup upgrade;
SQL> @? /Rdbms/admin/utlirp. SQL
SQL> @? /Rdbms/admin/utlrp. SQL
SQL> shutdown immediate;
SQL> startup;
Where:
Utlirp. SQL is used to compile all relevant content on the 32bit platform.
Utlrp. SQL is used to compile all invalid objects.
And then try again
Rman target/
[Oracle @ ydkfdb21 test_bk] $ rman target/
Recovery Manager: Release 10.2.0.4.0-Production on Wed Jun 20 13:19:34 2012
Copyright (c) 1982,200 7, 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-06550: line 1, column 7:
PLS-00201: identifier 'dbms _ BACKUP_RESTORE.SET_CHARSET 'must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
RMAN-04015: error setting target database character set to US7ASCII
[Oracle @ ydkfdb21 test_bk] $
Then,
8. Execute catalog to create a data dictionary.
SQL> start D: \ oracle \ product \ 10.1.0 \ db_1 \ rdbms \ admin \ catalog. SQL
9. Run catproc to create a package.
SQL> start D: \ oracle \ product \ 10.1.0 \ db_1 \ rdbms \ admin \ catproc. SQL
10. Run pupbld.
Before executing pupbld, you must convert the current user (sys) to system, that is, connect to the database using the system account. Because the database is just created, the system password is the default password of the system, that is, the manager. You can reset the account password after the database is created.
SQL> connect system/manager
SQL> start D: \ oracle \ product \ 10.1.0 \ db_1 \ sqlplus \ admin \ pupbld. SQL
Reconnect RMAN to solve the problem.