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

1_prepare_primary_maa_parameters.sh assumes log group numbers are contiguous #3

Open
kranskydog opened this issue Jun 6, 2023 · 1 comment

Comments

@kranskydog
Copy link

kranskydog commented Jun 6, 2023

The script assumes
"select max(group#) from v$log"
is the same as
"select count(*) from v$log"

This is not guaranteed to be true.

@IratxeEtxebarria-MAA
Copy link
Contributor

IratxeEtxebarria-MAA commented Jun 7, 2023

With "select max(thread#) from v$log" we get the number of threads.
Yes, it can be different than "select count(*) from v$log", which is the total of the members and it is expected.
For example, in this case:

SQL> select GROUP#,THREAD#,MEMBERS from v$log;
GROUP# THREAD# MEMBERS


     1          1          1
     2          1          1
     3          1          1

SQL> select max(thread#) from v$log;
MAX(THREAD#)

       1

SQL> select count() from v$log;
COUNT(
)

     3

Are you speaking about "select max(group#) from v$log;" instead?

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

No branches or pull requests

2 participants