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 > DB2 Express-C Instance Creation

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-13-10, 13:30
gvphubli gvphubli is offline
Registered User
 
Join Date: Sep 2003
Location: United States
Posts: 53
DB2 Express-C Instance Creation

I installed a copy of DB2 express on Ubuntu (VM on windows). I did not create instance as a part of setup in the initial stage.

Now when I go to "/opt/ibm/db2/V9.7/instance$" folder and run "./db2icrt" command it says "DBI1052E You must be root to execute this program."

So I did SU <user_id> and enter password and I believe now i am acting as root. And, if I run same command again "./db2icrt" i get following msg "The current DB2 copy was not installed by the user who is running the program."

How go I get around this issue ?

Thanks for your help!
__________________
Girish Patil
10+ Yrs of SQL Server Dev & Admin Exp.
ITIL Foundation Certified
Visit my blog : http://gvphubli.*************/
Reply With Quote
  #2 (permalink)  
Old 04-13-10, 14:09
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
There are several limitations in effect for non-root installations.

Limitations of non-root installations

To have a fully functional product you should install DB2 as root, following instructions in the manual.

If you did install software as root, do "su -", without any user ID supplied, because that's the only way to become root.
Reply With Quote
  #3 (permalink)  
Old 04-13-10, 18:10
throssetto throssetto is offline
Registered User
 
Join Date: Apr 2010
Posts: 1
Hello Girish,

I made a video in Portuguese language which you can follow step by step in the command line. As I said the video was made in Portuguese, but you will be able to understand.

Please have a look in this website - http://www.ibm.com/services/forms/pr...S_TACT=RFCTHI1

Girish, I am doing part of DB2 Ambassador here in Brazil and I would like to ask your help too. I am participaring in a mini-challenge to spread DB2 in the globe. Please have a look in this website listed below... you will find different DB2 version in this website. Please Choose one of your interesting and do the download =)

http://www.ibm.com/services/forms/pr...S_TACT=RFCTHI1

Thank you in advance,
Thiago Rossetto
Reply With Quote
  #4 (permalink)  
Old 04-14-10, 16:27
MarkhamDBA MarkhamDBA is offline
Registered User
 
Join Date: Dec 2008
Location: Toronto, Canada
Posts: 381
Quote:
Originally Posted by n_i View Post
There are several limitations in effect for non-root installations.

Limitations of non-root installations

To have a fully functional product you should install DB2 as root, following instructions in the manual.

If you did install software as root, do "su -", without any user ID supplied, because that's the only way to become root.
does it mean that if i install db2 express-C on my PC i need to create 'root' userid first and perform all installation steps under this userid?
__________________
DB2 v9.5 ESE on AIX v6.1/ v9./10 on z/OS
Reply With Quote
  #5 (permalink)  
Old 04-14-10, 16:36
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
Quote:
Originally Posted by MarkhamDBA View Post
does it mean that if i install db2 express-C on my PC i need to create 'root' userid first and perform all installation steps under this userid?
No, root is for Linux/UNIX only. But when install on Windows, the install userid must have Windows Adminstrator rights.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #6 (permalink)  
Old 04-14-10, 17:25
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by MarkhamDBA View Post
i need to create 'root' userid first
You don't create root, root creates you.

Superuser - Wikipedia, the free encyclopedia
Reply With Quote
  #7 (permalink)  
Old 04-16-10, 17:09
gvphubli gvphubli is offline
Registered User
 
Join Date: Sep 2003
Location: United States
Posts: 53
Quote:
Originally Posted by n_i View Post
There are several limitations in effect for non-root installations.

Limitations of non-root installations

To have a fully functional product you should install DB2 as root, following instructions in the manual.

If you did install software as root, do "su -", without any user ID supplied, because that's the only way to become root.
I did root install using "su -"
__________________
Girish Patil
10+ Yrs of SQL Server Dev & Admin Exp.
ITIL Foundation Certified
Visit my blog : http://gvphubli.*************/
Reply With Quote
  #8 (permalink)  
Old 04-16-10, 20:14
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by gvphubli View Post
I did root install
Then you must be root to run instance-level commands.
Reply With Quote
  #9 (permalink)  
Old 04-19-10, 18:46
gvphubli gvphubli is offline
Registered User
 
Join Date: Sep 2003
Location: United States
Posts: 53
Correct I have done DB2 root instal.

however the quest is why is it complaining that - "The current DB2 copy was not installed by the user who is running the program.". Dispite of me using "su -" option to start the "./db2icrt" program/script.
__________________
Girish Patil
10+ Yrs of SQL Server Dev & Admin Exp.
ITIL Foundation Certified
Visit my blog : http://gvphubli.*************/
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