Message Queue 2539 Error

Source: Internet
Author: User

I re-configured the MQ server today and moved the MQ server to the traditional server. Configure OK and use my client to connect to always report the 2539 error.

The IBM help file provides an explanation.

2539 (09eb) (rc2539): mqrc_channel_config_error Explanation

An mqconn call was issued from a client to connect to a queue manager but the attempt to establish communication failed. common causes of this reason Code are:

  • The server and client cannot agree on the channel attributes to use.
  • There are errors in one or both of the Qm. ini or mqclient. ini configuration files.
  • The server machine does not support the Code Page used by the client.

I reconfigured the client on the server and used the amqsputc command to connect to OK. So I suspect that the server machine does not support the Code Page used by the client. I checked the help.

It turns out that the client's code page settings must be consistent with the server or can be converted to each other.

Select the client or server encoding Character Set Identifier (ccsid)

The client code assumes that the mqi character data in the client is located in the ccsid configured by the machine. If this ccsid is not supported or is not required, you can overwrite it with the mqccsid environment variable. For example, on Windows:

SET MQCCSID=850

Or, on a UNIX system:

export MQCCSID=850
 

The ccsid of the queue manager on my server is 950.

Therefore, use the command to set the client ccsid

Set mqccsid = 950

Connect again using amqsputc. The connection is successful and the problem is solved!

 

After searching for the network, go to the ccsid explanation:

IBM coded Character Set Identifiers (ccsid) code table

A ccsid is a coded character set identifier. the Unicode Standard defines a coded character set as "a character set in which each character is assigned a numeric code value. "This means that a ccsid is a number that defines a numeric ordering of characters. the IBM character data representation architecture (cdra) as defined in SC09-1390, defines ccsids that are used with IBM to represent character data. this architecture defines single byte character set (sbcs) ccsids, multiple byte character set (MBCS) ccsids, and mixed ccsids which are a combination of sbcs and MBCS data. MBCS ccsids are usually used for ages, such as Chinese, Japan, and Korean, that define a larger number of characters than can be represented in a single byte.
Ccsid is the identifier of a character set. As a Unicode standard, a character set is defined by defining the numeric value corresponding to each character in a character set. This indicates that ccsid is a digital identifier that defines the character set sequence. IBM character identification architecture in document SC09-1390 (
Http://www-304.ibm.com/jct03002c/software/globalization/cdra/index.jsp;Http://publib.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/FOCREF00/CCONTENTSIs defined. ccsid is the code used by IBM to identify character sequences. This architecture defines the ccsid value of SDCS (Single Character Set), The ccsid value of MBCS (Multi-Character Set), and the mixed ccsid value of mixed single character multi-character set. The ccsid of multiple character sets is generally used in languages, such as Chinese, Japanese, and Korean. These languages have a large number of characters and cannot be represented by single-byte code values.

All sbcs ccsids define a similar basic set of characters, although they might define them in different numeric ordering. for instance all sbcs ebcdic ccsids define the number "1" as X 'f0 'and all sbcs ASCII ccsids define the number 1 as X '30 '.

There are multiple types of conversions between ccsid. One of the conversions is from one ccsid to another, for example, from ASCII (ccsid 1252) to ebcdic (ccsid 37 ). Another is the conversion from string data to another data type. For example, convert string data to a value. In all such conversions, The ccsid value must be identified to ensure correct conversion.

However, there are requirements for conversion. The premise of the first conversion is that the ccsid type to be converted must contain the characters to be converted from the ccsid type before conversion, for example, if from ccsid1381 (S-CHGBPC-DATA) for the type of Simplified Chinese, the conversion from a Chinese character "to another ccsid encoding requires at least that the ccsid encoding character set contains the same" medium "character.

The list of ccsid descriptions I found from IBM is as follows:

Extracted fromHttp://www-304.ibm.com/jct03002c/software/globalization/ccsid/ccsid_registered.jspFor more information, see.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.