Closed ShanikaWickramasinghe closed 4 years ago
Could not reproduce in latest UMA script[1] [1] - https://github.com/wso2-extensions/identity-oauth-uma/blob/v1.1.8/features/org.wso2.carbon.identity.oauth.uma.server.feature/resources/dbscripts/oracle.sql
Needs to Reopen this issue as still observing the below issue against 5.10.0 alpha3
CREATE OR REPLACE TRIGGER IDN_UMA_RESOURCE_TRIG BEFORE INSERT ON IDN_UMA_RESOURCE REFERENCING NEW AS NEW FOR EACH ROW BEGIN SELECT IDN_UMA_RESOURCE_SEQ.nextval INTO :NEW.ID FROM dual Error at Command Line:15 Column:3 Error report: SQL Error: ORA-00933: SQL command not properly ended
Error starting at line 24 in command: END Error report: Unknown Command index IDX_RID created. index IDX_USER created. index IDX_USER_RID created.
Error starting at line 36 in command: CREATE TABLE IDN_UMA_RESOURCE_META_DATA ( ID INTEGER, RESOURCE_IDENTITY INTEGER NOT NULL, PROPERTY_KEY VARCHAR2(40), PROPERTY_VALUE VARCHAR2(255), PRIMARY KEY (ID), FOREIGN KEY (RESOURCE_IDENTITY) REFERENCES IDN_UMA_RESOURCE (ID) ON DELETE CASCADE ) /
CREATE SEQUENCE IDN_UMA_RESOURCE_META_DATA_SEQ START WITH 1 INCREMENT BY 1 NOCACHE
Error at Command Line:44 Column:3 Error report: SQL Error: ORA-00922: missing or invalid option
Error starting at line 49 in command: CREATE OR REPLACE TRIGGER IDN_UMA_RESOURCE_METADATA_TRIG BEFORE INSERT ON IDN_UMA_RESOURCE_META_DATA REFERENCING NEW AS NEW FOR EACH ROW BEGIN SELECT IDN_UMA_RESOURCE_META_DATA_SEQ.nextval INTO :NEW.ID FROM dual; END; Error report: ORA-00942: table or view does not exist
Error starting at line 59 in command: CREATE TABLE IDN_UMA_RESOURCE_SCOPE ( ID INTEGER, RESOURCE_IDENTITY INTEGER NOT NULL, SCOPE_NAME VARCHAR2(255), PRIMARY KEY (ID), FOREIGN KEY (RESOURCE_IDENTITY) REFERENCES IDN_UMA_RESOURCE (ID) ON DELETE CASCADE ) /
CREATE SEQUENCE IDN_UMA_RESOURCE_SCOPE_SEQ START WITH 1 INCREMENT BY 1 NOCACHE
Error at Command Line:66 Column:3 Error report: SQL Error: ORA-00922: missing or invalid option
Error starting at line 71 in command: CREATE OR REPLACE TRIGGER IDN_UMA_RESOURCE_SCOPE_TRIG BEFORE INSERT ON IDN_UMA_RESOURCE_SCOPE REFERENCING NEW AS NEW FOR EACH ROW BEGIN SELECT IDN_UMA_RESOURCE_SCOPE_SEQ.nextval INTO :NEW.ID FROM dual; END; Error report: ORA-00942: table or view does not exist
Error starting at line 84 in command: CREATE TABLE IDN_UMA_PERMISSION_TICKET ( ID INTEGER, PT VARCHAR2(255) NOT NULL, TIME_CREATED TIMESTAMP NOT NULL, EXPIRY_TIME TIMESTAMP NOT NULL, TICKET_STATE VARCHAR2(25) DEFAULT 'ACTIVE', TENANT_ID INTEGER DEFAULT -1234, TOKEN_ID VARCHAR(255), PRIMARY KEY (ID) ) /
CREATE SEQUENCE IDN_UMA_PERMISSION_TICKET_SEQ START WITH 1 INCREMENT BY 1 NOCACHE
Error at Command Line:94 Column:3 Error report: SQL Error: ORA-00922: missing or invalid option
Error starting at line 99 in command: CREATE OR REPLACE TRIGGER IDN_UMA_PERMISSION_TICKET_TRIG BEFORE INSERT ON IDN_UMA_PERMISSION_TICKET REFERENCING NEW AS NEW FOR EACH ROW BEGIN SELECT IDN_UMA_PERMISSION_TICKET_SEQ.nextval INTO :NEW.ID FROM dual; END; Error report: ORA-00942: table or view does not exist
Error starting at line 109 in command: CREATE INDEX IDX_PT ON IDN_UMA_PERMISSION_TICKET (PT) Error at Command Line:109 Column:24 Error report: SQL Error: ORA-00942: table or view does not exist
Error starting at line 112 in command: CREATE TABLE IDN_UMA_PT_RESOURCE ( ID INTEGER, PT_RESOURCE_ID INTEGER NOT NULL, PT_ID INTEGER NOT NULL, PRIMARY KEY (ID), FOREIGN KEY (PT_ID) REFERENCES IDN_UMA_PERMISSION_TICKET (ID) ON DELETE CASCADE, FOREIGN KEY (PT_RESOURCE_ID) REFERENCES IDN_UMA_RESOURCE (ID) ON DELETE CASCADE ) /
CREATE SEQUENCE IDN_UMA_PT_RESOURCE_SEQ START WITH 1 INCREMENT BY 1 NOCACHE
Error at Command Line:120 Column:3 Error report: SQL Error: ORA-00922: missing or invalid option
Error starting at line 125 in command: CREATE OR REPLACE TRIGGER IDN_UMA_PT_RESOURCE_TRIG BEFORE INSERT ON IDN_UMA_PT_RESOURCE REFERENCING NEW AS NEW FOR EACH ROW BEGIN SELECT IDN_UMA_PT_RESOURCE_SEQ.nextval INTO :NEW.ID FROM dual; END; Error report: ORA-00942: table or view does not exist
Error starting at line 135 in command: CREATE TABLE IDN_UMA_PT_RESOURCE_SCOPE ( ID INTEGER, PT_RESOURCE_ID INTEGER NOT NULL, PT_SCOPE_ID INTEGER NOT NULL, PRIMARY KEY (ID), FOREIGN KEY (PT_RESOURCE_ID) REFERENCES IDN_UMA_PT_RESOURCE (ID) ON DELETE CASCADE, FOREIGN KEY (PT_SCOPE_ID) REFERENCES IDN_UMA_RESOURCE_SCOPE (ID) ON DELETE CASCADE ) /
CREATE SEQUENCE IDN_UMA_PT_RESOURCE_SCOPE_SEQ START WITH 1 INCREMENT BY 1 NOCACHE
Error at Command Line:143 Column:3 Error report: SQL Error: ORA-00922: missing or invalid option
Error starting at line 148 in command: CREATE OR REPLACE TRIGGER IDN_UMA_PT_RESOURCE_SCOPE_TRIG BEFORE INSERT ON IDN_UMA_PT_RESOURCE_SCOPE REFERENCING NEW AS NEW FOR EACH ROW BEGIN SELECT IDN_UMA_PT_RESOURCE_SCOPE_SEQ.nextval INTO :NEW.ID FROM dual; END; Error report: ORA-00942: table or view does not exist
Reopening the issue due to the below error
Still observing the below errors against 5.10.0 alpha3 version- oracle 12c client - sqldeveloper
CREATE OR REPLACE TRIGGER IDN_UMA_RESOURCE_TRIG BEFORE INSERT ON IDN_UMA_RESOURCE REFERENCING NEW AS NEW FOR EACH ROW BEGIN SELECT IDN_UMA_RESOURCE_SEQ.nextval INTO :NEW.ID FROM dual Error at Command Line:15 Column:3 Error report: SQL Error: ORA-00933: SQL command not properly ended
Error starting at line 24 in command: END Error report: Unknown Command index IDX_RID created. index IDX_USER created. index IDX_USER_RID created.
Error starting at line 36 in command: CREATE TABLE IDN_UMA_RESOURCE_META_DATA ( ID INTEGER, RESOURCE_IDENTITY INTEGER NOT NULL, PROPERTY_KEY VARCHAR2(40), PROPERTY_VALUE VARCHAR2(255), PRIMARY KEY (ID), FOREIGN KEY (RESOURCE_IDENTITY) REFERENCES IDN_UMA_RESOURCE (ID) ON DELETE CASCADE ) /
CREATE SEQUENCE IDN_UMA_RESOURCE_META_DATA_SEQ START WITH 1 INCREMENT BY 1 NOCACHE
Error at Command Line:44 Column:3 Error report: SQL Error: ORA-00922: missing or invalid option
Error starting at line 49 in command: CREATE OR REPLACE TRIGGER IDN_UMA_RESOURCE_METADATA_TRIG BEFORE INSERT ON IDN_UMA_RESOURCE_META_DATA REFERENCING NEW AS NEW FOR EACH ROW BEGIN SELECT IDN_UMA_RESOURCE_META_DATA_SEQ.nextval INTO :NEW.ID FROM dual; END; Error report: ORA-00942: table or view does not exist
Error starting at line 59 in command: CREATE TABLE IDN_UMA_RESOURCE_SCOPE ( ID INTEGER, RESOURCE_IDENTITY INTEGER NOT NULL, SCOPE_NAME VARCHAR2(255), PRIMARY KEY (ID), FOREIGN KEY (RESOURCE_IDENTITY) REFERENCES IDN_UMA_RESOURCE (ID) ON DELETE CASCADE ) /
CREATE SEQUENCE IDN_UMA_RESOURCE_SCOPE_SEQ START WITH 1 INCREMENT BY 1 NOCACHE
Error at Command Line:66 Column:3 Error report: SQL Error: ORA-00922: missing or invalid option
Error starting at line 71 in command: CREATE OR REPLACE TRIGGER IDN_UMA_RESOURCE_SCOPE_TRIG BEFORE INSERT ON IDN_UMA_RESOURCE_SCOPE REFERENCING NEW AS NEW FOR EACH ROW BEGIN SELECT IDN_UMA_RESOURCE_SCOPE_SEQ.nextval INTO :NEW.ID FROM dual; END; Error report: ORA-00942: table or view does not exist
Error starting at line 84 in command: CREATE TABLE IDN_UMA_PERMISSION_TICKET ( ID INTEGER, PT VARCHAR2(255) NOT NULL, TIME_CREATED TIMESTAMP NOT NULL, EXPIRY_TIME TIMESTAMP NOT NULL, TICKET_STATE VARCHAR2(25) DEFAULT 'ACTIVE', TENANT_ID INTEGER DEFAULT -1234, TOKEN_ID VARCHAR(255), PRIMARY KEY (ID) ) /
CREATE SEQUENCE IDN_UMA_PERMISSION_TICKET_SEQ START WITH 1 INCREMENT BY 1 NOCACHE
Error at Command Line:94 Column:3 Error report: SQL Error: ORA-00922: missing or invalid option
Error starting at line 99 in command: CREATE OR REPLACE TRIGGER IDN_UMA_PERMISSION_TICKET_TRIG BEFORE INSERT ON IDN_UMA_PERMISSION_TICKET REFERENCING NEW AS NEW FOR EACH ROW BEGIN SELECT IDN_UMA_PERMISSION_TICKET_SEQ.nextval INTO :NEW.ID FROM dual; END; Error report: ORA-00942: table or view does not exist
Error starting at line 109 in command: CREATE INDEX IDX_PT ON IDN_UMA_PERMISSION_TICKET (PT) Error at Command Line:109 Column:24 Error report: SQL Error: ORA-00942: table or view does not exist
Error starting at line 112 in command: CREATE TABLE IDN_UMA_PT_RESOURCE ( ID INTEGER, PT_RESOURCE_ID INTEGER NOT NULL, PT_ID INTEGER NOT NULL, PRIMARY KEY (ID), FOREIGN KEY (PT_ID) REFERENCES IDN_UMA_PERMISSION_TICKET (ID) ON DELETE CASCADE, FOREIGN KEY (PT_RESOURCE_ID) REFERENCES IDN_UMA_RESOURCE (ID) ON DELETE CASCADE ) /
CREATE SEQUENCE IDN_UMA_PT_RESOURCE_SEQ START WITH 1 INCREMENT BY 1 NOCACHE
Error at Command Line:120 Column:3 Error report: SQL Error: ORA-00922: missing or invalid option
Error starting at line 125 in command: CREATE OR REPLACE TRIGGER IDN_UMA_PT_RESOURCE_TRIG BEFORE INSERT ON IDN_UMA_PT_RESOURCE REFERENCING NEW AS NEW FOR EACH ROW BEGIN SELECT IDN_UMA_PT_RESOURCE_SEQ.nextval INTO :NEW.ID FROM dual; END; Error report: ORA-00942: table or view does not exist
Error starting at line 135 in command: CREATE TABLE IDN_UMA_PT_RESOURCE_SCOPE ( ID INTEGER, PT_RESOURCE_ID INTEGER NOT NULL, PT_SCOPE_ID INTEGER NOT NULL, PRIMARY KEY (ID), FOREIGN KEY (PT_RESOURCE_ID) REFERENCES IDN_UMA_PT_RESOURCE (ID) ON DELETE CASCADE, FOREIGN KEY (PT_SCOPE_ID) REFERENCES IDN_UMA_RESOURCE_SCOPE (ID) ON DELETE CASCADE ) /
CREATE SEQUENCE IDN_UMA_PT_RESOURCE_SCOPE_SEQ START WITH 1 INCREMENT BY 1 NOCACHE
Error at Command Line:143 Column:3 Error report: SQL Error: ORA-00922: missing or invalid option
Error starting at line 148 in command: CREATE OR REPLACE TRIGGER IDN_UMA_PT_RESOURCE_SCOPE_TRIG BEFORE INSERT ON IDN_UMA_PT_RESOURCE_SCOPE REFERENCING NEW AS NEW FOR EACH ROW BEGIN SELECT IDN_UMA_PT_RESOURCE_SCOPE_SEQ.nextval INTO :NEW.ID FROM dual; END; Error report: ORA-00942: table or view does not exist
@ShanikaWickramasinghe what is the below error?
@madurangasiriwardena updated the comment
Suggested Labels Affected/ IS 5.10.0 M8 Snapshot Type/ Bug Priority/ High Severity / Major
Steps to Reproduce
Observation
Observed the below ERROR logs while sourcing the above script