But, a colleague sitting next to me, on his laptop, using Toad and the
same user name (username1) is able to run select on all tables. Even
the ones I can't.
Does anyone have any suggestions?
I know this is, almost assuredly, not a db2 problem I wasn't certain
where to start looking for an answer.
It would be useful if you post any errors you get.
Just a guess,
Are there any Trusted Connections set ?
http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/topic/com.ibm.db2.luw.admin.sec.doc/doc/c0050514.html
Regards,
Sawan Gupta
IBM India Software labs
Here it is.....
An error occurred while executing the database request for:
DB2/LINUXX8664
SQL09016
IBM DB2 JDBC Universal Driver Architecture
3.50.152
Short message:
DB2 SQL Error: SQLCODE=-551, SQLSTATE=42501,
SQLERRMC=RPTUSER;SELECT;INSTTXDW.TAKS_SOURCE_RECORDS_2009,
DRIVER=3.50.152
The command that caused the problem:
select * from "INSTTXDW"."TAKS_SOURCE_RECORDS_2009"
Long Message:
DB2 SQL Error: SQLCODE=-551, SQLSTATE=42501,
SQLERRMC=RPTUSER;SELECT;INSTTXDW.TAKS_SOURCE_RECORDS_2009,
DRIVER=3.50.152
Details:
Type: com.ibm.db2.jcc.b.nm
Error Code: -551
SQL State: 42501
1) Nested Exception:
Long Message:
DB2 SQL Error: SQLCODE=-727, SQLSTATE=56098,
SQLERRMC=2;-551;42501;RPTUSER|SELECT|
INSTTXDW.TAKS_SOURCE_RECORDS_2009, DRIVER=3.50.152
Details:
Type: com.ibm.db2.jcc.b.SqlException
Error Code: -727
SQL State: 56098
System Information:
Product: DbVisualizer Free 6.5.4
Build: #1362 (2009/02/05 20:09)
Java VM: Java HotSpot(TM) Client VM
Java Version: 1.6.0_11
Java Vendor: Sun Microsystems Inc.
OS Name: Windows XP
OS Arch: x86
OS Version: 5.1
Looks to me that it's in fact using a user called "rptuser", which
does not have select privs to those tables...
/T
True. But both my colleague and I are connecting with that user id.
He can see all of the data while I can just see some of it.
I put a dummy username (username1) in my first message, not the real
username (rptuser).