By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,617 Members | 1,172 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,617 IT Pros & Developers. It's quick & easy.

Determining JDK_PATH

P: n/a
Is there a way to determine the value of JDK_PATH programmatically
without having to grep and awk the output of "get dbm cfg"? Is there
a way to just access the value of this single parameter?

Thanks!
Nov 12 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Bruce wrote:
Is there a way to determine the value of JDK_PATH programmatically
without having to grep and awk the output of "get dbm cfg"? Is there
a way to just access the value of this single parameter?

Thanks!


Consult your DB2 documentation for db2CfgGet() and db2CfgSet() API calls. In
particular - you may want to specify as token SQLF_KTN_JDK_PATH when
getting/setting database manager configuration parameter(s).

Jan M. Nelken
Nov 12 '05 #2

P: n/a
Hi,

Jan M. Nelken wrote:
Consult your DB2 documentation for db2CfgGet() and db2CfgSet() API


or, if you are allready running 8.2 UDB, you can make use of the
get_dbm_config() table function. Example:

<example>
create view my_get_dbm_cfg as select * from table(get_dbm_config()) as
mysnap
</example>

which returns a table containing all DBM-Parameters.

<example>
select jdk11_path from my_get_dbm_cfg where dbmconfig_type=1

/opt/IBMJava2-141

select jdk11_path from my_get_dbm_cfg where dbmconfig_type=0

/opt/java

</example>

where dbmconfig_type=1 refers to the currently used parameter and
dbmconfig_type=0 refers to the "delayed" value.
regards,

Norbert
Nov 12 '05 #3

P: n/a
Thanks for the help.
Nov 12 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.