Exeuction plan

Hi
I Have some problem with the query execution plan. when i executed the query the exeution plan in 2 different schemas for the same query. and i have checked in both the schemas i have same table names, indexes on same columns and the statistics is collected for whole database (except sys and system) so both the schemas have the statistics up-to-date.
here i am attaching pasting the just taken the execution plan by setting
set autotrace traceonly explain.
And partitions are also there.
SQL> select c.cid from tcdbapp.consumer c, tcdbapp.consumer_contact cc where c.cid=cc.cid
and (upper(cc.email_address)=upper('[email protected]') or cc.mobile_no='+4545650740')
and c.delete_date is null 2 3 ;
Elapsed: 00:00:00.01
Execution Plan
0
SELECT STATEMENT Optimizer=CHOOSE (Cost=97 Card=33 Bytes=1683)
1 0
NESTED LOOPS (Cost=97 Card=33 Bytes=1683)
2 1
PARTITION HASH (ALL)
3 2
TABLE ACCESS (BY LOCAL INDEX ROWID) OF 'CONSUMER_CONTACT' (Cost=31 Card=33 Bytes=1254)
4 3
BITMAP CONVERSION (TO ROWIDS)
5 4
BITMAP OR
6 5
BITMAP CONVERSION (FROM ROWIDS)
7 6
INDEX (RANGE SCAN) OF 'CONS_CONTACT_EMAIL_IDX1' (NON-UNIQUE) (Cost=9)
8 5
BITMAP CONVERSION (FROM ROWIDS)
9 8
INDEX (RANGE SCAN) OF 'CONS_CONTACT_IDX2' (NON-UNIQUE) (Cost=9)
10 1
PARTITION HASH (ITERATOR)
11 10
TABLE ACCESS (BY LOCAL INDEX ROWID) OF 'CONSUMER' (Cost=2 Card=1 Bytes=13)
12 11
INDEX (UNIQUE SCAN) OF 'PK_CONS' (UNIQUE) (Cost=1 Card=1)
SQL> select c.cid from consumer c, consumer_contact cc where c.cid=cc.cid
and (upper(cc.email_address)=upper('[email protected]') or cc.mobile_no='+4545650740')
and c.delete_date is null 2 3 ;
Elapsed: 00:00:00.01
Execution Plan
0
SELECT STATEMENT Optimizer=CHOOSE (Cost=136 Card=482 Bytes=19280)
1 0
PARTITION HASH (ALL)
2 1
HASH JOIN (Cost=136 Card=482 Bytes=19280)
3 2
TABLE ACCESS (FULL) OF 'CONSUMER_CONTACT' (Cost=72 Card=482 Bytes=13014)
4 2
TABLE ACCESS (FULL) OF 'CONSUMER' (Cost=60 Card=31820 Bytes=413660)
help needed
thanks and regards
Chandu Singh

Hi Jehan
There are differences in number or rows in both the schemas.
owner     blevel     leaf_blocks     distinct_keys     avg_leaf_blocks_per_key     avg_data_blocks_per_key     clustering_factor     num_rows
CDBAPP     1.00     17.00     560.00     1.00     1.00     310.00     749.00
CDBAPP     1.00     113.00     17 603.00     1.00     1.00     9 545.00     17 603.00
CDBAPP     1.00     37.00     560.00     1.00     1.00     310.00     749.00
CDBAPP     1.00     76.00     777.00     1.00     5.00     4 384.00     5 002.00
TCDBAPP     2.00     4 037.00     752 686.00     1.00     1.00     19 898.00     752 686.00
TCDBAPP     2.00     2 437.00     180 512.00     1.00     2.00     426 899.00     624 379.00
TCDBAPP     2.00     3 093.00     70 648.00     1.00     8.00     593 574.00     613 049.00
TCDBAPP     2.00     2 462.00     162 935.00     1.00     2.00     419 149.00     623 928.00
But in user tables the num_rows , chain_cnt, and blocks are not updated. Even after the tables are gathering the statistics daily.
Chandu Singh

Similar Messages

  • Challenges  after exadata migration

    Challenges after exadata migration
    We are planning to move our OLTP db and DW db in one exadata x2 quarter rack in 2 node cluster. i want to know after migration of data, what are challenges the application is going face in exadata?
    Whether the entire schema's index strategy needs to be revised? What will be behaviour of SQL queries in OLTP and DW ? whether all the sql statement need to be revised?
    Will it be easy go?
    Please advise me with key steps what need to be taken care..

    Hi,
    Most import which need to be considered before migration.
    1) Your Exadata disk groups should have 4 MB. So you should choose best migration method where target asm diskgroup size remains 4MB. Otherwise you cann't benifit out of exadata
    2) Your Large object extent should be multiple of 4mb to properly layout on AU boundaries.
    3) Use cell_partition_large_extents to enable large partition table to automatically fin in AU boundaries.
    4) Use CELL_FLASH_CACHE Keep for most volatile tables.
    http://www.oracle.com/technetwork/database/exadata-smart-flash-cache-twp-v5-1-128560.pdf
    5) Use IORM to divide load between oltp and dw
    6) Make use of EHCC to archive tables and large tables to save space and increase performance.
    7) Indexes can still be usable in OLTP env. So you need to check for critical quires that index is going to benifit or not. You can make index invisible and then check the exeuction plan so see its impact.
    9) Make data compress during direct path load.
    10) I hope partitioning is already if so then it can make remarkable performance improvement. If not then understand the business logic and built quires which can do partition pruning.
    Please take all these consideration w.r.t applciation.
    Regards

  • Unable to execute rules twice after applying Planning 9.3.1.1.11

    Hi All,
    Just wondering whether someone has come across this issue.
    We have just applied Planning 9.3.1.1.11 on a Windows platform.
    As a result, we are unable to execute the same rule twice from within the AAS console on any client machine and get the following error:
    "You must be connected to database to execute a rule."
    Once we get this error we cannot exeucte any other business tules and need to log back in to the AAS console to fix the problem.
    If we open up the AAS console on the AAS server, we can rule the rules as many times as we like. The error only comes up when executing a same rule from a client machine.
    In Planning web we can execute any business rules multiple times. However, if a user gets the above error in the AAS console, he/she is then unable to execute rules in Planning web unless he/she logs out and logs back in.
    We are using Planning 9.3.1.1.11, AAS 9.3.1.3.07 and HBR 9.3.1.1.11 on the server.
    However the AAS version on the client side is 9.3.1.1.9 and I think this may be what s causing the issue.
    The HBR patch for 9.3.1.1.11 is a server patch and cannot be installed on client machines. I am therefore unable to upgrade the AAS console on client machines to 9.3.1.1.11.
    Has anyone come across this?
    Thanks for your help.
    Seb

    Hi John,
    I worked it out last night... The readme for 9.3.1.1.11 is not very clear and I dont think it mentions patching each client.
    Below are the steps:
    1 - Close down the AAS console
    2 - Copy the newly deployed easclientplugin.jar, cmdlnlauncher.jar and identitymigration.jar from the AAS server and paste them under Hyperion\AnalyticAdministrationServices\console\lib on your client machine. Overwrite existing files if necessary.
    3 - Copy the new MigrateIdentities.bat from the AAS server and paste it under Hyperion\AnalyticAdministrationServices\console\bin on your client machine. Overwrite existing files if necessary.
    4 - Log on to the AAS console and go to Help - About and ensure that the HBR version is now 9.3.1.1.11
    5 - From the AAS console try and execute the same HBR twice.
    Thanks for your help.
    Seb

  • Error while updating a plan

    Hi,
    I have encountered an error while updating a plan. While i update the uplan , the grid gets filled but it throws a message stating
    "Maximum Number of Result Blocks has been reached"
    Maximum number of Result Blocks has been reached.
    [Oracle BAM Enterprise Link error code:  DC -- 0x1, DC -- 0xD4]
    Error while processing the data for the step 'Grid'
    [Oracle BAM Enterprise Link error code:  DC -- 0x1, DC -- 0x83]
    Maximum number of Result Blocks has been reached.
    [Oracle BAM Enterprise Link error code:  DC -- 0x1, DC -- 0xD4]
    Error while processing the data for the step 'Grid'
    [Oracle BAM Enterprise Link error code:  DC -- 0x1, DC -- 0x83]
    Update of Plan "deposittest created 7/19/2007 5:11:50 PM" failed.
    [Oracle BAM Enterprise Link error code:  PlanMgr -- 0x1, PlanMgr -- 0xD5]
    The data updation stops after the row count 49900.
    Please help to resolve this error .
    Thanks in advance.
    Regards,
    Lathika

    Hi,
    in BAM-Administrator you should rraise Parameter "MaxResultBlocks".
    BAM originaly is al licensed Software from Group1 named "Sagent Data Flow".
    This may help searching the web.
    Greetz,
    GOI

  • Data Back Up Plan

    Hi,
    My internal hard drive, 320 GB, 'fully loaded', on my 2 year old imac crashed 10 days ago.
    Since I had the extended warranty, the 'local' Apple store replaced the internal drive within hours
    at no charge and even loaded Snow Leopard and iLife. With a well updated TimeMachine on an external hard drive I was back working at my imac the next day. When I realized after the crash that my precious 250 GB of pictures in Adobe Lightroom and iPhoto, along with a few videos were saved on just one older Maxtor external hard drive, it made me think about a more solid back up procedure.
    The idea now is to move all big volume files to one or more external hard drives.
    In the meantime I have transfered the iPhoto and Lightroom files to an external hard drive (WD MyBook II, 2x1 TB in RAID 1), which gives me the first layer of back up: http://www.bhphotovideo.com/c/product/552322-REG/WesternDigital_WDH2Q20000N_2TB_My_BookStudio.html
    In a second step I am planning on making a clone (with SuperDuper or CarbonCopy) of the internal hard drive (mainly operating systems and applications) and the external hard drive (all big data files) on one additional external hard drive, i.e. OWC Mercury Elite AL Pro Raid 0, 2 TB http://eshop.macsales.com/item/Other%20World%20Computing/ME8Q7T20GB64/
    I am looking for advise here:
    Do SuperDuper or CarbonCopy (I only know the names from the discussion forums) allow me to make a clone from 2 separate hard drives
    Would it be good practice to create a large clone of ultimately 2 TB with ALL files or wouldn't it be better to make 2 clones , one of the internal and one of the external drive.
    TimeMachine had helped me to get back to work quickly after the crash. I expect to fill the WD 1TB drive rather quickly. Where should I plan on using Time Machine in my new back up plan?
    Would appreciate comments and advise.

    reckling wrote:
    Do SuperDuper or CarbonCopy (I only know the names from the discussion forums) allow me to make a clone from 2 separate hard drives
    No. A clone is of your boot volume only. But those apps can make separate backups of multiple drives, either to multiple drives or to separate partitions on the same drive.
    Would it be good practice to create a large clone of ultimately 2 TB with ALL files or wouldn't it be better to make 2 clones , one of the internal and one of the external drive.
    2 is not only better, but your only option with CCC or SD.
    TimeMachine had helped me to get back to work quickly after the crash. I expect to fill the WD 1TB drive rather quickly. Where should I plan on using Time Machine in my new back up plan?
    There is no "right" answer, just a number of possibilities. Some thoughts:
    You could use TIme Machine to back up both your internal HD and the WD set to the OWC, if it's at least twice the size of the data on both. It looks like it can be configured as a +Concatenated RAID set+ (both drives into a single 2 TB volume), so that should work well.
    Or use TM to back up your OSX drive, and CCC or SD to back-up the media drive.
    The CCC or SD backups usually aren't practical to run more than once a day, so consider them your "secondary" backups.
    Also strongly consider getting something off-site (safe deposit box, workplace, relative's house, etc.), so you're also protected against fire, flood, theft, direct lightning strike on your power lines. Portable external HDs are great for that. Some things may even be appropriate to take to DVDs.
    The problem with that is, there aren't many portables over about 640 GB (LaCie has a 1 TB for either $300 or $400: http://www.lacie.com/us/products/product.htm?pid=11357).
    CCC is donationware, so you can use it free for a while. If you decide to keep it, send them some $$ so they can keep it up to date. SD has a free version, but to do updates (rather than a full replacement) or automatic scheduling, you need the paid version (about $30). Either is available via Google, VersionTracker.com, or MacUpdate.com.

  • BOM is not getting displayed in case of centralized planning plant.

    Dear All,
    there are 2 plants for which we have centralized planning. the users have created Equipment BOM for the two plants. but in case of the second plant for which the planning plant is different from the maintenance plant, the BOM is not getting displayed in the Maintenance Order (i.e. in the components tab).
    kindly through some light on it. whether i have to do some settings for it.
    Regards,
    Ritesh Kapoor

    Hi,
    Yes while using IH01, i have ticked the BOM explosion option, but when i am giving the plant there then only it is displaying the BOM of that equipment.
    Also when i am creating an order for the same equipment, then it does not displays the BOm & shows the message which i have written in my previous mail.
    Ritesh

  • Pension plans in portal

    Hi,
    We have pension plans and the employees should be able to change the data anytime.
    Open enrollment is for one month only and in that dental,medical,life plans are configured But only pension plans should exists for employees all time in portal.
    Can anyone suggest me how to solve this issue
    Thanks,
    Usha

    closed

  • Pension Plans

    Hi,
    We have pension plans.Our Customer requirement is that to change the pension plans by an employee at any time without any time restriction.
    But the open enrollment option is for only 1 month in a year.
    Can anyone suggest how I can solve this issue so that employee can only change pension plans at any time.
    Thanks,
    Usha

    closed

  • Report for Planned vs Purchase Order(Qty and rate)

    Hi
    I have the following issue. My client is raising Purchasing requisition and Purchase Orders in Me51N and ME21n respectively. The Project Structure is used only to plan the quantities and rates whereas no PR is released from it. But the components are attached. Now if i make use of the code CN52N, i am getting the planned quantity and unit rate for the planned value whereas no Purchase requisition number or purchase order number is updated in it.
    My requirement is that both planned quantity, rate along with Purchase order quantity and rate should be available in a report.
    1. Is there any setting that we can make so that the details are updated in cn52N (or)
    2. is there any other report with those details (or)
    3. Should that be achived only through ABAP.
    Please suggest.
    Raghav

    There are a few reports that you can use to display STO requisitions and orders, by supplying plant, material, or MD04 like was mentioned.
    The only thing that you don't have in a report is the link to the production order. In SAP in a MTS situation there's no fixed link (pegging) between the requirement (STO) and the supply (prod Ord).
    You can view the pegging dynamically, for example in MD04.
    Edited by: Mario Adler on Oct 27, 2011 12:13 PM

  • A/P & Consignment data pull to Planning Cube.....

    I put this in "BC & Extractors" section, but did not get any response.....
    Need couple of clarifications (brief background is provided.....):
    1. We do DELTA extractions using 0FI_AP_3 adn 0FI_AR_4 to a base cube which includes both 'Open' and 'Cleared'
    items. From this cube we do a DELTA load to a Planning Cube on a DAILY basis. We filter the data on Company Code
    and 'Item Status' (OnlyOPEN Items) for Planning purposes. The key figure pulled to Planning Cube is '0DEB_CRE_DC'.
    The bsae cube has data at Line Item Document level, where as the planning cube is only at Customer & Vendor level.
    The question is - Will this Daily DELTA to Planning cube with filter on Open Item bring correct key figure? For example,
    if the status of one of the items pulled as OPEN in earlier Delta changes to "CLEARED" the subsequent day, will the Key
    Figure reflect the changes and show correct value? Is there any impact on the key figure due to the filter on Open Item?
    My thinking is the key figure 0DEB_DRE_DC will reflect he correct number (adjsuted) since it is a summated key figure.
    I could be totally wrong and want to understand this with comments from experts.
    2. Has anyone worked with pulling Consignment (SMI) data into Planning cube? We pull this data using a generic extractor
    from a SAP table "RKWA" with some logic. Since I pull A/P data that contains SMI & Non-SMI transactions. To avoid
    Double Counting, how can I avoid bringing in the SMI transactions from A/P? There is no flag to diffferentiate the SMI /
    Non-SMI transactions....
    I am hoping someone has worked in these area to offer expert comments/ recommendations.
    Thanks.. Shaun
    Please post one question only once
    Edited by: Vikram Srivastava on Aug 13, 2010 1:02 PM

    Hello Lee,
    For your first question as you are using the Filter on the status of the record,
    lets say today the status is OPen and as a part of the filter the Delta will be able to pick this record as the status is OPen but if the status is changed to Closed tomorrow then this record will be completely ignored and hence in the next level target you will not have the right status at all.
    So you need to plan your filters accordingly.
    Hope this helps.
    Thanks
    Murali

  • MRP - Auto creation of del schedule lines based on planned delivery time

    Hi,
    We have activated MRP (type PD) where Purchase requiesition is auto created by system for requirement quantity. We require to optimize delivery schedule in such a way that entire PR quantity is broken into various delivery schedule based on planned delivery time and requirement.  Scenario can be further explained with following example.
    Material Requirement for a month is say 1,25,000 units
    Closing Stock say 25,000 units
    PR Generated by system for 1,00,000 units. The entire quantity is schdulled with only one delivery schedule line as per planned delivery time. 
    The requirement is to generate multiple delivery schedule lines automatically in Purchase requisition based on planned delivery time so that Purchase orders can be placed with system generated delivery schedule lines.
    How can it be achieved ?
    Regards,
    Nirav Kinkhabwala

    Nirav,
    This subject has been discussed repeatedly in this and other forums.  I must assume that you overlooked the rules of engagement, which state that you should first search the forums and other public sites, before posting questions here.
    Standard SAP MRP cannot be made to generate multiple items in a Purchase requisition.  The functionality you seek is usually achieved when converting purchase reqs to Purchase orders, where many single purchase reqs can be adopted into a single Purchase order.
    You also might want to investigate use of Vendor Scheduling agreements.
    Best Regards,
    DB49

  • Can I merge several different Verizon plans (different family members each have own plans) into one plan (i.e. can I take over all their lines), if all lines on all plans are on Edge?

    I was originally told by Verizon that if I joined, I can eventually take over the lines of various family members.  Now that I've joined, and my family members all upgraded their phones and are on Edge, Verizon is telling us that we can't merge into one plan (because Edge lines can't be transferred to another account).
    Is this true, and, if so, what is my recourse since I was lied to.

    Well, yes and no (as far as being lied to).  I asked on several occasions (I have the chat transcripts to prove it) if there would be any issue if the lines were all already on Edge, and was told each time that under no circumstances would there be any issue.  The latest being today (I know it's after the fact, but I wanted proof that this is what the chat people are saying).  I asked "I have currently have an account with 3 phones on Edge.  My brother and his wife, and my parents, also have plans all on Edge.  I would like to 'take over' their lines.  I want to make sure there is no issue with the Edge plan and that I can simply 'take over' their lines with no problems."  I was told "Yes. That would be correct."  Again, this is what I was told in the past as well (my original post didn't make clear the timing of the chats and upgrades to Edge..).  Every time I chatted I mentioned that the accounts were going to be on Edge or (later on) were already on Edge.  Even before my family members upgraded to Edge, not one single chat or phone representative (and my brother asked the same thing in a store) mentioned NOT to upgrade to Edge because it couldn't be transferred.  Everyone just said yep, no problem.  The ONLY reason I even joined Verizon (I was on Straight Talk) was because of the More Everything and Edge plans (we wanted a family plan with 6 people and over 10GB so we'd each save $25/line).  Otherwise I never would have joined Verizon and my family wouldn't have upgraded either.

  • How do I add family members to my plan?

    I have an existing Verizon Wireless account. I'd like to add my girlfriend and my son to my plan.  Can't seem to find info on how to add them, or what the acual cost will be per month.   And the "live chat" button seems like it is perpetually unable to function.  Getting frustrated.

    Search for Assumption of Liability. That's what you want to do to add them if they are already Verizon Wireless customers. If they are on another carrier, then you would be adding the appropriate number of lines to your account and porting the existing numbers in.

  • How to port a number from a Family Share plan?

    This is my situation.  I am the Account Owner on a Family Share plan with 2 lines. My husband is an Account Manager.  I know I need to do an Assumption of Liability to make my husband the Account Owner and he will be able to keep his number and change his plan.  I believe my number would then be a 2nd line on his account.  I then want to port my number to an MVNO Prepaid service.  Can I do this and keep my number and not affect my husbands service with Verizon?  We have had our numbers for years and do not want to lose them.  Our contract date is ending in 3 weeks and I will be waiting until we are month to month before porting out my number.

    Nope makes no difference. He will tell Verizon Wireless he wants the account and the will pay the monthly charges. You then tell Verizon its OK to give the account and line etc. to him.
    In certain cases when the run the credit check on the other person there may be a deposit required to have that service transferred.
    Good Luck

  • HT5012 I am having difficulty XMIT/REC text messages to family members using Android phones?  I have a 3GB data plan and all switches and buttons are set properly.  Any suggestions?

    I am having difficulty XMIT/REC text messages to family members using Android phones?  I have a 3GB data plan and all switches and buttons are set properly.  Any suggestions?

        Hello APVzW, we absolutely want the best path to resolution. My apologies for multiple attempts of replacing the device. We'd like to verify the order information and see if we can locate the tracking number. Please send a direct message with the order number so we can dive deeper. Here's steps to send a direct message: http://vz.to/1b8XnPy We look forward to hearing from you soon.
    WiltonA_VZW
    VZW Support
    Follow us on twitter @VZWSupport

Maybe you are looking for

  • Lock Screen in VNC

    Hello, I just used VNC for the first time on my Mac and i have to say, it's great! However, I have one issue which is I can't lock the screen during my VNC session. So if I am on my iPhone and I VNC into my Mac, everything I do can be seen on my Mac.

  • Why is the item count in Photos for Mac significantly higher after upgrading from iPhoto?

    Since upgrading to Photos for Mac from iPhoto, I've noticed the number of photos and videos in my library is higher than what I had before. Granted I imported some photos into the new app since then but taking that into account there's still a big di

  • Fonts mapping in the browser

    Hi all, Another question. I have developed some forms which have some dedicated fonts used. It runs smoothly in the client/server mode (as well as the font type). However, once I put it on the web, the fonts type differs from what I expected. Some do

  • Set out of range value to a time datatype in sql server 2008

    Hi, I have a variable set to time datatype in SQL server 2008. I need to set a value more than 24 hrs to that. Is there any way? I get an error like Conversion failed when converting date and/or time from character string. .Below is my scenario decla

  • Add layout to a custom report

    Hi folks, I have developed a custom report from the standard wage type rport (H99cwtr0). However I am unable to copy the report ALV layouts defined for the standard wage report to the custom one. Upon analysis I found it draws the layout  list from t