Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8180111
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T00:08:47+00:00 2026-06-07T00:08:47+00:00

I have absolutely no experience with AS400 DB2 so please forgive any glaring mistakes

  • 0

I have absolutely no experience with AS400 DB2 so please forgive any glaring mistakes as I am learning as I go along. I have 2 boxes I can connect to running v5r3 or v4r3. and I am using NHibernate 3. However, when I try and connect I keep getting the following exception :-

ERROR [08001] [IBM] SQL30081N  A communication error has been detected. 
Communication protocol being used: "TCP/IP".  Communication API being used: "SOCKETS".  
Location where the error was detected: "192.168.1.11".  Communication function detecting the error: "connect".  Protocol specific error code(s): "10061", "*", "*".  SQLSTATE=08001

Below is my NHibernate configuration file:-

<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
    <session-factory>
        <property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
        <property name="dialect">NHibernate.Dialect.DB2400Dialect</property>
        <property name="connection.driver_class">NHibernate.Driver.DB2Driver</property>
        <property name="connection.connection_string">Server=192.168.1.11;Database=TESTDB;UID=XXX;PWD=XXX;          </property>
        <property name="proxyfactory.factory_class">NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle</property>
        <property name="command_timeout">15000</property>
        <property name="current_session_context_class">thread_static</property>
    </session-factory>
</hibernate-configuration>

I am not sure if this is because the versions of AS400 are too early? my nhibernate configuration is incorrect? or I have something set up incorrectly on the AS400 itself.

Any advice would be most appreciated.

Many thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T00:08:48+00:00Added an answer on June 7, 2026 at 12:08 am

    There are two types of database connections available on the IBM i – DRDA and DDM. DRDA is used for native connections (DB2.Net.iSeries) and DDM is used for DB/2 LUW (DB2.Net, DB/2 Connect) connections.

    DRDA

    Verify the database host server running:

    WRKACTJOB SBS(QSERVER) JOB(QZDASRVSD)
    

    Check the port status:

    NETSTAT OPTION(*CNN), hit F2 and verify ports 449, 8470, 8471 and 8476 are in state Listen.

    Start the database host server with the command:

    STRHOSTSVR SERVER(*DATABASE)
    

    DDM

    Verify the ddm tcp server is running:

    WRKACTJOB SBS(QSYSWRK) JOB(QRWTLSTN)
    

    Check the port status:

    NETSTAT *CNN, hit F2 and verify port 446 is in state Listen.

    Start the ddm tcp server with the command:

    STRTCPSVR SERVER(*DDM)
    

    Include the ddm port number in your connection string:

    Server=192.168.1.11:446;Database=TESTDB;UID=XXX;PWD=XXX;
    

    This IBM Redbook should provide more information:

    Integrating DB2 Universal Database for iSeries with Microsoft ADO .NET

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have never used dll's before(absolutely no experience) and I wanted to replace a
I'm a fairly fresh developer, and so have absolutely no complex experience with build
Im have absolutely no experience with .htaccess and i tried something today. I basicly
I'm not a very experience programmer and have been learning HTML/CSS/JS on the fly.
I have absolutely no experience programming in excel vba other than I wrote a
I have absolutely no experience or knowledge regarding hardware registers and how to interface
I have absolutely no access to a machine with IE on it right now
I have absolutely no idea how to do this, so I'm just gonna go
I have absolutely no idea why this is happening but the following code seems
I have an absolutely positioned div that has a width of 100% with a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.