Mobile Application Services

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Wednesday, 14 August 2013

CMAN [ Oracle Connection Manager ]

Posted on 03:21 by Unknown
              
                     Oracle Connection Manager helps a client process with directions to a network address. The Oracle Connection Manager behaves like a listening router where a connection request is sent to the next node on the path to its destination; this next node could be the target server or a next step. Additionally Oracle Connection Manager can provide connection concentration, access control and support for multiple protocols simultaneously. Connection Manager can help to integrate multiple networks into a larger single network. Connection Manager can also provide acceptance and rejection filtering for different nodes and effectively act as a filtering firewall process, ie. network access control. Note that Oracle Connection Manager is only available with MTS and is is best utilized in concert with Oracle Names servers.
Oracle Connection Manager has two processes.
  1. The Connection Manager Administrative process (CMADMIN) is an Oracle Connection Manager administrative process. The utility cmctl will access CMADMIN through CMGW
  2. The Gateway process (CMGW) listens for client connection requests; defaulted on port 1630 using TCP/IP. Connection requests are passed to a listener and data is relayed between client and server processes.

Features of Oracle Connection Manager

Features of the Oracle Connection Manager are two-fold. The first is connection concentration or funneling (multiplexing) of many client connections into a single centralised connection. The second is that of support of multiple protocols on a single network.

Connection Concentration

MTS can be utilised to reduce the total number of concurrent connections between client and server machines, therebye conserving valuable server resources. Oracle Connection Manager will allow multiplexing (funneling) of multiple client network sessions to a single TCP/IP connection on an MTS target server. Connection concentration allows for multiple connections between two processes. This allows the server to service more connection requests since multiple client connection requests can be serviced by a single dispatcher process. Therefore use of multiple Connection Managers can increase the number of concurrent client connections serviced astronomically. In order to enable Oracle Connection Manager connection concentration the mts_dispatchers parameter must be set appropriately in the parameters file as shown below.
mts_dispatchers = "(PROTOCOL=TCP) (MULTIPLEX=ON))"

Multiple Protocol Support

Multiple protocol support allows for communication across networks using something introduced before the introduction of Net8 called MultiProtocol Interchange. MultiProtocol Interchange allows communcation between incompatible network protocols. Multiple protocol support through Oracle Connection Manager must be applied to tnsnames.ora files on client machines. Note the multiple protocol example tnsnames.ora file shown below.
TEST =
(DESCRIPTION =
(SOURCE_ROUTE = YES)
(ADDRESS = (PROTOCOL = SPX) (SERVICE = cman))
(ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (HOST = <hostname>) (PORT = 1521)))
(CONNECT_DATA = (SERVICE_NAME = TEST) (SERVER = SHARED))
)

Oracle Connection Concentration using Oracle Connection Manager and Multi-Protocol Support

Configuration

Oracle Connection Manager Configuration

Net8 uses listener.ora and tnsnames.ora files. Oracle Names server uses a file called oname.ora. Oracle Connection Manager uses a configuration file called cman.ora. There are many configurable parameters for use with Oracle Connection Manager.

cman = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (HOST = <hostname>) (PORT = 1630) (QUEUESIZE = 64)))
cman_admin = (ADDRESS = (PROTOCOL = TCP) (HOST = <hostname>) (PORT = 1830))
cman_profile =
(PARAMETER_LIST =
(MAXIMUM_RELAYS = 1 to 2048)
(USE_ASYNC_CALL = YES)
)
cman_rules =
(RULE_LIST =
(RULE =
(SRC = <hostname>)
(DST = <hostname> | x)
(SRV = <SID> | x)
(ACT = accept | reject)
)
)


The example below shows configuration of the Oracle Connection Manager file cman.ora on the server where the Oracle Connection Manager will listen on multiple protocols for differnt client connection requests using those different protocols. The Oracle Connection Manager will then connect to the database server listener process for the client.

cman=
(DESCRIPTION=
(SOURCE_ROUTE=YES)
(ADDRESS_LIST=
(ADDRESS=(PROTOCOL=SPX)(SERVICE=cman))
(ADDRESS=(PROTOCOL=TCP)(HOST=<hostname>)(PORT=1521))
)
(CONNECT_DATA=(SERVICE_NAME=xyz.com))
)

Note the default ports for non-administration connections (CMGW) as port 1630 and adminsitrative (CMADMIN) connections as port 1830. The cman_profile parameter contains Oracle Connection Manager parameter settings. The cman_rules parameter sets filtering rules for network access control across the network. Filtering rules will apply access rules and rights to connection requests between different nodes in a network. Note the optional values in the DST and SRV attributes of the cman_rules parameter settings shown above; x implies any host or database SID can be connected to. The cman_profile, PARAMETER_LIST attribute shown above has 16 possible parameter settings. The MAXIMUM_RELAYS attribute will limit the maximum concurrent connections to be supported by a single Oracle Connection Manager CMGW process.

Configuration Parameter File Parameters on the Server

Oracle Connection Manager can only be used with a server MTS configuration. Simply change the MTS_DISPATCHERS parameter in the parameters file as shown below.
mts_dispatchers = "(PROTOCOL=TCP) (MULTIPLEX=ON))"
mts_dispatchers = "(PROTOCOL=SPX) (MULTIPLEX=ON))"

Configuring the tnsnames.ora File on the Client

Client configuration requires two tnsnames.ora configuration file entries for both the listener on the server and the Oracle Connection Manager on the server. In the example tnsnames.ora file below the highlighted section is the address required for the Oracle Connection Manager. Setting SOURCE_ROUTE=YES provides a source route of addresses through the Oracle Connection Manager to the listener. Note that the Oracle Connection Manager will make the connection to the listener on the server. Also note that when SOURCE_ROUTE=YES is set then client load balancing and failover options cannot be used.
<SID>=
(DESCRIPTION=
(SOURCE_ROUTE=YES)
(ADDRESS=(PROTOCOL=TCP)(HOST=<hostname>)(PORT=1630))

(ADDRESS=(PROTOCOL=TCP)(HOST=<hostname>)(PORT=1521))
(CONNECT_DATA=(SERVICE_NAME=xyz.com))
)

The CMCTL Utility

CMCTL is the Oracle Connection Manager Control utility. CMCTL is executed as CMCTL <command> [ cman | cm ]. cman executes both CMGW and CMADMIN, cm executes just CMGW. Note that where bothcman and cm are listed as optional, the default is cman.
  • Operational Commands.
    • START [ cman | cm ] - starts the Oracle Connection Manager.
    • STOP[NOW] - stop the Oracle Connection Manager.
    • SHUTDOWN [ normal | abort ] [ cman ] - Use SHUTDOWN not STOP and STOP NOW since SHUTDOWN executes all the functionality of both.
    • ACCEPT_CONNECTIONS [ ON | OFF ] - OFF will disable Oracle Connection Manager from accepting new connections.
    • CLOSE_RELAY [ n ] - close a relay (connection).
  • SET <commmand>
    • AUTHENTICATION_LEVEL [ 0 | 1 ] - security level setting. No authentication (0) or enforces use of SNS (Secure Network Service) for client connection request authentication to Oracle Connection Manager.
    • DISPLAYMODE [ COMPAT | VERBOSE ].
    • LOG_LEVEL [ 0 - 4] - no logging (0), basic (1), rule_list matching (2), relay blocking (3) and relay I/O counts (4).
    • RELAY_STATISTICS [ ON | OFF ] - bytes and packets in and out.
  • Information & Utility Commands.
    • STATUS [ cman | cm ].
    • STATS [ cman | cm ] - displays Oracle Connection Manager statistics including relays, delays and connection refusals.
    • SHOW <command>.
      • ADDRESS - displays current Oracle Connection Manager listening addresses.
      • ALL - executes SHOW ADDRESS, SHOW PROFILE and SHOW RULES.
      • DISPLAYMODE [ COMPAT | VERBOSE ].
      • PROFILE - shows parameter settings contained in the cman_profile parameters in the cman.ora file.
      • RELAY [ argument ] - shows relay status. A relay is the same as a connection. Shows active relays or specific relays of bytes, packets, probes plus client and server end-point addresses.
      • RULES - displays all Net8 access rules currently implemented.
    • EXIT, QUIT, HELP and VERSION - self explanatory.

Oracle Connection Manager Configuration Parameters

Oracle Connection Manager Configuration parameters are stored in the $ORACLE_HOME/network/admin/cman.ora file.

CMAN

CMGW listening addresses.
cman = 
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = <hostname>) (PORT = 1630))
(ADDRESS = (PROTOCOL = TCP) (HOST = <hostname>) (PORT = 1631))
(ADDRESS = (PROTOCOL = TCP) (HOST = <hostname>) (PORT = 1632))
)
)

CMAN_ADMIN

CMADMIN listening addresses.
cman_admin = 
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = <hostname>) (PORT = 1830))
)
)

CMAN_PROFILE

Oracle Connection Manager profiling.
cman_profile = 
(PARAMETER_LIST =
( ... )
( ... )
)
  • ANSWER_TIMEOUT = [0-n] - timeout for connection request.
  • AUTHENTICATION_LEVEL = [0|1] - 0 lets everything through and 1 allows only SSN (Secure Network Services) connections.
  • LOG_LEVEL = [0-4] - 0 is none, 1 is basic, 2 is rules matching, 3 is relay blocking and 4 is relay I/O.
  • MAX_FREELIST_BUFFERS = [...] - maximum buffers kept by TNS freelist for later re-use after close of relay.
  • MAXIMUM_CONNECT_DATA = [...] - incoming connection request connect data string length.
  • MAXIMUM_RELAYS = [ON|OFF] - maximum concurrent connections.
  • RELAY_STATISTICS = [ON|OFF] - records statistics of bytes and packets.
  • REMOTE_ADMIN = [ON|OFF] - remote access to Oracle Connection Manager.
  • SHOW_TNS_INFO = [ON|OFF] - include TNS details in cman_pid.log.
  • TRACING = [ON|OFF].
  • TRACE_[DIRECTORY | FILELEN | FILENO | TIMESTAMP] = [] - $ORACLE_HOME/network/trace/cman_pid.trc with multiple files plus event level time-stamping.
  • USE_ASYNC_CALL = [ON|OFF].

CMAN_RULES

Network access control filtering for Oracle Connection Manager. No rules present implies all connections are accepted. The x character can be used as a wildcard character to replace any value or an IP-Address as(x.123.x.x).
cman_rules = 
(RULE_LIST =
(RULE =
(SRC = <hostname>)
(DST = <hostname> | x)
(SRV = <SID> | x)
(ACT = accept | reject)
)
(RULE =
(SRC = <hostname>)
(DST = <hostname> | x)
(SRV = <SID> | x)
(ACT = accept | reject)
)
)
  • SRC - connection request source host or IP-Address. Machine hosting client to which rule applies.
  • DST - connection request target host or IP-Address. Machine hosting database to which rule applies.
  • SRV - database server <SID>. Oracle database service on machine hosting Oracle database to which rule applies.
  • ACT - accept or reject connection requests as described in SRC, DST and SRV.
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in CMAN [ Oracle Connection Manager ] | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Difference Between Oracle apps 11i & R12
    Summary of Changes : Component Release 11i Release 12 Database 9.2 10.2 Developer 6i 10i Application Server 1.0 10.1 Client Plug-in Jinitiat...
  • Obtaining Forms Runtime Diagnostics (FRD) In Oracle Applications
    A. Introduction When starting a Forms-based session in Applications it is possible to pass various useful parameters like formname=xyz, or l...
  • The simplest query for checking what’s happening in a database
    When someone asks you to take a quick look into database performance and for whatever reason you can’t run your usual scripts or performance...
  • Refresh vs Clone
    Refreshing VS Cloning an e-Business Suite Environment What is Refreshing? A refresh is where the data in the target environment has been syn...
  • How To Change Look And Feel and Colors Of Oracle Applications 11i and R12
    There are two system profile options that can be used to change look and feel.  Java Look and Feel . Java Look and Feel can have two values:...
  • Workflow Scripts
    1.Check for workflow components: ================================ set pagesize 400 set linesize 120 set pagesize 50 column COMPONENT_NAME fo...
  • CMAN [ Oracle Connection Manager ]
                                         Oracle Connection Manager helps a client process with directions to a network address. The Oracle Conn...
  • Oracle 11g RAC Interview question and answers
    1. What is the major difference between 10g and 11g RAC? Well, there is not much difference between 10g and 11gR (1) RAC. But there is a sig...
  • Concurrent Manager : troubleshooting
    Concurrent Manager : troubleshooting Summary of Possible Reasons and Solutions for the Problem Where All Concurrent Requests Stuck in Pendin...
  • How to lock/unlock statistics on a table?
                   In certain cases you may want to lock statistics in a table in certain cases, for example if you want a table not be analyzed...

Categories

  • 11.2.0.3 to 12.1.0 (Oracle 12c) upgrade
  • Backup and recovery
  • Basic RAC Commands
  • Blocking Sessions
  • CMAN [ Oracle Connection Manager ]
  • Data Guard Interview Questions
  • Deadlocks
  • Difference Between Oracle apps 11i & R12
  • File Locations -R12
  • Gather stats on table in oracle
  • How To Change Look And Feel and Colors Of Oracle Applications 11i and R12
  • How to compile invalid objects in an APPS Environment
  • How to recover Applications context file if it is corrupted or deleted accidentally?
  • How to Recreate the OraInventory?
  • Important DBA Views
  • JInitiator version too low and quot Errors in EBS Environments
  • Linux interview questions for DBA
  • Log file location in Oracle Apps 11i/R12
  • Long running concurrent requests
  • MWA Services
  • Obtaining Forms Runtime Diagnostics (FRD) In Oracle Applications
  • ORA-00845: MEMORY_TARGET not supported on this system
  • Oracle 11g RAC Interview question and answers
  • Oracle Applications Idle Session Timeout
  • Oracle Apps DBA Interview Questions
  • Oracle DBA Interview Questions
  • Oracle E-Business Suite 12.2 Architecture
  • Oracle Exadata Interview Questions
  • Personalizing The Login Page
  • RAC Cheat Sheet
  • RAC Interview Questions
  • Recovery catalog for RMAN backup
  • Refresh vs Clone
  • REP-3000 Oracle Toolkit Error
  • Replacing Jinitiator with JRE
  • RMAN Backup
  • RMAN Commands List (Oracle 11g)
  • Snapshot
  • TEMP Tablespace
  • Tracing Techniques
  • Undo Tablespace
  • Unix for DBA's
  • Workflow Mailer Troubleshooting
  • Workflow Trouble Shooting

Blog Archive

  • ▼  2013 (30)
    • ►  November (3)
    • ►  October (3)
    • ▼  August (3)
      • How to lock/unlock statistics on a table?
      • CMAN [ Oracle Connection Manager ]
      • DBA Views
    • ►  July (1)
    • ►  May (1)
    • ►  March (10)
    • ►  February (8)
    • ►  January (1)
  • ►  2012 (27)
    • ►  November (1)
    • ►  October (8)
    • ►  September (5)
    • ►  August (5)
    • ►  July (7)
    • ►  June (1)
Powered by Blogger.

About Me

Unknown
View my complete profile