How Oracle compute the cardinality if no stats

Hi
9.2.0.6
very simple query
SELECT *
FROM TRFPRDTXT.F559215A
WHERE (QALOTN = :KEY1)
| Id | Operation | Name | Rows | Bytes | Cost |
| 0 | SELECT STATEMENT | | 2 | 392 | 2 |
| 1 | TABLE ACCESS BY INDEX ROWID| F559215A | 2 | 392 | 2 |
|* 2 | INDEX RANGE SCAN | F559215A_4 | 2 | | 1 |
Predicate Information (identified by operation id):
2 - access("F559215A"."QALOTN"=:Z)
optimizer_mode = choose
no stats on table/index
the question:
why cardinallity is 2 ?
Thanks for your help

There are two possibilities (as far as I know):
* dynamic sampling was introduced with 9.2, so the system could gather the statistics on the fly: http://blogs.oracle.com/optimizer/entry/dynamic_sampling_and_its_impact_on_the_optimizer
* if dynamic sampling is not active (I don't know the default in 9.2) then the cbo has to use some default values: http://download.oracle.com/docs/cd/B10500_01/server.920/a96533/stats.htm#25064
The index costing will follow the formula that Wolfgang Breitling first made public in 2002 (and which is discussed in detail in Jonathan Lewis' Cost Based Oracle, Chap. 4, S. 62 ff.):
cost = blevel + ceiling(leaf_blocks * effective index selectivity) + ceiling(clustering factor * effective table selectivity)Regards
Martin Preiss

Similar Messages

  • How to clear the power up reset states

    my pci 7344 is  in the power up reset state. How to clear the power up reset state of an 7344 programmatically. Using clear power up reset state in block diagram doesnt seem to work. Give a possible solution

    This is the VI I use to initialize a motion controller. It clears the power up reset if needed and then initialize the controller with the specified configuration (previously created with MAX).
    Sorry for the french comments.
    Attachments:
    Initialiser interface avec gestion power up reset (LV8).vi ‏26 KB

  • Tablespace allocation type system  how oracle determines the extent size

    HI
    It may be silly question but the I have to ask and get some knowdge
    Suppose tablespace allocation_type is system then how oracle determins the inital extent and max extent size?

    Was this tablespace converted to locally managed from an existing tablespace? If so, the existing extents still exist after the conversion. Also depending on the Oracle version and maybe platform the pct_increase parameter is still honored after the conversion which can lead to odd sizes. The current value of this parameter may not be the value that was in effect when extents were allocated.
    Also Oracle enhanced the logic to not leave odd sized extents unused so that if by rights the system should take a 64K extent but there is a 56K extent available (perhaps at the end of a file) it can be used to fill the extent request.
    HTH -- Mark D Powell --

  • How to reset the JSF Portlet session state in weblogic portal 10.3

    Hi All,
    We are implementing our application with the jsf1.2 with 10.3.0 portal framework.
    in a tab i placed my jsf portlet, it will navigate up to 4 pages. We do have some other tabs too in our application. So when i navigate to other tabs and when i comeback to the jsf portlet tab i am resetting the portlet state to first page by onDeactivation portal event.
    But the problem when the user within the tab and navigate to pages if he clicks again the tab it is not redirecting to start page.
    I know we do have refresh action in our pageflows .. but how to reset the jsf portlet to start page when it is not deactivating. Please do help me..
    Thanks in advance...
    Edited by: Siddu4u on Oct 10, 2011 8:33 PM

    Hello,
    This documentation should help you to use the import tool in the Portal Admin Console:
    http://download.oracle.com/docs/cd/E15919_01/wlp.1032/e14245/deployment.htm#i1047336
    Kevin

  • How to compute the sum of words(or bytes) in tables?

    Sir
    Now there are several million records in a database, I want compute the sum of words(or bytes) in the tables by query condition. I have used ADO to access database, and use this SQL sentence-- 'select length(clo1)+length(col2)+..+length(coln) from tablename where ..' --to get resultset, and then sum the result, the speed is slowly. How can i do it in great efficiency?
    thanks

    Increasing efficiency?
    You revisit the requirement. Determine exactly what is needed and whether adding LENGHTs of columns provides a correct, never mind accurate, answer.
    Oracle space utilisation, physical row size and so on, are vastly more complex than a simply adding lengths of columns together.

  • How to compute the italian codice fiscale

    Is there anyone who can give me a PL/SQL or a package computing the italian codice fiscale getting in input Name, Sirname, birthdate, ...?
    I suppose it exists and I don't want to reinvent the wheel.
    My oracle version is 8.1.7 i
    Thanks in advance!

    Maybe
    using http://www.paginainizio.com/service/strutturacodicefiscale.htm but NOT TESTED (just something to play with)
    declare
    /* input data */
      nome    varchar2(50) := 'SUONOME';                       /* first name */
      cognome varchar2(50) := 'COGNOME';                       /* last name */
      nascita date         := to_date('19331122','yyyymmdd');  /* date of birth */
      sesso   varchar2(1)  := 'M';                             /* gender */
      comune  varchar2(4)  := 'A123';                          /* birthplace code */
    /* obtaining first/last name vowels and consonants */
      nome_c  varchar2(50) := translate(upper(nome),'~AEIOU','~');          /* first name consonants - vowels deleted */
      nome_v  varchar2(50) := translate(upper(nome),'~'||nome_c,'~');       /* first name vowels - consonants deleted */
      cnome_c varchar2(50) := translate(upper(cognome),'~AEIOU','~');       /* last name consonants - vowels deleted */
      cnome_v varchar2(50) := translate(upper(cognome),'~'||cnome_c,'~');   /* last name vowels - consonants deleted */
    /* computing code components */
      campo_1 varchar2(3)  := substr(substr(nome_c,1,1)||substr(nome_c,3,1)||substr(nome_c,4,1)||nome_v,1,3);         /* 1st,3rd,4th first name consonant */
      campo_2 varchar2(3)  := substr(substr(cnome_c,1,1)||substr(cnome_c,2,1)||substr(cnome_c,3,1)||cnome_v,1,3);     /* 1st,2nd,3rd last name consonant */
    /* vowels should be concatenated when there are not enough consonants -> how about DARIO FO ? DAI FO? */
      campo_3 varchar2(2)  := to_char(nascita,'YY');                                                                  /* last two digits of year of birth */
      campo_4 varchar2(1)  := substr('ABCDEHLMPRST',to_number(to_char(nascita,'MM')),1);                              /* month of birth converted */
      campo_5 varchar2(2)  := lpad(to_char(to_number(to_char(nascita,'DD')) + decode(sesso,'M',0,'F',40,100)),2,'0'); /* day of birth + 40 for women */
      campo_6 varchar2(4)  := comune;
    /* concatenating code (without check character) */
      codice  varchar2(16) := campo_1 || campo_2 || campo_3 || campo_4 || campo_5 || campo_6;
    /* conversion tables for check character computation */
      caratt  varchar2(36) := '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ';                                      /* characters to be converted */
      p_pari  varchar2(72) := '000102030405060708090001020304050607080910111213141516171819202122232425';  /* corresponding conversion numbers for even positions */
      p_disp  varchar2(72) := '010005070913151719210100050709131517192102041820110306081214161022252423';  /* corresponding conversion numbers for odd positions */
    /* auxiliary fields */
      somma   pls_integer  := 0;
      posiz   pls_integer;
    begin
      for i in 1 .. 15
      loop
        posiz := instr(caratt,substr(codice,i,1)));  /* the position of the i-th code character in the conversion table */
        if mod(i,2) = 0 then
          somma := somma + to_number(substr(p_pari,2 * posiz - 1,2));  /* the corresponding number added to the sum for even code character positions */
        else
          somma := somma + to_number(substr(p_disp,2 * posiz - 1,2));  /* the corresponding number added to the sum for odd code character positions */
        end if;
      end loop;
      somma := mod(somma,26);  /* the remainder of division */
      codice := codice || substr(caratt,somma + 11,1);  /* concatenating the check character */
      dbms_output.put_line(codice);
    end;Regards
    Etbin
    Edited by: Etbin on 24.12.2011 7:38
    row changed to if mod(i,2) = 0 then

  • How to display the form of time statement, which was created in trans. PE50

    Hi to all!
    I have created the salary statement with the PE50 and I want the form to be displayed in the ESS.
    How to display this form?
    Thank.

    Dear Siddharth,
    I am getting this error for Time Statement here also we have used PE50 to create time statement for r/3 purpose, Which would be feasible one to work with for getting the display of Time Statement.
    Form TH_TIME_ST does not exist
    com.sap.pcuigp.xssfpm.java.FPMRuntimeException: Form TH_TIME_ST does not exist
         at java.lang.Throwable.<init>(Throwable.java:194)
         at java.lang.Error.<init>(Error.java:49)
         at com.sap.pcuigp.xssfpm.java.FPMRuntimeException.<init>(FPMRuntimeException.java:34)
         at com.sap.pcuigp.xssfpm.java.MessageManager.raiseException(MessageManager.java:112)
         at com.sap.pcuigp.xssfpm.java.MessageManager.raiseException(MessageManager.java:122)
         at com.sap.xss.hr.rep.fcrfw.FcRepFramework.reportBapiRet2Error(FcRepFramework.java:525)
         at com.sap.xss.hr.rep.fcrfw.FcRepFramework.callRfcExecAction(FcRepFramework.java:357)
         at com.sap.xss.hr.rep.fcrfw.FcRepFramework.initModel(FcRepFramework.java:292)
         at com.sap.xss.hr.rep.fcrfw.wdp.InternalFcRepFramework.initModel(InternalFcRepFramework.java:256)
         at com.sap.xss.hr.rep.fcrfw.FcRepFrameworkInterface.initModel(FcRepFrameworkInterface.java:136)
         at com.sap.xss.hr.rep.fcrfw.wdp.InternalFcRepFrameworkInterface.initModel(InternalFcRepFrameworkInterface.java:198)
         at com.sap.xss.hr.rep.fcrfw.wdp.InternalFcRepFrameworkInterface$External.initModel(InternalFcRepFrameworkInterface.java:258)
         at com.sap.xss.hr.tim.per.selection.VcTimPerSelection.onInit(VcTimPerSelection.java:238)
         at com.sap.xss.hr.tim.per.selection.wdp.InternalVcTimPerSelection.onInit(InternalVcTimPerSelection.java:246)
         at com.sap.xss.hr.tim.per.selection.VcTimPerSelectionInterface.onInit(VcTimPerSelectionInterface.java:162)
         at com.sap.xss.hr.tim.per.selection.wdp.InternalVcTimPerSelectionInterface.onInit(InternalVcTimPerSelectionInterface.java:144)
         at com.sap.xss.hr.tim.per.selection.wdp.InternalVcTimPerSelectionInterface$External.onInit(InternalVcTimPerSelectionInterface.java:220)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.doProcessEvent(FPMComponent.java:467)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.doEventLoop(FPMComponent.java:438)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.wdDoInit(FPMComponent.java:196)
         at com.sap.pcuigp.xssfpm.wd.wdp.InternalFPMComponent.wdDoInit(InternalFPMComponent.java:110)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:108)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:199)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:359)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:362)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:755)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:278)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java:722)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:623)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:215)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:113)
         at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:70)
         at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.sendDataAndProcessActionInternal(AbstractApplicationProxy.java:818)
         at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.create(AbstractApplicationProxy.java:220)
         at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1265)
         at com.sap.portal.pb.PageBuilder.createPage(PageBuilder.java:355)
         at com.sap.portal.pb.PageBuilder.init(PageBuilder.java:548)
         at com.sap.portal.pb.PageBuilder.wdDoRefresh(PageBuilder.java:592)
         at com.sap.portal.pb.PageBuilder$1.doPhase(PageBuilder.java:864)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processPhaseListener(WindowPhaseModel.java:750)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doPortalDispatch(WindowPhaseModel.java:715)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:113)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:107)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:278)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:623)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:215)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:113)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:60)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:332)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:0)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:335)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:963)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:249)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:0)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:92)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:30)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:35)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:101)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    Appreciate your help on this.
    Regs,
    Raj

  • OSM7 how to write the xq in Order State Policy

    In Order State Policy I set for
         state:In Progress Order State
         request: Cancel Order     
    a xq code in the Condition Transiction form, which check a xml field and return true or false base on the content, but it does not works.
    Now, can I log the input of Order State Policy and how can I debug the xq?
    Please helpme to undestund how to write and debug the xq code?
    below my xq:
    declare namespace saxon="http://saxon.sf.net/";
    declare namespace xsl="http://www.w3.org/1999/XSL/Transform";
    let $taskData := fn:root(.)/GetOrder.Response
    let $ponr := $taskData/_root/PONR
    let $ponr_value := fn:normalize-space( $ponr/text() )
    return
    if (fn:exists($taskData) )
    then (
    if ("NO" = $ponr_value) then (
    true()
    else (
    false()
    else(
         false()
    input example:
    <GetOrder.Response>
    <_root
    <PONR>NO</PONR>

    So, I can debug the xq adding the line below step by step...
    fn:trace($taskData, "label")
    Below my final xq that I put on the policy.
    declare namespace saxon="http://saxon.sf.net/";
    declare namespace xsl="http://www.w3.org/1999/XSL/Transform";
    let $taskData := fn:root(.)/GetOrder.Response
    let $ponr := $taskData/_root/PONR
    let $ponr_value := fn:normalize-space( $ponr/text() )
    return
    if (fn:exists($taskData) )
    then (
    if ( $ponr_value = "NO" ) then (
    true()
    else (
              fn:error(fn:QName("urn:com:metasolv:oms:xmlapi:1", "PointOfNoReturn"), "PONR reached.")
    else(
         fn:error(fn:QName("urn:com:metasolv:oms:xmlapi:1", "PointOfNoReturn"), "PONR reached taskData does not exist.")
    )

  • How to computer the row size of a table

    Hi
    How can i compute the row size of a table. My general Idea is
    create table emp(
    empno number(4),
    ename varchar2(10),
    hire_date date,
    update_yn timestamp);
    the character set is UFT8
    how can i compute the size of this table
    thanks

    Hi,
    for Avg. row length see this
    SQL> desc dba_tables
    Name                                      Null?    Type
    OWNER                                     NOT NULL VARCHAR2(30)
    TABLE_NAME                                NOT NULL VARCHAR2(30)
    TABLESPACE_NAME                                    VARCHAR2(30)
    CLUSTER_NAME                                       VARCHAR2(30)
    IOT_NAME                                           VARCHAR2(30)
    PCT_FREE                                           NUMBER
    PCT_USED                                           NUMBER
    INI_TRANS                                          NUMBER
    MAX_TRANS                                          NUMBER
    INITIAL_EXTENT                                     NUMBER
    NEXT_EXTENT                                        NUMBER
    MIN_EXTENTS                                        NUMBER
    MAX_EXTENTS                                        NUMBER
    PCT_INCREASE                                       NUMBER
    FREELISTS                                          NUMBER
    FREELIST_GROUPS                                    NUMBER
    LOGGING                                            VARCHAR2(3)
    BACKED_UP                                          VARCHAR2(1)
    NUM_ROWS                                           NUMBER
    BLOCKS                                             NUMBER
    EMPTY_BLOCKS                                       NUMBER
    AVG_SPACE                                          NUMBER
    CHAIN_CNT                                          NUMBER
    AVG_ROW_LEN NUMBER
    AVG_SPACE_FREELIST_BLOCKS                          NUMBER
    NUM_FREELIST_BLOCKS                                NUMBER
    DEGREE                                             VARCHAR2(10)
    INSTANCES                                          VARCHAR2(10)
    CACHE                                              VARCHAR2(5)
    TABLE_LOCK                                         VARCHAR2(8)
    SAMPLE_SIZE                                        NUMBER
    LAST_ANALYZED                                      DATE
    PARTITIONED                                        VARCHAR2(3)
    IOT_TYPE                                           VARCHAR2(12)
    TEMPORARY                                          VARCHAR2(1)
    SECONDARY                                          VARCHAR2(1)
    NESTED                                             VARCHAR2(3)
    BUFFER_POOL                                        VARCHAR2(7)
    ROW_MOVEMENT                                       VARCHAR2(8)
    GLOBAL_STATS                                       VARCHAR2(3)
    USER_STATS                                         VARCHAR2(3)
    DURATION                                           VARCHAR2(15)
    SKIP_CORRUPT                                       VARCHAR2(8)
    MONITORING                                         VARCHAR2(3)
    CLUSTER_OWNER                                      VARCHAR2(30)
    DEPENDENCIES                                       VARCHAR2(8)
    SQL> Regards!

  • How to avoid the below nested select statement

    Please any one help me how this select statemet is working and      how to avoid the nesetd select statement .
    if we avoid below nested , does it improve performace ?
    select field1 field2                                  
               into table w_feeds                                 
               from ZTable as t                         
               where field2 in r_feedf1                       
               and  POSITION_POSTDT =                           
               ( SELECT MAX( position_postdt ) FROM zTable 
                      where position_postdt le r_pdate-high    
                      and   field1 = t~field1 ).
    Thanks in Advace.

    Hi,
    Instead of nested query go for two separate queries. I see you are querying on the same table...so better go by this approach
    select field1 field2 POSITION_POSTDT
    into table w_feeds
    from ZTable
    where field2 in r_feedf1.
    Remove the where condition on POSITION_POSTDT
    Sort the table w_feeds by POSITION_POSTDT  Descending; So you will get data pertaining to Max Position_Postdt.
    Finally delete the other entries which are not Max.
    This will enhance the performance over the nested query.
    Regards
    Shiva
    Edited by: Shiva Kumar Tirumalasetty on Apr 27, 2010 7:00 PM
    Edited by: Shiva Kumar Tirumalasetty on Apr 27, 2010 7:00 PM

  • How to set the cardinality property as 1..n for a dynamically created node

    Hi...everybody
        I am creating Dropdown by index UI element and the
    context atrributes dynamically.To bind multiple data to a dropdown
    the cardinality property of the node should be 0..n or 1..n,
    But i could not set the property of the dynamically created context node to 0..n ...
    can any body suggest me..
    I implemented the following code in WDDoModify View
    IWDTransparentContainer tc=(IWDTransparentContainer)view.getElement("RootUIElementContainer");
    IWDNodeInfo node = wdContext.getNodeInfo().addChild("DynamicNode",null,true,true,false,false,false,true,null,
              null,null);
    IWDAttributeInfo strinfo=node.addAttribute("Value","ddic:com.sap.dictionary.string");
    dbyindex.bindTexts(strinfo);
    tc.addChild(dbyindex);
    I could successfully display one value in the drop down,by adding the following code before the line tc.addchild(dbyindex);
    IWDNode node1=wdContext.getChildNode("DynamicNode",0);
    IWDNodeElement nodeElement=node1.createElement();
    nodeElement.setAttributeValue("Value","Hello");
    node1.addElement(nodeElement);
    but when
    i am trying to bind multiple values i am getting Exception ,,,,

    hi
    you are getting the exception because of cardinality property.
    i.e   true,false and
    you are trying to add morethan one element.
    so,if you want to add morethan one than one element you have to set the cardinality property to true,true (or) false,true.
    In your code do the following modification for changing the cardinality.
    For 0..n -->false,true
          1..n-->true,true
    IWDTransparentContainer tc=(IWDTransparentContainer)view.getElement("RootUIElementContainer");
    IWDNodeInfo node = wdContext.getNodeInfo().addChild("DynamicNode",null,true,true,false,false,false,true,null,
    null,null);
    IWDAttributeInfo strinfo=node.addAttribute("Value","ddic:com.sap.dictionary.string");
    dbyindex.bindTexts(strinfo);
    tc.addChild(dbyindex);
    hope this will solve your problem.
    In addchild(..) the parameters are
    addChild("Name ,
                    Element class for model node ,
                    Is singleton? ,
                    Cardinality ,
                    Selection cardinality ,
                    Initialise lead selection? ,
                    Datatype ,
                    Supplier function ,
                     Disposer function);
    Regards
    sowmya

  • How to compute the ColorMatrix?

    What's the preferred way to compute the ColorMatrix of a new camera?
    Is it possible to compute the ColorMatrix from the ForwardMatrix?
    It seems that the ColorMatrix can be computed from the ForwardMatrix using the following formula:
    CM = WB * FM^{-1} * MW^{-1}
    where:
    - WB is the camera neutral values as a diagonal matrix
    - FM is the forward matrix
    - MW is the chromatic adaptation matrix
    I tried this formula on some color profiles made by Adobe and compared with the existing ColorMatrix.
    However, this formula yields a different result than the one existing in the profiles.
    What am I doing wrong?

    In fact the formula would be
    =A/B-100%
    or
    =B/A-100%
    given which percentage you which to know
    I often use a differerent one:
    =(B-A)/A ans of course I apply the percent format to the resulting cell.
    I don't know whih is the more efficient.
    Yvan KOENIG (VALLAURIS, France) dimanche 18 octobre 2009 12:58:27

  • How to compute the percent change between 2 cells results

    I'm trying to compute the percent of change (whether it be positive or negative) between the values in 2 cells, each of which is displaying the sum of a column of numbers entered manually.
    I'm currently using the following formula, and it seems to be working, but I'd really like to know if I'm accomplishing the result using the "correct" method (i.e. the correct convention).
    Any comments or corrections would be appreciated.
    Current formula:
    =Cell A/Cell B-100%
    Is this the best method/formula?
    Thanks in advance,
    Ron Herrmann

    In fact the formula would be
    =A/B-100%
    or
    =B/A-100%
    given which percentage you which to know
    I often use a differerent one:
    =(B-A)/A ans of course I apply the percent format to the resulting cell.
    I don't know whih is the more efficient.
    Yvan KOENIG (VALLAURIS, France) dimanche 18 octobre 2009 12:58:27

  • How to use the WHENEVER SQLERROR EXIT statement in a PL/SQL block.

    Hi,
    I am getting the following error when trying to add the following statement in an PL/SQL block.
    WHENEVER SQLERROR EXIT SQL.SQLCODE
    [exec] ERROR at line 23:
    [exec] ORA-06550: line 23, column 12:
    [exec] PLS-00103: Encountered the symbol "SQLERROR" when expecting one of the
    [exec] following:
    [exec] := . ( @ % ;
    How can i use the above statement in the PL/SQL Block? I have only IF statement in that block( between BEGIN and END).
    Thanks

    Hi,
    Usually there's always more than one solution.
    Can you post an example of what you're trying to accomplish?
    That would be useful.
    (Place the tag before and after your example to maintain formatting en spacing, see the [fac|http://forums.oracle.com/forums/help.jspa] regarding available tags)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to Open the FailedFilesLog.txt File (statement), and How to Increase the 100 File Limit (question)

    It took us a while to figure this out, so I'm posting this in case it's helpful for someone out there. Plus, I have a question...
    DPM gave the following error for one of our file servers:
    Description: The replica of Volume D:\ on <servername> is inconsistent with the protected data source. Number of files skipped for synchronization due to errors has exceeded the maximum allowed limit of 100 files on this data
    source (ID 32538 Details: Internal error code: 0x809909FE)
    Recommended action: Review the failure errors for individual files from the log file
    \\?\Volume{8492c150-f195-11de-a186-001cc4ef89a0}\B1E9D373-2C03-464E-A472-99BC93DB1E2A\FailedFilesLog.txt and take appropriate action. If some files fail consistently, you can exclude the folders containing these files by modifying the protection group or
    moving the files to another location.
    So, how do you actually open the FailedFilesLog.txt file shown in this DPM alert? What is this path referring to? Well, this is the mount point for the protected server's replica volume on the DPM server, which is mounted under \Program
    Files\Microsoft DPM\DPM\Volumes\Replica\servername\File System. Here you'll see the mount points for all of the server's protected volumes. However, if you try to open one of these mounted volumes
    in Windows Explorer, you'll get Access Denied, even if you have administrator rights. (If someone knows of a way around this, please let me know). As a workaround, you can access this mounted volume in an elevated
    command prompt. Steps:
    Open an Administrator Command Prompt
    Type mountvol <AnyAvailableDriveLetter>: \\?\Volume{VolumeGUID}
    Example:  mountvol m: \\?\Volume{8492c150-f195-11de-a186-001cc4ef89a0}   Note that we're only using the first part of the path to the FailedFilesLog.txt
    file given in the DPM alert, starting from \\? and ending after the
    } character.
    Next, type m: to change to the newly mounted m: drive.
    Then type cd B1E9D373-2C03-464E-A472-99BC93DB1E2A   This is actually a folder name so we're just going into this folder.
    Finally type dir and you should see the FailedFilesLog.txt file. This file can be copied to another location where it's easier to use (i.e. in Windows Explorer).
    Be sure to unmount this volume when you're done by typing mountvol m: /d in the command prompt. (Mountvol reference:
    http://technet.microsoft.com/en-us/library/cc772586(WS.10).aspx.)
    What a pain, eh? But at least by reviewing the FailedFilesLog.txt file you can determine which files or folders caused the sync to fail and thus take action accordingly.
    Now, here's my question: Where is that registry key that lets me adjust the limit of 100 files that DPM allows to be skipped before it fails the replica? Hopefully someone out there will tell me. I know this can be done because Kapil Malhotra
    said so in this post:
    http://groups.google.com/group/microsoft.public.dataprotectionmanager/browse_thread/thread/a179fa30fb50c9b0/e9a348f2a9386063?lnk=raot.
    Also, does anyone know what the internal error code 0x809909FE means in this alert? Knowing this my help us determine what caused these files to fail. Interestingly, in the FailedFilesLog.txt file, it gave a different error code next to each failed file:
    0x80070002.
    -Taylorbox

    Thanks for responding, Fahd. So, just to be sure...
    Do I add this registry key to the DPM server or to the protected servers (or both)?
    In either case, the ContinueOnFailure key does not currently exist. So, I must create this key and the MaxFailedFiles DWORD value
    manually, right?
    Does the server in which I create this regkey have to be restarted for it to take affect?
    Can the DPM alert for the 0x809909FE error event (for exceeding the limit of 100 failures) please be adjusted to provide a path to the FailedFilesLog.txt file
    that actually works if you click on it?
    Any ideas on why the 0x80070002 "File not found" error happened? The files on the server were simply created and then deleted. Why would such file activity lead to this error?
    Thanks,
    -Taylorbox

Maybe you are looking for

  • Internet Page Loading has slowed to a crawl!

    I have enjoyed fast broadband service on my Mac Pro using Att's DSL service with a 3 megabit connection. Just recently when I click on a link or a bookmark, I am waiting a long time for the page to load. I have reset the DSL modem a few times without

  • IPod Software Update Server can not be contacted

    I have a vintage iPod Mini that I am attempting to Restore on a iMac PPC with iTunes 9.  When I select the Restore button in iTunes, a dialog box appears stating that the iPod Update Server can not be contacted.  Resolutions from the iTunes Help rela

  • New to Java cant get it to compile in msDOS

    Using SDK java 2 version 1.4.0. Checked my personal Computer folder types. In folders in windows 98 do java file types open with javac.exe or java.exe? Tried both. When I try to compile a simple tutorial HelloWorldApp.java , it gives me a message tha

  • HTTPS communication with XI

    Hi, We have a scenario  where we have  to  send  and receive documents  to/from  our vendor via internet using  HTTPS. So far we planned to use SOAP adapter for this communication and  web dispatcher as reverse proxy in our DMZ … but the problem is S

  • Mac OS X 10.4 and Card Reader

    I bought a Sandisk All-in-One Card Reader which was recognised by my Imac for one day only. On the second it was not recognised anymore! Astonishing: the reader is listed in the System Profiler.Until now I have not receoved any useful hint from Sandi