Creating Public Function.

In this forum you can share stuff related to Oracle 11g, 10g, 9i.
Post Reply
Kashif
Posts: 137
Joined: Wed Apr 26, 2006 5:57 am
Location: Pakistan
Contact:

Creating Public Function.

Post by Kashif »

Asslam-o-Alailkum All Members.

Here is a Little Query about creating a public Function. which can be accessable from all database users. with out giving any RIGHTS for EXECUTE that funcion.
As all the other built-in Oracle functions can be accessed from all users with out giving any special rights to EXECUTE that functions.

Any Help or Idea will be appreciated.


Best Regards.

Muhammad Kashif
admin
Posts: 2063
Joined: Fri Mar 31, 2006 12:59 am
Location: Pakistan
Contact:

Post by admin »

You will have to grant to public instead of a specific user,

Example:
grant select on emps to public;
Kashif
Posts: 137
Joined: Wed Apr 26, 2006 5:57 am
Location: Pakistan
Contact:

Post by Kashif »

grant select on emps to public;
Thanks Mr. Admin
Its working. Thank u Very Much.
Anohter Question here is.
we have to Give the SCHEMA Name Before Function Name.
How Can we Elliminate this.


Best Regards.

Muhammad Kashif
admin
Posts: 2063
Joined: Fri Mar 31, 2006 12:59 am
Location: Pakistan
Contact:

Post by admin »

Synonyms will be used for this.
Kashif
Posts: 137
Joined: Wed Apr 26, 2006 5:57 am
Location: Pakistan
Contact:

Post by Kashif »

Thanks u Very much Mr. Admin.
I found The Solution with ur Help.
Thanks Again.

Best Regards.

Muhammad Kashif
Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests