What are indexes
Hi Forum,
will any one please explain what are INDEXES.what are their USES, why do we create them and why do we drop them.any step by step procedure available to create them and drop them.at the same what are BW STATISTICS and what are their uses and how do we create them.
The only way i say thanx to help full answers is by assigning points.
Regds
Suhel
[email protected]
Hi Mohammad,
Creating and deleting indexes come with automatically when you design the process chains with your transaction data...
Both these (deleting and re-creating indexes) are used for the betterment of the BW system performance but in different areas..
for instance, its a usual practise to delete the indexes before loading a huge set of transaction data otherwise data loading will consume a huge amount of time to load each and every record based on the index that is already existing in the infocube... a record will go and sit inside the cube based on the indexes created for this cube... so its always advised to delete the indices before loading a huge set of data to improve the performance of data loading..
Now, the purpose of re-creating the indices after the data has been loaded is required in order to make data retrieval comparitively easier (during reporting).. When a query is being executed, data retrieval will always be faster when indices are created for the cube.. so that records are fetched based on the indices thats created for the cube instead searching the entire cube..
Hence, deleteing the indices before data loading enhances the performance of data loading and re-creating the indices after the data has been loaded improves the performance of data retrieval..
Hope it answers your question..
Regards
Manick
Similar Messages
-
Hi Experts,
Could any body tell me what are indexes .
What EXACTLY happens when we create the a indexs on a cube.?
Regards,
RGHi Friend,
Indices are used to locate needed records in a data-base table quickly.BW uses two types of indices, B-tree indices for regular database tables and bitmap indices for fact tables and aggregates tables.
These Bitmap indices cannot able to handle any inserts, updates, deletion. Bcoz of that we have to delete the indices before loading and have to rebuild it after loading.
But if u use the B-Tree indices there is no need for deletion of indices as B-tree can able to handle it very well.
B-tree indices: B-tree indices are used when dealing with huge volume of data. Line Item dimensions use B-tree indices.
Bitmap indices: for fact tables and aggregate tables: This is for regular database tables. Bitmap Indices can dramatically improve query performance when table columns contain few distinct values. Except LID other dimensions use bitmap indices
Thanks -
What are the disadvantages of secondary index
Hi all,
Can anybody tell me what are the disadvantages of creating secondary index?
Also tell me what are the precautions should be taken to create a secondary index?Hi Vinil,
You can search on SCN with the same subject... you will get lots of threads discussed on it...
Still for your reference...
secondary indices use disk space, not memory space. They are only in memory when they are used. Disk space is roughly width times number of records, can be GBs.
Main disadvantages are:
+ indexes are updated when table is changed, i.e. the additional index makes other operations slower. You must check the importance of your application, if it is much lower than the standard usage than you can not create a secondary index.
+ Secondary indices can confuse the database optimzer, especially if you use field which appear also in other indices. DB calculates usefulness of different indices by some assumptions (check other sources for details), if two indices are similar, than the assumptions can lead to wrong decisions. Your new index can be used for other statements, even when it is not optimal there. Result your index causes problems somewhere else!
Hope it will solve your problem..
Thanks & Regards
ilesh 24x7
ilesh Nandaniya -
What Are the Index Values of the MTTR and MTBF of the MA5600?
What Are the Index Values of the MTTR and MTBF of the MA5600?
The networking environments are different and the device uses different boards. Therefore, the reference value of the MTBF of the MA5600 is 55 years and the reference value of the MTTR of the Field Replaceable Unit (FRU) is two hours. The preceding values
are only for reference. For details, contact the related Huawei engineers.
http://www.huanetwork.com/smartax-ma5600-series-price_c43 -
Last week what are the new indexes created in my database
last week what are the new indexes created in my database.How can I know?
ThanksPlease try this:
SELECT t.name AS TableName ,
ind.name AS IndexName ,
col.name AS ColumnName ,
STATS_DATE(t.object_id, ind.index_id) AS IndexCreationDate
FROM sys.indexes ind
INNER JOIN sys.index_columns ic ON ind.object_id = ic.object_id
AND ind.index_id = ic.index_id
INNER JOIN sys.columns col ON ic.object_id = col.object_id
AND ic.column_id = col.column_id
INNER JOIN sys.tables t ON ind.object_id = t.object_id
WHERE ind.is_primary_key = 0
AND ind.is_unique = 0
AND ind.is_unique_constraint = 0
AND t.is_ms_shipped = 0
AND STATS_DATE(t.object_id, ind.index_id) > ( GETDATE() - 7 ) ;
T-SQL Articles
T-SQL e-book by TechNet Wiki Community
T-SQL blog -
What are Crawlers(Task/Process) and how they take part during indexing
Hi,
I'm new to TREX search Engine. i want to know that what are Crawlers task and how & when they perform their duties after the DataSource is assigned to a newly created index. I mean to say, how they are closely related to search indexes.
Regards
Nitin Mishrahi,
The crawler only searches Web sites or parts of Web sites that are not protected by robot instructions. Robot instructions are part of Internet standards. They allow Web site owners to permit or forbid the crawling of their sites or parts thereof
Depending on the type of repository, you may have to set up a crawler and a schedule.
For Web repositories, the index is updated using a crawler. If you are assigning a Web repository to an index for the first time, it is indexed immediately. You then need to regularly schedule the crawler so that the index is updated.
For hierarchical repositories, the index is updated by using events. Therefore, it is not absolutely necessary that the crawler be started at regular intervals. However, you can start the crawler at regular intervals in order to make changes in the index for which no event is triggered. This can be the case if documents have been created, changed, or deleted directly in the file system without using Knowledge Management.
Regards,
Ganesh N -
hi can you tell me
1.what is index oragnized table
2. fragmentation of table
3. what is cascading trigger meanHi,
For this points a good starting point are Oracle Manuals. For index organizated tables check this link [Overview of Index-Organized Tables|http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/schema.htm#sthref1044].
Cascading triggers should be avoided, see this link [Some Cautionary Notes about Triggers|http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/triggers.htm#sthref3187]
Regards,
Edited by: Walter Fernández on Jan 28, 2009 4:21 PM - Adding information about cascading triggers -
What are differences between the target tablespace and the source tablespac
The IMPDP command create so manay errors. But the EXAMPLE tablespace is transported to the target database successfully. It seems that the transported tablespace is no difference with the source tablespace.
Why create so many errors?
How to avoid these errors?
What are differences between the target tablespace and the source tablespace?
Is this datapump action really successfull?
Thw following is the log output:
[oracle@hostp ~]$ impdp system/oracle dumpfile=user_dir:demo02.dmp tablespaces=example remap_tablespace=example:example
Import: Release 10.2.0.1.0 - Production on Sunday, 28 September, 2008 18:08:31
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
Master table "SYSTEM"."SYS_IMPORT_TABLESPACE_01" successfully loaded/unloaded
Starting "SYSTEM"."SYS_IMPORT_TABLESPACE_01": system/******** dumpfile=user_dir:demo02.dmp tablespaces=example remap_tablespace=example:example
Processing object type TABLE_EXPORT/TABLE/TABLE
ORA-39117: Type needed to create table is not included in this operation. Failing sql is:
CREATE TABLE "OE"."CUSTOMERS" ("CUSTOMER_ID" NUMBER(6,0), "CUST_FIRST_NAME" VARCHAR2(20) CONSTRAINT "CUST_FNAME_NN" NOT NULL ENABLE, "CUST_LAST_NAME" VARCHAR2(20) CONSTRAINT "CUST_LNAME_NN" NOT NULL ENABLE, "CUST_ADDRESS" "OE"."CUST_ADDRESS_TYP" , "PHONE_NUMBERS" "OE"."PHONE_LIST_TYP" , "NLS_LANGUAGE" VARCHAR2(3), "NLS_TERRITORY" VARCHAR2(30), "CREDIT_LIMIT" NUMBER(9,2), "CUST_EMAIL" VARCHAR2(30), "ACCOUNT_MGR_ID" NU
ORA-39117: Type needed to create table is not included in this operation. Failing sql is:
ORA-39117: Type needed to create table is not included in this operation. Failing sql is:
CREATE TABLE "IX"."ORDERS_QUEUETABLE" ("Q_NAME" VARCHAR2(30), "MSGID" RAW(16), "CORRID" VARCHAR2(128), "PRIORITY" NUMBER, "STATE" NUMBER, "DELAY" TIMESTAMP (6), "EXPIRATION" NUMBER, "TIME_MANAGER_INFO" TIMESTAMP (6), "LOCAL_ORDER_NO" NUMBER, "CHAIN_NO" NUMBER, "CSCN" NUMBER, "DSCN" NUMBER, "ENQ_TIME" TIMESTAMP (6), "ENQ_UID" VARCHAR2(30), "ENQ_TID" VARCHAR2(30), "DEQ_TIME" TIMESTAMP (6), "DEQ_UID" VARCHAR2(30), "DEQ_
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
. . imported "SH"."CUSTOMERS" 9.850 MB 55500 rows
. . imported "SH"."SUPPLEMENTARY_DEMOGRAPHICS" 695.9 KB 4500 rows
. . imported "OE"."PRODUCT_DESCRIPTIONS" 2.379 MB 8640 rows
. . imported "SH"."SALES":"SALES_Q4_2001" 2.257 MB 69749 rows
. . imported "SH"."SALES":"SALES_Q1_1999" 2.070 MB 64186 rows
. . imported "SH"."SALES":"SALES_Q3_2001" 2.129 MB 65769 rows
. . imported "SH"."SALES":"SALES_Q1_2000" 2.011 MB 62197 rows
. . imported "SH"."SALES":"SALES_Q1_2001" 1.964 MB 60608 rows
. . imported "SH"."SALES":"SALES_Q2_2001" 2.050 MB 63292 rows
. . imported "SH"."SALES":"SALES_Q3_1999" 2.166 MB 67138 rows
Processing object type TABLE_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
ORA-39083: Object type OBJECT_GRANT failed to create with error:
ORA-01917: user or role 'USER1' does not exist
Failing sql is:
GRANT SELECT ON "HR"."REGIONS" TO "USER1"
ORA-39083: Object type OBJECT_GRANT failed to create with error:
ORA-01917: user or role 'EXAM_03' does not exist
Failing sql is:
GRANT SELECT ON "HR"."REGIONS" TO "EXAM_03"
ORA-39083: Object type OBJECT_GRANT failed to create with error:
ORA-01917: user or role 'USER1' does not exist
Failing sql is:
GRANT SELECT ON "HR"."COUNTRIES" TO "USER1"
ORA-39083: Object type OBJECT_GRANT failed to create with error:
ORA-01917: user or role 'EXAM_03' does not exist
Failing sql is:
GRANT SELECT ON "HR"."COUNTRIES" TO "EXAM_03"
ORA-39083: Object type OBJECT_GRANT failed to create with error:
ORA-01917: user or role 'USER1' does not exist
Failing sql is:
GRANT SELECT ON "HR"."LOCATIONS" TO "USER1"
ORA-39083: Object type OBJECT_GRANT failed to create with error:
ORA-01917: user or role 'EXAM_03' does not exist
Failing sql is:
GRANT SELECT ON "HR"."LOCATIONS" TO "EXAM_03"
ORA-39083: Object type OBJECT_GRANT failed to create with error:
ORA-01917: user or role 'USER1' does not exist
Failing sql is:
GRANT SELECT ON "HR"."DEPARTMENTS" TO "USER1"
ORA-39083: Object type OBJECT_GRANT failed to create with error:
ORA-01917: user or role 'EXAM_03' does not exist
Failing sql is:
GRANT SELECT ON "HR"."DEPARTMENTS" TO "EXAM_03"
ORA-39083: Object type OBJECT_GRANT failed to create with error:
ORA-01917: user or role 'USER1' does not exist
Failing sql is:
GRANT SELECT ON "HR"."JOBS" TO "USER1"
ORA-39083: Object type OBJECT_GRANT failed to create with error:
ORA-01917: user or role 'EXAM_03' does not exist
Failing sql is:
GRANT SELECT ON "HR"."JOBS" TO "EXAM_03"
ORA-39083: Object type OBJECT_GRANT failed to create with error:
ORA-01917: user or role 'USER1' does not exist
Failing sql is:
GRANT SELECT ON "HR"."EMPLOYEES" TO "USER1"
ORA-39083: Object type OBJECT_GRANT failed to create with error:
ORA-01917: user or role 'EXAM_03' does not exist
Failing sql is:
GRANT SELECT ON "HR"."EMPLOYEES" TO "EXAM_03"
ORA-39083: Object type OBJECT_GRANT failed to create with error:
ORA-01917: user or role 'USER1' does not exist
Failing sql is:
GRANT SELECT ON "HR"."JOB_HISTORY" TO "USER1"
ORA-39083: Object type OBJECT_GRANT failed to create with error:
ORA-01917: user or role 'EXAM_03' does not exist
Failing sql is:
GRANT SELECT ON "HR"."JOB_HISTORY" TO "EXAM_03"
ORA-39112: Dependent object type OBJECT_GRANT:"OE" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
ORA-39112: Dependent object type OBJECT_GRANT:"OE" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
ORA-39112: Dependent object type INDEX:"OE"."CUSTOMERS_PK" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
ORA-39112: Dependent object type INDEX:"OE"."CUST_ACCOUNT_MANAGER_IX" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
ORA-39112: Dependent object type INDEX:"OE"."CUST_LNAME_IX" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
ORA-39112: Dependent object type INDEX:"OE"."CUST_EMAIL_IX" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
ORA-39112: Dependent object type INDEX:"PM"."PRINTMEDIA_PK" skipped, base object type TABLE:"PM"."PRINT_MEDIA" creation failed
Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
ORA-39112: Dependent object type CONSTRAINT:"OE"."CUSTOMER_CREDIT_LIMIT_MAX" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
ORA-39112: Dependent object type CONSTRAINT:"OE"."CUSTOMER_ID_MIN" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
ORA-39112: Dependent object type CONSTRAINT:"OE"."CUSTOMERS_PK" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
ORA-39112: Dependent object type CONSTRAINT:"PM"."PRINTMEDIA__PK" skipped, base object type TABLE:"PM"."PRINT_MEDIA" creation failed
ORA-39112: Dependent object type CONSTRAINT:"IX"."SYS_C005192" skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
ORA-39112: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"OE"."CUSTOMERS_PK" creation failed
ORA-39112: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"OE"."CUST_ACCOUNT_MANAGER_IX" creation failed
ORA-39112: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"OE"."CUST_LNAME_IX" creation failed
ORA-39112: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"OE"."CUST_EMAIL_IX" creation failed
ORA-39112: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"PM"."PRINTMEDIA_PK" creation failed
Processing object type TABLE_EXPORT/TABLE/COMMENT
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
ORA-39112: Dependent object type REF_CONSTRAINT:"OE"."CUSTOMERS_ACCOUNT_MANAGER_FK" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
ORA-39083: Object type REF_CONSTRAINT failed to create with error:
ORA-00942: table or view does not exist
Failing sql is:
ALTER TABLE "OE"."ORDERS" ADD CONSTRAINT "ORDERS_CUSTOMER_ID_FK" FOREIGN KEY ("CUSTOMER_ID") REFERENCES "OE"."CUSTOMERS" ("CUSTOMER_ID") ON DELETE SET NULL ENABLE
ORA-39112: Dependent object type REF_CONSTRAINT:"PM"."PRINTMEDIA_FK" skipped, base object type TABLE:"PM"."PRINT_MEDIA" creation failed
Processing object type TABLE_EXPORT/TABLE/TRIGGER
ORA-39082: Object type TRIGGER:"HR"."SECURE_EMPLOYEES" created with compilation warnings
ORA-39082: Object type TRIGGER:"HR"."SECURE_EMPLOYEES" created with compilation warnings
ORA-39082: Object type TRIGGER:"HR"."UPDATE_JOB_HISTORY" created with compilation warnings
ORA-39082: Object type TRIGGER:"HR"."UPDATE_JOB_HISTORY" created with compilation warnings
Processing object type TABLE_EXPORT/TABLE/INDEX/FUNCTIONAL_AND_BITMAP/INDEX
ORA-39112: Dependent object type INDEX:"OE"."CUST_UPPER_NAME_IX" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/FUNCTIONAL_AND_BITMAP/INDEX_STATISTICS
ORA-39112: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"OE"."CUST_UPPER_NAME_IX" creation failed
Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
ORA-39112: Dependent object type TABLE_STATISTICS skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
ORA-39112: Dependent object type TABLE_STATISTICS skipped, base object type TABLE:"PM"."PRINT_MEDIA" creation failed
ORA-39112: Dependent object type TABLE_STATISTICS skipped, base object type TABLE:"PM"."PRINT_MEDIA" creation failed
ORA-39112: Dependent object type TABLE_STATISTICS skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
Processing object type TABLE_EXPORT/TABLE/INDEX/DOMAIN_INDEX/INDEX
Processing object type TABLE_EXPORT/TABLE/POST_INSTANCE/PROCACT_INSTANCE
ORA-39112: Dependent object type PROCACT_INSTANCE skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
ORA-39083: Object type PROCACT_INSTANCE failed to create with error:
ORA-01403: no data found
ORA-01403: no data found
Failing sql is:
BEGIN
SYS.DBMS_AQ_IMP_INTERNAL.IMPORT_SIGNATURE_TABLE('AQ$_ORDERS_QUEUETABLE_G');COMMIT; END;
Processing object type TABLE_EXPORT/TABLE/POST_INSTANCE/PROCDEPOBJ
ORA-39112: Dependent object type PROCDEPOBJ:"IX"."AQ$_ORDERS_QUEUETABLE_V" skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
ORA-39112: Dependent object type PROCDEPOBJ:"IX"."ORDERS_QUEUE_N" skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
ORA-39112: Dependent object type PROCDEPOBJ:"IX"."ORDERS_QUEUE_R" skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
ORA-39112: Dependent object type PROCDEPOBJ:"IX"."AQ$_ORDERS_QUEUETABLE_E" skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
ORA-39112: Dependent object type PROCDEPOBJ:"IX"."ORDERS_QUEUE" skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
Job "SYSTEM"."SYS_IMPORT_TABLESPACE_01" completed with 63 error(s) at 18:09:14Short of trying to then reverse-engineer the objects that are in the dump file (I believe Data Pump export files contain some XML representations of DDL in addition to various binary bits, making it potentially possible to try to scan the dump file for the object definitions), I would tend to assume that the export didn't include those type definitions.
Since it looks like you're trying to set up the sample schemas, is there a reason that you wouldn't just run the sample schema setup scripts on the destination database? Why are you using Data Pump in the first place?
Justin -
What are these processes and how do I prevent them?
For many years, many have complained of external drives that are in standby/sleep spinning up for no apparent reason. From the user's point of view this is unnecesssary, but to make matters worse, the system usually stops everything else while waiting for the drives.
I have a Mac mini that I use as a home theater pc. The media and backups are on a 5-bay enclosure (no RAID) attached by USB. While watching a video, the unused drives will go into standby mode, which is good. But then, with no user activity, they will spin up, freezing the video and everything else, which is not good. As these are slow drives and spin up sequentially, this can take 10-20 seconds. This may happen once or twice an hour, but sometimes more frequently.
In looking into the causes, I have turned off time Machine (after putting these drives into the Privacy section for good measure). I also prevented Spotlight and fsevents logging with the following:
mdutil -i off /Volumes/<drive1> /Volumes/<drive2> . . .
cd /Volumes/<drive1 and then repeat for other drives>
rm -rf .fseventsd .Spotlight-*
mkdir .fseventsd
touch .fseventsd/no_log .metadata_never_index
As far as I can tell this has worked to stop those processes from accessing the drives after they are mounted, but the problem persists. To find out what else might be causing them to wake up:
sudo fs_usage -w | grep -e Volumes/<drive1> -e /Volumes/<drive2> . . .
and here is what I found last night (actually didn't use the -w last night, thus it is cut off):
18:35:36 fsgetpath /Volumes/XBMC 0.000026 SSDragHelper
18:35:36 fsgetpath /Volumes/Stuff 0.000006 SSDragHelper
18:35:36 fsgetpath /Volumes/DatOptic_3 0.000005 SSDragHelper
18:35:36 fsgetpath /Volumes/MacBackUp 0.000003 SSDragHelper
18:36:15 fsgetpath /Volumes/XBMC 0.000026 System Prefe
18:36:15 fsgetpath /Volumes/Stuff 0.000004 System Prefe
18:36:15 fsgetpath /Volumes/DatOptic_3 0.000003 System Prefe
18:36:15 fsgetpath /Volumes/MacBackUp 0.000003 System Prefe
18:55:36 fsgetpath /Volumes/XBMC 0.000034 GoogleSoftwa
18:55:36 fsgetpath /Volumes/Stuff 0.000004 GoogleSoftwa
18:55:36 fsgetpath /Volumes/DatOptic_3 0.000003 GoogleSoftwa
18:55:36 fsgetpath /Volumes/MacBackUp 0.000003 GoogleSoftwa
After looking into the Google process, I was surprised to find the tentacles that Google puts into your system, and ripped every bit of it out that I could. But I have no idea about what's going on with SSDragHelper and System Prefe (presumable System Preferences). This must be OS X itself? What are these processes doing, and is there any way to prevent them from accessing these disks in this way?Thanks for the reply Hen3ry. Looks like you've done a lot of investigation. For me, fs_usage entries accompanying spindown are not problems - I'm happy if the drives spin down. My problem is the spinups. But still, I don't think it is necessary to time the fs_usage entries with spinups. If you grep for the drives you're concerned about, you will see any process that would potentially wake them up.
Because my understanding is limited, I also am more concerned with the process/application that is accessing the drives than with the functions or commands they are sending. And the values that are returned by those functions are way beyond what I can deal with.
It's interesting that you've found a difference between your old and new drives. Could you specify the enclosure and drives in each case?
The StorageStatus app looks interesting; thanks for the tip.
Here's a summary of what I've done so far, which I think is working. I need a few more weeks to know for sure.
How to prevent unwanted drive spin-ups
If you are actively using the computer that the enclosure is attached to, nothing on God’s green earth will stop OS X from waking them up after some user action, even ones that seem to have nothing to do with the external drives. But if you leave the computer alone while some application is running, like watching a movie or downloading a file, you have a fighting chance of coaxing OS X into leaving the uninvolved drives alone.
If the drives are shared with any other computers over a network, eject them on those computers
Otherwise, OS X (AppleFileServer) will poll them every 10 seconds. This might not be bad if you want to just keep the drives spinning and the other computer stays awake.
Third-party apps
Make sure no apps are running that might access your drives. Google runs some processes that do this (maybe I’m naïve, but I was so shocked I removed chrome and every other trace of Google from my Mac mini system). Another is iStat and any utility that monitors SMART status in the background.
Don’t let Spotlight index or search the drives
Spotlight is persistent, and it may be necessary to take a variety of steps to stop its various processes (mds, mdworker) from accessing the drives and waking them up. In other words, kill it, drive a stake through its heart, then burn the body:
In System Preferences > Spotlight, add the drives to the Privacy pane.
Add a file called .metadata_never_index to the root of each drive (note the leading period). The easiest way to do this is in Terminal
touch /Volumes/<drive1>/.metadata_never_index
Tell Spotlight AGAIN to keep away from the drive:
mdutil -i off /Volumes/<drive1> /Volumes/<drive2> . . .
Finally delete the Spotlight folder from the drive.
rm -rf /Volumes/<drive1>.Spotlight-*
Stop fseventsd from logging in the drive
This is easy, just putting a no_log file in its folder. I have found that rarely it still writes some files in there, but it doesn’t seem to do so when it causes problems, so . . .
rm –rf /Volumes/<drive1>/.fseventsd/*
touch /Volumes/<drive1>/.fseventsd/no_log
Finder sidebar
Some people say that if the drives show in the Sidebar of Finder windows, the Finder will be checking them. I’m not sure. But to be safe, in Finder Preferences > Sidebar, uncheck External Disks.
Just say no to Time Machine
On the home theater mac itself, regular backups shouldn’t be needed. You should be able to just turn Time Machine off. However, it is probably sufficient to simply open System Preferences > Time Machine > Options and add the drives to the list of locations to exclude from backup.
Second, local backups can be disabled with
sudo tmutil disablelocal
Look for other culprits
If the problem persists, use fs_usage, which generates a real-time log of filesystem activity. There is so much going on that you need to use grep to restrict the output to entries that involve your drives. The entries that accompany your drive spin-ups are the ones you really want.
sudo fs_usage -w | grep -e Volumes/<drive1> -e /Volumes/<drive2> . . .
Now leave the keyboard and mouse alone, as many things you might do will cause the drives to be accessed. You probably want to find what does it when you’re not actively interacting with the computer. It’s not really necessary to wait for your drives to sleep and see what wakes them. Any activity you see would probably wake the drives if they were asleep. When you see some activity and want to stop and examine, type Control-C to stop the output. On the far right of each entry is the process or application that accessed the disks.
I got pointers from http://system-log.tyr.org.uk/2012/01/31/how-to-stop-usb-drives-from-spinning-up- unnecessarily-on-os-x-lion/ and http://www.jackenhack.com/disk-that-refuses-to-sleep-in-mac-os-x-how-to-fix-it/ -
My i-phone 5s is not charging because of Sunken pins where the socket is plugged. According Power Mac Center at Green Belt3 even my warranty still open until 30 October they cannot do nothing and refer me to a Toll Free Apple customer Service number in Singapore!!! ..my question for what are they there? not alt all very friendly and helpful!!
Send an e-mail with all this in it directly to Tim Cook. Seriously. You can send e-mail to him.
You might also try this forum here for more ideas: http://forums.macrumors.com/index.php? -
What are the tables and fields in fico & sd module
what are the tables and fields in fico & sd module
Hi,
<b> Sales and Distribution:</b>
Customers KNA1 General Data
KNB1 Customer Master Co. Code Data (payment method, reconciliation acct)
KNB4 Customer Payment History
KNB5 Customer Master Dunning info
KNBK Customer Master Bank Data
KNKA Customer Master Credit Mgmt.
KNKK Customer Master Credit Control Area Data (credit limits)
KNVV Sales Area Data (terms, order probability)
KNVI Customer Master Tax Indicator
KNVP Partner Function key
KNVD Output type
KNVS Customer Master Ship Data
KLPA Customer/Vendor Link
Sales Documents VBAKUK VBAK + VBUK
VBUK Header Status and Administrative Data
VBAK Sales Document Header Data
VBKD Sales Document Business Data
VBUP Item Status VBAP Sales Document Item Data
VBPA Partners
VBFA Document Flow
VBEP Sales Document Schedule Line
VBBE Sales Requirements: Individual Records
SD Delivery DocumeLIPS Delivery Document item data, includes referencing PO
LIKP Delivery Document Header data
Billing Document VBRK Billing Document Header
VBRP Billing Document Item
SD Shipping Unit VEKP Shipping Unit Item (Content)
VEPO Shipping Unit Header
<b>Financial Accounting</b>
FBAS Financial Accounting Basis
BKPF Accounting Document Header BUKRS / BELNR / GJAHR
BSEG Accounting Document Segment BUKRS / BELNR / GJAHR / BUZEI
BSIP Index for Vendor Validation of Double BUKRS / LIFNR / WAERS / BLDAT /
Documents XBLNR / WRBTR / BELNR / GJAHR / BUZEI
BVOR Inter Company Posting Procedure BVORG / BUKRS / GJAHR / BELNR
EBKPF Accounting Document Header (docs from GLSBK / BELNR / GJHAR / GLEBK
External Systems)
FRUN Run Date of a Program PRGID
KLPA Customer / Vendor Linking NKULI / NBUKR / NKOAR / PNTYP
/ VKULI / VBUKR / VKOAR
KNB4 Customer Payment History KUNNR / BUKRS
KNB5 Customer Master Dunning Data KUNNR / BUKRS / MABER
KNBK Customer Master Bank Details KUNNR / BANKS / BANKL / BANKN
KNC1 Customer Master Transaction Figures KUNNR / BUKRS / GJHAR
KNC3 Customer Master Special GL Transactions KUNNR / BUKRS / GJAHR / SHBKZ
Figures
LFB5 Vendor Master Dunning Data LIFNR / BUKRS / MABER
LFBK Vendor Master Bank Details LIFNR / BANKS / BANKL / BANKN
LFC1 Vendor Master Transaction Figures LIFNR / BUKRS / GJHAR
LFC3 Vendor Master Special GL Transactions LIFNR / BUKRS / GJHAR / SHBKZ
Figures
VBKPF Document Header for Document Parking AUSBK / BUKRS / BELNR / GJHAR
FBASCORE Financial Accounting General Services Basis
KNB1 Customer Master (Company Code) KUNNR / BUKRS
LFA1 Vendor Master (General Section) LIFNR
LFB1 Vendor Master (company Code Section) LIFNR / BUKRS
SKA1 G/L Account Master (Chart of Accounts) KTOPL / SAKNR
SKAT G/L Account Master (Chart of Accounts SPRAS / KTOPL / SAKNR
Description)
MAHNS Accounts Blocked by Dunning Selection KOART / BUKRS / KONKO / MABER
MHNK Dunning Data (Account Entries) LAUFD / LAUFI / KOART / BUKRS /
KUNNR / LIFNR / CPDKY / SKNRZE /
SMABER / SMAHSK / BUSAB
FI-GL-GL (FBS) General Ledger Accounting: Basic Functions- G/L Accounts
SKAS G/L Account Master (Chart of Accounts SPRAS / KTOPL / SAKNR / SCHLW
Key Word list)
SKB1 G/L Account Master (Company Code) BUKRS / SAKNR
FI-GL-GL (FBSC) General Ledger Accounting: Basic
Functions - R/3 Customizing for G/L Accounts
FIGLREP Settings for G/L Posting Reports MANDT
TSAKR Create G/L account with reference BUKRS / SAKNR
FI-GL-GL (FFE) General Ledger Accounting: Basic
Functions - Fast Data Entry
KOMU Account Assignment Templates for G/L KMNAM / KMZEI
Account items
FI-AR-AR (FBD) Accounts Receivable: Basic Functions - Customers
KNKA Customer Master Credit Management : KUNNR
Central Data
KNKK Customer Master Credit Management : KUNNR / KKBER
Control Area Data
KNKKF1 Credit Management : FI Status data LOGSYS / KUNNR / KKBER / REGUL
RFRR Accounting Data A/R and A/P RELID / SRTFD / SRTF2
Information System
FI-BL-PT Bank Accounting: Payment (BFIBL_CHECK_D) Transactions General Sections
PAYR Payment Medium File ZBUKR / HBKID / HKTID / RZAWE /
CHECT
PCEC Pre-numbered Check ZBUKR / HBKID / HKTID / STAPL
FI-BL-PT-AP(FMZA)Bank Accounting: Payment Transactions Automatic Payments
F111G Global Settings for Payment Program for MANDT
Payment Requests
FDZA Cash Management Line Items in Payment KEYNO
Requests
PAYRQ Payment Requests KEYNO
Hope this solves your concern...
Regards,
Habeeb
Assign points if helpful -
What are the precautions to be taken to move the objects from BI Dev to Pro
What are the precautions to be taken to move the objects from BI Dev to BI Production.
how to move the objects from BI Dev to BI production.
Thanks
sapsdnhelpHi,
Please check out this PDF
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50b1d20e-c1e8-2c10-d9b9-d48eb3a83d89?QuickLink=index&overridelayout=true
Hope it helps
Regards,
AL -
What are the UI components used in oracle adf?
what are the UI components used in oracle adf?
Web.:
- ADF Faces and Trinidad JSF components
http://docs.oracle.com/cd/E28280_01/apirefs.1111/e12419/toc.htm
Desktop:
- MS Excel
http://www.oracle.com/technetwork/developer-tools/adf/overview/index-085534.html
Mobile
- AMX UI Components for Android and iOS
Frank -
What are the major issues to consider in code review? Or performance analys
What are the major issues to consider in code review? Or performance analysis?
I would not recommend you to try to optimize performance by checking the coding.
There is the code inspector which can do all which makes sense automatically.
The above mentioned points are not the real issues.
Instead of code review you should execute test cases and measure the exection time.
1. With STAD if you want to get good time measurement
2. With SE30 and ST05, if you want to have data for further anaylsis.
Check total time (SE30), check whether DB part is large, then go to SQL trace. Do the check mentioned here
/people/siegfried.boes/blog/2007/09/05/the-sql-trace-st05-150-quick-and-easy
to find the SQL bottlenecks.
The major point about SQL problems is index support, if there is no proper index support then the performance will be poor. Be aware, that problems are only visible, if you tables are filled.
In a test system where you have very little data, you will never encounter performance problems.
Check also the Top10 of the SQ30 hit list.
Be aware that a proper performance analysis is not a 5 minutes job.
Siegfried -
What are the symptons of macbook pro hard drive not running fast enough
what are the symptons of the hard drive not running fast enough
Physically the drive will be as fast as any other of its class, and if not then it's experiencing a mechanical issue that should prompt a warning or two in the system, especially if you use a drive management tool like Disk Utility that checks the drive's built-in "S.M.A.R.T." diagnostics.
As for "logical speed," if there are bad blocks on the drive where sectors cannot be read or written to because of a breakdown of the storage medium, then this can result in a program or the entire system crashing or hanging (generally the latter is the case), where it usually pauses for a number of seconds at a time. This is usually accompanied by messages that state "I/O Error" or other similar warning in the OS X Console (in the Applications > Utilities folder).
Beyond this, drive formatting errors such as might happen after a crash or power outage can result in similar hang-like behavior, though this is usually not as distinct of a hanging behavior as is seen with bad blocks.
Finally, if the drive is simply full of files or highly fragmented (not as much of a problem in OS X, but it can happen), then this can reduce access time for reading and writing files, and prevent the system from optimizing the use of RAM, which can result in overall slowdowns. Heavy drive use can also cause similar bottlenecks, but this is ususally only an intermittent issue during a time when you are performing a heavy file transfer or copying process, or other task that occupies access to the drive's index and formatting (e.g., if you check it for errors with Disk Utility, then you may see the system pause or slow down during the check).
Maybe you are looking for
-
Connection to server fail/Flash drive will not mount
I'm struggling with this issue and hope someone will have some insight these problems I'm having. I'm currently running 10.6.4 on my Mac and all of the sudden I'm unable to connect to my work's servers or mount a flash drive drive. The issue began af
-
MP3's Not showing up right.
Since I updated to Itunes 11 I have tried to add one album and have had no luck. I have the songs as MP3's When I first tried to add them to Ituns Nothing happend (no luck with drag&drop or file>add to library) next day I tried again and they actuall
-
How to generate a csv report to determine paper size in a pdf or pdf/a file ?
how to generate a csv report to determine paper size in a pdf or pdf/a file ?
-
Parse xml for newline chars using xpath
Hi guys, need your help. I was curious to how can we use subString-before and subString after function to extracts records based on newline. Ex. for an strin xml field with data 1st line 2nd line and want to extract each line as separate record. Hope
-
Can I switch languages for spelling in Pages
I am writing a French document in Pages and everything is underlined in red or green. Can I switch languages to get the corrections in French?