Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ER: Adding query for validate source platform compatibility for RMAN backups in mixed platforms #213

Open
smpawar opened this issue Dec 5, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@smpawar
Copy link
Collaborator

smpawar commented Dec 5, 2022

Enhancement Request Details

As a waverunner user I want to validate that if source environment is RMAN compatible .

Query to validate source platform compatibility:

For Oracle database 12.2 and lower versions:

set lines 200 pages 999 col platform_name for a30 col version_full for a20 col compatible_full for a20 Col support_status for a15 with vsrcinfo as ( SELECT platform_id, platform_name, (SELECT version FROM product_component_version where product like '%Oracle%Database%') version_full, (SELECT substr(version,1,2) FROM product_component_version where product like '%Oracle%Database%') version_first_digit, (SELECT substr(version,4,1) FROM product_component_version where product like '%Oracle%Database%') version_second_digit, (select value from v$parameter where name = 'compatible') compatible_full, (select substr(value,1,2) from v$parameter where name = 'compatible') compatible_first_digit, (select substr(value,4,1) from v$parameter where name = 'compatible') compatible_second_digit FROM v$database ) SELECT platform_id, platform_name, version_full, compatible_full, case when platform_name = 'Solaris Operating System (x86-64)' and to_number(version_first_digit) = 10 and to_number(version_second_digit) > 2 then 'SUPPORTED' when platform_name = 'Solaris Operating System (x86-64)' and to_number(version_first_digit) > 10 then 'SUPPORTED' when platform_name = 'Microsoft Windows x86 64-bit' and to_number(version_first_digit) = 11 and to_number(version_second_digit) >= 1 and to_number(compatible_first_digit) = 11 and to_number(compatible_second_digit) >= 1 then 'SUPPORTED' when platform_name = 'Microsoft Windows x86 64-bit' and to_number(version_first_digit) > 11 and to_number(compatible_first_digit) = 11 and to_number(compatible_second_digit) >= 1 then 'SUPPORTED' when platform_name = 'Microsoft Windows x86 64-bit' and to_number(version_first_digit) > 11 and to_number(compatible_first_digit) > 11 then 'SUPPORTED' when platform_name = 'Linux x86 64-bit' then 'SUPPORTED' else 'NOT_SUPPORTED' end as SUPPORT_STATUS from vsrcinfo;
For Oracle database 18.0 and above versions (table structure changed):

col platform_name for a30 col version_full for a20 col compatible_full for a20 Col support_status for a15 with vsrcinfo as ( SELECT platform_id, platform_name, (SELECT version_full FROM product_component_version where product like '%Oracle%Database%') version_full, (SELECT substr(version_full,1,2) FROM product_component_version where product like '%Oracle%Database%') version_first_digit, (SELECT substr(version_full,4,1) FROM product_component_version where product like '%Oracle%Database%') version_second_digit, (select value from v$parameter where name = 'compatible') compatible_full, (select substr(value,1,2) from v$parameter where name = 'compatible') compatible_first_digit, (select substr(value,4,1) from v$parameter where name = 'compatible') compatible_second_digit FROM v$database ) SELECT platform_id, platform_name, version_full, compatible_full, case when platform_name = 'Solaris Operating System (x86-64)' and to_number(version_first_digit) = 10 and to_number(version_second_digit) > 2 then 'SUPPORTED' when platform_name = 'Solaris Operating System (x86-64)' and to_number(version_first_digit) > 10 then 'SUPPORTED' when platform_name = 'Microsoft Windows x86 64-bit' and to_number(version_first_digit) = 11 and to_number(version_second_digit) >= 1 and to_number(compatible_first_digit) = 11 and to_number(compatible_second_digit) >= 1 then 'SUPPORTED' when platform_name = 'Microsoft Windows x86 64-bit' and to_number(version_first_digit) > 11 and to_number(compatible_first_digit) = 11 and to_number(compatible_second_digit) >= 1 then 'SUPPORTED' when platform_name = 'Microsoft Windows x86 64-bit' and to_number(version_first_digit) > 11 and to_number(compatible_first_digit) > 11 then 'SUPPORTED' when platform_name = 'Linux x86 64-bit' then 'SUPPORTED' else 'NOT_SUPPORTED' end as SUPPORT_STATUS from vsrcinfo;

Version

None

What oracle database version are you seeing the problem on?

None

Which sql script version ?

None

Relevant log output

No response

@smpawar smpawar added the enhancement New feature or request label Dec 5, 2022
@smpawar smpawar self-assigned this Dec 5, 2022
@cofin
Copy link
Collaborator

cofin commented Mar 21, 2023

@wpuziewicz Can you take a look at this? Maybe we can pull it in for 4.3.2?

@wpuziewicz
Copy link
Collaborator

wpuziewicz commented May 15, 2023

This request can be fulfilled using data we already collect. We can add the SQL to the loader or we can put it in the report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants