run statistics with a degree of parallelism

Hello

I want syntax to collect statistics of database with the degree of parallelism...

Please tell me

You can simply check out the documentation:
http://docs.Oracle.com/CD/E11882_01/AppDev.112/e25788/d_stats.htm#i1036461

DBMS_STATS.gather_table_stats (..., degree-online x...);
Same thing with gather_database_stats etc.

Tags: Database

Similar Questions

  • 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

  • degree of parallelism and the number of files in the tablespace

    Hello

    I'm trying to find the relationship between the number of files in a tablespace and the degree of parallelism. because of the number of files in a tablespace effect dop in parallel query. because if several files are in the tablespace/o of the system has increased and the system became more feverable for a query parallel.

    But I looked in the dop formulas I can't find any settings that specify how the file is there in a tablespace. Please give me the formula for calculting dop in oracle.


    concerning
    Nick

    Hi Nick,

    It is not easy to determine the optimum degree of parallelism for the tasks of the Oracle.

    Oracle says that the best degree of parallelism for a query is based on several factors. These factors are presented in order of importance:

    -The number of processors on the server.

    -The number of physical disks located in the tables.

    -For parallelization of the partition, the number of partitions that will be available, based on the size of partition (if any).

    I can't find any settings that specify how the file is there in a tablespace.

    This is the number of physical spindles that matters, is not at the level of the tablespace.

    If I have diploma = 8, cpu_count = 8 and data are on 8 discs, there is no pretense.

    It's one of the problems with big great drives today, too few concurrency...

    I hope this helps...

    Donald K. Burleson
    Oracle Press author
    Author of "Oracle Tuning: the definitive reference".
    http://www.rampant-books.com/book_2005_1_awr_proactive_tuning.htm

  • What are the original applications for the iPhone 6 s. I had to sync to my iPhone 3g to my new 6s in order to maintain my contacts. can someone please send screenshots of an iPhone running 6s with applications shown. I need pages outside the home page.

    What are the original applications for the iPhone 6 s. I had to sync to my iPhone 3g to my new 6s in order to maintain my contacts. Unfortunately, I lost a lot of these new applications. can someone please send screenshots of an iPhone running 6s with applications shown. I need pages other than the home page. Thank you!

    'Stock' apps are part of the installation of iOS and cannot be removed, so there is nothing to verify or prove.

    When you move to a new phone, just need restoring your old backup phone and compatible applications will be synchronized to the new.

  • 6730 b DEATH - only runs connected with no battery

    6730 b DEATH - only runs connected with no battery

    If I insert the battery while it is running connected, the PC will immediately dead.

    Any help on disgnosing what is the problem would be appreciated.

    Logic for me.  Thank you.  I'll post the results once I have buy and install a new battery.

  • Cannot see/Run JCarousel with FireFox

    Cannot see/run JCarousel with Firefox.

    I am able to see the main image and the images over the primary image line; but the javascript code which changes at each successive image does not work.

    I can't run any JCarousel with FireFox. National Geographic is just one example of the most recent which does not work.

    You have quite a few extensions you installed that can cause problems like that (Adblock Plus, Ghostery).

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of your modules is causing your problem (switch to the DEFAULT theme: Tools > Modules > themes).

    • Makes no changes on the start safe mode window.

    See the extensions, themes and problems of hardware acceleration to resolve common troubleshooting Firefox problems and troubleshooting questions with plugins like Flash or Java to solve common Firefox problems

    • If you have many extensions then you first activate half test extensions that half the problem.

    Continue to divide the bad half that still has the question until you find that one is causing it.

  • final cut pro could run fast with macBook pro mid 2012?

    My MacBook pro (13-inch, mid-2012). Proc. 2.5 GHz intel Core i5. Memory 16GB 1600 MHz DDR3, startup disk Macintosh HD, 4000 1536 MB video card, could run fast with final cut pro X?

    the specifications of your look familiar to mine... (MacMini2012)

    works like charm IF you use external drives for media...

    recommend as 'work horse' a SSD, usb3 connected, position 250 GB = ~ €120

    very small, very lightweight, blazing fast

  • Why does'nt windows developed defender running automatically with windows 7?

    Why does'nt windows developed defender running automatically with windows 7?

    Hi GRL999,

    Welcome to the Microsoft Answers site.

    You can add, delete, enable, or disable a startup program in windows 7. Follow the steps mentioned below.

    Method 1:

    1. open the settings menu of the program.

    2. Add the program to the startup -

    Select the type option to run at startup of the program.

     

    3. to remove the startup - program

    Deselect the option type to run at startup of the program.

    Method 2:

    1. right click on the exe of the program to run at startup, or opening at startup and click create a shortcut.

    NOTE: This is the shortcut you add to the folder of boot Option one or Option two below. Skip this step if you only remove a shortcut from the startup folder.

    Single user:

    NOTE: The startup of the single (current) user folder is a hidden phone folder to the:
    C:\Users\(user-name) \AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

    2. open the Start Menu.

    3. click on all programs, right-click on the Startup folder and click Open or Explorer or in the line of the Start Menu search box, type : startup of the shell and press enter.

    4. to add a startup program or file shortcut - drag the shortcut created in step 1 in the startup folder and drop it.

    5. to remove a boot program or file shortcut - right click on the shortcut in the startup folder and click Remove.

    6. close the startup folder when finished.

     

    For all users:

    NOTE: The startup folder all users is a hidden system folder:
    C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup

    2. open the Start Menu.

    3. click on all programs, right-click on the Startup folder and click open all users , or to explore all users.

    4. to add a startup program or file shortcut - drag the shortcut created in step 1 in the startup folder and drop it.

    5. to remove a boot program or file shortcut - right click on the shortcut in the startup folder and click Remove.

    6. close the startup folder when finished.

    Method 3:

    1. open the Start Menu.

    (A) in the search line, type msconfig and press enter.

    or

    (B) open theControl Panel (all items view) and click the Administrative Tools icon, and then click System Configuration. Close the control panel and the windows administrative tools.

    2. If prompted, click on continue for UAC prompt or type the administrator password.

    3. click on the Startup tab.

    4. to disable a startup - program

    (A) select a listed startup program and uncheck the box.

    (B) repeat to disable more listed startup programs.

    5. to allow a startup - program

    (A) select a listed startup program and check it.

    (B) repeat to allow more listed startup programs.

    6. to turn off all startup programs listed -

    (A) click the disable all button.

    (B) proceed to step 9.

    7. to enable all startup programs listed -

    (A) click the enable all button.

    8. click on apply and OK.

    9. click on the button to restart to apply.

    Note: This will restart your computer immediately. Save and close everything you are working on the first.

    For more information about Windows Defender, see the items listed below.

    Enable or disable the Windows Defender

    http://Windows.Microsoft.com/en-us/Windows7/turn-Windows-Defender-on-or-off

    Enable or disable the Windows Defender real-time protection

    http://Windows.Microsoft.com/en-us/Windows7/turn-Windows-Defender-real-time-protection-on-or-off

    Schedule when Windows Defender scans your computer http://Windows.Microsoft.com/en-us/Windows-Vista/schedule-when-Windows-Defender-scans-your-computer

    Using Windows Defender

    http://Windows.Microsoft.com/en-us/Windows7/using-Windows-Defender

    Hope this information is useful.

    Thanks and regards.

    Thahaseena M
    Microsoft Answers Support Engineer.
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • IBM Thinkpad message: 'this machine can run faster with the USB 2.0 hub.

    Original title: Thinkpad USB 2.0 Hub.

    Hello:

    I have an IBM Thinkpad T-21 which is under Ubuntu & Windows xp.  I primarily use Windows XP.  The pop-up that keeps occurring is "this machine can run faster with the USB 2.0 hub.  Can you tell me how to upgrade my USB 2.0 Hub?  Would like to know because I can't sync my Android phone with my computer until I do it. Thank you.

    Are you sure you copied this error message properly?  In other words, he says that the hub could perform better if connected to a USB 2.0 port?  As far as I can determine that the T21 is not come with a USB 2.0 port, even if you connect a USB 2.0 device (for example a hub), the unit will only race as fast as the port allows it.

    What is the brand and model of your terminal?

    It is possible that the message means the opposite (i.e., your computer has a USB 2.0 port, but the hub is only a USB 1.1 device).

    USB 2.0 was introduced in 2001, so if you bought your computer before 2001, it is likely that you use USB 1.1 or 1.0.

    Open the Device Manager (start > run > devmgmt.msc > OK)
    Expand the category of 'USB Bus controllers'.
    If you see the "Enhanced" work for one or more of the listed devices, you have a USB 2.0 port.  If you do not see "Enhanced", you have USB 1.1.

    If the problem is that the USB port on the computer is not 2.0, so your only solution is to buy a USB 2.0 PC Card adapter.  Example and example 2
    If the problem is that the hub is not 2.0, then you will need to buy a new hub.

  • SQL - degree Maximum parallelism

    Hello

    What is the common practice of the Dell Wyse vWorkspace point of view about this setting SQL? It could boost the performance that I understand.

    More information here > support.microsoft.com/.../2806535

    "The configuration of Microsoft SQL Server option degree of parallelism (MAXDOP) control the number of processors used in a parallel plan for executing a query. This option determines the it resources and wire that are used to query plan operators who do the work in parallel. »

    Hi Maarten,

    MAXDOP value 0 (which I believe is default) works for most people.

    How many processors do you have on your SQL box?

    Thank you, Andrew.

  • Script to run Python with EEM on Nexus 9K

    Hello!

    I am trying to run the example provided in the following link for "Running Scripts with Embedded Event Manager":

    http://www.Cisco.com/c/en/us/TD/docs/switches/Datacenter/nexus9000/SW/6-...

    Here is my configuration of the Nexus 9 K switch EEM:

    NX9K-autonomous-Pod-1 # sh run EEM

    ! Command: show running-config EEM
    ! Time: Sat Nov 15 09:54:52 2014

    version 6.1 (2) I3 (1)
    Event Manager applet a1
    cli event corresponds to "display the clock.
    Action 1 cli python bootflash:pydate.py
    2 default event action
    Action 3 syslog msg I like EEM

    And here is an example of work of pydate.py that I grabbed from GitHub:

    GitHub Repo: https://github.com/haya14busa/pydate/blob/master/pydate.py

    NX9K-autonomous-Pod-1 # python bootflash:pydate.py
    DATETIME = 2014-11-15 09:47:03
    TIMESTAMP = 1416044823
    DateTime: 2014-11-15 09:47:03-> TimeStamp: 1416044823
    TimeStamp: 1416044823-> DateTime: 2014-11-15 09:47:03
    NX9K-autonomous-Pod-1 #.

    Finally, here is what happens when I run the command 'See the clock' in an attempt to trigger the EEM applet:

    NX9K-autonomous-Pod-1 # sh clock
    09:54:58.746 UTC Saturday, November 15, 2014
    NX9K-autonomous-Pod-1 # 2014 Nov 15 09:54:58 NX9K-autonomous-Pod-1% VSHD-5-VSHD_SYSLOG_CONFIG_I: configured for the vty by admin on vsh.8883
    2014-15 Nov 09:54:58 NX9K-autonomous-Pod-1% VSHD-5-VSHD_SYSLOG_CONFIG_I: configured for the vty by admin on vsh.8894

    Any help is appreciated!

    The syslog message must come before the 'event' by default.  As for what the Python script prints, it won't happen when she is called to the EEM.  But you may like the Cisco.com article says, look at the log to make sure that the script ran.

  • HP laserjet 1200 using windows7, wired to the printer with a USB to parallel adapter

    HP laserjet 1200 using windows7. My computer has USB ports, but no parallel port, if the computer is connected to the printer with a USB to parallel adapter. Sometimes works very well, sometimes States printer system as ready, but do not print. Reboot hardware and upon restarting, I got a page to print. Next attempt to print updates the document in cue, but is right there - no error message. Finally, after several reboots, I managed to do print (have no idea how), but now I had to print 20 pages one page at a time. It will print no more than one page, even if I have to print the 20. Next time I start the computer I don't know if the printer will print. Do you need to use the same USB port each time, or are USB to parallel unreliable maps?

    Hey renradd!

    Unfortunately, in addition to the adapters USB can be unreliable. Only a new printer, I don't know what it will provide you with a fix for this problem. You can try a different card if you have one, but if it still does not work, I would look for in a printer capable of supporting your computer.

    I hope this helps!

  • Degree of parallelism

    Hello

    I like to read Oracle Performance Tuning Guide (11g R2, Chapter 11)

    When I was reading on fulltable scan it says that

    High degree of parallelism

    A high degree of parallelism for a table tilts the optimizer to full table scan on the beaches of analyses. Look at the column LEVEL in ALL_TABLES for the table to determine the degree of parallelism


    I did not understand this. When I questioned all_tables I see only the value 1 in the LEVEL column. Can you explain what values will be there in the level column and how it will force Full Table Scan.

    Thanks a lot for your help in advance.

    See you soon,.

    Suri

    SQL > create table tbl (number)
    2.

    Table created.

    SQL > select degree
    user_tables 2
    3 where table_name = 'TBL '.
    4.

    DEGREE
    ----------
    1

    SQL > drop table tbl purge
    2.

    Deleted table.

    SQL > create table tbl (number)
    4 parallel 2
    3.

    Table created.

    SQL > select degree
    user_tables 2
    3 where table_name = 'TBL '.
    4.

    DEGREE
    ----------
    4

    SQL >

    SY.

  • Run javascript with a taskflow input parameters

    With the help of PS4 11 g JDev

    I have a taskflow using javascript. When the taskflow was loaded, I need to execute a javascript function that uses my taskflow 2 input parameters.
    I don't really know how I can run javascript with my input parameters.

    A test, I added a commandButton control in my taskflow who will do the job:
    <af:commandButton id="btnRefresh" text="Open">
                <af:clientAttribute name="long" value="#{pageFlowScope.pLong}"/> 
                <af:clientAttribute name="lat" value="#{pageFlowScope.pLat}"/> 
                <af:clientListener method="doNavigate" type="click"/> 
            </af:commandButton>
    How can I do the same thing when the taskflow charge instead of having to press the button.

    Please find attached examples based on your use cases:
    http://adfsampleapplications.googlecode.com/svn/trunk/JavascriptOnLoadSample.rar

    She calls a javascript function when loading pagefragment passing the input parameters of the taskflow.

    Thank you
    Nini

  • Debug a tuxedo that is running server with dbx

    Hi all

    I'm triying to debug a server running Tux with dbx, calling one of its services by using a Java client. I've read (Re: gdb - problem of debugging and Re: Service Tuxedo in C/C++ debugging but I can't solve my problem with them.) These are the steps I followed:

    (1) the server normally with tmboot starts:

    / Applications/Atos/CRPR_RESI/bin > tmboot s ac_reAdmXaGesNegocioS_ext_V1000
    INFO: Oracle Tuxedo, 10.3.0.0, 64-bit Version, Patch level (none)

    The server process starting...

    exec ac_reAdmXaGesNegocioS_ext_V1000 - R:
    process ID = 10813652... Has begun.
    1 started process.

    (2) copy the sorce file in the binary directory, sort of dbx can associate the lines.
    (3) attach dbx to the PID of the server:

    / Applications/Atos/CRPR_RESI/bin > dbx - one 10813652
    Waiting for an attachment to the 10813652 process...
    Attached successfully to ac_reAdmXaGesNegocioS_ext_V1000.
    Help, type 'help '.
    reading symbolic information... attention: ac_reAdmXaGestorNegociosS_ext.cpp is newer than ac_reAdmXaGesNegocioS_ext_V1000

    order in msgrcv to 0x9000000001d1a10 ($t1)
    0x9000000001d1a10 (msgrcv + 0xb0) e8410028 ld r2, 0 x 28 (r1)
    (dbx)

    (4) I don't know why it automatically stops at "msgrcv"?. Anyway, I put a breakpoint on the line at the start of my service:

    (dbx) stop at 13930
    [1] stop at the "ac_reAdmXaGestorNegociosS_ext.cpp": 13930.
    (dbx) list 13919, 13935
    13919 //{{IDL_HEADER(ac_re_ctrlversion_consulta)
    13920 Sub ac_re_ctrlversion_consulta::Implementation)
    13921
    13922 NAMESPACE (ac_resp_st_gestor_negocios_ext2) ac_re_st_ctrol_versiones filtro_entrada
    13923, namespace (ac_resp_st_gestor_negocios_ext2) ac_re_st_ult_ctrol_versiones * estruct_paginado
    13924, RPRInt16 * num_Items
    13925, namespace (ac_resp_st_gestor_negocios_ext2) ac_re_st_ctrol_versiones * lista_regsalida
    13926, RPRUbyte * pcHayMas
    13927)
    }} IDL_HEADER (ac_re_ctrlversion_consulta) 13928
    {13929
    Traza 13930 ("* INICIO DEL SERVICIO OF CONSULTA EN AC_CTRLVERSION *");
    13931 Traza("***DECLARACIONES***");
    13932 RProcRAccess VAC;
    Cursor 13933 & c_consulta = * VAC. GetCursor();
    13934 DateTime date;
    13935
    (dbx)

    (5) I call via the Java client, and the client blocks... waiting for the service. I do 'Steps' dbx:

    step (dbx)

    Signal defined by user 1 to msgrcv to 0x9000000001d1a10 ($t1)
    0x9000000001d1a10 (msgrcv + 0xb0) e8410028 ld r2, 0 x 28 (r1)
    step (dbx)
    order Uintercept to 0x900000007ba2850 ($t1)
    0x900000007ba2850 (Uintercept) fbe1fff8 std r31,-8 (r1)
    step (dbx)
    < in this point frezees dbx, the service and the client Java resumes >

    (6) it is truncated the service log:

    [24/01/2012 11:48:31] WARNING: no rpr_srv_version specified
    [24/01/2012 11:48:31] Service AC_RE_CONSULVER (IN) - < size = 4096, Version = 627632180, Flags = 0 >.
    [24/01/2012 11:48:31] #1 - RPR_NTVVAR = {.}
    [24/01/2012 11:48:31] #2 - RPR_NTVVAR = {.}
    [24/01/2012 11:48:31] #3 - RPR_SHORT = 1
    ...
    [24/01/2012 11:48:31] Service AC_RE_CONSULVER (FATE) - < size = 1672, Version = 627632180, Flags = 0 >.
    [24/01/2012 11:48:31] #2 - RPR_NTVVAR = {.}
    [24/01/2012 11:48:31] #3 - RPR_SHORT = 0
    [24/01/2012 11:48:31] #4 - RPR_NTVVAR = {.}
    [24/01/2012 11:48:31] #5 - RPR_CHAR = 78

    (7) I have to press CTRL + C on dbx:

    < CTRL + C >
    Interrupt in msgrcv to 0x9000000001d1a10 ($t1)
    0x9000000001d1a10 (msgrcv + 0xb0) e8410028 ld r2, 0 x 28 (r1)
    (dbx)

    (8) it goes back to normal and when I leave, the PID of the server has changed, and the former appears at the end of the command line of servers behind the parameter-R. I don't know what that means:

    quit smoking (dbx)
    / Applications/Atos/CRPR_RESI/bin > ps - ef | grep ac_reAdmXaGesNegocioS_ext_V1000
    Atos 6860940 10399980 0 11:53:28 pts/15 0:00 grep ac_reAdmXaGesNegocioS_ext_V1000
    Atos * 7163938 * 1 4 11:53:26 - 0:00 ac_reAdmXaGesNegocioS_ext_V1000-C dom = 5 RESI_DOMAIN_CSTR_EVR g-i 911 u tdea3p02_maclan/applications/atos/CRPR_RESI/release/ULOG_AC_RE - U m 0 10813652 r
    / Applications/Atos/CRPR_RESI/bin >

    (9) the internal logic of the service is not performed correctly, when dbx is used, because there is no data on the output. But it works properly without attached dbx.

    I think I did wrong to somenthing (or many things wrong :)), but I am lost at this point. Any advice will be appreciated.

    Thank you
    Gabriel

    Hi Gabriel,

    don't know if this qualifies as a related smoking question and I'm a little lost in all these lines, but...

    ... When you attach dbx to a process, it will become annexed by dbx (normal behavior) and you start to go through the instructions (machine code) using 'step', but I would (probably) use "cont (inue)" instead giving control to the process rather (based on what you really want to)

    Good luck
    Kristian

Maybe you are looking for