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

  • Home
  • SEARCH
  • 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 7015745
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:41:33+00:00 2026-05-27T22:41:33+00:00

When I describe an Oracle TYPE in SQL*Plus, what does SQL*Plus do under the

  • 0

When I describe an Oracle TYPE in SQL*Plus, what does SQL*Plus do “under the bonnet” – Is it calling DBMS_METADATA (or similar)? Or is it querying the data dictionary directly?

Or something else entirely?

  • 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-05-27T22:41:33+00:00Added an answer on May 27, 2026 at 10:41 pm

    You can obviously use alter session set sql_trace=true to answer such questions.

    For

    create type desc_type as object (
     dummy varchar2(1),
    
     constructor function desc_type (a number) return self as result,
    
     final member procedure m 
    
    );
    /
    
    alter session set sql_trace=true;
    
    desc desc_type
    
    alter session set sql_trace=false;
    
    drop type desc_type
    /
    

    I find the following relevant SQL Statements in my trace file:

    select procedure#,procedurename,properties,itypeobj# 
      from procedureinfo$ where obj#=:1 
     order by procedurename desc, overload# desc
    
    select position#,
           sequence#,
           level#,
           argument,
           type#,
           charsetid,
           charsetform,
           properties,
           nvl(length, 0),
           nvl(precision#, 0),
           nvl(scale, 0),
           nvl(radix, 0),
           type_owner,
           type_name,
           type_subname,
           type_linkname,
           pls_type 
      from argument$ 
     where obj#=:1 and procedure#=:2 order by sequence# desc
    
    select max(procedure#) from procedurec$ where obj#=:1
    
    select max(procedure#) from procedureplsql$ where obj#=:1
    
    select max(procedure#) from procedurejava$ where obj#=:1
    
    select procedure#,entrypoint# from procedurec$ 
     where obj#=:1 order by procedure#
    
    select procedure#,entrypoint# 
     from procedureplsql$ where obj#=:1 order by procedure#
    
    select procedure#,ownerlength,classlength,methodlength,siglength, flagslength,cookiesize 
      from procedurejava$ where obj#=:1 order by procedure#
    
    select ownername,classname,methodname,signature,flags 
      from procedurejava$ where obj#=:1 and procedure#=:2 order by procedure#
    
    select count(*) 
      from vtable$ where obj#=:1
    
    select vindex,itypetoid,imethod#,iflags,itypeowner,itypename 
      from vtable$ where obj#=:1 order by vindex
    
    select externtype, externname 
      from type$ where tvoid=:1
    

    So, under the bonnet, SQL*Plus uses plain SQL.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have an MFC application that handles data with either MS-Access, Oracle or SQL-Server.
oracle has 'DESCRIBE' to get all the details of the table like wise does
How do you perform the equivalent of Oracle's DESCRIBE TABLE in PostgreSQL with psql
I need to do migration date->timestamp with timezone similar to described here: Migrating Oracle
Describe the output of the following SQL query: select custId, name from customer where
I am using a PL/SQL procedure to extract Oracle tables of a particular schema
I'm converting a ColdFusion Project from Oracle 11 to MS SQL 2008. I used
I have a set of Oracle tables that describe information about property owners. Owner
I would like to be able to connect an Oracle database with a SQL
Describe a data structure where: Any item is indexed by an integral value like

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.