Same Execution plan But different consistent read values

hi,
my db version 10.2.0.3
os version solaris 10.
i have a query which has same execution plan but with diffrenet consistent read values when optimizer_mode is RULE and CHOOSE.
what may be the cause of that?
thanks,
Here is the query:
SELECT *
FROM XXX
WHERE id = 4567
RULE based:
| Id | Operation | Name |
| 0 | SELECT STATEMENT | |
| 1 | TABLE ACCESS BY INDEX ROWID| XXX|
| 2 | INDEX RANGE SCAN | XXX_INX_ID |
Note
- 'PLAN_TABLE' is old version
- rule based optimizer used (consider using cbo)
Statistics
1 recursive calls
0 db block gets
5 consistent gets
0 physical reads
0 redo size
1973 bytes sent via SQL*Net to client
492 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
1 rows processed
COST Based:
| Id | Operation | Name | Rows | Bytes | Co
st (%CPU)|
| 0 | SELECT STATEMENT | | 1 | 107 |
4 (0)|
| 1 | TABLE ACCESS BY INDEX ROWID| APPOINTMENT | 1 | 107 |
4 (0)|
| 2 | INDEX RANGE SCAN | APPO_INX_MASTERAPPOID | 1 | |
3 (0)|
Note
- 'PLAN_TABLE' is old version
Statistics
0 recursive calls
0 db block gets
48120 consistent gets
0 physical reads
0 redo size
1973 bytes sent via SQL*Net to client
492 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
1 rows processed

873792 wrote:
hi,
my db version 10.2.0.3
RULE based:
The Rule Based Optimizer is NOT supported for V10+

Similar Messages

  • How to fix different execution plan for different bind variable values?

    Please find the below query. The execution plan is fine. The problem That I am facing is in some cases for different bind variable values execution plan gets changed and degrades performance. I have used 6 tables here and all of the tables have histogram on all columns. Database version is Oracle 10g and the value of method_opt is 'For all columns size auto'
    SELECT l.LineNumber INTO :b0
    FROM Lines l ,LineVersions lv ,Statuses s
    WHERE (((((((((((l.serviceContractId=:b1 AND l.LineId<>:b2)
    AND lv.LineId=l.LineId) AND lv.StatusId=s.StatusId)
    AND s.Code IN ('EPR','ERE','EEP','ERP','PRP','PRD','AAC'))
    AND NOT (s.CODE='AAC' AND lv.activeto<TO_DATE(:b3,:b4)))
    AND lv.EquipmentDetailId=:b5) AND lv.RouteDetailId=:b6)
    AND (lv.cargoDetailId=:b7 OR lv.cargoDetailId IN
    (SELECT i_cd1.cargoDetailId
    FROM CargoDetails i_cd1 ,CargoDetails i_cd2 ,CargoCommodities i_cc1 ,
    CargoCommodities i_cc2 WHERE
    ((((((i_cd2.cargoDetailId=:b7 AND i_cd1.cargoDetailId<>:b7)
    AND i_cd1.ServiceContractId=:b1) AND i_cd1.cargoTypeId=i_cd2.cargoTypeId)
    AND i_cc1.cargoDetailId=i_cd1.cargoDetailId)
    AND i_cc2.cargoDetailId=i_cd2.cargoDetailId)
    AND i_cc1.commodityId=i_cc2.commodityId))))
    AND ((lv.customerGroupId IS NULL AND :b11=0) OR lv.customerGroupId IN
    (SELECT cgm1.customerGroupId
    FROM CustomerGroupMembers cgm1 ,CustomerGroupMembers cgm2 ,CustomerGroups cg1
    WHERE (((cgm2.customerGroupId=:b11 AND cgm1.customerNoId=cgm2.customerNoId)
    AND cg1.CustomerGroupId=cgm1.CustomerGroupId)
    AND cg1.ServiceContractId=l.ServiceContractId)))) AND lv.linetype='C')
    AND ROWNUM=1)
    After searching in several blogs I have found the below solutions. Please see it and let me know it is correct or not
    Solution 1:-Get rid of histogram that does nothing but messes up execution plan by giving below command
    exec dbms_stats.gather_table_stats(owner, tablename, method_opt => 'for all columns size 1', cascade => true);
    As 6 tables are there I need to execute above command 6 times.
    Solution 2:- Use stored outline. Not sure how to get the best execution plan.
    I am looking for answers ASAP. Thanks in advance

    As you have probably read, bind variables and histograms do not mix well.
    Histograms suggest that you have skew in your data such that different values should get different plans
    Bind variables exist so that SQL with different supplied values can be shared.
    Mix the two together and at parse time with bind variable peeking you get plans for specific values shared for all values.
    The solutions you have mentioned are the common approaches, together with a third - use literals not binds if you've got data skew (i.e. your histograms are justified) and don't want shared SQL.
    I would have thought that getting rid of some of these histograms may be the right approach if you're none of your application SQL is using literals to benefit from them.
    Can you confirm your version of Oracle.
    Further reading:
    http://jonathanlewis.wordpress.com/2009/05/06/philosophy-1/
    http://structureddata.org/2008/03/26/choosing-an-optimal-stats-gathering-strategy/
    http://richardfoote.wordpress.com/2008/01/04/dbms_stats-method_opt-default-behaviour-changed-in-10g-be-careful/

  • 2 iphones 1 computer. updated my wifes phone to ios 5 her phone got wiped of all apps and all my contacts are on her phone. we had been using the same apple id but different user accounts on our laptop. How do i get her phone back to normal?

    2 iphone 4, 1 computer. i upgraded to ios 5 and just updated my wifes phone as well. her phone got wiped of all apps and all my contacts were put on her phone. we had been using the same apple id but different user acct on our laptop. How do i get her phone back to normal??

    Have your wife log in to her user account on the laptop. Launch iTunes, then connect her phone to the computer with the USB cable. Sync. That should put back all apps and media. Since you already upgraded her to iOS 5 she'll have to manually enter all her settings and preferences, and organize her home screens.

  • One query - one database - different execution plan for different users.

    Hi everyone.
    I've encountered one of the strangest things I've ever seen with Oracle.  I'm hoping that someone else here has seen something like this before and solved it!  On an 11g database I have a query that runs differently depending on which user runs it.  If the owner of the tables or someone with the DBA role runs the query I get a perfect execution plan.  If someone else runs it, I get a really bad execution plan - though the query still executes.  So it almost seems like depending on who is running the query, the optimizer might not have access to the same statistics??  I'm really grasping at straws here - any help would be greatfully accepted!!!
    Here is the query and the two plans for it...
    On TASD as a General User (Bad execution plan) - CA17062 is USER
    Connected to Oracle Database 11g Enterprise Edition Release 11.2.0.3.0
    Connected as ca17062
    SQL> explain plan for
    select w.worker_id, w.worker_name
      from worker_v                   w,
           worker_cost_centre_v       c
    where w.worker_id = c.worker_id
       and c.effective_date <= trunc(sysdate)
       and c.expiration_date >= trunc(sysdate)
       and c.cost_centre = '100033'
       and pkg_taw_security.user_worker_access('CA17062',
                                               'TIMEKEEPER',
                                               w.worker_id,
                                               trunc(sysdate)) = 1
    order by w.worker_name;
    Explained
    Executed in 0.234 seconds
    PLAN_TABLE_OUTPUT
    Plan hash value: 1726112176
    | Id  | Pid | Ord | Operation                      | Name                   | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 |     |   8 | SELECT STATEMENT               |                        |    18 |  1800 |   606   (1)| 00:00:01 |
    |   1 |   0 |   7 |  SORT ORDER BY                 |                        |    18 |  1800 |   606   (1)| 00:00:01 |
    |*  2 |   1 |   6 |   HASH JOIN                    |                        |    18 |  1800 |   605   (1)| 00:00:01 |
    |   3 |   2 |   3 |    VIEW                        | WORKER_COST_CENTRE_V   |    18 |   558 |    19   (0)| 00:00:01 |
    |*  4 |   3 |   2 |     TABLE ACCESS BY INDEX ROWID| WORKER_COST_CENTRE_TBL |    18 |   522 |    19   (0)| 00:00:01 |
    |*  5 |   4 |   1 |      INDEX RANGE SCAN          | WORKER_CC_CC_IDX       |    29 |       |     3   (0)| 00:00:01 |
    |*  6 |   2 |   5 |    VIEW                        | WORKER_V               |   161K|    10M|   584   (1)| 00:00:01 |
    |   7 |   6 |   4 |     TABLE ACCESS FULL          | WORKER_TBL             |   161K|  3466K|   584   (1)| 00:00:01 |
    Predicate Information (identified by operation id):
       2 - access("W"."WORKER_ID"="C"."WORKER_ID")
       4 - filter("X"."EXPIRATION_DATE">=TRUNC(SYSDATE@!))
    PLAN_TABLE_OUTPUT
       5 - access("X"."COST_CENTRE"='100033' AND "X"."EFFECTIVE_DATE"<=TRUNC(SYSDATE@!))
       6 - filter("PKG_TAW_SECURITY"."USER_WORKER_ACCESS"('CA17062','TIMEKEEPER',"W"."WORKER_ID",TRUN
                  C(SYSDATE@!))=1)
    About
      - XPlan v1.2 by Adrian Billington (http://www.oracle-developer.net)
    23 rows selected
    Executed in 0.577 seconds
    WORKER_ID WORKER_NAME
    123703    FADDEN, CLAYTON
    11131     HAHN, BRAD
    33811     HALL, MAUREEN
    53934     JANES, CATHERINE
    Executed in 35.241 seconds
    On TASD as the owner of the tables or as someone with the DBA role (Good Execution) - TAS is USER:
    Connected to Oracle Database 11g Enterprise Edition Release 11.2.0.3.0
    Connected as tas
    SQL> explain plan for
    select w.worker_id, w.worker_name
      from worker_v                   w,
           worker_cost_centre_v       c
    where w.worker_id = c.worker_id
       and c.effective_date <= trunc(sysdate)
       and c.expiration_date >= trunc(sysdate)
       and c.cost_centre = '100033'
       and pkg_taw_security.user_worker_access('CA17062',
                                               'TIMEKEEPER',
                                               w.worker_id,
                                               trunc(sysdate)) = 1
    order by w.worker_name;
    Explained
    Executed in 0.203 seconds
    PLAN_TABLE_OUTPUT
    Plan hash value: 3435904055
    | Id  | Pid | Ord | Operation                      | Name                   | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 |     |   8 | SELECT STATEMENT               |                        |    18 |   918 |    38   (3)| 00:00:01 |
    |   1 |   0 |   7 |  SORT ORDER BY                 |                        |    18 |   918 |    38   (3)| 00:00:01 |
    |   2 |   1 |   6 |   NESTED LOOPS                 |                        |       |       |            |          |
    |   3 |   2 |   4 |    NESTED LOOPS                |                        |    18 |   918 |    37   (0)| 00:00:01 |
    |*  4 |   3 |   2 |     TABLE ACCESS BY INDEX ROWID| WORKER_COST_CENTRE_TBL |    18 |   522 |    19   (0)| 00:00:01 |
    |*  5 |   4 |   1 |      INDEX RANGE SCAN          | WORKER_CC_CC_IDX       |    29 |       |     3   (0)| 00:00:01 |
    |*  6 |   3 |   3 |     INDEX UNIQUE SCAN          | WORKER_PK              |     1 |       |     0   (0)| 00:00:01 |
    |   7 |   2 |   5 |    TABLE ACCESS BY INDEX ROWID | WORKER_TBL             |     1 |    22 |     1   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       4 - filter("X"."EXPIRATION_DATE">=TRUNC(SYSDATE@!))
       5 - access("X"."COST_CENTRE"='100033' AND "X"."EFFECTIVE_DATE"<=TRUNC(SYSDATE@!))
    PLAN_TABLE_OUTPUT
       6 - access("X"."WORKER_ID"="X"."WORKER_ID")
           filter("PKG_TAW_SECURITY"."USER_WORKER_ACCESS"('CA17062','TIMEKEEPER',"X"."WORKER_ID",TRUN
                  C(SYSDATE@!))=1)
    About
      - XPlan v1.2 by Adrian Billington (http://www.oracle-developer.net)
    23 rows selected
    Executed in 0.624 seconds
    WORKER_ID WORKER_NAME
    123703    FADDEN, CLAYTON
    11131     HAHN, BRAD
    33811     HALL, MAUREEN
    53934     JANES, CATHERINE
    Executed in 1.307 seconds
    THANKS!!!
    Cory Aston

    I reran the whole thing - with full declared view names and display_cursor.  Here are the results...
    On TASD as CA17062  (BAD EXECUTION PLAN)
    SQL> set linesize 160
    SQL> set serveroutput off
    SQL>
    SQL> select /*+ gather_plan_statistics */
      2         w.worker_id, w.worker_name
      3    from tas.worker_v                   w,
      4         tas.worker_cost_centre_v       c
      5   where w.worker_id = c.worker_id
      6     and c.effective_date <= trunc(sysdate)
      7     and c.expiration_date >= trunc(sysdate)
      8     and c.cost_centre = '100033'
      9     and tas_user.pkg_taw_security.user_worker_access('CA17062',
    10                                             'TIMEKEEPER',
    11                                             w.worker_id,
    12                                             trunc(sysdate)) = 1
    13   order by w.worker_name;
    WORKER_ID WORKER_NAME
    123703    FADDEN, CLAYTON
    11131     HAHN, BRAD
    33811     HALL, MAUREEN
    53934     JANES, CATHERINE
    SQL>
    SQL> select * from table(dbms_xplan.display_cursor(null, null, 'ALLSTATS LAST'));
    PLAN_TABLE_OUTPUT
    SQL_ID  gs5vtgany8vbv, child number 3
    select /*+ gather_plan_statistics */        w.worker_id, w.worker_name
    from tas.worker_v                   w,        tas.worker_cost_centre_v
          c  where w.worker_id = c.worker_id    and c.effective_date <=
    trunc(sysdate)    and c.expiration_date >= trunc(sysdate)    and
    c.cost_centre = '100033'    and tas_user.pkg_taw_security.user_worker_ac
    cess('CA17062',
    'TIMEKEEPER',                                            w.worker_id,
                                             trunc(sysdate)) = 1  order by
    w.worker_name
    Plan hash value: 1726112176
    | Id  | Operation                      | Name                   | Starts | E-Rows | A-Rows |   A-Time   | Buffers |  OMem |  1Mem | Used-Mem |
    |   0 | SELECT STATEMENT               |                        |      1 |        |      4 |00:00:18.52 |     947K|       |       |          |
    |   1 |  SORT ORDER BY                 |                        |      1 |      4 |      4 |00:00:18.52 |     947K|  2048 |  2048 | 2048  (0)|
    |*  2 |   HASH JOIN                    |                        |      1 |      4 |      4 |00:00:15.84 |     947K|  1348K|  1348K|  791K (0)|
    |   3 |    VIEW                        | WORKER_COST_CENTRE_V   |      1 |      4 |      4 |00:00:00.01 |      18 |       |       |          |
    |*  4 |     TABLE ACCESS BY INDEX ROWID| WORKER_COST_CENTRE_TBL |      1 |      4 |      4 |00:00:00.01 |      18 |       |       |          |
    |*  5 |      INDEX RANGE SCAN          | WORKER_CC_CC_IDX       |      1 |     29 |     21 |00:00:00.01 |       3 |       |       |          |
    |*  6 |    VIEW                        | WORKER_V               |      1 |    161K|      4 |00:00:15.84 |     946K|       |       |          |
    |   7 |     TABLE ACCESS FULL          | WORKER_TBL             |      1 |    161K|    160K|00:00:00.09 |    2135 |       |       |          |
    Predicate Information (identified by operation id):
       2 - access("W"."WORKER_ID"="C"."WORKER_ID")
       4 - filter("X"."EXPIRATION_DATE">=TRUNC(SYSDATE@!))
       5 - access("X"."COST_CENTRE"='100033' AND "X"."EFFECTIVE_DATE"<=TRUNC(SYSDATE@!))
       6 - filter("PKG_TAW_SECURITY"."USER_WORKER_ACCESS"('CA17062','TIMEKEEPER',"W"."WORKER_ID",TRUNC(SYSDATE@!))=1)
    Note
       - cardinality feedback used for this statement
    39 rows selected.
    SQL>
    On TASD as TAS: (GOOD EXECUTION PLAN)
    SQL> set serveroutput off
    SQL>
    SQL> select /*+ gather_plan_statistics */
      2         w.worker_id, w.worker_name
      3    from tas.worker_v                   w,
      4         tas.worker_cost_centre_v       c
      5   where w.worker_id = c.worker_id
      6     and c.effective_date <= trunc(sysdate)
      7     and c.expiration_date >= trunc(sysdate)
      8     and c.cost_centre = '100033'
      9     and tas_user.pkg_taw_security.user_worker_access('CA17062',
    10                                             'TIMEKEEPER',
    11                                             w.worker_id,
    12                                             trunc(sysdate)) = 1
    13   order by w.worker_name;
    WORKER_ID WORKER_NAME
    123703    FADDEN, CLAYTON
    11131     HAHN, BRAD
    33811     HALL, MAUREEN
    53934     JANES, CATHERINE
    SQL>
    SQL> select * from table(dbms_xplan.display_cursor(null, null, 'ALLSTATS LAST'));
    PLAN_TABLE_OUTPUT
    SQL_ID  gs5vtgany8vbv, child number 1
    select /*+ gather_plan_statistics */        w.worker_id, w.worker_name
    from tas.worker_v                   w,        tas.worker_cost_centre_v
          c  where w.worker_id = c.worker_id    and c.effective_date <=
    trunc(sysdate)    and c.expiration_date >= trunc(sysdate)    and
    c.cost_centre = '100033'    and tas_user.pkg_taw_security.user_worker_ac
    cess('CA17062',
    'TIMEKEEPER',                                            w.worker_id,
                                             trunc(sysdate)) = 1  order by
    w.worker_name
    Plan hash value: 3435904055
    | Id  | Operation                      | Name                   | Starts | E-Rows | A-Rows |   A-Time   | Buffers |  OMem |  1Mem | Used-Mem |
    |   0 | SELECT STATEMENT               |                        |      1 |        |      4 |00:00:00.01 |     185 |       |       |          |
    |   1 |  SORT ORDER BY                 |                        |      1 |      4 |      4 |00:00:00.01 |     185 |  2048 |  2048 | 2048  (0)|
    |   2 |   NESTED LOOPS                 |                        |      1 |        |      4 |00:00:00.01 |     185 |       |       |          |
    |   3 |    NESTED LOOPS                |                        |      1 |      4 |      4 |00:00:00.01 |     181 |       |       |          |
    |*  4 |     TABLE ACCESS BY INDEX ROWID| WORKER_COST_CENTRE_TBL |      1 |      4 |      4 |00:00:00.01 |      18 |       |       |          |
    |*  5 |      INDEX RANGE SCAN          | WORKER_CC_CC_IDX       |      1 |     29 |     21 |00:00:00.01 |       3 |       |       |          |
    |*  6 |     INDEX UNIQUE SCAN          | WORKER_PK              |      4 |      1 |      4 |00:00:00.01 |     163 |       |       |          |
    |   7 |    TABLE ACCESS BY INDEX ROWID | WORKER_TBL             |      4 |      1 |      4 |00:00:00.01 |       4 |       |       |          |
    Predicate Information (identified by operation id):
       4 - filter("X"."EXPIRATION_DATE">=TRUNC(SYSDATE@!))
       5 - access("X"."COST_CENTRE"='100033' AND "X"."EFFECTIVE_DATE"<=TRUNC(SYSDATE@!))
       6 - access("X"."WORKER_ID"="X"."WORKER_ID")
           filter("PKG_TAW_SECURITY"."USER_WORKER_ACCESS"('CA17062','TIMEKEEPER',"X"."WORKER_ID",TRUNC(SYSDATE@!))=1)
    Note
       - cardinality feedback used for this statement
    39 rows selected.
    SQL>

  • Same colour profile, but different users have different colour output!

    Installed Snow Leopard on a new Mac mini. Migrated two users from a Leopard install, made one fresh user.
    Sticking with the default profile for my monitor (HP 2159m), the freshly-made user matches the colour at the login window. The two migrated users, despite having the same profile selected, show darker colour than this. What gives?!
    Tried the guest account, and that matched the login window too. Can only assume this is a preferences issue or something, but having deleted some likely-looking plists (~/Library/Preferences/com.apple.ColorSyncCalibrator.plist, ~/Library/Preferences/com.apple.ColorSyncUtility.plist and some .GlobalPreferences files in ~/Library/Preferences/ByHost/), nothing has changed. These two users still have odd colour.
    You can watch it change. The new user will stay the same from the login window while the Finder loads, but for the migrated users the colour noticeably darkens immediately after the login window disappears. I'll reiterate: System Preferences claims they've all got the same profile selected.
    Any ideas?

    In case anyone else finds this, I discovered the root of my problem.
    The users with the odd, inconsistent colour profiles had got "Increase Contrast" turned on in Universal Access. Both only slightly, both by the same amount. Highly suspicious, as I know these different users had not changed this setting. Wonder if it's a migration problem. Anyway, colour is now consistent.

  • Same Apple ID but different emails

    First off, some info about my situation...I have a 4S, iPad 2 and MBP. I am the only one in my household that has iOS5 and can therefore use iCloud. When I was going through signup for iCloud, it asked for an existing Apple ID, so I used my iTunes account one (a Gmail address) and it then created a me.com email. So far, so good.
    Like many, I then thought it'd much easier if I could just use the new me.com address for everything Apple related from now on, so I tried to change the email address associated with my Apple ID to the me.com address...but no joy, as I kept getting the you can't use a MobileMe account etc. message (even though I've never had one!). I then noticed that somehow (I guess when I used my existing Apple ID to join iCloud) my me.com address was already listed as an alternate email for my Apple ID.
    I can log in to all things Apple related using either email address (although iTunes still shows my Gmail address even if I log in using the me.com address).
    Apple support files recommend that most users use the same Apple ID for both iTunes and iCloud. Am I right in thinking that as the 2 email addresses are linked and are the same Apple ID that it won't make any difference what email I use for either (so if I wanted I could use the me.com for iCloud as my "Apple ID" and the Gmail for iTunes, or vice versa or even use one for both)?
    Secondly, I'd like to use the new me.com address I created for FaceTime and iMessage...I have signed into FaceTime on OS X using the me.com address and on my 4S, under their respective setting I've also done this (plus I've put the me.com address for "You can be reached for video calls at"). Can people FaceTime etc. only if they know my me.com address or can they also use my Gmail address, seeing as they are the same Apple ID? I also realise that I can also add my Gmail address as an alternate for FaceTime and iMessages but do I need to, as again they are the same Apple ID?
    Sorry for the long winded post but thought it best to give as much as info as possible and hope it's written clearly!

    You can have the same Apple Id, but you do need to have different email addresses for the "You can be Reached by Facetime At" section under settings.
    If that is o.k, then make sure the email address you set for each device is the one being used to initiate the facetime call.
    If your facetime call is initiated using the email from the Apple ID its effectively like calling yourself.

  • EWS Managed API: Email sender name incorrect if loading properties of multiple emails and several emails have same email address (but different names)

    Hi,
    I have an issue using the Exchange Web Services Managed API. I'm essentially implementing an 'inbox', and am essentially using two calls:
    folder.FindItems(filter, view) with the view set up with the 'idonly' property.
    The returns a 'FindItemResults<>' object containing a set of items.
    And then calling service.LoadPropertiesForItems(items, props), where the props contains all 'first class properties', which includes the sender details.
    Now, the inbox contains several emails from the same email address but with different displaynames.
    E.g. There may be one email from "Bob <[email protected]>" and another email from "Alice <[email protected]>" and another email from "Charlie <[email protected]>" etc.
    The issue is that in the information that EWS returns from the call to LoadPropertiesForItems, every email ends up with the same sender name (from the first one in the list)!
    i.e. When I enumerate through the returned items, the item.Sender.Name will always be"Bob" for every email where Sender.Address is [email protected] 
    I have debugged this with a http sniffer just to ensure that it really is the EWS coming back with this information rather than anything in the managed layer.
    Is this a known issue? How can I work around this (without querying every single email for the sender name individually, as that would be too slow)?
    Thanks

    Hi Venkat,
    Thanks for the reply.
    The scenario is that the client receives emails from a (3rd-party) automated system. The email address from this automated system is always "noreply@<blah.com>", while the display name is used to differentiate the actual sender.
    I suspect that this kind of system will likely become more widely used, and so for us will increase in priority (obviously its a priority for our client already)!
    Just for the record, if this is a known issue do you have a bug number or equivalent for it? (I tried to search but couldn't locate it).

  • How To Create Table View With Same Column name But Different Table?

    Hi All,
    I have the problem to create a tableview with same column name but in different table.
    The Table that i have:-
    Table - PAC051MPROFORMA
    Column - mrn,visitid
    Table - PAC051TPROFORMA
    Column - mrn,visitid
    Table - PAC052MTRANSBILL
    Column - mrn,visitid
    Then i want to create a table view to view that table. This is my SQL
    CREATE VIEW pacviewproforma (mrn,visitid,mrn,visitid,mrn,visitid)
    As Select PAC051MPROFORMA.mrn,PAC051MPROFORMA.visitid,PAC051TPROFORMA.mrn,PAC051TPROFORMA.visitid,PAC052MTRANSBILL.mrn,PAC052MTRANSBILL.visitid
    where
    *(a.PAC051MPROFORMA.mrn=PAC051TPROFORMA.mrn)*
    and
    *(a.PAC051TPROFORMA.mrn=PAC052TRANSBILL.mrn)*
    That SQL Return this error = ORA-00957: duplicate column name
    Then I modify that SQL to
    CREATE VIEW pacviewproforma (mrn,visitid)
    As Select PAC051MPROFORMA.mrn,PAC051MPROFORMA.visitid,PAC051TPROFORMA.mrn,PAC051TPROFORMA.visitid,PAC052MTRANSBILL.mrn,PAC052MTRANSBILL.visitid
    where
    *(a.PAC051MPROFORMA.mrn=PAC051TPROFORMA.mrn)*
    and
    *(a.PAC051TPROFORMA.mrn=PAC052TRANSBILL.mrn)*
    This time this error return = ORA-01730: invalid number of column names specified
    What should i do?
    Thanks...

    Hi,
    SQL> CREATE VIEW pacviewproforma (mrn,visitid,mrn,visitid,mrn,visitid)
      2  As Select
      3  PAC051MPROFORMA.mrn,
      4  PAC051MPROFORMA.visitid,
      5  PAC051TPROFORMA.mrn,
      6  PAC051TPROFORMA.visitid,
      7  PAC052MTRANSBILL.mrn,
      8  PAC052MTRANSBILL.visitid
      9  from PAC051MPROFORMA,PAC051TPROFORMA,PAC052MTRANSBILL
    10  where
    11  (PAC051MPROFORMA.mrn=PAC051TPROFORMA.mrn)
    12  and
    13  (PAC051TPROFORMA.mrn=PAC052MTRANSBILL.mrn);
    CREATE VIEW pacviewproforma (mrn,visitid,mrn,visitid,mrn,visitid)
    ERROR at line 1:
    ORA-00957: duplicate column namePlease give different names to each column.
    Something like this..
    SQL> CREATE OR REPLACE VIEW pacviewproforma (MPROFORMA_mrn,MPROFORMA_visitid,TPROFORMA_mrn,TPROFORMA
    _visitid,MTRANSBILL_mrn,MTRANSBILL_visitid)
      2  As Select
      3  PAC051MPROFORMA.mrn,
      4  PAC051MPROFORMA.visitid,
      5  PAC051TPROFORMA.mrn,
      6  PAC051TPROFORMA.visitid,
      7  PAC052MTRANSBILL.mrn,
      8  PAC052MTRANSBILL.visitid
      9  from PAC051MPROFORMA,PAC051TPROFORMA,PAC052MTRANSBILL
    10  where
    11  (PAC051MPROFORMA.mrn=PAC051TPROFORMA.mrn)
    12  and
    13  (PAC051TPROFORMA.mrn=PAC052MTRANSBILL.mrn);
    View created.
    SQL> DESC  pacviewproforma;
    Name                                      Null?    Type
    MPROFORMA_MRN                                      NUMBER
    MPROFORMA_VISITID                                  NUMBER
    TPROFORMA_MRN                                      NUMBER
    TPROFORMA_VISITID                                  NUMBER
    MTRANSBILL_MRN                                     NUMBER
    MTRANSBILL_VISITID                                 NUMBER
    ORA-01730: invalid number of column names specifiedThe list of column nmae you specified during the CREATE VIEW should match with the SELECT list of the view.
    Twinkle

  • Using the same script twice but different options on a single page

    having a hard time figuring out how to run the cycle script which is in use on one portion of my webpage as a slider gallery under my header, but i'd also like to use it in  a small are in the upper right of the same page but with a different transition, to showcase specific products in a gallery.
    how do i accomplish this? I've been to the cycle plugin page http://malsup.com/jquery/cycle/begin.html but am having trouble interpreting their page source syntax
    in my head section i have the following declared:
    <script type="text/javascript" src="../js/jquery.cycle.all.latest.js"></script>
    <script type="text/javascript">
    $(document).ready(function() {
        $('.slideshow').cycle({
            fx: 'shuffle' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
    </script>
    and in my body its invoked simply by:
    <div class="slideshow">
                <img src="../images/splash1.jpg" width="761" height="210" />
                <img src="../images/splash2.jpg" width="761" height="210" />
                <img src="../images/splash3.jpg" width="761" height="210" />
                <img src="../images/splash4.jpg" width="761" height="210" />
                <img src="../images/splash5.jpg" width="761" height="210" />
    </div>
    now should i change the head function to
    <script type="text/javascript" src="../js/jquery.cycle.all.latest.js"></script>
    <script type="text/javascript">
    $(function() {
        // run the code in the markup!
        $('td pre code').each(function() {
            eval($(this).text());
    </script>
    and how would i later invoke this the body here?
    <div class="slideshow">
                <img src="../images/splash1.jpg" width="761" height="210" />
                <img src="../images/splash2.jpg" width="761" height="210" />
                <img src="../images/splash3.jpg" width="761" height="210" />
                <img src="../images/splash4.jpg" width="761" height="210" />
                <img src="../images/splash5.jpg" width="761" height="210" />
    </div>
    <pre><code class="mix">$('#s1').cycle('fade');</code></pre> - this is what they do on their wepage but i dont understand what this <pre><code class="mix"... is all about.
    can someone please explain
    thanks

    I recommend using Cycle2 instead of the old Cycle Plugin.  Out of the box, Cycle2 is better and has more features.  Just copy & paste the following code into a new document. 
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>HTML5 Document with Cycle2</title>
    <!--HTML5 help for older IE browsers-->
    <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
    <!--Latest jQuery Core Library-->
    <script src="http://code.jquery.com/jquery-latest.min.js">
    </script>
    <!--Cycle2 Slideshow-->
    <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery.cycle2/20130409/jquery.cycle2.min.js"></script>
    <style>
    body {width: 900px;margin: 0 auto}
    /**Slideshow**/
    .cycle-slideshow {
    margin: 0;
    padding: 0;
    width:500px;
    border: 1px solid silver;
    margin: 0 auto;
    .cycle-slideshow img  {
    width: 500px;
    margin: 0 auto
    .center { text-align: center }
    </style>
    </head>
    <body>
    <!--begin 1st slideshow-->
    <div class="cycle-slideshow"
    data-cycle-fx="swipe"
    data-cycle-pause-on-hover="true"
    data-cycle-speed="2200"
    >
    <img src="http://malsup.github.com/images/p1.jpg" alt="">
    <img src="http://malsup.github.com/images/p2.jpg" alt="">
    <img src="http://malsup.github.com/images/p3.jpg" alt="">
    <img src="http://malsup.github.com/images/p4.jpg" alt="">
    <!--end 1st slideshow--></div>
    <p> </p>
    <p> </p>
    <!--begin 2nd slideshow-->
    <div class="center">
    <a href=# id=next>Next</a>
    </div>
    <div class="cycle-slideshow"
        data-cycle-fx="fadeout"
        data-cycle-timeout="3000"
        data-cycle-next="#next"
        data-cycle-manual-fx="scrollHorz"
        data-cycle-manual-speed="300"
        >
    <img src="http://malsup.github.com/images/p1.jpg" alt="">
    <img src="http://malsup.github.com/images/p2.jpg" alt="">
    <img src="http://malsup.github.com/images/p3.jpg" alt="">
    <img src="http://malsup.github.com/images/p4.jpg" alt="">
    <!--end 2nd slideshow--></div>
    </body>
    </html>
    Use whichever effects you prefer:
    http://www.malsup.com/jquery/cycle2/demo/shuffle.php
    Nancy O.

  • How to handle same material number but different condition?

    In our industry(aerospace aftermarket), we can have inventory for one material in different conditions, e.g new, overhauled, scrap, etc. We use batch management and store the condition at the batch level. This probably was not the best way to handle this and now we're wondering how we can run MRP for a specific material, but only for certain conditions.
    From what I understand MRP only occurs at the material level, not the material-condition level. Is my assumption correct? Obviously, we would not want to include scrap inventory in any MRP or forecasting calculations. So if we had 10 for material 1234 in inventory, we'd want to exclude the amount that's scrap or any other condition we don't want to include in a forecast/MRP. 
    Is there a best practice that someone can share to handle this type of inventory management issue? Thanks!

    Hi,
    I've never used this but please have a look at it:
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/c6/126422bd9c11d1b54f0000e82de178/frameset.htm
    Planning startegies for variants:
    This section describes how to plan products that have a practical limited number of possible combinations of characteristics and characteristic values. Technically speaking this section describes the use of variants to sell configurable materials.
    Regards,
    Csaba
    Edited by: Csaba Szommer on Feb 5, 2009 10:46 PM

  • Interactive Reporting Reports - Same Rpt Format, but Different Result Set

    I have created a report using result set 1. I've saved that, but want to copy it & use the same format/columns to create a new report using a different result set (the result sets have the same data, but one is filtered). Is there an easy way to change the name of the result set being used w/o re-creating the entire report columns & all?
    Terri

    I am in the Dashboard Studio - Optimize Utility. When I select that report (or any of the others), the Reparent button is grayed out on the toolbar. I've also tried right-clicking on the report and it's grayed out there as well. Any ideas?

  • Same exact Code but different results

    I am trying to fill a Listbox in a single Dialog based program using names
    from a file. I started by using an example program from the MSDN - Modeless.
    A simple Dialog based program using a modeless dialog to add strings to a
    Listbox in the main dialog. I inserted into the sample program the following
    code, which works perfectly:
    #include <Fstream>
    BOOL CLeasesDlg:nInitDialog()
    char* names;
    CListBox* pList = (CListBox*) GetDlgItem(IDC_LIST);
    infile.open("Leases",ios::in, filebuf:penprot);
    while( (infile.getline(names,25,'\n')) != NULL)
    pList->AddString(names);
    infile.close();
    Sunce the sample program was just a stepping stone I created my own Dialog
    based program using the AppWizard. I inserted the above code. I now receive
    an "unhandled exception" error every time during the "getline" execution. I
    have been trying for the last several days to track down the problem but can
    not.
    Some of what I learned:
    First-chance exception in Leases.exe (MSVCIRTD.DLL): 0xC0000005: Access
    Violation.
    so I wrote code to establish access permissions:
    int test = 0;
    // Check for existence
    if( test = ((_access( "Leases", 0 )) != -1) )
    // Check for read permission
    if(test = ((_access( "Leases", 4 )) != -1) )
    I stepped thru both with no problem. The file exist and is readable but can
    not retreive the first name.
    In the disassembly window it stops on this line:
    strgetl.cpp --------------------------------------------------------------
    102A75CD 88 08 mov byte ptr [eax],cl
    I do not understand how the code can work in the sample program and not work
    in the one I created. I looked back at another program I wrote several years
    ago and I used the exact same code with no problem. I would think that my
    compiler was corrupted but it compiles the modeless sample program.
    I am totally baffled .... PLEASE ... PLEASE help!
    I would be greatly appreciative

    Hey Randy,
    This forum is reserved for Measurement Studio questions.  I recommend checking with Microsofts forums because the people there will have more experience doing what you are looking for. 
    Regards,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • Same patch number but different instructions in readme

    Hello,
    We have a current deployment of EBS-SE 11.5.9 and have a problem on LOV. As I checked on the patches that were applied I noticed that patch 3749160 which was applied in the year 2004 have a different readme specifically in post install instruction.
    Both readme differ in Build date.
    I need guidance on applying the said patch. If ever I am gonna apply the post install instruction located in new patch build, will it affect the stability of the deployed system? (We also have a test server for this) as we can see years have past since the release build. I am new to Oracle and may I also ask if this is the way Oracle releases an update to patch?
    Sorry for the newbie question.
    Thank you
    Below are the excerpt:
    Applied on 2004 3749160
    ==============================================================================
    PROFILE LOV -OM: INV & NON DEL SOURCE NOT SHOWING ALL VALUES
    ==============================================================================
    Update - 3749160
    Product - Order Management
    Release - 11i
    Platform - Generic Platform
    Built - JUL-06-2004 23:59:42
    ==============================================================================
    Instructions
    ==============================================================================
    This patch contains the following unified driver file to be applied with
    AutoPatch:
    u3749160.drv (This is the unified driver)
    You must apply the patches listed below before applying this patch #
    3749160. For patches that are included in Family Packs, you may apply either the
    individual patch or the Family Pack. When available, Family Packs are shown to
    the right of the individual patches they include. If you have already applied
    the patches or Family Packs mentioned below, you need not reapply them.
    Apply OM Prerequisite (PRP) patch # 3234019.
    Current Patch
    ==============================================================================
    PROFILE LOV -OM: INV & NON DEL SOURCE NOT SHOWING ALL VALUES
    ==============================================================================
    Update - 3749160
    Product - Order Management
    Release - 11i
    Platform - Generic Platform
    Built - FEB-05-2007 14:35:43
    ==============================================================================
    Instructions
    ==============================================================================
    This patch contains the following unified driver file to be applied with
    AutoPatch:
    u3749160.drv (This is the unified driver)
    You must apply the patches listed below before applying this patch #
    3749160. For patches that are included in Family Packs, you may apply either the
    individual patch or the Family Pack. When available, Family Packs are shown to
    the right of the individual patches they include. If you have already applied
    the patches or Family Packs mentioned below, you need not reapply them.
    Apply OM Prerequisite (PRP) patch # 3234019.
    Post-requisites
    Be sure to apply OM patch # 5849689 AFTER applying this patch # 3749160. If you
    do not, OM may not function properly.
    ==============================================================================

    Hi,
    It is unusual, but not impossible, for patch READMEs to change over time. Even more rarely, the readme in the patch bundle can differ from the online readme, but Oracle generally does a pretty good job of keeping both sets of instructions in sync. :-)
    In this case, it looks like the only thing that has changed is an instruction to apply a "post-req" patch. A likely scenario is that the original patch (3749160) caused problems for some users (but only some, thus "OM +may+ not function properly" in the revised readme), and patch 5849689 was released to resolve those issues. Then, to make sure more people weren't impacted by the problem, they revised the readme of the original patch (3749160) to direct users to apply the post-requisite.
    If you want to try to put your mind at ease about the two different versions of 3749160, and you still have the original patch bundle that was applied long ago, you could compare it to the contents of the current version on the patch bundle. I suspect that the only differences you will find are in the content of the readme files. :-)
    If you are not experiencing the problem that patch 5849689 is meant to solve, and patch 3749160 has been in place on your system for a long time, then you may be in the clear. It's also possible that another patch (family pack, minipack, etc) has already delivered the fix in 5849689 to your system, in which case you are also already covered.
    If you need an official answer to your question, however, you should open a service request with Oracle Support.
    Regards,
    John P.
    [http://only4left.jpiwowar.com|http://only4left.jpiwowar.com|Shameless plug for my low-volume blog]

  • How do I use the same css style but different attributes, Without affecting another page.

    Hey everyone,
    I am using the "NivoSlider", for my dreamweaver page but I am not sure how to tell styles that one page has one attribute and the other one will have a different attribute.
    For example: in my "about us" I have a small slideshow with its own pictures. I then put  a gallery page with its own pictures, yet, I want to make that slideshow box larger without affecting the other small slideshow.
    I am using just one Style.CSS for the slideshow.
    Anyways, is their a way to tell tell the code that one page is going to be a different width then the other?
    Thank you!

    Embedded CSS rules take priority over styles in external style sheets.   So you can add page specific rules between your document's <head> tags and after all other links to external CSS files.
    <style>
         page specific rules here....
    </style>
    Nancy O.

  • How do you use family share when we all currently use the same Apple ID but different iCloud accounts?

    our family is currently using all the same Apple ID so we don't have to purchase thing twice, but now I want to set up the family share. Do we all have to have our own Apple ID to set up the family share? We do all have separate iCloud's accounts, I'm not sure if that even makes a difference.

    Hello me1002,
    That is a good question. Everyone will need their own Apple ID that is signed into iCloud and iTunes. When setting this up, someone will need to be the Organizer so whom ever it is will champion this. Then everyone else will need to sign in to each respective accounts and then the organizer will need to send out invites to join Family Sharing. If you get that all setup, remember that when making purchases from those Apple ID will belong to that specific Apple ID so if anyone leaves, others will not have access to that purchased content. 
    Start or join a family group using Family Sharing
    http://support.apple.com/en-us/HT201088
    Regards,
    -Norm G. 

Maybe you are looking for

  • Problem with JPY and KRW currency in PDf printing

    Hello, we are printing the PDF account statement. Till today for KRW and JPY currencies, if the value is 30000 ( I mean more than 3 digits ), then it is printing as 30 000 ( space as seperator ). But we have tried to post a document and checked it fo

  • Can't get printer to create e-mail address

    I have a new 6500a printer at home.  It is hooked up to ethernet and the internet.  I can print to it from the PC's on my network and it is on the internet because I can access my google documents through the apps screen.  It fails to create an e-mai

  • Taking Backup of Attachments(files) stored in the wwv_flow_files

    hi, i am buiding an application which involves uploading files and downloading of files, but now i am trying to achive purge of data in the wwv_flow_files but before purging i want to take the backup of all data or files in the wwv_flow_files, apart

  • Need some help getting started with Mobility Services Engine

    Someone has ordered several 3602 access points, a 5508 controller, and a MSE 3310 for one of our remote locations. The access points and controller are in place and are working fine (we use lightweight APs at many other locations), but I'm not sure h

  • Quality when Rendering a PhotoShop in FCE (and example of..)

    I work at a Birkenstock store. My boss asked me to make some "slides" for a TV commercial. I made them in Photoshop 300dpi and imported to FCE. It looks great FCE but then as soon as I render the sequence it looks terrible. I put an example of both o