472,353 Members | 1,897 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 software developers and data experts.

How to give privileges of one user to another

After creating the user, how to give the new user the priviledges of Scott. I mean I want to use the tables of Scott
Oct 16 '07 #1
5 19298
amitpatel66
2,367 Expert 2GB
After creating the user, how to give the new user the priviledges of Scott. I mean I want to use the tables of Scott
GRANT SELECT on the tables that you want to use from scott.

Eg:

Connect to SCOTT:

GRANT SELECT ON EMP TO <new_user>;
Oct 16 '07 #2
amitpatel66
2,367 Expert 2GB
you can use

GRANT ALL PRIVILEGES [(column, column,...)]
ON [schema.]object
TO grantee [WITH GRANT OPTION] [WITH HIERARCHY OPTION]

Check for more GRANT options here
Oct 16 '07 #3
gintsp
36
AS Scott:

GRANT <necessary privileges> ON <necessary objects> TO <new_user>;

For easier use as new user:

CREATE SYNONYM <synonym name> FOR SCOTT.<necessary objects>;

See GRANT synatx and available object privileges here
Table 18-3 Object Privileges Available for Particular Objects

Create synonym syntax here


Gints Plivna
http://www.gplivna.eu
Oct 16 '07 #4
Thank you very much Amit

[With regards,
Latha R

GRANT SELECT on the tables that you want to use from scott.

Eg:

Connect to SCOTT:

GRANT SELECT ON EMP TO <new_user>;
Oct 16 '07 #5
Thank you very muh,

With regards,
Latha

AS Scott:

GRANT <necessary privileges> ON <necessary objects> TO <new_user>;

For easier use as new user:

CREATE SYNONYM <synonym name> FOR SCOTT.<necessary objects>;

See GRANT synatx and available object privileges here
Table 18-3 Object Privileges Available for Particular Objects

Create synonym syntax here


Gints Plivna
http://www.gplivna.eu
Oct 16 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Marc | last post by:
Hello, I have 3 users in my MySQL server. One of them has Grant access (actually: all privileges). I cannot login as this user using phpMyAdmin -...
4
by: Amardeep Verma | last post by:
Hi, I have a quick question. Which role/privileges are required before a user can give the statement "GRANT ALL PRIVILEGES"? Thanking you in...
0
by: Charles Cantrell | last post by:
I have recently set up mySQL on a Mandrake release of Linux (Version 7 of Mandrake, I believe), using the binary 4.0.13 standard release. The set...
0
by: Marc | last post by:
Hello, I have 3 users in my MySQL server. One of them has Grant access (actually: all privileges). I cannot login as this user using phpMyAdmin -...
0
by: Fred Johnson | last post by:
Hi folks: I need to give a special user admin rights to the databases he creates. As there is no dedicated MySQL database server for his needs...
2
by: virgilio | last post by:
Hi all, "Administrator Guide Implementation" DB2 8.2, chapter 7, section "Indirect privileges through a package" states: (highlight >>>>!!!<<<<)...
4
by: Feldman Alex | last post by:
Hi all, I need to know the user privileges (does user have administrator privileges) .. Which c# api's should i use? Thanks a lot
11
by: steingold | last post by:
Hi All. Is it possible to define an external stored procedure to be executed not with the executing user privileges, but instead with the user who...
6
by: Frank Swarbrick | last post by:
I feel like an idiot for asking this, but neither I nor my DBA can figure this out. How do you create a database object that does not implicitly...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.