{"id":846,"date":"2016-03-09T08:00:08","date_gmt":"2016-03-09T15:00:08","guid":{"rendered":"http:\/\/www.sqldbpros.com\/?p=846"},"modified":"2016-03-08T17:35:41","modified_gmt":"2016-03-09T00:35:41","slug":"greenplum-and-dbfit","status":"publish","type":"post","link":"http:\/\/sqldbpros.com\/wordpress\/2016\/03\/greenplum-and-dbfit\/","title":{"rendered":"GreenPlum and DBFit"},"content":{"rendered":"<p>Just a quick little stub of a post to track progress using the <a href=\"http:\/\/dbfit.github.io\/dbfit\/index.html\" target=\"_blank\">DBFit<\/a>\u00a0Test Driven Database Development Tool with\u00a0our GreenPlum installation. DBFit seemed like a great option since it will theoretically support both GreenPlum and SQL Server.<\/p>\n<p>&nbsp;<\/p>\n<p>I ran through the <a href=\"http:\/\/dbfit.github.io\/dbfit\/docs\/getting-started.html\" target=\"_blank\">getting started<\/a> documentation on the DBFit site fairly quickly and had the initial test page open in my browser in just a few minutes.<\/p>\n<p>Upon clicking the EDIT button I had to use the DBFit syntax to connect to my database and then run an initial query.\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-847\" src=\"http:\/\/www.sqldbpros.com\/wordpress\/wp-content\/uploads\/2016\/03\/DBFit-GreenPlum-Edit.png\" alt=\"DBFit GreenPlum Edit\" width=\"522\" height=\"331\" srcset=\"http:\/\/sqldbpros.com\/wordpress\/wp-content\/uploads\/2016\/03\/DBFit-GreenPlum-Edit.png 522w, http:\/\/sqldbpros.com\/wordpress\/wp-content\/uploads\/2016\/03\/DBFit-GreenPlum-Edit-300x190.png 300w\" sizes=\"auto, (max-width: 522px) 100vw, 522px\" \/><\/p>\n<p>When the edit window opens enter the following info (all included in the Getting Started documentation, just not 100% clear).<\/p>\n<p>&nbsp;<\/p>\n<pre>!path lib\/*.jar\r\n!|dbfit.PostgresTest|\r\n\r\n!|Connect|dcgpm|psteffek|mysecretpassword123|mydbname|\r\n\r\n!|Query| select 'test' as x|\r\n|x|\r\n|test|<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-848\" src=\"http:\/\/www.sqldbpros.com\/wordpress\/wp-content\/uploads\/2016\/03\/DBFit-Postgres-Connection-and-Query.png\" alt=\"DBFit Postgres Connection and Query\" width=\"520\" height=\"422\" srcset=\"http:\/\/sqldbpros.com\/wordpress\/wp-content\/uploads\/2016\/03\/DBFit-Postgres-Connection-and-Query.png 520w, http:\/\/sqldbpros.com\/wordpress\/wp-content\/uploads\/2016\/03\/DBFit-Postgres-Connection-and-Query-300x243.png 300w\" sizes=\"auto, (max-width: 520px) 100vw, 520px\" \/><\/p>\n<p>Hit the \"Save\" button at the bottom the page, and then hit the TEST button at the top of the page.<\/p>\n<p>If you see Green you're good. If you see orange and yellow, well, not good.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-849\" src=\"http:\/\/www.sqldbpros.com\/wordpress\/wp-content\/uploads\/2016\/03\/DBFit-GreenPlum-Succesful-Test.png\" alt=\"DBFit GreenPlum Succesful Test\" width=\"982\" height=\"600\" srcset=\"http:\/\/sqldbpros.com\/wordpress\/wp-content\/uploads\/2016\/03\/DBFit-GreenPlum-Succesful-Test.png 982w, http:\/\/sqldbpros.com\/wordpress\/wp-content\/uploads\/2016\/03\/DBFit-GreenPlum-Succesful-Test-300x183.png 300w, http:\/\/sqldbpros.com\/wordpress\/wp-content\/uploads\/2016\/03\/DBFit-GreenPlum-Succesful-Test-768x469.png 768w\" sizes=\"auto, (max-width: 982px) 100vw, 982px\" \/><\/p>\n<p>If you have \"exceptions\" scrutinize the microscopic text returned in the yellow box. \u00a0Here are a few of the easy ones:<\/p>\n<p style=\"padding-left: 30px;\">java.net.UnknownHostException: dcgpm1 at java.net.AbstractPlainSocketImpl.connect(Unknown Source)<\/p>\n<p>In this case I tried to connect to a server named dcgpm1 and that server does not exist. (Typo in the name perhaps? A quick ping test is probably worth a shot if you're certain you have the name right).<\/p>\n<p>&nbsp;<\/p>\n<p style=\"padding-left: 30px;\">org.postgresql.util.PSQLException: FATAL: database \"corpbi\" does not exist<\/p>\n<p>Pretty straight foward here. The database you named does not exist on the server. (You did succesfully connect to the server though, so you know your server name, username, and password all went through.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just a quick little stub of a post to track progress using the DBFit\u00a0Test Driven Database Development Tool with\u00a0our GreenPlum installation. DBFit seemed like a great option since it will theoretically support both GreenPlum and SQL Server. &nbsp; I ran through the getting started documentation on the DBFit site fairly quickly and had the initial [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[184,147,150,183],"tags":[186,180,181,185,187,188],"class_list":["post-846","post","type-post","status-publish","format-standard","hentry","category-dbfit","category-greenplum","category-postgresql","category-test-driven-development-tdd","tag-dbfit","tag-greenplum","tag-postgresql","tag-tdd","tag-test-driven-development","tag-unit-test"],"_links":{"self":[{"href":"http:\/\/sqldbpros.com\/wordpress\/wp-json\/wp\/v2\/posts\/846","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/sqldbpros.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/sqldbpros.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/sqldbpros.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/sqldbpros.com\/wordpress\/wp-json\/wp\/v2\/comments?post=846"}],"version-history":[{"count":2,"href":"http:\/\/sqldbpros.com\/wordpress\/wp-json\/wp\/v2\/posts\/846\/revisions"}],"predecessor-version":[{"id":851,"href":"http:\/\/sqldbpros.com\/wordpress\/wp-json\/wp\/v2\/posts\/846\/revisions\/851"}],"wp:attachment":[{"href":"http:\/\/sqldbpros.com\/wordpress\/wp-json\/wp\/v2\/media?parent=846"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/sqldbpros.com\/wordpress\/wp-json\/wp\/v2\/categories?post=846"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/sqldbpros.com\/wordpress\/wp-json\/wp\/v2\/tags?post=846"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}