minus one error when trying to connect to database with Oracle SQL Developer - postgresql

I'm trying to connect to a Postgres DB using Oracle SQL Developer. This is the datasource URL I see in an application which uses the DB:
jdbc:postgresql://10.11.12.13:5432/mydb?ssl=true&sslfactory=org.postgresql.ssl.NonValidatingFactory&sslmode=require
I have the correct username and password but when I try to connect I get:
Status : Failure -Test failed: IO Error: got minus one from a read call
I think this is because I don't have a SID or Service name populated. How can I find what these are?

Related

Using Wrangler with MySQL: A server error occurred when testing the connection. Error: Exception occurred while handling request: string

I am trying to connect a MySQL database via Google Cloud Data Fusion Wrangler. It's a very standard connection and I can connect and do every action with another tool (DBeaver). However, trying to connect with Wrangler, I am getting this message:
A server error occurred when testing the connection. Error: Exception occurred while handling request: string
Any suggestions? Thanks!
Please follow the instructions on https://cloud.google.com/data-fusion/docs/how-to/using-jdbc-drivers
Once done, you will be able to select the uploaded driver from the dropdown
For your requirement, you have to use JDBC Driver for connecting to MySQL database.You can use Public IP to setup connection to Wrangler.
Following are the steps to connect to MySQL database using Wrangler
Go to Hub in the Cloud Fusion instance and and select the required JDBC Driver.
Download the
driver and deploy it.
Go to Wranglers page and click on Add
Connection if you are connecting to MySQL for the first time.
Select
the MySQL database from the list of databases provided in Wrangler.
Add name and JDBC driver along with username, password and other connection arguments.
Click on test connection to check the connectivity.
For more details you can check this link.

Postgres OLBC Connection error: FATAL: No pg_hba_conf entry

I am trying to create a linked server between the warehouse and a amazon cloud service.
The service provide is using a PostgreSQL database.
I have installed the ODBC Driver (12.10) on my server but I keep getting this error.
I am not sure how to work around this as I have never used Postgres before.

"ORA-06413 Connection not open" ERROR and "ORA-12154 TNS could not identify the connect identifier specified" ERROR

I am having a hard time for connecting powerbuilder ide(12.6) to oracle database(10g xe). Can anyone provide me the step by step process to connect to oracle 10g xe database through powerbuilder database profile(O10 oracle 10g). When I tried to connect it would give connection not found error.
Also,
1)When i give (server name = host:port/apex) in the database profile, It would give connection not found error
2)When i give (server name = XE) in the database profile, It would give ORA-12154 TNS could not identify the connect identifier specified.
Please help me with this issue

IBM Lift CLI cannot connect to source database

I am having an issue connecting to the source database when attempting to extract a table.
Here is the error message:
LIFT-4000: Failed acquiring connection for the database SKILLST after
multiple retries. Ensure that host, port and credentials are correct.
Netezza: Cannot create PoolableConnectionFactory (Connection reset)
Also, when trying to migrate DDL from a source to a target database db2, I receive this message:
Generating DDL statement(s) for specified database objects...
LIFT-4030: No object found in schema TADB2 matching with specified
condition.
We have verified the host port, username, password, and all conditions are correct. Even still, we are receiving the LIFT-4030 error above.
Our version of db2 is:
"DB2 v11.1.3.3"

Can't connect to local Firebird with ISQL

I'm trying to setup a local firebird instance to test against but am unable to connect to it with even ISQL. I have tried to following by following the quick start guide here:
CONNECT ..\examples\empbuild\employee.fdb user SYSDBA password masterkey;
Which resulted in:
Statement failed, SQLSTATE = 08001
unavailable database
After some searching I tried modifying that to:
CONNECT "localhost:C:\Program Files\Firebird\Firebird_2_5\examples\empbuild\employee.fdb" user SYSDBA password masterkey;
Which resulted in:
Statement failed, SQLSTATE = 28000
cannot attach to password database
After confirming I had the right directory path I decided to give on on connecting for now and try creating a new DB:
SQL>CREATE DATABASE 'C:\data\test.fdb' page_size 8192
CON>user 'SYSDBA' password 'masterkey';
Which also gave me the error:
Statement failed, SQLSTATE = 08001
unavailable database
Are there any common pitfalls I might be hitting? I've also tried the commands above both with and without the firebird service running. Also is there a detailed reference on the SQLSTATE codes?
As already mentioned in my comments the problem is caused by running the Firebird server as an application. Firebird has its password database (security2.fdb) in C:\Program Files\Firebird\Firebird_2_5. As this database is (almost, but not entirely) a normal Firebird database, the server requires write access to this database (for the transactions, etc).
By default (with UAC) users do not have write access to the password database, so this requires elevation to Administrator. So access to Firebird requires that you either run the application as a service with sufficient rights (eg as done by the default installer), or when running the server as application to run it 'As administrator'. Another option is to not install it in Program Files.
This BTW applies double when accessing the example employee database as this database file is also located in the Program Files folder.
This is for macOS/OSX (mine is 10.15) firebird ver 2.5 users.
The installation process here does not ask for a sysdba password. Which means: the security database 'security2.fdb' does not exist after a new installation.
This seems to be intentionally for security reasons since > ver 2.5.
To create one, we use the demo database as a helper:
open sql as su: >sudo isql (we don't have user rights on dir)
Connect to a existing db:
sql>connect
"/Library/Frameworks/Firebird.framework/Resources/examples/empbuild/employee.fdb
" user 'SYSDBA' password 'masterkey';
Now we created the missing file 'security2.fdb' in the folder:
"/Library/Frameworks/Firebird.framework/Resources/English.lproj/var/"
(jro)