dbTalk Databases Forums  

restrict login

comp.databases.oracle.server comp.databases.oracle.server


Discuss restrict login in the comp.databases.oracle.server forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
DHILEN JOGI
 
Posts: n/a

Default restrict login - 01-04-2012 , 12:59 AM






how to restrict unauthorized user by using logon trigger????

means in my data dictionary i hv number ip to whom i want to give
access n other i dnt want
so how can i perform that by logon trigger ????????

Reply With Quote
  #2  
Old   
Mladen Gogala
 
Posts: n/a

Default Re: restrict login - 01-04-2012 , 06:13 AM






On Tue, 03 Jan 2012 22:59:04 -0800, DHILEN JOGI wrote:

Quote:
how to restrict unauthorized user by using logon trigger????

means in my data dictionary i hv number ip to whom i want to give access
n other i dnt want so how can i perform that by logon trigger ????????
Why would you want a logon trigger? What you need is called "a firewall".



--
http://mgogala.byethost5.com

Reply With Quote
  #3  
Old   
Mark D Powell
 
Posts: n/a

Default Re: restrict login - 01-04-2012 , 08:22 AM



On Jan 4, 1:59*am, DHILEN JOGI <kanoj... (AT) gmail (DOT) com> wrote:
Quote:
how to restrict unauthorized user by using logon trigger????

means in my data dictionary i hv number ip to whom i want to give
access n other i dnt want
so how can i perform that by logon trigger ????????
Dihilen, your post is not very clear, access to what?

The sqlnet layer of Oracle has parameters that can be used to allow
and block access to the listener based on IP addresses. This feature
might be of interest to you.

You also failed to list your full version and edition of Oracle. Your
options related to database event logon triggers vary somewhat on the
version and if you have the Standard Edition or Enterprise Edition.
With a modern version of the EE you could check the IP address of a
session in a logon trigger and set a context value that is used by
FGAC (VPD) to filter query results providing what you actually want to
do is something that the VPD feature applies to. Like I said earlier
your intent is not clearly stated.

HTH -- Mark D Powell --

Reply With Quote
  #4  
Old   
John Hurley
 
Posts: n/a

Default Re: restrict login - 01-04-2012 , 10:05 AM



On Jan 4, 1:59*am, DHILEN JOGI <kanoj... (AT) gmail (DOT) com> wrote:
Quote:
how to restrict unauthorized user by using logon trigger????

means in my data dictionary i hv number ip to whom i want to give
access n other i dnt want
so how can i perform that by logon trigger ????????
What does your current plsql code for the trigger look like now
exactly?

Reply With Quote
  #5  
Old   
DHILEN JOGI
 
Posts: n/a

Default Re: restrict login - 01-13-2012 , 02:41 AM



On Jan 4, 7:22*pm, Mark D Powell <Mark.Powe... (AT) hp (DOT) com> wrote:
Quote:
On Jan 4, 1:59*am, DHILEN JOGI <kanoj... (AT) gmail (DOT) com> wrote:

how to restrict unauthorized user by using logon trigger????

means in my data dictionary i hv number ip to whom i want to give
access n other i dnt want
so how can i perform that by logon trigger ????????

Dihilen, your post is not very clear, access to what?

The sqlnet layer of Oracle has parameters that can be used to allow
and block access to the listener based on IP addresses. *This feature
might be of interest to you.

You also failed to list your full version and edition of Oracle. *Your
options related to database event logon triggers vary somewhat on the
version and if you have the Standard Edition or Enterprise Edition.
With a modern version of the EE you could check the IP address of a
session in a logon trigger and set a context value that is used by
FGAC (VPD) to filter query results providing what you actually want to
do is something that the VPD feature applies to. *Like I said earlier
your intent is not clearly stated.

HTH -- Mark D Powell --


my oracle verson is oracle 10g standard edition
and u correctly got my prob that i wants to restrict people
whose ip does not exist in my database table...
n i want to perform that by using trigger which fired on logon
in my database so hoe i can perform
and

my oracle verson is oracle 10g standard edition
also
my internet is working properly......

thnx in advance...

Reply With Quote
  #6  
Old   
DHILEN JOGI
 
Posts: n/a

Default Re: restrict login - 01-13-2012 , 02:42 AM



On Jan 4, 7:22*pm, Mark D Powell <Mark.Powe... (AT) hp (DOT) com> wrote:
Quote:
On Jan 4, 1:59*am, DHILEN JOGI <kanoj... (AT) gmail (DOT) com> wrote:

how to restrict unauthorized user by using logon trigger????

means in my data dictionary i hv number ip to whom i want to give
access n other i dnt want
so how can i perform that by logon trigger ????????

Dihilen, your post is not very clear, access to what?

The sqlnet layer of Oracle has parameters that can be used to allow
and block access to the listener based on IP addresses. *This feature
might be of interest to you.

You also failed to list your full version and edition of Oracle. *Your
options related to database event logon triggers vary somewhat on the
version and if you have the Standard Edition or Enterprise Edition.
With a modern version of the EE you could check the IP address of a
session in a logon trigger and set a context value that is used by
FGAC (VPD) to filter query results providing what you actually want to
do is something that the VPD feature applies to. *Like I said earlier
your intent is not clearly stated.

HTH -- Mark D Powell --





my oracle verson is oracle 10g standard edition
and u correctly got my prob that i wants to restrict people
whose ip does not exist in my database table...
n i want to perform that by using trigger which fired on logon
in my database so hoe i can perform
and

my oracle verson is oracle 10g standard edition
also
my internet is working properly......

thnx in advance...

dhilen jogi

Reply With Quote
  #7  
Old   
Mark D Powell
 
Posts: n/a

Default Re: restrict login - 01-13-2012 , 11:34 AM



Does this query help? Obviously I have hacked the output IP.

SQL> select sys_context('USERENV','IP_ADDRESS') from sys.dual;

SYS_CONTEXT('USERENV','IP_ADDRESS')
--------------------------------------------------------------------------------
999.999.9.999

HTH -- Mark D Powell --

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.