210 likes | 241 Views
Controlling Access to the Oracle Listener. Objectives. After completing this lesson, you should be able to do the following: Secure the listener Enable TCP valid node checking Remove default EXTPROC entry Add a separate listener to handle external procedure calls. sqlnet.ora.
E N D
Objectives • After completing this lesson, you should be able to do the following: • Secure the listener • Enable TCP valid node checking • Remove default EXTPROC entry • Add a separate listener to handle external procedure calls
sqlnet.ora tnsnames.ora listener.ora Oracle Net Services Review Application Oracle Net RDBMS Oracle Net Listener TCP/IP network Client Database server
Listener Password Authentication • In Oracle Database 10g, the listener is secure by default. • Operating system authentication is used. • Listener passwords are still supported if needed. • Use listener control utility lsnrctl • Use EM Database Control • Use Oracle Net Manager
Setting Listener Password • Using Enterprise Manager
Set Password with lsnrctl Utility • Using the lsnrctlCHANGE_PASSWORD command: $ lsnrctl LSNRCTL> CHANGE_PASSWORD Old password: ******* New Password: 1tsaSafe1 Reenter new password: 1tsaSafe1 LSNRCTL> SAVE_CONFIG
Oracle Net Services External Procedures • External procedures that are called from a program, but are written in a different language • The listener must be configured to listen for external procedure calls • Listener starts an external procedure agent • Default agent name is EXTPROC
Overview of the EXTPROC Agent • It services execution of external procedures for the duration of the session until the user logs off. • Each session uses a different EXTPROC agent to execute external procedures. • The listener must be configured to allow the server to be associated with the EXTPROC agent. • The listener must be on the same machine as the server.
PL/SQL Calling a C External Procedure 3 Listenerprocess 2 4 6 EXTPROCagent 7 5 PL/SQL subprogram Aliaslibrary BEGIN myproc 1 Userprocess Externalprocedure Shared library
Default Configuration for External Procedure Calls • Listener is configured to accept requests for external procedures by Oracle Net Configuration Assistant during installation. • A net service name is configured in the tnsnames.ora file. EXTPROC_CONNECTION_DATA= (DESCRIPTION= (ADDRESS=(PROTOCOL=ipc)(KEY=extproc)) (CONNECT_DATA= (SID=plsextproc)))
Modifying the Configuration forExternal Procedure Calls • Remove the external procedure entries for the default listener. • Configure a separate listener dedicated to servicing external procedures. • Configure listener to run with privileges lower than those of the listener for the database. • Restrict the DLLs that the EXTPROC agent can load.
Remove Default EXTPROC Entry • Using Enterprise Manager:
Remove Default EXTPROC Entry • Using Net Manager
Configure a Dedicated Listener for External Procedure Calls • Using Enterprise Manager
Configure a Dedicated Listener for External Procedure Calls • Using Enterprise Manager
Configure a Dedicated Listener for External Procedure Calls • Using Net Manager
Summary • In this lesson, you should have learned how to: • Secure the listener • Enable TCP valid node checking • Remove default EXTPROC entry • Add a separate listener to handle external procedure calls
Practice 3 Overview: Controlling Access to the Listener • This practice covers the following topics: • Password protecting listener management tasks • Removing the default EXTPROC listener service • Creating a dedicated listener for external procedures • Controlling database access