Query on dedicated server?

Is it possible to connect to the database through various dedicated connections?
Is there any parameter to limit the max number of dedicated connections?
or
only one dedicated connection is possible for each database?
Regards,
Rajesh

OK, let me try to explain the difference between dedicated and shared server connections this way.
Oracle uses what is known as a two-task architecture. You have a front-end program that connects to Oracle and a session is created to support this front-end user connection.
Now to perform the work for this session Oracle creates a seperate back-end process.
When dedicated sessions are used every session has its own dedicated back-end process to perform SQL. When shared server sessions are used every session does not have a dedicated back-ground session but rather the requests (SQL) are passed to a pooled back-end process.
Now, no matter if dedicated or shared server connections are used a single user may open multiple connections to Oracle (providing the user has not been limited via a user profile). A connect is basically a path between the user client and the Oracle database. A message is sent to the listener that say hey I am user U1 on OS PID X1 at server S1 and I want a connection. The listener assigns a port and creates a session for this connection. If the same user askes for another connection the request will will say hey I am user U1 on OS PID X2 at server S1. Because the source is a different local OS process Oracle will create a new session for it.
It is actually possible for a single OS process to open multiple connections to the same Oracle database by providing a unique copy of the necessary control structures for Oracle but in most cases if you invoke a program such as sqlplus multiple times then you will get one connection, one session, and in the case of dedicated session one background Oracle process per OS process running sqlplus.
You can find more information on this topic in Ch 9 Process Architecture in the Concepts manual (10gR2).
HTH -- Mark D Powell --

Similar Messages

  • How fast a query can run on dedicated server?

    I have a server on which we have installed several clients database isntances. Recently there were several performance issue for one of the client while running few reports at which time I heard that was becasue of their instance is an shared server and if we make it dedicated the performance will improve. How do you find out whether an instance running on a particular box is a dedicated server connection or shared server connection. What is the definition of those in simple lay mans terms. How do you change a shared connection to dedicated connection and vice versa? Does it depend on the memory/cpu size etc. Changing it to dedicated server helps the performance? if so by how much Any help is higly appreciated.

    user5846372 wrote:
    I have a server on which we have installed several clients database instances. Recently there were several performance issue for one of the client while running few reports at which time I heard that was because of their instance is an shared server and if we make it dedicated the performance will improve. I start to reach for the old lead pipe when I hear stuff like that, that is seemingly based on hearsay and rumour and not a single shred of evidence is provided.
    I will tell "+those people+" that claims your performance problems are due to shared server to put up or shut up.
    There is very little performance difference (in the vast majority of cases) between shared and dedicated server. The biggest difference is that with a shared server you talk to the process servicing your SQL via a dispatcher process and then via a virtual circuit. With a dedicated server, you talk directly to the process servicing you.
    Both shared and dedicated server runs the SAME CBO code , the SAME SQL engine.. so how can a query be faster in one and not the other? And if that was the case. If there was a performance difference.. Surely Oracle will recommend not using the "bad" one? Or even better, Oracle would discontinue and deprecated the "bad" one?
    There is no difference in whether a query is executed by shared or dedicated server. The same CBO does the same execution plan and creates the same cursor. What is different is how the communication and interaction works with the client session/process. What is different is where UGA (User Global Area) memory resides. In other words, very technical execution environment differences - not differences to HOW the query is parsed and HOW the query is executed. Which then begs the question how can the query be faster in one and not the other?
    But shared server and dedicated server aside. What is the "+First and Fundamental Rule Of Software Engineering?+"
    It is.. "{color:blue}*UNDERSTAND THE PROBLEM*{color}"
    If you do not know WHAT the problem is, WHY the problem is, how on earth can you hope to address the problem and resolve it?
    Thus my "unhappiness" of those that make performance resolution claims by sucking their thumbs, repeating what they may have read somewhere, and not back it up with evidence and fact - like those who told you that your problem is using shared server.
    What can be a problem is that you may not have enough dispatchers. Or insufficient shared servers in the shared server pool. Or being to tight with the SGA that now also needs to cater to the shared server sessions' UGA memory. Or shared servers being used (incorrectly and explicitly by client software) for running long and slow queries (thus tying up that shared server with servicing a single session and making it non-sharable and unable to service others too). Etc. Etc.
    There's a whole wackload of potential issues... and many of them are solved in different ways. Simply changing shared server for dedicated servers and expecting a performance improvement as those hearsayers you deal with are claiming...? That is not just ignorance, but borders dangerously on stupidity. (dedicated servers can also kill performance when incorrectly used)

  • Dedicated Server Connection Vs Shared Server Connection

    Hi Gurus,
    I have few doubts regarding Dedicated Server Connection Vs Shared Server Connection -
    1) How do I know which connection mechanism is configured in my system.
    2) Which connection faster and reliable.
    3) Is there any risk to using shared server connection?
    4) Which concept is new comparatively?
    5) It is possible to restrict specific user for Dedicated Server Connection and other for Shared Server Connection in a same database.
    Regards,
    Atanu

    AChatterjee wrote:
    Thanks for your post.... but still i have doubt on below points -
    1) How do I know which connection mechanism is configured in my system.Search for dispatcher parameter (both words in the search box) in the docs.
    2) It is possible to restrict specific user for Dedicated Server Connection and other for Shared Server Connection in a same database.You might be able to do something like this by using the RULE parameter with cman, limiting specific users (via local security setups) to specific client IP's and forcing them to particular service names. This is a net services issue, so does not conflict with what Billy said. It assumes you control whether your users will query the db appropriately, too. Many apps don't do that right.

  • Question regarding Listener and Server Processes in dedicated server mode

    Good morning,
    The Oracle documentation states that when a client connection request is received on the server, the Listener creates a Server Process which will work with the database instance to carry out the tasks requested by the user/client process. So far, everything good.
    Now, when the user is at the Oracle server itself, the Listener does not need to be running to establish a connection to the database. It is therefore possible to stop the Listener and still connect using sqlplus and a valid username and password.
    In the above case, the question is: if the Listener is not running, what/who created the Server Process that communicates with the database instance on behalf of the user ? Stated a different way, in the normal case, the Listener would get the request and create the server process. When the Listener is not running what part of Oracle gets the requests and creates the server process ?
    Clarification on how this case is handled is much appreciated, thank you,
    John.

    When using bequeath protocol the server process is created by the client process: it's the client process that is using ORACLE_SID and ORACLE_HOME to compute shared memory key (under UNIX) to know which SGA to attach (i.e. which instance to connect to):
    Example with SQL*Plus :
    $ ps -fu oracle | grep DB112
    oracle    5675     1  0 18:13 ?        00:00:00 ora_pmon_DB112
    oracle    5677     1  3 18:13 ?        00:00:02 ora_vktm_DB112
    oracle    5681     1  0 18:13 ?        00:00:00 ora_gen0_DB112
    oracle    5683     1  0 18:13 ?        00:00:00 ora_diag_DB112
    oracle    5685     1  0 18:13 ?        00:00:00 ora_dbrm_DB112
    oracle    5687     1  0 18:13 ?        00:00:00 ora_psp0_DB112
    oracle    5689     1  0 18:13 ?        00:00:00 ora_dia0_DB112
    oracle    5691     1  0 18:13 ?        00:00:00 ora_mman_DB112
    oracle    5693     1  0 18:13 ?        00:00:00 ora_dbw0_DB112
    oracle    5695     1  0 18:13 ?        00:00:00 ora_lgwr_DB112
    oracle    5697     1  0 18:13 ?        00:00:00 ora_ckpt_DB112
    oracle    5699     1  0 18:13 ?        00:00:00 ora_smon_DB112
    oracle    5701     1  0 18:13 ?        00:00:00 ora_reco_DB112
    oracle    5703     1  0 18:13 ?        00:00:00 ora_mmon_DB112
    oracle    5705     1  0 18:13 ?        00:00:00 ora_mmnl_DB112
    oracle    5707     1  0 18:13 ?        00:00:00 ora_d000_DB112
    oracle    5709     1  0 18:13 ?        00:00:00 ora_s000_DB112
    oracle    5745     1  0 18:13 ?        00:00:00 ora_arc0_DB112
    oracle    5747     1  0 18:13 ?        00:00:00 ora_arc1_DB112
    oracle    5749     1  0 18:13 ?        00:00:00 ora_arc2_DB112
    oracle    5751     1  0 18:13 ?        00:00:00 ora_arc3_DB112
    oracle    5753     1  0 18:13 ?        00:00:00 ora_qmnc_DB112
    oracle    5769     1  1 18:13 ?        00:00:00 ora_cjq0_DB112
    oracle    5773     1  0 18:13 ?        00:00:00 ora_q000_DB112
    oracle    5775     1  0 18:13 ?        00:00:00 ora_q001_DB112
    oracle    5777     1  1 18:13 ?        00:00:00 ora_vkrm_DB112
    oracle    5785     1 46 18:13 ?        00:00:24 ora_j003_DB112
    oracle    5797  5796  2 18:14 ?        00:00:00 oracleDB112 (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
    oracle    5832  5801  0 18:14 pts/2    00:00:00 grep DB112
    $ ps -fp 5796
    UID        PID  PPID  C STIME TTY          TIME CMD
    oracle    5796  5584  0 18:14 pts/1    00:00:00 sqlplusThis is also documented in 11.2 Net Admin. Guide http://download.oracle.com/docs/cd/E11882_01/network.112/e10836/concepts.htm#CIAFHAEE
    >
    If the client and database exist on the same computer, then a client connection can be passed directly to a dedicated server process without going through the listener. This is known as a bequeath protocol. The application initiating the session spawns a dedicated server process for the connection request. This happens automatically if the application used to start the database is on the same computer as the database.
    >
    Edited by: P. Forstmann on 5 sept. 2010 18:23

  • Delete WorkBook and Query file from Server .

    Dear All Experts .
    I dun know i posted in correct places or not .. (correct me if i m wrong) .. i want to ask about the BW Workbook and query.
    How we going to remove the remove the workbook or query files from Server ? bc i tried to delete from Analyzer(excel 2007), the file is deleted from the view , but havent delete from the server... So how i going to remove the file from server ?
    Thank.

    Hello I have the same problem. Can you please tell me how you finaly manage to delete the workbook.
    thank's you for advance,
    Akiba

  • Error while executing query in OLAP server

    Dear all,
    we are using APD to extracted sales data for the last 3 months .this APD was executed perfectly till yesterday.
    in today's run APD got failed with error message as below
    "@5C\QError@     Fiscal year variant Z3 is not maintained for calendar year 9999
    "@5C\QError@     Error while executing query in OLAP server; redesign query.
    Please suggest corrective action .
    I have tried executing manually with less selections on creation date by no success..
    regards,
    puru

    Purushotham wrote:
    Hi Jeeth,
    >
    > in query we have selection for " currency type " and created on "  .we are not using fiscal year variant.
    >
    > in first strep of APD design only we have a problem and also recently there are no changes to this APD .
    >
    > It was executed perfectly on till 4th .
    >
    > Edited by: Purushotham on Feb 6, 2012 12:48 PM
    Dear Purushotham, You can maintain the Fiscal year Variant in OB29. 2 possibilities, #1 : Data for the FYV/Year could be wrong. #2 : Updates for Fiscal Year might not have been done. You can maintaine FY varients up to FY 2XXX in your BW system. This should fix the error. The table T009 must be the same as we get when we do OB29 TCode in BW, so via SPRO do rebuild of table again.
    Edited by: Arun Bala G on Feb 6, 2012 4:05 PM

  • Different output of same query in SQL Server and Oracle

    I have two tables table1 and table2
    --table1 has two columns c1 int and c2 varchar. there are not constraints added in it. it has data as given below
    c1     c2
    6     d
    5     j
    102     g
    4     g
    103     f
    3     h
    501     j
    1     g
    601     n
    2     m
    --table2 has only one column c1 int. there are not constraints added in it. it has data as given below
    c1
    6
    1
    4
    3
    2
    now when i run below given query in sql server and oracle it gives me different result
    select *
    from table1
         inner join (SELECT ROW_NUMBER() OVER (order by c1 ASC) AS c1 from table2) table2 on table2.c1=table1.c1
    sql server output
    c1     c2     c1
    1     g     1
    2     m     2
    3     h     3
    4     g     4
    5     j     5
    oracle output
    C1 C2 C1
    5 j 5
    4 g 4
    3 h 3
    1 g 1
    2 m 2
    If you notice the first column in both output. It is sorted in sql server and not in oracle.
    Why it is behaving differently in oracle? Is there any way I can solve this in oracle?
    Thanks,
    Jigs

    It is NOT behaving "differently" in Oracle; you just haven't specified an order that you expect your results to be in, so you're going to get output in whatever order the database fancies displaying it (ie. no guarenteed order). This is an artifact of how the database chooses to put together the data, and different databases (or even datasets within the same database) can and most likely will behave differently.
    Even SQL Server won't guarentee to always get your data in an ordered fashion if you exclude the order by clause, even if you think it has always output the data in an ordered fashion.
    Your solution is to add an order by clause, in BOTH databases, to force the order of the output data.

  • Transport of ABAP query to production server

    Hi!
    I have developed a report with ABAP query in development server with transaction codes SQ01, SQ02 AND SQ03 respectively.
    I also got the program name from SQ01.
    Now , how to attach a transaction code with the program that is generated from ABAP query and transport it to production server
    successfully.
    If the program is attached directly to the tr code through SE93 and transported----- program is not found in the pr. server.
    pls help me out , requirement is very urgent.
    points to be rewarded .
    regards
    Amit

    hi amit,
    if i understood correctly.is ur query and infoset transported or imported to production.
    Regards,
    sudheer

  • How to transfer ABAP query from one server to another server

    Hi all,
    I have a ABAP query in development server and i need to transport it to production server.
    I have attached a transaction to it using the program which got generated in the back ground
    from the abap query in the developemnt server.
    I have downloaded and uploaded  a ABAP query from one server to another server.
    But the program which got generated in the back ground in the production server is different from
    program which is generated in the development server.
    But my transaction is attached to the program in the development server.If i transport the transaction
    to production server,it is giving error since that program is not present in the production server.
    Am i going in the right way......? 
    Is there any problem in my upload/download procedure ?
    Is there any way to achieve my purpose ...............?
    Please kindly reply me at the earliest.

    You have different ways to call a query using a t.code. One way is to create a pgm with the following code and attach a t-code to it.
    data: gv_test type sy-repid.
    DATA: GV_USERGROUP TYPE AQADEF-BGNAME VALUE 'FI',
          GV_QUERY TYPE AQADEF-QUNAME VALUE 'ZCON_FI_QUERY',
          GV_RNAME TYPE AQADEF-PGNAME .
    CALL FUNCTION 'RSAQ_REPORT_NAME'
      EXPORTING
        WORKSPACE        = ''
        USERGROUP        = GV_USERGROUP
        QUERY            = GV_QUERY
    IMPORTING
       REPORTNAME       = GV_RNAME
    * For the dynamic excution of the called query assisgn GV_RNAME to <gv_test>.
    gv_test = GV_RNAME.
    SUBMIT (gv_test) via selection-screen and return.
    Alternate way is while creating T-Code you choose option Transaction with parameters.
    Transaction as START_REPORT and in default values table control at bottom give as follows
    D_SREPOVARI-REPORTTYPE = AQ
    D_SREPOVARI-REPORT = User group
    D_SREPOVARI-EXTDREPORT = Your Query name
    Regards
    Sathar

  • Is dedicated server process part of Instance or not?

    Hi friends,
    I am new to Oracle Database. I have been reading famous book "Expert Oracle Database Architecture" by Thomas kyte. At page no. 62 he has said that "This dedicated server process is not (by definition) part of the instance."
    But in the [email protected] documentations at almost most of the places they have mentioned that dedicated server is part of an instance. Interestingly Tom Kyte has coauthored book. I got confused because Dedicated server process would also have PGA so it will be part of Memory so it should be part of instance. So has Tom Kyte said for that particular dedicated process and why? He must have said that with some reason? What is that?
    I have also asked my trainer. But I didn't get satisfactory answer.
    Thanks.

    67bf3bdd-9577-45a7-a776-f8e8d3c9c0d3 wrote:
    Hi friends,
    I am new to Oracle Database. I have been reading famous book "Expert Oracle Database Architecture" by Thomas kyte. At page no. 62 he has said that "This dedicated server process is not (by definition) part of the instance."
    But in the [email protected] documentations at almost most of the places they have mentioned that dedicated server is part of an instance. Interestingly Tom Kyte has coauthored book. I got confused because Dedicated server process would also have PGA so it will be part of Memory so it should be part of instance. So has Tom Kyte said for that particular dedicated process and why? He must have said that with some reason? What is that?
    I have also asked my trainer. But I didn't get satisfactory answer.
    Thanks.
    Can you cite a specific instance of the documentation stating that dedicated server is part of the instance?  Your embedded link is a 'mailto' link, not a url to a document.
    I can offer specific links stating otherwise.
    If I start at Oracle Database Online Documentation 11g Release 2 (11.2)  I am at the portal for all database 11.2 documentation.
    From there, do a search for 'dedicated server' and get the results of that search at Oracle Database Search Results: dedicated server
    The first result returned is the definition, at Glossary
    The definition states:
    dedicated server
    A database configuration in which a server process handles requests for a single client process.
    If I follow the embedded link for 'server process', I get the definition of a "server process" at Glossary
    Note that this definition is for all "server processes", not just dedicated server.  It says
    server process
    An Oracle process that communicates with a client process and Oracle Database to fulfill user requests. The server processes are associated with a database instance, but are not part of the instance.
    (emphasis mine)

  • Shared and Dedicated server modes

    Hi,
    We have been having some issues with connections and listeners. Please find here... Link [Post1|http://forums.oracle.com/forums/message.jspa?messageID=3665455] and Link [Post2|http://forums.oracle.com/forums/message.jspa?messageID=3677914].
    Despite this help from this forum, I still face some problem configuring listener in both Shared and Dedicated server modes.
    Pls find the below the problem...
    Two listeners namely, LSNR1 and LSNR2 have been started.
    listener.ora:
    LSNR2 =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = dbdev.website.org)(PORT = 1522))
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    SID_LIST_LSNR2  =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = TESTDB)
          (ORACLE_HOME = /u02/app/oracle)
    LSNR1 =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = dbdev.website.org)(PORT = 1521))
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    SID_LIST_LSNR1 =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = TESTDB)
          (ORACLE_HOME = /u02/app/oracle)
      )LSNR1 works with both Shared and Dedicated configurations, whereas LSNR2 neither DEDICATED nor SHARED configurations...
    Here is the TNS names entry at the client (for LSNR2)...
    serv2=
    (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = xxx.xxx.xxx.xxx)(PORT = 1522))
        (CONNECT_DATA =
          (SERVICE_NAME=DEDICATED)
      )When I try to connect using this, it says
    + ORA-12514: TNS: Listener does not know of service requested in connect descriptor +
    Pls help.
    Thanks,
    Aswin.

    Aswin,
    I didnt see the other posts but the error is fairly simple,
    >
    ORA-12514:
    TNS:listener does not currently know of service requested in connect descriptor
    Cause:     The listener received a request to establish a connection to a database or other service. The connect descriptor received by the listener specified a service name for a service (usually a database service) that either has not yet dynamically registered with the listener or has not been statically configured for the listener. This may be a temporary condition such as after the listener has started, but before the database instance has registered with the listener.
    Action:     
    - Wait a moment and try to connect a second time.
    - Check which services are currently known by the listener by executing: lsnrctl services <listener name>
    - Check that the SERVICE_NAME parameter in the connect descriptor of the net service name used specifies a service known by the listener.
    - If an easy connect naming connect identifier was used, check that the service name specified is a service known by the listener.
    - Check for an event in the listener.log file.
    >
    So check what you are passing in the connection string.
    HTH
    Aman....

  • Shared and Dedicated Server...

    Dear All,
    Can anybody tell what's the difference between shared and dedicated server? Our database is Oracle 9.0.1 in Windows 2003. Our total session is around 200. Our server is dedicated server. What will be the benefit if we change our database to shared server for specific users???
    Shared pool size = 728MB
    Buffer Cache = 592MB
    Java pool = 104MB
    Large pool = 60MB
    There is no pga_aggregate_target in our database. Is the configuration ok for more than 200 users??? Most of the times we get 'out of process memory error'. What should we do in this situation??? Plz suggest.

    mrashid07 wrote:
    Can anybody tell what's the difference between shared and dedicated server?Dedicated server is the default. It means that each and every user session is serviced by a dedicated Oracle server process. 200 user connections? 200 dedicated server processes.
    On Windows these are however threads inside the physical oracle.exe process (and not actual separate process images like on Unix/Linux for example). A standard thread on Windows needs around 2MB of kernel space. So 200 threads, for 200 dedicated server connections, need 200 x 2MB RAM.
    Shared server works differently. A pool of dispatchers and shared servers are created. The dispatcher processes deals with the communication between the Oracle client and the Oracle instance. A dispatcher places client requests on a virtual circuit. These requests are picked up by idle shared server processes and processed. The results are send back to the client via a dispatcher process.
    So instead of having 200 dedicated server processes to service 200 users, you can for example use 5 dispatcher processes and 30 shared server processes to service the 200 sessions of those 200 users. In this case 35 processes are used that translates into 35 threads at a basic 2MB RAM cost per thread. (also note that the UGA now moves from the Oracle PGA to the Oracle SGA and the SGA needs to be sized accordingly).
    However, should such a user session send a long and complex request, that will tie up that shared server for a long time.. and this is bad. When the shared server process is busy, it cannot service any new requests. When all the shared servers in the pool are busy, no new request can be serviced. So you want the requests from the clients to be short and sweet - with a shared server not spending more than a few seconds per request.
    So typically OLTP requests are fine for shared servers.. OLAP requests not.
    Our database is Oracle 9.0.1 in Windows 2003. You should have been on 9.2.0.7 (last 9i patch set). You should currently being in the process of upgrading to 11gR2. 9i is basically an unsupported product. It is not a good idea to use an unsupported product in production. Even worse when you are not using the latest patchset for that product.
    As for using Windows.. why? 32bit is old hat. 64bit CPUs are standard even in today's desktop PCs. Consider using Linux instead. It is Open Source, is free ito purchasing (you only pay for support and maintenance) and it has had de-facto 64bit support for many years now. There's no need to hack the operating system, like Windows with its AWE extensions to address more than 4GB RAM.

  • Does SLD must have a dedicated server?

    hi!
    Does an SLD must have a dedicated server and separated from the IR and ID?

    Hi,
    No need not require for seperate Server for SLD,
    Butif you have the dedicated server then , you will have the following features:
    Like
    Performance is very high
    Security is very high
    etc..
    see below link
    http://help.sap.com/saphelp_nw04/helpdata/en/31/f0ff69551e4f259fdad799a229363e/content.htm
    Regards
    Chilla..

  • Help with translating SQL query from SQL Server syntax to Oracle syntax

    Hi,
    is it someone that can help me translate following SQL query from SQL Server syntax to Oracle syntax.
    SELECT ID,
    [LMT(MTR)] = MAX(case when TYPE = 'LMT' then VALUE end),
    [AAD(KGM)] = MAX(case when TYPE = 'AAD' then VALUE end),
    [VOL(MTQ)] = MAX(case when TYPE = 'VOL' then VALUE end)
    FROM yourtable
    GROUP BY ID
    Your help is highly appreciated, thanks in advance.

    Like this,
    SELECT ID,
    MAX(case when TYPE = 'LMT' then VALUE end) LMT_MTR,
    MAX(case when TYPE = 'AAD' then VALUE end) AAD_KGM ,
    MAX(case when TYPE = 'VOL' then VALUE end) VOL_MTQ
    FROM yourtable
    GROUP BY ID-Arun

  • Converting MDX query into SQL Server 2008

    We have MDX query based OLAP CUbes.
    To reduce MDX based dependenies, we have to convert MDX based cube to sql server 2008 based queries.
    For this I need expert advise to convert below query to sql server 2008 based query :
    CREATE MEMBER CURRENTCUBE.Measures.[Ack Lost]
                        AS 'Sum(PeriodsToDate([Time].[Year], [Time].CurrentMember ), [Measures].[Lost])',
                        FORMAT_STRING = "#,#",
                        VISIBLE = 1;

    Hi Sachin,
    According to your description, you need to convert the MDX query to T-SQL query, right?
    Your MDX query is calculated measure that return the total value from the first sibling and ending with the given member. In T-SQL query we can use the query as Yogisha provided to achieve the same requirement. Now you need to a tool to convert all the MDX
    related SSAS cube queries to MS SQL Server 2008 based queries.
    Although MDX has some similarities with T-SQL these languages are in many ways different. Beginning to learn and comprehend SQL Server Analysis Services (SSAS) MDX queries can be difficult after one has spent years writing queries in T-SQL. Currently, there
    is no such a tool to convert a MDX query to T-SQL query since the structure difference between MDX and T-SQL. So you need to convert them manually, please refer to the links below to see the details.
    http://www.mssqltips.com/sqlservertip/2916/comparison-of-queries-written-in-tsql-and-sql-server-mdx/
    https://sqlmate.wordpress.com/2013/11/12/t-sql-vs-mdx-2/
    http://technet.microsoft.com/en-us/library/aa216779(v=sql.80).aspx
    Regards,
    Charlie Liao
    TechNet Community Support

Maybe you are looking for

  • ITunes wiped clean on computer and iPod how do I get my music back?

    I just did the iOS 5.1 system update for the ipod. It told me it will restore my ipod and I was okay with that. But when it was finished I went to my iTunes on my computer (iMac) and there is absolutly no music. There are no music files on my compute

  • Error in Inbound IDoc processing

    Hi all, While processing Inbound delivery IDocs(Status 64), we are getting an error "Cannot convert Dimensionless Units". Please help. Regards, SP.

  • Can't edit titles in iMovie

    I want to edit my theme title in iMovie (v 10.0.02) so that I can put the text on more than one line but the options are all greyed out I've read the help section on this (http://support.apple.com/kb/PH2212) but I don't have the ability to click on t

  • When shutting my Macbook the monitor display stays on.

    When I shut my Macbook, the apple on the back stays on and so does the screen. My laptop then goes from hot to meltingly hot because of the heat given off. I have to put my laptop to sleep whenever I go anywhere because of this annoyance. I sometimes

  • Inactive timeout Configuration

    Hi All, The current application is in Oracle 10g forms . At any point of time,user might be in different screen , there are 350 forms are in there in the application. if particular user is inactive for more than 3 mins , i need to kill this session o