I have one query regarding DB2 and Java APIs. I am writing Java program to create DB2 database objects from configuration file. I am reading the database instance name. Now I need to check if it is present on the target machine, then do not create the instance. Else I have to create the instance using Java command. I know this is different type of command than JDBC commands like read/write/update tables.
Will you please let me know which java API can be used to execute command to detect DB2 database instance, and how to execute them?
Creating an instance is an OS command, so you cannot use JDBC at all. The command also has to be run on the server that the instance will be run on. It is a simple enough process. Why do you need to make a java app to do it?