PL/SQL (MOSC)

MOSC Banner

Is DBMS_DB_VERSION.VER_LE_11 useless?

edited Sep 28, 2017 5:00AM in PL/SQL (MOSC) 14 commentsAnswered

Hi all,

I cannot really see how DBMS_DB_VERSION.VER_LE_11 or any similar constant can be useful. Am I missing something?

"LE" in VER_LE_11 is supposed to stand for "less or equal". It is fine when the version is equal to 11 for the example above, but when it is less than 11, the condition check fails with PLS-00302: component 'VER_LE_11' must be declared . So why is there "less" abbreviated in the constant name if it is unable to check it by design?

I come up to the only working solution is to use VERSION variable everywhere instead:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center