Adsense Ad

Friday, 19 May 2017

Oracle: ORA-01711 Error Message

ORA-01711 Error Message

Learn the cause and how to resolve the ORA-01711 error message in Oracle.

Description

When you encounter an ORA-01711 error, the following error message will appear:
  • ORA-01711: duplicate privilege listed

Cause

You tried to execute a GRANT or REVOKE statement and listed the same privilege more than once.

Resolution

The option(s) to resolve this Oracle error are:

Option #1

Remove the duplicate privilege from the grant or revoke statement and re-execute the command.
For example, if you tried to execute the following GRANT:
GRANT SELECT, SELECT ON suppliers TO smithj;
You would receive the following error message:
Oracle PLSQL
You could correct this error by removing the second instance of select, as follows:
GRANT SELECT ON suppliers TO smithj;