Regarding database

Dear gurus
i want to collects statatics of my full database in 11gr2.Guys please tell me a method to collect whole database statistics as we have an option to collect schema stats
through dbms gather stats
Please tell similar option.
rgds

user11221081 wrote:
thanks all
i have gathered through command
begin
dbms_stats.gather_database_stats(options=.'GATHER AUTO);
end;
pl /sql runned successfully
now how can i check these stats...how to viewHi
you check by using the dba_tables or DBA_OBJECT_TABLES ,DBA_TAB_STATISTICS , DBA_INDEXES views and others .
For example
select table_name,owner, last_analyzed from dba_tables where owner='XXXX' and table_name='XXXXXXX' ;--neeraj                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • Query regarding database access segregation using os authentication in windows environment

    Hi ,
    I have a query regarding database access segragation using os authentication (like sqlplus "/ as sysdba") in windows environment.Let me briefly explain my requirement:-
    Suppose you have two DBA`s viz DBA1 and DBA2 and 4 databases resideds in a windows server say A,B,C & D.Now I want to set up such a way if DBA1 logs into the server then he can login to database A and B only using OS authentication and DBA2 can login to database C and D only using OS authentication.
    Please let me know how to do setup for this requirement.
    Database version is 11.2.0.3

    1494629, I am not a Windows person but if there is any way to do this I suspect some additional information is necessary:
    Are the DBA users members of the Administrators Group ?
    Do all 4 database share the same $ORACLE_HOME ?
    I suspect if either answer above is yes then this is not possible, but like I said I am not a Windows person.  I would just ask for two servers and the associated licensing to be acquired.  The requirement to spend money to do something management wants usually elimanates the request in my world.
    HTH -- Mark D Powell --

  • Regarding database table to infotype

    hi experts,
                    sorry i m going to ask a typical question i m working on hr-abap ,i have developed a module pool in which the database table is updating with some data,what i want that after updation i want to store that data in a infotype,,so plz tell me how to create infotype and how to store the data into it from a database table...thnx in advance.i know it is a configuration part but rt nw my company doesnt have hr consultant.....plz help me.

    Hi
    <b>Creating an Infotype</b>
    Using the TCODE PM01 you can create an Infotype. As per SAP standard you can use only 9000 series. The below procedure explains you how to create an Infotype.
    1.Go the transaction PM01 and give the Infotype Number lets say 9999 and press  button. It will ask you a messaging window,
    2.Press create button to continue further. It will take you to create the structure.
    3.Give the components and SAVE & ACTIVATE the structure and come back.
    An Infotype attributes window will appear; you create a new entry with the Infotype No and give the appropriate description.
    and give the data and press ENTER key. The Technical data will appear automatically, here you have to maintain the Single screen as ‘2000’ and List screen as ‘3000’ and then SAVE the info and press BACK button, you will reach the main screen.
    After that using the Menu option Infotype 
    4.Generate the structure, dialog module and include. 
    Click the  button from application tool bar to check the Infotype attributes. Select the 9999 Infotype and check the data.
    If every thing is error free, you can use the Infotype using PA30 transaction.
    5.Use the Create button you can create New Entries for the Infotype.
    You can view the entries in table PA9999 using the TCODE SE11/SE16.
    Validating Code in Module pool: - If you want to validate the user inputs,
    You need to write the validate code procedure in the module program MPXXXX00 screen 2000 (here XXXX is user Infotype, in our case 9999).
    In PAI.
      MODULE P9999.
      MODULE HIDDEN_DATA.
      FIELD P9909-PRATE MODULE PRATE. “ Create a module routines. 
    In PBO
      MODULE PRE_INPUT_CHECKS.
            input-checks:                                               *
      insert check modules here:
      CHAIN.
       FIELD P9909-PRATE MODULE PRATE.
      ENDCHAIN.
    Double click on PRATE it will ask you the include name, SELECT the include MP999930 from the input window.
    *&      Module  PRATE  OUTPUT
          text
    MODULE prate OUTPUT.
      IF NOT p9909-prate IS INITIAL.
        PERFORM check_prate.
      ENDIF.
    ENDMODULE.                 " PRATE9  OUTPUT
    Again check_prate subroutine, write down the below code in MP999940 include.
    *&      Form  check_prate
    FORM check_prate .
    CLEAR zprate_t.
      SELECT SINGLE * FROM zprate_t WHERE prate = p9909-prate.
      IF sy-subrc > 0.
        CLEAR zprate_t.
        MESSAGE e016(rp) WITH 'Entry does not exist in ZPRATE_T table'.
      ENDIF.
    ENDFORM.                    " check_prate
    After that check the module, if it is error free then ACTIVATE the same. You can check the Infotype validations using the PA30 transaction.
    Regards
    Raj

  • Query regarding database patching

    Hi ,
    I am on Oracle 11G and Solaris SPARC 64-bit server.
    The server admin have applied the oracle CPU that was released on April 18,2011.
    I have the path to the new oracle home now.
    Currently my oracle home is 11.1.0.7.P1 and the new oracle home is
    11.1.0.7.P2.
    Now the practice that i have been following to change my oracle home(Patching) is :
    1. Shutdown db
    2. Change oratab with new home:Y
    3. Change my .profile for $ORACLE_HOME
    4. Startup the database with init.ora
    5. Run catbundle.sql cpu apply
    6. Run recompile_precheck_jan2008cpu.apply
    7. View_recompile_jan2008cpu.sql
    8. Shutdown immediate and startup
    9. Change oracle home in listener.ora
    10.Create softlink of init.ora to /dbs/ of new oracle home.
    Now I have 2 queries :
    1.Since the database runs fine post it , I am not able to conclude
    if any other sql also needs to be run ?
    2. What is the location of the readme.txt and readme.html which i need to check for invalid objects.
    I have searched but couldn find it. :(
    Also , How do i test the performance pre and post patching..
    Will doing it by just checking the time taken for Data loads pre and post
    patching sufficient.
    What other checks can i do in dev to test for patch.
    Thanks and Regards
    Kk

    Hi ,
    In this particular database , ive run the catbundle.sql and its been almost 30 mins that its at this location :
    SQL> @?/rdbms/admin/initcdc.sql
    SQL> Rem
    SQL> Rem $Header: initcdc.sql 15-mar-2006.08:20:07 mbrey Exp $
    SQL> Rem
    SQL> Rem initcdc.sql
    SQL> Rem
    SQL> Rem Copyright (c) 2000, 2006, Oracle. All rights reserved.
    SQL> Rem
    SQL> Rem    NAME
    SQL> Rem      initcdc.sql - script used to load CDC jar files into the database
    SQL> Rem
    SQL> Rem    DESCRIPTION
    SQL> Rem      <short description of component this file declares/defines>
    SQL> Rem
    SQL> Rem    NOTES
    SQL> Rem      script must be run as SYS
    SQL> Rem
    SQL> Rem    MODIFIED   (MM/DD/YY)
    SQL> Rem    mbrey       03/15/06 - bug 5092790 add datapump registration
    SQL> Rem    pabingha    02/25/03 - fix undoc interfaces
    SQL> Rem    wnorcott    03/14/02 - bug-2239726 disable triggers.
    SQL> Rem    wnorcott    01/31/02 - function 'active' return 0 or 1.
    SQL> Rem    wnorcott    01/30/02 - disable CDC triggers, CREATE_CHANGE_TABLE re-enables.
    SQL> Rem    wnorcott    06/26/01 - rid trailing slash.  As per Mark Jungermann
    SQL> Rem    gviswana    05/25/01 - CREATE OR REPLACE SYNONYM
    SQL> Rem    jgalanes    11/17/00 - for Import/Export grant execute on util to
    SQL> REM                           SELECT_CATLOG_ROLE
    SQL> Rem    wnorcott    09/07/00 - new loadjava syntax for performance.
    SQL> Rem    wnorcott    07/18/00 - rid LOGMNR_UID$.clientid
    SQL> Rem    wnorcott    06/28/00 - move logmnr_dict view here
    SQL> Rem    wnorcott    03/28/00 - fix trigger install
    SQL> Rem    wnorcott    03/27/00 - Install change table triggers
    SQL> Rem    mbrey       01/26/00 - script to load CDC jars
    SQL> Rem    mbrey       01/26/00 - Created
    SQL> Rem
    SQL> call sys.dbms_java.loadjava('-v -f -r -s -g public rdbms/jlib/CDC.jar');How do i check if its still running or failed ?
    *PS : Ive read this note :Script Fails At Loadjava With ORA-03113 and ORA-03114 [ID 358232.1] But its when it errors out , for me its not erroring out also..*
    Thanks
    Kk
    Edited by: Kk on May 25, 2011 2:40 AM

  • Query Regarding Database Split

    hi all,
    My client have 4 Units in which nearly 80%items are same in all 4 units,Bp are 40% approx same please suggest me how to manage 4 unit in 1 database or in 4 diffrent database.What problem i face if i choose 1 database for all four unit.
    Note:All 4 unit working seperatly
    Thanks and regards
    Rahul

    Hi
    First of all u cant generate Balance sheet for all four units seperately.....(TB and P&L can be generated sep. if u have maintained Profit centres...) BY using some of tools this also we can achieve but not in std. sbo.
    For connecting all Four units u should have Brooad band connection to access the server. In India most of the time the Broadband will be slow r down only....
    All customers Balances  can be seen by other branch peoples also.......
    Unwanted Masters which is not belongs to other branch also will be availlable to everyone.anyway that can be filltered...
    Giri

  • Query regarding database size

    hi,
    ( sap 4.7c + sql server 2000 (Module:sd/mm/fi )
    ( data : 1 & half year - no BI )
    our database size is around 50 GB
    and log size is around 30 GB
    I doubt that something is wrong.
    can anyone explain to me what is right and
    what action one should take on this type of scenario.
    thanks in advance
    raj

    Hi Raj,
    My database size is about 30GB (3 years of usage) and log file is about 12GB.
    My database settings (recomendent by SAP and Early watch) are:
    I shrinked database to minimum size and set following settings:
    Database (mdf and ndf):
    - growth activated: checked
    - growth not restricted: checked
    - next step possible: checked
    - next step size: 60MB
    tempdb and log file:
    - growth activated: checked
    - growth not restricted: checked
    - next step possible: checked
    - next step size: 10%
    Regards,
    Marcin Gajewski

  • Query regarding database reorganization

    Hi All,
    I have been asked to reorganize the database( size 220GB Dev, size 460GB Qua, size 500GB Production)
    Database is Oracle 10G, SAP version is ECC 6.0.
    I tried this via BRtools on a test system(size 130GB,Oracle 10G) and nothing happens.Assuming this,I doubt any change.
    However my management is insisting size must decrease by 10 -12 percent.
    My query is if I reorganize the database via BRTOOLS what will be the effect on the database size.
    No client is deleted on any of the system and no data has been erased by the functional team.
    Any suggestion on the same will be a great help to me.
    Regards,
    PG

    Hi,
        How much space is liberated after a re-org task is purely subjective ( system load, when the last re-org was run etc). A test system with no user activity cannot form an ideal test-bed for re-org outcome. Rather than looking out for benefit in terms of percentage of space shrunk, you could look at all avenues that can bring down the database size. The following notes might be used as a starting point.
    SAP Note 541538 - FAQ: Reorganization
    SAP Note 771929 - FAQ: Index fragmentation (Easier than a table re-org task.Can be done online ( before attempting this online, please go through the SAP Hot News announced in SAP Note 1413928 - Index corruption/wrong results after rebuild index ONLINE )
    SAP Note 706478 - Preventing Basis tables from increasing considerably (Exectue the SQL query in the note to identify the tables that occupy highest space and look for corresponding solutions in this note for those tables)
    Above messages' SAP Data Volume Management guide also has suggestions for triggering archiving/deleting/compressing/avoid growth where necessary
    cheers !
    PRADi

  • Regarding Database migration to external storage

    Hello.
    We are running on MS windows 2003 enterprise edition with Oracle Database 10g.
    We have system with 32GB RAM and 600 GB Harddisk space on system, and we have installed SAP Solution manger and SAP Netweaver (PI) 7.0 componenet on that box. At this time we do not have external storage so we segrigate and installed SAP Solution Manager and SAP Netweaver(PI) on same box like
    C:\ 120 GB Space - Contains SAP Software and Oracle Database Software
    D,E,F and G: drive contains 120 GB each on every drive, which contains oralce database - SAPDatas, oraarch,saparch,sapbackup,sapcheck etc.
    Now we have storage with good capacity, so we want to move all data from D,E,F and G: drive.
    So how can we to migrate oracle database software to Storage.
    Waiting for your kind response.
    Best Regards,
    V.Singh

    Hi
    Please check the following links:
    http://www.sap.com/services/education/certification/course.epx?context=%5B%5B%7CTADM70%7C%7C%7C%7C%5D%5D%7C
    and
    http://www.oracle.com/newsletters/sap/products/database/dbmig.html
    and
    http://www.geocities.com/SiliconValley/Grid/4858/sap/Basis/OracleMig.htm
    I hope this helps
    Regards
    Chen

  • Regarding database crashed

    Friends,
    I have googled a lot and searched a lot in internet regarding my problem. Hope here I get some clue to recover my database.
    I have one test database which I am using from few month. Unfortunately I have dumped the database contents on same HDD. File system crashed in the HDD and current I am having IO error. However I manage to recover my two important datafiles system01.dbf and users01.dbf. Any hope to recover my data.
    Following is my detail:
    OS: CentOS 4.4
    Database: oracle 8.1.7
    Guys, Please help me to manage to recover data. I am thinking is there any way to read data from data files using third party software

    Hi,
    File system crashed in the HDD and current I am having IO error.Are you running in archivelog mode?
    Got backups?
    any way to read data from data files using third party software Well, Oracle has a tool that will read the data blocks, called BBED:
    http://www.dba-oracle.com/t_bbed.htm
    You can get help and direction on BBED by logging an SR on Metalink:
    http://metalink.oracle.com
    Hope this helps. . .
    Donald K. Burleson
    Oracle Press author

  • Regarding database back up

    Hi all,
    I am new to database back up. Can anyone explain me what is the difference
    between the back up which is taken using db13 in sap and taking back up
    directly from sql enterprise server in windows.
    Is it possible to do offline and online back up through db13?
    Can anyone please suggest me in detail.

    Sanjeev,
    Well, you can't. If you schedule the backup, the BRTOOL set will address this. DB13 really only gives you a 'GUI' interface for the BRTOOLs as well as a scheduling capability. Remember that when you trigger the backup job from DB13, you're not executing this at the SAP level, you're executing this from the OS level via the DBTOOLs - you could schedule the same job at the OS level if you wanted.
    If you trigger a BRBACKUP with the option 'offline', it will actually shutdown the database for you, perform the backup, and restart the database (return it to the state when the backup started). SAP itself will not go down per se, but obviously, it will not have connectivity with the database, and users who logon during this time will receive error messages regarding "no connection to database". Most folks, therefore shutdown the SAP system first, then trigger the offline backup.
    Hope this helps.
    Tim

  • Regarding Database Connector Error

    Hi Experts,
        I am using BO Edge Series XI 3.0, Crystal report 2008, Live Office XI 3.0 and Xcelsius 2008. I have connected ERP (R/3) system with crystal report and created report. This report are stored in BOE. Using Live Office XI 3.0, created live office document from this crystal report. In Xcelsius, i have imported live office document and created dashboard and generated PDF.swf file. When i open the swf file with SAP user info, its showing error like this
    soapenv:Server.generalException: Database Connector Error: ''
    Error in File {FC927591-0D5B-475D-A5D5-F770F6E5514B}.rpt:
    Database Connector Error
    The same error occur when i refresh the crystal report in InfoView also.
    The same error occur when i refresh the live office document also. Any help will be appreciated.
    Regards,
    Kumar.

    Kumar,
    Make sure you cross check:
    1. The database connector used by the report is installed on all machines from which the report can be run.
    2. The necessary database client software required by the database connector is installed and in the PATH environment system variable on all machines from which the report can be run.
    -Anil

  • Regarding Database Size

    Hi all,
    Iam New  to this forum can any one help me out
    We are using ECC 6.0 SR2,  SQL Server 2005 and Win 2003 OS
    please let me know according to our business scenario our data growth should be maximum 50MB
    daily but we found that our data is being growing drastically more 100MB, 200MB and more. what might be the problem and what shoud i do as a Basis administrator please guide me in detail what TCodes should i use, please do the needful....
    Regards
    Surya

    hi,
      Please check whether standard background jobs are scheduled ar not.
      if not do it in SM36.
      we have to schedule backups.
      database free size can be seen in DB02
      if free size is less, add data file
      reward points if it is helpfull
    regards,
    raju.

  • Regarding database Link

    Hi
    I have created database link into my test database TEST1 to access (SELECT ) my production database PROD1.
    So far I know database link is resource hunger.
    I want to know exactly where most resource use TEST1 or PROD1 database.
    Please describe me.
    Regards
    jewel

    user623166 wrote:
    Hi
    I have created database link into my test database TEST1 to access (SELECT ) my production database PROD1.
    So far I know database link is resource hunger.Please share a link or document which says so.
    >
    I want to know exactly where most resource use TEST1 or PROD1 database.How exactly do you plan to consume this database link?

  • Regarding database update

    hi experts,
    i have to update the database table created by me,,i hv to insert multiple rows in it ,i m using table controls in module pool  with insert button ,cud u plz send me the code n logic...as i m new to module pool ,,plz help me..

    Hi,
    It's not that easy for you even if I send some code to you. Because on the screens, what elements are there, and what modules you wrote on PAI and PBO, don't know.
    But in PAI based on the Function codes, by handling the OK_codes you have to write the code:
    Case OK_code.
    when 'UPDT'.
        you will be having data in the internal table related to table control.
    After modifications, you can update the db table with that internal table.
    Insert <dbtable> from ITAB....
    sample piece of code:
    REPORT ZBHMOD1 .
    DATA:OKCODE1 LIKE SY-UCOMM,
    OKCODE2 LIKE SY-UCOMM.
    DATA:N1(10) TYPE N,N2(10) TYPE N,RES(12) TYPE N.
    MODULE USER_COMMAND_1000 INPUT.
    CASE OKCODE1.
    WHEN 'NEXT'.
    RES = N1 + N2.
    SET SCREEN 1001.
    WHEN 'CLEA'.
    CLEAR:N1,N2.
    WHEN 'BACK'.
    SET SCREEN '0'.
    ENDCASE.
    ENDMODULE. " USER_COMMAND_1000 INPUT
    MODULE STATUS_1000 OUTPUT.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'TIT1'.
    ENDMODULE. " STATUS_1000 OUTPUT
    MODULE USER_COMMAND_1001 INPUT.
    CASE OKCODE2.
    WHEN 'BACK'.
    SET SCREEN 1000.
    ENDCASE.
    ENDMODULE. " USER_COMMAND_1001 INPUT
    MODULE STATUS_1001 OUTPUT.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'TIT2'.
    ENDMODULE. " STATUS_1001 OUTPUT
    FLOW LOGIC:
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_1000.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_1000.
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_1001.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_1001.
    Reward if useful.
    Regards,
    Anji
    Message was edited by:
            Anji Reddy Vangala

  • A question regarding database table partitioning and table indexes in 10g

    We are considering partitioning a large table in our 10g database, in order to improve response time. I believe I understand the various partitioning options, but am wondering about the indexes built over the table. When the table is partitioned, will the indexes also be partitioned "automatically"? Or do I need to also partition the indexes as well?
    Thank you in advance to any and all who respond to this question.

    Hello,
    When you build your partiton table you just need to create indexes locally and they will be partitioned automatically, see following example
    CREATE TABLE YY_EVENT
      PART_KEY       DATE                              NOT NULL,
      SUBPART_VALUE  NUMBER                             NULL,
      EVENT_NAME     VARCHAR2(30 BYTE)                  NULL,
      EVENT_VALUE    NUMBER                             NULL
    TABLESPACE TEST_DATA
    PARTITION BY RANGE (PART_KEY)
      PARTITION Y_EVENT_200901 VALUES LESS THAN (TO_DATE(' 2009-02-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
        TABLESPACE TEST_DATA, 
      PARTITION Y_EVENT_200902 VALUES LESS THAN (TO_DATE(' 2009-03-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
        TABLESPACE TEST_DATA
    -- This will create paritioned indexes automatically
    CREATE INDEX MY_IDX ON YY_EVENT
    (EVENT_NAME)
      TABLESPACE TEST_DATA
    LOGGING
    LOCAL;Regards
    Edited by: OrionNet on Feb 25, 2009 12:05 PM

  • Regarding database deployment of ms crm plug in

    Hi,
         I want to know which all tables get impacted when we do a database deployment of a plug-in in MS CRM.
    and what all happens at background while the deployment. New to MS CRM and trying to catch up things. Please Help me with this. Thank you.

    Hi Vinay,
    Please post you thread on the following link for effective response. This forum is to discuss CLR problem.
    http://community.dynamics.com/crm/default.aspx. Thank you for understanding.
    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.

Maybe you are looking for

  • Vendor master EMAIL field data

    dear sir, i need to have the list of all my vendor Emails which are mentioned in vendor master.we create the vendor centrally by XK01, i tried with MKVZ and LFA1 table. but the problem is email field (SMTP_ADDR is in SZA1_D0100-structure. can any bod

  • Should I upgrade sistem on S660

    I recently bought a Lenovo S660 from China. I live in Serbia, and this model is not sold in my country.  - Android version 4.2.2, - baseband version S660 V26, 02/28/2014 17:50 - Build number S660_S026_140228. In settings / about phone / no option to

  • File- XI- J2EE application(HTTP adapter as Receiver)

    Hi all! My question is What else to be given in ID i.e., in my outbound communication channel: I have given the following: Adapter Type:  HTTP              Receiver Transport Protocol: HTTP1.0 Message Protocol:XI payload in HTTP body Adapter Engine:I

  • ILife 08 language support - Japanese / English

    I live in Japan, but am a native English speaker. I had to purchase iLife 08 from the Japanese web site (Apple Store) and the DVD is all in Japanese. If I open it can I install the iLife 08 software in English? I don't want to open it unless I am sur

  • Reversal of cost from the  WBSE & posting same into assigned network

    Hi, There is requirment of reversal of cost from WBSE & posting the same into assigned network of WBSE. The scenario is like this. actual cost will get posted into WBSE during PGI of materials during delivery in VL02N transaction. Whereas we don't wa