Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development merge #14

Merged
merged 86 commits into from
Sep 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
515e690
Update generate_ddl.pl
gpaulissen Aug 25, 2021
37aa206
Update generate_ddl.pl
gpaulissen Aug 25, 2021
e7e089e
Update pom.xml
gpaulissen Aug 25, 2021
db85f23
Update pom.xml
gpaulissen Aug 25, 2021
5864814
Enable testing for different subsystems.
gpaulissen Aug 25, 2021
71962b7
Added scripts for unit testing.
gpaulissen Aug 25, 2021
65688d9
Unit testing
gpaulissen Aug 26, 2021
dda73b8
Unit testing.
gpaulissen Aug 26, 2021
d10187a
Perl script modified.
gpaulissen Aug 26, 2021
ed1d7b4
Perl script modified.
gpaulissen Aug 26, 2021
9635531
Update R__14.ORACLE_TOOLS.PACKAGE_BODY.PKG_DDL_UTIL.sql
gpaulissen Aug 26, 2021
d63684a
Update R__14.ORACLE_TOOLS.PACKAGE_BODY.PKG_DDL_UTIL.sql
gpaulissen Aug 26, 2021
36e5ca2
Only create / modify output directory scripts if necessary.
gpaulissen Aug 27, 2021
6c8ab88
Testing file generation.
gpaulissen Aug 27, 2021
1d25563
Update uninstall.sql
gpaulissen Aug 27, 2021
4332098
Solved unit testing bug.
gpaulissen Aug 27, 2021
fd0decf
Testing...
gpaulissen Aug 27, 2021
9e4a026
Unit testing.
gpaulissen Aug 27, 2021
af6499e
Testing...
gpaulissen Aug 27, 2021
d9db30c
Checking dependencies.
gpaulissen Aug 28, 2021
3398a52
Flexible PL/SQL warnings
gpaulissen Aug 30, 2021
473bdfa
Unit testing
gpaulissen Aug 30, 2021
6bce029
Error handling centralized.
gpaulissen Aug 30, 2021
2dbe59f
Unit testing...
gpaulissen Aug 30, 2021
8a23b1e
Unit testing...
gpaulissen Aug 30, 2021
d05ffb3
Added remote dbms_output handling.
gpaulissen Aug 31, 2021
286389e
Using schema for dictionary lookups.
gpaulissen Aug 31, 2021
fba5bee
chk_schema_object moved
gpaulissen Aug 31, 2021
52b3a30
Update R__14.PACKAGE_BODY.API_PKG.sql
gpaulissen Aug 31, 2021
2333640
Update R__14.PACKAGE_BODY.API_PKG.sql
gpaulissen Aug 31, 2021
fa85966
explicit schema name in front of stored procedures
gpaulissen Aug 31, 2021
df51ff5
Update R__09.ORACLE_TOOLS.PACKAGE_SPEC.PKG_DDL_UTIL.sql
gpaulissen Aug 31, 2021
506a10d
remap schema only at the end
gpaulissen Sep 1, 2021
ee0b30f
Unit testing.
gpaulissen Sep 1, 2021
97d00d4
Re-added p_new_schema.
gpaulissen Sep 1, 2021
e58125a
Testing...
gpaulissen Sep 1, 2021
cd33ea6
Before adding schema for every object.
gpaulissen Sep 1, 2021
5752254
Adding schema to all objects.
gpaulissen Sep 1, 2021
7f72417
Update R__15.ORACLE_TOOLS.TYPE_BODY.T_DEPENDENT_OR_GRANTED_OBJECT.sql
gpaulissen Sep 1, 2021
edcbb2d
Update pom.xml
gpaulissen Sep 1, 2021
268ccfc
Update R__14.ORACLE_TOOLS.PACKAGE_BODY.PKG_DDL_UTIL.sql
gpaulissen Sep 1, 2021
790de7e
Added schema to objects.
gpaulissen Sep 1, 2021
422e1f6
Update R__11.ORACLE_TOOLS.PROCEDURE.P_GENERATE_DDL.sql
gpaulissen Sep 1, 2021
7cd6889
Update R__14.ORACLE_TOOLS.PACKAGE_BODY.PKG_DDL_UTIL.sql
gpaulissen Sep 1, 2021
eed6c42
Update R__09.ORACLE_TOOLS.PACKAGE_SPEC.PKG_DDL_UTIL.sql
gpaulissen Sep 1, 2021
ff7fa5f
Update R__14.ORACLE_TOOLS.PACKAGE_BODY.PKG_DDL_UTIL.sql
gpaulissen Sep 1, 2021
a793e4e
Update R__14.ORACLE_TOOLS.PACKAGE_BODY.PKG_DDL_UTIL.sql
gpaulissen Sep 1, 2021
16c1f93
Testing...
gpaulissen Sep 2, 2021
3a9b7fc
Update R__14.ORACLE_TOOLS.PACKAGE_BODY.PKG_DDL_UTIL.sql
gpaulissen Sep 2, 2021
8256a60
Update R__14.ORACLE_TOOLS.PACKAGE_BODY.PKG_DDL_UTIL.sql
gpaulissen Sep 2, 2021
1cc6698
Update R__14.ORACLE_TOOLS.PACKAGE_BODY.PKG_DDL_UTIL.sql
gpaulissen Sep 2, 2021
31bb0b5
Debug enhancements
gpaulissen Sep 2, 2021
5952eff
Update R__15.ORACLE_TOOLS.TYPE_BODY.T_DDL.sql
gpaulissen Sep 2, 2021
2d9ef3f
Reduce debugging at level 2
gpaulissen Sep 2, 2021
bd163ef
Update R__14.ORACLE_TOOLS.PACKAGE_BODY.PKG_DDL_UTIL.sql
gpaulissen Sep 2, 2021
cc4e583
Update R__15.ORACLE_TOOLS.TYPE_BODY.T_DDL.sql
gpaulissen Sep 2, 2021
49fa122
Update R__14.ORACLE_TOOLS.PACKAGE_BODY.PKG_DDL_UTIL.sql
gpaulissen Sep 2, 2021
fa89b50
Update R__14.ORACLE_TOOLS.PACKAGE_BODY.PKG_DDL_UTIL.sql
gpaulissen Sep 2, 2021
05f5149
Update R__09.ORACLE_TOOLS.PACKAGE_SPEC.PKG_DDL_UTIL.sql
gpaulissen Sep 2, 2021
67687e9
Update R__11.ORACLE_TOOLS.PROCEDURE.P_GENERATE_DDL.sql
gpaulissen Sep 2, 2021
9626dc9
Recreated.
gpaulissen Sep 2, 2021
739ce3f
Update R__09.ORACLE_TOOLS.PACKAGE_SPEC.PKG_DDL_UTIL.sql
gpaulissen Sep 2, 2021
6cb18a8
Update R__09.ORACLE_TOOLS.PACKAGE_SPEC.PKG_DDL_UTIL.sql
gpaulissen Sep 2, 2021
f494e2c
Update R__14.ORACLE_TOOLS.PACKAGE_BODY.PKG_DDL_UTIL.sql
gpaulissen Sep 2, 2021
7064298
Update R__14.ORACLE_TOOLS.PACKAGE_BODY.PKG_DDL_UTIL.sql
gpaulissen Sep 2, 2021
7c0d772
Adding unit tests.
gpaulissen Sep 3, 2021
db9e620
Reducing debugging
gpaulissen Sep 3, 2021
e4aeee2
Testing...
gpaulissen Sep 3, 2021
79b615d
Testing...
gpaulissen Sep 3, 2021
926e125
scripts recreated.
gpaulissen Sep 3, 2021
9ee8999
Update R__14.ORACLE_TOOLS.PACKAGE_BODY.PKG_DDL_UTIL.sql
gpaulissen Sep 3, 2021
771b8ae
Added db-code-check
gpaulissen Sep 5, 2021
96851be
Added db-code-check.
gpaulissen Sep 5, 2021
a1ca61d
implementing db-code-check
gpaulissen Sep 6, 2021
668e632
Enhancing code quality.
gpaulissen Sep 6, 2021
fbf6f5e
Improving code quality
gpaulissen Sep 6, 2021
4dce4a9
Added code checks.
gpaulissen Sep 7, 2021
74f0ece
Update R__09.PACKAGE_SPEC.UT_CODE_CHECK_PKG.sql
gpaulissen Sep 8, 2021
d26d3e4
Create qry.sql
gpaulissen Sep 8, 2021
9bb85b4
Update qry.sql
gpaulissen Sep 9, 2021
d89e65f
Tested code checks.
gpaulissen Sep 9, 2021
2d2c502
Update R__14.PACKAGE_BODY.UT_CODE_CHECK_PKG.sql
gpaulissen Sep 9, 2021
156a214
Code checks enhanced.
gpaulissen Sep 9, 2021
f6b8dbf
Update R__14.PACKAGE_BODY.CFG_INSTALL_PKG.sql
gpaulissen Sep 10, 2021
0d62cd7
Release 1.2.0
gpaulissen Sep 10, 2021
f26b924
Update configuration.md
gpaulissen Sep 10, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .mvn/maven.config
Original file line number Diff line number Diff line change
@@ -1 +1 @@
-Drevision=1.1.0-SNAPSHOT
-Drevision=1.1.0
2 changes: 1 addition & 1 deletion apex/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
The following property should be set:
- application
-->
<echo message="Reading apex properties from file ${apex.config.dir}/apex.properties" />
<echo level="${ant.log.level}" message="Reading apex properties from file ${apex.config.dir}/apex.properties" />
<property file="${apex.config.dir}/apex.properties" prefix="apex" />
</target>
</configuration>
Expand Down
44 changes: 29 additions & 15 deletions conf/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -98,24 +98,28 @@
<!-- Make sure this isn't included on any classpath-->
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.oracle.ojdbc</groupId>
<artifactId>ojdbc8</artifactId>
<version>${ojdbc8.version}</version>
<exclusions>
<exclusion>
<groupId>com.oracle.database.ha</groupId>
<artifactId>simplefan</artifactId>
</exclusion>
<exclusion>
<groupId>com.oracle.database.ha</groupId>
<artifactId>ons</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>com.oracle.ojdbc</groupId>
<artifactId>ojdbc8</artifactId>
<version>${ojdbc8.version}</version>
<exclusions>
<exclusion>
<groupId>com.oracle.database.ha</groupId>
<artifactId>simplefan</artifactId>
</exclusion>
<exclusion>
<groupId>com.oracle.database.ha</groupId>
<artifactId>ons</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>

Expand Down Expand Up @@ -149,14 +153,16 @@
<id>conf-debug-before</id>
<phase>${conf.phase.init}</phase>
<configuration>
<exportAntProperties>true</exportAntProperties>
<target if="maven.debug">
<property name="ant.log.level" value="info" />
<!-- also dbUrl, dbUser, dbPass -->
<echoproperties prefix="java." />
<echoproperties prefix="maven." />
<echoproperties prefix="db." />
<echoproperties prefix="oracle-tools." />
<echoproperties prefix="oracle." />
<echoproperties prefix="conf." />
<echoproperties prefix="conf." />
</target>
</configuration>
<goals>
Expand Down Expand Up @@ -189,6 +195,9 @@
This reduces the need for duplicate folders/files.
-->

<!-- GJP 2021-09-06 For the time being display always the "Reading ... properties from file ..." -->
<property name="ant.log.level" value="info" />

<property name="db.config.dir.env.properties" value="${db.config.dir}${file.separator}env.properties" />

<fail message="The database conf directory '${db.config.dir}' does not contain a file 'env.properties'">
Expand Down Expand Up @@ -242,7 +251,7 @@
1) read the file env.properties (file may not exist)
2) the file should set db and maybe db.prev (for backwards compability we also check db.source and db.target)
-->
<echo message="Reading environment properties from file ${env.properties.abs}" />
<echo level="${ant.log.level}" message="Reading environment properties from file ${env.properties.abs}" />
<property file="${env.properties.abs}" />

<!-- backwards compability -->
Expand All @@ -264,7 +273,7 @@
<available file="${db.config.dir}${file.separator}${db}${file.separator}db.properties" type="file" />
</condition>
<property name="db.properties.abs" location="${db.properties}" />
<echo message="Reading db properties from file ${db.properties.abs}" />
<echo level="${ant.log.level}" message="Reading db properties from file ${db.properties.abs}" />
<!-- prefixValues="true" is needed for correctly expanding
username=prxy[${schema}] -->
<property file="${db.properties.abs}" prefix="db"
Expand All @@ -287,6 +296,11 @@
<property name="dbUser" value="${db.username}" />
<property name="dbPass" value="${db.password}" />

<!-- set code check properties -->
<property name="db.recompile" value="1" /> <!-- 0 or 1 -->
<property name="db.plsql.warnings" value="ENABLE:ALL" /> <!-- alter session set PLSQL_WARNINGS = ... -->
<property name="db.plscope.settings" value="IDENTIFIERS:ALL" /> <!-- alter session set PLSCOPE_SETTINGS = ... -->

<!-- READ THE db.prev.properties FILE. -->

<!-- DB.PREV -->
Expand All @@ -296,7 +310,7 @@
</condition>
<property name="db.prev.properties.abs" location="${db.prev.properties}" />
<!-- target info -->
<echo message="Reading db.prev properties from file ${db.prev.properties.abs}" />
<echo level="${ant.log.level}" message="Reading db.prev properties from file ${db.prev.properties.abs}" />
<property file="${db.prev.properties.abs}" prefix="db.prev" />
<!-- db.prev.database.link is empty meaning the previous database schema is used -->
<property name="db.prev.database.link"
Expand Down
90 changes: 87 additions & 3 deletions db/app/api/src/full/R__09.PACKAGE_SPEC.API_PKG.sql
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
CREATE OR REPLACE PACKAGE "API_PKG" authid current_user -- needed to invoke procedures from the calling schema without grants
is

-- GJP 2020-11-30 Use cfg_pkg.c_debugging instead
-- -- for conditional compiling
-- c_debugging constant pls_integer := data_api_pkg.c_debugging;
-- for conditional compiling
c_debugging constant pls_integer := 0;

type t_rec is record
( id integer
Expand Down Expand Up @@ -79,8 +78,93 @@ procedure ut_expect_violation
, p_data_owner in all_tables.owner%type -- default get_data_owner
);

/**
* Enable the DBMS_OUTPUT buffer for a database link session.
*
* Usefull while debugging a remote session using dbms_output.
*
* Will issue:
*
* execute immediate
* utl_lms.format_message('call dbms_output.enable@%s(:b1)', p_db_link)
* using p_buffer_size
*
* @param p_db_link The database link.
* @param p_buffer_size The buffer size
*/
procedure dbms_output_enable
( p_db_link in varchar2
, p_buffer_size in integer default null
);

/**
* Clear the DBMS_OUTPUT buffer for a database link session.
*
* Usefull while debugging a remote session using dbms_output.
*
* Will issue:
*
* execute immediate
* utl_lms.format_message
* ( 'declare
* l_line varchar2(32767 char);
* l_status integer;
* begin
* dbms_output.get_line@%s(l_line, l_status);
* end;'
* , p_db_link
* )
*
* NOTE from the Oracle documentation:
*
* <blockquote>
* After calling GET_LINE or GET_LINES, any lines not retrieved before the next call to
* PUT, PUT_LINE, or NEW_LINE are discarded to avoid confusing them with the next
* message.
* </blockquote>
*
* So this means that a single call to get_line is enough.
*
* @param p_db_link The database link.
*/
procedure dbms_output_clear
( p_db_link in varchar2
);

/**
* Flush the DBMS_OUTPUT buffer for a database link session.
*
* Usefull while debugging a remote session using dbms_output.
*
* The general idea is to invoke dbms_output_enable and dbms_output_clear before the
* remote call and to invoke dbms_output_flush after the call.
*
* This procedure will issue:
*
* execute immediate
* utl_lms.format_message
* ( 'declare
* l_line varchar2(32767 char);
* l_status integer;
* begin
* loop
* dbms_output.get_line@%s(line => l_line, status => l_status);
* exit when l_status != 0;
* dbms_output.put_line(l_line);
* end loop;
* end;'
* , p_db_link
* )
*
* @param p_db_link The database link.
*/
procedure dbms_output_flush
( p_db_link in varchar2
);

$if cfg_pkg.c_testing $then

--%suitepath(API)
--%suite

-- for unit testing
Expand Down
Loading