From 10a84ebdfdb81183989775a3beb993d3b83c1248 Mon Sep 17 00:00:00 2001 From: Josh Heyer <63653723+josh-heyer@users.noreply.github.com> Date: Fri, 22 Oct 2021 00:12:20 +0000 Subject: [PATCH 1/5] noindex generated PDFs --- gatsby-config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/gatsby-config.js b/gatsby-config.js index 84a4498d479..e075fa6b227 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -160,6 +160,7 @@ module.exports = { options: { headers: { "/*": isProduction ? [] : ["X-Robots-Tag: noindex"], + "/static/*.pdf": ["X-Robots-Tag: noindex"], }, }, }, From 51eecfcd7dcad744c1047bdbecde3fb500313039 Mon Sep 17 00:00:00 2001 From: Josh Heyer Date: Tue, 9 Nov 2021 04:54:19 +0000 Subject: [PATCH 2/5] Use www. prefix to minimize 301 redirects --- gatsby-config.js | 6 +++--- src/components/index-sub-nav.js | 2 +- src/components/side-navigation.js | 4 +++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/gatsby-config.js b/gatsby-config.js index e075fa6b227..191886bf96d 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -141,9 +141,9 @@ module.exports = { pathPrefix: "/docs", siteMetadata: { title: "EDB Docs", - baseUrl: "https://enterprisedb.com/docs", - imageUrl: "https://enterprisedb.com/docs/images/social.jpg", - siteUrl: "https://enterprisedb.com/docs", + baseUrl: "https://www.enterprisedb.com/docs", + imageUrl: "https://www.enterprisedb.com/docs/images/social.jpg", + siteUrl: "https://www.enterprisedb.com/docs", algoliaIndex: algoliaIndex, isDevelopment: !isBuild, cacheBuster: 2, // for busting gh actions cache if needed diff --git a/src/components/index-sub-nav.js b/src/components/index-sub-nav.js index c33bb6538f3..40d85aadb55 100644 --- a/src/components/index-sub-nav.js +++ b/src/components/index-sub-nav.js @@ -16,7 +16,7 @@ const IndexSubNav = () => ( Knowledge Base - + Contact Us Have feedback? diff --git a/src/components/side-navigation.js b/src/components/side-navigation.js index 92d062a16d7..c1427670a47 100644 --- a/src/components/side-navigation.js +++ b/src/components/side-navigation.js @@ -25,7 +25,9 @@ const SideNavigationFooter = () => ( Knowledge Base - Contact Us + + Contact Us + Have feedback? From 2fa1cf5cadcfec63296368a45f7cfc2b0347c643 Mon Sep 17 00:00:00 2001 From: Josh Heyer Date: Tue, 9 Nov 2021 21:55:40 +0000 Subject: [PATCH 3/5] Cleanup: - Clarity in the intro - Qualify "Oracle" in titles" - "Call to action" lead into the video - Responsive styling for the video - Link to migration topic in closing --- .../06_demonstration_oracle_compatibility.mdx | 26 +++++++++++++------ 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/product_docs/docs/biganimal/release/using_cluster/06_demonstration_oracle_compatibility.mdx b/product_docs/docs/biganimal/release/using_cluster/06_demonstration_oracle_compatibility.mdx index 1ccd4d41d35..0c5f36f862e 100644 --- a/product_docs/docs/biganimal/release/using_cluster/06_demonstration_oracle_compatibility.mdx +++ b/product_docs/docs/biganimal/release/using_cluster/06_demonstration_oracle_compatibility.mdx @@ -1,14 +1,21 @@ --- -title: "Demonstration of Oracle compatible functions and syntax" -navTitle: "Demo: Oracle compatibility" +title: "Demonstration of Oracle SQL compatible functions and syntax" +navTitle: "Demo: Oracle SQL compatibility" --- -
- -
Video recording of this demonstration
-
-[EDB Postgres Advanced Server's Oracle compatible syntax and supporting packages](https://www.enterprisedb.com/docs/epas/latest/epas_compat_ora_dev_guide/) are available in BigAnimal. If you'd like to see them in action, there's a test cluster available, populated with the [Chinook sample database](https://github.com/lerocha/chinook-database): feel free to connect and try out a few queries! This topic presents a couple to get you started... +BigAnimal lets you run Oracle SQL queries in the cloud via [EDB Postgres Advanced Server](https://www.enterprisedb.com/docs/epas/latest/epas_compat_ora_dev_guide/). This topic demonstrates two Oracle SQL-syntax queries running unmodified on a BigAnimal test cluster, populated with the [Chinook sample database](https://github.com/lerocha/chinook-database). + +Watch the video, or load up psql and follow along below! +
+ +
+ +## Connecting to the demo cluster with psql You can use any recent version of psql to connect to EDB Postgres Advanced Server. If you choose to use the version that ships with Advanced Server, you'll get a few nice SQL\*Plus compatibility features (with more availability in [EDB\*Plus](https://www.enterprisedb.com/docs/epas/latest/edb_plus/)). The queries and commands that we'll examine here will work the same in either version of psql. For convenience, these examples use the version of psql available in Azure's Cloud Shell; you can launch this directly from the Azure portal, or on your desktop using Windows Terminal: @@ -227,5 +234,8 @@ In both of the examples shown here, you probably would not use the functions and better, more familiar or at least more widely-available equivalents provided natively by PostgreSQL (and many other databases). But by supporting them, EDB Advanced Server gives you the ability to reuse existing logic with minimal modification, allowing you to focus your time and expertise on solving new problems. -For more information on Oracle compatibility features in EDB Postgres Advanced Server, refer to the [EDB Advanced Server documentation](https://www.enterprisedb.com/docs/epas/latest/). +### Next steps + +- Read more on Oracle compatibility features in EDB Postgres Advanced Server: [EDB Advanced Server documentation](https://www.enterprisedb.com/docs/epas/latest/). +- Learn about [migrating existing Oracle databases to BigAnimal](/biganimal/latest/migration/#migrating-from-oracle) From 00f2e4796859af092fabd088b6bd977f6c635b96 Mon Sep 17 00:00:00 2001 From: Josh Heyer Date: Tue, 9 Nov 2021 22:07:15 +0000 Subject: [PATCH 4/5] typo --- .../06_demonstration_oracle_compatibility.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/product_docs/docs/biganimal/release/using_cluster/06_demonstration_oracle_compatibility.mdx b/product_docs/docs/biganimal/release/using_cluster/06_demonstration_oracle_compatibility.mdx index 0c5f36f862e..14286ccc75b 100644 --- a/product_docs/docs/biganimal/release/using_cluster/06_demonstration_oracle_compatibility.mdx +++ b/product_docs/docs/biganimal/release/using_cluster/06_demonstration_oracle_compatibility.mdx @@ -111,14 +111,14 @@ __OUTPUT__ ... ``` -This table has a "reportsto" field - that means this is a heirarchical reporting structure, with some employees reporting to +This table has a "reportsto" field - that means this is a hierarchical reporting structure, with some employees reporting to other employees who may in turn report to still *other* employees. -## Demo #1: exposing an organization heirarchy with `CONNECT BY` +## Demo #1: exposing an organization hierarchy with `CONNECT BY` -Let's construct a [heirarchical query](https://www.enterprisedb.com/docs/epas/latest/epas_compat_ora_dev_guide/03_advanced_concepts/05_hierarchical_queries/) to expose this [chain of command](https://en.wikipedia.org/wiki/Chain_of_command). +Let's construct a [hierarchical query](https://www.enterprisedb.com/docs/epas/latest/epas_compat_ora_dev_guide/03_advanced_concepts/05_hierarchical_queries/) to expose this [chain of command](https://en.wikipedia.org/wiki/Chain_of_command). -Modern SQL would use a recursive CTE for this, as those are widely supported. But Oracle has, for decades, supported an alternative mechanism for querying heirarchy in the form of `CONNECT BY` - let's put that into action: +Modern SQL would use a recursive CTE for this, as those are widely supported. But Oracle has, for decades, supported an alternative mechanism for querying hierarchy in the form of `CONNECT BY` - let's put that into action: ```sql SELECT firstname, lastname, ( From 012e554fb0b8f492cdc1915e95a73eecae1fdf8a Mon Sep 17 00:00:00 2001 From: Jon Ericson Date: Tue, 9 Nov 2021 15:30:17 -0800 Subject: [PATCH 5/5] Fix codeblock problem. --- .../using_cluster/06_demonstration_oracle_compatibility.mdx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/product_docs/docs/biganimal/release/using_cluster/06_demonstration_oracle_compatibility.mdx b/product_docs/docs/biganimal/release/using_cluster/06_demonstration_oracle_compatibility.mdx index 14286ccc75b..af0baa9f8a3 100644 --- a/product_docs/docs/biganimal/release/using_cluster/06_demonstration_oracle_compatibility.mdx +++ b/product_docs/docs/biganimal/release/using_cluster/06_demonstration_oracle_compatibility.mdx @@ -31,7 +31,8 @@ $ The connection string for the demo Advanced Server cluster looks like this: ``` -postgres://demo:password@p-c64p9a3h5vfavr7tfrjg.qsbilba3hlgp1vqr.biganimal.io:5432/chinook?sslmode=require``` +postgres://demo:password@p-c64p9a3h5vfavr7tfrjg.qsbilba3hlgp1vqr.biganimal.io:5432/chinook?sslmode=require +``` In case you're unfamiliar with [PostgreSQL connection URIs](https://www.postgresql.org/docs/current/libpq-connect.html#id-1.7.3.8.3.6), let's break that down: