This error occurs if you create a DB2 database, for example, the database is named OneDB, and you connect to this database using JDBCODA, specifying the DatabaseURL property as jdbc:db2:OneDB.
To avoid this problem, you can create a TCP/IP node for the DB2 machine and an alias for this database. Assume the node name is OneNode and the alias is OneDB1. Enter the following commands:
$ db2 db2 => catalog tcpip node OneNode remote <your local host> server 50000 db2 => catalog database OneDB as OneDB1 at node OneNode db2 => quit
Then when using JDBCODA to connect to database OneDB, specify the DatabaseURL property as jdbc:db2:OneDB1; that is, access the database by its alias.