Oracle Error Message
ORA-02345: cannot create a view with column based on CURSOR operator
Reason for the Error
A CURSOR operator was used as one of the SELECT elements in the subquery of a CREATE VIEW or CREATE TABLE … AS SELECT statement.
Solution
Remove the CURSOR operator and replace it with the CAST operator.