Lab-verifiedReproduced and fixed on Oracle AI Database 26ai Free 23.26.3.0.0 · 2026-11-26 · container image gvenzl/oracle-free:23-slim
ORA-01430 means the column name in ALTER TABLE ... ADD is already used in that table. Usually the column was added earlier and the script was run again, but sometimes the column is simply not visible.
Below are three common cases reproduced on a real database, with the fix we ran and its result.
01The same ALTER TABLE ADD script was run again
customers.email had already been added. Running ALTER TABLE customers ADD (email VARCHAR2(100)) again failed with ORA-01430.
user_tab_columns showed EMAIL VARCHAR2 100, so the column was already there with the intended type. For scripts that may run more than once, we used a PL/SQL block that checks user_tab_cols and runs the ADD only if the column is missing. It printed skip: EMAIL already exists.
Setup
CREATE TABLE customers (cust_id NUMBER PRIMARY KEY, name VARCHAR2(30));
ALTER TABLE customers ADD (email VARCHAR2(100));Table created.
Table altered.ALTER TABLE customers ADD (email VARCHAR2(100));ALTER TABLE customers ADD (email VARCHAR2(100))
*
ERROR at line 1:
ORA-01430: column being added already exists in table
Help: https://docs.oracle.com/error-help/db/ora-01430/COLUMN column_name FORMAT A10
COLUMN data_type FORMAT A10
SELECT column_name, data_type, data_length FROM user_tab_columns WHERE table_name = 'CUSTOMERS' ORDER BY column_id;COLUMN_NAM DATA_TYPE DATA_LENGTH
---------- ---------- -----------
CUST_ID NUMBER 22
NAME VARCHAR2 30
EMAIL VARCHAR2 100
3 rows selected.Check that the existing column has the type and length you wanted. If it differs, use MODIFY instead of ADD.
SET SERVEROUTPUT ON
DECLARE
n NUMBER;
BEGIN
SELECT COUNT(*) INTO n FROM user_tab_cols WHERE table_name = 'CUSTOMERS' AND column_name = 'EMAIL';
IF n = 0 THEN
EXECUTE IMMEDIATE 'ALTER TABLE customers ADD (email VARCHAR2(100))';
DBMS_OUTPUT.PUT_LINE('added');
ELSE
DBMS_OUTPUT.PUT_LINE('skip: EMAIL already exists');
END IF;
END;
/skip: EMAIL already exists
PL/SQL procedure successfully completed.02One of several columns in a single ADD already exists
members already had email. ALTER TABLE members ADD (email VARCHAR2(100), phone VARCHAR2(20)) failed with ORA-01430, and the column list afterwards was still MEMBER_ID, EMAIL. phone was not added either: the whole statement fails.
We ran the ADD again with only the missing column, ALTER TABLE members ADD (phone VARCHAR2(20)). The table then had MEMBER_ID, EMAIL, PHONE.
Setup
CREATE TABLE members (member_id NUMBER PRIMARY KEY, email VARCHAR2(100));Table created.ALTER TABLE members ADD (email VARCHAR2(100), phone VARCHAR2(20));
COLUMN column_name FORMAT A10
SELECT column_name FROM user_tab_columns WHERE table_name = 'MEMBERS' ORDER BY column_id;ALTER TABLE members ADD (email VARCHAR2(100), phone VARCHAR2(20))
*
ERROR at line 1:
ORA-01430: column being added already exists in table
Help: https://docs.oracle.com/error-help/db/ora-01430/
COLUMN_NAM
----------
MEMBER_ID
EMAIL
2 rows selected.ALTER TABLE members ADD (phone VARCHAR2(20));Table altered.After a failed multi-column ADD, do not assume some columns were added. Check the column list first.
COLUMN column_name FORMAT A10
SELECT column_name FROM user_tab_columns WHERE table_name = 'MEMBERS' ORDER BY column_id;COLUMN_NAM
----------
MEMBER_ID
EMAIL
PHONE
3 rows selected.03The column exists but is INVISIBLE, so DESC does not show it
DESC orders listed only ORDER_ID and AMOUNT, yet ALTER TABLE orders ADD (memo VARCHAR2(100)) failed with ORA-01430.
user_tab_cols showed MEMO HIDDEN_COLUMN=YES with no COLUMN_ID: it was an INVISIBLE column. user_tab_columns and DESC do not show such columns, but user_tab_cols does. Since the column already existed, we ran ALTER TABLE orders MODIFY (memo VISIBLE), and DESC then listed MEMO VARCHAR2(100).
Setup
CREATE TABLE orders (order_id NUMBER PRIMARY KEY, amount NUMBER, memo VARCHAR2(100) INVISIBLE);Table created.SET LINESIZE 60
DESC orders
ALTER TABLE orders ADD (memo VARCHAR2(100)); Name Null? Type
----------------------------- -------- --------------------
ORDER_ID NOT NULL NUMBER
AMOUNT NUMBER
ALTER TABLE orders ADD (memo VARCHAR2(100))
*
ERROR at line 1:
ORA-01430: column being added already exists in table
Help: https://docs.oracle.com/error-help/db/ora-01430/COLUMN column_name FORMAT A10
SELECT column_name, hidden_column, column_id FROM user_tab_cols WHERE table_name = 'ORDERS' ORDER BY internal_column_id;COLUMN_NAM HID COLUMN_ID
---------- --- ----------
ORDER_ID NO 1
AMOUNT NO 2
MEMO YES
3 rows selected.ALTER TABLE orders MODIFY (memo VISIBLE);Table altered.Use user_tab_cols, not user_tab_columns, when checking whether a column exists.
SET LINESIZE 60
DESC orders Name Null? Type
----------------------------- -------- --------------------
ORDER_ID NOT NULL NUMBER
AMOUNT NUMBER
MEMO VARCHAR2(100)FAQ
What does ORA-01430 mean?
The table already has a column with the name you are trying to add with ALTER TABLE ... ADD.
How do I add a column only if it does not exist in Oracle?
Oracle has no ADD COLUMN IF NOT EXISTS here. Check user_tab_cols in a PL/SQL block and run the ALTER with EXECUTE IMMEDIATE only when the count is 0.
DESC does not show the column, but I still get ORA-01430. Why?
The column may be INVISIBLE. Query user_tab_cols and look at HIDDEN_COLUMN. Make it visible with ALTER TABLE t MODIFY (col VISIBLE).
If I add several columns and one exists, are the others added?
No. In our test the whole ALTER TABLE failed and none of the new columns were added.
How we verify
Each scenario starts from fresh database users. A script runs the setup, confirms the exact error code, applies the fix and runs the statement again. The output shown is what the database printed, saved by the script.
lab_a and lab_b are ordinary users created for the test; system is the DBA account. Oracle AI Database 26ai Free Release 23.26.3.0.0 - Develop, Learn, and Run for Free 23.26.3.0.0