[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: <mod...@co...> - 2012-03-14 17:27:18
|
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? |