Oracle Error PLS-00305: previous use of ‘string’ (at line string) conflicts with this use

Oracle Error Message

PLS-00305: previous use of ‘string’ (at line string) conflicts with this use

Reason for the Error

While looking for prior declarations of a cursor, procedure, function, or package, the compiler found another object with the same name in the same scope. Or, the headers of subprogram in a package specification and body do not match word for word.

Solution

Check the spelling of the cursor, procedure, function, or package name. Also check the names of all constants, variables, parameters, and exceptions declared in the same scope. Then, remove or rename the object with the duplicate name. Or, change the headers of the packaged subprogram so that they match word for word.