Nodejs oracle Db connection on Openshift platform - node.js

I have created and deployed node.js application on Openshift platform.
I need to connect to oracle db which is on a remote host.
I am able to connect to the oracle Db from my local machine as i have installed oracle client.
But when I deploy the application to Openshift platform I get below error.
Error: DPI-1047: Cannot locate a 64-bit Oracle Client library: "libclntsh.so
I know I need Oracle client installed on the hosting system.. but the openshift platform doesn't allow me any installation.
Can anybody suggest me any way how to get around this.
Thanks in advance.

Can you deploy a Docker container? If so, then check out https://github.com/oracle/docker-images/blob/master/OracleLinuxDevelopers/oraclelinux7/nodejs/12-oracledb/Dockerfile. Also see the node-oracledb installation instructions for docker: https://oracle.github.io/node-oracledb/INSTALL.html#docker. And see the blog post series https://blogs.oracle.com/opal/docker-for-oracle-database-applications-in-nodejs-and-python-part-1

Related

Deploying a Node.js project which uses Oracle Cloud database to Azure App Service

I have an application in Node JS which uses Oracle cloud anonymous database which is currently working perfectly with my application at local.
I wanted to deploy this app on Azure App Service and so I followed this Microsoft Doc Link using this I was able to deploy my project and it is running on the server but unfortunately it is not able to connect to my oracle could database
while deploying I got some logs which says this
** Node-oracledb 4.2.0 installed for Node.js 14.17.4 (linux, x64)
oracledb **
oracledb ** To use node-oracledb:
oracledb ** - Oracle Client libraries (64-bit) must be configured with ldconfig or LD_LIBRARY_PATH
oracledb ** - To get libraries, install an Instant Client Basic or Basic Light package from
oracledb ** https://www.oracle.com/database/technologies/instant-client/linux-x86-64-downloads.html
oracledb **
oracledb ** Installation instructions: https://oracle.github.io/node-oracledb/INSTALL.html
oracledb
so from this, I somehow understood that I need to configure the Oracle client on a Linux server so after spending hours I got a solution where I need to set up the path here is the Oracle Doc but even this settings did not worked for me still not able to connect it.
also, one more thing I noticed was as soon as I redeploy or restart my App Service the settings get vanished
for oracle, I have database name, password, connection string, and oracle has also provided me with waller.zip which has tnsnames and cwaller.sso
have spent 3 days understanding the problem, if someone can help with it would be great, please comment if you need any more details to understand my problem
This is not a full answer (i.e. it's too big for a comment).
Start by upgrading to a recent version of node-oracledb, e.g. 5.2.
It sounds like you know what to do with the wallet files, but here is the node-oracledb doc on Connecting to Oracle Cloud Autonomous Databases. If you don't have the wallet files in a default location you can (with node-oracledb 5) use initOracleClient({configDir:'/your/path'}) to indicate their location.
The final piece is to set LD_LIBRARY_PATH to the location of your Instant Client libraries. Search for Azure doc on how to do this - I don't have experience with this environment.

TortoiseSVN: Unable to connect to repository at URL 'svn://servername/projectname'

We usually check-out our projects through 'svn://servername/projectname/trunk' (Repo-browser).
Our current server is Windows Server 2008 Standard installed with TortoiseSVN 32bit 1.8.1 2013/07/22 version.
We have no problem in accessing our repositories from said server.
*transfer all our repositories and projects in a new server..
When trying to set-up a new server which is Windows Server 2012 R2 installed with TortoiseSVN 64bit 1.9.7 2017/08/08 version, we can't check-out our projects through svn://...
Upon trying to check repo-browser or checkout using 'svn://newservername/projectname/trunk'.. below error occur.
Checkout Failed!
Unable to connect to a repository at URL 'svn://newservername/projectname/trunk'
Can't connect to host 'newservername': No connection could be made because the target machine actively refused it.
Should we coordinate with our Network and Server incharge/s on possible required authorizations etc.? What area can we advise them to check? Or is there anything we still need to set in TortoiseSVN?
Your respond is very much appreciated.
Thanks so much.
You need to run svnserve in the background in order to use the svn: protocol. TortoiseSVN itself is just a Subversion client and only provides repository access through serverless file: protocol.
Luckily, for a few years now the TortoiseSVN installer has been bundling the official command-line tools as optional components. Double-check you've installed them in the machine that acts as server:
... and then try to figure out the exact mechanism you were using in the old machine to launch the program as background service.
Alternatively, you can migrate to a dedicated server software an maybe choose another network protocol.

Trying to connect to Oracle DB through Electron in Windows 7

I'm trying to connect to Oracle database through the Electron app I'm building. What options do I have?
Use node-oracledb. Electron has some ABI compatibility issues so review what other node-oracledb users are doing before you start.

How to connect pervasive sql Database and Web Site using DSN

I am having an application that is running on IIS with Enabled 32 bit Application.
In a remote server(connection available in local machine),i have installed Pervasive SQL.
I have installed Pervasive SQL Driver in local machine and trying to connect the database "TestApplication" in Pervasive SQL.
For that I have created System DSN "DSNTEST", and tried with Windows Application.Its working fine.
But i couldnt connect to the database from Web Site.
An error occured "Error: ERROR [IM014] [Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application".
Can anyone please help me to resolve this?
Thanks in advance.
It sounds like the ASP.NET application is trying to run as a 64 bit application. Because you're using PSQL v11, you can install the 64 bit ODBC driver which is part of the PSQL v11 64 bit client install (at http://www.pervasive.com/database/Home/Products/PSQLv11.aspx).
The other option is to make sure that the ASP.NET project is built with a target of x86 rather than x64 or AnyCPU.

Could not create connection from Driver

i am new to the oracle. ,My project is .net web application which is connected to the oracle database(oracle 11g) when i run my solution in local environment, i get the error in the below line saying that "Could not create connection from Driver".
return factory.ConnectionProvider.GetConnection();
but this project is working fine in windows XP and I am using windows 7 with oracle 11g installed in my system where i am facing the problem.please can any one give solution.
I understand from the team that this project is designed with oracle 9.2 in mind. how do i make it work in oracle 11g which i have it currently.
I would advise you to use Oracle's Managed Data Provider for .NET. All your problems with local Oracle installations will go away immediately. Since it's a 100% managed driver, you won't need to install Oracle's client on your machine before connecting to it with .NET programs.

Resources