<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>惜分飞 &#187; _NEXT_OBJECT</title>
	<atom:link href="https://www.xifenfei.com/tag/_next_object/feed" rel="self" type="application/rss+xml" />
	<link>https://www.xifenfei.com</link>
	<description>提供7*24专业数据库(Oracle,SQL Server,MySQL,PostgreSQL等)恢复和技术支持@Tel:17813235971</description>
	<lastBuildDate>Wed, 04 Nov 2026 15:33:30 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>通过update _NEXT_OBJECT 实现obj$.obj#和obj$.dataobj#跳号</title>
		<link>https://www.xifenfei.com/2016/09/modify-obj-dataobj-_next_object.html</link>
		<comments>https://www.xifenfei.com/2016/09/modify-obj-dataobj-_next_object.html#comments</comments>
		<pubDate>Tue, 06 Sep 2016 03:04:48 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Ora-600 15260]]></category>
		<category><![CDATA[ORA-600 15267]]></category>
		<category><![CDATA[ORA-600 KKDLCOB-OBJN-EXISTS]]></category>
		<category><![CDATA[_NEXT_OBJECT]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=6617</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2016/09/modify-obj-dataobj-_next_object.html">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div id="xifenfeicopyright">
<p>联系：<a href="https://www.xifenfei.com/about_xifenfei" target="_blank">手机/微信(+86 17813235971)   QQ(107644445)</a><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&#038;uin=107644445&#038;site=qq&#038;menu=yes"><img src="https://www.xifenfei.com/wp-content/themes/img/site_qq.jpg" alt="QQ咨询惜分飞" title="QQ咨询惜分飞"/></a></p>
<p>标题：<a href="https://www.xifenfei.com/2016/09/modify-obj-dataobj-_next_object.html" target="_blank">通过update _NEXT_OBJECT 实现obj$.obj#和obj$.dataobj#跳号</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p>在一些特殊的情况下(比如ORA-00600 [15267],ORA-00600 [KKDLCOB-OBJN-EXISTS],Ora-600 [15260])，考虑需要把dba_objects中的object_id往前推进，这里通过试验的方法实现该功能<br />
<strong>数据库版本信息</strong></p>
<pre class="brush: sql; title: ; notranslate">
SQL&gt; select * from v$version;

BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Prod
PL/SQL Release 10.2.0.4.0 - Production
CORE    10.2.0.4.0      Production
TNS for Linux: Version 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production
</pre>
<p><strong>分析obj和dataobj</strong></p>
<pre class="brush: sql; title: ; notranslate">
SQL&gt; select max(obj#),max(dataobj#) from obj$;

 MAX(OBJ#) MAX(DATAOBJ#)
---------- -------------
     51887         51907

SQL&gt; select name from obj$ where obj#=51887;

NAME
------------------------------
T_DUL

SQL&gt; select name from obj$ where dataobj#=51907;

NAME
------------------------------
_NEXT_OBJECT

SQL&gt; select object_id,data_object_id from dba_objects where object_name='_NEXT_OBJECT';

no rows selected
</pre>
<p><strong>为什么dba_objects中无_NEXT_OBJECT</strong><br />
因为dba_objects视图中跳过了_NEXT_OBJECT这条记录<br />
<img src="//www.xifenfei.com/wp-content/uploads/2016/09/next_object.jpg" alt="_next_object" width="658" height="698" class="alignleft size-full wp-image-6618" /><br />
<hr />
<strong>测试创建新表后obj和dataobj的变化</strong></p>
<pre class="brush: sql; title: ; notranslate">
SQL&gt;  create table t_xff as select * from dual;

Table created.

SQL&gt; select max(obj#),max(dataobj#) from obj$;

 MAX(OBJ#) MAX(DATAOBJ#)
---------- -------------
     51898         51907

SQL&gt; select name from obj$ where obj#=51898;

NAME
------------------------------
T_XFF

SQL&gt; select max(object_id),max(data_object_id) from dba_objects where object_name='T_XFF';

MAX(OBJECT_ID) MAX(DATA_OBJECT_ID)
-------------- -------------------
         51898               51898
</pre>
<p>通过测试可以确定,obj发生增加,但是dataobj不一定增加(因为dataobj本身比obj大，如果出现obj>dataobj那属于异常情况）<br />
<br />
<strong>测试数据库重启obj和dataobj是否会跳号</strong></p>
<pre class="brush: sql; title: ; notranslate">
---正常重启数据库
SQL&gt; SHUTDOWN IMMEDIATE;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL&gt; STARTUP
ORACLE instance started.

Total System Global Area  260046848 bytes
Fixed Size                  1266920 bytes
Variable Size              83888920 bytes
Database Buffers          171966464 bytes
Redo Buffers                2924544 bytes
Database mounted.
Database opened.
SQL&gt; select max(obj#),max(dataobj#) from obj$;

 MAX(OBJ#) MAX(DATAOBJ#)
---------- -------------
     51898         51907

---强制重启数据库
SQL&gt; shutdown abort
ORACLE instance shut down.
SQL&gt; startup
ORACLE instance started.

Total System Global Area  260046848 bytes
Fixed Size                  1266920 bytes
Variable Size              83888920 bytes
Database Buffers          171966464 bytes
Redo Buffers                2924544 bytes
Database mounted.
Database opened.
SQL&gt; select max(obj#),max(dataobj#) from obj$;

 MAX(OBJ#) MAX(DATAOBJ#)
---------- -------------
     51898         51907
</pre>
<p>通过这个证明obj和dataobj没有因为数据库重启而发生改变<br />
<br />
<strong>实现obj跳号</strong></p>
<pre class="brush: sql; title: ; notranslate">
SQL&gt; shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL&gt; startup restrict
ORACLE instance started.

Total System Global Area  260046848 bytes
Fixed Size                  1266920 bytes
Variable Size              83888920 bytes
Database Buffers          171966464 bytes
Redo Buffers                2924544 bytes
Database mounted.
Database opened.
SQL&gt;  update obj$ set dataobj#=1000000 where name='_NEXT_OBJECT';  

1 row updated.

SQL&gt; commit;

Commit complete.

SQL&gt; shutdown abort;
ORACLE instance shut down.
SQL&gt; startup
ORACLE instance started.

Total System Global Area  260046848 bytes
Fixed Size                  1266920 bytes
Variable Size              83888920 bytes
Database Buffers          171966464 bytes
Redo Buffers                2924544 bytes
Database mounted.
Database opened.

SQL&gt; select max(obj#),max(dataobj#) from obj$;

 MAX(OBJ#) MAX(DATAOBJ#)
---------- -------------
     51898       1000000

SQL&gt; create table t_www_xifenfei_com as select * from dual;

Table created.

SQL&gt; select max(obj#),max(dataobj#) from obj$;

 MAX(OBJ#) MAX(DATAOBJ#)
---------- -------------
   1000000       1000010

SQL&gt; select max(object_id),max(data_object_id) from dba_objects;

MAX(OBJECT_ID) MAX(DATA_OBJECT_ID)
-------------- -------------------
       1000000             1000000

SQL&gt; select object_name from dba_objects where object_id=1000000;

OBJECT_NAME
----------------------------------------------------------------
T_WWW_XIFENFEI_COM
</pre>
<p>通过丢_NEXT_OBJECT的更新实现obj和dataobj跳号(变成100w)</p>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/03/%e9%80%9a%e8%bf%87%e4%bf%ae%e6%94%b9col-col%e6%94%b9%e5%8f%98%e5%88%97%e5%b1%95%e7%a4%ba%e9%a1%ba%e5%ba%8f.html" rel="bookmark" class="crp_title">通过修改col$.col#改变列展示顺序</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/08/oracle%e7%94%a8%e6%88%b7%e9%87%8d%e5%91%bd%e5%90%8d.html" rel="bookmark" class="crp_title">ORACLE用户重命名</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/10/dual-%e7%bc%ba%e5%b0%91%e5%90%8c%e4%b9%89%e8%af%8d%e8%a7%a3%e5%86%b3.html" rel="bookmark" class="crp_title">dual 缺少同义词故障解决</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2020/08/rename-sys-ora-01092-ora-00600-kokasgi1%e9%94%99%e8%af%af.html" rel="bookmark" class="crp_title">重命名sys用户引起数据库启动报ORA-01092 ORA-00600 kokasgi1错误</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2025/02/ora-00069.html" rel="bookmark" class="crp_title">ORA-00069: cannot acquire lock &#8212; table locks disabled for xxxx</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/08/%e4%bd%bf%e7%94%a8oradebug%e4%bf%ae%e6%94%b9%e6%95%b0%e6%8d%ae%e5%ba%93scn.html" rel="bookmark" class="crp_title">使用oradebug修改数据库scn</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/12/oracle-12c-varchar2%e6%94%af%e6%8c%8132k%e9%95%bf%e5%ba%a6%e5%ad%97%e7%ac%a6%e4%b8%b2.html" rel="bookmark" class="crp_title">ORACLE 12C varchar2支持32k长度字符串</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/06/oracle-11g%e4%b8%a2%e5%a4%b1access%e6%81%a2%e5%a4%8d%e6%96%b9%e6%b3%95.html" rel="bookmark" class="crp_title">Oracle 11g丢失access$恢复方法</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/03/%e6%a8%a1%e6%8b%9fora-04043%e5%b9%b6%e8%a7%a3%e5%86%b3.html" rel="bookmark" class="crp_title">模拟ORA-04043并解决</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2015/04/%e6%ad%a3%e5%b8%b8%e5%85%b3%e9%97%ad%e6%95%b0%e6%8d%ae%e5%ba%93sequence-cache%e4%b8%8d%e4%b8%ba0-sequence%e4%b8%8d%e8%b7%b3%e8%b7%83.html" rel="bookmark" class="crp_title">正常关闭数据库sequence cache不为0 sequence不跳跃</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/03/ora-01052-required-destination-log_archive_duplex_dest-is-not-specified.html" rel="bookmark" class="crp_title">ORA-01052: required destination LOG_ARCHIVE_DUPLEX_DEST is not specified</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/08/%e9%80%9a%e8%bf%87odu%e9%aa%8c%e8%af%81rman-backup%e5%af%b9%e4%ba%8etruncate%e5%af%b9%e8%b1%a1%e5%a4%87%e4%bb%bd%e5%a4%84%e7%90%86.html" rel="bookmark" class="crp_title">通过odu验证rman backup对于truncate对象备份处理</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2016/09/modify-obj-dataobj-_next_object.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
