473,382 Members | 1,766 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,382 software developers and data experts.

sql can't execute on different condition

hi, we are using db2 udb v8.1 on win 64 bit with fp3 with type 4
db2jcc.jar driver.

when i execute this query ,

select id, arno01, arcd01, arno16, artx01, armo09, ardy09, arcc09,
aryr09, arnm03, armo53, ardy53, arcc53, aryr53, arcd64, arid02 from
NJIPD.ARLTNT2 WHERE arno01=13962 ORDER BY arno01 ASC, arcd01 ASC
(one where clause)

i have no problem return the record, and result return arno01=13962
and arcd01='O'

but if i change the query to

select id, arno01, arcd01, arno16, artx01, armo09, ardy09, arcc09,
aryr09, arnm03, armo53, ardy53, arcc53, aryr53, arcd64, arid02 from
NJIPD.ARLTNT2 WHERE arno01=13962 and arcd01='O' ORDER BY arno01 ASC,
arcd01 ASC (two where clause) , i get

SQL30081N A communication error has been detected.
Communication protocol being used: "". Communication API being
used: "". Location where the error was detected: "".
Communication function detecting the error: "". Protocol
specific error code(s): "", "", "".

Explanation:

An error has been detected by the communication subsystem.

If the connection has already been established, possible causes
include the following:

o A communication subsystem error at the client node or server
node has caused the connection to go down.

o A communication subsystem error at the SOCKS server, if one
is being used, has caused the connection to go down.

o A network error has caused the connection to go down.

o The database agent at the server was forced off by the system
administrator.

o The database agent at the server was terminated due to an
abnormal termination of a key database manager process.

If you are trying to establish a new connection, possible causes
include the following:

o The remote database server has not been cataloged correctly
at the client.

o The database manager configuration file at the server has not
been configured with the proper communication parameters.

o The communication subsystem at the client node or server node
has not been configured correctly, or has not been started
successfully.

o The communication subsystem at the SOCKS server, if one is
being used, has not been configured correctly, or has not
been started successfully.

o The DB2COMM environment variable at the server doesn't
specify the communication protocol used by the client.

o The database manager at the server has not been started, or
has not been started successfully. One or more of the
communication protocols specified by DB2COMM may not have
been successfully started.

Refer to the token values for details. Depending on the
protocol being used and the communication function invoked, some
tokens may not be applicable. The following is the explanation
of the token values:
<protocol> The actual communication protocol being used. Valid
token values are:

o TCP/IP

o APPC

o NETBIOS

o IPX/SPX

<interface> The application programming interface used to invoke
the above communication protocol services. Valid token values
are:

o SOCKETS

o SOCKS

o CPI-C

o DLR or DD

o TLI or Connection/Bindery

<location> This is a protocol specific ID which uniquely
identifies the node that detected the error. If the protocol
being used is:

o TCP/IP

The format of the ID is the Internet address in dot
notation.

o APPC

The format of the ID is the fully qualified LU name
(networkID.LUname).

o NETBIOS

The format of the ID is the Workstation name (nname).

o IPX/SPX

The format of the ID is the network address and node address
in hexadecimal notation (network.node).

If the location information is not available at the time that
the error occurred, this token is not filled in.

<function> The name of the communication subsystem function that
returned the error code(s).

<rc1>, <rc2>, <rc3> The list of the available error codes and
subcodes that are specific to each protocol being used. Tokens
that are not applicable contain "*".

If the protocol being used is:

o TCP/IP

- If present, <rc1> contains the global errno value from the
TCP/IP sockets function call. When using Windows Sockets, if
present, <rc1> contains the error from the TCP/IP sockets
function call returned by WSAGetLastError().

- If present, <rc2> contains the global h_errno value from the
TCP/IP name resolution function call. When using Windows
Sockets, if present, <rc2> contains the error from the
TCP/IP database function call returned by
WSAGetLastError().

- If <rc3> is present and contains "0", it means that the
TCP/IP connection has been closed. This could be caused by
one
of the following:

- The database agent at the server was forced off by the
system
administrator.

- A database agent could not be started at the server
because
the maxagents database manager configuration
parameter has been exceeded. Check the administration
notification log to see if an error message has been
logged.

- The connection may have been closed by the remote server
at
the TCP/IP level.

- The database agent at the server was terminated due to an
abnormal termination of a key database manager
process.

Note: When using Windows Sockets, if the <function> is
WSAStartup, and <rc1> is 0, then <rc2> contains the
Windows Sockets Specification version level requested by
DB2, and <rc3> contains the Windows Sockets
Specification version level supported by the Windows
Sockets DLL.

o APPC

<rc1> contains the return code from the CPI-C function. If
present, <rc2> contains the global errno value from the
CPI-C function call. <rc3> is not applicable.

o NETBIOS

<rc1> contains the return code from the call to NetBIOS.
<rc2> and <rc3> are not applicable.

o IPX/SPX

<rc1> contains the global t_errno value from the call to
TLI Services, or the return code from the call to NetWare
Connection or Bindery Services. If the <rc1> t_errno is
TLOOK, <rc2> contains the TLI event that has occurred. If
the <rc2> event is T_DISCONNECT, <rc3> contains the
disconnect reason code. On AIX, if the <rc1> t_errno is
TSYSERR, <rc3> contains the system errno (defined in
sys/errno.h). If <rc1> contains the error return code from a
call to AIX NetWare Connection or Bindery Services, <rc2>
contains the error generator.

See the Communications Errors appendix of the Message Reference
for more information on specific communication error codes.

User Response:

If the connection has already been established, check if:

1. The database agent at the server has been forced off.

2. The database manager at the server has abnormally
terminated.

3. A communication subsystem or network error has occurred. See
the Message Reference for more information on specific
communication error codes.

If you are trying to establish a new connection, check if:

1. The remote database server is cataloged properly on the
client node.

2. The database manager configuration file at the server is
configured with the proper communication related parameters.
If the database manager configuration parameters have been
updated at the server, ensure that you stop and then re-start
the database manager, for the changes to take effect.

3. The communication subsystems on both client and server nodes
are configured and started up properly.

4. The DB2COMM environment variable at the server specifies the
communication protocol used by the client.

5. The database manager at the server is successfully started.
Start database manager processing at the server should have
returned SQL1063, and not SQL5043. If SQL5043 is returned,
check the administration notification log for more
information.

6. A communication subsystem or network error has occurred.

If the problem persists, consult with your network administrator
and/or communication expert to determine the cause of the problem
using the set of tokens provided.

sqlcode : -30081

sqlstate : 08001
please help
Nov 12 '05 #1
0 2579

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

Similar topics

0
by: Wilk Teverbaugh | last post by:
I've got an include file inside each page throughout my site. Inside this include file I'm running server.execute to include other pages based on a condition (userID). The problem has two parts-...
3
by: Hello | last post by:
Hi all, I have 2 independent stored procedures(I cannot join them because of the group condition are different however they have the same cust id) but one for reading the summary and other showing...
22
by: Fred Ma | last post by:
I'm using the expression "int a = ceil( SomeDouble )". The man page says that ceil returns the smallest integer that is not less than SomeDouble, represented as a double. However, my...
18
by: swaroophr | last post by:
Which of switch statement and if-else statement takes less time to execute?
1
by: C-- | last post by:
for (expression1; expression2; expression3) {statement} can you explain it to me...
4
by: 0to60 | last post by:
I've created a Windows.Forms control and placed it on an aspx page with the <object> tag and verified that it works nicely. But, when I add functionality to it (specifically, stuff from...
4
by: Kent P. Iler | last post by:
Hi, I am showing/hiding a variety of panels that have different text boxes via code-behind functions. Depending on the condition, I would like to have the focus be set on a specific text box. ...
2
by: Steve Franks | last post by:
In ASP.NET 2.0 you can now apparently do this: <asp:label runat="server" text="some browser" IE:text="any IE browser" IE5:text="the IE 5 browser" PIE:text="the Pocket PC browser" /> Now the...
5
by: alingsjtu | last post by:
Hello, every body. When execute dynamic generated multiple OPENQUERY statements (which linkes to DB2) in SQLServer, I always got SQL1040N The maximum number of applications is already connected...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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...

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.