Any Dba In D House,please Help

A Member? Please Login  
type your username and password to login
Date: July 26, 2008, 04:29 PM
223847 members and 127166 Topics
Latest Member: seyi2492
Nairaland [Nigerian Forum] Home Help Search Who is currently online? Login Register
Nairaland Forum  |  Technology  |  Programming  |  Any Dba In D House,please Help
Pages: (1) Go Down Send this topic Notify of replies
Author Topic: Any Dba In D House,please Help  (Read 341 views)
zai (f)
Any Dba In D House,please Help
« on: May 24, 2007, 10:02 AM »

Goodmornin,
please can any one help me on this.
Am havin prob granting access 2 a new user of a database.Each time i run d query "Grant all to , " it says d login has no valid role,thus access denied by d dbo.
Please help .
Maleeq (m)
Re: Any Dba In D House,please Help
« #1 on: May 25, 2007, 03:03 PM »

The problem is that the user you are logged in as does not have the necessary to privilege to grant other users all privileges.
What you need to do is to connect as the sysdba (or contact your sysdba)  to grant you (the user you are logged on as)  "all privileges" with grant option or admin option, then you will be able to grant other users the specific or "all  privileges"

Let me know if this resolves your problem
zai (f)
Re: Any Dba In D House,please Help
« #2 on: May 28, 2007, 10:13 AM »

Thanx 4 d reply.
This is actually my 1st time of creating a login in an existing database,because i was just given d responsibilty of a DBA.Though i av done several w same mthd n can't really say y this is given me a prob.Even when i logged in as SA,its tel me dr is no user/role with this name.
Please can u help on this.
Maleeq (m)
Re: Any Dba In D House,please Help
« #3 on: June 01, 2007, 08:53 PM »

Obviously, the user you want to grant these privileges does not exist!. You can check if it does by querying the dba_users to confirm. If it aint there, then create that user and try again.
SLEEK_CHIC (f)
Re: Any Dba In D House,please Help
« #4 on: June 04, 2007, 08:55 AM »

Hello Zai,

Hope the work's coming on fine. I know you can grant a privilege or role. Personally, i don't think you can grant "all" to a user cause all is not a privilege, neither is it a role. If you want to give the person all the system and object priviledges, you can either grant DBA to the user , or create a role and grant all the priviledges (u want the person to have )to that role, then grant the role to the user.

Hope this helps you.

All the best
webguru
Re: Any Dba In D House,please Help
« #5 on: February 15, 2008, 06:57 PM »

all these is seemin like film trick after so long

when will oracle wake up in naija?
ubonessiet
Re: Any Dba In D House,please Help
« #6 on: February 19, 2008, 05:37 PM »

the syntax to grant privileges or roles to a user:

1. sqlplus conn [username/password] @[database name] as SYSDBA

NOTE: YOU MUST BE CONNECTED AS A SYSDBA BEFORE YOU CAN GRANT ANY PRIVILEGE OR IF YOU ARE NOT A SYSDBA, YOU MUST HAVE BEEN GRANTED PRIVILEGES WITH ADMIN OPTION (THIS WILL ALLOW YOU TO GRANT OTHERS SYSTEM PRIVILEGES) OR WITH GRANT OPTION (TIHS WILL ALLOW YOU TO GRANT OTHERS OBJECT PRIVELEGES)

2. sqlplus> grant [privilege] | [privilege, privilege,, ] ON OBJECT
                   to user
NOTE: YOU MUST HAVE CREATED A USER BEFORE YOU GRANT A PRIVILEGE OTHERWISE YOU WILL RECEIVE AN ERROR

eg. sqlplus conn tom/tiger @buran as SYSDBA

, connected

sqlplus> grant SELECT, UPDATE, INSERT, DELETE ON HR
               to ZAI
, grant succeded
 Php Patterns  Voice Recording Software Source Code  How About A Programming Collabo On Nairaland?  Page 2
Pages: (1) Go Up Send Topic to Friend by E-mail Reply 
Google
 
Web www.nairaland.com
Sections: TV/Movies (2) Music/Radio (2) Celebrities Jobs (2) Career Romance Books Politics Sports Fashion Travel
Health Schooling Religion General(2) Business Webmaster Programming Computers Phones Cars & Trucks

Links: Page1 Page2 Page3 Page4 Page5 Page6 Page7 Page8 Page9 Page10

Nairaland is owned by Oluwaseun Osewa
Nairaland Forum | Powered by SMF 1.0.12.
© 2001-2005, Lewis Media. All Rights Reserved.