简体   繁体   English

NodeJS oracledb - ORA-03135:连接失去联系

[英]NodeJS oracledb - ORA-03135: connection lost contact

I have a NodeJS application which uses oracledb library to connect to an Oracle Database .我有一个 NodeJS 应用程序,它使用 oracledb 库连接到 Oracle Database 。 It's using the following code to try to connect to the database:它使用以下代码尝试连接到数据库:

        this.oracledb.fetchAsBuffer = [this.oracledb.BLOB];
        const dbconfig = {
            user: 'mysuser',
            password: 'mypass',
            connectString: '10.xxx.xx.xxx/MYORCLID'
        };
        console.log("Trying to get connection");
        return await this.oracledb.getConnection(dbconfig);

But, I'm receiving the following error now during the "getConnection" method:但是,我现在在“getConnection”方法期间收到以下错误:

"Error: ORA-03135: connection lost contact"

Please, is there anything wrong with this code?请问,这段代码有什么问题吗? It was working before but suddenly I started to receive the above message.它以前可以工作,但突然我开始收到上述消息。 From where should I start to check?我应该从哪里开始检查?

I've tried telnet and it worked too, so I'm not sure if this is a firewall issue.我已经尝试过telnet并且它也有效,所以我不确定这是否是防火墙问题。

I managed to solve the issue.我设法解决了这个问题。

It was an internal blocking issue inside our network.这是我们网络内部的一个内部阻塞问题。 They use a type of application which checks the origin hostname, linux user, application name and other properties before allowing access to the database.他们使用一种应用程序,在允许访问数据库之前检查原始主机名、linux 用户、应用程序名称和其他属性。

After talking to my Infra and DB Team, they checked and liberated the access, and then everything worked as it should.在与我的 Infra 和 DB 团队交谈后,他们检查并释放了访问权限,然后一切正常。

Thanks!谢谢!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM