Home > Ask the Oracle Experts > (Archive) Database Security Questions & Answers > Preventing connections to the database
Ask The Oracle Expert: Questions & Answers
EMAIL THIS

Preventing connections to the database

Dan Norris EXPERT RESPONSE FROM: Dan Norris

Pose a Question
Other Oracle Categories
Meet all Oracle Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 21 March 2005
Is there a way with Oracle 8.0, 8i and or 9i to prevent connections to the database from certain applications such as Microsoft Access?

>
EXPERT RESPONSE
One feature that seems to fit this pretty well is to use secure application roles. These are roles created like this:

CREATE ROLE app_role IDENTIFIED USING app_owner.some_package;

You write some_package in this case and call a procedure in that package from a login trigger. The procedure would do the desired checks and if they pass, it would call DBMS_SESSION.SET_ROLE to set the app_role in that session. If the checks don't pass, the role isn't set. Because of the definition of the role, the only way to enable it is by running a procedure from the some_package package. If all your application privileges are in that role (or maybe in several roles defined similarly), then you won't necessarily prohibit users from logging in and establishing a session using any tool they like. However, once they connect with an undesirable tool, they won't have any application privileges and will only be able to access objects with privileges granted to PUBLIC.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
(Archive) Database Security
Identifying the user who submits a query
Is it possible to granting privileges on a schema level?
Acquiring knowledge of Oracle database users and their IDs
Manage users using Oracle Internet Directory
Is there a "backdoor" to retrieve passwords?
Setting up password values
Does Oracle password support special characters?
SQL statement issued by the client system
Oracle forms only accessing the database
Deploy entire database schemas

Oracle database security
Oracle Security: Top five headlines
Oracle Identity Manager adds provisioning, compliance features
Firm dumps MySQL on Red Hat for Oracle Database on Oracle Linux
Oracle password best practices
Five ways to prepare for a SOX audit
When were the SYS/SYSTEM passwords last changed?
How to create a password file in Oracle 9i?
Bharosa to give Oracle users transaction security
Database security when users can connect without password
Running a script without user's password to Oracle database

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice

HomeNewsTopicsTipsAsk the ExpertsMultimediaWhite PapersProductsBlogs
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2003 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts