How to fix the Oracle error PLS-00125: type name expected?

In this post, you’ll learn more about the Oracle ErrorPLS-00125: type name expected with the details on why you receive this error and the possible solution to fix it.

Oracle Error Description

PLS-00125: type name expected

Reason for the Error PLS-00125: type name expected

When a constant or variable was declared, its datatype was not specified. For example, the code might look like pi CONSTANT := 3.14159; — should be CONSTANT REAL := 3.14159 Every constant and variable must have a datatype, which specifies a storage format, constraints, and valid range of values.

How to fix the Error PLS-00125: type name expected ?

You can fix this error in Oracle by following the below steps

Supply the type name

Tags :

Leave Your Comment