Can any one validate the below queries related to temp tablespace

For Temporary Tablespace Free and Used Space Information, I am using the following query
SELECT fs.tablespace_name tspace,
sum(fs.bytes)/(1024*1024) tot_ts_size_MB,
sum(df.bytes_free)/(1024*1024) free_ts_size_MB,
sum(df.bytes_used)/(1024*1024) used_ts_size_MB
FROM dba_temp_files fs,
(select tablespace_name, bytes_free, bytes_used from v$temp_space_header) df
WHERE fs.tablespace_name(+) = df.tablespace_name
GROUP BY fs.tablespace_name;
For getting how much space is being used by current users, I am using the following query
SELECT b.tablespace tablespace_name,
a.sid sid,
a.username username,
(b.blocks * c.value)/(1024*1024) Current_Usage
FROM v$session a, v$sort_usage b,
(select value from v$parameter where name = 'db_block_size') c
WHERE a.saddr = b.session_addr;
Can any one validate, that above queries are right or not?

Hi,
1.for first query i think u can also use only v$temp_Space_header to find out
the required details by
SELECT tablespace_name, SUM(bytes_used)/1024/1024 "Tot Used Space in MB",
SUM(bytes_free)/1024/1024 "Tot Free Space in MB"
FROM V$temp_space_header
GROUP BY tablespace_name;
2.http://www.dbazine.com/oracle/or-articles/weeg3
Thanks
Kuljeet

Similar Messages

  • Can any one wat the below topics means

    hi,
    can any one tell me wats the scope in the below mentioned topics and is it advantageous to work on this.
    SAP Netweaver, post-installation configuration, smoke tests, customer business scenario implementation.
    thanks in advance,
    vinayaka

    Hi
    u have lots of scope for working in SAP netweaver
    SAP NetWeaver provides an open integration and application platform and permits the integration of the Enterprise Services Architecture. You can unify business processes across technological boundaries, integrate applications for your employees as needed, and access and edit simple information easily and in a structured manner.
    SAP NetWeaver is the basis for all SAP solutions on a given hardware. The business applications and the SAP xApps use the key areas of SAP NetWeaver.
    SAP NetWeaver covers the following topics and components:
    1.Security
    2.People Integration:
    - Multi-channel access
    - Portal
    - Collaboration
    3.Information Integration:
    - Business Intelligence
    - Knowledge Management
    - Master Data Management
    4.Process Integration:
    - Integration Broker
    - Business Process Management
    5.Application Platform:
    - Java
    - ABAP
    - Business Services
    - Connectivity
    - DB and OS abstraction
    - SAP Knowledge Warehouse
    6.Life Cycle Management:
    - Customizing
    - Software Change Management

  • Can any one share the Oracle Reports 6i Developer demo table scripts?

    Hi,
    I have to learn the Report 6i for my office project, I have installed the report 6i developer but I could not get the Demo CD, can any one share the Scripts for table (viz. Stock, stock_history , indcat ) creation and also the insert script for data population or provide the URLs where I can find the same.
    thanking you in advance.
    regards,
    Sham.

    Hi Denis,
    Thanks for the reply, I have the setup for forms and reports 6i, what i was looking is the script to create the tables used in the
    Oracle® Reports Developer
    Building Reports
    Release 6i
    January, 2000
    Part No. A73172-01
    the table names are stocks, indcat etc, generally these demo script come along with the demo CD provided by oracle as i don't have the CD i am looking for these table creation script. if you have these scripts kindly share the same with me.
    regards,
    Sham.

  • Can any one have the oracle AIA certification dumps

    Hi All,
    can any one have the Oracle AIA certification dumps please provide.
    Thanks,
    Siva

    Hi All,
    can any one have the Oracle AIA certification dumps please provide.
    Thanks,
    Siva

  • Can any one explain the concept of  Hash ( # ),

    Hi All,
    I am generating the report on Billing Cube.. for that cube I have DS 2lis_13_vdhdr, 2lis_13_vditm,
    I am executing the report with characteristics Material , Billing Number and Key Figures Billing Value.
    For Example : I am seeing the report By Material , in last line it is showing Hash ( # ),
    When I am drill down by material by Billing no  with Billing value.
    Now it is showing the billing value agents’ the Billing Number and in the same time it is showing hash for the same Billing Number….
    Eg:       Material     Billing No     Billing Value
         120          199001     400 USD
         122          199002     500 USD
         125          199003     300 USD
         #          199001     000.00
                   199002     000.00
                   199003     000.00
    Can any one explain the concept of  Hash ( # ), and why the Billing No is reputing in Hash..
    I have same problem in other Cubes with other Characteristics …
    <b>How can I permanently Restrict Hash..  my user don’t want to see in report..</b>
    Regards,
    Shaik

    Shaik,
    since the thread in the Business Explorer forum has been marked as answered , I assume that this thread can also be closed as answered ... please assign points and close as answered..
    Arun
    other post
    How can I permanently Restrict Hash..in Query level  ( # )

  • Can any one give the difference

    can any one give the difference
    between normal java class and java bean
    Is every java bean is a java class

    A java bean is a class (always)
    A class does not have to be a java bean:
    For a bean you need to have a no argument constructor
    follow any of the other java bean guidelines/requirements...
    http://java.sun.com/developer/onlineTraining/Beans/index.html

  • URGENT : can any one please give me BAPI related material

    Hi there,
    please help me i am a new learner to BAPI i dont know any thing about it can any one please send me the BAPI related material  and also related videos or screen cams if available.

    http://www.sapmaterial.com/?gclid=CN322K28t4sCFQ-WbgodSGbK2g....>ALL
    STEP BY STEP for BAPI
    http://sap-img.com/abap/bapi-step-by-step-guidance.htm
    BAPI Programming Guide
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf
    BAPI User Guide
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDAPII/CABFAAPIINTRO.pdf
    http://techrepublic.com.com/5100-6329-1051160.html#
    http://www.sap-img.com/bapi.htm
    http://www.sap-img.com/abap/bapi-conventions.htm
    http://www.sappoint.com/abap/bapiintro.pdf
    http://ifr.sap.com/catalog/query.asp
    http://www.****************/Tutorials/BAPI/BAPIMainPage.htm
    step by step BAPI Creation with screen shots.
    http://www.sapgenie.com/abap/bapi/example.htm
    BAPI Programming guide: -
    http://help.sap.com/saphelp_nw04/helpdata/en/e0/9eb2370f9cbe68e10000009b38f8cf/frameset.htm
    BAPI user guide: -
    http://help.sap.com/saphelp_46c/helpdata/en/7e/5e115e4a1611d1894c0000e829fbbd/frameset.htm
    BAPI STEP BY STEP PROCEDURE: -
    http://www.sap-img.com/abap/bapi-step-by-step-guidance.htm
    Example:-
    http://www.erpgenie.com/abap/bapi/example.htm
    PDF download: -
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/200dd1cc-589e-2910-98a9-bb2c48b78dfa
    list of all bapis
    http://www.planetsap.com/LIST_ALL_BAPIs.htm
    for BAPI's
    http://www.sappoint.com/abap/bapiintro.pdf
    http://www.sappoint.com/abap/bapiprg.pdf
    http://www.sappoint.com/abap/bapiactx.pdf
    http://www.sappoint.com/abap/bapilst.pdf
    http://www.sappoint.com/abap/bapiexer.pdf
    http://service.sap.com/ale
    http://service.sap.com/bapi
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDAPII/CABFAAPIINTRO.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE8/BCFESDE8.pdf
    http://www.planetsap.com/Bapi_main_page.htm
    http://www.topxml.com/sap/sap_idoc_xml.asp
    http://www.sapdevelopment.co.uk/
    http://www.sapdevelopment.co.uk/java/jco/bapi_jco.pdf
    Also refer to the following links..
    http://www.sap-img.com/bapi.htm
    http://www.sap-img.com/abap/bapi-conventions.htm
    http://www.planetsap.com/Bapi_main_page.htm
    http://www.sapgenie.com/abap/bapi/index.htm
    Checkout !!
    http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
    http://techrepublic.com.com/5100-6329-1051160.html#
    http://www.****************/Tutorials/BAPI/CustomBAPICreation2/page1.htm
    There are 5 different steps in BAPI.
    Create BAPI Structure
    Create BAPI Function Module or API Method.
    Create BAPI object
    Release BAPI Function Module.
    Release BAPI object.
    Step1. Creating BAPI Structure:
    Go to <SE11>.
    Select Data Type & Enter a name.
    Click on Create.
    Note: Always BAPI should be in a development class with request number (Not Local Object).
    Select Structure & hit ENTER.
    Enter the fields from your database. Make sure that the first field is the Primary Key Field.
    Then SAVE & ACTIVATE.
    Step 2. Creating BAPI module:
    Enter TR.CODE <SE37>.
    Before entering any thing, from the present screen that you are in, select the menu
    Goto -> Function Groups -> Create Group.
    Enter a name (Note: This name Must start with ZBAPI)
    Let this screen be as it is and open another window and there, enter TR.CODE <SE80).
    Click on the Third ICON that says Inactive Objects.
    Select the group that you just created and click on Activate.
    Notice that the group you created will disappear from the list of inactive objects.
    Go back to <SE37> screen and enter a name and hit <ENTER>. Then enter the group name that you just created and activated.
    NOTE: When you release a function module the respective group will be attached to that particular application. It cannot be used for any other application. NEVER include an already existing group that is attached to another module.
    Now click on the first Tab that says ATTRIBUTES and select the radio button that says remote-enabled module since we will be accessing this from any external system.
    Then click on the second tab that says IMPORT.
    Enter a PARAMETER NAME, TYPE and the structure you created in the first step. Also select the check box ‘Pa’. All remotely enabled functional modules MUST be Pa enabled, where Pa means ‘Passed by Value’ and if you don’t select ‘Pa’, then that means it will be passed by reference..
    Then click on tab that says EXPORT.
    Enter the following as is in the first three fields
    RETURN TYPE BAPIRETURN (These 3 field values are always same)
    Here also select ‘Pa’ meaning Pass by value.
    Note: BAPIRETURN contains structure with message fields.
    Then SAVE and ACTIVATE.
    Step 3. Creating BAPI object:
    Enter Tr.Code <SWO1> (Note. It is letter ‘O’ and not Zero).
    Enter a name and then click on create. Enter details.
    NOTE: Make sure that that Object Type and Program name are SAME.
    Enter Application ‘M’, if you are using standard table Mara. If you are using your own database then select ‘Z’ at the bottom.
    Then hit <ENTER>.
    Now we have to add ‘Methods’. High light METHODS and then select the following from the menu:
    Goto Utilities -> API Methods -> Add Methods.
    Enter function Module name and hit <ENTER>.
    Select the second FORWARD ARROW button (>)to go to next step.
    Check if every thing looks ok and again click on FORWARD ARROW button (>).
    Then select ‘YES’ and click on <SAVE>.
    Now on a different screen goto TR.CODE <SE37>. Enter Function Module name and select from the top menu Function Module -> Release -> Release.
    Goback to TR.CODE <SWO1>.
    Here select the menu combination shown below in the same order.
    Edit -> Change Release Status -> Object Type Component -> To Implemented.
    Edit -> Change Release Status -> Object Type Component -> To Released.
    Edit -> Change Release Status -> Object Type -> To Implemented.
    Edit -> Change Release Status -> Object Type -> To Released.
    Then click on <SAVE>.
    Then click on Generate Button (4th button from left hand side looks like spinning wheel).
    Then Click on the button that says ‘PROGRAM’ to see the source code.
    To check if this is present in work flow goto TR.CODE <BAPI>.
    Here it shows business object repository.
    First click on the middle button and then select “ALL” and hit ENTER.
    Goto tab ALPHABETICAL and look for the object that you created. This shows that the BAPI object has been created successfully
    BAPI/RFC Interface
    A remote function call is a call to a function module running in a system different from the caller's.
    The remote function can also be called from within the same system (as a remote call), but usually caller and callee will be in different systems.
    In the SAP System, the ability to call remote functions is provided by the Remote Function Call interface system (RFC). RFC allows for remote calls between two SAP Systems (R/3 or R/2), or between an SAP System and a non-SAP System.
    RFC consists of the following interfaces:-
    A calling interface for ABAP programs
    Any ABAP program can call a remote function using the CALL FUNCTION...DESTINATION statement. The DESTINATION parameter tells the SAP System that the called function runs in a system other than the caller's.
    RFC communication with the remote system happens as part of the CALL FUNCTION statement.
    RFC functions running in an SAP System must be actual function modules, and must be registered in the SAP System as "remote".
    When both caller and called program are ABAP programs, the RFC interface provides both partners to the communication. The caller may be any ABAP program, while the called program must be a function module registered as remote.
    Calling interfaces for non-SAP programs
    When either the caller or the called partner is a non-ABAP program, it must be programmed to play the other partner in an RFC communication.
    To help implement RFC partner programs in non-SAP Systems, SAP provides-
    External Interfaces
    RFC-based and GUI-based interfaces can be used by external programs to call function modules in SAP R/2 or R/3 systems and execute them in these systems.
    Vice versa, ABAP programs in R/2 or R/3 can use the functions provided by external programs via these interfaces.
    Reward points..

  • Can any one explain the steps to coinfigure PGP Encryption in B2B

    Hello B2B Guru's,
    Can any one explain how to configure PGP Encryption in B2B  console?
    were to specify path for loading pgp encryption jar in b2b console?
    is it mandatory that PGP Encryption should have class to implement Call out interface?
    which methods we need to implement in Call Out interface?
    Thanks,

    Please refer :
    How to configure Call out in B2B ?

  • Can any  one give the solution

    One standard program is copied to zprogram i want to change that report Header(in output screen)Report name:Vendor Age Analysis-Forecasted payment.it will show in output as a report header.

    Hi
    you can do the following steps:
    1) go to se38
    2) type your program name.
    3) select one of  the radio buttons available there " attributes".
    4) click on change.
    5) you will get a screen.
    6) there you can change the title of the program as your wish.
    7) save it and actiavte it.
    8) execute it.
    Hope it is useful if i understood what you need.
    reward points if useful.

  • Can any one expain the concept of Date Interval for Miles/Kms Accumulation

    Hi ,
    Can anyone explain the concept of Date Interval for Miles/Kms Accumulation V_T706P.
    Where these entries are used?
    Thanks.

    For example we have the below mentioned cumulative rates,
    1. 0 to 1000KM - 1$ per KM
    2.1001 to 2000KM - 2$ per KM
    If employee entered 1500KM in a single trip, the system will automatically calculate 2000$ (1000+(500*2)).
    If employee entered 10 trips and each trip he has travelled 150KM in a month. But system will not add the no.of KM travelled for each trip.He will get reimbursement for 150KM travelled for each rip.
    Thanks,
    Nandagopal C

  • Can any one debug the error plz

    this is my prg:
    import java.io.*;
    import java.net.*;
    class server
    private final static int BUFSIZE = 20;
    public static void main(String a[])
    try
    int port = Integer.parseInt(a[1]);
    ServerSocket ss = new ServerSocket(port);
    while(true)
    Socket s = ss.accept();
    InputStream is= s.getInputStream();
    DataInputStream dis = new DataInputStream(is);
    double value = dis.readDouble();
    value *= value;
    OutputStream os = s.getOutputStream();
    DataOutputStream dos = new DataOutputStream(os);
    dos.writeDouble(value);
    s.close();
    catch(Exception e)
    System.out.println("Exception: "+e);
    when i execute this program i got the below error
    Exception : java.lang.arrayoutofboundsexception : 1
    so plz send me the output of the prg

    For your string arguments that you pass in when you call the app... java arrays start at 0, so if you are ding this:
    myJavaApp myarg
    Then you have a[0] and not a[1].
    If you do this:
    myJavaApp myArg1 myArg2
    Then myArg1 is a[0] and myArg2 is a[1].

  • Can any one validate this architecture?

    I have designed an architecture for my Application using MVC framework. I need
    wise advice on my architecture.Please validate.
    The architeure is
    JSP ->Struts Action class - >Businessdelegate--> (uses)--> Service Locator--> Session Facade(session bean)-->Businessobject-->Dao
                                                                                                                         |
                                                                                                               Application Service
                                                                                                                          |
                                                                                                          External Application  &  Webservice  ****************************************************************************************
    Explanation of the above depicted sequence :
    JSP : Provides the view for the presentation layer.
    Action Class - The function of an action class is to create a Transfer object out of Form Object and invoke the corresponding business delegate method.
    Business Delegate - The business delegate calls the appropriate Service method based on the value obtained from the Transfer object.This layer uses Service locator for the JNDI look up.
    Session Bean -EJB Service (Session bean) delegates the business object coordination logic to the Business Object Layer.
    Business object Layer- All the business validations will be performed.Based on the business requirement, it will call the DAO or call Web Service Layer through Application Service layer.
    Application Layer - The Application Service layer is used to co-ordinate with the external application services and Web service layer.
    My Queries :
    1) One section of my application has just one concurrent user. Ie. the application has Administration section in which at a time only 2 users will be using the application. Is it wise to go for EJB implementation.?
    2) If EJB layer is not used? can i use a simple java interface class and an implementation class to replace the EJB layer..so that if the future requirement needs EJB implementation, then we can just introduce a home interface to convert this existing approach to a EJB.I have this thought process, I am not sure whether this is feasible? If this is feasible, how do i go about?
    3)Is there any simple approach to have a better architecture? Please advice
    4) If you look at the above layered sequence, I am calling the external application , say for example any rule engine(External application) call is via this application service layer and Web service call is also through the application layer.Do i need to have a seperate layer to differnsiate the call from the webservice and the other external application?

    I have designed an architecture for my Application
    using MVC framework. I need
    wise advice on my architecture.Please validate.You might have a look at the J2EE design patterns and find something similar to this :-)
    JSP ->Struts Action class -
    - >Businessdelegate--> (uses)--> Service Locator-->
    Session Facade(session bean)-->Businessobject-->Dao Yeah! Everyone uses the same design... I'm going to run away from Java now...
    My Queries :
    1) One section of my application has just one
    one concurrent user. Ie. the application has
    Administration section in which at a time only 2
    users will be using the application. Is it wise to go
    for EJB implementation.?You need not have the EJB for that. Anyway, all your EJB does is call another bunch of classes. It is not really achieving what a session facade is intended to do (save remote EJB calls). Besides a Business Object would be achieving the purpose of encapsulating the business logic.
    2) If EJB layer is not used? can i use a simple
    le java interface class and an implementation class
    to replace the EJB layer..so that if the future
    requirement needs EJB implementation, then we can
    just introduce a home interface to convert this
    existing approach to a EJB.I have this thought
    process, I am not sure whether this is feasible? If
    this is feasible, how do i go about?It depends on what you want to do having an EJB. Is it for scalability, concurrent database transaction handling, persistence... ??? If you require all that, I doubt you would get it in a single interface + implementing class. Anyway, you have DAOs to take care of DB layer. And your EJB doesn't serve much purpose here.
    3)Is there any simple approach to have a better
    architecture? Please adviceYes, do away with the EJB. I think Think about what you want to really do with the thing labelled as "DAO". In short, look for the core J2EE patterns and try to understand what each layer is intended to do, if it is a part of the architecture..
    4) If you look at the above layered sequence, I am
    calling the external application , say for example
    any rule engine(External application) call is via
    this application service layer and Web service call
    is also through the application layer.Do i need to
    have a seperate layer to differnsiate the call from
    the webservice and the other external application?You might have another layer of abstraction if you expect a change in requirements. Else it would be just another layer. :-)
    Disclaimer: All the replies are to the best of my knowledge! Consult someone, especially J2EE patterns.

  • Can any one brief the difference between MSDN and Developer licensing

    We are looking at the licensing for SQL Server for  our development Team. 
    The scenario will be a   a common  DB server for entire development team.
    MSDN is a user based licensce which doesn't suits for our requirement.
    Any help  on this with appropriate licencing will be appreciated 
    Thank you
    Shahan

    Could you please explain difference and limitation between  MSDN and Developer edition
    The Developer Edition is available to everybody. It costs
    $59.95 in the Microsoft Store. But it's only available to be used in *development and testing* scenarios. You cannot use Developer Edition for production purposes. Developer Edition has equivalent functionality to Enterprise Edition.
    Within the MSDN Library there are also media and licenses available for the other editions of SQL Server. These instances, also, are only available for development and testing scenarios, but there are scenarios in which one might wish to *TEST* against a
    Standard Edition, Business Intelligence edition , or Enterprise Edition installation rather than a Developer Edition instance.
    The MSDN Library subscription is licensed on a per-user basis, so anybody using those three editions (Standard, BI, Enterprise) must also hold an MSDN Subscription, or you must own SQL CALs for those users to use Std/BI/Ent editions.
    Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
    SolarWinds Head Geek
    Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
    My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
    http://www.solarwinds.com/gotmicrosoft
    The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds.

  • REGARDING SCRIPTS.... CAN ANY ONE GIVE THE SOLUTION FOR THIS

    I have copied the standard script ML_SERVICE_ENTRY to ZFORM.... in tcode se71 but it has its original lang. - DE and lang - EN , if i get into this ZFORM ...
    in change mode,  the creation of windows, windows allignment and convert original lang. are in disabled mode , here i have to change the window size to add some text , is there any other method to change the language and to get these things in
    enable mode. plz give some solution for this one.

    Hi Mohan,
    While copying itself U have to give the Language in which U want to maintain, else U are supposed login in with the original Language only.
    Regards,
    Mohan
    *Reward if helpful*

  • Can any one tell the full form of ECC 6.0

    hi friends,
    can anyone tell the full form of ECC 6.0.
    Thanks in Advance.

    Harini,
    <b>ECC </b>: ERP central component and 6.0 is the version
    <b>ERP</b> : Enterprise resource planning
    Regards
    Aneesh

Maybe you are looking for