Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pinning Objects in the memory.

Status
Not open for further replies.

tekpr00

IS-IT--Management
Jan 22, 2008
186
CA
Hello All,

I will like to pin table and its indexes to memory as recommended by Software vendor.

Could you advice on the best method as I am getting errors as follows.
exec DBMS_SHARED_POOL.KEEP('EMPIADMIN.MPI_AHEAD') --this is for a table.
ERROR at line 1:
ORA-04047: object specified is incompatible with the flag specified
ORA-06512: at "SYS.DBMS_UTILITY", line 155
ORA-06512: at "SYS.DBMS_SHARED_POOL", line 55
ORA-06512: at "SYS.DBMS_SHARED_POOL", line 67
ORA-06512: at line 1

So I inseted a flag:
SQL> exec DBMS_SHARED_POOL.KEEP('EMPIADMIN.MPI_AHEAD', 'T');
BEGIN DBMS_SHARED_POOL.KEEP('EMPIADMIN.MPI_AHEAD', 'T'); END;

*
ERROR at line 1:
ORA-04047: object specified is incompatible with the flag specified
ORA-06512: at "SYS.DBMS_UTILITY", line 155
ORA-06512: at "SYS.DBMS_SHARED_POOL", line 55
ORA-06512: at "SYS.DBMS_SHARED_POOL", line 67
ORA-06512: at line 1

Pleas let me know of a command that I can use for pinning tables and indexes.

Thank You.
 
The shared pool is for Library cache items. You want to alter the table's storage parameters. Look up ALTER TABLE. I believe it is in the storage clause.
 
Thanks,
I finally used:
alter table MPI_AHEAD storage (buffer_pool default);
before seeing your reply.
Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top