Hi DBAs,
Strange behavior of that one specific user.
My system-wide, and therefore my session parameter values for "DB_FILE_MUTLIBLOCK_READ_COUNT" & "OPTIMIZER_MODE" , for user "OK_USER" are 8 and FIRST_ROWS_100:
Connected to:
Oracle Database 19c Standard Edition 2 Release 19.0.0.0.0 - Production
Version 19.6.0.0.0
SQL>
SQL>
SQL> create user OK_USER identified by "123";
User created.
SQL> grant dba to OK_USER;
Grant succeeded.
SQL> conn OK_USER/123
Connected.
SQL>
SQL> show user
USER is "OK_USER"
SQL>
SQL> show parameter db_file_mu
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_file_multiblock_read_count integer 8
SQL>
SQL> show parameter OPTIMIZER_MODE
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
optimizer_mode string FIRST_ROWS_100
SQL>
If I am switching with CURRENT_SCHEMA to a different user, printing theses params and values - they obviously stays the same ...
SQL> alter session set current_schema=OK_USER;
Session altered.
SQL> show parameter OPTIMIZER_MODE
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
optimizer_mode string FIRST_ROWS_100
SQL> show parameter db_file_mu
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_file_multiblock_read_count integer 8
SQL>
The strange thing occurs when I setting session current schema to a specific user, that seems to have these parameters "triggered" to show different values:
SQL>
SQL> alter session set current_schema=SPECIFIC_USER;
Session altered.
SQL> show parameter db_file_mu
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_file_multiblock_read_count integer 128
SQL> show parameter OPTIMIZER_MODE
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
optimizer_mode string ALL_ROWS
SQL>
switching back to OK_USER - it's ok again..:
SQL>
SQL> alter session set current_schema=OK_USER;
Session altered.
SQL> show parameter OPTIMIZER_MODE
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
optimizer_mode string FIRST_ROWS_100
SQL> show parameter db_file_mu
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_file_multiblock_read_count integer 8
SQL>
When I check for triggers in DBA_TRIGGERS I don't seem to find anything with this query:
SQL> select * FROM DBA_TRIGGERS where owner = 'SPECIFIC_USER';
no rows selected
SQL>
Any ideas what could be causing the differently displayed values ?
Thanks,
Andrey
[Updated on: Wed, 03 May 2023 11:28]
Report message to a moderator