Unix Technical Forum

Instance Creation Query - "db2iexec"

This is a discussion on Instance Creation Query - "db2iexec" within the DB2 forums, part of the Database Server Software category; --> Hello Folks, Here's wishing you MERRY CHRISTMAS and Festive seasons's greeting!! Now this has been bugging me for quite ...


Go Back   Unix Technical Forum > Database Server Software > DB2

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 05:40 AM
Anurag
 
Posts: n/a
Default Instance Creation Query - "db2iexec"

Hello Folks,
Here's wishing you MERRY CHRISTMAS and Festive seasons's greeting!!

Now this has been bugging me for quite a while and I seek your help in
setting my mind to peace.
As part of DB2 Instance creation on Unix, I issue this command (from
standard script):
__________________________________________________ _______
"db2iexec db2inst1 . sqllib/db2profile"
__________________________________________________ _______
[db2inst1 is the DB2 instance name]

ENVIRONMENT: DB2 UDB ESE 8.1 FPx on AIX 5.x

QUESTIONS:
(1) What does this command do (Do I really achieve anything)?
(2) What can happen if I skip this command?

TiA..................anurag

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 05:40 AM
Darin McBride
 
Posts: n/a
Default Re: Instance Creation Query - "db2iexec"

Anurag wrote:

> Hello Folks,
> Here's wishing you MERRY CHRISTMAS and Festive seasons's greeting!!
>
> Now this has been bugging me for quite a while and I seek your help in
> setting my mind to peace.
> As part of DB2 Instance creation on Unix, I issue this command (from
> standard script):
> __________________________________________________ _______
> "db2iexec db2inst1 . sqllib/db2profile"
> __________________________________________________ _______
> [db2inst1 is the DB2 instance name]
>
> ENVIRONMENT: DB2 UDB ESE 8.1 FPx on AIX 5.x
>
> QUESTIONS:
> (1) What does this command do (Do I really achieve anything)?
> (2) What can happen if I skip this command?


db2iexec is not exactly supported for use outside of DB2 install and
instance management tools - otherwise it would be documented in the command
reference ;-)

That command does nothing. It becomes db2inst1 (using 'su' - which means
that this only works if you're already root), runs ". sqllib/db2profile",
and then exits, losing any changes to the environment that db2profile does.

As it does nothing (it's an expensive no-op), nothing will happen if you
skip that command.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:10 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com