Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

Read Oracle connection details from a configuration file

$
0
0
Hi,
Is it possible to pass oracle connection information from a configuration file and use that to connect to oracle database in my unix shell scripts. Following is the scenario:

(1) I would like to save oracle connection string details in a configuration file (ex., dbconfig.txt)
(2) from my unix script, I would like to read this file and store the contents to a variable.
(3) pass this variable to connect to oracle database.

Right now I am able to do (1) & (2), but when it comes to #3, for some reason oracle doesn't seem to accept this.

Request your help to solve this issue.

Viewing all articles
Browse latest Browse all 16232

Latest Images

Trending Articles



Latest Images