Re: [Orclib-users] how to setup OCILIB to connect to database on local network?
Open source C and C++ library for accessing Oracle Databases
Brought to you by:
vince_del_paris
From: vincent r. <vin...@ya...> - 2012-03-14 18:26:03
|
You can pass for 'db' param of OCI_ConnectionCreate() : - a tnsname alias (and then the full connection string from tnsnames.ora will be used) - an easy connection string like '//server:port/service' - an easy connection string like 'server:port/service' On Wed, Mar 14, 2012 at 6:27 PM, <mod...@co...> wrote: > My application (Linux) server and database (Linux) server physically sit > next to each other and are connected with a cross-connect cable. They are > configured on the same local network. > > To speed requests between these servers when using JDBC, I have set up > JDBC using the Connection URL: > > "jdbc:oracle:thin:@<hostname>:<port>:<sid>" > > where <hostname> is set to 127.0.0.1 (e.g. local network) > > Is there a way I can setup OCILIB to route requests through a local > network similarly? Can I do this using OCI_ConnectionCreate, for example? > Where to place the 127.0.0.1 designation? > > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Orclib-users mailing list > Orc...@li... > https://lists.sourceforge.net/lists/listinfo/orclib-users > -- Vincent Rogier |