Skip to content

Commit 95b2c9a

Browse files
Merge pull request #148 from Trivadis/feature/issue-126-oracle-database
Feature/issue 126 oracle database
2 parents dec8a1d + 493df6a commit 95b2c9a

File tree

18 files changed

+20
-20
lines changed

18 files changed

+20
-20
lines changed

docs/1-introduction/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This document describes rules and recommendations for developing applications us
44

55
## Scope
66

7-
This document applies to the PL/SQL and SQL language as used within Oracle databases and tools, which access Oracle databases version 11g Release 2 or later.
7+
This document applies to the PL/SQL and SQL language as used within Oracle Databases and tools, which access Oracle Databases version 11g Release 2 or later.
88

99
## Document Conventions
1010

docs/2-naming-conventions/naming-conventions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
4. Avoid long abbreviations. Abbreviations should be shorter than 5 characters.
99
5. Any abbreviations must be widely known and accepted.
1010
6. Create a glossary with all accepted abbreviations.
11-
7. Never use Oracle keywords as names. A list of Oracles keywords may be found in the dictionary view `v$reserved_words`.
11+
7. Never use keywords as names. A list of keywords may be found in the dictionary view `v$reserved_words`.
1212
8. Avoid adding redundant or meaningless prefixes and suffixes to identifiers.<br/>Example: `create table emp_table`.
1313
9. Always use one spoken language (e.g. English, German, French) for all objects in your application.
1414
10. Always use the same names for elements with the same meaning.
1515

1616
## Naming Conventions for PL/SQL
1717

18-
In general, Oracle is not case sensitive with names. A variable named personname is equal to one named PersonName, as well as to one named PERSONNAME. Some products (e.g. TMDA by Trivadis, APEX, OWB) put each name within double quotes (&quot;) so Oracle will treat these names to be case sensitive. Using case sensitive variable names force developers to use double quotes for each reference to the variable. Our recommendation is to write all names in lowercase and to avoid double quoted identifiers.
18+
In general, the Oracle Database is not case sensitive with names. A variable named personname is equal to one named PersonName, as well as to one named PERSONNAME. Some products (e.g. TMDA by Trivadis, APEX, OWB) put each name within double quotes (&quot;) so the Oracle Database will treat these names to be case sensitive. Using case sensitive variable names force developers to use double quotes for each reference to the variable. Our recommendation is to write all names in lowercase and to avoid double quoted identifiers.
1919

2020
A widely used convention is to follow a `{prefix}variablecontent{suffix}` pattern.
2121

@@ -254,6 +254,6 @@ Examples:
254254
We see a table and a view as a collection. A jar containing beans is labeled "beans".
255255
In Java we call such a collection also "beans" (`List<Bean> beans`) and name an entry "bean"
256256
(`for (Bean bean : beans) {...}`). An entry of a table is a row (singular) and a table can
257-
contain an unbounded number of rows (plural). This and the fact that the Oracle database uses
257+
contain an unbounded number of rows (plural). This and the fact that the Oracle Database uses
258258
the same concept for their tables and views lead to the decision to use the plural
259259
to name a table or a view.

docs/4-language-usage/2-variables-and-types/1-general/g-2130.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Your code will be easier to read as the usage of a variable/constant may be deri
1313

1414
Type | Usage
1515
------------------ | -----
16-
`ora_name_type` | Object corresponding to the Oracle naming conventions (table, variable, column, package, etc.).
16+
`ora_name_type` | Object corresponding to the Oracle Database naming conventions (table, variable, column, package, etc.).
1717
`max_vc2_type` | String variable with maximal VARCHAR2 size.
1818
`array_index_type` | Best fitting data type for array navigation.
1919
`id_type` | Data type used for all primary key (id) columns.

docs/4-language-usage/2-variables-and-types/1-general/g-2190.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
## Reason
77

8-
Be careful about your use of Oracle-specific data types like `rowid` and `urowid`. They might offer a slight improvement in performance over other means of identifying a single row (primary key or unique index value), but that is by no means guaranteed.
8+
Be careful about your use of Oracle Database specific data types like `rowid` and `urowid`. They might offer a slight improvement in performance over other means of identifying a single row (primary key or unique index value), but that is by no means guaranteed.
99

1010
Use of `rowid` or `urowid` means that your SQL statement will not be portable to other SQL databases. Many developers are also not familiar with these data types, which can make the code harder to maintain.
1111

docs/4-language-usage/2-variables-and-types/2-numeric-data-types/g-2230.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
`simple_integer` does no checks on numeric overflow, which results in better performance compared to the other numeric datatypes.
99

10-
With Oracle 11g, the new data type `simple_integer` has been introduced. It is a sub-type of `pls_integer` and covers the same range. The basic difference is that `simple_integer` is always `not null`. When the value of the declared variable is never going to be null then you can declare it as `simple_integer`. Another major difference is that you will never face a numeric overflow using `simple_integer` as this data type wraps around without giving any error. `simple_integer` data type gives major performance boost over `pls_integer` when code is compiled in `native` mode, because arithmetic operations on `simple_integer` type are performed directly at the hardware level.
10+
With Oracle Database 11g, the new data type `simple_integer` has been introduced. It is a sub-type of `pls_integer` and covers the same range. The basic difference is that `simple_integer` is always `not null`. When the value of the declared variable is never going to be null then you can declare it as `simple_integer`. Another major difference is that you will never face a numeric overflow using `simple_integer` as this data type wraps around without giving any error. `simple_integer` data type gives major performance boost over `pls_integer` when code is compiled in `native` mode, because arithmetic operations on `simple_integer` type are performed directly at the hardware level.
1111

1212

1313
## Example (bad)

docs/4-language-usage/2-variables-and-types/3-character-data-types/g-2330.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
## Reason
77

8-
Today zero-length strings and `null` are currently handled identical by Oracle. There is no guarantee that this will still be the case in future releases, therefore if you mean `null` use `null`.
8+
Today zero-length strings and `null` are currently handled identical by the Oracle Database. There is no guarantee that this will still be the case in future releases, therefore if you mean `null` use `null`.
99

1010
## Example (bad)
1111

docs/4-language-usage/2-variables-and-types/5-large-objects/g-2510.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
## Reason
77

8-
`long` and `long raw` data types have been deprecated by Oracle since version 8i - support might be discontinued in future Oracle releases.
8+
`long` and `long raw` data types have been deprecated by the Oracle Database since version 8i - support might be discontinued in future Oracle Database releases.
99

1010
There are many constraints to `long` datatypes in comparison to the `lob` types.
1111

docs/4-language-usage/3-dml-and-sql/1-general/g-3170.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Oracle Database 12c
1212

1313
## Reason
1414

15-
Default values have been nullifiable until Oracle 12c. Meaning any tool sending null as a value for a column having a default value bypassed the default value. Starting with Oracle 12c default definitions may have an `on null` definition in addition, which will assign the default value in case of a `null` value too.
15+
Default values have been nullifiable until Oracle Database 12c. Meaning any tool sending null as a value for a column having a default value bypassed the default value. Starting with Oracle Database 12c default definitions may have an `on null` definition in addition, which will assign the default value in case of a `null` value too.
1616

1717
## Example (bad)
1818

docs/4-language-usage/4-control-structures/1-cursor/g-4130.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
## Reason
77

8-
Any cursors left open can consume additional memory space (i.e. SGA) within the database instance, potentially in both the shared and private SQL pools. Furthermore, failure to explicitly close cursors may also cause the owning session to exceed its maximum limit of open cursors (as specified by the `open_cursors` database initialization parameter), potentially resulting in the Oracle error of “ORA-01000: maximum open cursors exceeded”.
8+
Any cursors left open can consume additional memory space (i.e. SGA) within the database instance, potentially in both the shared and private SQL pools. Furthermore, failure to explicitly close cursors may also cause the owning session to exceed its maximum limit of open cursors (as specified by the `open_cursors` database initialization parameter), potentially resulting in the Oracle Database error of “ORA-01000: maximum open cursors exceeded”.
99

1010
## Example (bad)
1111

docs/4-language-usage/4-control-structures/1-cursor/g-4140.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
## Reason
77

8-
Oracle provides a variety of cursor attributes (like `%found` and `%rowcount`) that can be used to obtain information about the status of a cursor, either implicit or explicit.
8+
The Oracle Database provides a variety of cursor attributes (like `%found` and `%rowcount`) that can be used to obtain information about the status of a cursor, either implicit or explicit.
99

1010
You should avoid inserting any statements between the cursor operation and the use of an attribute against that cursor. Interposing such a statement can affect the value returned by the attribute, thereby potentially corrupting the logic of your program.
1111

0 commit comments

Comments
 (0)