Skip to content

Commit 34e4df6

Browse files
authored
Merge pull request #2025 from EnterpriseDB/release/2021-11-09
Release: 2021-11-09
2 parents bea5468 + aeb48ca commit 34e4df6

File tree

4 files changed

+32
-18
lines changed

4 files changed

+32
-18
lines changed

gatsby-config.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ module.exports = {
141141
pathPrefix: "/docs",
142142
siteMetadata: {
143143
title: "EDB Docs",
144-
baseUrl: "https://enterprisedb.com/docs",
145-
imageUrl: "https://enterprisedb.com/docs/images/social.jpg",
146-
siteUrl: "https://enterprisedb.com/docs",
144+
baseUrl: "https://www.enterprisedb.com/docs",
145+
imageUrl: "https://www.enterprisedb.com/docs/images/social.jpg",
146+
siteUrl: "https://www.enterprisedb.com/docs",
147147
algoliaIndex: algoliaIndex,
148148
isDevelopment: !isBuild,
149149
cacheBuster: 2, // for busting gh actions cache if needed
@@ -160,6 +160,7 @@ module.exports = {
160160
options: {
161161
headers: {
162162
"/*": isProduction ? [] : ["X-Robots-Tag: noindex"],
163+
"/static/*.pdf": ["X-Robots-Tag: noindex"],
163164
},
164165
},
165166
},

product_docs/docs/biganimal/release/using_cluster/06_demonstration_oracle_compatibility.mdx

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
11
---
2-
title: "Demonstration of Oracle compatible functions and syntax"
3-
navTitle: "Demo: Oracle compatibility"
2+
title: "Demonstration of Oracle SQL compatible functions and syntax"
3+
navTitle: "Demo: Oracle SQL compatibility"
44
---
5-
<figure class="float-right ml-1 mb-1">
6-
<iframe width="360" height="202" src="https://www.youtube.com/embed/lV4QQ53kgew" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
7-
<figcaption class="text-center font-italic">Video recording of this demonstration</figcaption>
8-
</figure>
95

10-
[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...
6+
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).
7+
8+
Watch the video, or load up psql and follow along below!
9+
10+
<figure class="embed-responsive embed-responsive-16by9">
11+
<iframe src="https://www.youtube.com/embed/lV4QQ53kgew"
12+
title="Video recording of this demonstration"
13+
class="embed-responsive-item"
14+
frameborder="0"
15+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
16+
</figure>
1117

18+
## Connecting to the demo cluster with psql
1219

1320
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:
1421

@@ -24,7 +31,8 @@ $
2431
The connection string for the demo Advanced Server cluster looks like this:
2532

2633
```
27-
postgres://demo:[email protected]:5432/chinook?sslmode=require```
34+
postgres://demo:[email protected]:5432/chinook?sslmode=require
35+
```
2836

2937
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:
3038

@@ -104,14 +112,14 @@ __OUTPUT__
104112
...
105113
```
106114

107-
This table has a "reportsto" field - that means this is a heirarchical reporting structure, with some employees reporting to
115+
This table has a "reportsto" field - that means this is a hierarchical reporting structure, with some employees reporting to
108116
other employees who may in turn report to still *other* employees.
109117

110-
## Demo #1: exposing an organization heirarchy with `CONNECT BY`
118+
## Demo #1: exposing an organization hierarchy with `CONNECT BY`
111119

112-
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).
120+
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).
113121

114-
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:
122+
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:
115123

116124
```sql
117125
SELECT firstname, lastname, (
@@ -227,5 +235,8 @@ In both of the examples shown here, you probably would not use the functions and
227235
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
228236
you to focus your time and expertise on solving new problems.
229237

230-
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/).
238+
### Next steps
239+
240+
- Read more on Oracle compatibility features in EDB Postgres Advanced Server: [EDB Advanced Server documentation](https://www.enterprisedb.com/docs/epas/latest/).
231241

242+
- Learn about [migrating existing Oracle databases to BigAnimal](/biganimal/latest/migration/#migrating-from-oracle)

src/components/index-sub-nav.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const IndexSubNav = () => (
1616
<IndexSubLink url="https://support.enterprisedb.com/support/s/">
1717
Knowledge Base
1818
</IndexSubLink>
19-
<IndexSubLink url="https://enterprisedb.com/contact">
19+
<IndexSubLink url="https://www.enterprisedb.com/contact">
2020
Contact Us
2121
</IndexSubLink>
2222
<IndexSubLink url="/community/contributing/">Have feedback?</IndexSubLink>

src/components/side-navigation.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ const SideNavigationFooter = () => (
2525
<FooterItem url="https://support.enterprisedb.com/support/s/">
2626
Knowledge Base
2727
</FooterItem>
28-
<FooterItem url="https://enterprisedb.com/contact">Contact Us</FooterItem>
28+
<FooterItem url="https://www.enterprisedb.com/contact">
29+
Contact Us
30+
</FooterItem>
2931
<FooterItem url="/community/contributing/">Have feedback?</FooterItem>
3032
<DarkModeToggle className="mt-1" />
3133
</ul>

0 commit comments

Comments
 (0)