Unix Technical Forum

OEM Console on XP / Connect to 10gR2 server - insufficient privileges

This is a discussion on OEM Console on XP / Connect to 10gR2 server - insufficient privileges within the Oracle Database forums, part of the Database Server Software category; --> We have a 10gR2 database running on Windows2000 server. I have just installed the 10g client and have run ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-26-2008, 08:48 AM
jeremy
 
Posts: n/a
Default OEM Console on XP / Connect to 10gR2 server - insufficient privileges

We have a 10gR2 database running on Windows2000 server.

I have just installed the 10g client and have run the 10g version of
OEM Console.

I can connect to the database as user SYSTEM if I choose the "Connect
As" of Normal but if I try to "Connect As" SYSDBA, I get ORA-01031
insufficient privileges. I have had a quick look around and cannot see
any obvious solutions and am sure this must be a FAQ...

thanks

--
jeremy
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-26-2008, 08:48 AM
Preston
 
Posts: n/a
Default Re: OEM Console on XP / Connect to 10gR2 server - insufficient privileges

jeremy wrote:

> We have a 10gR2 database running on Windows2000 server.
>
> I have just installed the 10g client and have run the 10g version of
> OEM Console.
>
> I can connect to the database as user SYSTEM if I choose the "Connect
> As" of Normal but if I try to "Connect As" SYSDBA, I get ORA-01031
> insufficient privileges. I have had a quick look around and cannot see
> any obvious solutions and am sure this must be a FAQ...
>
> thanks


When you connect 'as sysdba', you're actually connecting as sys,
regardless of which userid you use. So there shouldn't be a need to use
system as sysdba. Does it work ok if you use another user with dba
privileges?

As to what's causing the error, no idea, unless someone's removed the
dba role from system.

--
Preston.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-26-2008, 08:48 AM
jeremy
 
Posts: n/a
Default Re: OEM Console on XP / Connect to 10gR2 server - insufficientprivileges

On 5 Dec, 10:32, "Preston" <dontwant...@nowhere.invalid> wrote:
>
> When you connect 'as sysdba', you're actually connecting as sys,
> regardless of which userid you use. So there shouldn't be a need to use
> system as sysdba. Does it work ok if you use another user with dba
> privileges?
>
> As to what's causing the error, no idea, unless someone's removed the
> dba role from system.


Hi Preston

The reason I was using the "as sysdba" option was to see if it would
provide some extra options - e.g. the "locks" option doesn't appear to
be enabled logged in as "Normal" (even under user system).

E.g. click on Instance in the navigator on the left of the screen and
to the right it displays a panel of info titled "Instance management"
one of the options on which is "Monitor locks, sessions...." -
clicking on the word "locks" should display (well in 9i OEM console) a
list of the locks. The "locks" option is also not present in the
navigator (and was in the 9i version).

So a little puzzled.

cheers


--
jeremy


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-26-2008, 08:48 AM
Preston
 
Posts: n/a
Default Re: OEM Console on XP / Connect to 10gR2 server - insufficient privileges

jeremy wrote:

> On 5 Dec, 10:32, "Preston" <dontwant...@nowhere.invalid> wrote:
> >
> > When you connect 'as sysdba', you're actually connecting as sys,
> > regardless of which userid you use. So there shouldn't be a need to
> > use system as sysdba. Does it work ok if you use another user with
> > dba privileges?
> >
> > As to what's causing the error, no idea, unless someone's removed
> > the dba role from system.

>
> Hi Preston
>
> The reason I was using the "as sysdba" option was to see if it would
> provide some extra options - e.g. the "locks" option doesn't appear to
> be enabled logged in as "Normal" (even under user system).
>
> E.g. click on Instance in the navigator on the left of the screen and
> to the right it displays a panel of info titled "Instance management"
> one of the options on which is "Monitor locks, sessions...." -
> clicking on the word "locks" should display (well in 9i OEM console) a
> list of the locks. The "locks" option is also not present in the
> navigator (and was in the 9i version).


The 'locks' & 'sessions' links on the Instance page don't seem to work
no matter who you login as. I /think/ it shows locks on the individual
session details pages, but only when there is one. I don't use the
client EM though so don't quote me on that.


--
Preston.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-26-2008, 08:48 AM
fitzjarrell@cox.net
 
Posts: n/a
Default Re: OEM Console on XP / Connect to 10gR2 server - insufficientprivileges

On Dec 5, 4:45 am, jeremy <jeremy0...@gmail.com> wrote:
> On 5 Dec, 10:32, "Preston" <dontwant...@nowhere.invalid> wrote:
>
>
>
> > When you connect 'as sysdba', you're actually connecting as sys,
> > regardless of which userid you use. So there shouldn't be a need to use
> > system as sysdba. Does it work ok if you use another user with dba
> > privileges?

>


No, it won't, as the mechanism to connect as sysdba has not been
enabled by one of the two methods described below.

> > As to what's causing the error, no idea, unless someone's removed the
> > dba role from system.

>


The DBA role still exists, else SYSTEM couldn't connect. So that
cannot be the issue.

> Hi Preston
>
> The reason I was using the "as sysdba" option was to see if it would
> provide some extra options - e.g. the "locks" option doesn't appear to
> be enabled logged in as "Normal" (even under user system).
>
> E.g. click on Instance in the navigator on the left of the screen and
> to the right it displays a panel of info titled "Instance management"
> one of the options on which is "Monitor locks, sessions...." -
> clicking on the word "locks" should display (well in 9i OEM console) a
> list of the locks. The "locks" option is also not present in the
> navigator (and was in the 9i version).
>
> So a little puzzled.
>
> cheers
>
> --
> jeremy


The ORA-01031 is generated by one of two things:

-- remote_login_passwordfile is set to NONE

or

-- remote_login_passwordfile is set to SHARED or EXCLUSIVE and you
have no password file generated

Connect as SYSTEM and do this from the SQL> prompt:

show parameter password

See how remote_login_passwordfile is set. If it's set to NONE you'll
need to set it to EXCLUSIVE (presuming you're not on a RAC
configuration) in the spfile (or your pfile, if you're using that
antiquated method of setting parameters). If it's set to EXCLUSIVE
you're half way there. You'll then need to generate a password file.
At the operating system prompt go to %ORACLE_HOME%\dbs and execute
orapwd with the file name (usually 'orapw' prepended to the SID), the
SYS password and the number of DBA/SYSDBA entries to allow. For
example:

C:\oracle\OraHome\dbs> orapwd file=orapwmysid password=mypass
entries=5

Restart your database to pick up the changes to the spfile/pfile, then
try your connection from OEM again as SYSDBA. It should now work as
expected.

Yes, this is a FAQ and a bit of searching in the newsgroup archives
would have found this same answer.


David Fitzjarrell
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-26-2008, 08:48 AM
Frank van Bortel
 
Posts: n/a
Default Re: OEM Console on XP / Connect to 10gR2 server - insufficient privileges

jeremy wrote:
> We have a 10gR2 database running on Windows2000 server.
>
> I have just installed the 10g client and have run the 10g version of
> OEM Console.
>
> I can connect to the database as user SYSTEM if I choose the "Connect
> As" of Normal but if I try to "Connect As" SYSDBA, I get ORA-01031
> insufficient privileges. I have had a quick look around and cannot see
> any obvious solutions and am sure this must be a FAQ...
>
> thanks
>
> --
> jeremy

Locate sqlnet.ora, and comment out the
line with
SQLNET.AUTHENTICATION_SERVICES= (NTS)

Your browser cannot authenticate itself against
the Windows account, so disable that feature.

--
Regards,
Frank van Bortel

Top-posting is one way to shut me up...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:22 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com