totn Oracle Error Messages

Oracle / PLSQL: ORA-01700 Error Message

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

Description

When you encounter an ORA-01700 error, the following error message will appear:

  • ORA-01700: duplicate username in list

Cause

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

Resolution

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

Option #1

Remove the duplicate username from the grant or revoke statement and re-execute the command.

For example, if you tried to execute the following GRANT:

GRANT SELECT ON suppliers TO smithj, andersonb, smithj;

You would receive the following error message:

Oracle PLSQL

You could correct this error by removing the second instance of smithj, as follows:

GRANT SELECT ON suppliers TO smithj, andersonb;