Web Images Videos Maps News Shopping Google Mail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
insufficient priviliges
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  15 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
newbie  
View profile   Translate to Translated (View Original)
 More options 12 July 2006, 18:20
Newsgroups: comp.databases.oracle.server
From: "newbie" <rjngh2...@gmail.com>
Date: 12 Jul 2006 10:20:35 -0700
Local: Wed 12 July 2006 18:20
Subject: insufficient priviliges
I have a schema called  'abc'
I do not know the password for the user 'abc'

I know the password for the user 'sys' and user 'system'

I tried the following when logged in as user 'sys' as sysdba and user
'system' and user 'sys' (normal)

select * from abc.pqr where 'pqr' is a table in schema 'abc'

I get the result

However If I create another user 'test'  and try the following
select * from abc.pqr it gives me the result

ORA-00942: table or view does not exist

I tried the following  when I am logged in as user 'sys' as sysdba or
sysoper or normal or user system

grant select on abc.pqr to test;

The following is the error message

ORA-01031: insufficient privileges

How do I resolve this...Please help


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
franck  
View profile   Translate to Translated (View Original)
 More options 12 July 2006, 18:32
Newsgroups: comp.databases.oracle.server
From: "franck" <francois.bourda...@harfan.com>
Date: 12 Jul 2006 10:32:37 -0700
Local: Wed 12 July 2006 18:32
Subject: Re: insufficient priviliges
You have to be connect as "ABC" to grant select abc.X to userY


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
fitzjarrell@cox.net  
View profile   Translate to Translated (View Original)
 More options 12 July 2006, 18:36
Newsgroups: comp.databases.oracle.server
From: "fitzjarr...@cox.net" <fitzjarr...@cox.net>
Date: 12 Jul 2006 10:36:20 -0700
Local: Wed 12 July 2006 18:36
Subject: Re: insufficient priviliges

You use the user 'abc'  to grant privileges on the objects OWNED by
'abc'.  It's that simple.  Possibly you created this 'abc' user to test
things; since  you DO have access as SYS as SYSDBA you can CHANGE the
password for 'abc':

SQL> alter user abc identified by somepasswordicanremember;

And, then, by the magic of Oracle you can connect as 'abc':

SQL> connect abc/somepasswordicanremember
Connected.
SQL> select * from pqr;

[all sorts of results here]

SQL> grant select on pqr to test;

Grant succeeded.

SQL> connect test/somepasswordidontknow
Connected.
SQL> select * from abc.pqr;

[all sorts of results here]

If this is some 'real world' problem which you've oversimplified in
order to get an answer then the above instructions won't do you any
good as you cannot change the application user password without
breaking the application.  In that case I'd go to whoever created the
application user and ask, pretty please, for the password.  Of course,
if you have SYS as SYSDBA privileges without authorization you should
update your resume as you won't be long for this job.

David Fitzjarrell


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
newbie  
View profile   Translate to Translated (View Original)
 More options 12 July 2006, 19:40
Newsgroups: comp.databases.oracle.server
From: "newbie" <rjngh2...@gmail.com>
Date: 12 Jul 2006 11:40:10 -0700
Local: Wed 12 July 2006 19:40
Subject: Re: insufficient priviliges
You are absolutely correct....I do not have the password for the user
abc

Of course, I am not going to change the password for user abc
indiscriminately

However I kind of thought that sys and system were kinda superusers and
if this is not possible to somehow overcome this issue.

And of course I do not want to say "Do You want fries with your order"
I kind of like my current job !!!!!

Thanks


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chuck  
View profile   Translate to Translated (View Original)
 More options 12 July 2006, 19:58
Newsgroups: comp.databases.oracle.server
From: Chuck <skilover_nos...@bluebottle.com>
Date: Wed, 12 Jul 2006 18:58:51 GMT
Local: Wed 12 July 2006 19:58
Subject: Re: insufficient priviliges

What version of Oracle? The DBA role since version 9i includes the
"GRANT ANY OBJECT PRIVILEGE" system privilege which lets the DBA grant
privs on objects he does not own to other users.

Example - 9.2.0.5 - run by a user with DBA role.

SQL> CREATE USER u1 IDENTIFIED BY u1 DEFAULT TABLESPACE users TEMPORARY
TABLESPACE temp
User created.
SQL> ALTER USER u1 QUOTA UNLIMITED ON users
User altered.
SQL> CREATE TABLE u1.t1 TABLESPACE users AS SELECT * FROM dba_tables
Table created.
SQL> CREATE USER u2 IDENTIFIED BY u2 DEFAULT TABLESPACE users TEMPORARY
TABLESPACE temp
User created.
SQL> GRANT SELECT ON u1.t1 TO u2
Grant complete.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Charles Hooper  
View profile   Translate to Translated (View Original)
 More options 12 July 2006, 23:34
Newsgroups: comp.databases.oracle.server
From: "Charles Hooper" <hooperc2...@yahoo.com>
Date: 12 Jul 2006 15:34:38 -0700
Local: Wed 12 July 2006 23:34
Subject: Re: insufficient priviliges

Just adding to the excellent tip above, before changing the user's
password, execute the following query:
SELECT
  USERNAME,
  PASSWORD
FROM
  DBA_USERS
WHERE
  USERNAME='ABC';

When finished, update the user with the original encrypted password:
ALTER USER ABC IDENTIFIED BY VALUES 'ENCRYPTEDPASSWORD';

For obvious reasons, this should be used as a last resort.

Charles Hooper
PC Support Specialist
K&M Machine-Fabricating, Inc.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
newbie  
View profile   Translate to Translated (View Original)
 More options 12 July 2006, 23:49
Newsgroups: comp.databases.oracle.server
From: "newbie" <rjngh2...@gmail.com>
Date: 12 Jul 2006 15:49:32 -0700
Local: Wed 12 July 2006 23:49
Subject: Re: insufficient priviliges
Oracle Version 8.1.7.4.1

Yes, The changing password method is my last resort.

I would like to attempt any other method to enable either user sys or
system
to grant permission to user test select permission to objects of schema
abc

Thanks.....I look forward to more suggestions


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sybrand Bakker  
View profile   Translate to Translated (View Original)
 More options 13 July 2006, 05:18
Newsgroups: comp.databases.oracle.server
From: Sybrand Bakker <post...@sybrandb.demon.nl>
Date: Thu, 13 Jul 2006 06:18:46 +0200
Local: Thurs 13 July 2006 05:18
Subject: Re: insufficient priviliges
On 12 Jul 2006 15:49:32 -0700, "newbie" <rjngh2...@gmail.com> wrote:

>Oracle Version 8.1.7.4.1

>Yes, The changing password method is my last resort.

>I would like to attempt any other method to enable either user sys or
>system
>to grant permission to user test select permission to objects of schema
>abc

>Thanks.....I look forward to more suggestions

First suggestion: stop top-posting
Second suggestion : stop top-posting
Third suggestion: Always mention your version in order to avoid
wasting people's time, as in 8i you can't use David Fitzjarell's
suggestion.

There is a very nasty tric to help you do it.

As sys or system
create or replace procedure <table_owner>.do_sql(sqlstr in varchar2)
is
begin
execute immediate sqlstr;
end;
/

Now as sys or system
execute <table_owner>.do_sql('grant .... etc')

Works like a charm, and demonstrates whoever know the SYS or SYSTEM
password (or any other privileged account) can control the entire
database.

--
Sybrand Bakker, Senior Oracle DBA


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Markku Uttula  
View profile   Translate to Translated (View Original)
 More options 13 July 2006, 12:43
Newsgroups: comp.databases.oracle.server
From: "Markku Uttula" <markku.utt...@disconova.com>
Date: Thu, 13 Jul 2006 14:43:50 +0300
Local: Thurs 13 July 2006 12:43
Subject: Re: insufficient priviliges

Sybrand Bakker wrote:
> Works like a charm, and demonstrates whoever know the SYS or SYSTEM
> password (or any other privileged account) can control the entire
> database.

I always thought that was pretty much the main purpose of having those
accounts in the first place :)

--
Markku Uttula


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
fitzjarrell@cox.net  
View profile   Translate to Translated (View Original)
 More options 13 July 2006, 14:07
Newsgroups: comp.databases.oracle.server
From: "fitzjarr...@cox.net" <fitzjarr...@cox.net>
Date: 13 Jul 2006 06:07:57 -0700
Local: Thurs 13 July 2006 14:07
Subject: Re: insufficient priviliges
Comments embedded.

Hmmm, MY suggestion was this:

"You use the user 'abc'  to grant privileges on the objects OWNED by
'abc'.  It's that simple.  Possibly you created this 'abc' user to test

things; since  you DO have access as SYS as SYSDBA you can CHANGE the
password for 'abc':

SQL> alter user abc identified by somepasswordicanremember;

And, then, by the magic of Oracle you can connect as 'abc':

SQL> connect abc/somepasswordicanremember
Connected.
SQL> select * from pqr;

[all sorts of results here] "

Explain how 'alter user xxx identified by yyyy;' isn't available in 8i,
please, as I've been using it since Oracle 6 to change user passwords
(yes, even in the latest releases as the user community can't wrap
their minds around the 'password' function).

Chuck offered the solution which is release-specific (any release from
9i onwards); possibly you misread the thread and attributed comments to
me which should have been attributed elsewhere.

David Fitzjarrell

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
newbie  
View profile   Translate to Translated (View Original)
 More options 13 July 2006, 15:41
Newsgroups: comp.databases.oracle.server
From: "newbie" <rjngh2...@gmail.com>
Date: 13 Jul 2006 07:41:26 -0700
Local: Thurs 13 July 2006 15:41
Subject: Re: insufficient priviliges
Sybrand.

>First suggestion: stop top-posting
>Second suggestion : stop top-posting
>Third suggestion: Always mention your version in order to avoid
>wasting people's time, as in 8i you can't use David Fitzjarell's
>suggestion.

Excellent reply

Sorry, I did not understand the phrase ... top posting

Yes....Next time I shall give Oracle version first.

The reason I was hesitating to change the password is that this is a
production database and as such I did not want to

a) change password to new password.
b) run grant sql
c) revert old password

I would do the above at the last resort

Your trick of creating a stored procedure is an excellent trick


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
gazzag  
View profile   Translate to Translated (View Original)
 More options 13 July 2006, 15:45
Newsgroups: comp.databases.oracle.server
From: "gazzag" <gar...@jamms.org>
Date: 13 Jul 2006 07:45:08 -0700
Local: Thurs 13 July 2006 15:45
Subject: Re: insufficient priviliges

newbie wrote:
> Sybrand.
> Sorry, I did not understand the phrase ... top posting

http://en.wikipedia.org/wiki/Top-posting

Note how my reply appears *under* your text, not on *top* of it.

HTH

-g


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matthias Hoys  
View profile   Translate to Translated (View Original)
 More options 13 July 2006, 20:44
Newsgroups: comp.databases.oracle.server
From: "Matthias Hoys" <a...@spam.com>
Date: Thu, 13 Jul 2006 21:44:20 +0200
Local: Thurs 13 July 2006 20:44
Subject: Re: insufficient priviliges

"Charles Hooper" <hooperc2...@yahoo.com> wrote in message

news:1152743678.501913.205640@35g2000cwc.googlegroups.com...

And of course, when you use this workaround and change the password, the
whole application stops working because db connections will still use the
old password ... Unless this user isn't used at all for db connections, and
then I see no problems using this solution.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Charles Hooper  
View profile   Translate to Translated (View Original)
 More options 14 July 2006, 12:41
Newsgroups: comp.databases.oracle.server
From: "Charles Hooper" <hooperc2...@yahoo.com>
Date: 14 Jul 2006 04:41:43 -0700
Local: Fri 14 July 2006 12:41
Subject: Re: insufficient priviliges

Explore the @ command in SQLPlus.  Throw the command to be executed
into a text file:
* Change password
* Log off
* Connect as the user
* Perform grant
* Log off
* Connect as SYS
* Reset user password by values

Unless it takes five minutes to log into the database, there is little
chance that any one would notice if performed in off hours.

I like the other solution that was proposed earlier.

Charles Hooper
PC Support Specialist
K&M Machine-Fabricating, Inc.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
newbie  
View profile   Translate to Translated (View Original)
 More options 14 July 2006, 22:54
Newsgroups: comp.databases.oracle.server
From: "newbie" <rjngh2...@gmail.com>
Date: 14 Jul 2006 14:54:08 -0700
Local: Fri 14 July 2006 22:54
Subject: Re: insufficient priviliges

Thanks guys

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google