Query to find ou the space associated with a tablespace

hi gems...
I need to import a dump into a blank schema of a new database. For that I need to create two tablespaces. But there is space problem and thats why I need to assign nearly the exact space to the tablespaces which I will create.
So is there any query from which I can get the space taken by the source schema to the corresponding tablespaces???

-- check the total,used and free space in tablespaces
select     a.TABLESPACE_NAME,
     a.BYTES MB_total,
     b.BYTES MB_free,
     b.largest,
     a.BYTES-b.BYTES MB_used,
     round(((a.BYTES-b.BYTES)/a.BYTES)*100,2) percent_used
from
          select      TABLESPACE_NAME,
               sum(BYTES)/1048576 BYTES
          from      dba_data_files
          group      by TABLESPACE_NAME
     a,
          select      TABLESPACE_NAME,
               sum(BYTES)/1048576 BYTES ,
               max(BYTES)/1048576 largest
          from      dba_free_space
          group      by TABLESPACE_NAME
     b
where      a.TABLESPACE_NAME=b.TABLESPACE_NAME
order      by ((a.BYTES-b.BYTES)/a.BYTES) desc;
Regards
Asif Kabir

Similar Messages

  • Need to know how to find out the Variant associated with a background job

    Hello,
    Plz help me in finding out how to find the variant associated with a background job. I need to know which variant does the program picks up when it runs the scheduled background job. There are so many variants that exist. How do I figure out which one is being picked up by the program. When I go and see into the job that are already finished it shows the parameter as "&00000000645354" which I do not understand what it corresponds to. I was expecting a variant name instead of this number in the parameter field. Is there a way I can find out the name of teh variant the program is using automatically in the background job ??
    Thanks in anticipation

    Yes it is possible which is variant, input fields are choosen
    - go to SM37 and locate the background job which was processed using proper selection criteria
    - select the Job and click on 'Step' button availabe in the screen
    - the new screen is 'step list overview'. now, place the cursor on selected variant avaialble on the screen, then from Menu >> Goto>> variant
    which gives the list of input values.
    hope this helps
    Thanks
    JK

  • Sql query to find out the space issues in not able to allocate next extent

    hi,
    i have oracel 11g on linux.
    my datafiles are autoextend off. i am looking for query to make sure the segments does not stop growing by reaching the maximum segment allocated or no free contigous space available in allocating new extent,.
    i need to know periodically the owner,object_name and object type (table or index) which are suffocating for space.
    any ad-hoc sql query exists?
    thanks in advance.

    Connect as sysdba and try..
    To list all objects >100M in size.
    SQL> select owner, segment_type, segment_name, sum(bytes)/(1024*1021) from dba_segments
    group by owner, segment_type, segment_name
    having sum(bytes)/(1024*1021) > 100
    For tablespaces ..
    select tablespace_name, sum(bytes) tablespace_size
    from dba_data_files
    group by tablespace_name
    union all
    select tablespace_name, sum(bytes) tablespace_size
    from dba_temp_files
    group by tablespace_name
    order by tablespace_name

  • How do I find the phone # associated with my dryloop account?

    Customer service said they would be open til midnight but they're closed at 11:20. How do I find the phone # associated with my dryloop account so that I can pay online.

        Hi, yogaonmain!
    I'm sorry we were not available to get that information to you. Your mobile telephone number will be listed on your paper statement. It is also typically listed inside your phone under the Settings/Phone info section.
    If you need this information immediately, please call our customer service line at 800-922-0204.
    Thank you,
    AdamE_VZW
    Follow us on Twitter @VZWSupport

  • How to find out all the tables associated with particular T-code or Program

    Hi All,
    In 4.6B we have a transaction code SE49, where we can see all the tables associated with particular Transaction code or Program.
    But in ECC 5.0 or in ECC 6.0 this transaction code is not available.So is there any alternative where i can find out all the tables associated with particular T-code or Program.
    Thanks
    Shubham

    Hi,
    you are right, Transaction SE49 as well as SE48 do not exist anymore I'm afraid, they        
    are discontinued.                                                              
    You might try to create a transaction variant:                                        
    1) Start SE93 to create a transaction variant                                         
    2) Specify a name, eg. ZSE49, and choose the first option:                            
       "program and screen (dialog transaction)                                           
    3) Here specify SAPMSEUZ as program, and 200 as screen number                         
    4) Choose a suitable development class (package) if you want it to be                 
       transportable or Local (=$TMP) if non-transportable                                
    5) press Save                                                                         
    Same applies for SE48, same program but dynpro 100.                                   
    Sorry for not being able the reasons behind the decision to discontinue            
    these transactions. I suppose at least part of the functionality was               
    integrated in SE38.           
    Best regards
    Erika

  • TS3376 I need to shut off Find My iPhone to restore it.  The email associated with find my iphone is no longer in use and I cancelled that apple is.  How do I change the Apple ID to my new one?  My new one is already working everywhere else on my phone an

    I need to shut off Find My iPhone to restore it.  The email associated with find my iphone is no longer in use and I cancelled that apple is.  How do I change the Apple ID to my new one?  My new one is already working everywhere else on my phone and iTune

    Are you trying to change the Apple ID associated with your iCloud account?  If so, go to Settings>iCloud, tap Delete Account, then sign back in with the new ID.  This deletes the account and your iCloud data from your device, but not from iCloud.  Provided you are signing back into the same account, your iCloud data will reappear on your device when you sign back in.
    To avoid losing photo stream photos, save them to your camera roll (if not already there) before deleting the account.  To do this, open your my photo stream album, tap Edit, tap the photos, tap Share, then tap Save to Camera Roll.

  • Refresh the object associated with a Row in a Data Control?

    I am using EclipseLink & have an issue with multiple updates of the same Row. During an update, a new instance of the entity is returned by the update method. The instance bound to the Row is not updated with this new version and subsequent updates fail with an optimistic locking exception since the entityVersion hasn't been updated.
    Question: Is it possible to refresh the instance associated with a data control Row? I can remove rows, create rows, but it is not apparent to me how to update a row. I am trying to avoid doing a full retrieve on the bound iterator.

    Hi!
    The issue here is, by my opinion, a gap between ADFm and EJB 3.0 in use-cases with large data sets. If you search this forum, you may find related thread by Pedja about problem of feasible "scrollable" af:table with large number of entities in EJB finder result list. Unfortunately, the ADFm "paged" fetching is in mismatch with EJB support for "paged" (or scrollable) results lists. The all results of EJB finder method are retrieved from data source, stored in memory (thus breaking the heap) and transferred to ADF datacontrol. Then, and only then, ADFm paged fetching and caching mechanisms are employed – but they are just cosmetics as the main data set is permanently stored in memory as List<?>. The workaround is, as Pedja discovered, to write completely proprietary TableCollectionModel which completely evades ADFm and is implemented by set of EJB Session methods for paged acces to datasource through TopLink and native database queries (enabling retrieval of particular range of rows instead a complete result set). Of course, this is very complex coding experience and I find it a not acceptable for efficient development of modern applications on ADF + EJB stack, especially as it brakes a technology independence promoted by EJB and EclipseLink and other standards-based technologies (as you have to use database-specific native query implementation for paged /scrollable access!).
    What I want to say is that I have feeling that ADF support for EJB is not complete in full extend and that ADFm is still much better suited for BCs then for EJBs. I hope that this will be solved in future as this issue may pose a significant issue on application development in enterprise-level area where it is supposed that we are dealing with BROWSING also a large data sets.
    Yes, I emphasize a BROWSING as I strongly oppose a dogmatic approach that SEARCHING is a solution for every use-case. From theory of information, the system SHOULD NOT limit the user in accessing ALL information (based on access rights, of course). So the idea that SEARCH forms should be used to bridge a architectural gap between a ADFm and EJB is not acceptable, as the search MAY limit the user in acquiring the information he (or she) is not able to describe in adequate manner based on search criteria offered by the developer. So, the developer may be responsible for misinformation of user, by limiting his access to information, jus for technology limitations of ADFm which forces a development of purely SEARCH-based functionalities.
    I hope that development team would appreciate and consider this remarks, and invest effort in closing (not bridging!) the gap between ADFm and EJB.
    Regards,
    PaKo

  • Query to find out the time used by an user for an application

    Hello All,
    I want to know the query to find out the whole time used by the user for an application. Please view the below data
    Employee:
    SNO EMP_ID EMP_NAME EMP_DATE LOGIN_TIME LOGOUT_TIME
    1 10 Visu 21-Nov-2010 06:30:00 07:30:00
    2 10 Visu 21-Nov-2010 06:40:00 07:20:00
    3 10 Visu 21-Nov-2010 06:50:00 07:50:00
    4 10 Visu 21-Nov-2010 07:30:00 08:30:00
    5 10 Visu 21-Nov-2010 09:30:00 10:30:00
    By checking the above data we can say that the total time Visu used the application is
    8.30 - 6.30 (From 1,2,3,4 records) = 2hrs
    10.30 - 9.30 (Based on 5th rec) = 1hr
    So the total time Visu used the application would be 3 hrs = 180 mins.
    Could you please help me in getting the result from that data using a query?

    odie_63 wrote:
    I think it may be solved with analytics too.
    with t1 as (
                select 1 sno,10 emp_id,'Visu' emp_name,'21-Nov-2010' emp_date,'06:30:00' login_time,'07:30:00' logout_time from dual union all
                select 2,10,'Visu','21-Nov-2010','06:40:00','07:20:00' from dual union all
                select 3,10,'Visu','21-Nov-2010','06:50:00','07:50:00' from dual union all
                select 4,10,'Visu','21-Nov-2010','07:30:00','08:30:00' from dual union all
                select 5,10,'Visu','21-Nov-2010','09:30:00','10:30:00' from dual
         t2 as (
                select  emp_id,
                        emp_name,
                        emp_date,
                        to_date(emp_date || login_time,'DD-MON-YYYYHH24:MI:SS') login_time,
                        to_date(emp_date || logout_time,'DD-MON-YYYYHH24:MI:SS') logout_time
                  from  t1
         t3 as (
                select  t2.*,
                        case
                          when login_time < max(logout_time) over(
                                                                  partition by emp_id,emp_date
                                                                  order by login_time
                                                                  rows between unbounded preceding
                                                                           and 1 preceding
                            then 0
                          else 1
                        end start_of_group
                  from  t2
         t4 as (
                select  t3.*,
                        sum(start_of_group) over(partition by emp_id,emp_date order by login_time) grp
                  from  t3
         t5 as (
                select  emp_id,
                        emp_date,
                        min(login_time) login_time,
                        max(logout_time) logout_time
                  from  t4
                  group by emp_id,
                           emp_date,
                           grp
    select  emp_id,
            numtodsinterval(sum(logout_time - login_time),'day') time_spent
      from  t5
      group by emp_id
      order by emp_id
        EMP_ID TIME_SPENT
            10 +000000000 03:00:00.000000000
    SQL> SY.

  • I can't access my iCloud account because my primary email is dead. I want to change my ID for the one associated with my current email address.

    I can't verify my icloud account because the email associated with it got deleted in a messup by the email provider. I made a new ID with another email address, but I don't seem to know how to set it as my iCloud account. Apple insist on asking me a password for my old account, I enter it, but it says it is incorrect. I have tried to fix it, and apple knows it is there as it appear on the list of apple ID's, but doesn't recognice the password and when I try to reset the password it gets me to my new account, which needs no resetting.
    All I want is to get rid of that old account and replace it with my new one in order to use the cloud, but it seems I am stuck with a non funtioning user ID. I have tried everything there is on this pages, but nothing works.
    Please, tell me, step by step, how can I remove the old user ID from the icloud account for good and replace it with my new ID on all my devices.
    Thank you.

    Welcome to the Apple community Yao.
    If you mean that Find My Phone is asking for a password to a different Apple ID to your current Apple ID.
    This feature has been introduced to make stolen phones useless to those that have stolen them.
    However it can also arise when the user has changed their Apple ID details with Apple and not made the same changes to their iCloud account/Find My Phone on their device before upgrading to iOS 7, or if you restore from a previous back up made before you changed your details.
    The only solution is to change your Apple ID back to its previous state with Apple at My Apple ID using your current password, you don’t need access to this address if it’s previously been used with your Apple ID, once you have saved these details enter the password as requested on your device and then turn off "find my phone" and delete the account from your device.
    You should then change your Apple ID back to its current state, save it once again and then log back in using your current Apple ID. Finally, turn "find my phone" back on once again.
    This article provides more information about Activation Lock.

  • Lync 2013 Error - Certificate could not be published in the database associated with User Services Cluster

    Hi Lync gurus,
    I have a weird issue:
    Just installed a Lync Standard 2013. 
    Everything works except I keep getting this error in Log: every 30 minute or so.
    First an Error:  Event 47067
    A server did not respond to HTTP request
    Server lyncserver.domain.local did not respond to HTTP request PublishCertRequest targeted at
    https://lyncserver.domain.local:444/LiveServer/UserPinService.
    Cause: Server might be down or the network path between servers might not be properly configured.
    Resolution:
    Please ensure that the server can be connected on the target port using telnet and then re-try.
    Then I get a Warning: Event 47068
    GetAndPublish web service failed.
    Certificate could not be published in the database associated with User Services Cluster [lyncserver.domain.local ]. Request Details - Entity: [[email protected]], Device Id: [6BB30A3E-2923-553A-8E5F-0B2FB2CEA330], Authenticated User: [sip:[email protected]].
    Additional Context: [Publish_Failure: OtherFailure;HttpNoResponse:"lyncserver.domain.local "]
    Cause: This could be due to network connectivity issues with the remote server, or because the database is down.
    Resolution:
    Please ensure that the user services is reachable and the database is up and running.
    Thanks for any help

    Please check you can telnet port 443 and port 444 on Lync Front End Serve from client.
    Try to regenerate a new certificate for Lync Front End Server.
    Check all the services on Lync Front End Server are started.
    Check the option “Enable all purposes for this certificate” is checked for the trusted root CA certificate.
    For the detailed steps:
    Run MMC--Add\Remove Snap-ins--certificates--Local Computer--Trusted Root Certificate Authorities--Certificates, find the Root CA certificate you installed--Properties--General, check the "Enable all purposes for this certificate".
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Can't log in message "what is the username associated with this smartphone​"

    When I attempt to login to app world, I enter my email address and pw, and the it gives me a popup for - "what is the username associated with this smartphone".  How do I find out what to enter here?  (I don't remember what I may have used in the past).  
    Also, how can I be sure that I am using the right email address to login?  I've tried my other emails and I get stopped before this screen since it doesn't recognize the email.
    THanks for your help

    How can you do a security wipe if you cannot get past the blue BlackBerry ID login page?

  • Need query to find out the sum till a period

    Hi,
    I need to write one query to find out the cumulative sum of raw_cost of table pa_budget_lines till the specified period, I tried to do this by analytical function, but that is not working in Report 10g. Can anybody help me in this.
    Thanks

    not familiar with report but could you do something like this
    with t as
      select 1 grp, 10 * level the_cost, add_months (sysdate,  level) effective_dt from dual connect by  level < 11 union all
      select 2 grp, 5 * level the_cost, add_months (sysdate,  level) effective_dt from dual connect by  level < 11
    input as
      ( select null grp, null the_cost, null running_total,  v_eff_dt effective_dt   from dual)
    select * from(
    select t.grp, t.the_cost, sum(t.the_cost) over (partition by t.grp order by t.effective_dt) running_total, t.effective_dt,
           lead(t.effective_dt) over (partition by t.grp order by t.effective_dt) next_effective_dt,
           input.effective_dt  inp_eff_dt
    from t, input
    where inp_eff_dt between effective_dt and next_effective_dtv_eff_dt would be the input date you are interested in

  • How to retrieve the text associated with a link annotation

    Hello
    In Acrobat, I created a link using the Select tool. I selected the text which I wanted to create a link.
    After with a C++ plug-in, I want to retrieve the text associated with a link annotation. Which is the function which makes it possible to find the text?
    Regards
    David G

    ok thanks for ur reply now my question regarding about ur first three message..
    U told using quad we finding their rectangle dimensions and then compare that with link annatation title. So then we retrieve link annataion right..
    Ya i already done like u told.. But i have one problem so plz solve dis..
    Problem--- see my code below
    for(int nWordCounter = 0; nWordCounter < nWordCount; nWordCounter++ )
    pdNWord = PDWordFinderGetNthWord(pdWordFinder, nWordCounter );
    PDWordGetNthQuad(pdNWord, nWordCounter, &quad);
    blh = ASFixedRoundToInt32(quad.bl.h);
    blv = ASFixedRoundToInt32(quad.bl.v);
    brh = ASFixedRoundToInt32(quad.br.h);
    brv = ASFixedRoundToInt32(quad.br.v);
    tlh = ASFixedRoundToInt32(quad.tl.h);
    tlv = ASFixedRoundToInt32(quad.tl.v);
    trh = ASFixedRoundToInt32(quad.tr.h);
    trv = ASFixedRoundToInt32(quad.tr.v);
    char *a = (char*)Asmalloc(20);
    sprintf(a, "%d %d %d %d %d %d %d %d", blh, blv, brh, brv, tlh, tlv, trh, trv);
    In dis code, the quad values of blh, blv, brh, brv, tlh, tlv, trh and trv are same for all words(pdNWord). so pls help me for dis proble..
    thanks in advance
    Raghu N

  • How to know the forms associated with a specific transaction

    Hi..
    Can anyone please suggest me how to know the forms associated with a specific transaction.
    For Example In Finance module.
    I came to know from SDN the form associated with F.64 as F140_acc_stat_01.
    But i need the steps how to track the form name.
    Regards..
    Vinodh

    Hi,
    1.We cann't find the forms associated with a specific transaction.
    2.But,based on requirement we can go for the form selection.
    3.Suppose in account payable and receivable , we have different forms like customer statement, Dunning and Chek form etc.
    4.The functional people can find the form name in SPRO and give the details of the requirement.
      5.If u have the output type or formname u can go for the TNAPR and  TTXFP tables and u can search for the respect object.
    6.For FI u can directly find in the SPRO, by searching it with the form name.
    Regards,
    If helpful reward with points(Don't forget).

  • Unable to find top level site associated with project site

    Hello!
    SP and PS 2013. I faced the problem with one project and its site synchronization.
    When user published this project at 1st time, the site wasn’t created (there were some errors), but user didn’t notice that. So, after few days when he couldn’t open
    the site, he ask me for help.
    I did my usual operations in such cases – I open “Connected sites” and create the site myself.
    Earlier there was not any problem with that. But now this project experiences some troubles with permissions sync for
    it’s site – there is no synchronization.
    I connected this problem with November CU, which has been installed couple of weeks ago.
    I have read about the same problems after upgrade, so I want to emphasize that site was created on the root site collection (Project Web App) and it is not a subsite
    of another project site.
    If there is no solution until next update, maybe there is some way to turn off permission synchronization only for this site?
    Any help will be appriciated!!!
    Kate
    Queue error:
    GeneralQueueJobFailed
    (26000) - PreparePSProjectPermissionSynchronization.PreparePSProjectPermissionSynchronizationMessage.
    Подробные
    сведения: id='26000' name='GeneralQueueJobFailed'
    uid='231b2c2c-fc8b-e411-942d-0050569d3fac' JobUID='79031b2c-fc8b-e411-942d-0050569d3fac' ComputerName='7d8a1473-f6a8-4a8e-b7fb-1bdd868c7e20' GroupType='PreparePSProjectPermissionSynchronization' MessageType='PreparePSProjectPermissionSynchronizationMessage'
    MessageId='1' Stage='' CorrelationUID='a923d99c-8e88-c0e8-c7e2-08a980da8c96'.
    Для получения дополнительных сведений проверьте журналы ULS на компьютере
    7d8a1473-f6a8-4a8e-b7fb-1bdd868c7e20 для записей с JobUID
    79031b2c-fc8b-e411-942d-0050569d3fac
    In logs:
    12/25/2014 12:42:45.85        Microsoft.Office.Project.Server (0x07E4)        0x5E10           
    Project Server                            Sharepoint Integration           
    amed3 Exception        Unable to find top level site associated with project site Site1 System.IO.FileNotFoundException: <nativehr>0x80070002</nativehr><nativestack></nativestack>Нет
    веб-сайта
    с
    именем "/Site1".     at Microsoft.SharePoint.Library.SPRequestInternalClass.OpenWebInternal(String
    bstrUrl, Guid& pguidID, DateTime& pdtTimeCreated, String& pbstrRequestAccessEmail, UInt32& pwebVersion, String& pbstrServerRelativeUrl, UInt32& pnLanguage, UInt32& pnLocale, String& pbstrDefaultTheme, String& pbstrDefaultThemeCSSUrl,
    String& pbstrThemedCssFolderUrl, String& pbstrAlternateCSSUrl, String& pbstrCustomizedCssFileList, String& pbstrCustomJSUrl, String& pbstrAlternateHeaderUrl, String& pbstrMasterUrl, String& pbstrCustomMasterUrl, String& pbstrSiteLogoUrl,
    String& pbstrSi...   2a29d99c-9ecc-c0e8-c7e2-037970debfdf

    Hi Kate_S,
    since you are already aware that its a known issue caused Sep 2014 CU i believe, and an official fix has yet to release.
    but i would like to clarify here that this issue doesn't have anything to do with project site creation, because sync queue job while creating project site fails but does not block other queues activities. so your project site should be created in a normal
    way.
    and until official fix will arrive, 1 of the option is to change your project sites to provision under root site collection instead of PWA site collection. But be aware that this will fix sync issue only for new project sites.
    Go to Central Administratio -> PWA settings -> open site provision settings menu and made changes.
    2nd option is, since Project Owner always get access to Project site, to teach your project owners to include project team members manually to project site permission group to allow them to have access. this option can help you with both new and existing
    project sites, and i personally prefer this and did the same for my affected customers.
    Hope these 2 options will help you. 
    Khurram Jamshed - MBA, PMP, MCTS, MCITP (
    Blog, Twitter, Linkedin )
    If you found this post helpful, please “Vote as Helpful”. If it answered your question, please “Mark as Answer”.

Maybe you are looking for

  • Calling a Procedure which has Array of Objects as arguments (from BPEL)

    Hi, I wanted to pass multiple records as arguments to a stored procedure from BPEL. We created stored procedure which takes array of Objects as arguments. I invoked it from BPEL. It was successfully compiled and deployed. At runtime it is throwing fo

  • Declaring variables or constants at the start of a class

    Hi, I have a question. I am in an introductory java course and my instructor says that anything that is declared outside of a method (ie. very beginning of a class) must be a final constant. She says that I must use public static final int EXAMPLE_CO

  • Sequential playback of audio files

    Need help in implementing sequential playback of sampled audio files. The task is a simple word-based speech generation; got a number of audio files and a need to play the certain ones in the certain order after clicking the button with a possibility

  • Anmeldeformulare, wie erstellen?

    Hallo Leute, ich muss einen Vorschlag für eine Online-Anmeldung machen und würde dies gern mit einem PDF-Formular machen, das die eingetragenen Daten direkt an eine Tabelle auf "meinem" Server sendet, so dass ich 1. Eine Mail bekomme "ein weiterer Te

  • Budget setup in 2007B Ramp-Up

    Hi All..., Budget setup in 2007B Ramp-Up 1.when i am doing the budget setup i am following all the steps completely but in 2005B it is showing the warning msg/Block the deviation as our about to exceed the budget. this msz i am not geeting in 2007B,s