Performance with null parameters

The below is the main cursor for a small report with some horrible performance. The report is taking 30 to 40 minutes to generate just a few rows of data. After checking my joins and whether the indexes were correct and all the other simple things, I began removing the lines on the bottom that are just used to insert incoming parameters. What I found is that if I comment out the two lines on the bottom of the statement (with v_person_id and v_sup_id), the query returns immediately if I pass a start and end date only and leave the other parameters as null. If I run the query with those lines in and pass null for those values also, it goes back to 30 minutes or so. I am confused as passing them as null should make the line evaluate to ppf.person_id = ppf.person_id. We use this technique with all of our reporting when we pass null values but for some reason it is failing horribly in this query. Can anyone see what I am doing wrong?
SELECT ppf.employee_number,
        ppf.full_name,
        loc.attribute3,
        loc.location_code,
        glc.segment1,
        glc.segment2,
        glc.segment3,
        org.name,
        (SELECT ppf1.employee_number||'~'||ppf1.full_name
             FROM per_all_people_f ppf1
            WHERE trunc(sysdate) between ppf1.effective_start_date and ppf1.effective_end_date
              AND ppf1.person_id = asg.supervisor_id
               AND rownum = 1) supervisor,
        past.per_system_status,
        hts.approval_status
  FROM hr.per_all_people_f ppf,
          hr.per_all_assignments_f asg,
        hr.per_assignment_status_types past,
          hr.hr_all_organization_units org,
       hr.hr_locations_all loc,
        hxc.hxc_timecard_summary hts,
        hr.per_person_type_usages_f ppu,
        gl.gl_code_combinations glc,
        hr.per_person_types ppt
WHERE ppu.effective_end_date BETWEEN ppf.effective_start_date AND ppf.effective_end_date
   AND ppu.effective_end_date BETWEEN asg.effective_start_date AND asg.effective_end_date
   AND (   (:v_start BETWEEN ppu.effective_start_date AND ppu.effective_end_date
        OR (:v_end BETWEEN ppu.effective_start_date AND ppu.effective_end_date
        OR (ppu.effective_start_date BETWEEN :v_start AND :v_end
   AND asg.primary_flag = 'Y'
   AND asg.assignment_type = 'E'
   AND asg.assignment_status_type_id = past.assignment_status_type_id
   AND asg.organization_id = org.organization_id
   AND asg.location_id = loc.location_id
   AND asg.default_code_comb_id = glc.code_combination_id
   AND ppf.person_id = ppu.person_id
   AND ppf.person_id = asg.person_id
   AND ppu.person_type_id = ppt.person_type_id
   AND ppt.user_person_type = 'Employee'
   AND ppf.person_id = hts.resource_id
   AND hts.start_time between :v_start and :v_end
   AND org.name = NVL(:v_department, org.name)
   AND loc.location_code = NVL(:v_location, loc.location_code)
   AND glc.code_combination_id = NVL(:v_gl_code_id, glc.code_combination_id)
   AND asg.supervisor_id = NVL(:v_sup_id, asg.supervisor_id)---------------------------------------------------------------
   AND ppf.person_id = NVL(:v_person_id, ppf.person_id)-------------------------------------------------------------------

user7726970 wrote:
Now I am more confused as we tried something similar yesterday and it did not help but your version makes it respond immediately. Thanks for this. Would you please explain a little why your version works where my version does not?
and decode(:v_sup_id,null,'x',asg.supervisor_id) = decode(:v_sup_id,null,'x',:v_sup_id)
and decode(:v_person_id,null,'x',ppf.person_id)  = decode(:v_person_id,null,'x',:v_person_id)that depends on your version. the example that i have posted is simply to verify if your variable is null then use a character 'x'. that is like where 'x' = 'x' which does not use any table column or simply does nothing at all. and if the variable is not null simply use the table column with the variable and i am assuming that the table column has an index on it will utilize it for performance.

Similar Messages

  • How to construct query with null parameters in jpa 2.0

    Hi,
    I am creating a jpa 2.0 application. I have an entity with a large number of fields
    @Entity
    @Table(name="notations")
    public class Notation implements Serializable {
         private static final long serialVersionUID = 1L;
         @Id
         private Integer id;
         @Column(name="action_count")
         private Integer actionCount;
         @Column(name="adaptability_comment")
         private String adaptabilityComment;
         @Column(name="adaptability_score")
         private Integer adaptabilityScore;
         private String comment;
         @Column(name="compatibility_comment")
         private String compatibilityComment;
         @Column(name="compatibility_score")
         private Integer compatibilityScore;
         @Column(name="consistency_comment")
         private String consistencyComment;
         @Column(name="consistency_score")
         private Integer consistencyScore;
         @Column(name="controlpoint_name")
         private String controlpointName;
         @Column(name="device_brand")
         private String deviceBrand;
         @Column(name="device_name")
         private String deviceName;
         @Column(name="error_management_comment")
         private String errorManagementComment;
         @Column(name="error_management_score")
         private Integer errorManagementScore;
         @Column(name="explicit_control_comment")
         private String explicitControlComment;
         @Column(name="explicit_control_score")
         private Integer explicitControlScore;
         @Column(name="functionality_name")
         private String functionalityName;
         @Column(name="guidance_comment")
         private String guidanceComment;
         @Column(name="guidance_score")
         private Integer guidanceScore;
         @Column(name="is_available")
         private Boolean isAvailable;
         private String protocol;
         @Column(name="significance_comment")
         private String significanceComment;
         @Column(name="significance_score")
         private Integer significanceScore;
         @Column(name="tester_name")
         private String testerName;
         @Column(name="use_case_name")
         private String useCaseName;
         @Column(name="workload_comment")
         private String workloadComment;
         @Column(name="workload_score")
         private Integer workloadScore;
            getters, settersI am using a method to update this entity as the user changes different fields. My method takes (almost) all fields, but only one (or few) have values, the others are null.
    public Notation updateNotation(Integer id, Boolean isAvailable, String protocol, String deviceBrand,
                   String deviceName,String testerName, Date ratingDate, String functionalityName,
                   String useCaseName,     String controlPointName, Integer actionCount, String comment,
                   Integer adaptabilityScore, Integer compatibilityScore, Integer consistencyScore,
                   Integer errorManagementScore, Integer explicitControlScore, Integer guidanceScore, Integer significanceScore,
                   Integer workloadScore, String adaptabilityComment, String compatibilityComment,
                   String consistencyComment, String errorManagementComment, String explicitControlComment,
                   String guidanceComment, String significanceComment, String workloadComment) throws PersistenceException{
              String setString = "";
              if(isAvailable != null)
                   setString += "n.isAvailable = '" + isAvailable + "',";
              if(!(protocol==null||protocol.isEmpty()))
                   setString += "n.protocol = '" + protocol + "',";
              if(!(deviceBrand==null||deviceBrand.isEmpty()))
                   setString += "n.deviceBrand = '" + deviceBrand + "',";
              if(!(deviceName==null||deviceName.isEmpty()))
                   setString += "n.deviceName = '" + deviceName + "',";
              if(!(testerName==null||testerName.isEmpty()))
                   setString += "n.testerName = '" + testerName + "',";
              if(!(functionalityName==null||functionalityName.isEmpty()))
                   setString += "n.functionalityName = '" + functionalityName + "',";
              if(!(useCaseName==null||useCaseName.isEmpty()))
                   setString += "n.useCaseName = '" + useCaseName + "',";
              if(!(controlPointName==null||controlPointName.isEmpty()))
                   setString += "n.controlPointName = '" + controlPointName + "',";
              if(actionCount != null)
                   setString += "n.actionCount = '" + actionCount + "',";
              if(!(comment==null||comment.isEmpty()))
                   setString += "n.comment = '" + comment + "',";
              if(adaptabilityScore != null)
                   setString += "n.adaptabilityScore = '" + adaptabilityScore + "',";
              if(compatibilityScore != null)
                   setString += "n.compatibilityScore = '" + compatibilityScore + "',";
              if(consistencyScore != null)
                   setString += "n.consistencyScore = '" + consistencyScore + "',";
              if(errorManagementScore != null)
                   setString += "n.errorManagementScore = '" + errorManagementScore + "',";
              if(explicitControlScore != null)
                   setString += "n.explicitControlScore = '" + explicitControlScore + "',";
              if(guidanceScore != null)
                   setString += "n.guidanceScore = '" + guidanceScore + "',";
              if(significanceScore != null)
                   setString += "n.significanceScore = '" + significanceScore + "',";
              if(workloadScore != null)
                   setString += "n.workloadScore = '" + workloadScore + "',";
              if(!(adaptabilityComment==null||adaptabilityComment.isEmpty()))
                   setString += "n.adaptabilityComment = '" + adaptabilityComment + "',";
              if(!(compatibilityComment==null||compatibilityComment.isEmpty()))
                   setString += "n.compatibilityComment = '" + compatibilityComment + "',";
              if(!(consistencyComment==null||consistencyComment.isEmpty()))
                   setString += "n.consistencyComment = '" + consistencyComment + "',";
              if(!(errorManagementComment==null||errorManagementComment.isEmpty()))
                   setString += "n.errorManagementComment = '" + errorManagementComment + "',";
              if(!(explicitControlComment==null||explicitControlComment.isEmpty()))
                   setString += "n.explicitControlComment = '" + explicitControlComment + "',";
              if(!(guidanceComment==null||guidanceComment.isEmpty()))
                   setString += "n.guidanceComment = '" + guidanceComment + "',";
              if(!(significanceComment==null||significanceComment.isEmpty()))
                   setString += "n.significanceComment = '" + significanceComment + "',";
              if(!(workloadComment==null||workloadComment.isEmpty()))
                   setString += "n.workloadComment = '" + workloadComment + "',";
              if(setString!="") setString = setString.substring(0, setString.length()-1);
              String queryString = "UPDATE Notation n SET " + setString + " WHERE n.id = ?1";
              Query q = em.createQuery(queryString);
              q.setParameter(1, id);
              q.executeUpdate();
              return (Notation) em.createQuery("SELECT n FROM Notation n WHERE n.id = ?1").setParameter(1, id).getResultList().get(0);
         }So my question I think is somewhat obvious. What is a good way to construct my query, so that I am not forced to have such an ugly and laborious code (again, knowing that most of the arguments are null)?
    Thanks in advance
    Edited by: StefanC on Jan 27, 2010 3:01 AM

    That is a good point, I will do the operations directly on the entity. However, that still doesn't save me from having to write all those if statements and having an ugly code.
    Husain.AlKhamis wrote:
    Exactly, this is the concept behind JPA --> you have to write zero SQL queries.It's true that you don't have to write any queries for update and remove, however you still have to write JPQL queries (pretty much like SQL) to selections.

  • How do I check for null parameters in  Process Validations?

    I am trying to create a Unit Test that validates that a record has been inserted into a table. However I am having problems when dealing with null parameters.
    I created a simple table and insert procedure:
    create table TEST_TAB (
    A varchar2 (30) not null,
    B varchar2 (30));
    create or replace procedure TEST_TAB_INS (P_A in varchar2, P_B in varchar2) is
    begin
    insert into TEST_TAB values (P_A, P_B);
    end;
    Then I created a Unit Test with two implementations:
    The first executes TEST_TAB_INS ('One', 'Two')
    The second executes TEST_TAB_INS ('One', null)
    I attached the following Query Returning Rows Process Validation to both implementations:
    select *
    from TEST_TAB
    where A = '{P_A}'
    and (B = '{P_B}' or '{P_B}' is null)
    This should allow for the case where P_B is null. However the second test fails with a "Query check returned no rows" error.
    I've tried altering the test to use nvl, but get the same results:
    select *
    from TEST_TAB
    where A = '{P_A}'
    and (B = '{P_B}' or nvl ('{P_B}', 'XXXX') = 'XXXX')
    However, the following test succeeds:
    select *
    from TEST_TAB
    where A = '{P_A}'
    and (B = '{P_B}' or nvl ('{P_B}', 'XXXX') = '{P_B}')
    Which suggests that null parameters are not being treated as nulls in Process Validations

    I've found a way to solve this. By changing the test to:
    select *
    from TEST_TAB
    where A = '{P_A}'
    and (B = '{P_B}' or '{P_B}' = 'NULL')
    I am able to get both to get both implementations to succeed.
    Edited by: AJMiller on Dec 28, 2012 4:24 AM

  • Substituting for NULL parameters with NVL kills my performance!

    We're having a frustrating time over here with XML Publisher. Wouldn't you know the users ask for too much with all the parameters they never use anyway?
    We have some queries with multiple parameters that are optional, and when we substitute for them like so in the WHERE clause:
    WHERE table.column = NVL (:parameter,table.column)
    ... it absolutely kills our performance. The more parameters we add like this to the query, the worse things get.
    Strange thing is that when we run this exact same query through a client tool like SQL Developer, it returns all the rows in a matter of seconds.
    I can't believe I actually miss a feature in Oracle Reports (Lexical Parameters) and wish it would be implemented in XML Publisher. Is there anything out there like that, or has anyone else encountered and surmounted this problem using what we have now?

    Unfortunately, it's a really complex report that wouldn't do well to go in a simple example. I'm joining 18 tables and views in a query that would probably exceed the maximum number of characters allowed in a forum post.
    The bottom line is that even when a parameter is entered, use of the NVL in the WHERE clause disables the index that we want to use, and we have to deal with a full table scan nested inside 15 or so other joins. Taking the NVL out and making the parameter required drops the run time to about five seconds.
    Here's a kicker I'm sure you'll enjoy noodling over: we use XML Publisher 5.6.2 in Production, but we recently set up BI Publisher 10.1.3.2 on a test box and attached it to the production database.
    When this same report was executed in BIP 10 on that test box, we saw tremendously improved performance - in the neighbourhood of 30 seconds or so. It almost seemed like BIP 10 was evaluating the NVL function (and who knows what else?) before letting the database's optimizer have a go at it, whereas XMLP 5 was just handing the whole thing over from the start.
    Does that make sense?

  • Problems performing offset null and shunt calibration in NI PXI-4220

    I am using a 350 ohm strain gage for the measurements, i have already create a task in MAX, when i want to perform offset null in the task, the program shows a waiting bar and the leds in the 4220 board start to tilting, but when the waiting bar stops, MAX gets blocked. it has been impossible to me to perform the offset null, what can i try?.
    which will be the correct values for the parameters beside the gage parameters for the strain measures?

    Hello,
    Thank you for contacting National Instruments.
    Usually when this problem occurs, it is do to incorrect task configuration or incorrectly matched quarter bridge completion resistor. Ensure that you have the correct Strain Configuration chosen. The default is Full Bridge I. If you only have a single strain gauge in your configuration, you will need to change your configuration. Also ensure that if your are using a quarter bridge completion resistor make sure that it is 350Ohm not 120Ohm. If the resistor if 120Ohm you will more thank likely not be able to null your bridge.
    Please see the PXI-4220 User Manual for more information about your configuration and signal connections: http://digital.ni.com/manuals.nsf/websearch/F93CCA9A0B4BA19B86256D60
    0066CD03?OpenDocument&node=132100_US
    Also, you can download and install the latest NI-DAQ 7.2 driver: http://digital.ni.com/softlib.nsf/websearch/50F76C287F531AA786256E7500634BE3?opendocument&node=132070_US
    This 7.2 driver has a signal connections tab displayed when configuring your DAQmx Task which show you how to correctly connect your signals.
    Regards,
    Bill B
    Applications Engineer
    National Instruments

  • Sql query slowness due to rank and columns with null values:

        
    Sql query slowness due to rank and columns with null values:
    I have the following table in database with around 10 millions records:
    Declaration:
    create table PropertyOwners (
    [Key] int not null primary key,
    PropertyKey int not null,    
    BoughtDate DateTime,    
    OwnerKey int null,    
    GroupKey int null   
    go
    [Key] is primary key and combination of PropertyKey, BoughtDate, OwnerKey and GroupKey is unique.
    With the following index:
    CREATE NONCLUSTERED INDEX [IX_PropertyOwners] ON [dbo].[PropertyOwners]    
    [PropertyKey] ASC,   
    [BoughtDate] DESC,   
    [OwnerKey] DESC,   
    [GroupKey] DESC   
    go
    Description of the case:
    For single BoughtDate one property can belong to multiple owners or single group, for single record there can either be OwnerKey or GroupKey but not both so one of them will be null for each record. I am trying to retrieve the data from the table using
    following query for the OwnerKey. If there are same property rows for owners and group at the same time than the rows having OwnerKey with be preferred, that is why I am using "OwnerKey desc" in Rank function.
    declare @ownerKey int = 40000   
    select PropertyKey, BoughtDate, OwnerKey, GroupKey   
    from (    
    select PropertyKey, BoughtDate, OwnerKey, GroupKey,       
    RANK() over (partition by PropertyKey order by BoughtDate desc, OwnerKey desc, GroupKey desc) as [Rank]   
    from PropertyOwners   
    ) as result   
    where result.[Rank]=1 and result.[OwnerKey]=@ownerKey
    It is taking 2-3 seconds to get the records which is too slow, similar time it is taking as I try to get the records using the GroupKey. But when I tried to get the records for the PropertyKey with the same query, it is executing in 10 milliseconds.
    May be the slowness is due to as OwnerKey/GroupKey in the table  can be null and sql server in unable to index it. I have also tried to use the Indexed view to pre ranked them but I can't use it in my query as Rank function is not supported in indexed
    view.
    Please note this table is updated once a day and using Sql Server 2008 R2. Any help will be greatly appreciated.

    create table #result (PropertyKey int not null, BoughtDate datetime, OwnerKey int null, GroupKey int null, [Rank] int not null)Create index idx ON #result(OwnerKey ,rnk)
    insert into #result(PropertyKey, BoughtDate, OwnerKey, GroupKey, [Rank])
    select PropertyKey, BoughtDate, OwnerKey, GroupKey,
    RANK() over (partition by PropertyKey order by BoughtDate desc, OwnerKey desc, GroupKey desc) as [Rank]
    from PropertyOwners
    go
    declare @ownerKey int = 1
    select PropertyKey, BoughtDate, OwnerKey, GroupKey
    from #result as result
    where result.[Rank]=1
    and result.[OwnerKey]=@ownerKey
    go
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Caching problem for iViews with URL parameters

    Hi,
    We have a big problem with <b>iView caching.</b>
    Our objective is to use <b>SAP Netweaver Portal 2004s & External Facing portal </b> for a public Internet Portal
    For performances reasons we need to activate iviews caching on the principal iviews. But the problem is that a page called with different parameters generates exactly the same html result
    <u>example --> The display of a news item:</u>
    /irj/portal/anonymous/index.htm?rid=/news_123.xml
    gives the same cached result as
    /irj/portal/anonymous/index.htm?rid=/news_456.xml
    The caching level is "shared" because all users are anonymous !
    The iview caching seems to be occuring on component (iView) level and not on URL level
    Can someone help ?
    At the moment we have performances of 10 seconds for a page, and with caching it's becoming less than 1 second, so we really need the caching !!!
    Thanks
    Laurent

    Hello
    I hope you get your answer since, nevertheless it could help other.
    Have you tried to put the cache level to "session" instead of "user" or "shared" at the iview level?
    Regards
    Benoit

  • How do I get a servlet configured with init parameters

    When I try to add a set of <init-param> parameters to a servlet it seems
              like the weblogic server is trying to load it as a bean, which since its not
              a bean it can't do. I get the following error trace when I start the
              server:
              C:\bea\wlserver6.0sp1>set
              PATH=.\bin;C:\orant\bin;C:\WINNT\system32;C:\WINNT;C:\
              WINNT\System32\Wbem;C:\MSSQL7\BINN;C:\Program Files\Microsoft Visual
              Studio\Comm
              on\Tools\WinNT;C:\Program Files\Microsoft Visual
              Studio\Common\MSDev98\Bin;C:\Pr
              ogram Files\Microsoft Visual Studio\Common\Tools;C:\Program Files\Microsoft
              Visu
              al Studio\VC98\bin;"C:\Program
              Files\Mts";C:\PROGRA~1\NETWOR~1\PGP;C:\MSSQL7\BIN
              N;C:\jdk1.2.2\bin;
              weblogic.xml.dom.ChildCountException
              at weblogic.xml.dom.DOMUtils.getElementByTagName(DOMUtils.java:147)
              at weblogic.xml.dom.DOMUtils.getValueByTagName(DOMUtils.java:128)
              at
              weblogic.servlet.internal.dd.ParameterDescriptor.<init>(ParameterDesc
              riptor.java:45)
              at
              weblogic.servlet.internal.dd.ServletDescriptor.<init>(ServletDescript
              or.java:79)
              at
              weblogic.servlet.internal.dd.WebAppDescriptor.<init>(WebAppDescriptor
              .java:171)
              at
              weblogic.servlet.internal.dd.DescriptorLoader.initialize(DescriptorLo
              ader.java:288)
              at
              weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader
              .java:230)
              at
              weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:4
              73)
              at
              weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:421)
              at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
              at weblogic.j2ee.Application.addComponent(Application.java:126)
              at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
              oymentTarget.java:283)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
              oymentTarget.java:109)
              at
              weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServe
              r.java:76)
              at java.lang.reflect.Method.invoke(Native Method)
              at
              weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
              eanImpl.java:562)
              at
              weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
              .java:548)
              at
              weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
              ionMBeanImpl.java:285)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              55)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              23)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:437)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:178)
              at $Proxy27.addWebDeployment(Unknown Source)
              at
              weblogic.management.configuration.WebServerMBean_CachingStub.addWebDe
              ployment(WebServerMBean_CachingStub.java:985)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
              oymentTarget.java:269)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Dep
              loymentTarget.java:233)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeploy
              ments(DeploymentTarget.java:194)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(
              DeploymentTarget.java:158)
              at java.lang.reflect.Method.invoke(Native Method)
              at
              weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
              eanImpl.java:562)
              at
              weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
              .java:548)
              at
              weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
              ionMBeanImpl.java:285)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              55)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              23)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:437)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:178)
              at $Proxy26.updateDeployments(Unknown Source)
              at
              weblogic.management.configuration.ServerMBean_CachingStub.updateDeplo
              yments(ServerMBean_CachingStub.java:2299)
              at
              weblogic.management.mbeans.custom.ApplicationManager.startConfigManag
              er(ApplicationManager.java:240)
              at
              weblogic.management.mbeans.custom.ApplicationManager.start(Applicatio
              nManager.java:122)
              at java.lang.reflect.Method.invoke(Native Method)
              at
              weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
              eanImpl.java:562)
              at
              weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
              .java:548)
              at
              weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
              ionMBeanImpl.java:285)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              55)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              23)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:437)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:178)
              at $Proxy19.start(Unknown Source)
              at
              weblogic.management.configuration.ApplicationManagerMBean_CachingStub
              .start(ApplicationManagerMBean_CachingStub.java:435)
              at
              weblogic.management.Admin.startApplicationManager(Admin.java:1030)
              at weblogic.management.Admin.finish(Admin.java:491)
              at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:429)
              at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
              at weblogic.Server.main(Server.java:35)
              >
              <Apr 3, 2001 3:42:32 PM EDT> <Notice> <WebLogicServer> <WebLogic Server
              started>
              <Apr 3, 2001 3:42:32 PM EDT> <Notice> <WebLogicServer> <ListenThread
              listening o
              n port 7001>
              <Apr 3, 2001 3:42:32 PM EDT> <Notice> <WebLogicServer> <SSLListenThread
              listenin
              g on port 7002>
              <Apr 3, 2001 3:42:38 PM EDT> <Error> <HTTP> <HttpServer(1112581,null default
              ctx
              ,ajrserver) found no context for "GET /CommonOpinionAdmin2?verifyinstall=
              HTTP/1
              .1". This should not happen unless the default context failed to deploy.>
              The distribution file is not a WAR file, but a JAR file. I need to to just
              do what it does if I don't specify any init-param's which is to pass them
              when the servlet does get loaded, or load it as a servlet from a jar file
              instead of a bean.
              How do I configure weblogics to run my servlet with init parameters.
              Thank You,
              Anthony Rizzolo
              

    I'll answer my own problem. It turns out that you can't put multiple
              <param-name> and <param-value> pairs within a single <init-param>. I
              assumed that you could since none of the examples had more than one
              parameter I didn't realize that you had to specify multiple <init-param>
              tags if you had multiple parameters.
              Anthony Rizzolo
              "Anthony Rizzolo" <[email protected]> wrote in message
              news:[email protected]...
              > When I try to add a set of <init-param> parameters to a servlet it seems
              > like the weblogic server is trying to load it as a bean, which since its
              not
              > a bean it can't do. I get the following error trace when I start the
              > server:
              >
              > C:\bea\wlserver6.0sp1>set
              > PATH=.\bin;C:\orant\bin;C:\WINNT\system32;C:\WINNT;C:\
              > WINNT\System32\Wbem;C:\MSSQL7\BINN;C:\Program Files\Microsoft Visual
              > Studio\Comm
              > on\Tools\WinNT;C:\Program Files\Microsoft Visual
              > Studio\Common\MSDev98\Bin;C:\Pr
              > ogram Files\Microsoft Visual Studio\Common\Tools;C:\Program
              Files\Microsoft
              > Visu
              > al Studio\VC98\bin;"C:\Program
              > Files\Mts";C:\PROGRA~1\NETWOR~1\PGP;C:\MSSQL7\BIN
              > N;C:\jdk1.2.2\bin;
              >
              > weblogic.xml.dom.ChildCountException
              > at
              weblogic.xml.dom.DOMUtils.getElementByTagName(DOMUtils.java:147)
              > at weblogic.xml.dom.DOMUtils.getValueByTagName(DOMUtils.java:128)
              > at
              > weblogic.servlet.internal.dd.ParameterDescriptor.<init>(ParameterDesc
              > riptor.java:45)
              > at
              > weblogic.servlet.internal.dd.ServletDescriptor.<init>(ServletDescript
              > or.java:79)
              > at
              > weblogic.servlet.internal.dd.WebAppDescriptor.<init>(WebAppDescriptor
              > .java:171)
              > at
              > weblogic.servlet.internal.dd.DescriptorLoader.initialize(DescriptorLo
              > ader.java:288)
              > at
              > weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader
              > .java:230)
              > at
              > weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:4
              > 73)
              > at
              > weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:421)
              > at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
              > at weblogic.j2ee.Application.addComponent(Application.java:126)
              > at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
              > at
              > weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
              > oymentTarget.java:283)
              > at
              > weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
              > oymentTarget.java:109)
              > at
              > weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServe
              > r.java:76)
              > at java.lang.reflect.Method.invoke(Native Method)
              > at
              > weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
              > eanImpl.java:562)
              > at
              > weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
              > .java:548)
              > at
              > weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
              > ionMBeanImpl.java:285)
              > at
              > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              > 55)
              > at
              > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              > 23)
              > at
              > weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:437)
              > at
              > weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:178)
              > at $Proxy27.addWebDeployment(Unknown Source)
              > at
              > weblogic.management.configuration.WebServerMBean_CachingStub.addWebDe
              > ployment(WebServerMBean_CachingStub.java:985)
              > at
              > weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
              > oymentTarget.java:269)
              > at
              > weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Dep
              > loymentTarget.java:233)
              > at
              > weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeploy
              > ments(DeploymentTarget.java:194)
              > at
              > weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(
              > DeploymentTarget.java:158)
              > at java.lang.reflect.Method.invoke(Native Method)
              > at
              > weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
              > eanImpl.java:562)
              > at
              > weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
              > .java:548)
              > at
              > weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
              > ionMBeanImpl.java:285)
              > at
              > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              > 55)
              > at
              > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              > 23)
              > at
              > weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:437)
              > at
              > weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:178)
              > at $Proxy26.updateDeployments(Unknown Source)
              > at
              > weblogic.management.configuration.ServerMBean_CachingStub.updateDeplo
              > yments(ServerMBean_CachingStub.java:2299)
              > at
              > weblogic.management.mbeans.custom.ApplicationManager.startConfigManag
              > er(ApplicationManager.java:240)
              > at
              > weblogic.management.mbeans.custom.ApplicationManager.start(Applicatio
              > nManager.java:122)
              > at java.lang.reflect.Method.invoke(Native Method)
              > at
              > weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
              > eanImpl.java:562)
              > at
              > weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
              > .java:548)
              > at
              > weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
              > ionMBeanImpl.java:285)
              > at
              > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              > 55)
              > at
              > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              > 23)
              > at
              > weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:437)
              > at
              > weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:178)
              > at $Proxy19.start(Unknown Source)
              > at
              > weblogic.management.configuration.ApplicationManagerMBean_CachingStub
              > .start(ApplicationManagerMBean_CachingStub.java:435)
              > at
              > weblogic.management.Admin.startApplicationManager(Admin.java:1030)
              > at weblogic.management.Admin.finish(Admin.java:491)
              > at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:429)
              > at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
              > at weblogic.Server.main(Server.java:35)
              > >
              > <Apr 3, 2001 3:42:32 PM EDT> <Notice> <WebLogicServer> <WebLogic Server
              > started>
              >
              > <Apr 3, 2001 3:42:32 PM EDT> <Notice> <WebLogicServer> <ListenThread
              > listening o
              > n port 7001>
              > <Apr 3, 2001 3:42:32 PM EDT> <Notice> <WebLogicServer> <SSLListenThread
              > listenin
              > g on port 7002>
              > <Apr 3, 2001 3:42:38 PM EDT> <Error> <HTTP> <HttpServer(1112581,null
              default
              > ctx
              > ,ajrserver) found no context for "GET /CommonOpinionAdmin2?verifyinstall=
              > HTTP/1
              > .1". This should not happen unless the default context failed to deploy.>
              >
              > The distribution file is not a WAR file, but a JAR file. I need to to
              just
              > do what it does if I don't specify any init-param's which is to pass them
              > when the servlet does get loaded, or load it as a servlet from a jar file
              > instead of a bean.
              >
              > How do I configure weblogics to run my servlet with init parameters.
              >
              > Thank You,
              > Anthony Rizzolo
              >
              >
              

  • Executing Procedure with default parameters !!

    hi want a small help ...
    I have a
    procedure p1(p1 in number default 2, p2 in number default 3)
    begin
    end;
    When the procedure will be called without passing parameters it will execute with default parameters.
    That time I want to dispay message saying
    " AS paramters are not passed, procedure is being executed with foll. default parameters:
    Param 1 = 2
    Param 2 = 3 "
    Now issue is how do I capture this condition that , the parameters are being passed and it is using default parameters ?
    Thanks

    The IF NOT NULL check for the parameters cannot be inside the same procedure becuase when you reach that statement, even though the parameter are not passed to this procedure, at that stage, the parameters will acquire the dfault values already assigned to them. So you never reach the else part of it.
    That;s why i said, use third parameter and assign the value to this third parameter from the calling environment.
    here is the short test case that might help you to understand better.
    SQL> create or replace procedure myproc
      2  (p1               number default 1
      3  ,p2               number default 2
      4  ,parameter_passed char default 'Y') is
      5  begin
      6    if parameter_passed = 'Y' then
      7      dbms_output.put_line('Input values are :'||p1||'='||p2);
      8    else
      9      dbms_output.put_line('Default values are :'||p1||'='||p2);
    10    end if;
    11  end;
    12  /
    Procedure created.
    SQL> PROMPT Test for Case one with input parameter values
    Test for Case one with input parameter values
    SQL>
    SQL> declare
      2   param1 number := 5;
      3   param2 number := 6;
      4  begin
      5   if param1 is not null and param2 is not null then
      6     myproc(param1,param2);
      7   else
      8     myproc(parameter_passed=>'N');
      9   end if;
    10  end;
    11  /
    Input values are :5=6                                                          
    PL/SQL procedure successfully completed.
    SQL>
    SQL> PROMPT Test for Case two with no parameter values
    Test for Case two with no parameter values
    SQL>
    SQL> declare
      2   param1 number := null;
      3   param2 number := null;
      4  begin
      5   if param1 is not null and param2 is not null then
      6     myproc(param1,param2);
      7   else
      8     myproc(parameter_passed=>'N');
      9   end if;
    10  end;
    11  /
    Default values are :1=2                                                        
    PL/SQL procedure successfully completed.
    SQL>

  • Trouble invoking Axis service with multiple parameters

    Hallo Java experts,
    I have a problem with Axis 1.2RC2 (and Tomcat 5.0.19, JDK 1.5, Win XP) that might be quite simple, but I'm not so experienced and running out of ideas.
    Everything works fine as long as I use a single Parameter. But I can't invoke service methods with more parameters, independent of the parameters' (simple) types! Different exceptions are thrown, depending on the way I invoke the service. It's either ...
    - a java.lang.IllegalArgumentException (case 1)
    "Tried to invoke method public java.lang.String test.server.TestSoapBindingImpl.printLongs(long,long) with arguments java.lang.Long,null. The arguments do not match the signature."
    - or an org.xml.sax.SAXException (case 2)
    "SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize."
    Here's an example of a simple web service, that takes two longs and should return a string. In case 1 the service is invoked using a service locator in case 2 with a 'Call' object and explicitly set parameter types.
    Thanks in advance for your help!
    Dave
    service[b]
    public class TestSoapBindingImpl implements test.server.Test{
      public String printLongs(long long_1, long long_2){
        return "long_1 = " +long_1 +", long_2 = " +long_2;
    [b]case 1
    client
    public class TestClient {
      public static void main (String[] args) throws Exception {     
        TestService service = new TestServiceLocator();
        Test testProxy = service.gettest();     
        long longVal = 1L; 
        response = testProxy.printLongs(longVal, longVal);
        System.out.println(response);
    SOAP messsage
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
       <soapenv:Body>
          <in6 xmlns="urn:TestNS">1</in6>
          <in7 xmlns="urn:TestNS">1</in7>
       </soapenv:Body>
    </soapenv:Envelope>
    Axis' log file
    Part of the log, where only the first argument of 'printLongs' is properly converted before the exception is thrown.
    17886  org.apache.axis.utils.JavaUtils
            - Trying to convert java.lang.Long to long
    17886  org.apache.axis.i18n.ProjectResourceBundle
            - org.apache.axis.i18n.resource::handleGetObject(value00)
    17886  org.apache.axis.providers.java.RPCProvider
            -   value:  1
    17886  org.apache.axis.i18n.ProjectResourceBundle
            - org.apache.axis.i18n.resource::handleGetObject(dispatchIAE00)
    17986  org.apache.axis.providers.java.RPCProvider
            - Tried to invoke method public java.lang.String test.server.TestSoapBindingImpl.printLongs(long,long) with arguments java.lang.Long,null.  The arguments do not match the signature.
    java.lang.IllegalArgumentException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:384)
          at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:281)
         at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:319)
         at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
         at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:450)
         at org.apache.axis.server.AxisServer.invoke(AxisServer.java:285)
         at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:653)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:301)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    case 2
    client
    public class TestClient2
      public static void main(String [] args) {
        try {
           String endpoint =
             "http://localhost:1234/axis1.2rc2/services/test";
           Service  service = new Service();
           Call     call    = (Call) service.createCall();
           call.setTargetEndpointAddress( new java.net.URL(endpoint) );
           call.setOperationName(new QName("urn:TestNS", "printLongs") );
           call.addParameter("in6",
                             org.apache.axis.Constants.XSD_LONG,
                             javax.xml.rpc.ParameterMode.IN);
           call.addParameter("in7",
                             org.apache.axis.Constants.XSD_LONG,
                             javax.xml.rpc.ParameterMode.IN);
           call.setReturnType(org.apache.axis.Constants.XSD_STRING);
           String response = (String) call.invoke( new Object[] { 1L, 1L } );
           System.out.println(response);
        } catch (Exception e) {
           System.err.println(e.toString());
    SOAP messsage
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
       xmlns:xsd="http://www.w3.org/2001/XMLSchema"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
       <soapenv:Body>
          <ns1:printLongs soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="urn:TestNS">
             <in6 href="#id0"/>
             <in7 href="#id0"/>
          </ns1:printLongs>
          <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:long" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">1</multiRef>
       </soapenv:Body>
    </soapenv:Envelope>
    Exception
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
    faultActor:
    faultNode:
    faultDetail:
         {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
      at org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:143)
      at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1031)
      at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
      at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1140)
      at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:238)
      at org.apache.axis.message.RPCElement.getParams(RPCElement.java:386)
      at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:148)
      at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:319)
      at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
      at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
      at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
      at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:450)
      at org.apache.axis.server.AxisServer.invoke(AxisServer.java:285)
      at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:653)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
      at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:301)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
      ....

    Dave, not sure if you still are looking for an answer but i hate seeing unreplied posts so i felt i needed to post something. I'm just beginning with this stuff as well so take my suggestions with a grain of salt....or a beer. Anyways, case 2 would show that you are getting your parameters through properly because the "deserialization" errror is targetted towards the soap reply. Most likely you are trying to receive back a none primitive type. :-D i.e. such as the problem that i'm having.
    hope that helps somewhat.
    graeme.

  • How to filter a sharepoint list with report parameters

    Hello there,
    I'm trying to make a sql report on a sharepoint library. I have no problems to connect to the library but i cannot find a way to filter my data source with report parameters. I've searched on the net a lot, found some stuffs about xml but nothing that shows
    how to do it with sharepoint. Any help would be greatly appreciated!
    Thanks in advance!

    Hi mgarant,
    As you mentioned, by default, we can use xml parameter "query" to filter a SharePoint list from SQL Server Reporting Services. We can also modify the value for the "query" to use SQL Server Reporting Serivces parameters to filter the SharePoint list.
    Below are the detailed steps for your reference:
     1.Change the query string to be a string like this:
    <Query>
    <SoapAction>http://schemas.microsoft.com/sharepoint/soap/GetListItems</SoapAction>
    <Method Namespace="http://schemas.microsoft.com/sharepoint/soap/" Name="GetListItems">
    <Parameters>
    <Parameter Name="listName">
    <DefaultValue>{ADBE55DB-63A1-4C14-9DA0-B1B05C13B4C8}</DefaultValue>
    </Parameter>
    <Parameter Name="query" Type="xml">
    </Parameter>
    </Parameters>
    </Method>
    <ElementPath IgnoreNamespaces="true">*</ElementPath>
    </Query>
     2.In the dataset modification dialog, go to "Parameters" tab.
     3.Create a Report Parameter(e.g. CityParam).
     4.In parameter tab, create a parameter with:
    Name: query
    Value: ="<Query>
       <Where>
          <Eq>
             <FieldRef Name='WorkCity' />
             <Value Type='Text'>" & Parameters!CityParam.Value & "</Value>
          </Eq>
       </Where>
    </Query>"
    Please note, “case sensitive” is required. In this case, the parameter name for "query" must be in lower case. WorkCity is name of a field in the SharePoint list.
    For more information about how to retrieve value from SharePoint list, I would suggest you reading the following article and threads:
    http://vspug.com/dwise/2007/11/28/connecting-sql-reporting-services-to-a-sharepoint-list-redux/
    http://blogs.msdn.com/mariae/archive/2007/12/13/querying-sharepoint-list-from-reporting-services-returns-only-not-null-columns.aspx
    I also implemented a sample, you could download it from:
    http://cid-3c7e963ff6ccd974.office.live.com/browse.aspx/.Public/SharePoint%20List%20sample?uc=2
    Please feel free to ask, if you have any more questions.
    Thanks,
    Jin Chen
    Jin Chen - MSFT

  • SAP not starting with VMC parameters. SAP_ES2_03_000 file exists

    Hi All,
    I have a problem in starting the system. If I disable the following instance parameters, I am able to start SAP, however we need VMC as well.
    vmcj/option/ps = 128M
    vmcj/enable = on
    vmcj/option/maxJavaHeap = 200M
    It was working with above parameters, so we are sure the parameter values are correct. Eventhough some sapnote says that, we need to set the vmcj/option/ps  value to higher value.
    After some abrupt sapstop, we are not able to start SAP again. It is always failing with the reason /SAP_ES2_03_000 file exists. I am not able to get this file in /tmp or /proc filesystem. Is there any way to check where SAP_ES2_03_000 file is located ?
    Here is dev_disp log file. we are on AIX os. Please guide me.
    Fri May 22 11:00:06 2009
    MBUF state OFF
    DpCommInitTable: init table for 1000 entries
    DpFileInitTable: init table for 3200 entries
    DpSesCreateTable: created session table at 0x700000030000000 (len=1418392)
    ThTaskStatus: rdisp/reset_online_during_debug 0
    EmInit: MmSetImplementation( 2 ).
    MM global diagnostic options set: 0
    <ES> client 0 initializing ....
    <ES> InitFreeList
    <ES> block size is 4096 kByte.
    Using implementation std
    <ES> Info: use normal pages (no huge table support available)
    EsStdUnamFileMapInit: ES base = 0x0x700000040000000
    EsStdInit: Extended Memory 5116 MB allocated
    <ES> 1278 blocks reserved for free list.
    ES initialized.
    ERROR => Es2IResCreate: open /SAP_ES2_03_000 failed. File already exists. If no SAP processes are running any more, you can cl
    ean up stale resources with cleanipc. (17: File exists) [es2ux.c      198]
    ERROR => Es2ResCreateFiles: Es2IResCreate failed [es2xx.c      1265]
    ERROR => Es2ResCreate: Es2ResCreateFiles failed [es2xx.c      1443]
    ERROR => DpEmInit: Es2ResCreate (1) [dpxxdisp.c   9659]
    ERROR => DpMemInit: DpEmInit (-1) [dpxxdisp.c   9561]
    DP_FATAL_ERROR => DpSapEnvInit: DpMemInit
    DISPATCHER EMERGENCY SHUTDOWN ***
    increase tracelevel of WPs

    Hello,
    we have the same problem on our Linux x86_64 PI 7.10 system. when I try to start the instance, I get the following message:<BR><BR>
    <ES> client 0 initializing ....<BR>
    <ES> InitFreeList<BR>
    <ES> block size is 4096 kByte.<BR>
    Using implementation std<BR>
    EsStdUnamFileMapInit: ES base = 0x2b21eedc7000<BR>
    EsStdInit: Extended Memory 4096 MB allocated<BR>
    Linux: Kernel supports shared memory disclaiming<BR>
    Linux: using madvise(<pointer>, <size>, 9).<BR>
    Linux: disclaiming for shared memory enabled<BR>
    <ES> 1023 blocks reserved for free list.<BR>
    ES initialized.
    <BR>
    ERROR => Es2IResCreate: open /SAP_ES2_12_000 failed. File already exists. If no SAP processes are running any more, you can clean up stale resources with cleanipc. (17: File exists) [es2ux.c      193]<BR>
    ERROR => Es2ResCreateFiles: Es2IResCreate failed [es2xx.c      1283]<BR>
    ERROR => Es2ResCreate: Es2ResCreateFiles failed [es2xx.c      1461]<BR>
    ERROR => DpEmInit: Es2ResCreate (1) [dpxxdisp.c   10125]<BR>
    ERROR => DpMemInit: DpEmInit (-1) [dpxxdisp.c   9993]<BR>
    DP_FATAL_ERROR => DpSapEnvInit: DpMemInit<BR>
    DISPATCHER EMERGENCY SHUTDOWN ***<BR>
    increase tracelevel of WPs<BR>
    NiWait: sleep (10000ms) ...<BR>
    NiISelect: timeout 10000ms<BR>
    NiISelect: maximum fd=1<BR>
    NiISelect: read-mask is NULL<BR>
    NiISelect: write-mask is NULL<BR>
    When i try to clean / delete this files with cleanipc 12 remove, I get the following message:<BR><BR>
    Show/Cleanup SAP-IPC-Objects V2.3, 94/01/20<BR>
    ===========================================<BR><BR>
    Running SAP-Systems (Nr)...:<BR><BR>
    Clear IPC-Objects of Sap-System 12 -
    <BR><BR>
    OsKey:    21238 0x000052f6 Semaphore Key: 38 removed<BR>
    OsKey:    21260 0x0000530c Semaphore Key: 60 removed<BR>
    OsKey: 58900112 0x0382be90 SCSA Shared Memory Key: 58900000 removed<BR><BR>
    Number of IPC-Objects...........:    3<BR>
    Number of removed IPC-Objects...:    3<BR>
    Summary of all Shared Memory....: 4659.0 MB (may be incomplete when not in superuser mode)<BR>
    SAP_ES file: /dev/shm/SAP_ES2_12_004 remove failed **** - errno = 13 (Permission denied)<BR>
    SAP_ES file: /dev/shm/SAP_ES2_12_003 remove failed **** - errno = 13 (Permission denied)<BR>
    SAP_ES file: /dev/shm/SAP_ES2_12_002 remove failed **** - errno = 13 (Permission denied)<BR>
    SAP_ES file: /dev/shm/SAP_ES2_12_001 remove failed **** - errno = 13 (Permission denied)<BR>
    SAP_ES file: /dev/shm/SAP_ES2_12_000 remove failed **** - errno = 13 (Permission denied)<BR><BR>
    Number of SAP_ES files found:.............:    5<BR>
    Number of SAP_ES files removed:...........:    0<BR><BR>
    So, to start this instance we have to reboot the server. VCM is not active on this system.<BR>
    Any Idea to solve this problem?<BR><BR>
    Regards<BR><BR>
    Arkadius Sobkow
    Edited by: Arkadius Sobkow on May 28, 2009 1:49 PM
    Edited by: Arkadius Sobkow on May 28, 2009 1:50 PM

  • Does worst case analysis work with model parameters?

    The worst case analysis does not seem tow work with model parameters. I performed a worst case analysis on a simple one transistor amplifier stage. It gives correct answers for resistor tolerances, but for the transistor model parameters it never changes them. I did the same with a diode in the circuit and entered tolerances for the diode parameters and it never used the tolerances.

    That's the same message I get. See attached circuit.
    Attachments:
    FETamp.ms10 ‏96 KB

  • MBP Retina low performance with external displays

    Hi everyone!
    I have a very bad performance with my MBP 15´´ retina display when it comes to ad an external display. I have a FUL HD LG monitor that looks very bad when i connect the HDMI or the thunderbot port with the proper adapter (as bad as you can´t even read). I want to know if this may ba a hardware problem just with my computer or if it is a software problem, any ideas? does anyone have the same issue?
    How can i update my NVIDIA card???
    Thanks a lot!

    Topic seems to come up here often. Apple has a tendency to dismiss the issue.
    Its a pretty well known problem that Mac font smoothing doesn't seem to work well on high resolution third party external displays, making text hard to read. In addition, I think the Mac HDMI resolution support is limited to 1080p, so you must use DP or DVI video interfaces to see full monitor resolution.
    The OS default is no font smoothing on external displays (except perhaps the apple display). There is a terminal command that will enable font smoothing for any external monitor, but it often doesn't work well enough. I found that using the OS zoom feature magnifies text to the point to be easily readable. You can set zoom parameters in the accessibility systems preference panel.
    For some reason, sometimes the Mac OS thinks some monitors are TVs and use YCbCr instead of RGB. You can open the color sync utility and brouse the settings to see what is being used. There are scripts available that can fix that but are more complicated to install than an app.
    It seems that PCs are way ahead of Macs with external display implementation. Most folks having monitor problems with a Mac do not see the same issue with PCs or Unix/Linux OSs.
    Oh as far as updating the video card, can't. The monitor  "drivers" are built into the OS. When a new display is connected, the OS finds the profile for it.

  • Report  performance with Hierarchies

    Hi
    How to improve query performance with hierarchies. We have to do lot of navigation's in the query and the volume of data size very big.
    Thanks
    P G

    HI,
    chk this:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1955ba90-0201-0010-d3aa-8b2a4ef6bbb2
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ce7fb368-0601-0010-64ba-fadc985a1f94
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/4c0ab590-0201-0010-bd9a-8332d8b4f09c
    Query Performance – Is "Aggregates" the way out for me?
    /people/vikash.agrawal/blog/2006/04/17/query-performance-150-is-aggregates-the-way-out-for-me
    ° the OLAP cache is architected to store query result sets and to give all users access to those result sets.
    If a user executes a query, the result set for that query’s request can be stored in the OLAP cache; if that same query (or a derivative) is then executed by another user, the subsequent query request can be filled by accessing the result set already stored in the OLAP cache.
    In this way, a query request filled from the OLAP cache is significantly faster than queries that receive their result set from database access
    ° The indexes that are created in the fact table for each dimension allow you to easily find and select the data
    see http://help.sap.com/saphelp_nw04/helpdata/en/80/1a6473e07211d2acb80000e829fbfe/content.htm
    ° when you load data into the InfoCube, each request has its own request ID, which is included in the fact table in the packet dimension.
    This (besides giving the possibility to manage/delete single request) increases the volume of data, and reduces performance in reporting, as the system has to aggregate with the request ID every time you execute a query. Using compressing, you can eliminate these disadvantages, and bring data from different requests together into one single request (request ID 0).
    This function is critical, as the compressed data can no longer be deleted from the InfoCube using its request IDs and, logically, you must be absolutely certain that the data loaded into the InfoCube is correct.
    see http://help.sap.com/saphelp_nw04/helpdata/en/ca/aa6437e7a4080ee10000009b38f842/content.htm
    ° by using partitioning you can split up the whole dataset for an InfoCube into several, smaller, physically independent and redundancy-free units. Thanks to this separation, performance is increased when reporting, or also when deleting data from the InfoCube.
    see http://help.sap.com/saphelp_nw04/helpdata/en/33/dc2038aa3bcd23e10000009b38f8cf/content.htm
    Hope it helps!
    tHAK YOU,
    dst

Maybe you are looking for

  • Check box is not working in table

    Hi All, I'm using adf 11g. I have created a transient variable(boolean ) in exsiting view object . In search page , i'm showing records in table.I have drag as boolean select one check box to search page table . when i ran the application , in search

  • Can we configure a sharepoint integrated SSRS instance as reporting service in configmgr 2012 R2 ?

    Hello Guys, Can we install reporting services role a server hosting SSRS instance in share point integrated mode ?  Thanks,  Delphin. Kindly mark as answer/Vote as helpful if a reply from anybody helped you in this forum. Delphin

  • Netcfg v2.5.2 - note: change in auto wireless config

    This release brings a completely new auto wireless/wired configuration. The old net-auto is deprecated and no longer included. There are also some very minor configuration changes that may affect a few people. Move to new auto-wireless/wired The new

  • Where are the audio books in iTunes 11

    I downloaded iTunes 11, and now everything is "new". and I don't see any audio books (in german: Hörbücher) in the sidebar - and in the settings, there is no checkbox for this genre. Who can help?

  • New database create script using DBCA

    Hi, I'm trying to generate a database create script using DBCA. I have another database running on the same physical server(HP-UX and oracle 10g R2). When I run the DBCA, it is creating scripts to Clone DB and Clone RMAN restore. Why it is not genera