Quantcast
Channel: Question and Answer » oracle
Viewing all articles
Browse latest Browse all 717

Is it possible to configure SQLNet / TNS_ADMIN options *without* sqlnet.ora file?

$
0
0

Background:

We have an application using OC(C)I via Oracle 11 Instant Client, and we need to set DIAG_SIGHANDLER_ENABLED=FALSE to disable OCI overwriting our own crash handling.

However, this is a sqlnet.ora parameter, and we rely on the customer provided options in sqlnet.ora (and all other TNS_ADMIN stuff) when running the app, so we cannot and do not want to change the sqlnet.ora file at the TNS_ADMIN location, nor do we want to change our app to use a different, custom TNS_ADMIN.

Question:

Is there any way to set sqlnet related(?) options that normally go into sqlnet.ora either programmatically through some OCI interface, or maybe via an environment variable?


There are workarounds of course, we also could just copy everything from an existing TNS_ADMIN, but this question is specifically whether we can set any sqlnet.ora options without touching sqlnet.ora.


Viewing all articles
Browse latest Browse all 717