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!
RegisterLog in
Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!
- Home
- Forums
- Software
- Programmers
- DBMS Packages
- Oracle: All versions
- Thread starter Netherbeast
- Start date Nov 16, 2003
- Status
- Not open for further replies.
- Nov 16, 2003
- #1
Netherbeast
Programmer
- Jun 4, 2002
- 89
- US
Im new at this and I dont understand what NOCACHE does. Can anyone provide me with an answer?
thanks in advance
Sort by date Sort by votes
- Nov 17, 2003
- #2
JtheRipper
IS-IT--Management
- Oct 4, 2002
- 274
- GB
The CACHE option specifies that the blocks retrieved for the table are placed at the most recently used end of the LRU list in the buffer cache when a FULL table scan is performed.
The NOCACHE option specifies that the blocks retrieved for the table are placed at the least recently used end of the LRU list in the buffer cache when a FULL table scan is performed. This will cause the blocks read with a full table scan to be immediately flushed from the buffer cache.
Upvote0Downvote
- Nov 17, 2003
- #3
jimbopalmer
Programmer
- Jul 20, 2001
- 2,904
- US
You would normally CACHE a table when it was VERY small, one or two data buffers but frequently used, lookup tables may fit this. In this scenario you may find that unindexed full table scan from the SGA is faster than an index, so you want the table to stay in the SGA.
For most full table scans, you do NOT want the data kept, you want the current SGA to remain as unchanged as possible, so NOCACHE is the default.
I tried to remain child-like, all I acheived was childish.
Upvote0Downvote
- Nov 17, 2003
- #4
sem
Programmer
- Jun 3, 2000
- 4,709
- UA
You may also use this keyword when creating sequences. This means that no values are buffered in memory for future requests.
Regards, Dima
Upvote0Downvote
- Nov 17, 2003
- Thread starter
- #5
Netherbeast
Programmer
- Jun 4, 2002
- 89
- US
Thanks for the answers.
Jimbo, you mentioned a "look up table." What do you mean by that? Is that a faster way of doing SELECT * from table_name?
Thanks
Upvote0Downvote
- Nov 17, 2003
- #6
avjoshi
IS-IT--Management
- May 12, 2003
- 221
Generally speaking, lookup tables are reference tables. They are small in size and are predominently used to do cade lookups. Because they are small in size it's better to cash them.
Hope this helps.
Anand.
Upvote0Downvote
- Nov 17, 2003
- #7
jimbopalmer
Programmer
- Jul 20, 2001
- 2,904
- US
Many of the Apps I use have a master table with such parameters as: modules I own, the language my users speak, the next PO number to assign to a PO, etc. small tables but frequently accessed, and often very static. Forcing them to stay in the SGA can speed up routine actions (every form may check the user's language)
You may also have lookup tables that remember Oracle anonoumus Keys
this regular code becomes that overtime code
this temporary Foreman code become that overtime temporary foreman code
(my table like this only has 12 rows, it all fits in one data block, when an employee goes over 40 hours I lookup his new pay code)
I tried to remain child-like, all I acheived was childish.
Upvote0Downvote
- Status
- Not open for further replies.
Similar threads
- Locked
- Question
Share link to download Orcale 10 G
- hipath4k
- Apr 7, 2022
- Oracle: All versions
- Replies
- 0
- Views
- 357
Apr 7, 2022
hipath4k
- Locked
- Question
Insert data from Table A into Table B how can I do that?
- harfri
- Dec 2, 2018
- Oracle: All versions
- Replies
- 3
- Views
- 510
Dec 10, 2018
carp
- Locked
- Question
Instance #2 is waiting for what?
- torturedmind
- Feb 21, 2017
- Oracle: All versions
- Replies
- 0
- Views
- 186
Feb 21, 2017
torturedmind
- Locked
- Question
Getting PL/SQL: ORA-00942: table or view does not exist
- tekpr00
- Feb 1, 2017
- Oracle: All versions
- Replies
- 8
- Views
- 940
Feb 7, 2017
tekpr00
- Locked
- Question
What tablespace is used?
- torturedmind
- May 19, 2015
- Oracle: All versions
- Replies
- 5
- Views
- 426
May 27, 2015
torturedmind
Part and Inventory Search
Sponsor
- Home
- Forums
- Software
- Programmers
- DBMS Packages
- Oracle: All versions