Fail to connect to postgis from arcgis pro - postgis

I believe I have the postgis (install, extension, etc) set up.
But I cannot connect to postgres from arcgis pro.
I have tried to connect to my geodatabase from Postgis bundle, and it connected and successfully added in the shapefile:

Under instance, you must specify the server (localhost). The port is the default and you can omit it.
... and then read this post as it won't work with DB names not being lower-case

Related

Cannot connect to SAP HANA Express DB using eclipse studio

I am new to SAP HANA database. I have successfully hosted the SAP HANA express database on cloud server. I have created a database and I am able to query it for the CLI.
However I have trouble connecting it from eclipse have spent two days on the same.
I am following https://developers.sap.com/india/tutorials/hxe-howto-eclipse.html tutorial.
Please Note :
I am able to connect to server using RDP and putty so the IP address is correct
I have started the database using command:
hdbsql -i 90 -d HXE -u SYSTEM -p SAPhxe123
why is eclipse taking port 39015 by default in last screenshot? is this the issue or can we change this.
Any help here would be much appreciated!
Remove the port and just keep HXE for the tenant.
39015 is the right one for the first tenant in an AWS or Azure VM (39017 is for Docker).
Try connecting to the system database first. If that works but the tenant doesn't, check this: https://developers.sap.com/tutorials/hxe-gcp-eclipse-tenant-connect.html
If that doesn't work: https://blogs.sap.com/2018/02/24/troubleshooting-connection-problems-for-hana-express/
Unless you explicitly closed port 22, ping should respond.
Also a reminder that HANA studio is part of a set of deprecated tools so if you are looking to learn native development, I would recommend going for XS advanced.
Could you please refer to following document: https://developers.sap.com/tutorials/mlb-hxe-tools-sql-eclipse.html
There the tenant database connection is created as follows
The host server (IP) is maintained in hosts file
Additionally the tenant db is only provided as HXE without port number
If you running the HANA server as a container.
Go in to the container "docker exec -it bash
HDB info
What is the port that you can connect to (If the Port is 39041 for example)
Rerun your container mapping your docker run command with -p:. That is (-p 3901:39015).
Essentially what is broken is that the port Eclipse HANA studio is trying to connect to is not mapped to the HANA port that is listening on.
You have to map the PORT that HANA is listening to Host PORT 39015.
If this is a cloud env you have to do the appropriate port forwarding.
Tested this and it works now.
For tenant database, I think it is enough to use HXE
Did you try to change the host name by adding the port information after IP address?
When your HXE instance was created on AWS, did you assigned it the default security group or did create one based on "Seller settings"?
This is really important because without this custom security group you won't be able to access your instance from the outside world.
Please refer to the following tutorial for more details: https://developers.sap.com/canada/tutorials/hxe-aws-setup.html

How to connect dataminder to other databases then provided by default sql connection?

How do you connect to other databases then the default provided by dataminder?
Do you need to implement your own connection plugin?
Since the default DataMinder connection uses standard JDBC url:s it can connect to any database that supports JDBC e.g. Oracle or IBM DB2.
But you need to install the correct JDBC driver as a JAVA JAR file in the plugin directory for "DM Data Plugins" located
in
DataMinder/Server/Internal/DMPlugins/DMPluginData/lib
You need to restart the application to reload the new JAR files.

JDBC connect to MSSQL named instance with non-standard port

Hello guys I'm working on a project and I'm trying to connect JIRA to a MSSQL aliased or named instance. Checkout here if you don't know what i'm talking about.
Under this setup, for example, when you want to connect to a specific DB server, let's say using SQL Studio, you have to use "servername,port" as in the mssql server alias configuration, that reflects the DB instance.
What would be the connection string to use under this circunstances?
I've read about issues with this kind of setup as I'm using the JDBC driver (JIRA uses it). You can try with SQuirreL for testing this, as it uses the same driver.
Cheers!
For SQL Server JDBC you either connect to the named instance or to a specific port. If you specify both named instance and port, it will ignore the instance name.
If you want to connect to a named instance which is not running on the default port, you will need to have the SQL Server Browser service running on the server, this allows the JDBC driver to lookup the right port based on the instance name. I believe this service by default is disabled.

Wrong character encoding from SQL Server to Rails 3 app on Linux via freetds

I'm developing an application on MacOS in Ruby 3.0 using SQL Server 2008 R2 as the database. I'm connecting through freetds and tiny_tds.
When I save a data through a scaffold using extended characters, like ÞþÆæÓó it works fine, the letters are correct when looking at the data in SQL Server Management Studio and when I read the data back into the Rails UI it displays correct.
When I deploy the application on a Linux machine which is also using the freetds and tiny_tds to connect to the same database I get the characters garbled in the UI. When I save the data via the Linux server the characters are displaying correctly in the browser but when looking at the data in SSMS the characters have been encoded and are unreadable (I enter ÞÞðð) and get this in SSMS:
ÞÞðð
This I get in the browser from the Linux server for Suðurnes written into the db from the Mac:
Su�urnes
I have set this line in the database.yml:
encoding: utf8
It didn't change anything. I also set this line in the freetds.conf file:
client charset = UTF-8
The SQL database has Icelandic_CI_AS as the CODEPAGE but I'm pretty sure that is not the fault because it is working correctly from the Mac machine.
I have tested this both on Passenger apache and WEBrick so I don't think it is the apache that is causing this.
So is there any setting on the Linux I have to change to let it behave in similar way as the mac?
Basicly there is something along the way between the web server and the database which is converting the values back and forth.
EDIT:
*When I use the tsql command line tool to query the db I get the correct encoding of texts. So as I understand this this is the path:
Web Client > Apache > Rails app > Tiny_tds > Freetds > SQL Server
So the problem must be on the Apache site or in the rails app itself. It doesn't matter actually if I use Apache or WebBrick so I'm confused on what the issue is. Any ideas?*
Regards,
Johann
The problem was that the file freetds.conf had encoding specified which was causing the issue. I also had to make sure that the file database.yml had no encoding specified.

How to access a interbase/firebird db via network with two or more computers

I made a program that accesses a firebird DB in network environment.
I access the DB via Network in two different points of the network normally.
But if I open the two programs simultaneously this exception is thrown on the second program, which tries to connect to DB:
"Your user name and password are not definied"
How to access the firebird DB with two connections simultaneously?
This could be caused by using the embedded versionof firebird, which only allows 1 connection. Look at the filename you installed.
If that is the problem then uninstall that and install the clasic or superserver version instead
MAke sure that the Firebird database is hosted on a computer that is running the Firebird server.
ie Install Firebird Server on the computer that has the database.
Then from your client PCs where your app is installed make sure that you are accessing the database by connecting to the Firebird server. This means that whichever component your Delphi app is using to connect to the database needs to have the 'server' property set to the hostname of the database server machine.
Once this is done your apps will be making requests to the Firebird database server which knows how to handle the connections and process the SQL requests and return results.
Most db connection components should allow you to precede the database path with an ip address or hostname like this for example
MyConnection.Database := '127.0.0.1:C:\Databases\testdb.fdb';
Obviously make sure both your programs point to the same ip address or hostname and make sure the login credentials they use are defined on that firebird server.
All firebird server installations (except embedded) can handle multiple connections by default (even using the same user), you shouldn't have to worry about that. Just make sure the client programs are using inputs (ie. db network path and firebird server login credentials) that apply on the server they are trying to connect to. You could just use SYSDBA until you get the connection under control, then start thinking about creating a unique login for your client apps to use.
In the TIBDatabase component, you have to fill the Params property with:
user_name=sysdba
password=masterkey
The Firebird installation in every computer in the LAN has to be set to this default parameters. The computer with problem must have a different access credential.
You have to uninstall Firebird and them reinstall the latest version using the service and super server options, and mark the "use gdi32.dll for retro..."
Tell me if that worked out for you.

Resources