Wednesday, 11 December 2024
Sunday, 4 August 2024
Rman backup & Restore in different locations
Introduction
Managing large Oracle database backups—especially when they exceed multiple terabytes—often forces us to use multiple mount points due to limited storage availability. In my setup, I had RMAN backup files spread across /u02 and /u03, which made restoring using a single RMAN command challenging.
Instead of restructuring storage, I used a workaround: creating soft links. This makes the backup pieces from different locations appear as though they're under one directory—simplifying the RMAN restore process.
Below is a detailed, step-by-step walkthrough based on my practical experience.
Solution
Let’s assume your backup files reside in:
-
/u02/backup/location1 -
/u03/backup/location2
Since RMAN’s DUPLICATE DATABASE command accepts only one backup source, we overcome this by consolidating all files via symbolic links.
Example Structure
In /u02/backup/location1, run the following commands:
cd /u02/backup/location1
ln -s /u03/backup/location2/PROD_df_full_143926_1.bak PROD_df_full_143926_1.bak
ln -s /u03/backup/location2/PROD_df_full_143927_1.bak PROD_df_full_143927_1.bak
ln -s /u03/backup/location2/PROD_df_full_143929_1.bak PROD_df_full_143929_1.bak
ln -s /u03/backup/location2/PROD_df_full_143936_1.bak PROD_df_full_143936_1.bak
ln -s /u03/backup/location2/PROD_df_full_143935_1.bak PROD_df_full_143935_1.bak
Afterward, executing ls -l in /u02/backup/location1 yields:
FINP01_df_full_143926_1.bak -> /u03/backup/rbackup/FINS01/FINP01_df_full_143926_1.bak FINP01_df_full_143927_1.bak -> /u03/backup/rbackup/FINS01/FINP01_df_full_143927_1.bak FINP01_df_full_143929_1.bak -> /u03/backup/rbackup/FINS01/FINP01_df_full_143929_1.bak FINP01_df_full_143936_1.bak -> /u03/backup/rbackup/FINS01/FINP01_df_full_143936_1.bak FINP01_df_full_143935_1.bak -> /u03/backup/rbackup/FINS01/FINP01_df_full_143935_1.bak
This setup tricks RMAN into recognizing all backup pieces as coming from a single location.
Step-by-Step: Using RMAN Duplicate with Soft Links
-
Create Soft Links
As shown above, link all backup files from/u03into/u02. -
Execute the RMAN Duplicate Command
Run this command, pointing to the single aggregated location:DUPLICATE TARGET DATABASE TO <TARGETDB> BACKUP LOCATION '/u02/backup/location1' NOFILENAMECHECK;By doing this, RMAN treats
/u02/backup/location1as the only backup source, while it effectively includes files from both mount points via soft links.
Tuesday, 25 June 2024
Oracle Apps R12 – Fix for "Cannot Complete Your Request"
When working with Oracle E-Business Suite (R12), you may sometimes face the error "Cannot complete your request" while accessing certain pages or forms. This usually happens due to an incorrect guest user password configuration in the context file.
error:
“Cannot complete applications logon.
You may have entered an invalid applications password,
or there may have been a database connect error.”
The problem usually occurs when the GUEST user password in the context file doesn't match the actual database setup. This leads to authentication failures in Apache, JServ, and other components.
It was clear that GUEST password was out of sync. Since we could not pinpoint where the issue was we followed this strategy to solve this issue:
1. Change the s_guest_passwd to GUEST/GUEST in context file and run autoconfig.
2. Checked everything was working fine, including Apache, Jserv, Forms
3. Changed back s_guest_passwd to GUEST/ORACLE in context file and run autoconfig.
Monday, 29 April 2024
Tuesday, 19 September 2023
Multinode adop patching:
In a multi-node setup on EBS 12.2, we can apply patches individually on each node as well.
Wednesday, 14 June 2023