WAS 8.5.9 Datasource failed......DSRA0010E: SQL State = 42601, Error Code = -104 getting error code in Application - websphere-8

I am using WAS 8.5.9 version, looks like some datasource connection problem but when I click on test connection button in WAS console it is showing connection is fine.But When I am running my application it is throwing error and in Error logs it is showing below error
[financing_tools_docgen] [DBConnection] [04/27 14:18:45.759] [ERROR] [Severity 2] [[abcdefd#gmail.com][145681]] getConnection() : Got SQLException :com.ibm.websphere.ce.cm.StaleConnectionException: DB2 SQL Error: SQLCODE=-104, SQLSTATE=42601, SQLERRMC=SNAPSHOT;MODE, DRIVER=3.57.82 DSRA0010E: SQL State = 42601, Error Code = -104
In Application logs getting below error
[financing_tools_docgen] [DBConnection] [04/27 14:18:43.723] [DEBUG] [Severity 4] [[abcded#gmail.com][145681]] Trying to get connection object with ICFS DS=ICFS_IR1T , JNDI value=jdbc/financing_tools_docgen_txtmgr
[financing_tools_docgen] [DBConnection] [04/27 14:18:45.759] [ERROR] [Severity 2] [[abcded#gmail.com][145681]] getConnection() : Got SQLException :com.ibm.websphere.ce.cm.StaleConnectionException: DB2 SQL Error: SQLCODE=-104, SQLSTATE=42601, SQLERRMC=SNAPSHOT;MODE, DRIVER=3.57.82 DSRA0010E: SQL State = 42601, Error Code = -104

Here is the DB2 documentation for SQLState 42601 with Error Code -104,
https://www.ibm.com/support/knowledgecenter/en/SSEPGG_11.1.0/com.ibm.db2.luw.messages.sql.doc/doc/msql00104n.html
It sounds like a syntax error rather than a stale connection. I think the application server has misclassified it here. That would be consistent with test connection operation still working, because connection can be obtained successfully, but the error is occurring when executing a SQL command with a syntax error. You should look into the SQL that is being used and see if you can correct.

Related

A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - Success)

Unhandled exception. System.Data.SqlClient.SqlException (0x80131904): A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - Success)
This is a NET5.0 console app using dapper to execute a stored procedure that will not store a result. The app is running from a linux docker container (Docker Desktop - Windows). The error happens each time a new container is created, and run for this first time. If the container is run again, the error will not occur.
using(IDbConnection sc = new SqlConnection("Server=my-azure-managed-instance.database.windows.net;Database=MyDB;User Id=me;Password=pw;")
{
sc.Execute("usp_MyProcedure", commandType: CommandType.StoredProcedure);
}
Does anyone know what situations might end up with "(provider: TCP Provider, error: 0 - Success)" as an error message?

Getting this error Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection

I am new to Oracle, installed oracle SQL developer but each time I try to connect, I get the error:
Status: Failure -Test failed: IO Error: The Network Adapter could not
establish the connection
and the oracleTNSlistener service turns off on its own. Each time I start the service, it turns off immediately on its own.

R Hana authentication with Kerberos and ODBC JDBC

I was trying to connect to Hana from R using JDBC.
It gives the below error.
I have the kerberos setting AuthMech KerberosFDQN etc configured too.
Any clue possible root cause for this error
odbcconn <- odbcConnect("HD2")
Warning messages:
1: In RODBC::odbcDriverConnect("DSN=HD2") :
[RODBC] ERROR: state 08S01, code -10709, message [unixODBC][SAP AG][LIBODBCHDB SO][HDBODBC] Communication link failure;-10709 Connection failed (RTE:[200106] Protocol error, invalid authentication packet (m_server_at_my_company.com:30050))
2: In RODBC::odbcDriverConnect("DSN=HD2") : ODBC connection failed

Error in connecting R to Redshift

I'm trying to connect RStudio to Amazon Redshift via JDBC and this is what I tried to run:
driver <- JDBC("com.amazon.redshift.jdbc42.Driver", "~/Downloads/RedshiftJDBC42-1.2.1.1001.jar", identifier.quote="`")
# url <- "<JDBCURL>:<PORT>/<DBNAME>?user=<USER>&password=<PW>
url <- "jdbc:redshift://<cluster-name>.<xxxxxx>.us-east-1.redshift.amazonaws.com:5439/<dbname>?user=<username>&password=<password>"
conn <- dbConnect(driver, url)
When executing dbConnect(), I get the following error:
Error in .jcall(drv#jdrv, "Ljava/sql/Connection;", "connect", as.character(url)[1], :
java.sql.SQLException: [Amazon](500150) Error setting/closing connection: Operation timed out.
Any idea what is causing this and how to fix it?
Update: There was a problem with access through security groups. If you're having a similar issue, check the inbound rules of your security group and make sure they allow access to Redshift via your IP.

Biztalk got an error "A transport-level error has occurred when receiving results from the server"

Our Biztalk (2006R2) faced an error as below:
Error 1
Event Type: Error
Event Source: ENTSSO
Event Category: Enterprise Single Sign-On
Event ID: 10514
Date: 2/14/2014
Time: 5:02:27 PM
User: N/A
Computer: NINI-SSPP03
Description:
An error occurred while attempting to access the SSO database.
Function: GetGlobalInfo
File: infocache.cpp:1349
A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - The specified network name is no longer available.).
SQL Error code: 0x00000040
Error code: 0xC0002A21, An error occurred while attempting to access the SSO database.
Error2
The following stored procedure call failed: " { call admsvr_ReceiveLocation_GetAllInApp( ?)}". SQL Server returned error string: "[DBNETLIB][ConnectionRead (recv()).]General network error. Check your network documentation.".
But we cannot find any error in SQL Server event log and SQL Server log.
Is there any idea on the possible cause of this error?
Thanks.

Resources