-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#142] Supporting Oracle DIRECTORY objects in environment setup
- Loading branch information
1 parent
5c61554
commit da2f394
Showing
7 changed files
with
110 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<!-- | ||
Copyright 2017 Goldman Sachs. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, | ||
software distributed under the License is distributed on an | ||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, either express or implied. See the License for the | ||
specific language governing permissions and limitations | ||
under the License. | ||
--> | ||
# Oracle Usage Notes | ||
|
||
DB Type acronym for configurations: ORACLE | ||
|
||
|
||
## Packages and Package Bodies | ||
|
||
Obevo supports defining packages and package bodies within a single file and allowing the files to be edited in place. | ||
For more information, see [DB Project Structure](db-project-structure.html) and the section "Objects with BODY components". | ||
|
||
|
||
## Oracle Directories | ||
|
||
Obevo supports the [DIRECTORY](https://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_5007.htm) object type | ||
as part of the environment setup step. | ||
|
||
This will create the directory object if it doesn't already exist. If it already exists, it will leave it alone and not | ||
modify it. (We may modify this behavior depending on user feedback; please let us know your thoughts) | ||
|
||
To leverage this feature: | ||
|
||
1) Define it in your system-config.xml file with the _serverDirectory_ element: | ||
|
||
``` | ||
<dbSystemConfig type="ORACLE"> | ||
<schemas> | ||
<schema name="SCHEMA1" /> | ||
</schemas> | ||
<!-- You can define it for all environments by specifying this outside of the dbEnvironment element ... --> | ||
<serverDirectories> | ||
<serverDirectory name="dir1" directoryPath="path1" /> | ||
<serverDirectory name="dir2" directoryPath="path2" /> | ||
</serverDirectories> | ||
<environments> | ||
<dbEnvironment name="test" ...> | ||
<!-- ... or define it for a single environment (overriding the common definition) within the dbEnvironment element --> | ||
... | ||
<serverDirectories> | ||
<serverDirectory name="dir1" directoryPath="path1_prime" /> | ||
<serverDirectory name="dir2" directoryPath="path2_prime" /> | ||
</serverDirectories> | ||
... | ||
</dbEnvironment> | ||
</environments> | ||
</dbSystemConfig> | ||
``` | ||
|
||
2) Force the environment setup, via two options: | ||
|
||
1. Use the -forceEnvSetup parameter at the command line. | ||
2. Specify the property forceEnvSetup="true" in your dbEnvironment to have this be a default setting, and then execute a deploy. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters