Yes there are two instances. DB2 and DB2_01
CURRENT INSTANCE is DB2 which has become current after db2imgr DB2
and now after that I am getting same error
Quote:
C:\Program Files\IBM\SQLLIB_01\BIN>db2start
SQL1390C The environment variable DB2INSTANCE is not defined or is invalid.
C:\Program Files\IBM\SQLLIB_01\BIN>db2stop
SQL1390C The environment variable DB2INSTANCE is not defined or is invalid.
C:\Program Files\IBM\SQLLIB_01\BIN>
|
and if I try to set instance as you said
Quote:
C:\Program Files\IBM\SQLLIB_01\BIN>db2 get instance
The current database manager instance is: DB2
C:\Program Files\IBM\SQLLIB_01\BIN>db2 set instanse=DB2_01
DB21034E The command was processed as an SQL statement because it was not a valid Command Line Processor command. During SQL processing it returned:
SQL1024N A database connection does not exist. SQLSTATE=08003
C:\Program Files\IBM\SQLLIB_01\BIN>DB2 GET INSTANCE
|
And database connection cannnot be made without
db2start
which is failling ( see above )
So I did not get your point actually Stealth_DBA ( I mean why would I need to set instance )
Quote:
C:\Program Files\IBM\SQLLIB_01\BIN>set db2instance
DB2INSTANCE=DB2
C:\Program Files\IBM\SQLLIB_01\BIN>
|
Let me know if you want me to try another command to know it better.
DBFinder