Topic
  • 4 replies
  • Latest Post - ‏2013-10-04T14:20:27Z by MikeCrowley
MarkORiordan
MarkORiordan
3 Posts

Pinned topic Non-root DB2 WSE install using db2setup gives write permission error

‏2013-09-11T16:59:48Z |

Hi,

On a non-root DB2 install, I've run db2setup as that non-root user, and under
Install a Product -> DB2 Workgroup Server Edition 10.1 Fix Pack 2
I hit   Install New.
Then the error below popped up.

I can create files in that location manually.
So, can you please help to explain why does the installer give me that error?

Thanks!

 

DBI1288E  The execution of the program  failed. This
      program failed because you do not have write permission on the
      directory or file /home/db2user/sqllib/.

Explanation:

Reasons for this error include:

*  The given directory or file is on a local file system of the current
   machine, but the user id running the program does not have write
   permission for that directory or file.
*  The given directory or file is on an NFS mounted file system mounted
   on the current machine, but the current user id does not have write
   permission for that directory or file.
   :
   :

Updated on 2013-09-11T17:00:05Z at 2013-09-11T17:00:05Z by MarkORiordan
  • 9RYQ_Kiran_mk
    9RYQ_Kiran_mk
    78 Posts

    Re: Non-root DB2 WSE install using db2setup gives write permission error

    ‏2013-09-25T10:07:40Z  

    Give the 700 permission on the media and the installation directory to the user from which you wanted to install.

     

    Best Regards,

    Kiran.M.K.

  • MarkORiordan
    MarkORiordan
    3 Posts

    Re: Non-root DB2 WSE install using db2setup gives write permission error

    ‏2013-09-25T11:50:44Z  

    Give the 700 permission on the media and the installation directory to the user from which you wanted to install.

     

    Best Regards,

    Kiran.M.K.

    Hi Kiran,

    Thanks for getting back to me.

    I proceeded with the installation using the non-supported db2_install script... so I guess that means that permissions were OK on both sides?

    Or is there something specific about the permissions being 700 that db2_setup requires?

    On my next install, I will try those specific permissions settings.

     

    Thanks again,

    Mark

  • 9RYQ_Kiran_mk
    9RYQ_Kiran_mk
    78 Posts

    Re: Non-root DB2 WSE install using db2setup gives write permission error

    ‏2013-09-25T13:11:13Z  

    Hi Kiran,

    Thanks for getting back to me.

    I proceeded with the installation using the non-supported db2_install script... so I guess that means that permissions were OK on both sides?

    Or is there something specific about the permissions being 700 that db2_setup requires?

    On my next install, I will try those specific permissions settings.

     

    Thanks again,

    Mark

    db2_install is Non-GUI or command mode installation and db2setup is for GUI based installation.

    Yes You have provide permissions for both  installable media and Installation directory.

    Best Regards,

    Kiran.M.K.

  • MikeCrowley
    MikeCrowley
    3 Posts

    Re: Non-root DB2 WSE install using db2setup gives write permission error

    ‏2013-10-04T14:20:27Z  

    db2_install is Non-GUI or command mode installation and db2setup is for GUI based installation.

    Yes You have provide permissions for both  installable media and Installation directory.

    Best Regards,

    Kiran.M.K.

    Hi Kiran.

     

    I am seeing the same issue as Mark above. I changed the permissions on the media and the installation directory as you suggested yet still see the error

     

    DBI1288E  The execution of the program  failed. This
          program failed because you do not have write permission on the
          directory or file /home/db2inst1/sqllib/.

     

    I am installing as user db2inst1

    # id db2inst1
    uid=511(db2inst1) gid=505(db2iadm1) groups=505(db2iadm1)

    # cd /home/db2inst1/db2/
    # ls -la
    total 1135336
    drwxr-xr-x  3 db2inst1 db2iadm1       4096 Sep  1 15:48 .
    drwx------ 28 db2inst1 db2iadm1       4096 Sep  1 16:02 ..
    -rw-r--r--  1 db2inst1 db2iadm1 1162566472 Sep  1 15:43 v10.1fp2_linuxx64_wser.tar.gz
    drwx------  5 db2inst1 db2iadm1       4096 Dec  4  2012 wser                                              ##### Media 700
     

    # cd /home/db2inst1/db2/wser

    # ls -la
    total 76
    drwx------  5 db2inst1 db2iadm1 4096 Dec  4  2012 .
    drwxr-xr-x  3 db2inst1 db2iadm1 4096 Sep  1 15:48 ..
    drwxr-xr-x  6 db2inst1 db2iadm1 4096 Dec  4  2012 db2
    -r-xr-xr-x  1 db2inst1 db2iadm1 5349 Dec  4  2012 db2ckupgrade
    -r-xr-xr-x  1 db2inst1 db2iadm1 5302 Dec  4  2012 db2_deinstall
    -r-xr-xr-x  1 db2inst1 db2iadm1 5172 Dec  4  2012 db2_install
    -r-xr-xr-x  1 db2inst1 db2iadm1 5136 Dec  4  2012 db2ls
    -r-xr-xr-x  1 db2inst1 db2iadm1 5154 Dec  4  2012 db2prereqcheck
    -r-xr-xr-x  1 db2inst1 db2iadm1 5154 Dec  4  2012 db2setup
    drwxr-xr-x 28 db2inst1 db2iadm1 4096 Dec  4  2012 doc
    -r-xr-xr-x  1 db2inst1 db2iadm1 5190 Dec  4  2012 installFixPack
    drwxr-xr-x  4 db2inst1 db2iadm1 4096 Dec  4  2012 nlpack
     

    # pwd
    /home/db2inst1
    # ls -la
    total 160
    drwx------  28 db2inst1 db2iadm1 4096 Sep  1 16:02 .                                  ##### installation directory 700
    drwxr-xr-x. 11 root     root     4096 Sep  1 15:42 ..
     

    Any suggestions?