i) The information here pertains to CF versions 5 and below. For later
versions of CF please check out my article on
Oracle networking for CFMX
i) Although this article is geared to ColdFusion users,
it should be of some use to those new to Oracle
Networking
(Last Revised: 29 July 2002)
Here's the situation: you've installed your ColdFusion software,
and ensured that the CF server can communicate with your Web
server. The next step is to set up connectivity between CF
and an Oracle backend. This tip outlines the steps you need
to undertake in order to do this, and also
explain a bit about what is going on. Note that this discussion
deals only with the very commonly used
local naming method of setting up
Oracle networking - in which database server locations
are set up through a tnsnames.ora file. More on this
below. For completeness, though, I should point out that
there are other methods such as Oracle Names and
Oracle Internet Directory. I also assume that
you are running CF on Windows 9.x,/NT/2000/XP, although some
of the discussion is fairly generic and should apply to
other OSs as well.
The mechanics of client-database interaction:
I assume that the Oracle database is up and running, and has
the (database) server side networking software installed
and functioning. If this is correctly done, there should
be an Oracle process called a Listener running
on the database server machine. This process "listens" for
incoming client requests, such as those from the CF server,
and passes them on to the database (or more
correctly, a database server process) for processing. The
Listener's role is limited to establishing initial contact
between the client process and the database server process.
Thereafter the database and client talk directly to each other,
and the listener continues to listen for new requests. The
aforementioned discussion holds when the database operates
in dedicated server mode (one database server process
per client), which is the case for most
Oracle databases. Things work a bit differently when the
database operates in shared server (version 9i) or
multithreaded
server (version 8i) mode, in which
several clients share a database server process,
but I won't go into that here.