DPY-4011: the database or network closed the connection - connection-string

I am using Oracle 11.2.0, Python 3.10.3
I am trying to connect to a Infor Oracle database with the following script:
import oracledb
TEST="'xxxx':'XXX'/'XXX'"
with oracledb.connect(user="xxx", password="xxx", dsn=TEST, disable_oob=True)
it return:
oracledb.exceptions.DatabaseError: DPY-4011: the database or network closed the connection
could you help me?

Related

Connection Airflow for Microsoft SQL Server didn't show at Airflow WebServer

I want to ask, how do you add new Connection choice in Airflow Webserver ? I can't see connection for Microsoft SQL Server
enter image description here
Thank you.
I've already follow step by step from this article.
https://girishdeshpande.medium.com/apache-airflow-on-docker-ms-sql-server-etl-dag-a8317da5cbcc
But I still cannot choose MSSQL (Microsoft SQL Server) connection on Airflow WebServer

Wordpress Database Error establishing a database connection [duplicate]

This question already has answers here:
Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (38)
(43 answers)
Closed 1 year ago.
I updated my PHP from 5.4 to 7 and after that my wordpress website cannot connect to the database.
When I put the line define('WP_ALLOW_REPAIR', true); within the wp-config.php and go to address: http://www.address.com/wp-admin/maint/repair.php I still have the same error
Error establishing a database connection
When I connect to my wp-admin, I got the following:
Finally I checked my credential on my database within wp-config.php, they are correct but when I do a mysql> show databases; I got the following:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
please edit wp_config file
use this code:
define('WP_ALLOW_REPATR',true);

SQL SERVER DB Closed PHP Connection

I am using php laravel to connect to a sql server db, but there is an issue sql server db "closed php connection". When I check requests in Profiler Trace, I have 2 requests: first one is from php audit login, then audit logout. The query doesn't complete, and I don't know why.
1) This error I get it from laravel:
SQLSTATE[08S01]: [Microsoft][ODBC Driver 13 for SQL Server]TCP Provider: An existing connection was forcibly closed by the remote host.
(SQL: select * from contact)
2) Image from SQL SERVER Profiler Trace

ColdFusion is not connecting datasource with SQL Server 2014 [duplicate]

This question already has an answer here:
ColdFusion 10/Windowns 7 Pro 64bit Connection verification failed for data source
(1 answer)
Closed 6 years ago.
I am trying to connect datasource in coldfusion admin with my local sql server 2014 but it is not connecting . I have tried every method to do this but no success.
I have also created new user but it is also not working.
I am getting this error
Connection verification failed for data source: mlc_new
java.sql.SQLInvalidAuthorizationSpecException: [Macromedia][SQLServer
JDBC Driver][SQLServer]Login failed for user 'tester'. The root cause
was that: java.sql.SQLInvalidAuthorizationSpecException:
[Macromedia][SQLServer JDBC Driver][SQLServer]Login failed for user
'tester'.
the datasource details are
datasource name: mlc_new db name: mlc_new sever: DEV-PC\SQLEXPRESS
username: tester password : somestring
Some details on SQL Server mixed authentication. To enable do, the following:
Connect to DB server (presumably via Windows Authentication
Right click for properties on the server icon
On the properties dialog go to Security
Select "SQL Server and Windows Authentication mode". Save.

Perl Connect to MSSQL Database Engine [duplicate]

This question already has answers here:
How do I connect to a MSSQL database using Perl's DBI module in Windows?
(4 answers)
Closed 7 years ago.
I am new to SQL and I am trying to create a Perl script to run a simple SELECT statement on a MSSQL Database I have access to.
The database I am connecting to authenticates with SQL Server Authentication. I found this but I don't think it applies because it is for ODBC.
Any help would be appreciated
The link you referenced is absolutely the right track. You'll be using an ODBC connection to talk to MS SQL Server. Otherwise, you can use DBD::Sybase to connect (SQL Server grew out of the Sybase code-base, so they share the underlying protocol, which is why the drivers for Sybase can be used).
I would recommend using Microsoft's official ODBC driver with DBD::ODBC over DBD::Sybase.
You didn't find any useful links?
I'm using MSSQL server for DB connection as below:
my $dbh = DBI->connect( "DBI:Sybase:database=DBNAME;server=DBSERVER",
"User", "Password", { PrintError => 1, AutoCommit => 1 } )
or die "Cant connect to database: $DBI::errstr\n";
$sth = $dbh->prepare("select * from Table");
$sth->execute();
$value = $sth->fetchrow_array();

Resources