Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8085681
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T18:12:18+00:00 2026-06-05T18:12:18+00:00

recently, while working on a db2 -> oracle migration project, we came across this

  • 0

recently, while working on a db2 -> oracle migration project, we came across this situation.
the developers were inadvertently creating new table structures using decimal(s,p) columns. I didn’t remember Oracle supporting this, but then some digging showed that its a ANSI data type therefore supported by oracle.

However, question for me remained –

  1. how is this data handled internally ?
  2. is there a cost of using ANSI types instead of Oracle’s built in types ?
  3. Will there be an impact during the data migration if the target type was Oracle built-in type ?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T18:12:20+00:00Added an answer on June 5, 2026 at 6:12 pm

    In Oracle, they are the same:

    SQL statements that create tables and clusters can also use ANSI data
    types and data types from the IBM products SQL/DS and DB2. Oracle
    recognizes the ANSI or IBM data type name that differs from the Oracle
    Database data type name. It converts the data type to the equivalent
    Oracle data type, records the Oracle data type as the name of the
    column data type, and stores the column data in the Oracle data type
    based on the conversions shown in the tables that follow.

    The table below this quote shows that DECIMAL(p,s) is treated internally as a NUMBER(p,s):

    SQL> create table t (a decimal(*,5), b number (*, 5));
    
    Table created
    
    SQL> desc t;
    Name Type        Nullable Default Comments 
    ---- ----------- -------- ------- -------- 
    A    NUMBER(*,5) Y                         
    B    NUMBER(*,5) Y  
    

    However, the scale defaults to 0 for DECIMAL, which means that DECIMAL(*) is treated as NUMBER(*, 0), i.e. INTEGER:

    SQL> create table t (a decimal, b number, c decimal (5), d decimal (5));
    
    Table created
    
    SQL> desc t;
    Name Type      Nullable Default Comments 
    ---- --------- -------- ------- -------- 
    A    INTEGER   Y                         
    B    NUMBER    Y                         
    C    NUMBER(5) Y                         
    D    NUMBER(5) Y   
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While working on a script recently, I came across a peculiar nuance of how
I've recently came across a very interesting inconsistency while using libxml++ (a C++ wrapper
I recently noticed this while working on an app- why is it that when
I was working on some code recently and came across a method that had
I was working on my project for a while and recently noticed that when
recently while working on the dropdownlist, i came accross a strange issue, i am
recently, while reading former's code in my current project, I encounter the problems below:
Recently, while working on a shared host, I accidentally changed the permissions of my
I've recently been coding a lot in both Objective C while also working on
this was working up until quite recently and i cannot seem to crack the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.