Unanswered: How to do an auto rebind while upgrading to DB2 UDB7.2 Fixpk5?
It's required to do a rebind after we upgrade to UDB7.2 Fixpk5. I'm trying to do this in the program using DB2 Admin APIs. I understand that these are the steps for the rebind if we do it from the CLP:
db2 CONNECT TO <dbname>
db2 BIND C:\SQLLIB\BND\@db2ubind.lst GRANT PUBLIC
db2 BIND C:\SQLLIB\BND\@db2cli.lst GRANT PUBLIC
But which API I should use to do "db2 terminate"? I found an "sqluvend" but looks like it's just for the backup and load, and it asks for a DB connection before it's run. So I guess this is not the right one.