|
sql
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Usernames in OEMHi,
I would appreciate an explanation of what I'm doing wrong and any misunderstandings for the following. In OEM I connect to a database as SYSDBA, open SQL scratchpad and execute SELECT USERNAME FROM ALL_USERS and the results contain an expected username. However, if I open a SQL*Plus worksheet and execute CONNECT / AS SYSDBA and then SELECT USERNAME FROM ALL_USERS the expected username is missing. Why? And why is the CONNECT / AS SYSDBA command necessary (I get a 'SP2-0640: Not connected' error otherwise) if I have already connected to the database via the OEM connect login window? Thanks for any help. J Williams wrote:
Show quote > Hi, 'SP2-0640: Not> > I would appreciate an explanation of what I'm doing wrong and any > misunderstandings for the following. > > In OEM I connect to a database as SYSDBA, open SQL scratchpad and execute > SELECT USERNAME FROM ALL_USERS and the results contain an expected username. > > However, if I open a SQL*Plus worksheet and execute CONNECT / AS SYSDBA and > then SELECT USERNAME FROM ALL_USERS the expected username is missing. Why? > > And why is the CONNECT / AS SYSDBA command necessary (I get a > connected' error otherwise) if I have already connected to the Just to confirm your environment setting,database via > the OEM connect login window? > > Thanks for any help. could you do a 'Select * from v$database;' and a 'show user' in both instances. |
|||||||||||||||||||||||