Tamás Hanicz created KNOX-3495:
----------------------------------

             Summary: DB remote configuration monitor fails on Oracle with 
ORA-00904 on 21c and 19c
                 Key: KNOX-3495
                 URL: https://issues.apache.org/jira/browse/KNOX-3495
             Project: Apache Knox
          Issue Type: Bug
          Components: Server
    Affects Versions: 3.0.0
            Reporter: Tamás Hanicz
            Assignee: Tamás Hanicz


createKnoxProvidersTableOracle.sql and createKnoxDescriptorsTableOracle.sql 
declare deleted NUMBER(1) DEFAULT false NOT NULL. Oracle has no FALSE SQL 
literal before 23ai, so table creation fails with ORA-00904: "FALSE": invalid 
identifier and the gateway fails to start when the DB-backed remote config 
monitor is enabled.

The types were ported from the standard scripts (varchar→varchar2, TEXT→CLOB, 
boolean→NUMBER(1)) but the default was not. The later Oracle scripts 
(createKnoxIDFTrustedOidcIssuersTableOracle.sql, 
createKnoxIDFDelegationPolicyTablesOracle.sql) already use DEFAULT 0.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to