I have a query where I am trying to add functionality to check for the below parameters:
'CRYPTO_CHECKSUM_TYPES_SERVER=(SHA256)','CRYPTO_CHECKSUM_TYPES_CLIENT=(SHA512)','CRYPTO_CHECKSUM_TYPES_SERVER=(SHA512)','CRYPTO_CHECKSUM_TYPES_CLIENT=(SHA256)'
I have data where I get the Parameter name (from above) and the count_found
(which is the occurrence of the parameter given as 1
if found, 0
if not found)
Here I need to check if CRYPTO_CHECKSUM_TYPES_SERVER
has either SHA256
or SHA512
set. If neither is set then the query needs to report. Same for CRYPTO_CHECKSUM_TYPES_CLIENT
.
If I run the current query I have something like this:
HOST_NAME COUNT_FOUND PARAMETER FILE_CHECKED
host123 0 CRYPTO_CHECKSUM_TYPES_CLIENT=(SHA256) /local/dbms/oracle/product/11.2.0.4/db_1/network/admin/sqlnet.ora
host123 0 CRYPTO_CHECKSUM_TYPES_SERVER=(SHA512) /local/dbms/oracle/product/11.2.0.4/db_1/network/admin/sqlnet.ora
host123 1 CRYPTO_CHECKSUM_TYPES_SERVER=(SHA256) /local/dbms/oracle/product/11.2.0.4/db_1/network/admin/sqlnet.ora
host123 0 CRYPTO_CHECKSUM_TYPES_CLIENT=(SHA512) /local/dbms/oracle/product/11.2.0.4/db_1/network/admin/sqlnet.ora
I am now trying to add the check with
current condition
:
where (PARAMETER in ('CRYPTO_CHECKSUM_TYPES_SERVER=(SHA256)','CRYPTO_CHECKSUM_TYPES_CLIENT=(SHA512)','CRYPTO_CHECKSUM_TYPES_SERVER=(SHA512)','CRYPTO_CHECKSUM_TYPES_CLIENT=(SHA256)'))
new condition:
where (PARAMETER in ('CRYPTO_CHECKSUM_TYPES_SERVER=(SHA256)','CRYPTO_CHECKSUM_TYPES_CLIENT=(SHA512)','CRYPTO_CHECKSUM_TYPES_SERVER=(SHA512)','CRYPTO_CHECKSUM_TYPES_CLIENT=(SHA256)'))
and ((PARAMETER='CRYPTO_CHECKSUM_TYPES_CLIENT=(SHA256)' and count_found=0) and (PARAMETER='CRYPTO_CHECKSUM_TYPES_CLIENT=(SHA512)' and count_found=0))
But after adding the new condition the query does not return anything.
What is the issue here?
I tried to add the condition but the query returned no rows.How can i check for 2 parameters which are in 2 different rows.