If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > SAP Installation on DB2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-26-11, 14:55
ssatish.81 ssatish.81 is offline
Registered User
 
Join Date: Mar 2011
Posts: 41
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
Reply With Quote
  #2 (permalink)  
Old 09-27-11, 02:39
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
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
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #3 (permalink)  
Old 09-27-11, 04:15
ssatish.81 ssatish.81 is offline
Registered User
 
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
Reply With Quote
  #4 (permalink)  
Old 09-27-11, 06:16
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
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
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #5 (permalink)  
Old 09-27-11, 11:02
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
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
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On