Two users have the different exectuion plan for the same query
My DB sever is 11.1 RAC 4 nodes.
I did this test by connecting to one node explicitly (with its SID).
Two similar user U1 and U2 have the same privilges.
When they ran the sql below, parallel query was used for U1 and normal serial execution was used for U2 by CBO.
select *
from U1.table1,
U1.table2,
...
where (JOINS)
What are possible reasons? I didn't change any parameter at session level.
Another problem is that I found CBO chose nested loops as join method for all tables in this query. It returned data within 30s. But if I used use_hash hint for every table, execution plan showed that it would use hash joins and the query completed within 5s.