Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2011
    Posts
    41

    Unanswered: SAP Installation on DB2

    Hello All,

    Environment

    DB2 9.7
    AIX 6.1

    While performing the SAP installation unknowingly the home directory of db2sid was set to /home/db2sid instead of /db2/db2sid . Due to this all the installation files were created under this location except the db which was created under /db2/SID since it's the SAP installation . Is there any standard procedure to move the instance files created under /home to /db2/db2sid . Appreciate your help .

    Regards
    Satish

  2. #2
    Join Date
    Apr 2006
    Location
    Belgium
    Posts
    2,514
    Provided Answers: 11
    db can be created on any place if specified with create db
    to change this : backup - restore and specify where to create the db
    the syntax is over here
    RESTORE DATABASE - IBM DB2 9.7 for Linux, UNIX, and Windows
    Best Regards, Guy Przytula
    Database Software Consultant
    Good DBAs are not formed in a week or a month. They are created little by little, day by day. Protracted and patient effort is needed to develop good DBAs.
    Spoon feeding : To treat (another) in a way that discourages independent thought or action, as by overindulgence.
    DB2 UDB LUW Certified V7-V8-V9-V9.7-V10.1-V10.5 DB Admin - Advanced DBA -Dprop..
    Information Server Datastage Certified
    http://www.infocura.be

  3. #3
    Join Date
    Mar 2011
    Posts
    41
    Hello,

    Thanks for your reply . Since this is a SAP installation the db gets automatically installed in the /db2/ABC directory . Here the question about the sqllib directory, db2_software and environment variables are sitting under /home/db2abc instead of /db2/db2abc . Is there any stadard procedure to move these directories and env files to the /db2/db2abc directory .

    Regards
    Satish

  4. #4
    Join Date
    Apr 2006
    Location
    Belgium
    Posts
    2,514
    Provided Answers: 11
    sqllib is created with db2icrt
    the home directory will get sqllib
    you could try to move these files and make this new directory the home directory
    if you don't - db2iupdt will again try to make sqllib in homedir
    Best Regards, Guy Przytula
    Database Software Consultant
    Good DBAs are not formed in a week or a month. They are created little by little, day by day. Protracted and patient effort is needed to develop good DBAs.
    Spoon feeding : To treat (another) in a way that discourages independent thought or action, as by overindulgence.
    DB2 UDB LUW Certified V7-V8-V9-V9.7-V10.1-V10.5 DB Admin - Advanced DBA -Dprop..
    Information Server Datastage Certified
    http://www.infocura.be

  5. #5
    Join Date
    Aug 2008
    Location
    Toronto, Canada
    Posts
    2,367
    What I'd do is:

    - use db2cfexp to save current configuration
    - drop the instance
    - make changes to the instance owner id (ie. change home dir)
    - re-create the instance
    - use db2cfimp to re-import info saved with db2cfexp

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •