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 MAY 19, 2022

Applies to:

Oracle Database Cloud Exadata Service - Version N/A and later
Oracle Database Cloud Service - Version N/A and later
Oracle Database - Enterprise Edition - Version 10.2.0.5 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A 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>   NEXT SYSDATE + 1 AS
  6   SELECT s.person_id, i.first_name, COUNT(*)
  7   FROM <TABLE_NAME1> s, <TABLE_NAME2> i
  8   WHERE s.person_id = i.person_id
  9   GROUP BY s.person_id, i.first_name, s.person_id;
 FROM <TABLE_NAME1> s, <TABLE_NAME2> i
      *
ERROR at line 7:
ORA-54015: Duplicate column expression was specified

Changes

 

Cause

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
Symptoms
Changes
Cause
Solution


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