Workarounds for Oracle11G#1
Open
Stef-33560 wants to merge 2 commits intoMOODLE_36_STABLEfrom
Open
Conversation
Workaround for ORA-01722 SQL error “ORA-01722: invalid number”, triggered when used on Oracle 11g database charset Unicode AL32UTF8.
NLS_NUMERIC_CHARACTERS seems linked ; Oracle differs from mariadb on dates (bug when especially creating a quizz "pairing")
This workaround solves the problem.
Check with SELECT TO_NUMBER('-,5') FROM DUAL
Please note following requirement to use moodle 36 on Oracle ; install :
* DBMS_LOB to manage CLOB ; execute ```GRANT EXECUTE ON dmbs_lob to <<schema>>```
* DBMS_RANDOM
* DBMS_LOCK
When searching in a glossary, box "search in definitions" uncheck, a debug info appears. It deals with ORA-06502 complaining about a string too short on MOODLELIB:86 (stacktrace lib/dml/moodle_database.php:486 dmi_read_exception thrown) Apply this workaround and recompile package moodlelib brings things OK.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SQL error “ORA-01722: invalid number”, triggered when used on Oracle 11g (database charset Unicode AL32UTF8).
NLS_NUMERIC_CHARACTERS seems linked ; Oracle differs from mariadb on dates (bug when especially creating a quizz "pairing"). Check with SELECT TO_NUMBER('-,5') FROM DUAL
=> Workaround in oci_native_moodle_database.php solves the problem.
When searching in a glossary, box "search in definitions" uncheck, a debug info appears. It deals with ORA-06502 complaining about a string too short on MOODLELIB:86 (stacktrace lib/dml/moodle_database.php:486 dmi_read_exception thrown)
=> workaround in MOODLELIB function FUNCTION TRICONCAT to use DMBS_LOB solves the problem.
The following requirements are needed to use moodle 36 ; must install :