473,396 Members | 1,860 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

object_id vs data_object_id in user_objects

I would like to ask for clarification on the meaning of these two
columns. According to the 9i Ref, object_id is the dictionary object
number of the object and data_object_id is the dictionary object number
of the segment that contains the object.

First question, what's the difference? Sorry to sound philosophic here,
but how could an object exist without a segment? Obviously it does, but
I could sure use some description of how to interpret the difference.

Second question,

Scenario:

Insert and commit two rows in a table.

Query user_objects for the table, object_id and data_object_id have the
identical value: 31264.

Delete both rows and commit, the columns still have identical values.

Reinsert the rows, commit and truncate the table, object_id is still
31264, data_object_id is now 31265.

Maybe the answer to my first question will clear this up, but at this
point I'm baffled about how the "style" of removing rows from a table
can cause the table's segment id to change? Isn't it the same segment?

Thanks for any illumination anyone can throw.

Jack

Jul 19 '05 #1
2 9230
The data object id is assigned at creation time and does not change
unless the object is dropped and recreated. The data_object_id is also
assigned at creation time but over time the segment used to store the
object can be changed.

Observe
UT1 > select object_id, data_object_id from dba_objects
2 where object_name = 'MARKTEST_IDX1';

OBJECT_ID DATA_OBJECT_ID
---------- --------------
31698 31699

UT1 > alter index marktest_idx1 rebuild;

Index altered.

UT1 > select object_id, data_object_id from dba_objects
2 where object_name = 'MARKTEST_IDX1';

OBJECT_ID DATA_OBJECT_ID
---------- --------------
31698 31980

The data_object_id changed to reflect the new segment used to house the
index.

run this query
select owner, object_name, object_type, object_id, data_object_id
from dba_objects
where object_id <> data_object_id

And take a look at what turns up.

HTH -- Mark D Powell --

Jul 19 '05 #2
Thanks Mark.

My follow up question is why truncating the table resulted in a new
segment but deleting rows and committing didn't. I think that what I am
sniffing around is something I've seen referred to as the "highwater
mark". If that's related, can you recommend a good ref so I can pursue
this on my own? I have read what the 9i Concepts book has to say about
this, but it didn't help.

Thanks again.

p.s. I used to work for EDS at the Camp Hill data center a long time
ago.

Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Philippe LAVIGERIE | last post by:
What's wrong with my sample ? SQL> select * from v$version; BANNER ---------------------------------------------------------------- Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production...
5
by: Jim Garrison | last post by:
Scenario: 1) Create a GLOBAL TEMPORARY table and populate it with one (1) row. 2) Join that table to another with about 1 million rows. The join condition selects a few hundred rows. ...
2
by: Benzine | last post by:
I am running MS SQL 2000. I recently ran a procedure in Query Analyzer from the Master db to clear out all replication information so I could start/recreate it again. After I ran this...
0
by: shivdanush | last post by:
can anyone tell me if a trigger can be created on user_objects and user_constraints tables upon updation/deletion/insertion of data.
1
by: Ruth413 | last post by:
Hello - I am getting the these errors in my sql 2005 generated script. I am stuck with first error. Please help.... Msg 102, Level 15, State 1, Line 3 Incorrect syntax near '('. Msg 319,...
2
by: apollock | last post by:
Our application is having an issue where a query in a stored procedure periodically gets a bad plan with a Lazy Spool Operator that changes the query execution time from 5ms to 900ms and kills our...
1
by: deepu03 | last post by:
Hi All I have the following query to be tuned.. SELECT distinct a.EMPLID ,a.PER_ORG ,a.HIRE_DT ,a.grade
11
by: tracy | last post by:
Hi, I really need help. I run this script and error message appeal as below: drop trigger log_errors_trig; drop trigger log_errors_trig ERROR at line 1: ORA04080: trigger 'LOG_ERRORS-TRIG'...
2
by: Jack | last post by:
I would like to ask for clarification on the meaning of these two columns. According to the 9i Ref, object_id is the dictionary object number of the object and data_object_id is the dictionary...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.