暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

oracle数据的存储形式

oracle分享技术 2021-02-06
573

查看表结构
SQL> desc dba_objects
Name           Type          Nullable Default Comments                                                                     
-------------- ------------- -------- ------- ---------------------------------------------------------------------------- 
OWNER          VARCHAR2(30)  Y                Username of the owner of the object                                          
OBJECT_NAME    VARCHAR2(128) Y                Name of the object                                                           
SUBOBJECT_NAME VARCHAR2(30)  Y                Name of the sub-object (for example, partititon)                             
OBJECT_ID      NUMBER        Y                Object number of the object                                                  
DATA_OBJECT_ID NUMBER        Y                Object number of the segment which contains the object                       
OBJECT_TYPE    VARCHAR2(19)  Y                Type of the object                                                           
CREATED        DATE          Y                Timestamp for the creation of the object                                     
LAST_DDL_TIME  DATE          Y                Timestamp for the last DDL change (including GRANT and REVOKE) to the object 
TIMESTAMP      VARCHAR2(19)  Y                Timestamp for the specification of the object                                
STATUS         VARCHAR2(7)   Y                Status of the object                                                         
TEMPORARY      VARCHAR2(1)   Y                Can the current session only see data that it place in this object itself?   
GENERATED      VARCHAR2(1)   Y                Was the name of this object system generated?                                
SECONDARY      VARCHAR2(1)   Y                Is this a secondary object created as part of icreate for domain indexes?    
NAMESPACE      NUMBER        Y                Namespace for the object                                                     
EDITION_NAME   VARCHAR2(30)  Y                Name of the edition in which the object is actual                

创建测试表
create table system.test as select * from dba_objects



查看表数据
select * from system.test where object_id = 39

1 SYS I_OBJ4 39 39 INDEX 2011/9/17 9:46:13 2011/9/17 9:46:13 2011-09-17:09:46:13 VALID N N N 4 




定位 system.test object_id =39 的数据块
begin
exec get_dump('system','test','OBJECT_NAME','object_id=39');
end
/

 I_OBJ4 Typ=1 Len=6: 73,95,79,66,74,52 Typ=1 Len=6: 49,5f,4f,42,4a,34


我们再看一下 LAST_DDL_TIME 的内容, col  7: [ 7]  78 6f 09 11 0a 2f 0e
begin
exec get_charrowvalue('495f4f424a34','c');
end
/

I_OBJ4
PL/SQL procedure successfully completed

col  7: [ 7]  78 6f 09 11 0a 2f 0e
根据上面记录进行一下查询
begin
exec<span font-size:14px;background-color:#ffffff;"="" style="word-wrap: break-word; white-space: pre; color: rgb(51, 51, 51);"> 
get_daterowvalue('786f09110a2f0e','d');
end
/

 
2011-09-17 09:46:13
 
PL/SQL procedure successfully completed

得到了正确数值


文章转载自oracle分享技术,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论