Creating a Materialized View within SQL*PLUS Fails With ORA-54015: DUPLICATE COLUMN EXPRESSION WAS SPECIFIED (Doc ID 1529851.1)

Last updated on FEBRUARY 02, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 10.2.0.5 and later
Information in this document applies to any platform.

Symptoms

 When running a SQL script to create a Materialized View the following error is returned:

SQL>   2    3    4    5   NEXT SYSDATE + 1 AS
  6   SELECT s.person_id, i.first_name, COUNT(*)
  7   FROM person s, demo_tab i
  8   WHERE s.person_id = i.person_id
  9   GROUP BY s.person_id, i.first_name, s.person_id;
 FROM person s, demo_tab i
      *
ERROR at line 7:
ORA-54015: Duplicate column expression was specified

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms