SunQuest
           DB2 Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDB2 Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old January 7th, 2005, 04:11 PM
oana12 oana12 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 16 oana12 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 39 m 27 sec
Reputation Power: 0
Create user

Hi,
How I can create an user in DB2 and grant EXECUTE privilege on all the packages for this user?

Thanks

Reply With Quote
  #2  
Old January 7th, 2005, 11:44 PM
bingotailspin's Avatar
bingotailspin bingotailspin is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 115 bingotailspin User rank is Corporal (100 - 500 Reputation Level)bingotailspin User rank is Corporal (100 - 500 Reputation Level)bingotailspin User rank is Corporal (100 - 500 Reputation Level)bingotailspin User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 11 h 52 m 45 sec
Reputation Power: 7
query the system table

Quote:
Originally Posted by oana12
Hi,
How I can create an user in DB2 and grant EXECUTE privilege on all the packages for this user?

Thanks


db2 "grant connect on database to user dude"
db2 "select ('grant execute on package '||rtrim(pkgschema)||'.'||rtrim(pkgname)||' to user dude;') from syscat.packages" |grep 'select' >pkgnt.sql
db2 -tvf pkgnt.sql

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDB2 Development > Create user


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway