Connect docker oracledb container from node container

Thanks for your kind answer.
I have an problem to connect docker oracledb container from node container.

My purpose is to make node-test access to oracledb’s oracle database and node-test display this message below.

Connection was successful!


My Container

CONTAINER ID        IMAGE                                       COMMAND                  CREATED             STATUS              PORTS                                            NAMES
1098c82e62ef        node:6                                      "node"                   29 hours ago        Up 31 minutes                                                        node-test
25df889966e0        store/oracle/database-enterprise:   "/bin/sh -c '/bin/..."   7 weeks ago         Up 42 minutes>1521/tcp,>5500/tcp   oracledb

My network

NETWORK ID          NAME                 DRIVER              SCOPE
bf6a2f4cab57        bridge               bridge              local
a51f5d464115        host                 host                local
becb2e792d03        none                 null                local
8aab6a1bd493        oracledb-container   bridge              local

node-test and oracledb are in same network, oracledb-container.

Here is source codes.
My demos come from here ->


module.exports = {
  user          : process.env.NODE_ORACLEDB_USER || "test",
  password      : process.env.NODE_ORACLEDB_PASSWORD || "test",
  connectString : process.env.NODE_ORACLEDB_CONNECTIONSTRING || "oracledb:1521/orcl"

connect.js is same.

I pinged it’s connection.

node@1098c82e62ef:~$ ping oracledb
PING 1521 ( 56 data bytes
64 bytes from icmp_seq=0 ttl=64 time=0.182 ms
64 bytes from icmp_seq=1 ttl=64 time=0.209 ms
64 bytes from icmp_seq=2 ttl=64 time=0.148 ms
64 bytes from icmp_seq=3 ttl=64 time=0.148 ms
^C--- 1521 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.148/0.172/0.209/0.026 ms

so, i ran connect.js but i got this message.

node@1098c82e62ef:~$ node connect.js
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor

But if i try to connect to oracledb from host it always works and i can get some data.
How to solve this problem?