PDA

View Full Version : Usernames in OEM


J Williams
12-02-2004, 04:50 PM
Hi,

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.

GQ
12-06-2004, 07:24 AM
J Williams wrote: Hi, 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.

Just to confirm your environment setting,
could you do a 'Select * from v$database;' and a 'show user'
in both instances.


MyLounge.com Site Map
Forum: Cars, Cell Phone, Database, Games, Home Improvement, IT, Music, School, Sports, Web Design, Web Server, Weight Loss

The MyLounge.com forum is intended for informational use only and should not be relied upon and is not a substitute for any advice. The information contained on MyLounge.com are opinions and suggestions of members and is not a representation of the opinions of MyLounge.com. MyLounge.com does not warrant or vouch for the accuracy, completeness or usefulness of any postings or the qualifications of any person responding. Please consult a expert or seek the services of an attorney in your area for more accuracy on your specific situation. Please note that our forums also serve as mirrors to Usenet newsgroups. Many posts you see on our forums are made by newsgroup users who may not be members of MyLounge.com Term of Service