Here is a script along with PL/SQL function to validate date data that may be passed from various sources to an Oracle database. The specified date format is "dd-MON-yyyy" for accurate loading. In the sample data below there are four invalid date data that has to be filtered out and typically error codes have to be designated for fast resolution. The script validates date data using regular expression functions and PL/SQL function. The data anomalies are identified for easy resolution. Invalid date such as "29-FEB-2014" has to be validated using a PL/SQL function validate_date(date_string) since the data complies with the defined format. |
The sames validation can be done using PL/SQL function and Translate function. |
72868