I'm new at this and I got a job where I need to connect to a PostgreSQL database, they told me to use this command:
psql -h remote_ip -p 54320 -U user -d database
I'm trying to connect with Navicat but this error occurs:
psql: FATAL: no pg_hba.conf entry for host "18.221.220.67", user "pse", database "pse", SSL off
It sounds like you are not the DBA of this database, and whoever is the DBA forgot to configure the database to let you in. You will have to have them fix it for you. Maybe you are supposed to be coming in through a VPN which will change your apparent IP address (although in that case I would think you wouldn't even be able to contact the database without the VPN; as it would be blocked at the firewall). Or perhaps you are only allowed to connect over SSL, but navicat is not trying to do that for some reason.
Related
I am trying to install Informatica Server.
During domain configuration repository database information I get database connectivity error.
Error: Test Connection Failed. Correct the database connection information and test the connection again.
But when I connect using same details through Oracle SQL Developer to this database, it works fine.
I am using service name and port number field from the TNS File, still getting this error.
I think you can check tomcat log, catalina.out logs. This will help on finding out real issue.
Go to command prompt and type ping localhost and see if its responding anything. May be you can use IP and check host file.
I'm trying to connect to a Oracle database on a development server with my local Oracle SQL developer (17.4.1.054).
When I try to connect I get the following error: ORA-0107: invalid username/password; logon denied
Using the very same credentials on the sqlplus (after connection via ssh to the server) works perfectly fine.
The credentials are like: ORA/ora.
After thinking about it, I've other connections on same database with credentials like ora123/ora123 and ORA123/ORA123 that are working fine.
Is there any issue with case sensitive passwords in SQL developer?
Is there any way to overcome this issue?
Trying changing database parameter SEC_CASE_SENSITIVE_LOGON to false and they try login.
I think the clue is
after connection via ssh to the server
Sounds to me like the problem is the network connection from your local machine to the database server, and not SQL Developer or SQL*Plus.
You can verify that by installing an instant client with the SQL*Plus package on your local machine.
I am currently accessing/connecting to a remote database through VPN and I have no issues querying on the remote database. I want to create a db-link to connect my local db to the remote database in order to join certain tables. Sadly, I am getting error ORA-12545.
This is my db-link code:
CREATE DATABASE LINK DB_LINK
CONNECT TO REMOTE_USER_NAME
IDENTIFIED BY PASSWORD
USING '(DESCRIPTION=(CONNECT_DATA=(SID=test_SID))(ADDRESS=(PROTOCOL=TCP)(HOST=HOST_NAME.com)(PORT=1521)))'
I don't have an Oracle client installed on my machine so I am using the full description. There are no issue accessing both our db and the remote db without an Oracle client installed so I assume this is not the problem.
My ping to the remote address returned TTL expired in transit even though the VPN is connected. This seems a bit weird but I am not entirely sure if this is the problem.
I must be missing a crucial step. Any advice is appreciated.
I am using a mac and I typically use Sequel Pro to interact with sql databases. Usually I use mysql, but I understand redshift uses Postgres.
When I try to connect to my Redshift db, should I use the IP, or the "endpoint"?
Also when I try to connect, I get this error from Sequel Pro.
Unable to connect to host {{my_db_host}}, or the request timed out.
Be sure that the address is correct and that you have the necessary privileges, or try increasing the connection timeout (currently 10 seconds).
MySQL said: Can't connect to MySQL server on '{{my_db_host}}' (4)
Can anyone offer advice on how to get connected?
Thanks
You should be using the Redshift Endpoint, if you have your security group settings configured correctly. You might want to set your group to 0.0.0.0/0 during testing(this opens up your cluster to the entire internet, and you can lock it down later once it works)
You also need to make sure you have the correct ODBC/JDBC driver. I recommend either Netbeans(comes with connection driver), SQL Workbench, or Aginity Redshift. Default port is 5439.
I thikn you are using the wrong driver(a mysql driver not psql driver), becaues your error says MySQL server.
http://docs.aws.amazon.com/redshift/latest/gsg/rs-gsg-prereq.html
For mac, I believe you could also try and use the a terminal PSQL client. Something like...
psql -H endpoint.aws.com -p 5439 -U username --password
I use the command prompt to connect my Oracle database. All functions work, but when I try to use my Navicat to connect to the database, it shows the following error message:
ORA-12514:TNS:listener does not currently know of service requested in
connect descriptor.
My general settings for Navicat are:
host type:basic
ip address:127.0.0.1(also try my ip, but still have same problem)
port:1521
service name:orcl
By "all functions work", I assume you mean you are able to connect to the database and query.
Can you show us the connect that you use.
If you are using sqlplus in this fashion,
sqlplus userid/password#database1
it means your current client is pointing to the correct tnsnames.ora. May be navicat does not point to the correct tnsnames.ora file? The error indicates that you want to connect to, say database1, and Oracle is not able to map "database1" to the correct server, host and port number.
Have you gone through the connectiond details here?
http://www.navicat.com/en/products/navicat_oracle/oracle_detail_win.html
What is your operating system version and oracle version?