- 浏览: 87074 次
- 性别:
- 来自: 北京
最新评论
The object_id is the primary key, the data_object_id is the foreign key to the data segment.
You can find the DDL operation against the object (for instance,
Truncate,Move etc.)by querying the dba_objects with object_id not equal to data_object_id.
引用
Hi Tom,
For some objects in dba_objects, I see object_id is not matching with data_object_id even
when that object is not part of the cluster.
21:35:49 SQL> select count(*) from dba_objects where
data_object_id is not null and
object_name not in (
select distinct table_name from dba_clu_columns)
/
COUNT(*)
----------
5930
Can you please explain why they are different and what could cause that.
Thanks.
and we said...
The object_id is the primary key, the data_object_id is the foreign key to the data
segment.
Initially they are "the same"
But any operation that radically changes the data segment - eg: truncate, alter table
exchange partition, etc -- will change the data_object_id -- the data segment the object
points to.
consider:
ops$tkyte@ORA9IR2> create table t ( x int );
Table created.
ops$tkyte@ORA9IR2>
ops$tkyte@ORA9IR2> select object_name, object_id, data_object_id
2 from user_objects
3 where object_name = 'T';
OBJECT_NAME OBJECT_ID DATA_OBJECT_ID
------------------------------ ---------- --------------
T 29413 29413
ops$tkyte@ORA9IR2>
ops$tkyte@ORA9IR2> truncate table t;
Table truncated.
ops$tkyte@ORA9IR2>
ops$tkyte@ORA9IR2> select object_name, object_id, data_object_id
2 from user_objects
3 where object_name = 'T';
OBJECT_NAME OBJECT_ID DATA_OBJECT_ID
------------------------------ ---------- --------------
T 29413 29414
ops$tkyte@ORA9IR2>
ops$tkyte@ORA9IR2> alter table t move;
Table altered.
ops$tkyte@ORA9IR2>
ops$tkyte@ORA9IR2> select object_name, object_id, data_object_id
2 from user_objects
3 where object_name = 'T';
OBJECT_NAME OBJECT_ID DATA_OBJECT_ID
------------------------------ ---------- --------------
T 29413 29415
Refer Weblink:
http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:23417970272903
http://space.itpub.net/17203031/viewspace-690629
发表评论
-
dbms_output can not put the zero
2011-08-25 09:29 792DECLARE V_INTA NUMBER ... -
oracle EXECUTE IMMEDIATE ora-00911
2011-08-14 10:15 1550I get an error when I try to ex ... -
Will the valid status of index impact dml operation?
2011-08-05 10:34 882DROP TABLE tab01; SELECT * FRO ... -
where can i find the job number of those jobs defined in dba_scheduler_jobs?
2011-08-01 10:41 877Question: Hello, could anybody ... -
Listener HPUX Error: 242: No route to host
2011-05-17 14:55 1016现象: 引用LSNRCTL> status Conne ... -
一进程阻塞问题解决
2011-05-12 16:38 4154同事反映,删除一条数据总是没有反应,请求协助解决. 问题非常 ... -
open database with ORA-00704 and ORA-39700
2011-05-06 16:13 29461,Error 1)alter.log Fri May ... -
oracle text index create and use
2011-05-06 13:41 1958一、Install Text Index 1,The ste ... -
offline datafile and offline tablespace
2011-05-04 11:43 25541)offline datafile OFFLINE Spe ... -
oracle three type of block size
2011-04-28 17:35 796Tools: 引用[oracle@node oracle]$ ... -
bbed一(安装)
2011-04-26 14:54 1545bbed ----------------------- bl ... -
Strategies for RAC inter-instance parallelized queries
2011-04-25 14:14 1171I recently had to sit down and ... -
Enable Row Movement in Partitioning and Overhead
2011-04-24 14:03 1594Question 1: Hi, I am partitio ... -
Row Movement in Oracle
2011-04-23 22:23 2028One of the relatively newer fea ... -
ORA-14402 updating partition key column
2011-04-23 19:48 6440做DBA几年来,经常遇到项目到了维护期总是修改表的结构,原因很 ... -
ORACLE DSI 介绍
2011-04-19 18:33 927DSI是Data Server Internals的缩写,是O ... -
Oracle / Buffer cache
2011-04-19 17:18 818引用8.7 Tuning the Operating Syst ...
相关推荐
11. What is the difference between `System.out.println()` and `System.out.print()` in Java?Answer: Both methods are used for outputting text to the console, but they differ in how they display the ...
An isolation level determines the degree to which data is isolated for use by one process and guarded against interference from other processes. Prior to SQL Server 7.0, REPEATABLE READ and ...
What is the major difference between Oracle 8i and Oracle 9i? **Answer**: The differences between Oracle 8i and Oracle 9i are detailed on the official Oracle website. However, some key distinctions ...
4)And compare the results between these two algorithms and the difference of selection processes. 5)Write down the report in which there should be the execution results of the program. ...
condition is known to exist between AcpiWalkNamespace and the Load/Unload ASL operators and is still under investigation. Restructured the AML ParseLoop function, breaking it into several ...
The order of pages in the page chain, and the order of rows on the data pages, is the order of the index key or keys. Deciding which key to cluster on is an important performance consideration. When ...
One of the most common uses of non-paged pool is the storage of object handles. For more information regarding “maximums,” see also… Inside Windows 2000,Third Edition, pp. 403-404 Paged Pool ...
In the event of page getting full and reaching the PageItemCount, MGIndex will sort the keys in the page's dictionary and split the data in two pages ( similar to a b+tree split) and update the page ...
Traffic between the Google data centers passes over its private network rather than over the public Internet. Many of these data centers are located in, or close to, lower tier ISPs. Therefore, when ...
A general familiarity with object-oriented programming concepts and the Java programming language is necessary. The Java language essentials tutorial can help. copyright 1996-2000 Magelang ...
Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined ...
Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined ...
Correct use of header files can make a huge difference to the readability, size and performance of your code. The following rules will guide you through the various pitfalls of using header files. ...
The fundamental difference between Smart and other rapid application development (RAD) systems is that Smart does not rely on a server. You author the project just like you would do in Delphi or ...
The Rose Chart type is a circular chart that allows for great data comparison between data series. (Part of the Enterprise Edition). Chart Builder - The new Chart Builder lets developers and non- ...
The design presented here is based on the input of numerous professionals from the pointing device manufacturing and Windows soft¬ware development industries. In this document, the words "tablet" ...
running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). ...
The LML specification’s purpose is to provide a reference for users of the language to understand its goals, concepts and structure and to provide vendors a reference for implementation of the ...
- **A Quick Introduction to Reference Types and Value Types**: This section explains the fundamental difference between reference types (like objects and arrays) and value types (like integers and ...
However, there is a monumental difference between a grade school page and a professionally developed Web site. The page designer (or HTML developer) must understand colors, the customer, product flow...