Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Logon trigger to boot a user from SQLPLUS 1

Status
Not open for further replies.
Mar 17, 2005
44
US
I have a user account that I want to only connect from a certain application and I want to reject logins from SQL*Plus.

Is there a way to create a logon trigger to check the name of the account and the method of connection (sqlplus from Unix or SQLPLUS.EXE from Windows) and if that's true, boot them?

Thanks
Steve
 

You could look into fine grained access control [3eyes]

----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 


Good catch hoinz, maybe that would be easier to implement. [noevil]


----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
Hmmm, that's going to cover 95% of my access issues, I think.

However:
The PUP table applies only to the local database. If accessing objects on a remote database via a database link, the PUP table for the remote database does not apply. The remote database cannot extract the username and password from the database link in order to determine that user's profile and privileges.

This won't protect me from a user connecting to the Unix database via SQL*Plus for Windows.

Any other thoughts?

However, I will play with the PUP table and have a star.

Steve
 
Glad it helped, thanks.

And you are right, this won't protect you from a user connecting to the database via SQL*Plus.
The link says that you may disable connect command in SQL*Plus, but unfortunately this does not apply to the initial connect.

regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top