Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > Oracle
|
Oracle General Oracle database discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Oracle section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 11th, 2004, 03:52 AM
Authorized User
 
Join Date: Sep 2003
Posts: 83
Thanks: 0
Thanked 0 Times in 0 Posts
Default Oracle headaches: editing a user's permissions

Hi everyone,

I am total newbie when it comes to Oracle, so please forgive me if this sounds really naive. I have installed Oracle 9i database system on my machine. I added a user and gave it some permissions using the Enterprise Console. However, I cannot find a way to edit that user. How can I do it? What oracle tool will allow me to do this? please help!

Sincerely,

Pankaj

 
Old May 11th, 2004, 04:01 AM
Authorized User
 
Join Date: Apr 2004
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The same console that lets you assign permissions (I assume this is the Oracle Enterprise Manager console) should let you edit permissions.

Alternately, you can use SQL*Plus, i.e.

Code:
GRANT <<privilege or role>> TO <<user>>
REVOKE <<privilege or role>> FROM <<user>>
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC
 
Old May 11th, 2004, 04:41 AM
Authorized User
 
Join Date: Sep 2003
Posts: 83
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

Thanks for the reply!

I could not find anything in the Enterprise Console Manager. Also, can I view the privileges and roles of a user.

Thanks,
Pankaj

 
Old May 11th, 2004, 04:58 AM
Authorized User
 
Join Date: Apr 2004
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Default

In OEM, choose Security | Users in the left-hand tree control to view the privileges assigned to a user.

From SQL*Plus, you can do

Code:
SELECT *
  FROM dba_role_privs
 WHERE grantee=<<user name>>

SELECT *
  FROM dba_sys_privs
 WHERE grantee=<<user name>>
to see the roles and privileges assigned to a user.

Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC
 
Old May 11th, 2004, 06:19 AM
Authorized User
 
Join Date: Sep 2003
Posts: 83
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Perfect!

Thanks a lot Justin. Really appreciate it.

Pankaj






Similar Threads
Thread Thread Starter Forum Replies Last Post
linked table on user's pc Spaceman Spiff Access VBA 8 March 11th, 2004 02:51 PM
Navigator/Gecko Headaches! richard.york Javascript 1 December 23rd, 2003 08:22 PM
Changing attributes of domain user's apalmero VB How-To 0 November 6th, 2003 12:21 PM
Changing attributes of domain user's apalmero Pro VB.NET 2002/2003 0 November 6th, 2003 12:12 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.