how to create postgresql server on rhel7 linux vm in gcp - postgresql

I am actually planning to have a PostgreSQL instance on rhel7 linux vm running on google cloud platform,
Can you let me know the process for the same.
One more query is it ok to install postgresql on vm rather than going for a cloud sql instance on gcp?
Thanks,
Moin.

Just go to the PostgresSQL official downloads page for redhat and install the software.
You can get the RPMs there if you need to do an air-gapped installation.
You'll need to configure postgres later. See Posgres docs Chapter 18. Server Setup and Operation.

Related

Installing Pg Admin 4 on nginx unbutu 20.04

I'm having trouble finding any documentation of how to install and configure pgadmin4 to work with nginx on ubuntu 20.04, I only managed to find tutorials for apache.
I'm very new to nginx, can you guys help with a link to some documentation or tutorial on how to do this?
It sounds a bit like you are attempting to connect to your database on a production server, from within that server... With PgAdmin this is not needed. You can simply install locally on your system like this:
https://linuxhint.com/install-pgadmin4-ubuntu
And then just remote into the server like so:
https://www.pgadmin.org/docs/pgadmin4/development/connecting.html#connecting-to-a-server
I would argue that it is also a smarter approach to house the pgadmin connection locally as you do not need a visual approach to your databases in the production instance in most cases.

Can I install DB2 Connect to Bluemix to conect to Mainframe Z/OS?

Is DB2 Connect installation and license installation during build/deploy a good way to ensure mainframe connectivity to IBM Blue zone? My PHP Cloud Foundry app is on w3ibm.bluemix.
If yes shall I update the forked PHP Buildpack on GIT, by adding DB2 Connect to it?
Or shall I use some sort of docker image for this?
Any other idea?
I found that there is no need to install a DB2 Connect. I could not install it anyway on Bluemix. There might be services for this, but at the end I had to use DB2 PHP extension of the PHP build-pack and after deploy I copied the license file to the license folder from PHP code. Details here.

How to get DB2 LUW trial version for Windows or where to practice online?

First I downloaded the VMware and Redhat 6.5 on my 64bit Windows machine, created virtual machine, set the network and host as needed.
Downloaded the db2 LUW 11.1 AMD64 for Linux, winscp the product to the redhat, unzip and tar -vxf the product.
But when I am checking the ./db2_prereqchk its fails, conveying that certan packages are not there to install the product.
Where can I download a trial version for Windows? Is anyone aware of an emulator online or cloud offer where DB2 can be practiced?
You can download trial versions of DB2 LUW at the IBM website. For testing DB2 online I would recommend to check out dashDB on IBM Bluemix. There are also Docker images available for DB2 Express-C, the free edition of DB2. So overall plenty of options.

PostgreSQL default cluster?

I am running PostgreSQL 9.3 on Ubuntu 14.04 LTS. I didn't remember creating a cluster but directly went to create database.
Using pg_lsclusters, I found that I have a cluster as following with my db
Ver Cluster Port Status Owner Data directory
9.3 main 5432 online postgres /var/lib/postgresql/9.3/main
I was reading the PostgreSQL documentation but couldn't find relevant info.
I have the following questions:
Does PostgreSQL automatically create default cluster? And if so, is it good practice to use it?
Does PostgreSQL also automatically start the default cluster? I never started but its status is online and I can see it in system-monitor.
Thanks for any clarifications!
You're really asking about "PostgreSQL on Debian or Ubuntu", as it's the packaging and wrapper utilities doing this, not PostgreSQL its self.
See the PostgreSQL help on the Ubuntu community wiki for information. This mostly applies to Debian too, since it uses the same style of packaging for PostgreSQL.
To your specific questions:
Does PostgreSQL automatically create default cluster? And if so, is it good practice to use it?
Strictly pg_wrapper, the Ubuntu/Debian tool that manages PostgreSQL installs, creates it. Yes, it's fine to use it and there's generally not much reason not to.
Does PostgreSQL also automatically start the default cluster?
This depends on your operating system and its PostgreSQL packages, not on PostgreSQL its self. For information on how to configure what starts on Ubuntu, see Boot Howto - Ubuntu Community Wiki.

Dreamfactory: IBM DB2 connection

I downloaded what I believe to be the latest copy of Dreamfactory for Windows from Bitnami bitnami-dreamfactory-1.8.2-0-windows-installer.exe. I would like to connect to an IBM DB2 remote database. In using the Admin Console I don't see an option in the SQL Vendor dropdown for IBM DB2. Did I miss a configuration step? If not, what do I need to do to configure IBM DB2 as a Remote SQL DB? I can't seem to find a reference in the documentation for how to do this.
Update
I just installed the Bitnami Ubuntu vmware appliance and it has a DB2 dropdown. Therefore, there is a flaw in the Windows 1.8.2 self installer.
With a quick test of the windows installer, we did confirm the DB2 value is in the dropdown menu. Please try to refresh the window frame or clear browser cache to see if that helps.
Also, the Bitnami package released for 1.8.2 currently doesn't have the db2 driver installed by default. We are working on getting another build that has better default setup. In the mean time, this link has the Windows instructions. I will try to get a more detailed instruction set for Windows.