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 > How do we set a Global registry

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-07-11, 00:02
blazer789 blazer789 is offline
Registered User
 
Join Date: Jun 2009
Posts: 221
How do we set a Global registry

How do we set a global registry variable in db2.

I know we can set instance level registry by issuing the below command
eg: db2set DB2COMM=tcpip

I want to set this parameter globally how do we do that?

I tried doing db2set -g DB2COMM=tcpip, it errors out.
Reply With Quote
  #2 (permalink)  
Old 09-07-11, 01:47
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
could you publish the error - was it executed by instance owner ?
__________________
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-08-11, 10:17
blazer789 blazer789 is offline
Registered User
 
Join Date: Jun 2009
Posts: 221
SQL 1042C system error
Reply With Quote
  #4 (permalink)  
Old 09-08-11, 10:29
Naval29 Naval29 is offline
Registered User
 
Join Date: Apr 2008
Posts: 9
Exaplanation of this error is as mentioned below. Please check that out. Please also let us know if somthing changed in recent with your db2 setup like new fix pack installetion etc.. what is the dblevel of your installed db2 ?


A system error occurred. Some possible reasons for this error are:

The database manager is not installed correctly or the environment is not set up correctly.
On UNIX-based systems, db2iupdt may need to be run in order to update the DB2 instance to enable acquisition of a new system configuration or access to function associated with the installation or removal of certain product options, FixPaks, or modification levels.
You might get this message if you are not using the correct DB2 Administration Server password.
The command cannot be processed.

User response
To update the instance to acquire a configuration or access to function run DB2IUPDT <InstName>.
If the error occurred while trying to connect to a database, get a trace (instructions below) and call IBM support.



Thanks
Naval K
Reply With Quote
  #5 (permalink)  
Old 09-08-11, 10:38
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by blazer789 View Post
SQL 1042C system error
I thought you'd been on this forum long enough to figure out that you'd need to start by looking at db2diag.log...
Reply With Quote
  #6 (permalink)  
Old 09-09-11, 16:51
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Try using root

"root authority to set variables in the global-level registry" :
IBM DB2 9.7 for Linux, UNIX and Windows Information Center
Reply With Quote
  #7 (permalink)  
Old 09-12-11, 20:51
DBFinder DBFinder is offline
Registered User
 
Join Date: Sep 2008
Location: Toronto,Canada
Posts: 606
Tried and found working as below

Logged as root. Loaded db2profile. Then it works as db2set -g DB2COMM=TCPIP

Seems that db2inst1 user does not have os privileges neede to change the registry.

Regards
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