oracle user does not see some data [message #670048] |
Thu, 31 May 2018 07:46 |
|
yk307
Messages: 3 Registered: May 2018
|
Junior Member |
|
|
Hello this is the problem.
Oracle user do not see some data in some tables.
When I created another user ( using the same script) . New user able to see all data
Thanks
should I re-create all users with such problems
Thank you
|
|
|
|
|
Re: oracle user does not see some data [message #670051 is a reply to message #670048] |
Thu, 31 May 2018 08:07 |
gazzag
Messages: 1119 Registered: November 2010 Location: Bedwas, UK
|
Senior Member |
|
|
It would be better if you showed us what was happening. This means, start a SQL*Plus session, show us the commands that you used and the output you see. Copy and paste that here.
|
|
|
|
|
|
|
Re: oracle user does not see some data [message #670057 is a reply to message #670056] |
Thu, 31 May 2018 09:40 |
|
Michel Cadot
Messages: 68716 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
I'd rather use from each user:
set role all
select object_name, owner, object_type
from all_objects
where object_name in ('DEN','MNT')
order by 1, 2, 3
/
which will also cover the cases of views and synonyms and show the accessible objects from each account.
[Edit: typo]
[Updated on: Thu, 31 May 2018 10:09] Report message to a moderator
|
|
|
|
Re: oracle user does not see some data [message #670066 is a reply to message #670052] |
Fri, 01 June 2018 07:13 |
|
EdStevens
Messages: 1376 Registered: September 2013
|
Senior Member |
|
|
yk307 wrote on Thu, 31 May 2018 08:41select MNT_PIDMA, count(*)
from MNT
where MNT_PIDMA is not null
group by MNT_PIDMA
having not exists
(select 'x'
from den
where den_pidma = MNT_PIDMA)
and count(*)>0;
the same query returns different results
user-1 ( created 5 years ago ) brings 0 rows
user-2 ( created 2 weeks ago , with the same creation script as user-1 ) brings 30 rows
Thanks
Others have hinted, but just to spell it out ...
When user1 issues 'select .... from den ..' he is selecting from user1.den.
When user2 issues 'select .... from den ..' he is selecting from user2.den.
Different tables, different results.
|
|
|