How to view the pl/sql for dbms_stats

Hi,
Please can you help?
From executing the code execute dbms_stats.gather_database_stats; , I have the following error:
BEGIN dbms_stats.gather_database_stats; END;
ERROR at line 1:
ORA-01476: divisor is equal to zero
ORA-06512: at "SYS.DBMS_STATS", line 13336
ORA-06512: at "SYS.DBMS_STATS", line 13682
ORA-06512: at "SYS.DBMS_STATS", line 13826
ORA-06512: at "SYS.DBMS_STATS", line 13790
ORA-06512: at line 1
I wanted to see the pl/sql code for the package body to see where the +'divisor is equal to zero'+ could be coming from.
I'm logged in to the database as SYS and ran the following query :
select text from all_source
where name = 'DBMS_STATS'
and type = 'PACKAGE_BODY';
what I get is unreadable.
Database version is 10.2.0.3
thank you.

Hello,
You may consult the following Notes from My Oracle Support:
Getting ORA-01476 during execution of DBMS_STATS.GATHER_SCHEMA_STATS (Doc ID 464440.1) Or, as you are in 10.2.0.3, you may also apply the Patch Set *10.2.0.4* as it seems to be a Bug.
Hope this help.
Best regards,
Jean-Valentin

Similar Messages

  • How to view the source code for Native Method

    hi
    i am using some native methods in to my code ;
    can anybody tell me how to view the source code for the same ;
    nik

    Buy/acquire a C/C++/assembly code disassembler and run the shared library through it.

  • View the generated sql for fetching a repository item

    Hi guys.
    I am interested in viewing the sql that ATG framework generates to fetch a primary repository item. I would like to use this generated sql, directly on the database and avoid me the pain of having to join multiple tables to get one repository item, basically looking to avoid having to write complex sql queries to fetch information for a repository item as ATG application would view it.
    I know there is a switch somewhere to turn it on, but an example would be great. Thanks!

    Turn on the logging debug on for the repository.
    Peace
    Shaik

  • How to view the source code for a Native Method

    hi
    i am using a Native method Math.pow() ;
    but since it is a native method it is taking more time to execute ;
    since this method i had to call at least 700 times it is affecting the performance of the application ;
    so i am thinking to write the user defined method based on the logic which has been implemented in the pow() method ;
    for that i need to know in which .c file this method has been written ;
    or else it can not be viewed at all ( if it is in the .dll)
    can u help me out
    nik

    Hi!
    Here is part of StrictMath.java code.
    * The class <code>StrictMath</code> contains methods for performing basic
    * numeric operations such as the elementary exponential, logarithm,
    * square root, and trigonometric functions.
    * <p>
    * To help ensure portability of Java programs, the definitions of
    * many of the numeric functions in this package require that they
    * produce the same results as certain published algorithms. These
    * algorithms are available from the well-known network library
    * <code>netlib</code> as the package "Freely Distributable
    * Math Library" (<code>fdlibm</code>). These algorithms, which
    * are written in the C programming language, are then to be
    * understood as executed with all floating-point operations
    * following the rules of Java floating-point arithmetic.
    * <p>
    * The network library may be found on the World Wide Web at:
    * <blockquote><pre>
    * http://metalab.unc.edu/
    * </pre></blockquote>
    * <p>
    * The Java math library is defined with respect to the version of
    * <code>fdlibm</code> dated January 4, 1995. Where
    * <code>fdlibm</code> provides more than one definition for a
    * function (such as <code>acos</code>), use the "IEEE 754 core
    * function" version (residing in a file whose name begins with
    * the letter <code>e</code>).
    * @author unascribed
    * @version 1.9, 02/02/00
    * @since 1.3

  • How to view the code/logic for the built-in oracle functions

    Hi,
    How can we view the logic behind the oracle supplied built-in functions like LAST_DAY , MONTHS_BETWEEN etc.,
    I tried to view the same using the sys.STANDARD package , the observations are given below
    function LAST_DAY(RIGHT DATE) return DATE;
    pragma BUILTIN('LAST_DAY',38, 12, 12); -- PEMS_DATE, DATE_LAST_DAY
    pragma FIPSFLAG('LAST_DAY', 1450);
    Regards
    Lok

    How can we view the logic behind the oracle supplied built-in functions like LAST_DAY , MONTHS_BETWEEN etc., You cannot. These built-ins, are 'built-in'.... As far as I know they are implemented in Oracle's kernel, as C code.

  • How to view the Design layout for Status tracking in bw 3.5?

    Hi all,
    I am new to bps 3.5 ? and i have a status and tracking in the development created by some one.  i am able to execute it, but then i would like to see the desing layout of it.
    How the layout is design.
    Can anyone help me on this!!
    Thanks
    Pooja

    To my way of thinking, you do not so much design the STS layout as to customiise or configure the STS. This is done with transaction code BPS_TC. Certainily some admin user will need access in order to adjust the configuration from time to time, to set new dates, people, organisation changes and so on. Different authorizations are required for 'standard' users, 'super' users (with an overview of the whole process. and 'admin' who can configure the STS. But BPS_TC does not allow you to see or to change the layout of STS. (The program can be found from SE80 in BSP Application  TUNGUSKA.)
    Help is at:
    http://help.sap.com/saphelp_nw04/helpdata/EN/ff/3deba47cf511d5b3e30050dadfb23f/frameset.htm
    I think you would need a very compelling reason to change the basic design.
    Stephen

  • How to view the Oracle sql history

    I know this command,
    select * from v$sqlarea;
    but how about to see the history command run filtered by user ?
    many thanks!!

    not tested.
    SELECT h.user_id,
           s2.username,
           s1.sql_text,
    FROM  v$active_session_history h,
          v$sqlarea s1,
          v$session s2
    WHERE h.sample_time > sysdate-1
    AND   h.sql_id = s1.sql_id
    AND   h.user_id = s2.user_id

  • How to view the sql query?

    hi,
      how to view the sql query formed from the xml structure in the receiver jdbc?

    You can view SAP Note at
    http://service.sap.com/notes
    But you require SMP login ID for this which you should get from your company. The content of the notes are as follows:
    Reason and Prerequisites
    You are looking for additional parameter settings. There are two possible reasons why a feature is available via the "additional parameters" table in the "advanced mode" section of the configuration, but not as documented parameter in the configuration UI itself:
    Category 1: The parameter has been introduced for a patch or a SP upgrade where no UI upgrade and/or documentation upgrade was possible. In this case, the parameter will be moved to the UI and the documentation as soon as possible. The parameter in the "additional parameters" table will be deprecated after this move, but still be working. The parameter belongs to the supported adapter functionality and can be used in all, also productive, scenarios.
    Category 2. The parameter has been introduced for testing purposes, proof-of-concept scenarios, as workaround or as pre-released functionality. In this case, the parameter may or may not be moved to the UI and documentation, and the functionality may be changed, replaced or removed. For this parameter category there is no guaranteed support and usage in productive scenarios is not supported.
    When you want to use a parameter documented here, please be aware to which category it belongs!
    Solution
    The following list shows all available parameters of category 1 or 2. Please note:
    Parameter names are always case-sensitive! Parameter values may be case-sensitive, this is documented for each parameter.
    Parameter names and values as documented below must be used always without quotaton marks ("), if not explicitly stated otherwise.
    The default value of a parameter is always chosen that it does not change the standard functionality
    JDBC Receiver Adapter Parameters
    1. Parameter name: "logSQLStatement"
                  Parameter type: boolean
                  Parameter value: true for any string value, false only for empty string
                  Parameter value default: false (empty String)
                  Available with: SP9
                  Category: 2
                  Description:
                  When implementing a scenario with the JDBC receiver adapter, it may be helpful to see which SQL statement is generated by the JDBC adapter from the XI message content for error analysis. Before SP9, this can only be found in the trace of the JDBC adapter if trace level DEBUG is activated. With SP9, the generated SQL statement will be shown in the details page (audit protocol) of the message monitor for each message directly.
                  This should be used only during the test phase and not in productive scenarios.
    Regards,
    Prateek

  • How to view the sql behind a report.

    Hi All,
    i am using OBIEE 10.1.3.4.1. while running a report its showing no result. There is something wrong with the join I guess. But still I need to see the sql it generates.
    In NQQuery.log its not updating the sql that I am running a report in answer. How Can I view the detail sql behind the report? Is any more settings to do for view the SQl...
    Thanks in advance,
    Deepak.

    Hi Deepak,
    go to Settings > Administration > Manage Sessions from front end..
    You'll find view log option related to the report you run..
    Make sure that you've set loglevel greater than equals to 2 for the logged in user(in rpd level)

  • How to view the login log in window NPS after login cisco switch and without SQL server database

    how to view the login log in window NPS after login cisco switch and without SQL server database
    in summary 
    there is only log with event id 4400
    A LDAP connection with domain controller XCPAWS20.cyberport.noc for domain NOC2 is established.

    Hi adil,
    For your issue, you can create a custom security token service (STS) and then set up a trust relationship between a SharePoint 2010 farm and the custom STS.
    For more information, you can refer to the articles:
    http://forums.asp.net/t/1335229.aspx?Sharing+Authentication+Ticket+Between+ASP+NET+and+Sharepoint
    https://msdn.microsoft.com/en-us/library/office/ff955607(v=office.14).aspx
    http://www.paraesthesia.com/archive/2011/02/01/working-with-windows-identity-foundation-in-asp-net-mvc.aspx/
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • How to check the Statistics generated for a table through DBMS_STATS.

    Hi,
    How to check the statistics generated for a Table through DBMS_STATS.GATHER_TABLE_STATS procedure ?
    Please let me know.
    Thanks !
    Regards,
    Rajasekhar

    Rajasekhar wrote:
    Hi,
    How to check the statistics generated for a Table through DBMS_STATS.GATHER_TABLE_STATS procedure ?
    Please let me know.
    Thanks !
    Regards,
    Rajasekharquery ALL_TABLES

  • HOW TO VIEW THE ENABLED AUTO EXTENDS FOR THE DBF

    HI,
    CAN YOU TELLME WHICH VIEW HELPS TO VIEW THE ENABLED AUTOEXTENDS FOR DBF.
    Thanks in advance
    cgprasad

    Hi,
    PROD.SQL>DESC DBA_DATA_FILES
    Name                                                  Null?    Type
    FILE_NAME                                                      VARCHAR2(513)
    FILE_ID                                                        NUMBER
    TABLESPACE_NAME                                                VARCHAR2(30)
    BYTES                                                          NUMBER
    BLOCKS                                                         NUMBER
    STATUS                                                         VARCHAR2(9)
    RELATIVE_FNO                                                   NUMBER
    AUTOEXTENSIBLE VARCHAR2(3)
    MAXBYTES                                                       NUMBER
    MAXBLOCKS                                                      NUMBER
    INCREMENT_BY                                                   NUMBER
    USER_BYTES                                                     NUMBER
    USER_BLOCKS                                                    NUMBER                  Regards,
    Yoann.

  • How to set the connection parameters for SQL

    How to set the connection parameters for SQL to access the MS Access database
    Attachments:
    Quick_SQL.vi ‏21 KB
    Doc1.doc ‏45 KB
    db1.mdb ‏112 KB

    Right-click the WINDOWS desktop, choose New->Microsoft Data Link. That will bring up a dialog that allows you to configure and test your database connection. You might connect to the Access database via ODBC or directly via Jet Engine. The Jet Enginge saves you the trouble of creating an ODBC connection on your PC. After you leave the dialog, the "data link" will show up on your desktop as text file. Open it and copy-paste the connection string to your VI.
    This webpage is an excellent resource for connection strings: http://www.able-consulting.com/ADO_Conn.htm
    If your application requires users to change the database connection at runtime, you can also include the dialog via ActiveX (MSDASC.IDataSourceLocator).

  • How to view the table at the application level

    Dear All,
    How to view the table in the Data Dictionary at the application level, If a table is created at the database level by using CREATE statement.
    code/
    create table zmard as select * from sapone.mard where 1 = 2
    /code
    I would like to view the table above, which is created at the Oracle database level in the Data Dictionary.
    can anyone guess the solution.
    Best wishes
    Mahesh

    Hi
    U should create a program using SQL native in order to select and show the data.
    By SE11 or directly in the program u can define a structure like your table:
    DATA: BEGIN OF W_ZMARD,
                  FIELD,
              END     OF W_ZMARD.
    EXEC.
       OPEN CURSO FOR SELECT * FROM ZMARD
    ENDEXEC.
    DO.
      EXEC.
         FETCH NEXT CURSOR INTO :W_ZMARD
      ENDEXEC.
      IF SY-SUBRC <> 0.
         EXIT.
      ENDIF.
      WRITE: / W_ZMARD-FIELD,
    ENDDO.
    EXEC.
      CLOSE CURSOR
    ENDEXEC.
    I don't know if it's possible to create a view in SE11, because it's needs a table just defined in SE11, u can create a new view ZMARD based on MARD but I don't believe it'll use your table.
    Max

  • How to view the DDL script prior to object deployment in OWB 10g R2?

    How to view the DDL script prior to object deployment in OWB 10g R2?
    Here is what I' looking for: in 10gR2, let's say I've built dimension X, but it's not deployed yet. I've selected one of the deployment options, let's say: "Deploy to Catalog only". Now, I'd like to see a DDL script that will be executed at the deployment time. Where can I find this script? What screen? What menu?
    Thanks,
    vr

    Viewing the Scripts
    After you have generated scripts for your target objects, you can open the scripts and
    view the code. Warehouse Builder generates the following types of scripts:
    ■ DDL scripts: Creates or drops database objects.
    ■ SQL*Loader control files: Extracts and transports data from file sources.
    ■ ABAP scripts: Extracts and loads data from SAP systems.
    To view the generated scripts:
    1. From the Generation Results window, select an object in the navigation tree on the
    left of the Generation Results dialog.
    2. Select the Scripts tab on the right of this dialog.
    The Scripts tab contains a list of the generated scripts for the object you selected.
    3. Select a specific script and click the View Code button.
    Regards,
    Marcos

Maybe you are looking for

  • HT1338 My macbook air doesn't recognise logitech v20 speakers

    I am so sorry i was convinced by others to buy a macbook air - i had an Asus and i am having endless problems with hardware compatibility that no one seems to be able to help me with my new macbook air.  firstly, i now cant connect wirelessly to my n

  • Table that stores the customer contact person email id

    hI ALL, Can any body please tell me the table name where <b>customer conatct person mail id is stored.</b> Please revert for any clarification on this. its urgent . good points will be given on the orrct solution. thanks Message was edited by:       

  • Append string to stringbuffer in same line

    I have stringbuffer in which i append string thiesestring is of variable lengt has different value .I want that when i append string to stringbuffer it append to same line .I use append method of stringbuffer.But the whole value is not in same line i

  • Exploring and Exploiting the Bridge Libraries

    One of the things we did when we developed the Bridge Workflow Automation Scripts, was create a set of libraries to make bridge scripting easier and more productive. The libraries are AdobeLibrary1.jsx and AdobeLibrary2.jsx. There is an AdobeLibrary3

  • Where are videos and movies stored?

    Hi - In preferences, I see where it says the music is stored and I relocated it to another drive. I cannot find my movies and videos. Where do they get stored? Thanks