Hello,
I have db2 9.1 installed on windows XP. And one perfectly running instance named "DB2".
I tried to create a new instance "DB3" but failed as follows. Now i even not able to access instacne "DB2". Bellow are the detailed steps i followd.
C:\Documents and Settings\Home>db2icrt db3 -s ese -p 50003 -u "RTR\user1",Password!
DBI1959N The instance directory cannot be created.
Explanation:
An error occurred when creating the required files or directories
for the new instance. The instance was not created.
User Response:
Ensure that you have write access to the location where the
instance directory is created. The instance directory is created
under the path where the product is installed. You may use the
DB2INSTPROF Profile Variable to specify a different location for
the instance directory.
Here is db2set output:
C:\Documents and Settings\Home>db2set
DB2ACCOUNTNAME=SVRTP4223\db2admin
DB2INSTOWNER=SVRTP4223
DB2PORTRANGE=60000:60003
DB2_GRP_LOOKUP=local
DB2INSTPROF=D:\PROGRA~1\IBM\SQLLIB
DB2COMM=TCPIP
To change "DB2INSTPROF" i created new directory "SQL2" in "D:\PROGRA~1\IBM\" and tried to change this parameter as below.
C:\Documents and Settings\Home>db2set DB2INSTPROF=D:\Program Files\IBM\SQL2
DBI1303W Variable not set.
Explanation:
The variable was not set in the profile registry.
User Response:
No further action is required.
C:\Documents and Settings\Home>db2set
DB2ACCOUNTNAME=SVRTP4223\db2admin
DB2INSTOWNER=SVRTP4223
DB2PORTRANGE=60000:60003
DB2_GRP_LOOKUP=local
DB2INSTPROF=D:\PROGRA~1\IBM\SQLLIB
DB2COMM=TCPIP
C:\Documents and Settings\Home>db2set DB2INSTPROF="D:\Program Files\IBM\SQL2"
C:\Documents and Settings\Home>db2icrt db3 -s ese -p 50003 -u "RTR\user1",Password!
DBI1959N The instance directory cannot be created.
Explanation:
An error occurred when creating the required files or directories
for the new instance. The instance was not created.
User Response:
Ensure that you have write access to the location where the
instance directory is created. The instance directory is created
under the path where the product is installed. You may use the
DB2INSTPROF Profile Variable to specify a different location for
the instance directory.
Now here db2set shows no or blank output.
C:\Documents and Settings\Home>db2set
C:\Documents and Settings\Home>
I then tried to reassign all previous values in db2set, but didn't work!
C:\Documents and Settings\Home>db2set DB2ACCOUNTNAME=SVRTP4223\db2admin
C:\Documents and Settings\Home>db2set DB2INSTOWNER=SVRTP4223
C:\Documents and Settings\Home>db2set DB2PORTRANGE=60000:60003
C:\Documents and Settings\Home>db2set DB2_GRP_LOOKUP=local
C:\Documents and Settings\Home>db2set DB2INSTPROF=D:\PROGRA~1\IBM\SQLLIB
C:\Documents and Settings\Home>db2set DB2COMM=TCPIP
C:\Documents and Settings\Home>db2set
C:\Documents and Settings\Home>
C:\Documents and Settings\Home>
C:\Documents and Settings\Home>db2set -lr
C:\Documents and Settings\Home>
Here i tried to restart and db2iupdt the instance "DB2". but failed.
C:\Documents and Settings\Home>db2stop
SQL1042C An unexpected system error occurred. SQLSTATE=58004
C:\Documents and Settings\Home>db2start
SQL1042C An unexpected system error occurred. SQLSTATE=58004
C:\Documents and Settings\Home>db2iupdt db2 /u:"RTR\user1","Password!"
DBI1969N An error occurred when creating a new file in the
instance directory.
Explanation:
An internal error occurred when creating a new file in the
instance directory.
User Response:
Ensure that you have write access to the instance directory.
Can anybody please help me to get out of this problem? Definitely your reply is appreciable.
Regards,
Prashant