Spatial Queries are CPU bound and show very heavy use of query buffers

Hi,
Spatial Queries:
When using tkprof to analyse spatial queries it is clear that
there are implicit queries being done by Oracle spatial which
use vast amounts of buffers, and seem unable to cache basic
information from query to query - thus resulting in our machine
being CPU bound when stress testing Oracle Spatial, for example
the example below shows how information which is fixed for a
table and not likely to change very often is being retrieved
inefficiently (note the 26729 query buffers being used to do 6
executions of what should be immediately available!!!):
TKPROF: Release 8.1.7.0.0 - Production on Tue Oct 16 09:43:38
2001
(c) Copyright 2000 Oracle Corporation. All rights reserved.
SELECT ATTR_NO, ATTR_NAME, ATTR_TYPE_NAME, ATTR_TYPE_OWNER
FROM
ALL_TYPE_ATTRS WHERE OWNER = :1 AND TYPE_NAME = :2 ORDER BY
ATTR_NO
call count cpu elapsed disk query rows
Parse 6 0.00 0.01 0 0 0
Execute 6 0.00 0.01 0 0 0
Fetch 6 0.23 0.41 0 26729 5
total 18 0.23 0.43 0 26729 5
Misses in library cache during parse: 0
Optimizer goal: CHOOSE
Parsing user id: 37 (NAGYE)
Rows Row Source Operation
0 SORT ORDER BY
0 FILTER
1 NESTED LOOPS
1 NESTED LOOPS
290 NESTED LOOPS
290 NESTED LOOPS
290 NESTED LOOPS
290 NESTED LOOPS
290 TABLE ACCESS FULL ATTRIBUTE$
578 TABLE ACCESS CLUSTER TYPE$
578 TABLE ACCESS CLUSTER TYPE$
578 INDEX UNIQUE SCAN (object id 255)
578 TABLE ACCESS BY INDEX ROWID OBJ$
578 INDEX RANGE SCAN (object id 35)
578 TABLE ACCESS CLUSTER USER$
578 INDEX UNIQUE SCAN (object id 11)
289 TABLE ACCESS BY INDEX ROWID OBJ$
578 INDEX RANGE SCAN (object id 35)
0 TABLE ACCESS CLUSTER USER$
0 INDEX UNIQUE SCAN (object id 11)
0 FIXED TABLE FULL X$KZSPR
0 NESTED LOOPS
0 FIXED TABLE FULL X$KZSRO
0 INDEX RANGE SCAN (object id 101)
error during parse of EXPLAIN PLAN statement
ORA-01039: insufficient privileges on underlying objects of the
view
and again:
SELECT diminfo, nvl(srid,0)
FROM
ALL_SDO_GEOM_METADATA WHERE OWNER = 'NAGYE' AND TABLE_NAME =
NLS_UPPER('TILE_MED_LINES_MBR') AND '"'||COLUMN_NAME||'"'
= '"GEOM"'
call count cpu elapsed disk query
current rows
Parse 20 0.00 0.04 0
0 0 0
Execute 20 0.00 0.00 0
0 0 0
Fetch 20 0.50 0.50 0 5960
100 20
total 60 0.50 0.54 0 5960
100 20
Misses in library cache during parse: 0
Optimizer goal: CHOOSE
Parsing user id: 37 (NAGYE) (recursive depth: 1)
Rows Row Source Operation
1 FILTER
2 TABLE ACCESS BY INDEX ROWID SDO_GEOM_METADATA_TABLE
2 INDEX RANGE SCAN (object id 24672)
1 UNION-ALL
1 FILTER
1 NESTED LOOPS
1 NESTED LOOPS
1 NESTED LOOPS OUTER
1 NESTED LOOPS OUTER
1 NESTED LOOPS OUTER
1 NESTED LOOPS OUTER
1 NESTED LOOPS
1 TABLE ACCESS FULL OBJ$
1 TABLE ACCESS CLUSTER TAB$
1 INDEX UNIQUE SCAN (object id 3)
0 TABLE ACCESS BY INDEX ROWID OBJ$
1 INDEX UNIQUE SCAN (object id 33)
0 INDEX UNIQUE SCAN (object id 33)
0 TABLE ACCESS CLUSTER USER$
1 INDEX UNIQUE SCAN (object id 11)
1 TABLE ACCESS CLUSTER SEG$
1 INDEX UNIQUE SCAN (object id 9)
1 TABLE ACCESS CLUSTER TS$
1 INDEX UNIQUE SCAN (object id 7)
1 TABLE ACCESS CLUSTER USER$
1 INDEX UNIQUE SCAN (object id 11)
0 FILTER
0 NESTED LOOPS
0 NESTED LOOPS OUTER
0 NESTED LOOPS
0 TABLE ACCESS FULL USER$
0 TABLE ACCESS BY INDEX ROWID OBJ$
0 INDEX RANGE SCAN (object id 34)
0 INDEX UNIQUE SCAN (object id 97)
0 INDEX UNIQUE SCAN (object id 96)
0 FIXED TABLE FULL X$KZSPR
0 NESTED LOOPS
0 FIXED TABLE FULL X$KZSRO
0 INDEX RANGE SCAN (object id 101)
0 FIXED TABLE FULL X$KZSPR
0 NESTED LOOPS
0 FIXED TABLE FULL X$KZSRO
0 INDEX RANGE SCAN (object id 101)
error during parse of EXPLAIN PLAN statement
ORA-01039: insufficient privileges on underlying objects of the
view
Note: The actual query being performed is:
select a.id, a.geom
from
tile_med_lines_mbr a where sdo_relate(a.geom,mdsys.sdo_geometry
(2003,NULL,
NULL,mdsys.sdo_elem_info_array
(1,1003,3),mdsys.sdo_ordinate_array(151.21121,
-33.86325,151.21132,-33.863136)), 'mask=anyinteract
querytype=WINDOW') =
'TRUE'
call count cpu elapsed disk query
current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.08 0.08 0 4 0 0
Fetch 5 1.62 21.70 0 56 0 827
total 7 1.70 21.78 0 60 0 827
Misses in library cache during parse: 0
Optimizer goal: CHOOSE
Parsing user id: 37 (NAGYE)
Rows Row Source Operation
827 TABLE ACCESS BY INDEX ROWID TILE_MED_LINES_MBR
828 DOMAIN INDEX
Rows Execution Plan
0 SELECT STATEMENT GOAL: CHOOSE
827 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'TILE_MED_LINES_MBR'
828 DOMAIN INDEX OF 'TILE_MLINES_SPIND'
CPU: none, I/O: none
call count cpu elapsed disk query
current rows
Parse 1 0.00 0.00 0 92
Execute 1 0.00 0.00 0 22
Fetch 1 0.00 0.00 38 236
total 3 0.00 0.00 38 350
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 37 (NAGYE)
Rows Row Source Operation
12 TABLE ACCESS BY INDEX ROWID ROADELEMENT_MBR
178 DOMAIN INDEX
Rows Execution Plan
0 SELECT STATEMENT GOAL: CHOOSE
12 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'ROADELEMENT_MBR'
178 DOMAIN INDEX OF 'RE_MBR_SPIND'
CPU: none, I/O: none
Can Oracle improve the performance of Oracle spatial by
improving the implementation so as to perform alternative
implicit queries so as not to use these vast amounts of memory?
Cheers
Alex Eadie

Hi Ravi,
Thankyou for your reply.
Here are some more details for you:
Yes the queries are cached in that it gets its data from RAM and
not from disk however the number of buffers used internally by
Oracle RDBMS/Spatial is rather large and results in significant
CPU usage (namely > 5000 per query or >40MByte). Which I'm sure
you'd agree? Those numerous internal queries taking >10ms CPU
time each, which is culmulative.
A single real of ours query of will take between 180ms and 580ms
depending on the number of results returned.
An example query is:
select a.id, a.geom
from tile_med_lines_mbr a where sdo_relate
(a.geom,mdsys.sdo_geometry
(2003,NULL, NULL,mdsys.sdo_elem_info_array
(1,1003,3),mdsys.sdo_ordinate_array(151.21121,
-33.86325,151.21132,-33.863136)), 'mask=anyinteract
querytype=WINDOW') = 'TRUE'
Our 500Mhz PC Server database can only execute 3 processes
running these queries simultaneously to go to 100% CPU loaded.
The disk is hardly utilized.
The data is the main roads in Sydney, Australia.
The tables, data and indexes were created as shown below:
1.     Create the Oracle tables:
create table tile_med_nodes_mbr (
     id     number not null,
     geom     mdsys.sdo_geometry not null,
     xl     number not null,
     yl     number not null,
     xh     number not null,
     yh     number not null);
create table tile_med_lines_mbr (
     id     number not null,
     fromid     number not null,
     toid     number not null,
     geom     mdsys.sdo_geometry not null,
     xl     number not null,
     yl     number not null,
     xh     number not null,
     yh     number not null);
2.     Use the sqlldr Oracle loader utility to load the data
into Oracle.
% sqlldr userid=csiro_scats/demo control=nodes.ctl
% sqlldr userid=csiro_scats/demo control=lines.ctl
3.     Determine the covering spatial extent for the tile
mosaic and use this to create the geometry metadata.
% sqlplus
SQLPLUS>     set numw 12
SQLPLUS>     select min(xl), min(yl), max(xh), max(yh)
     from (select xl, yl, xh, yh
          from tile_med_nodes_mbr union
          select xl, yl, xh, yh
          from tile_med_lines_mbr);
insert into USER_SDO_GEOM_METADATA
     (TABLE_NAME, COLUMN_NAME, DIMINFO)
     VALUES ('TILE_MED_NODES_MBR', 'GEOM',
     MDSYS.SDO_DIM_ARRAY
     (MDSYS.SDO_DIM_ELEMENT('X', 151.21093421,
               151.21205421, 0.000000050),
     MDSYS.SDO_DIM_ELEMENT('Y', -33.86347146,
               -33.86234146, 0.000000050)));
insert into USER_SDO_GEOM_METADATA
     (TABLE_NAME, COLUMN_NAME, DIMINFO)
     VALUES ('TILE_MED_LINES_MBR', 'GEOM',
     MDSYS.SDO_DIM_ARRAY
     (MDSYS.SDO_DIM_ELEMENT('X', 151.21093421,
               151.21205421, 0.000000050),
     MDSYS.SDO_DIM_ELEMENT('Y', -33.86347146,
               -33.86234146, 0.000000050)));
4.     Validate the data loaded:
create table result
(UNIQ_ID number, result varchar2(10));
execute sdo_geom.validate_layer
('TILE_MED_NODES_MBR','GEOM','ID','RESULT');
select result, count(result)
from RESULT
group by result;
truncate table result;
execute sdo_geom.validate_layer
('TILE_MED_LINES_MBR','GEOM','ID','RESULT');
select result, count(result)
from RESULT
group by result;
drop table result;
5.     Fix any problems reported in the result table.
6.     Create a spatial index, use the spatial index advisor to
determine the sdo_level.
create index tile_mlines_spind on
tile_med_lines_mbr (geom) indextype is
mdsys.spatial_index parameters
( 'sdo_level=7,initial=1M,next=1M,pctincrease=0');
7.     Analyse table:
analyze table TILE_MED_LINES_MBR compute statistics;
8.     Find the spatial index table name:
select sdo_index_table, sdo_column_name
from user_sdo_index_metadata
where sdo_index_name in
(select index_name
from user_indexes
where ityp_name = 'SPATIAL_INDEX'
and table_name = 'TILE_MED_LINES_MBR');
9.     Analyse spatial index table:
analyze table TILE_MLINES_SPIND_FL7$
compute statistics;
I hope this helps.
Cheers
Alex Eadie

Similar Messages

  • My problem is that after printing the first photo or picture, when I come to print a second, both the Colour Management and Epson Colour Controls are greyed out and showing No Colour Management

    I have recently purchased a Mac computer (updated to Maverick) to go with my Epson Stylus Photo RX500 printer which has given excellent service with my old Windows computer. However, when trying to print pictures or photos via Photoshop Elements 11, the best results I can get are using the Colour Management and Epson Colour controls in the printing options box.
    My problem is that after printing the first photo or picture, when I come to print a second, both the Colour Management and Epson Colour Controls are greyed out and showing No Colour Management, The only way I can reset the controls is to shut down the printer and computer and restart.
    Could there may be a setting somewhere that I need to adjust please?  I have been in touch with Epson and they say that the Epson Colour controls are part of the Photoshop Elements software but a post on the Adobe forum brought no results and I am unable to contact Adobe.
    <Edited by Host>

    Hello Garry. Thanks for the reply. I guess I should have used a different title from "How do I post a question?" That should come after trying to resolved the colour settings first. However, to answer your question, after experimenting with all the different settings in Photoshop Elements and Epson software, I now start with PSE11 Colour settings then click "no colour management" then after clicking Print, I choose "More Options/Colour Management/Colour Handling/Printer Manages Colour" then I choose "Page Setup/Layout/Colour Matching" which then shows Epson Colour Controls but I also choose "Layout/Colour Management" which then shows "Colour Controls/Mode" I then of course choose an Epson printer profile depending on the paper I am using. I get good results but as I said, the Colour Matching and Colour Controls are then greyed out. Hope that makes sense.

  • TS3276 I have an old version, 10.5. A few days ago, my Inbox stopped showing new messages received, although they are coming in and show under Messages on Server.  How can I get the messages on the server to go to my Inbox so I can access them?

    I have an old version, 10.5. A few days ago, my Inbox stopped showing new messages received, although they are coming in and show under Messages on Server.  How can I get the messages on the server to go to my Inbox so I can access them?

    Make sure Mail is selected in System Preferences > iCloud

  • What are muse templates and how do i use them?

    what are muse templates and how do i use them?

    thank you for the information. the reason i am asking is that i am having a problem with a website i am building in muse, specifically the functionality of my accordion menu. the accordion menu is on the left side of the page with a couple of elements directly beneath it. i would like the elements directly below the accordion menu to be pushed down when the menu is opened, however the menu is pushing everything on the page that is below down when it is opened. i have attached images to illustrate what i am talking about. is there any way that i can have the accordion menu push down just the elements directly below down and ignore all of the other elements on the page?

  • How to find the cpu cost and i/o cost  by a query

    I have a query that give the cpu utilization for a session.
    select s.name, m.value from v$statname s, v$mystat m
    where s.statistic# = m.statistic#
    and name = 'CPU used by this session';
    But how do you find the cpu cost and i/o cost by a query?

    Sounds like you want to use TRACE.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/sqltrace.htm#PFGRF01020

  • How to build and publish a webservice using Bex query?

    Hi Experts,
        Can anyone tell me how can i step by step to build and publish a webservice using Bex query,
    so another application can call this webservice.
    thanks.

    There i already a web service called query_view_data for the same available as delivered by SAP...

  • Outlook 2013 are not opening and showing pst files are not closed properly

    Hi
    Outlook 2007 has stopped working and showing close the program. Again,we re-started then outlook 2007 and it has opened and taken the backup of pst files in a separate hard drive.
    The pst file was repaired in scanpst.exe and again i have tried to put the pst file back in outlook 2007.It was hanging and suddenly i have uninstalled 2007 and started installing outlook 2013.
    2013 applications like word,excel,power point are opening and outlook 2013 are not able to open and showing pst files were not closed properly.
    Again i have un-installed and re-installed the outlook 2013.still we are not able to open the outlook.
    Need your support at the earliest to fix the issue.
    Thanks

    Hi,
    What's the .pst file used for? Archive? Or you set up a POP3 account and want to import the emails from the .pst file?
    Another question, you mentioned you installed Outlook 2013 and it didn't open either. Was this from the beginning right after you installed Outlook 2013, or after you did something such as create a new Profile, set up a new account and tried to import the
    .pst file?
    Kindly answer my questions so I can understand the situation better.
    I've seen some of this issue caused by the anti-malware software, check your anti-malware software to see if it's trying to interfere with Outlook - things like real time email checking can sometimes cause these kinds of problems. To troubleshoot, we can
    simply disable the anti-malware software temporarily to see the result.
    Regards,
    Melon Chen
    TechNet Community Support

  • CPU bound and distinct select tuning (10g)

    Hi,
    I think that my database is CPU bound :
    Top 5 Timed Events Avg %Total
    ~~~~~~~~~~~~~~~~~~ wait Call
    Event Waits Time (s) (ms) Time
    CPU time 662 71.8
    db file sequential read 11,082 66 6 7.2
    control file sequential read 51,677 41 1 4.4
    db file scattered read 8,133 39 5 4.3
    SQL*Net more data to client 113,379 32 0 3.5
    ================
    ==================
    And such stmt's probably cause this issue :
    SQL ordered by CPU
    CPU CPU per Elapsd Old
    Time (s) Executions Exec (s) %Total Time (s) Buffer Gets Hash Value
    101.49 160 0.63 15.9 102.55 252,160 2426247326
    Module: dirdld.exe
    SELECT DISTINCT(APPNM) FROM APPLICATION ORDER BY APPNM
    ===============================================
    (SQL ordered by Gets)
    Buffer Gets Executions Gets per Exec %Total Time (s) Time (s) Hash Value
    713,149 33,280 21.4 13.3 39.67 42.70 2402103054
    Module: ORACLE.EXE
    INSERT INTO "PARAMETER" ("FAMNM","APPNM","PARTID","PARNAMELOC",
    "DLDTYPE","VALUE","FLAG","SEQINFO") VALUES (:B8,:B7,:B6,TRIM(:B5
    ),:B4,TRIM(:B3),:B2,:B1)
    489,906 114 4,297.4 9.1 20.16 29.46 2145980626
    Module: ORACLE.EXE
    DELETE FROM "PARAMETER" "A1" WHERE "A1"."PARTID"=:B1
    ============================
    ============================
    So is there any possiblility to tune this query ? :
    (it is already in keep buffer)
    SELECT DISTINCT(APPNM) FROM APPLICATION ORDER BY APPNM
    Plan
    SELECT STATEMENT ALL_ROWSCost: 1,008 Bytes: 859,080 Cardinality: 85,908
    3 SORT ORDER BY Cost: 1,008 Bytes: 859,080 Cardinality: 85,908
    2 HASH UNIQUE Cost: 659 Bytes: 859,080 Cardinality: 85,908
    1 TABLE ACCESS FULL TABLE VCESERVICE.APPLICATION Cost: 307 Bytes: 869,150 Cardinality: 86,915
    Best Regards Arkadiusz Masny

    Hi,
    Thank's Joe.
    But this query is hardcoded into application logic (standalone application).
    Is it possible to force oracle (application) to use materialized view instead of table ?
    Best Regards Arek Masny

  • I have created TM lock in oracle 9i and 11g databases. by using same query

    here is the query uesd for finding a lock in database.
    select /*+ RULE */ 'DATAPOINT # ' bpb,
    l.sid, ' # ',
    s.username, ' # ',
    s.sql_address, ' # ',
    x.sid, ' # ',
    y.username, ' # ',
    l.type, ' # ',
    l.id1, ' # ',
    l.id2, ' # ',
    decode(X.LMODE,
    0, 'None',
    1, 'Null',
    2, 'Row Share',
    3, 'Row Excl',
    4, 'Share',
    5, 'Shr Row Excl',
    6, 'Exclusive',
    decode(L.REQUEST,
    0, 'None',
    1, 'Null',
    2, 'Row Share',
    3, 'Row Excl',
    4, 'Share',
    5, 'Shr Row Excl',
    6, 'Exclusive',
    from v$session s, v$lock l, v$lock x, v$session y
    where l.ctime > 120
    and s.lockwait = l.kaddr
    and l.type in ('TM', 'TX', 'UL')
    and l.id1 = x.id1
    and l.id2 = x.id2
    and x.sid != l.sid
    and x.sid = y.sid
    and x.lmode >0;
    after doing further investigation i found that for 11g condition s.lockwait = l.kaddr not satisfied where as for 9i it's gives correct results
    here are the lockwait and kaddr values for 9i and 11g databases.
    for oracle 9i
    SQL> select lockwait from v$session where sid in (10,12);
    LOCKWAIT
    67B4E10C
    SQL> select kaddr from v$lock where sid in (10,12);
    KADDR
    67B4E088
    67B4E10C
    for oracle 11g
    SQL> select lockwait from v$session where sid in (70,134);
    LOCKWAIT
    070000002FA080D8
    SQL> select kaddr from v$lock where sid in (70,134);
    KADDR
    0700000030C595C0
    0700000030C59830
    00000001108E3E58
    00000001108E3E58
    070000002FA6CB30
    SQL>
    please advise if there is any change for calculations for lockwait,kaddr for 11g.

    can you post your query with explain plan for both 9i version and 10g version.
    Thanks,
    karthick.

  • My 3g iphone  keeps crashing and shows very no battery

    Phone shows fully charged then suddenly goes off then shows battery completely discharged. Plug into charger and immediately starts again showing full charge. Sstem also seems very slow to respond to keypad. Any help would be gratefully received.
    Recently loaded icloud could this be the problem?

    THis does not sound right... Take it back to the Store...

  • I keep getting a server error and my emails are not deleting and showing up multiple times

    I am getting emails multiple times and they aren't deleting.  They keep coming back.  I then get a server errer that mail.me may be a false server pretending to be mail.me.  Don't know how to fix this.

    Update and restore alert messages on iPhone, iPad, and iPod touch
    http://www.buybuyla.com/tech/view/012953a0d412000e.shtml
    iOS: Resolving update and restore alert messages
    http://support.apple.com/kb/TS1275
    iPad: Unable to update or restore
    http://support.apple.com/kb/ht4097
    iTunes: Specific update-and-restore error messages and advanced troubleshooting
    http://support.apple.com/kb/TS3694
     Cheers, Tom

  • What are these features and how can I use them?

    Why do I have SDM Profile, Dyanmic private IP, Pay per message, Mobile Hotspot provisioning,   My mom is on the same account and does not have these.  Everything I look at points to enterprise stuff and administration.  I'm not aware of any of that.  Verizon seems to act like they don't know but it's right on my bill.  My VM seems to be funky too.  I had to change my phone number because of unknown video texts being sent.  Something is still not right.

    If these are items listed on your account as features, I think there are supposed to be there.
    I know I have that dynamic IP address one for my smartphone. So I suspect it is associated with the smartphone provisioning.
    The mobile hotspot provisioning would depend on what kind of plan you have.
    The pay per message is probably associated with your text messages so your phone will receive and send them.
    The other one I'm not sure about, but it could be something associated with the SIM card.

  • What are Color Moods and how can I use them?

    Color Moods allow you to select color themes from an image based on a pre-set mood.  Moods can be accessed by tapping on the flower icon after you take a picture. The preset Color Moods are: colorful, bright, muted, deep, dark, custom. You can experiment with each mood to see different color themes.
    As soon as you move one of the cursors on the image, the mood setting changes to Custom. The custom Mood allows you to select specifc colors.

    how would i make a server applet that can be accesed by 2 specific pll or random which ever makes it easier for the time being i just want 2 ppl to have acces to one applet and have a variable like a paddle in pong under each persons controll

  • What are the algorithem and container to be used for this problem?

    Say I have a class with the following properties:
    groupMonth //String (jan,feb,mar�)
    accumulatedLasyYear //double
    accumulatedThisYear //double
    What will be the best container/algorithm to use for objects from the class above so I can have them sorted by month (I know it�s a string) AND GROUP the months together (and the accumulated as well)
    Example:
    Jan 4 8
    Feb 2 3
    Mar 5 2
    Jan 3 5
    Feb 4 2
    Mar 9 3
    The output should be:
    Jan 7 13 //(4+3, 8+5)
    Feb 6 5
    Mar 14 5
    Thanks for any thought�

    I'd suggest a java.util.Map<String, Set<WhateverClassYouveDefined>>. The keys are the year, the values are Sets containing all objects of that year. Iterate through your list of objects and group them into the right set using the map.
    Then I'd suggest looping through the keys to get each month's worth. Since you know what all the keys will be in advance, and there's only twelve of them, create an array of the twelve month strings. Loop through that array, and for each value grab the corresponding Set from the map.
    Then for each set you get, iterate through its contents, get the values, and add them.
    Then just print the month and the sums of values from the set, and go on to the next month.

  • Retrieve All records and display in Report using CAML query in Report Builder if Parameter value is blank

    Hello Experts,
    i have created a report where i have one parameter field where user will pass parameter(e.g. EmpId). As per parameter record will fetched to report if no parameter is passed then it will display all records. I have done it by taking SqlServer Database as datasource.
    by using Following method
    Now i would like to do it by taking Sharepoint List as Datasource. For that what would be the CAML Query.
    Here is my existing CAML query.
    <RSSharePointList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <ListName>Employees</ListName>
      <ViewFields>
        <FieldRef Name="Title" />
        <FieldRef Name="FirstName" />
        <FieldRef Name="LastName" />
        <FieldRef Name="FullName" />
        <FieldRef Name="UserName" />
        <FieldRef Name="Company" />
      </ViewFields>
      <Query>
        <Where>  
    <Eq> 
        <FieldRef Name="Title" />
      <Value Type="Text">    
       <Parameter Name="EmployeeId"/>    
    </Value>
    </Eq>                  
        </Where>
      </Query>
    </RSSharePointList>
    The above code is working if i am passing an employeeId to Parameter. If nothing is passed, it is Not retrieving any record.
    Please suggest
    Thank you
    saroj
    saroj

    Your problem follows the well-established pattern of using an "All" parameter filter in SSRS. There are a few approaches depending on the size of your data. The easiest one is to return all data from CAML and then filter it within SSRS, the following thread
    provides some examples,
    http://stackoverflow.com/questions/18203317/show-all-records-some-records-based-on-parameter-value.
    Other options include passing all of the possible values within the CAML query when "All" is selected, using multiple Report Files to distinguish between both CAML queries, or to use multiple datasets with some logic to show/hide the correct one.
    Dimitri Ayrapetov (MCSE: SharePoint)

Maybe you are looking for

  • ENT Linux on intel 965 chipset  based systems

    Hi I am unable to install ENT Linux on my new Box (intel core 2 duo / dg965whmkr MoB / 2 G RAM) . Issue is installer fails to detect CDROM. Anybody succeeded installing ENT linux on a similar config like mine. Please help Regards Reju

  • Is there a fix for security warning:

    Is there a fix for security warning: the document is trying to connect to file:/index.cfm?event=Vendorsonly.submiteventform---trust choose allow--no trust choose block. I need a fix for this.

  • How to work with [row selector] in report?

    I need to solve next problem: I have a report with users roles. (Id, Role Name, Checkbox).I have two tables in DB (List of roles [id, role name] and Configuration table [role_id,group_id]). According to table content I need manipulate with this form.

  • MacBook Pro and Leopard updates

    I got a MacBook Pro in January with OS X 10.5 installed. Soon after I got it, I started having a variety of problems. --After sleeping, it would wake up but the screen would be turned off. Sometimes the screen would turn on if I pressed the power but

  • Diskpart Batch File

    hi,          how to create batch file for diskpart, plz help me