473,387 Members | 1,501 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Occasional -30082 after an SQL1024

Hello,

I was wondering if anyone knows why this error is occurring. Every
once in a while I will get an sql -1024 (we are looking in to why this
occurs in the first place). I automatically do a DB2 CONNECT and it
reconnects without a problem. Occasionally, however, the reconnect
will fail with an sql -30082 with reason code 19. This error doesnt
make sense since the description says:

SQL30082N Attempt to establish connection failed with security reason
"19"
("USERID DISABLED or RESTRICTED"). SQLSTATE=08001

SQLSTATE 08001: The application requester is unable to establish the
connection.

Explanation:
The attempt to connect to the remote database server was rejected due
to invalid or incorrect security information. The cause of the security
error is described by the <reason-codeand corresponding
<reason-stringvalue.

19 (USERID DISABLED or RESTRICTED)
The userid has been disabled, or the userid has been restricted from
accessing the operating environment at this time.

For one, we have no 'remote' database. The database is local...so why
this error? Second, the userid seems valid in all other cases.

Since the userid seems to work other times, I would assume it is
somehow being 'disabled'.

I noticed other database activities going on after this without a
problem (this is a multi-process/multi-threaded environment) so it
leads me to believe we are not having a true database connection
issue...maybe something going on with the calling process.

Any ideas?

I am running v8.2 on AIX 5.3.

Thanks!

Aug 2 '06 #1
5 5083
klh
We've had similar issues in the Windows environment. Usually it
relates to the ID that is used to start up the instance. This ID has
to have permissions to be able to authenticate the user when a
connection attempt is made.

For us we were having the issue whenever a "group policy" change was
made that took away some of the inherent rights that the start up ID
needs. In the Windows environment these are things like "replace a
token level process", "run as a batch job", etc. I don't know what
they'd be in an AIX environment.

Another question would be, how is your security set up? Is it through
AIX or something else? If the security relies on netwrok connectivity
is there a possibility that a network glitch could temporarily affect
the start up ID's ability to authenticate a user? Which would explain
why a second connection attempt might be successful if the network was
available again, or would be unsuccessful with the error shown if the
network was still not available.

HTH,
klh

shorti wrote:
Hello,

I was wondering if anyone knows why this error is occurring. Every
once in a while I will get an sql -1024 (we are looking in to why this
occurs in the first place). I automatically do a DB2 CONNECT and it
reconnects without a problem. Occasionally, however, the reconnect
will fail with an sql -30082 with reason code 19. This error doesnt
make sense since the description says:

SQL30082N Attempt to establish connection failed with security reason
"19"
("USERID DISABLED or RESTRICTED"). SQLSTATE=08001

SQLSTATE 08001: The application requester is unable to establish the
connection.

Explanation:
The attempt to connect to the remote database server was rejected due
to invalid or incorrect security information. The cause of the security
error is described by the <reason-codeand corresponding
<reason-stringvalue.

19 (USERID DISABLED or RESTRICTED)
The userid has been disabled, or the userid has been restricted from
accessing the operating environment at this time.

For one, we have no 'remote' database. The database is local...so why
this error? Second, the userid seems valid in all other cases.

Since the userid seems to work other times, I would assume it is
somehow being 'disabled'.

I noticed other database activities going on after this without a
problem (this is a multi-process/multi-threaded environment) so it
leads me to believe we are not having a true database connection
issue...maybe something going on with the calling process.

Any ideas?

I am running v8.2 on AIX 5.3.

Thanks!
Aug 2 '06 #2
Thanks,

No...all processes are local. No networking involved. The only other
security would be the normal instance userid/psword. All of these
particular processes are already (previously) authenticated and
connected. They have application IDs and have already obtained a
context. They seem to be running along, doing reads and updates, then
suddenly an open cursor or fetch will fail with a -1024. This is
after, only milleseconds before, it did a successful read or update.

Like I said earlier, most attempts to reconnect are successful (maybe
99%) but once in a while a -30082 will come up after an attempt to
reconnect.

I was thinking we might have some configuration too low but Im not sure
what to look at. I would think that if it was a db2 config we would
spit out a different sql code (like exceeded maxagents or something
similar) but no other error is seen. We are dumping AIX and DB2 config
info after we hit an error but I dont see anything that looks like it
may cause a problem. I have checked things like the number of agents
and number of processes up at the time of the error.

Are there times that DB2 would disable or suddenly restrict the userid?
Is the description on the -30082 regarding "connect to remote
database" incorrect or is DB2 confused (or are we confusing db2 in some
way)?

klh wrote:
We've had similar issues in the Windows environment. Usually it
relates to the ID that is used to start up the instance. This ID has
to have permissions to be able to authenticate the user when a
connection attempt is made.

For us we were having the issue whenever a "group policy" change was
made that took away some of the inherent rights that the start up ID
needs. In the Windows environment these are things like "replace a
token level process", "run as a batch job", etc. I don't know what
they'd be in an AIX environment.

Another question would be, how is your security set up? Is it through
AIX or something else? If the security relies on netwrok connectivity
is there a possibility that a network glitch could temporarily affect
the start up ID's ability to authenticate a user? Which would explain
why a second connection attempt might be successful if the network was
available again, or would be unsuccessful with the error shown if the
network was still not available.

HTH,
klh

shorti wrote:
Hello,

I was wondering if anyone knows why this error is occurring. Every
once in a while I will get an sql -1024 (we are looking in to why this
occurs in the first place). I automatically do a DB2 CONNECT and it
reconnects without a problem. Occasionally, however, the reconnect
will fail with an sql -30082 with reason code 19. This error doesnt
make sense since the description says:

SQL30082N Attempt to establish connection failed with security reason
"19"
("USERID DISABLED or RESTRICTED"). SQLSTATE=08001

SQLSTATE 08001: The application requester is unable to establish the
connection.

Explanation:
The attempt to connect to the remote database server was rejected due
to invalid or incorrect security information. The cause of the security
error is described by the <reason-codeand corresponding
<reason-stringvalue.

19 (USERID DISABLED or RESTRICTED)
The userid has been disabled, or the userid has been restricted from
accessing the operating environment at this time.

For one, we have no 'remote' database. The database is local...so why
this error? Second, the userid seems valid in all other cases.

Since the userid seems to work other times, I would assume it is
somehow being 'disabled'.

I noticed other database activities going on after this without a
problem (this is a multi-process/multi-threaded environment) so it
leads me to believe we are not having a true database connection
issue...maybe something going on with the calling process.

Any ideas?

I am running v8.2 on AIX 5.3.

Thanks!
Aug 2 '06 #3
klh
Do you have any kind of "thread time out" limits in effect? Or are you
using the db2 governor to restrict the amount of cpu time a thread
could get? If you do, it might explain why a thread might all of a
sudden not be connected to a database. However, that doesn't really
explain why you wouldn't immediately get reconnected.

klh
shorti wrote:
Thanks,

No...all processes are local. No networking involved. The only other
security would be the normal instance userid/psword. All of these
particular processes are already (previously) authenticated and
connected. They have application IDs and have already obtained a
context. They seem to be running along, doing reads and updates, then
suddenly an open cursor or fetch will fail with a -1024. This is
after, only milleseconds before, it did a successful read or update.

Like I said earlier, most attempts to reconnect are successful (maybe
99%) but once in a while a -30082 will come up after an attempt to
reconnect.

I was thinking we might have some configuration too low but Im not sure
what to look at. I would think that if it was a db2 config we would
spit out a different sql code (like exceeded maxagents or something
similar) but no other error is seen. We are dumping AIX and DB2 config
info after we hit an error but I dont see anything that looks like it
may cause a problem. I have checked things like the number of agents
and number of processes up at the time of the error.

Are there times that DB2 would disable or suddenly restrict the userid?
Is the description on the -30082 regarding "connect to remote
database" incorrect or is DB2 confused (or are we confusing db2 in some
way)?

klh wrote:
We've had similar issues in the Windows environment. Usually it
relates to the ID that is used to start up the instance. This ID has
to have permissions to be able to authenticate the user when a
connection attempt is made.

For us we were having the issue whenever a "group policy" change was
made that took away some of the inherent rights that the start up ID
needs. In the Windows environment these are things like "replace a
token level process", "run as a batch job", etc. I don't know what
they'd be in an AIX environment.

Another question would be, how is your security set up? Is it through
AIX or something else? If the security relies on netwrok connectivity
is there a possibility that a network glitch could temporarily affect
the start up ID's ability to authenticate a user? Which would explain
why a second connection attempt might be successful if the network was
available again, or would be unsuccessful with the error shown if the
network was still not available.

HTH,
klh

shorti wrote:
Hello,
>
I was wondering if anyone knows why this error is occurring. Every
once in a while I will get an sql -1024 (we are looking in to why this
occurs in the first place). I automatically do a DB2 CONNECT and it
reconnects without a problem. Occasionally, however, the reconnect
will fail with an sql -30082 with reason code 19. This error doesnt
make sense since the description says:
>
SQL30082N Attempt to establish connection failed with security reason
"19"
("USERID DISABLED or RESTRICTED"). SQLSTATE=08001
>
SQLSTATE 08001: The application requester is unable to establish the
connection.
>
Explanation:
The attempt to connect to the remote database server was rejected due
to invalid or incorrect security information. The cause of the security
error is described by the <reason-codeand corresponding
<reason-stringvalue.
>
19 (USERID DISABLED or RESTRICTED)
The userid has been disabled, or the userid has been restricted from
accessing the operating environment at this time.
>
For one, we have no 'remote' database. The database is local...so why
this error? Second, the userid seems valid in all other cases.
>
Since the userid seems to work other times, I would assume it is
somehow being 'disabled'.
>
I noticed other database activities going on after this without a
problem (this is a multi-process/multi-threaded environment) so it
leads me to believe we are not having a true database connection
issue...maybe something going on with the calling process.
>
Any ideas?
>
I am running v8.2 on AIX 5.3.
>
Thanks!
Aug 2 '06 #4
Don't know if this problem is EXACTLY the same like we had (we also
sometimes were not able to login in DB2), but you might try this:

db2set DB2_NUM_CKPW_DAEMONS=0
and then restart the instance

It worked at our machines also running DB2 on AIX5.3
Problem is "specially" for AIX5.3, does not occur on e.g. AIX5.2

Knokmans

"klh" <kh******@yahoo.comwrote in message
news:11********************@b28g2000cwb.googlegrou ps.com...
Do you have any kind of "thread time out" limits in effect? Or are you
using the db2 governor to restrict the amount of cpu time a thread
could get? If you do, it might explain why a thread might all of a
sudden not be connected to a database. However, that doesn't really
explain why you wouldn't immediately get reconnected.

klh
shorti wrote:
>Thanks,

No...all processes are local. No networking involved. The only other
security would be the normal instance userid/psword. All of these
particular processes are already (previously) authenticated and
connected. They have application IDs and have already obtained a
context. They seem to be running along, doing reads and updates, then
suddenly an open cursor or fetch will fail with a -1024. This is
after, only milleseconds before, it did a successful read or update.

Like I said earlier, most attempts to reconnect are successful (maybe
99%) but once in a while a -30082 will come up after an attempt to
reconnect.

I was thinking we might have some configuration too low but Im not sure
what to look at. I would think that if it was a db2 config we would
spit out a different sql code (like exceeded maxagents or something
similar) but no other error is seen. We are dumping AIX and DB2 config
info after we hit an error but I dont see anything that looks like it
may cause a problem. I have checked things like the number of agents
and number of processes up at the time of the error.

Are there times that DB2 would disable or suddenly restrict the userid?
Is the description on the -30082 regarding "connect to remote
database" incorrect or is DB2 confused (or are we confusing db2 in some
way)?

klh wrote:
We've had similar issues in the Windows environment. Usually it
relates to the ID that is used to start up the instance. This ID has
to have permissions to be able to authenticate the user when a
connection attempt is made.

For us we were having the issue whenever a "group policy" change was
made that took away some of the inherent rights that the start up ID
needs. In the Windows environment these are things like "replace a
token level process", "run as a batch job", etc. I don't know what
they'd be in an AIX environment.

Another question would be, how is your security set up? Is it through
AIX or something else? If the security relies on netwrok connectivity
is there a possibility that a network glitch could temporarily affect
the start up ID's ability to authenticate a user? Which would explain
why a second connection attempt might be successful if the network was
available again, or would be unsuccessful with the error shown if the
network was still not available.

HTH,
klh

shorti wrote:
Hello,

I was wondering if anyone knows why this error is occurring. Every
once in a while I will get an sql -1024 (we are looking in to why
this
occurs in the first place). I automatically do a DB2 CONNECT and it
reconnects without a problem. Occasionally, however, the reconnect
will fail with an sql -30082 with reason code 19. This error doesnt
make sense since the description says:

SQL30082N Attempt to establish connection failed with security
reason
"19"
("USERID DISABLED or RESTRICTED"). SQLSTATE=08001

SQLSTATE 08001: The application requester is unable to establish the
connection.

Explanation:
The attempt to connect to the remote database server was rejected due
to invalid or incorrect security information. The cause of the
security
error is described by the <reason-codeand corresponding
<reason-stringvalue.

19 (USERID DISABLED or RESTRICTED)
The userid has been disabled, or the userid has been restricted from
accessing the operating environment at this time.

For one, we have no 'remote' database. The database is local...so
why
this error? Second, the userid seems valid in all other cases.

Since the userid seems to work other times, I would assume it is
somehow being 'disabled'.

I noticed other database activities going on after this without a
problem (this is a multi-process/multi-threaded environment) so it
leads me to believe we are not having a true database connection
issue...maybe something going on with the calling process.

Any ideas?

I am running v8.2 on AIX 5.3.

Thanks!

Aug 3 '06 #5
Ok..will look into the DB2_NUM_CKPW_DAEMONS but if this only occurs
when first trying to log in then it would not be the same. We are
already in but some threads seem to suddenly lose connection and are
refused reconnect. We are currently looking into why we lose
connection sometimes in the first place but not being able to reconnect
is puzzling especially since it seems that maybe db2 is disabling the
userid. The db2diag log does show an error stating :

2006-08-01-11.32.09.047259+000 I171143C249 LEVEL: Severe
PID : 131404 TID : 1
FUNCTION: DB2 Common, Security, Users and Groups, secLogMessage,
probe:20
DATA #1 : String, 44 bytes
check password failed with rc = -2146500316

The timestamp, however occurs half a second AFTER the -1024/-30082
error so I was thinking it is a result of the problem and maybe not the
cause. Also, the PID 131404 is not the same process ID that originally
received the -1024/-30082 error. Does the " FUNCTION: DB2 Common,
Security, Users and Groups, secLogMessage, probe:20" give an indication
on who received this error?

Last, no thread timeout that would be affect this and there doesnt seem
to be any long hangs that would trigger a mutex timer for the threads
that are getting the connect error.

Knokmans wrote:
Don't know if this problem is EXACTLY the same like we had (we also
sometimes were not able to login in DB2), but you might try this:

db2set DB2_NUM_CKPW_DAEMONS=0
and then restart the instance

It worked at our machines also running DB2 on AIX5.3
Problem is "specially" for AIX5.3, does not occur on e.g. AIX5.2

Knokmans

"klh" <kh******@yahoo.comwrote in message
news:11********************@b28g2000cwb.googlegrou ps.com...
Do you have any kind of "thread time out" limits in effect? Or are you
using the db2 governor to restrict the amount of cpu time a thread
could get? If you do, it might explain why a thread might all of a
sudden not be connected to a database. However, that doesn't really
explain why you wouldn't immediately get reconnected.

klh
shorti wrote:
Thanks,

No...all processes are local. No networking involved. The only other
security would be the normal instance userid/psword. All of these
particular processes are already (previously) authenticated and
connected. They have application IDs and have already obtained a
context. They seem to be running along, doing reads and updates, then
suddenly an open cursor or fetch will fail with a -1024. This is
after, only milleseconds before, it did a successful read or update.

Like I said earlier, most attempts to reconnect are successful (maybe
99%) but once in a while a -30082 will come up after an attempt to
reconnect.

I was thinking we might have some configuration too low but Im not sure
what to look at. I would think that if it was a db2 config we would
spit out a different sql code (like exceeded maxagents or something
similar) but no other error is seen. We are dumping AIX and DB2 config
info after we hit an error but I dont see anything that looks like it
may cause a problem. I have checked things like the number of agents
and number of processes up at the time of the error.

Are there times that DB2 would disable or suddenly restrict the userid?
Is the description on the -30082 regarding "connect to remote
database" incorrect or is DB2 confused (or are we confusing db2 in some
way)?

klh wrote:
We've had similar issues in the Windows environment. Usually it
relates to the ID that is used to start up the instance. This ID has
to have permissions to be able to authenticate the user when a
connection attempt is made.

For us we were having the issue whenever a "group policy" change was
made that took away some of the inherent rights that the start up ID
needs. In the Windows environment these are things like "replace a
token level process", "run as a batch job", etc. I don't know what
they'd be in an AIX environment.

Another question would be, how is your security set up? Is it through
AIX or something else? If the security relies on netwrok connectivity
is there a possibility that a network glitch could temporarily affect
the start up ID's ability to authenticate a user? Which would explain
why a second connection attempt might be successful if the network was
available again, or would be unsuccessful with the error shown if the
network was still not available.

HTH,
klh

shorti wrote:
Hello,
>
I was wondering if anyone knows why this error is occurring. Every
once in a while I will get an sql -1024 (we are looking in to why
this
occurs in the first place). I automatically do a DB2 CONNECT and it
reconnects without a problem. Occasionally, however, the reconnect
will fail with an sql -30082 with reason code 19. This error doesnt
make sense since the description says:
>
SQL30082N Attempt to establish connection failed with security
reason
"19"
("USERID DISABLED or RESTRICTED"). SQLSTATE=08001
>
SQLSTATE 08001: The application requester is unable to establish the
connection.
>
Explanation:
The attempt to connect to the remote database server was rejected due
to invalid or incorrect security information. The cause of the
security
error is described by the <reason-codeand corresponding
<reason-stringvalue.
>
19 (USERID DISABLED or RESTRICTED)
The userid has been disabled, or the userid has been restricted from
accessing the operating environment at this time.
>
For one, we have no 'remote' database. The database is local...so
why
this error? Second, the userid seems valid in all other cases.
>
Since the userid seems to work other times, I would assume it is
somehow being 'disabled'.
>
I noticed other database activities going on after this without a
problem (this is a multi-process/multi-threaded environment) so it
leads me to believe we are not having a true database connection
issue...maybe something going on with the calling process.
>
Any ideas?
>
I am running v8.2 on AIX 5.3.
>
Thanks!
Aug 3 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Thomas Lindgaard | last post by:
Hello I'm almost done with my webcrawler with a nice curses interface. But every once in a while an exception is thrown and not caught, and because of the use of curses I can't figure out which...
3
by: VK | last post by:
On Windows platforms path separator "\" collides with the script escape sign "\" Obvious and old way to prevent it is to double backslashes: "\\" But I'm curious if there is a reliable way to...
5
by: nicksjacobson | last post by:
Try getting this bug to occur! Run the following code in debug mode (i.e. hit F5). Then literally just keep moving the mouse around in the main window form area (the big gray box). IT TAKES...
1
by: Sven Schimmel | last post by:
Hello all, I face the problem that occasional in one WebApplication the following error occures: System.Data.SqlClient.SqlException: A severe error occurred on the current command. The...
0
by: Mike Labosh | last post by:
We have an in-house ASP.NET application that uses a .net "dataaccess.dll" library we wrote to wrap the data tier. Every once in a while, apparently only after a rebuild (not this dll, but the...
0
by: ttomic | last post by:
I have asp.net application written in jscript. On POST request, during Page_Load, I receive string which I evaluate using jscript eval method. String looks like: my_fun("arg") where my_fun is...
0
by: Jan Ove Halvorsen | last post by:
Hi! I have a web service that is used by a smart client (windows forms). It normally works ok, but occasionally I get the following error-message: System.Web.Services.Protocols.SoapException:...
11
by: Alec Wysoker | last post by:
Using Python 2.3.5 on Windows XP, I occasionally get OSError: Permission denied when calling os.remove(). This can occur with a file that is not used by any other process on the machine, and is...
1
by: (PeteCresswell) | last post by:
Every so often Agent looks like it's locked up. No mouse or keyboard response and the window's drag bar turns white. Seems to last 10-15 seconds on an average. No message on the status bar. ...
1
by: Ransom | last post by:
Hey folks... Newbie here. I'm working with win32com launching, closing and re-launching Excel grabbing output and doing stuff. Well, on some occasions, I get the following error: ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.