Userfull queries from forum

select a.tablespace_name,
ceil(sum(a.tots)/1024/1024) "AllocatedSize(MB)", round((sum(a.tots)-sum(a.sumb))/1024/1024,1) "Used(MB)",
round(((sum(a.tots)-sum(a.sumb))/sum(a.tots))*100,1) "Used%", round(sum(a.sumb)/1024/1024,1) "Free(MB)",
round(sum(a.sumb)*100/sum(a.tots),1) "Free%", round(sum(a.largest)/1024/1024,1) "LargestFreeSize(MB)",
sum(a.chunks) "ChunksFree"
from
(select tablespace_name, 0 tots,sum(bytes) sumb, max(bytes) largest, count (*) chunks
from dba_free_space a
group by tablespace_name
union
select tablespace_name, sum(bytes) tots, 0, 0, 0
from dba_data_files
group by tablespace_name
union
select tablespace_name, sum(bytes), 0,0,0 from dba_temp_files
group by tablespace_name) a, dba_tablespaces b
where a.tablespace_name = b.tablespace_name
group by a.tablespace_name
order by 1;
select file_name,tablespace_name,bytes/1024/1024,STATUS, autoextensible from dba_data_files where tablespace_name = 'PSAPSR3';
select name from v$database;
ALTER SYSTEM FLUSH SHARED POOL;
select status, logins from v$instance;
Schema size:
SELECT s.owner,SUM (s.BYTES) / (1024 * 1024 * 1024) SIZE_IN_GB FROM dba_segments s GROUP BY s.owner;
select owner,object_type, count(*),status from dba_objects GROUP BY OWNER, OBJECT_TYPE,status where owner='BTDBA'
SET SERVEROUTPUT ON
SET LINESIZE 1000
SET LONG 999999
SET PAGESIZE 1000
SET FEEDBACK OFF
SELECT DBMS_METADATA.GET_DDL('USER','IPDBA') from dual;
SELECT DBMS_METADATA.GET_GRANTED_DDL('ROLE_GRANT','IPDBA') FROM DUAL;
SELECT DBMS_METADATA.GET_GRANTED_DDL('SYSTEM_GRANT','IPDBA') FROM DUAL;
SELECT DBMS_METADATA.GET_GRANTED_DDL('OBJECT_GRANT','IPDBA') FROM DUAL;
select dbms_metadata.get_granted_ddl('TABLESPACE_QUOTA','IPDBA') FROM DUAL;
SELECT * FROM (SELECT OWNER, SEGMENT_NAME, BYTES/1024/1024 SIZE_MB FROM DBA_SEGMENTS WHERE SEGMENT_TYPE = 'TABLE' ORDER BY BYTES/1024/1024 DESC ) WHERE ROWNUM <= 20;
RMAN:
select
SESSION_KEY, INPUT_TYPE, STATUS,
to_char(START_TIME,'mm/dd/yy hh24:mi') start_time,
to_char(END_TIME,'mm/dd/yy hh24:mi') end_time,
round((end_time-start_time)*1440,2) "Minutes"
from V$RMAN_BACKUP_JOB_DETAILS
order by session_key desc;

First i would Thank you for your efforts :) but it would be better to format your code and let people read it with simple way . ;)

Similar Messages

  • How to copy queries from 1 Query folder to another query folder in TFS 2013 using C # programmatically ?

    Hi ,
             I'm trying to copy a bunch of queries from 1 folder in "Shared queries" to another folder within "Shared Queries" using C#.
             I'm looking to do something like this
             foreach(query q in folderx )
                            foldery.query = folderx.query;
              I have been trying to use the queryfolder and its properties but not able to find the correct class/property/function to use. I have seen this link http://bzbetty.blogspot.in/2012/12/tfs-automation-automatically-creating.html
    but here they are creating new queries in the new folder rather than copying it .

    Hi Arun,
    I am trying to involve someone to further look at this issue. There might be some time delay. Appreciate your patience and thanks for your understanding.
    And you can check if the tool that made by Dan helps, check the link:
    http://dhvik.blogspot.in/2009/06/handling-work-item-queries.html
    Best regards,
    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.
    Click
    HERE to participate the survey.

  • Calling MS Access queries from Java

    Anyone have any idea if it's possible to call MS Access queries from Java? I have a client who is insistent on keeping MS Access for their database, and it'd be nice if I didn't have to receate all their queries in Java.
    I've successfully connected to and queried the Access MDB, but I need to know if it's even possible to execute the stored MS Access queries they have setup in the database.
    Thanks!

    See reply 6 in the following....
    http://forum.java.sun.com/thread.jspa?forumID=48&threadID=203818

  • Run-time Error '429' when copying queries from one userid to a new userid

    Hello,
    One of the users is having an issue when copying queries from an old user id to a new user id.
    She is getting the visual basic run-time error '429' - active x component can't create object while copying.
    This is not consistent.  From what I can tell, this does not appear to be a bex query designer issue but something in microsoft.
    Please let me know either way. I have found minimal posts on this issue.  Most that I have found are outside the sdn forum and talk about registry issues?
    Thank you,
    Lynda

    According to your error message, your onClick function declaration line closes the parenthesis twice... you may have a typo in what you actually put in the file versus what you think you put...
    function onClick()event:MouseEvent):void{

  • Various Queries from a new learner of SAP

    Hello Gurus,
    I have some queries. I am very new to SAP and just trying to explore different things. I would be grateful if I can get some help from the experts like you. These queries may sound silly but I really need to learn these things.
    a. If you could provide me with some documents for configuration of US taxation.
    b. Explanation about COBRA
    c. what does it mean when someone says " I have maintained time evaluation schema TM04 for negative recording"?
    d. steps for configuration of off-cycle payroll activities.
    e.what does it mean when some one says "I have integrated with personnel administration using the reports RHINTE20, RHINTE30?
    f. if you could provide me with some documents for ESS configuration.
    g. steps for creating line layout of remuneration statement.
    h. How can we maintain "date types for date monitoring, date specifications, infotypes for hire date, service dates and terminatin date"?
    i. How can we configure time types, processing types and time wage type selection rules?
    j. what are processing classes?
    k. steps for configuring data entry profiles for CATS for employees entering time data into CATS
    l. What are "remittance rule, order types, adjustment model for the disposable net?
    j. How can be creat and assign forms to letter types in payroll?
    k. What are  inbound and outbund interfaces in Benefits?
    l.  what are vesting and investing in benefits?
    m. how can we customize benefits and payroll integration?
    I know these are too much questions for a single time; but I just got excited when I came to know about this website. This is the first time I am exploring this website. I didn't know I can learn from forums where there are so many experts to help you.
    Thank you all in advance!
    Linda

    it's like a 400 level class.

  • Errors while copying queries from Infoset to DSO in BI 7.0. Why

    Hi All,
    I am trying to copy queries from Infoset to DSO in BI 7.0.
    Message displayed after entering the data target names in Source Infocube (Infoset) & Target Infocube (DSO).
    : Errors when reading InfoObjects for InfoCube (Infoset).
    My Infoset has 2 queries.
    I need to copy only one query to the DSO which is part of the infoset. How can we achieve this.
    Please explain.
    Thanks

    Hi Murali,
    who said the target is different.
    The target is different in the sense, source is an Infoset & Target is an DSO.
    This DSO is a part of the above Infoset.
    RSZC works here but its giving errors as mentioned above.
    Regenerate in the sense, u mean i need to create the same again on DSO.
    Is there any other way.
    If providing some solution, let it be clear.
    Thanks.

  • Moving multiple queries from one category to another in QM

    Hi All,
    Is there is any way of moving multiple queries from one category to another in the query manager?
    Or is the only way of doing it by saving each one individually into a different category.
    Any ideas ?
    Regards,
    Rakesh N

    Hi Rakesh,
    The query manager has limited function compare with normal file management applications. Under current design, you have to do this one by one. You just need to make sure move the smaller amount of queries to large category. Category name can be changed easily.
    Thanks,
    Gordon

  • Help required on extracting information from Forum

    Hi All,
    We have a requirement for a KM initiative to extract below information from Forum
    1)User's Q&A Threads from Oracle Forums.
    2)User's Tag [From Aria] related threads from Oracle Forums
    Can some please provide some input/pointers on how data can be extracted from Forums programatically. Like RSS/Web Services or remote API calls?.
    Thanks in advance for your help,time and effort.
    Best Regards,
    Praveen

    BluShadow wrote:
    praveenb5 wrote:
    Hi All,
    We have a requirement for a KM initiative to extract below information from Forum
    1)User's Q&A Threads from Oracle Forums.
    2)User's Tag [From Aria] related threads from Oracle Forums
    Can some please provide some input/pointers on how data can be extracted from Forums programatically. Like RSS/Web Services or remote API calls?.
    Thanks in advance for your help,time and effort.
    Best Regards,
    PraveenNot quite sure what you're trying to achieve but it sounds like a breach of Oracle's Terms of Use for this site:
    http://www.oracle.com/html/terms.html
    >
    4. Use of Community Services
    Community Services are provided as a convenience to users and Oracle is not obligated to provide any technical support for, or participate in, Community Services. While Community Services may include information regarding Oracle products and services, including information from Oracle employees, they are not an official customer support channel for Oracle.
    You may use Community Services subject to the following: (a) Community Services may be used solely for your personal, informational, noncommercial purposes; (b) Content provided on or through Community Services may not be redistributed; and (c) personal data about other users may not be stored or collected except where expressly authorized by Oracle.
    5. Reservation of Rights
    The Site and Content provided on or through the Site are the intellectual property and copyrighted works of Oracle or a third party provider. All rights, title and interest not expressly granted with respect to the Site and Content provided on or through the Site are reserved. All Content is provided on an "As Is" and "As Available" basis, and Oracle reserves the right to terminate the permissions granted to you in Sections 2, 3 and 4 above and your use of the Content at any time.
    >
    (my bold)Would that really apply to someone downloading threads regarding users in their own company? How is that different than setting watches? Is this really redistribution? (Now that I'm thinking about it, maybe yes... the line between archiving and redistribution blurs with a knowledge base.)
    The fact that this is all available to google makes a claim of reserved interest in a boilerplate TOS kind of suspect.
    Each post is the intellectual property of the poster, who would be the "third party provider," right? Most companies I know of specify that any use of company owned stuff belongs to the company, so if someone is posting from a company, that company makes the decision on whether it can keep posts, not Oracle. This is obviously a gray area, varying by place and time and maybe even content. SSO really warps this, too.
    Of course, if the OP means keeping other users content in their own knowledgebase, that seems clearly prohibited. [So do not dare to click here|http://lmgtfy.com/?q=blushadow+site%3Aforums.oracle.com]! ;-)

  • How to get answers from forum

    Hi,
    Just wondering, how to get answer from forum.  Some time, for simple question, I don't see anybody replying. 
    Is there any other platform we get define answer or is there any support who can connect to our system suggest resolution?
    Thanks,
    -Anand

    anand_gp wrote:
    Just wondering, how to get answer from forum.  Some time, for simple question, I don't see anybody replying.
    If it's really a simple question, then most people probably think the poster can get the answer from the documentation, or by searching the forum for previous answers.
    However, most of the time, it's not that the question actually is simple. It's usually a question that is being asked simplistically, making it nearly impossible to answer (or often even understand). To get an effective response to a question, it needs to be the right question, asked in the right way.
    Describe the the problem/requirement (not the attempted solutions) in detail:
    How to ask questions
    Re: 2. How do I ask a question on the forums?
    Include as much relevant information with the question as possible, starting with:
    APEX version
    DB version, edition and host OS
    Web server architecture (EPG, OHS or APEX listener), server platform, and host OS
    Browser(s)/version(s) used
    UI/Theme
    Templates
    Region type (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. To get a detailed answer then it's appropriate for the questioner to take on a significant part of the effort by reproducing the problem on apex.oracle.com before asking for assistance with specific issues, which can then be seen at first hand in a real APEX environment.

  • Reading Queries from within planning functions

    Hi all,
    Does anyone of you have experience with the following thrilling task: We want to read specific queries from within a BPS function, handing over parameters like company code and profit center, retrieving the query results and writing them into a cube.
    Is this feasible and would anyone know about the function modules to use?
    Many thanks in advance,
    Andreas Krüger

    Andreas,
    I found a soultion for your problem.
    I tried at in my system and it works fine.
    Pl do the following:
    1. Have a multiarea with actual and plan areas or have one area but make sure you load data from actual to plan.
    2. In the level, select all the charactetirtics and key figures that you wish to see in the report.
    3. Make a layout and configure it accordingly. If header has mutiple values, make sure you have a variable on that.
    4.Make a folder and execute it.
    5. When the folder is opened, all the data in the cube will be displayed in the change mode.
    6. View the date and change them if you wish, save.
    Let me know if you ned any help.
    Ravi Thothadri

  • Tracing queries from abap to a custom database via dblink

    I' m connecting to a database by dblink (name magiap).
    I would like to know if somewhere I can trace all the queries from abap to oracle in this specific session , to dbs ='MAGIAP'.
    For istance, i would like that the query "SELECT "DESPARTY1"
    into :v_DESPARTY1
    FROM "T040PARTY"
    WHERE "CODPARTY" = '305142941' will be stored some where (in a file??).
    I would like that parameters - w_CODPARTY- will be substituted and stored in the trace file with the value (305142941), as shown in the previous
    Here is the piece of code ..(a very short example of course)..
    DATA : dbs LIKE dbcon-con_name,
    v_CODPARTY(15),
    v_DESPARTY1(60).
    data : w_CODPARTY(15) value '305142941'.
    dbs = 'MAGIAP'.
    TRY.
    EXEC SQL.
    CONNECT TO :dbs
    ENDEXEC.
    IF sy-subrc <> 0.
    EXEC SQL.
    CONNECT TO :dbs
    ENDEXEC.
    ENDIF.
    IF sy-subrc <> 0.
    * RAISE err_conn_aea.
    ENDIF.
    EXEC SQL.
    set connection :dbs
    ENDEXEC.
    EXEC SQL .
    SELECT "DESPARTY1"
    into :v_DESPARTY1
    FROM "T040PARTY"
    WHERE "CODPARTY" = :w_CODPARTY
    ENDEXEC.
    IF sy-subrc NE 0.
    * rc = 4.
    ENDIF.
    EXEC SQL.
    DISCONNECT :dbs
    ENDEXEC.
    ENDTRY.

    Hi Silvana,
    The SQL statements have been stored in the SQL Cursor Cache, on the database and they will be available until they have been invalidated. You can access the statements at the 'MAGIAP' side and see the last executed queries in the cache.
    You can access bind variables by query on the V$SQL_BIND_CAPTURE table, also.
    On the other hand, you can activate the trace by the statement, below;
    ALTER SYSTEM SET sql_trace = true SCOPE=MEMORY;
    Then, the sql statements will be available in the usertrace file. Please note that you should execute and investigate all the statements that I noted above, at the remote side. Plus, as far as I know that it is not able to distinguish the records by the "dblink name". You should check all the statements and try to figure out what queries have been executed remotely.
    Best regards,
    Orkun Gedik

  • Trace queries from abap to a custom oracle database via dblink

    I' m
    connecting to a database by dblink (name magiap).
    I
    would like to know if somewhere I can trace all the queries from abap to oracle
    in this specific session , to dbs ='MAGIAP'.
    For istance, i would like that the query
    "SELECT "DESPARTY1"
    into :v_DESPARTY1
    FROM "T040PARTY"
    WHERE "CODPARTY" = '305142941' will
    be stored some where (in a file??).
    I would like that parameters - w_CODPARTY- will be substituted and stored in the trace
    file with the value (305142941), as shown in the previous
    Here
    is the piece of code ..(a very short example of course)..
    DATA : dbs LIKE dbcon-con_name,
    v_CODPARTY(15),
    v_DESPARTY1(60).
    data : w_CODPARTY(15) value '305142941'.
    dbs = 'MAGIAP'.
    TRY.
    EXEC SQL.
    CONNECT TO :dbs
    ENDEXEC.
    IF sy-subrc <> 0.
    EXEC SQL.
    CONNECT TO :dbs
    ENDEXEC.
    ENDIF.
    IF sy-subrc <> 0.
    * RAISE err_conn_aea.
    ENDIF.
    EXEC SQL.
    set connection :dbs
    ENDEXEC.
    EXEC SQL .
    SELECT "DESPARTY1"
    into :v_DESPARTY1
    FROM "T040PARTY"
    WHERE "CODPARTY" =
    :w_CODPARTY
    ENDEXEC.
    IF sy-subrc NE 0.
    * rc = 4.
    ENDIF.
    EXEC SQL.
    DISCONNECT :dbs
    ENDEXEC.
    ENDTRY.

    Hi Silvana,
    The SQL statements have been stored in the SQL Cursor Cache, on the database and they will be available until they have been invalidated. You can access the statements at the 'MAGIAP' side and see the last executed queries in the cache.
    You can access bind variables by query on the V$SQL_BIND_CAPTURE table, also.
    On the other hand, you can activate the trace by the statement, below;
    ALTER SYSTEM SET sql_trace = true SCOPE=MEMORY;
    Then, the sql statements will be available in the usertrace file. Please note that you should execute and investigate all the statements that I noted above, at the remote side. Plus, as far as I know that it is not able to distinguish the records by the "dblink name". You should check all the statements and try to figure out what queries have been executed remotely.
    Best regards,
    Orkun Gedik

  • SQL queries from a Citadel database

    We are retrieving data with third-party package SQL queries from a Citadel database. Certain queries for some object members will not return data, but the SQL search application software returns an "error". An analysis of the error from the SQL end does not find problem on SQL side. I suspect corruption of Citadel database. The link to database is good, as most tags do return a value as expected. 
    This problem occurred at the time of re-location of the database to a replacement computer.  Any ideas on how to fix such a problem?

    Can you give an example of the "bad" SQL statement and a good one?
    Ryan Shi
    National Instruments

  • How to detach/delete queries from workbooks

    One of our users has a huge workbook with over 200 queries. He wanted to remove part of the queries but instead of deleting the queries he removed the excel tabpages with the queries as a result of wich the connection with the queries is still there.
    Is there a way to remove the connected queries without having to remove all queries ?
    Refreshing all queries is not an option.
    I also tried to remove the records in table RSRWORKBOOK but this also didn't remove the connection, after opening and saving the workbook in Bex, the removed records in RSRWORKBOOK appeared in the table again.

    Hi Tine.
    Try to add this VB code to the WB:
    <i>Sheets("SAPBEXqueries").visible = True
    To make it quite invisible again, the command is:
    Sheets("SAPBEXqueries").visible = xlSheetVeryHidden</i>
    This makes the sheets with the information used in the workbook visible (you will find the queries in sheet 1). You can try to delete the queries from here. I don't know if it works, but just an idea.
    Hope it helps.
    BR
    Stefan

  • Upgrading queries from 3.5 to Bi 7.0

    Hi Gurus
    If we are involved in a project where they are upgrading queries from 3.5 to 7.0 version what kind issues may occur.  Please try to help me out .........
    Naga

    Hi Ajax
    <i>With NW04S GUI
    -Opening Existing 3.x queries in BI 7.0 query designer errors out
    Compiler Error?
    -Adding button to a report is not working with Bex Analyzer. Is there a fix already available or something to do with the Gui?
    - Adding dropdown boxes to bex reports is not working when a value is selected from the dropdown box. Is there a fix available or something to do with the Gui?</i>
    <i><b>Can you tell me how did you solve these isues WITH NW04S GUI</b></i>
    Is it WITH 7.0 FRONT END or 3.5 Front end?
    <b>With 3.5 Front end</b>
    <i>- 2 Structures in a query generates dump
    - Variants are missing. Ran a program RSR_VARIANT_XPRA, it dumped.
    - Report to Report Interface has shown error message. 0Employee_zch_hrdt can not be uniquely assigner.
    - Change of currency translation settings during runtime gives error</i>
    I understand when variants are missing you have ran a program and hence that problem got fixed. Can you tell me where to run this program?
    Same way can you tell me how to resolve other issues?
    You made my life easier by sending some real time scenarios. I was unable to defend my resume. This really helps if you tell me how to solve some issues. Thank you very much
    Regards
    Naga

Maybe you are looking for

  • Cannot send email from Verizon to a specific domain using the web UI

    I'm trying to send an email to a specific address on a domain I own from a Verizon account using the web UI. Whenever I click send, a popup appears saying "Your e-mail contains the following invalid e-mail addresses:" followed by the email address. I

  • DVI to Video - TV not recognized!

    hi excuse me for adding this post since the subject above came up in another post of mine with a different subject line... so i have hooked up a cinema display and added apples DVI-Video adapter to the second output of my NV7800GT card. then, when i

  • Receiver FCC Structure For Header and Trailer

    Hi Guys , I need to go for receiver FCC for header and trailer  in PI .How the FCC in communication channel needs to be configured if I am taking a separate node for header and trailer in mapping .Output of the file should be as the file attached. Th

  • Significance of release creation profile

    Hi all, Can anyone explain with example the use and significance of release creation profiles in outline aggrement Thnks Gan

  • Cannot print any Microsoft product

    No Microsoft office product will print and I'm getting this message: "Word cannot print due to a problem with a current printer. Make sure you have a printer selected in Print Center. You may need to print again or adjust your printer settings." This