Skip to content

Instantly share code, notes, and snippets.

@mvelikikh
Created February 12, 2024 11:44
Show Gist options
  • Save mvelikikh/5aa5ab30b70152b162c3dc4dcdf46460 to your computer and use it in GitHub Desktop.
Save mvelikikh/5aa5ab30b70152b162c3dc4dcdf46460 to your computer and use it in GitHub Desktop.
object_number_cache_size
SQL> sho parameter object_number_cache_size
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
_object_number_cache_size integer 10
SQL> select obj#, dataobj# from obj$ where name='_NEXT_OBJECT';
OBJ# DATAOBJ#
---------- ----------
1 74131
SQL>
SQL> begin
2 for i in 1..9
3 loop
4 execute immediate 'create table t'||i||'(x int)';
5 execute immediate 'drop table t'||i||' purge';
6 end loop;
7 end;
8 /
PL/SQL procedure successfully completed.
SQL>
SQL> select obj#, dataobj# from obj$ where name='_NEXT_OBJECT';
OBJ# DATAOBJ#
---------- ----------
1 74131
SQL>
SQL> create table t0(x int);
Table created.
SQL>
SQL> select obj#, dataobj# from obj$ where name='_NEXT_OBJECT';
OBJ# DATAOBJ#
---------- ----------
1 74141
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment