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

installation problems #2

Open
fraenkg opened this issue Feb 16, 2022 · 1 comment
Open

installation problems #2

fraenkg opened this issue Feb 16, 2022 · 1 comment

Comments

@fraenkg
Copy link

fraenkg commented Feb 16, 2022

Hallo Jürgen,

zuallererst -und als wichtigstes- vielen Dank für die Bereitstellung und Pflege der Werkzeuge rund um pl/sql und apex!
Leider komme ich viel zu selten dazu mich, neben der Verwendung auch progammtechnisch inspirieren zu lassen.

Seit ich UTL_APEX das letzte mal installiert habe, scheint sich etwas geändert zu haben.
In meinen Unterlagen steht (noch) der Aufruf "@UTL_APEX_install FRD4APEX GERMAN"...
Gut, jetzt gibt es eine BAT- Datei. Das macht es ja auch einfacher. Allerdings zeitigt ihr Aufruf bei mir nicht das gewünschte Ergebnis.

Hier die Kopie aus dem cmd- Fenster:

E:\temp\UTL_APEX-master\UTL_APEX>install.bat
Enter APEX workspace schema for UTL_APEX:xxx4apex
Enter password for xxx4apex: ********
Enter service name for the database or PDB:xxx19F

SQL*Plus: Release 19.0.0.0.0 - Production on Mi Feb 16 16:10:37 2022 Version 19.13.0.0.0
Copyright (c) 1982, 2021, Oracle.  All rights reserved.
Letzte erfolgreiche Anmeldezeit: Mi Feb 16 2022 16:07:24 +01:00
Verbunden mit:
Oracle Database 19c Standard Edition 2 Release 19.0.0.0.0 - Production Version 19.13.0.0.0

SQL> Verbindung zu Oracle Database 19c Standard Edition 2 Release 19.0.0.0.0 - Production Version 19.13.0.0.0 beendet
Drücken Sie eine beliebige Taste . . .

E:\temp\UTL_APEX-master\UTL_APEX>

Es wird kein Fehler gemeldet und auch keine Veränderungen an der DB vorgenommen.

Nach Sichten der Funktionalität ist mir aufgefallen, dass in UTL_APEX/install_scripts/init.sql folgende Abfrage enthalten ist:

select lower(data_type) || '(' || data_length || case char_used when 'B' then ' byte)' else ' char)' end FLAG_TYPE,
case when data_type in ('CHAR', 'VARCHAR2') then '''' end C_QUOTE,
pit_util.c_true C_TRUE, pit_util.c_false C_FALSE
from all_tab_columns
where table_name = 'PARAMETER_LOCAL'
and column_name = 'PAL_BOOLEAN_VALUE';

Diese wird mit einem Fehler quittiert und die Abarbeitung anschließend beendet.
Das Problem scheint mit mir zu sein, dass hier eine Konstante aus dem package pit_util verwendet wird. Ersetzt man diese durch den Aufruf einer entsprechenden Wrapper- Funktion, aus selbigem package, gibt es den Fehler nicht mehr und die Installation funktioniert wie erwartet.

select lower(data_type) || '(' || data_length || case char_used when 'B' then ' byte)' else ' char)' end FLAG_TYPE,
case when data_type in ('CHAR', 'VARCHAR2') then '''' end C_QUOTE,
pit_util.get_true C_TRUE, pit_util.get_false C_FALSE
from all_tab_columns
where table_name = 'PARAMETER_LOCAL'
and column_name = 'PAL_BOOLEAN_VALUE';

Viele Grüße und besten Dank für die hervorragenden Werkzeuge,
Frank

@j-sieben
Copy link
Owner

j-sieben commented Feb 16, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants