Analyze the table with a DEGREE = > AUTO LEVEL

I'm using the version of oracle 10g.

Oracle Database 10 g Enterprise Edition release 10.2.0.3.0 - production
PL/SQL version 10.2.0.3.0 - Production
CORE Production 10.2.0.3.0
AMT for 32-bit Windows: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production


In my view, a valid value for the parameter DEGREE there in aid of the oracle. (http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_stats.htm)

Degree: Degree of parallelism. The default for the level is set to NULL. The default value can be changed using the SET_PARAM procedure. NULL means use the default value of the table specified by the LEVEL clause in the CREATE TABLE or ALTER TABLE statement. Use the constant DBMS_STATS. DEFAULT_DEGREE to specify the default value based on the initialization parameters. The AUTO_DEGREE value determines the degree of parallelism automatically. It's 1 (series performance) or DEFAULT_DEGREE (the default value of the system will depend on the number of processors and initialization parameters) according to the size of the object


When I run the present, I get the error...

Oracle Database 10 g Enterprise Edition release 10.2.0.3.0 - Production
With partitioning, OLAP and Data Mining options

SQL > START
2 DBMS_STATS. () GATHER_SCHEMA_STATS
3 ownname = > 'SCOTT ',.
estimate_percent 4 = > 20,
5 block_sample = > TRUE,
6 method_opt = > ' COLUMNS SIZE 10 for ',
7 options = > "AUTO GATHER."
8 DEGREE = > "AUTO_DEGREE"
Cascade 9 = > TRUE);
10 END;
11.
BEGIN
*
ERROR on line 1:
ORA-06502: PL/SQL: digital or value error: character of number conversion error
ORA-06512: at line 2

SQL >

Try to replace 'AUTO_DEGREE' with SYS. DBMS_STATS. AUTO_DEGREE

Tags: Database

Similar Questions

  • 'For' loop with a different number of iterations. Second, the auto-indexation of the tables with different sizes is done. It can affect the performance of the Vi?

    Hello

    I have a loop 'for' which can take different number of iterations according to the number of measures that the user wants to do.

    Inside this loop, I'm auto-indexation four different 1 d arrays. This means that the size of the tables will be different in the different phases of the execution of the program (the size will equal the number of measures).

    My question is: the auto-indexation of the tables with different sizes will affect the performance of the program? I think it slows down my Vi...

    Thank you very much.

    My first thought is that the compiler to the LabVIEW actually removes the Matlab node because the outputs are not used.  Once you son upward, LabVIEW must then call Matlab and wait for it to run.  I know from experience, the call of Matlab to run the script is SLOW.  I also recommend to do the math in native LabVIEW.

  • Can fill us transitional attribute in the table with no serial like 1,2,3, etc.? And how?

    Mr President.

    Can fill us transitional attribute in the table with no serial like 1,2,3, etc.? And how?

    Concerning

    You want to show serial No. on the page for all the lines?

    Check once-

    Blog of Ashish Awasthi (Jdev/ADF): Add the serial number to the table of the ADF, column to auto-increment in the table to the ADF

    Actually transitional attribute loses its value when page refreshes or viewObject is not appropriate in this case if your use case is different, so please tell us

    Ashish

  • analyze the table & dbms_stats (chained lines)

    Hi guys,.

    Understand that dbms_stats collect statistics on (chained rows).
    To get chained lines, we can use one of the below:
    1. analyze the < table_name > table list chained rows;
    2 analyze the table < table_name > statistical calculation;

    the first lists the information chained rows in the CHAINED_ROWS table.
    the 2nd is best so that the information of chain_cnt are fulfilled in dba_tables. I can easily get the percentage of channel count by diviiding with the num_rows (for example if you need to list tables with 10 > string cnt percentage it would be easy).

    Right now, I'm leaving the need to collect statistics for night work by default oracle (who gather for table with variation in percentage of stale or > 10)... However, come together to string cnts.
    Can advise how can I get the string cnt without risking my existing services?

    And also will analyze statistics of table < table_name > estimate; replace my existing histograms?

    Thank you

    Published by: Chewy on March 4, 2013 02:35

    Can advise how can I get the string cnt without risking my existing services?

    analyze the table list chained rows in ;

    Select owner_name, table_name, count (*) from the group by owner_name, table_name;

    CHAINED_ROWS_TABLE must be created with UTLCHAIN. SQL script

  • Fill the table with random values

    Another thing I've come across is this:
    the table name is LOR, who has 3 fields NUMBER, DATA, TEXT with number, date and varchar2 data type.
    On a page, I have a text field where if I write 3, then it would add 3 lines to the table with predefined values ("number, something like 2222, for 12 January 09, and for text, something like" Lorem ipsum dolor sit amet, 195kgs adipisicing elit"). So basically, with the number that I give, it populates the table with lines... How can I do this? Thanks for helping me
    INSERT INTO LOR
    SELECT 222
    , sysdate
    , 'you string'
    FROM dual
    CONNECT BY level <= :Pxx_
    
  • implementation of the table with the scroll bar. (data scrolling)

    Hello

    I want to show the web service data in the table with scroll bar using java script or html or css .actuall I want only a part of the screen is not whole screen scrollable. can you suggest how it is possible.any suggestion? I used phone gap technology. I used iscroll but it does not work in blackberry data are not displayed in the Simulator... Help, please

    Thank you

    ravi1989 wrote:

    Hello

    I want to show the web service data in the table with scroll bar using java script or html or css .actuall I want only a part of the screen is not whole screen scrollable. can you suggest how it is possible.any suggestion? I used phone gap technology. I used iscroll but it does not work in blackberry data are not displayed in the Simulator... Help, please

    According to devices/operating systems that you want to support, you could give bbUI.js a change. It works really well in most of the cases, and I think there are a lot of things you don't need to worry more because bbUI.js is just for you.

    Look more at the scrollPanel example that does exactly what it takes, a part only of the entire screen of scrolling you can configure a height in the HTML source code directly.

  • I want to change the table with the expression of dangerousness of the virtual columns with her, need advice

    Hi all

    Here is the structure of the table with two expression of virtual columns associated highlighted, now I want to delete these expressions with virtual columns (but must keep my VIRTUAL columns as it is).

    Is it possible the alter or I need to raise the table, make a new structure and copy content back to newly structured table... Pleae help!

    CREATE TABLE TEST_COL)

    SAGE_TRADE_TYPE VARCHAR2 (50 BYTE),

    LOCAL_TZ VARCHAR2 (20 BYTE),

    ACE GMT_CONV_ENTERED_DT_TS (SAGEDBO. FN_CONVERT_TIMEZONE (LOCAL_TZ, ENTERED_DT_TS)) VIRTUAL,.

    ACE GMT_CONV_EXECUTION_DT_TS (SAGEDBO. FN_CONVERT_TIMEZONE (LOCAL_TZ, UPSTREAM_EXECUTION_TS)) VIRTUAL,.

    EOD_IND VARCHAR2 (10 BYTE)

    );

    Thank you very much

    Arpit

    Try this

    ALTER table test_col change gmt_conv_entered_dt_ts (0) virtual;

    ALTER table test_col change gmt_conv_execution_dt_ts (1) virtual;

  • How to export data from the table with the colouring of cells according to value.

    Hi all

    I use jdeveloper 11.1.1.6

    I want to export data from the table with a lot of formatting. as for color cells based on value and so much. How to do this?

    You can find us apache POI-http://poi.apache.org/

    See this http://www.techartifact.com/blogs/2013/08/generate-excel-file-in-oracle-adf-using-apache-poi.html

  • How the values to insert into the table with the command insertion

    Dear all
    can someone tell me how the values to insert into the table with the command insert, I want to say I always use command insert behind my forms on what shutter release button press the button of my save, but today I had a form of 6i, where controls (textbox, combo, etc.) are delineated with directly the table with I guess than the Properties Windows , I created 3 columns in tand 3 text on forms fields, now kindly tell me how to do this fields to fill and do not insert command, I mean directly defined with table column



    Please help me its urgent

    Hello

    If the block is based on your database table, just committed the shape, then changes will be applied to the database.

    François

  • Creating the table with time stamp

    I need to create the table with the data inside buffer

    Can you help me pls

    If it works today,

    create the table test_04NOV2010 in select * from product where product_code = '101'

    If executed tmrw,

    create the table test_05NOV2010 in select * from product where product_code = '101'
    declare
    
    v_date varchar2(25);
    v_sql  varchar2(20);
    
    begin
    
    select to_char(sysdate,'DDMONYYYY') into v_date from dual;
    
     v_sql := ' create table ' ||TEST||'_'||'v_date'|| 
                 ' as '
                 ' select * from Product where product_code = '101'
              
     EXECUTE IMMEDIATE v_sql;
    
    end;
    can is it you pls let me know how to use it in PL SQL

    Can you help me pls

    Thank you very much
    declare
    
    v_date varchar2(25);
    v_sql  varchar2(2000); --Noted this. this was also small.
    
    begin
    
    select to_char(sysdate,'DDMONYYYY') into v_date from dual;
    
     v_sql := ' create table TEST_'||v_date||
                 ' as select * from Product where product_code = ''101''';
    
     EXECUTE IMMEDIATE v_sql;
    
    end;
    

    You can use the Q operator also.

    DECLARE
    
    v_date varchar2(25);
    v_sql  varchar2(2000);
    
    BEGIN
    
    select to_char(sysdate,'DDMONYYYY') into v_date from dual;
    
     v_sql := ' create table TEST_'||v_date||
                Q'[ as select * from Product where product_code = '101']';
    
     EXECUTE IMMEDIATE v_sql;
    
    END;
    

    Published by: mohamed on November 4, 2010 05:32

  • Identify the tables with data or not

    Hello

    I want to find the tables with data and containing not data without checking each table. Is there a possible way?

    Like this?

    select
      table_name,
        to_number(
          extractvalue(
            xmltype(
     dbms_xmlgen.getxml('select count(*) c from '||table_name))
            ,'/ROWSET/ROW/C')) count
      from user_tables;
    

    Or may be

    select
      table_name,
       CASE WHEN
           to_number(
              extractvalue(
                xmltype(
         dbms_xmlgen.getxml('select count(*) c from '||table_name))
                ,'/ROWSET/ROW/C'))>0 THEN 'Table Has Data'
        ELSE 'Table is Empty'
        END
      from user_tables;
    
  • Collect statistics on the table with indexes of text only?

    I gathered statistics for a table that contains a text index
    EXEC DBMS_STATS. GATHER_TABLE_STATS (USER, 'CONADDR', estimate_percent = > 10, block_sample = > TRUE, cascade = > TRUE);

    There are a lot of tables/indexes not monitored (e.g. DR$ TI_CONADDR$ I). Do I have to analyse the tables there, too? The Guide Tuning Oracle text mentions just to analyze the table of "base".

    Oracle DB version is 10.2.0.4.
    select table_name, last_analyzed, num_rows from dba_tables where table_name like '%CONADDR%';
    CONADDR     11.08.2010 10:29:37     17944660
    DR$TI_CONADDR$I          
    DR$TI_CONADDR$R          
    DR$TI_CONADDR$K          
    DR$TI_CONADDR$N          
    
    select index_name, table_name, last_analyzed, num_rows from dba_indexes where table_name like '%CONADDR%';
    SYS_IL0003730268C00004$$     CONADDR          
    IDX_CONADDR                     CONADDR     11.08.2010 10:29:46     17106050
    SYS_IL0003731165C00006$$     DR$TI_CONADDR$I          
    SYS_IOT_TOP_3731168             DR$TI_CONADDR$K          
    SYS_IL0003731170C00002$$     DR$TI_CONADDR$R          
    SYS_IOT_TOP_3731173             DR$TI_CONADDR$N          
    DR$TI_CONADDR$X                     DR$TI_CONADDR$I     11.08.2010 10:05:05     67585029
    TI_CONADDR                     CONADDR     11.08.2010 10:29:46     

    DR$ table do NOT need to be analysed - and should not be.

    As "secondary objects", they will not be analyzed by orders based on patterns, and it is strongly recommended to not analyze manually. All commands that access these tables are set correctly without the input of the optimizer.

  • How to update exists column on the table with the exact number and auto increment

    Hello

    I have a table with more than 10 million rows and there is a column called 'number_zaq', I want to update this column on line frist from 2000 and + 1 for the next all ranks.

    Update your_table

    Set number_zaq = rownum + 2000-1;

  • Manipulation of the table with the recurrence

    I have a 2D chart which is similar to an adjacency matrix.  The table contains information that I need to analyze following a set of simple rules, but I'm unable to implement them.  Here is a simple example of the table (I would like to get the simple example job, and then expand as needed to work with the greatest examples).  The table is a table of 6 x 6 and the columns contain information about a procedure of transition between nodes in a map.  There is a root column (column we will begin by) and there are sheet columns, columns, we strive to achieve by browsing through other nodes in the graph (other columns in the table).  In the example below there is that a single root and a leaf, root is column zero and the leaf column 6 (I chose the marking of the nodes so that the zero column would be the root and column 6 would be the leaf but it doesn't have to be the case and I'm writing the software so that it is not dependent on the labelling of the map).  Outside the entrance to 2D table, there will be an array of column headers that maps the label of node to the right column of the table, a table of leaves and a digital control for the root.  That's what I try to do, refer to the image below.

    I look at the root and see that this is node 1, the column header looking I see that node 1 is column zero of my table.  I start with the line 0 in column 0 (the root column) and work my way down looking for integers not dummies.  I'm a rank, then see the integer 2, that tells me that I need to move the column 1 of the table (because the column 2 header) and store the integer 2.   I start with row 0 column and work my way down looking for integers not dummies.  I just rank 2 and see integer 3, that tells me that I have to move to column 2 of the table (column 2 header 3) and store the integer 3 (while I now [1,2,3] as my path I'll build).  I start at line 0 in column 2 and work my way down looking for integers no dummies and come in the 4th row is Integer 5, it tells me that I have to move to column 4 of the table (because the column 4 has 5 header) and store the integer while I [1,2,3,5] as my way.  I start at line 0 in column four and work my way down looking for an integer not null and come 5th see 6, because integer integer 6 is my current journal (only sheet for this example) I stop and have a path from node 1 to node 6 [1,2,3,5,6].  I didn't even though (and this is the part that gives me bad) because the column 1 (node 2 header) had another line nonzero, rank 3, which contains integer 4.  I need to repeat the process from here, give me a second track of [1,2,4,5,6].

    You can see how this will get very complex when I have several columns with several lines non-zero.  This seems to be a good case for use recursion, but I can't write the code to do this.  In the end, I need to find all the ways to get from the root to the leaf, as I said that there is more than one sheet in most of the cases.  Having many Leafs should not be a problem because I can repeat the same process for each leaf.  I have attaced a VI in 8.0 which has berries that I work with, according to the picture above.  I would like ideas on how to achieve this, as I refuse to do it by hand for great examples when I should be able to easily automate this process.

    Concerning

    This version fixes two problems I mentioned - one was caused by the queues the starting point outside the loop (a legacy of my original idea), the other to not deal with the final loop iteration when there is nothing in the queue (fixed with an additional business structure).  You need is a graph (that is to say, have links back and forward)?  Otherwise you could do a little more efficient with a directed graph, by removing the link from 2 to 1, 3 and 4 to 2, etc.

  • Analyze the table of variants

    I have a request, where we read binary data by Ethernet to high speed (~ 500 Hz). This data consists of hundreds of measures and other variables of all types (floats, integers, strings, etc.). I already have the code to analyze these data and store it in an array of variant.

    Now, I would like to take this array of variant and map each element to a particular variable.

    Because the data is stored in a predefined sequence (element #1 = speed, element #2 = power, element #3 =...), I considered looping through the array of varying and using a structure dealing with a case for each index of the array (see attachment). However, it is very heavy because the case structure has hundreds of cases (one for each element of the array) and it is impossible to insert a new item in the structure of business without dialing manually anyway.

    Can someone point me to a simpler implementation? If I was using C, I'd probably memcpy binary data directly in a structure aligned bytes. Is there any equivalent in LabVIEW, you use clusters?

    (Note: using LabVIEW 2014)

    Very well.  I thought about such a VI came out probably somewhere in vi.lib.

    However, I have also been concerned about the case where the table of variants isn't an different LabVIEW application.  In this case, I don't expect that the name and information of TypeDef would be in the variants, as specific to LabVIEW, so I was thinking something like this:

Maybe you are looking for