Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to read environment variables from pl/sql

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Probably this is more of a Unix question.
I have an external library written in C where i read unix environment variable
using getenv(). It works fine when this library is called from unix command prompt, but fails to respond when called from pl/sql, obviously bcos the login user is oracle here for which the variables have not been set.
For this reason, i try to run a set.conf configuration file at the start of the c library where these variables are set. But even then it fails to read those variables.
i dont want to call the .conf file in the profile file of oracle user.

could any one suggest any other way for this?
or am i going wrong somewhere?
 
Have you considered parsing the set.conf file in your C program? You could then use the values you read instead of the environment variables. Mike
________________________________________________________________________________

"Experience is the comb that Nature gives us, after we are bald."

Is that a haiku?
I never could get the hang
of writing those things.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top