OceanBase logo

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

Product Overview
DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Resources

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS

OceanBase Cloud

OceanBase Database

Tools

Connectors and Middleware

QUICK START

OceanBase Cloud

OceanBase Database

BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Company

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

International - English
中国站 - 简体中文
日本 - 日本語
Sign In
Start on Cloud

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

Product Overview
DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS
OceanBase CloudOceanBase Database
ToolsConnectors and Middleware
QUICK START
OceanBase CloudOceanBase Database
BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

Start on Cloud
编组
All Products
    • Databases
    • iconOceanBase Database
    • iconOceanBase Cloud
    • iconOceanBase Tugraph
    • iconInteractive Tutorials
    • iconOceanBase Best Practices
    • Tools
    • iconOceanBase Cloud Platform
    • iconOceanBase Migration Service
    • iconOceanBase Developer Center
    • iconOceanBase Migration Assessment
    • iconOceanBase Admin Tool
    • iconOceanBase Loader and Dumper
    • iconOceanBase Deployer
    • iconKubernetes operator for OceanBase
    • iconOceanBase Diagnostic Tool
    • iconOceanBase Binlog Service
    • Connectors and Middleware
    • iconOceanBase Database Proxy
    • iconEmbedded SQL in C for OceanBase
    • iconOceanBase Call Interface
    • iconOceanBase Connector/C
    • iconOceanBase Connector/J
    • iconOceanBase Connector/ODBC
    • iconOceanBase Connector/NET
icon

OceanBase Database

SQL - V4.2.1

    Download PDF

    OceanBase logo

    The Unified Distributed Database for the AI Era.

    Follow Us
    Products
    OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
    Resources
    DocsBlogLive DemosTraining & CertificationTicket
    Company
    About OceanBaseTrust CenterLegalPartnerContact Us
    Follow Us

    © OceanBase 2026. All rights reserved

    Cloud Service AgreementPrivacy PolicySecurity
    Contact Us
    Document Feedback
    1. Documentation Center
    2. OceanBase Database
    3. SQL
    4. V4.2.1
    iconOceanBase Database
    SQL - V 4.2.1
    SQL
    KV
    • V 4.6.0
    • V 4.4.2
    • V 4.3.5
    • V 4.3.3
    • V 4.3.1
    • V 4.3.0
    • V 4.2.5
    • V 4.2.2
    • V 4.2.1
    • V 4.2.0
    • V 4.1.0
    • V 4.0.0
    • V 3.1.4 and earlier

    Table already exists, with Error ORA-00955 reported

    Last Updated:2026-04-28 09:23:26  Updated
    share
    What is on this page
    Symptom
    Possible causes
    Troubleshooting procedure

    folded

    share

    This topic describes how to handle Error ORA-00955, where a table to be created already exists in the Oracle mode of OceanBase Database.

    Symptom

    When you create a table named student, an error is reported, indicating that the table already exists.

    obclient [SYS]> CREATE TABLE student(
              id NUMBER,
              name varchar(18),
              sex char(1),
              age NUMBER,
              address varchar(200),
               email varchar(100),
               c_date date,
               PRIMARY KEY (id)
               );
    ORA-00955: name is already used by an existing object
    

    The error codes corresponding to this error message are as follows:

    • Error code: ORA-00955

    • Error codes in OceanBase Database: 5331 and 5834

    • SQLSTATE: HY000

    For more information about the error codes, see Overview of error codes.

    Possible causes

    When you create a table, the system reports this error when the table already exists.

    Troubleshooting procedure

    Take the following steps to check whether a table already exists, rename the existing table, and then re-create the table.

    1. Check whether this table already exists in the database. For example:

       obclient [SYS]> SELECT t.table_name tablename FROM user_tables t WHERE table_name = 'student';
      +------------+
      | TABLENAME  |
      +------------+
      | STUDENT    |
      +------------+
      1 row in set
      
    2. If the table already exists, check whether this table meets the business needs. If no, we recommend that you specify a new name for the new table, such as t_stu.

       obclient [SYS]> CREATE TABLE t_stu(
             t_id NUMBER,
             t_name varchar(18),
             t_sex char(1),
             t_age NUMBER,
             t_address varchar(200),
             t_email varchar(100),
             t_c_date date,
             PRIMARY KEY (t_id)
              );
      Query OK, 0 rows affected
      

    Note

    If the table is no longer needed, execute the DROP TABLE statement to drop the table so that you can then create a new one.

    Previous topic

    Incorrect user password, with ERROR 1045 reported
    Last

    Next topic

    Table does not exist, with Error ORA-04043 reported
    Next
    What is on this page
    Symptom
    Possible causes
    Troubleshooting procedure