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 > command center experts

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-27-04, 14:32
toby25 toby25 is offline
Registered User
 
Join Date: Sep 2003
Posts: 63
command center experts

I am connected to a db2 database ver 8.1 on AIX 5.1 server using my personal id 'udbuser'. I want to 'su' to different user 'batchuser' to run some db2 commands and execute few scripts using command center. How do I accomplish this?

I can very well do this using telnet. but want to do same using command center.

Thanks,
toby
Reply With Quote
  #2 (permalink)  
Old 04-27-04, 15:10
Tank Tank is offline
Registered User
 
Join Date: Feb 2004
Location: Copenhagen
Posts: 220
Arrow Connect reset - then conncet

Hi - try this:


connect reset;

connect to <yourdb> user <youruser> using <yourpassword>;


But remeber that you can only be connected as one user at the time.

Hope this helps
__________________
Kristian K. Hansen
Project Supervisor
National Board of Health
Reply With Quote
  #3 (permalink)  
Old 04-27-04, 23:12
toby25 toby25 is offline
Registered User
 
Join Date: Sep 2003
Posts: 63
Is there any other way to do this in control center other than connect database command.
Reply With Quote
  #4 (permalink)  
Old 04-27-04, 23:38
unfire unfire is offline
Registered User
 
Join Date: Apr 2004
Location: Shenzhen
Posts: 8
and you must confirm the user 'batchuser' have the proper right in the database .
Reply With Quote
  #5 (permalink)  
Old 04-28-04, 04:10
Tank Tank is offline
Registered User
 
Join Date: Feb 2004
Location: Copenhagen
Posts: 220
Question

No I don't think there is any other way.

But isn't connect reset/connect adequate?

Cheers
__________________
Kristian K. Hansen
Project Supervisor
National Board of Health
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