File table is full
I just had an unpleasant crash on my 10.8.3 system, with the logs telling me "file table is full" (many, many times). Verify and Repair volume didn't find any errors, and a df now shows that I've still got loads of available inodes,
$ df -ih /
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk4 1.8Ti 1.0Ti 820Gi 56% 273127665 214959156 56% /
And other than Spotlight telling me that it will take 4 hours to re-index everything, I see no problems now. Should I suspect that some process started creating files with abandon? My Dropbox client (version 2.0.8) had been acting strangely during the day. (Claiming that it always had one file to sync, but never syncing it). Skype (6.3.0.582) was the first to report to me an I/O error. I'm also not sure how I can fill up the file table without first running out of inodes, but I don't know the internals of HFS+ and my days of understanding ufs are long behind me.
So the question(s): Should I suspect that some process started creating files with abandon or should I consider some other cause and how do I investigate further?
Cheers,
-j
If you have more than one user account, these instructions must be carried out as an administrator.
Triple-click anywhere in the line below to select it:
syslog -k Sender kernel -k Message CSeq "I/O error" | tail
Copy the selected text to the Clipboard (command-C).
Launch the Terminal application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
Paste into the Terminal window (command-V).
The command may take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear.
Post any lines of output that appear below what you entered — the text, please, not a screenshot.
Similar Messages
-
Mavericks getting error "file: table is full"
Hi,
since upgrading to Mavericks I noticed very odd behaviour on my MBP 2012 after some days of uptime. Tabs in browsers stopped working, internet connections got cut off and apps crashed and weren't able to restart. Only a reboot helped. This started to happen regularly, after 1 - 2 days of uptime.
I've since asked around and used the "dmesg"-command in the terminal to see the kernel log when this behavious occurs. It's always the same, lines and lines of "file: table is full".
I've switched off my CrashPlan backup service which I deemed the culprit. It didn't help. I've checked my SSD for errors, SMART-Status says "GOOD" and disk repair doesn't find anything wrong with the disk.
I've also noticed that this error coincided with "QTKITServer"-processes showing up as not responding and shockwave-plugin crashing, at least when using Chrome. I now switched from Chrome to Safari to see if maybe Chrome causes this odd behaviour but I'm not very optimistic about it.
Has anyone any ideas how to narrow this problem further down or maybe even what to do about it? Any help is greatly appreciated.
Thanks.See below the report for an explanation
The startup items & kernel extensions are a concern, are they up to date or not used? Update or remove via uninstallers or removal instructions. You have privoxy & glimmer blocker running, isn't that two web proxies?
The 2 failed launchd jobs are system level, so update or remove the related software or delete the .plists
[failed] com.vmware.launchd.vmware.plist
[failed] com.bitcasa.BitcasaUI.plist
Adobe updater appears to have 2 user jobs failing too… within your user account.
[failed] com.adobe.ARM.[...].plist
[failed] com.adobe.ARM.[...].plist
You can isolate issues with user level tasks by trying to login in a new user account. If that helps it's time to update or remove all the login items & background launchd jobs.
Google apps have caused some users issues, ensure they are up to date or remove them to see if they are the cause. Delete the system level .plists to prevent the updaters from running - the app will nag you about recreating them anyway.
You also have quite lot of internet plugins, I'd consider deleting them all & reinstalling as needed, it's easier than hunting down updated versions.
jfkorn wrote:
Startup Items:
ArcanaStartupSound - Path: /Library/StartupItems/ArcanaStartupSound
ParallelsTransporter - Path: /Library/StartupItems/ParallelsTransporter
Privoxy - Path: /Library/StartupItems/Privoxy
Wireshark - Path: /Library/StartupItems/Wireshark
Kernel Extensions:
org.dungeon.driver.SATSMARTDriver (0.6)
com.AmbrosiaSW.AudioSupport (4.1.2)
virtualcdrw.driver (1.0)
Launch Daemons:
[loaded] com.adobe.fpsaud.plist
[loaded] com.adobe.SwitchBoard.plist
[loaded] com.ambrosiasw.ambrosiaaudiosupporthelper.daemon.plist
[loaded] com.crashplan.engine.plist
[loaded] com.google.keystone.daemon.plist
[loaded] com.microsoft.office.licensing.helper.plist
[loaded] com.skype.skypeinstaller.plist
[failed] com.vmware.launchd.vmware.plist
[loaded] org.cindori.AuthHelper.plist
[loaded] org.glimmerblocker.proxy.plist
[loaded] phonostarTimer.plist
Launch Agents:
[not loaded] com.adobe.AAM.Updater-1.0.plist
[loaded] com.adobe.AdobeCreativeCloud.plist
[loaded] com.adobe.CS5ServiceManager.plist
[failed] com.bitcasa.BitcasaUI.plist
[loaded] com.google.keystone.agent.plist
[loaded] org.glimmerblocker.updater.plist
[loaded] virtualcdrw.daemon.plist
User Launch Agents:
[loaded] com.adobe.AAM.Updater-1.0.plist
[failed] com.adobe.ARM.[...].plist
[failed] com.adobe.ARM.[...].plist
[loaded] com.crashplan.javacheck.plist
[loaded] com.spotify.webhelper.plist
[loaded] com.valvesoftware.steamclean.plist
[loaded] de.metaquark.appfresh.plist
[not loaded] info.lokiware.attachmenttamer.cleanup.plist
[loaded] info.lokiware.attachmenttamer.setupagent.plist
[loaded] uk.co.markallan.clamxav.freshclam.plist
[loaded] ws.agile.1PasswordAgent.plist
User Login Items:
Flux
CheatSheet
BetterTouchTool
Alfred
ClamXavSentry
Dropbox
Tunnelblick
DaemonManager
3rd Party Preference Panes:
AppTrap
BTTPrefs
Connect360
DivX
Flash Player
Flip4Mac WMV
GlimmerBlocker
Growl
Java
Internet Plug-ins:
AdobeAAMDetect.plugin
AdobePDFViewer.plugin
CoolirisWebKitPlugin.plugin
Default Browser.plugin
DFusionWebPlugin.plugin
DFusionWebPluginS64.plugin
DivXBrowserPlugin.plugin
Flash Player.plugin
FlashPlayer-10.6.plugin
Flip4Mac WMV Plugin.plugin
googletalkbrowserplugin.plugin
iPhotoPhotocast.plugin
JavaAppletPlugin.plugin
JoostPlugin.plugin
npgtpo3dautoplugin.plugin
o1dbrowserplugin.plugin
OfficeLiveBrowserPlugin.plugin
QuakeLivePlugin.plugin
QuickTime Plugin.plugin
RealPlayer Plugin.plugin
SharePointBrowserPlugin.plugin
Silverlight.plugin
Veoh Plugin.plugin
User Internet Plug-ins:
Google Earth Web Plug-in.plugin
Move-Media-Player.plugin
PDF Browser Plugin.plugin
PDEPrint.plugin
Picasa.plugin
Unity Player.plugin
Red items are loaded at the system level (not necessarily bad, but they have the potential to modify the OS).
Blue items are loaded at the user level
Your RAM & HD look OK in terms of space etc, no obvious bad signs, the swap used (page-outs) should decrease when less of the old apps are running.
Cleanup:
All the usual caveats apply, backup before you modify the system, delete the items (or move them to another disk or folder if you are worried about deleting the wrong thing) but ensure the originals are gone or updated.
Use the Finders "Go menu > Go to Folder…" when you need to open the hidden ~/Library (your users library).
Reboot for the system changes to take effect.
How to find updates:
The critical launchd jobs & kernel extensions use reverse domain notation e.g.
com.logmein.hamachi.plist means look at http://logmein.com for updates (if you don't recognize it removing it may be appropriate)
In short: You want to try to update or remove all the system level items.
Startup Items: Stored in /Library/StartupItems/
Startup Items have been discontinued by Apple since Mac OS 10.4. They are responsible for making changes at a system level. Remove them all or spend time ensuring ALL related software is up to date. You need a very good reason to have anything installed in here. The developers are ignoring Apple guidelines by installing these - not a good sign.
Kernel Extensions: Stored in /Library/Extensions/
Kernel Extensions also load third party code, but they insert it into the 'core' of the OS. These can be safe, however you must ensure the related tools or apps are up to date, otherwise the system is basically built upon quicksand. Remove them all & see if the OS works better.
Launchd jobs: several types
LaunchAgents - Stored in /Library/LaunchAgents
LaunchDaemons - Stored in /Library/LaunchDaemons
User LaunchAgents - Stored in ~/Library/LaunchAgents
These are all background jobs, they are not necessarily bad, but if they are loading old code it could be doing untold damage to the performance & stability of the entire OS. Focus on the System level jobs (the ones inside /Library - the system level) also remove ['failed'], non-system jobs.
EtreCheck gives a status on launchd jobs…
[loaded] - a running job
[not loaded] - jobs that are set not to run, basically harmless, remove them unless you plan to use the associated software (if it is up to date)
[failed] - jobs in a crashed or unknown state, it could be forking processes or using all the system resources, remove these.
User login items:
Applications and helpers that are managed inside 'Systems Preferences > Users and groups > Login Items tab'.
These are loaded at the 'User level', consider removing all of them whilst you troubleshoot. When you decide to re-add them ensure the software is up to date.
3rd Party Preference Panes: & Internet Plug-ins:
/Library/PreferencePanes/ and ~/Library/PreferencePanes/
/Library/Internet Plug-Ins/ and ~/Library/Internet Plug-Ins/
Once again these items all must be up to date, or remove them from your system. If the prefpanes manage additional software use the uninstaller or see the developers site for uninstall instructions. You can also right click to remove 3rd party preference panes in System preferences
Read the list of Internet plug-ins carefully, there are often duplicate Flash player versions that won't help stability, it's just wasted space too.
Don't forget to also update Safari's extensions in it's preferences (if you have any).
Re-run EtreCheck after cleaning up to see if items have returned (some apps will reload the background jobs when re-opened, so either update or remove the software).
Hope that isn't too daunting, the OS should be better if there are less old items running at the system level. -
System.log, kernel[0]: file: table is full
After updating to Mac OS X 10.4.6, apache no longer runs on my PowerBook G4. I run apache for local web work and it has been running fine for a long time.
When I run do sudo apachectl start:
sudo apachectl start
/usr/local/bin/apachectl start: httpd could not be started
it cannot be started and /var/log/system.log shows:
kernel[0]: file: table is full
All I could find after searching the Internet via Google, Google Groups, Apple Knowledge Base, etc. are these reasons:
* Not enough sufficient free contiguous disk space on the volume. Need to optimize hard drive.
* Bad node on the hard drive.
* Defective hard drive.
I ran Disk Utility - Repair Permission and Repair Disk and both found no errors or problem. There were a few file permissions corrected, but that is all.
I also booted in to Mac OS X Safe Mode (CMD+S) and ran /sbin/fsck -yf and no errors were found/reported.
Since Mac OS X lacks a disk optimizer, I wondered where I could get a disk optimizer and whether optimize the volume would even correct this error.
Any free utilities to optimize the HFS+ volume in Mac OS X 10.4.6?
Apple's Support Knowledge Base states to either optimize the volume or do an Archive and Install. I cannot do an Archive and Install method due to my setup (MySQL, Apache, etc.).
About disk optimization with Mac OS X
PowerBook G4 1.67 SD Mac OS X (10.4.6)
PowerBook G4 1.67 SD Mac OS X (10.4.4)
PowerBook G4 1.67 SD Mac OS X (10.4.4)
PowerBook G4 1.67 SD Mac OS X (10.4.6)
PowerBook G4 1.67 SD Mac OS X (10.4.6)Hi, Mark.
I'm not an Apache guru, but you may have two different issues here, depending on when the
kernel[0]: file: table is full
message is time-stamped relative to when you issue the
sudo apachectl start command.
1. Looking at the results of this Google search and some others tends to indicate that common causes for httpd could not be started are errors in the /etc/httpd/httpd.conf file.
You might also want to take a look at some of these other Discussions threads and in these "Networking and the Web" Discussion threads.
2. One explanation I've found for kernel[0]: file: table is full is here.
Hope these ideas help.
Good luck!
Dr. Smoke
Author: Troubleshooting Mac® OS X -
Kernel[0]: file: table is full
Running Tiger on a dual G5.
I have lately been getting errors (per subject) starting at the same time every day, around 3:15am. Have been checking output of 'lsof' regularly while I'm awake, but see nothing problematic.
I've just turned on full process accounting ('accton') in hopes of spotting something tonight/tomorrow.
But I'm still floored by this. Any ideas on how to diagnose/fix this?
Fil
Dual G5 Mac OS X (10.4.4)Well, no real help here at the moment, however, I too am having the same problem on my Xserve (same config as yours). I've had it happen 3 times now, the first being just after I had updated to 10.4.3. I have not have this problem for the last year+ while running 10.3 and earlier 10.4.
Also like you, I am running unique to this server AFP, Samba, Software Update, iChat and Open Directory Master. I have 4 other servers running 10.4.3 that are not running those servcies and have not had any problem to date. Based upon your report, I would say that the issue is in AFP, Samba, or Software Update. Since I haven't ever used/setup Software Update, I'm turning it off. (It didn't work through 10.4.2 and I don't even know if it works at 10.4.3.)
The error message indicates that there were too many open files on the server. This indicates that a program was running away opening up file after file and the combination with the other processes was to use up all of the available file descriptors in the kernel.
My problem is that I don't know what application was using up all of the descriptors. -
I am using "pages" version 5.5 (2109) as updated in its newest version after installing Yosemite OS X 10.10 on my 21.5 inch Mac desktop computer. When I printing the second file as a two sided document on a single sheet of paper, it only printed the first side. I looked at the copy of the file on my screen, and saw that the second page was also blank on my screen. I opened the original locked version of the 68 row, 4 column table, and found that both pages, 34 rows on each page, were intact, but when I saved it again, locked it, and reopened a duplicate copy, the second page again was not there. I ended up printing a copy of the original file, but I am nit able to save more than one page of the two page original. I would like to do this so I can edit the list without altering the original. I would eventually like to merge all four tables into one document, than arrange the entire merged file in alphabetical order. I would like to do this and have not been able to. This was the original question I had before I lost the second page of the second file table.
In general theory, one now has the Edit button for their posts, until someone/anyone Replies to it. I've had Edit available for weeks, as opposed to the old forum's ~ 30 mins.
That, however, is in theory. I've posted, and immediately seen something that needed editing, only to find NO Replies, yet the Edit button is no longer available, only seconds later. Still, in that same thread, I'd have the Edit button from older posts, to which there had also been no Replies even after several days/weeks. Found one that had to be over a month old, and Edit was still there.
Do not know the why/how of this behavior. At first, I thought that maybe there WAS a Reply, that "ate" my Edit button, but had not Refreshed on my screen. Refresh still showed no Replies, just no Edit either. In those cases, I just Reply and mention the [Edit].
Also, it seems that the buttons get very scrambled at times, and Refresh does not always clear that up. I end up clicking where I "think" the right button should be and hope for the best. Seems that when the buttons do bunch up they can appear at random around the page, often three atop one another, and maybe one way the heck out in left-field.
While I'm on a role, it would be nice to be able to switch between Flattened and Threaded Views on the fly. Each has a use, and having to go to Options and then come back down to the thread is a very slow process. Jive is probably incapable of this, but I can dream.
Hunt -
SQL0968C The file system is full
Hi All,
In our BI pre-prod system we trying to test the BI data load.
It stopped giving this error in SM21
Database error -968 at FET
SQL0968C The file system is full. SQLSTATE=57011
Database error -968.
Our BI is 7.0 version ,DB2 8.1, AIX 5.3.
I checked in db2diag.log and found that temporary tablespace was full at that time.
Following is some example from db2diag.log.
2007-06-18-21.00.17.073907+060 E154034841A701 LEVEL: Error
PID : 528538 TID : 1 PROC : db2pclnr 0
INSTANCE: db2fbr NODE : 000
FUNCTION: DB2 UDB, buffer pool services, sqlbClnrAsyncWriteCompletion, probe:0
MESSAGE : ADM6017E The table space "PSAPTEMP16" (ID "3") is full. Detected on
container "/db2/FBR/saptemp1/NODE0000/temp16/PSAPTEMP16.container000"
(ID "0"). The underlying file system is full or the maximum allowed
space usage for the file system has been reached. It is also possible
that there are user limits in place with respect to maximum file size
and these limits have been reached.
But we tested the same load before with approximatly same amount of data but dont know why its giving the problem this time.
How to solve this temporary tablespace issue is it require to increase the filsystem size. tablespace is in autoextent mode and fiesystem is still 20GB free.
Regards,
ManishHi Manish,
when looking at the error message <a href="http://publib.boulder.ibm.com/infocenter/db2luw/v9/topic/com.ibm.db2.udb.msg-search.doc/doc/sql0968-sch.htm?resultof=%22%53%51%4c%30%39%36%38%43%22%20%22%73%71%6c%30%39%36%38%63%22%20">SQL0968C</a>, the documentation states the following:
SQL0968C
The file system is full.
Explanation:
<b>One of the file systems containing the database is full. This file system may contain the database directory, the database log files, or a table space container.</b>
The statement cannot be processed.
User response:
Free system space by erasing unwanted files. Do not erase database files. If additional space is required, it may be necessary to drop tables and indexes identified as not required.
On unix-based systems, this disk full condition may be due to exceeding the maximum file size allowed for the current userid. Use the chuser command to update fsize. A reboot may be necessary.
This disk full condition may be caused when containers are of varying sizes. If there is sufficient space in the file system, drop the table space and recreate it with containers of equal size.
sqlcode: -968
sqlstate: 57011
Please check also the other filesystems that belong to the database, not only the one where PSAPTEMP16 is included.
Check, if you are using quotas in your system.
Kind regards
Waldemar Gaida -
I am working on a web app which uses the SunONE directory server for
some authorization. Sometimes it happens that the webserver just hangs
with no errors in the webserver log. In the slapd error logs I do see
the following exceptions :
PR_Accept() failed, error -5971 (Process open FD table is full.)
I am not sure why is this happening? What could be the problem? I am
assuming FD means the file descriptor? One bug we found in the app is
that it tries to add a new user in the LDAP even if its there. I do get
"add value to attribute type nsRoleDN in entry .....: duplicate value"
exceptions, but thought its harmless. Could this exception be causing
something?Hi,
I had exactly the same error message. I did not find the cause of this after spending a lot of time looking around. I only know it is a file descriptor table problem. The sun one directory server access log, however, did not have the number of file descriptors count reached maximum. I am very much puzzled by this. Did you find out why yet?
u4me2 -
Hello !
sun directory server 5.2 patch 6
linux redhat 3.7
My directory server was out yesterday.
Here is the error message :
[10/Dec/2008:17:35:24 +0100] - ERROR<12289> - Connection - conn=-1 op=-1 msgId=-1 - PR_Accept() failed, error -5971 (Process open FD table is full.)
[10/Dec/2008:17:35:24 +0100] - ERROR<12289> - Connection - conn=-1 op=-1 msgId=-1 - PR_Accept() failed, error -5971 (Process open FD table is full.)
[10/Dec/2008:17:35:24 +0100] - ERROR<12289> - Connection - conn=-1 op=-1 msgId=-1 - PR_Accept() failed, error -5971 (Process open FD table is full.)
Parameter from the dse.ldif :
nsslapd-maxdescriptors: 1024
System parameter :
ulimit -a | grep open
open files (-n) 65536
Common error rfering to sun's documentation :
12289: PR_Accept() failed error variable (variable)
Cause:
The problem depends on the variable and is based on the Netscape Portable Runtime (NSPR) error layer.
Solution:
If you determine that the cause of the problem is that the TCP port to which you are attempting to bind is already in use, consider the following actions.
* Restart the server, using a different port.
* Stop the application bound to that port and restart the server.
But it doesn't explain my problem because the port (389) is not in use. The problem is due to the number of open file...
What is the best practice on this parameter ? (sun directory + operating system)
The process slapd runs using another user as root
ThanksWell, you should monitor your number of concurrent connections to the directory and where they come from in order to determine if they're legitimate or not.
Then, among the legitimate connections, may be some of them are idle, something that you can also easily see through the console or the cn=monitor tree.
If so, consider using idle timeouts at the user or directory level.
Finally, if you really need to have a large number of simultaneous open connections, increase nsslapd-maxdescriptor to something your hardware can afford,
up to the configured system limit (a bit less actually).
Also notice you can sometimes lower the number of fd's used by the directory by adjusting (to a lower value than the default of 2 hours) the TCP time wait timeout.
It could help in the situation where you see lots of connections in this state .
Hope this helps . -
Importing a user table from full export
if i prefer full exoprt with the command given below
exp "'/ as sysdba'" file=aaa.dmp full=y compress=y log=aaa.log
how can i import a table T under a given user schema U?use parameters
- fromuser=U, touser=<yourschema> to indicate the schema
- tables=T -
Hi ,
I am experiencing an issue.One application is running on Solaris which gets the files from another ftp host.
Now i am getting one alert of content **File table overflow.**.But the files are successfully ftp'd.
Can anybody suggest what could be the reason..
Thanks in advance
Regards
SitiIt looks like the file table that manages your server socket connections is full. You could always get around this by implementing your own subclass of ServerSocket
-
Concurrent Request 를 처리하는 File과 Tables
제품 : AOL
작성날짜 : 2003-12-02
Concurrent Request 를 처리하는 File과 Tables
=================================================
PURPOSE
이 Note는 Concurrent Reqeust output & Log 의 저장위치와 DB내 저장되는
Object들에 대한 설명입니다. Purge Concurrent Request and Output을 실행할때 다음 table들의 해당 record들이 삭제됩니다.
Explanations
- FND_CONCURRENT_REQUESTS
This table contains a complete history of all concurrent requests and
stores information about all submitted jobs(requested directly or by a
report set) within applications.
There's one request_id for each requested job in this tables.
- FND_RUN_REQUESTS
When a user submits a report set, this table stores information about the
reports in the report set and the parameter values for each report.
Stores information about all request sets submittted within applications.
Columns parent_request_id and request_id reflect the job# for the
report-set and the jobs it calls to.
- FND_CONC_REQUEST_ARGUMENTS
This table records arguments passed by the concurrent manager to each program
it starts running.
FND_DUAL
This table records when requests do not update database tables.
FND_CONCURRENT_PROCESSES
This table records information about Oracle Applications and operating system
processes.
FND_CONC_STAT_LIST
This table collects runtime performance statistics for concurrent requests.
FND_CONC_STAT_SUMMARY
This table contains the concurrent program performance statistics generated by
the Purge Concurrent Request and/or Manager Data program.
The Purge Concurrent Request and/or Manager Data program uses the data in
FND_CONC_STAT_LIST to compute these statistics.
FND_CONC_PP_ACTIONS
Stores the post request processing actions(e.g., print, notify) for each
submitted request. There's a concurrent_request_id here for each request_id
in the FND_CONCURRENT_REQUESTS.
FND_RUN_REQ_PP_ACTIONS
Stores the post request processing actions(e.g., print, notify) for
submitted request set programs that are stored in FND_RUN_REQUESTS.
Reference Documents
Note 132823.1 -
INDEX UNIQUE SCAN instead of INDEX FULL SCAN or TABLE ACCESS FULL
I have calculated statistics in all tables and indexes
I have a table and a view and when I put it
SELECT *
FROM TABLE_A A
INNER JOIN VIEW_B B ON A.KEY_ID = B.PFK_KEY_ID
WHERE (B.FK_ID_XXX = 1)
If I see the execution plan:
In TABLE_A make a
TABLE ACCESS BY INDEX ROWID
INDEX UNIQUE SCAN (FIELD_A_TABLE_A_PK)
Itâs OK. I NEED IT (INDEX UNIQUE SCAN)
But If I put
SELECT A.Field_1, A.Field_2, A.Field_3, A.Field_4
FROM TABLE_A A
INNER JOIN VIEW_B B ON A.KEY_ID = B.PFK_KEY_ID
WHERE (B.FK_ID_XXX = 1)
In table A make a TABLE ACCESS FULL.
Then If I put:
SELECT /*+ INDEX(A FIELD_A_TABLE_A_PK) */ A.Field_1, A.Field_2, A.Field_3, A.Field_4
FROM TABLE_A A
INNER JOIN VIEW_B B ON A.KEY_ID = B.PFK_KEY_ID
WHERE (B.FK_ID_XXX = 1)
If I see the execution plan:
In TABLE_A make a
TABLE ACCESS BY INDEX ROWID
INDEX UNIQUE SCAN (FIELD_A_TABLE_A_PK)
Itâs OK. I NEED IT (INDEX UNIQUE SCAN)
Finally, If I put other tables and views in the query (I NEED IT)
For example:
SELECT /*+ INDEX(A FIELD_A_TABLE_A_PK) */ A.Field_1, A.Field_2, A.Field_3, A.Field_4
FROM TABLE_A A
INNER JOIN VIEW_B B ON A.KEY_ID = B.PFK_KEY_ID
INNER JOIN TABLE_Câ¦.
LEFT JOIN VIEW_Dâ¦.
WHERE (B.FK_ID_XXX = 1)
If I see the execution plan:
In TABLE_A make a
TABLE ACCESS BY INDEX ROWID
INDEX FULL SCAN (FIELD_A_TABLE_A_PK)
I need INDEX UNIQUE SCAN instead of INDEX FULL SCAN or TABLE ACCESS FULL.
How can obtain it?
What happens???
Thanks!Notice the difference in cardinality between your two select statements:
SELECT STATEMENT, GOAL = ALL_ROWS Cost=5 Cardinality=1
SELECT STATEMENT, GOAL = ALL_ROWS Cost=10450 Cardinality=472161Apparently since the optimizer believed the first statement was going to return one row, it used an index. But in the second statement it believed it was going to return nearly the whole table (didn't you say it had around 500k rows?). Hence full table scan. -
How to convert a PDF file into a full editable WORD file?
Hi,
I tried to convert a pdf file into word but it is not fully editable. I can edit the title from the main page and that's it. The rest of the word document is saved as image. I tried editing teh pdf file but that one is not working either.
Please help on how to convert a PDF file into a full editable WORD file.
Thank youNot all PDF files are created equal. When a PDF file is created with Adobe Tools it is usually "tagged" with information about the fonts the images, the layout etc... This way when the PDF is saved to a new format like PPT or DOC then the results are usually usable. However, if you have a PDF file that was not tagged for some reason then run the Accessibility tools on the PDF to acquire some basic tagging. This may get you a better result. Also if you have a PDF that is an image, then you may want to run OCR on it.
-
Corrupted Master File Table on External Hard-Drive(NTFS)
You could try some data recover software, it should be able to copy the data off for you (as long as there are no physical problems with the HD). Recuva is free, Rstudio is also very good. You will need to have enough space available on another drive to restore the data to.
Best of luck with it! :)First off I want to apologize if I sound inexperienced, this is my first time posting on Spiceworks and I have only been in IT for a year as an intern.So here is my problem, I have an external hard-drive that I use as a secondary drive for storage. The other day I went to get something off it when I noticed that I could not access the drive through file explorer. It came up with an error saying "Data error (cycle redundancy check).".
I proceeded to google the problem since I have not seen the error before and found many forums telling me to run a check disk on the drive with /f to fix the errors on the disk. I run the chkdsk and I get the following error"Corrupt master file table. Windows will attempt to recover master file table from disk. Windows cannot recover master file table. CHKDSK aborted".
I then booted my machine into a...
This topic first appeared in the Spiceworks Community -
Oracle 9.2 prefers Table Access Full over Local Index by rowid access
There's this table that has phone call records (30 million per day) that is partitioned by month (using the date column) and stores the last 6 months.
The primary key is date (varchar2 in yymmdd format) + call_id (a varchar2(18) with a format like this yyyymmdd+<3letters>+<sequentialnumber>)
The partition is by range like this:
PARTITION BY RANGE (FECHA)
PARTITION P200804 VALUES LESS THAN ('080501')
LOGGING
NOCOMPRESS,
If I run this query I get this plan
SELECT FECHA, SENTIDOTRAFICO,GEOGRAFIAID,SWITCHID,TIPOTRAFICOID,COUNT(*)
FROM GES_CDRS_RCNG_NEW
WHERE FECHA BETWEEN '080801' AND '080825'
AND TASACION IS NULL
AND BORRADO IS NULL
GROUP BY FECHA, SENTIDOTRAFICO,GEOGRAFIAID,SWITCHID,TIPOTRAFICOID
Plan
SELECT STATEMENT CHOOSECost: 78 K Bytes: 24 K Cardinality: 1 K
2 SORT GROUP BY Cost: 78 K Bytes: 24 K Cardinality: 1 K
1 TABLE ACCESS FULL GESTION.GES_CDRS_RCNG_NEW Cost: 43 K Bytes: 625 M Cardinality: 31 M Partition #: 2 Partitions accessed #5
If I hint the primary key index using /*+INDEX(GES_CDRS_RCNG_NEW PK_CDRS_RCNG_NEW)*/
I get a different plan
Plan
SELECT STATEMENT CHOOSECost: 954 K Bytes: 24 K Cardinality: 1 K
3 SORT GROUP BY Cost: 954 K Bytes: 24 K Cardinality: 1 K
2 TABLE ACCESS BY LOCAL INDEX ROWID GESTION.GES_CDRS_RCNG_NEW Cost: 918 K Bytes: 625 M Cardinality: 31 M Partition #: 2 Partitions accessed #5
1 INDEX RANGE SCAN UNIQUE GESTION.PK_CDRS_RCNG_NEW Cost: 137 K Cardinality: 31 M Partition #: 3 Partitions accessed #5
Looking at the cost, the full scan is way better, but this is obviously not the case. Why does this happen?
This problem forces many querys on this table to use hints or force the index use by adding conditions to the where clause like this
where fecha = '080801'
and clave like '20080801%'
when just by stating the date would be enough to choose the correct partition. It also messes up joins with other tables.
The table is analized every month, it has statistics that claim: 237,981,000 rows, 3,222,677 blocks, GLOBAL STATS: YES, LAST ANALYZED: 15/10/2008 21:05:26, Average row length: 213.
The partition envolved in this query has this stats: 32,520,520 rows, 442,715 blocks, analized on 27/08/2008 20:43:40
The index has this stats: analized on 15/10/2008 21:35:32, Blevel: 3, leaf blocks: 1,056,410, distinct keys: 238,484,510.
It is a local index and each partition has its own statistics.If I don't understand incorrectly the plan and the Predicater information, it seems the full scan version that costs less is actually doing a full scan from the biggining of the table (6 months) up to the 080825 date and the one using an index (hinted) does a better scan.
without hint
| Id | Operation | Name | Rows | Bytes | Cost | Pstart| Pstop |
| 0 | SELECT STATEMENT | | 1170 | 24570 | 78443 | | |
| 1 | SORT GROUP BY | | 1170 | 24570 | 78443 | | |
|* 2 | TABLE ACCESS FULL | GES_CDRS_RCNG_NEW | 31M| 625M| 42579 | 5 | 5 |
Predicate Information (identified by operation id):
2 - filter("GES_CDRS_RCNG_NEW"."FECHA"<='080825')
Note: cpu costing is offWith the hint:
| Id | Operation | Name | Rows | Bytes | Cost | Pstart| Pstop |
| 0 | SELECT STATEMENT | | 1170 | 24570 | 953K| | |
| 1 | SORT GROUP BY | | 1170 | 24570 | 953K| | |
| 2 | TABLE ACCESS BY LOCAL INDEX ROWID| GES_CDRS_RCNG_NEW | 31M| 625M| 918K| 5 | 5 |
|* 3 | INDEX RANGE SCAN | PK_CDRS_RCNG_NEW | 31M| | 136K| 5 | 5 |
Predicate Information (identified by operation id):
3 - access("GES_CDRS_RCNG_NEW"."FECHA">='080801' AND "GES_CDRS_RCNG_NEW"."FECHA"<='080825')
Note: cpu costing is off
Maybe you are looking for
-
LR 4 geneerating multiple duplicates in library-8-10 dups of exact same photos that I have not accessed at all in recent past.Over whelming my hard drive!! Rendering LR useless. 1.5 TB HD nearly full-started with +/- 300 GB
-
Hi, Yesterday my Windows Live for Nokia S60 version 1.0.8161, stopped working. Also My MSN on windows 2000 Pro, stopped working, but after looking at : http://www.microsoft.com/technet/security/bulletin/ms07-054.mspx and update to build 820 it worke
-
Custom fields for FV50 table control
Hello, The customer has a requirement to add 3 text fields to the table control in Transaction FV50. These fields are currently not available in the table control at all (I checked the Table settings Administrator). Further, no Screen/Transaction Var
-
Opportunities in CRM Technical
Hi, would like to know about opportunities in CRM Technical. Regards, Sandesh.
-
NAC - Using ActiveX web agent with low level user
Hi: I have NAC installed in-band and running. We have a group of test taker with user rights to the PC. The ActiveX web agent will not load and the Java agent does not start. Any suggestion o dealing with some low secuirty issue and the browser. Than