How to recover Sybase Username and Password? - sybase-ase

I am getting the following error while connecting to Sybase with the credentials which I have. Unfortunately, the dba is not available who has set this up and there is no one who knows the password. Basically, I am looking to connect to Sybase DB on which ECC is installed from Power BI but not able to proceed due to this error. Sybase DB and ECC are installed on Linux Red Hat Enterprise.
Msg 4002, Level 14, State 1:
Server '<SERVER_NAME>':
Login failed.
ct_connect(): protocol specific layer: external error: The attempt to connect to the server failed.


SQLCMD with SQL SErver 2017

Are there any limitations with using sqlcmd with SQL Server 2017?
I did not find any documented information about that but I've heard some info that something changed.
I got following error when trying to connect to MSSQL2017 instance:
Sqlcmd: Error: Microsoft ODBC Driver 11 for SQL Server : SSL Provider: An existi
ng connection was forcibly closed by the remote host.
Sqlcmd: Error: Microsoft ODBC Driver 11 for SQL Server : Client unable to establ
ish connection.
Could you clarify?

SSL encryption error when installing SQL Server Express

I am attempting to install SQL Server Express Edition (64-bit) on my Windows 10 laptop. It is failing, apparently because of this:
2018-06-04 14:55:20.52 spid15s Initializing the FallBack certificate failed with error code: 1, state: 20, error number: 0.
2018-06-04 14:55:20.52 spid15s Unable to initialize SSL encryption because a valid certificate could not be found, and it is not possible to create a self-signed certificate.
2018-06-04 14:55:20.52 spid15s Error: 17182, Severity: 16, State: 1.
2018-06-04 14:55:20.52 spid15s TDSSNIClient initialization failed with error 0x80092004, status code 0x80. Reason: Unable to initialize SSL support. Cannot find object or property.
I do not know how to resolve this; can anyone help me out?
Resolved: for some reason using VPN to log into my employer's network did not allow me to install SQL Server Express. However, from their offices and on the company intranet the problem went away.

Cannot Connect to Azure Database through ODBC Driver 11 for SQL Server and SQL Native Client

I can easily access Azure SQL database through SQL Server 2014 but
When I am trying to connect my PHP(Laravel) web application to Azure SQL Server through ODBC Driver 11 for SQL Server and also tried with SQL Native Client 11 , it is giving me different types of exceptions as given below
[Microsoft][ODBC Driver 11 for SQL Server] A transport-level error
has occurred when receiving results from the server (provider: TCP
Provider, error: 0 - The semaphore timeout period has expired.)
[Microsoft][ODBC Driver 11 for SQL Server] A transport-level error has
occurred when receiving results from the server. (Provider: TCP
Provider, error: 0 - An existing connection was forcibly closed by
the remote host.)
[Microsoft][ODBC Driver 11 for SQL
Server]System.Data.SqlClient.SqlException: Timeout expired. The
timeout period elapsed prior to completion of the operation or the
server is not responding. The statement has been terminated.
[Microsoft][ODBC Driver 11 for SQL Server] A connection attempt
failed because the connected party did not properly respond after a
period of time, or established connection failed because connected
host has failed to respond.
[Microsoft][ODBC Driver 11 for SQL Server]Named Pipes Provider: Could
not open a connection to SQL Server [53]. , SQL state 08001 in
I have gone through this Technet Article and followed all the steps successfully till step 3.
But when I traceroute to the server it is giving me following result
So, the issue which I am facing is due to reason that I am getting request timeout. And I have configured server firewall and added the client ip.
I think you can reference the article A transport-level error has occurred when receiving results from the server. People got the same error.
The possible solution is
1) Check the provider of that linked server.
2) Enable "Allow inprocess" option for that particular provider to fix the issue in provider properties.
3) For 'Packet Size=xxxxx' in connection string, try to make that 'xxxxx' shorter.
4) Try to disable "IP Offloading" on the network interfaces.
5) Restart Virsual Stdio.
6) Stopped the IIS Express and rerun your application.
Hope this can be helpful.
I have a quick test leveraging odbc_connect like:
odbc_connect("Driver={SQL Server Native Client 11.0};Server=tcp:<sqlsrv_name>,1433;Database=<database>;Uid=<user>#<sqlsrv_name>;Pwd=<password>;Encrypt=yes;Connection Timeout=30;", "<user>#<sqlsrv_name>", "<password>");
However I cannot reproduce your issue. Could you please create a new Azure SQL Server, and try to connect to this new one from your local script?
If you still occur this issue, there are may be something problem with your local environment. You may check your network as your logs have shown a timeout exception.
Resolved this issue.
Problem was with the plan which I selected,it wasn't sufficient for my need.
I selected plan with higher configurations and fortunately it worked.

ssl enabled oci connection - unknown cipher suite 157

I am trying to make an ssl based oci connection to Oracle 11g ssl enabled database using OBIEE BI server and Admin tool. The wallet and all required configurations are in place. However the connection establishment fails and in the sqlnet trace file I get the following error.
(12184) [25-OCT-2015 12:45:21:521] ntzcsgtab: INTERNAL ERROR - unknown cipher suite 157.
(12184) [25-OCT-2015 12:45:21:521] ntzcsgtab: failed with error 543
(12184) [25-OCT-2015 12:45:21:521] ntzcsgtab: exit
(12184) [25-OCT-2015 12:45:21:521] ntzini: Could not initialize Cipher Suite table.
(12184) [25-OCT-2015 12:45:21:521] ntzini: failed with error 543
I am not specifying any particular cipher suite in sqlnet.ora either in client or database, and using the default ones.
Next I tried to create jdbc connection using oci driver (using oracle instant client) and using same wallet, in a simple java client program. I was able to successfully establish the SSL enabled connection.
So it seems like Oracle client inside OBIEE might be missing some feature to handle SSL based connection. Any idea how to fix this?
Thanks in advance

“no pg_hba.conf entry for host” but “LOG: connection authorized”

I have a wierd problem. I have a service running using PostgreSQL 8.3. On parallel platform I have installed PostgreSQL 9.1 and try to connect to it using my working php script. Got an answer:
pg_connect(): Unable to connect to PostgreSQL server:
FATAL: no pg_hba.conf entry for host "X.X.X.X",
user "postgres", database "dbtrsy", SSL off
My pg_hba.conf contains:
host all all X.X.X.X/32 password
host all all Y.Y.Y.Y/32 password
I can easily connect to DB using PgAdmin from Y.Y.Y.Y. Now the wierd thing: I look at the log and I can see:
LOG: connection received: host=X.X.X.X port=55696
LOG: connection authorized: user=postgres database=dbtrsy
LOG: disconnection: session time: 0:00:00.017 user=postgres database=dbtrsy host=X.X.X.X port=55696
Any clue why I got disconnected automatically after being authorized correctly? When I try to login with different password / username it throw "password authentication failed" error whis is correct.
Any idea? Thanks!
If I were to guess, I would guess that something is causing the pg_hba.conf to be read incorrectly, perhaps exposing some sort of bug in the underlying system, or perhaps with another non-bug problem.
My recommendation for a problem of this sort is to take it up on the PostgreSQL email lists, and be prepared to show your entire configuration. You could also try commenting out lines in the pg_hba.conf until you find the problem. If your configuration is sufficiently sensitive, you may want to run another server with the same configuration, but different IP addresses on the client, to create a self-contained test case.