Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Grant create table privileges to a particular user

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
satyender

New User


Joined: 05 Jan 2008
Posts: 50
Location: Olympia, WA, USA

PostPosted: Fri Sep 12, 2008 1:35 am    Post subject: Grant create table privileges to a particular user
Reply with quote

Hi all,

How to grant create table privileges to a particular user.
I am trying in the following way,Please correct me.

GRANT CREATETAB ON DBLCST5 TO T0J0AJ7;

Error:

---------+---------+---------+---------+---------+---------+---------+-----
SET CURRENT SQLID='LCSADM';
---------+---------+---------+---------+---------+---------+---------+-----
DSNE616I STATEMENT EXECUTION WAS SUCCESSFUL, SQLCODE IS 0
---------+---------+---------+---------+---------+---------+---------+-----
GRANT CREATETAB ON DBLCST5 TO T0J0AJ7;
---------+---------+---------+---------+---------+---------+---------+-----
DSNT408I SQLCODE = -557, ERROR: INCONSISTENT GRANT/REVOKE KEYWORD (IMPLIED
TABLE). PERMITTED KEYWORDS ARE DATABASE
DSNT418I SQLSTATE = 42852 SQLSTATE RETURN CODE
DSNT415I SQLERRP = DSNHSM3A SQL PROCEDURE DETECTING ERROR
DSNT416I SQLERRD = 2801 0 0 -1 1 0 SQL DIAGNOSTIC INFORMATION
DSNT416I SQLERRD = X'00000AF1' X'00000000' X'00000000' X'FFFFFFFF'
X'00000001' X'00000000' SQL DIAGNOSTIC INFORMATION
---------+---------+---------+---------+---------+---------+---------+-----
DSNE618I ROLLBACK PERFORMED, SQLCODE IS 0
DSNE616I STATEMENT EXECUTION WAS SUCCESSFUL, SQLCODE IS 0
Back to top
View user's profile Send private message

satyender

New User


Joined: 05 Jan 2008
Posts: 50
Location: Olympia, WA, USA

PostPosted: Fri Sep 12, 2008 2:30 am    Post subject:
Reply with quote

Hi all,

I have modified the syntax:

GRANT CREATETAB ON DBLCST5 TO user T0J0AJ7;

solution
my id doesnt have the privileges to do this.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Searching a table for the field name? socker_dad COBOL Programming 8 Sat Mar 31, 2018 2:57 am
No new posts Need inputs on DB2 tablespace/table r... ashek15 DB2 3 Sat Mar 24, 2018 11:49 pm
No new posts Need better approach to create a sort... Vamshi Veludandi DFSORT/ICETOOL 8 Thu Mar 08, 2018 5:59 pm
No new posts COBOL declaration for table Poha Eater DB2 3 Mon Feb 26, 2018 6:58 pm
No new posts load and delete table through JCL wit... ram_vizag JCL & VSAM 9 Thu Feb 01, 2018 12:47 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us