PL/SQL (MOSC)

MOSC Banner

I need to try to decrypt a column and IF it errors out then try another decryption method.

edited Nov 22, 2017 1:46PM in PL/SQL (MOSC) 10 commentsAnswered ✓

Hi,

As mentioned in the subject.

I have a function called decrypt. it takes a decrypt method between 0 and 3 and a value (raw).
If it fails to decrypt, it returns this:

ORA-01465: invalid hex number

01465. 00000 -  "invalid hex number"

*Cause:   

*Action:

Is there a way to write some code where I can try all 4 different methods (if the first one fails then elseif the 2nd method doesn't work etc... and if none work, then assume it's decrypted and read the data as is).

So far it looks like I can only identify the error using PRAGMA EXCEPTION_INIT and use exception handler from the BEGIN...END block.

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