My Oracle Support Banner

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

Last updated on JANUARY 15, 2019

Applies to:

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


 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


To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.