For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!
Hi Guyz, Oracle Database 11.2.0.4 windows server I have an xmltype column in a table. I need to generate hash (SHA256) of this column. Since SHA256 cannot be used in 11g, please suggest any other alternatives and sample code. Best Regards,
WITH t AS (SELECT 'my email is abc@yahoo.co.in' col1 FROM dual ) SELECT t.col1 , LTRIM(REGEXP_SUBSTR(t.col1, '@[^[:space:]]+'), '@') solution_1 , REGEXP_REPLACE(t.col1, '@([^[:space:]]+)|.', '\1') solution_2 FROM t ; OL1 SOLUTION_1 SOLUTION_2 -------------------------- --------------------------- -------------------- y email is abc@yahoo.co.in yahoo.co.in yahoo.co.in