Tuning MVs in 10g

I'm trying to run the following packages:
task_name is a varchar2 and sqlstmt is the query explicitly defined when calling the package.
dbms_advisor.TUNE_MVIEW(task_name, sqlstmt);
dbms_advisor.create_file(dbms_advisor.GET_TASK_SCRIPT(task_name),'WORK_DIR','mv_tuning.sql');
But I keep getting the following error messages:
ORA-13600: error encountered in Advisor
QSM-03113: Cannot tune the MATERIALIZED VIEW statement
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
ORA-06512: at "SYS.PRVT_ACCESS_ADVISOR", line 202
ORA-06512: at "SYS.PRVT_TUNE_MVIEW", line 1075
ORA-06512: at "SYS.DBMS_ADVISOR", line 754
ORA-06512: at line 5
The create MV statement has been taken from a script that will create a mv so I know that it works. I've tried the dbms_mview.explain_mview using the same script and it works fine.
Does anyone have any ideas where I can go from here?
Regards

The first parameter to tune_mview is an IN OUT parameter. I don't see, in your code, where you have provided any ability for the OUT.
Compare what you've posted to my working demo in Morgan's Library under DBMS_ADVISOR.
http://www.psoug.org/reference/dbms_advisor.html

Similar Messages

  • Remove Diagnostics Pack, Database Tuning Pack :Oracle 10g

    Hi All,
    I want to remove Application Server Configuration Pack, Application Server Diagnostics Pack, Database Configuration Pack, Database Diagnostics Pack, Database Tuning Pack from 10g due to license restriction. How can I remove these packs from command line syntax in 10g as I don't have GUI access so unable to perform from OEM?
    Regards

    Thanks Srini,
    According to link provided by you we can revoke license with emcli tool but it is not installed with current database (10.2.0.4.0).
    Please advice is there any procedure available which can disable all these packs in 10g.
    Regards

  • Perfomance Tuning in Oracle 10g

    Is the basic logic for tuning in 10g same as the traditional approach for tuning sql statements, like structuring of sql statements, using bind variables instead of constants, having an ideal max of 4/5 joins in a given query, etc.? I would like to know which is the reference book available. Thanks in advance

    10g has lot of feature to tune sql tunnings. it has got new feature SQL Tunning Advisor,
    which can advice u
    to create index, statistics analysis
    error in sql statement, recomendations
    Refer, the 10g new feature oracle press book.
    Regards

  • Step for performance tuning in oracle 10g

    hi,
    i want to know the step of persformance tuning and sql tuning.

    I'd suggest you to refer to documentation: [Oracle Database 2 Day + Performance Tuning Guide 10g Release 2 (10.2)|http://download.oracle.com/docs/cd/B19306_01/server.102/b28051/toc.htm]
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

  • SQL Tuning Pack for 10G R2 database

    Hi,
    I am looking for a SQL tuning pack plug in with SQL Developer 2.1 release for Oracle 10g R2 database.
    Any information this would be appreciated.
    Thanks,
    Patchava

    There is no 'tuning pack' plugin for SQL Developer, We can process trace files, monitor sessions etc.
    If you are looking for specifics on things like SQL Advisor, SQL Profiles and things, we do not have specific features for them yet, but we have planned them in the future.
    Barry

  • Need OES Performance tuning steps for 10g

    Hi Guys,
    I am looking for a performance tuning document for OES 10g?
    can someone provide me that or can someone illustrate the steps please?
    Regards,
    Naveen

    Hi Gopi,
    Following are the different tools provided by SAP for performance analysis of an ABAP object
    Run time analysis transaction SE30
    This transaction gives all the analysis of an ABAP program with respect to the database and the non-database processing.
    SQL Trace transaction ST05
    The trace list has many lines that are not related to the SELECT statement in the ABAP program. This is because the execution of any ABAP program requires additional administrative SQL calls. To restrict the list output, use the filter introducing the trace list.
    check these links:
    http://www.sapgenie.com/abap/performance.htm
    http://www.sapdevelopment.co.uk/perform/performhome.htm
    http://www.thespot4sap.com/Articles/SAPABAPPerformanceTuning_Introduction.asp
    regards,
    keerthi.

  • Basic Tuning Parameters in 10g Datawarehouse env

    What are the basic Oracle 10g tuning parameters for datawarehouse environments compare to OLTP?

    There are entire books written on this subject.
    Rather than getting some short, but hopefully witty, sound-bite here pick up Cary Millsap and Jonathan Lewis's books and read them.

  • Performance Tuning in Oracle 10g during Migration - Insert Statements

    Some of the tables contain a huge data e.g. 7 million records to be migrated.
    The table structure of Source Database is different from the Target Database (Where we are doing the migration).
    So we have made a use of temporary tables to collect the data from different tables using joins and populate the main table using INSERT INTO tableA SELECT * FROM tableZ
    Now the problem statement.
    Some of the queries take infinite time and data doesnt get inserted into the main tables. I have seen the explain plan and didnt find anything unusual. The same query works fine when we use date time stamp and restrict the data.
    What parameters do we have to take care ? Is there any configuration needed on Oracle Server side ? If yes which parameters?

    Lets start with the basics. First what is 10g? Is that 10.1.0.3 or 10.2.0.4 or something else?
    Second 7 million records is a relatively small dataset.
    No one can possibly help you with no DDL, no DML, no Explain Plan output generated with DBMS_XPLAN.
    We can make wild guesses but that is like closing your eyes in a dark room and trying to find the light switch.
    Please repost all relevant information so someone can help you.

  • Performance tuning in oracle 10g

    Hi Guys
    i hope all are well,Have a nice day Today
    i have discuss with some performance tuning issue
    recently , i joined the new project that project improve the efficiency of the applicaton. in this environment oracle plsql langauage are used , so if i need to improve effiency of application what are the step are taken
    and what are the way to go through the process improvement
    kindly help me

    generate statspack/AWR reports
    HOW To Make TUNING request
    https://forums.oracle.com/forums/thread.jspa?threadID=2174552#9360003

  • Disk IO performance tuning of oracle 10g 64bit  on rhel5 64bit

    Hi Friends,
    I am very new on oracle database tuning part.
    I am facing some issues on the oracle disk io data transfer rate on rhel5.
    Please help me. Details of issue is below.
    I am using the iscsi san storage to install the database. My san storage is having more than 100Mbps transfer speed.
    When oracle backup is running the data transfer rate is spikes upto 100Mbps, but when oracle normal transaction is happening it is not going more than 30Mbps.
    My data base is an hybrid one and more read transaction is happening. Server is running with 4 cpus and 16GB of ram.
    Here i am providing the iostat command output. Please have a look into this and help me to resolve.
    [root@hostname ~]# iostat -x 1 5
    Linux 2.6.18-128.el5 (hostname)    
    avg-cpu:  %user   %nice %system %iowait  %steal   %idle
              24.94    0.00    4.15   31.94    0.00   38.96
    Device:         rrqm/s   wrqm/s   r/s   w/s   rsec/s   wsec/s avgrq-sz avgqu-sz   await  svctm  %util
    sda               7.61    10.42  4.28  5.28   345.38   125.59    49.26     0.12   12.91   3.18   3.04
    sda1              0.30     0.00  0.03  0.00     0.65     0.00    22.59     0.00    3.76   2.66   0.01
    sda2              0.22     0.00  0.01  0.00     0.23     0.00    18.78     0.00    4.05   3.54   0.00
    sda3              5.25     8.26  3.58  2.47   310.67    85.87    65.54     0.09   15.09   3.37   2.04
    sda4              0.00     0.00  0.00  0.00     0.00     0.00     1.83     0.00    0.33   0.33   0.00
    sda5              0.83     1.95  0.55  2.70    31.62    37.24    21.17     0.03    8.88   3.49   1.13
    sda6              0.68     0.07  0.06  0.04     1.11     0.85    19.74     0.00   13.91   9.05   0.09
    sda7              0.33     0.14  0.04  0.07     0.90     1.63    24.17     0.00   15.73  11.13   0.12
    sdb               0.06     0.00  0.03  0.00     0.75     0.00    25.57     0.00    1.64   1.48   0.00
    sdb1              0.04     0.00  0.01  0.00     0.45     0.00    34.90     0.00    3.13   2.85   0.00
    sdc               5.86     0.16 45.05  2.74  7805.28   129.85   166.04     2.57   53.82   9.12  43.58
    sdc1              5.79     0.16 45.02  2.74  7804.99   129.85   166.12     2.57   53.85   9.12  43.57
    sdd               5.85     0.17 44.45  2.68  7767.34   133.80   167.65     2.68   56.95   9.43  44.43
    sdd1              5.78     0.17 44.42  2.68  7767.06   133.80   167.74     2.68   56.98   9.43  44.43
    sde               5.89     0.16 44.86  2.37  7774.84   122.75   167.23     2.24   47.51   8.96  42.30
    sde1              5.82     0.16 44.83  2.37  7774.55   122.75   167.31     2.24   47.54   8.96  42.29
    sdf               5.91     0.16 63.70  2.69  8053.71   133.15   123.32     2.98   44.89   7.59  50.40
    sdf1              5.84     0.16 63.67  2.69  8053.43   133.15   123.36     2.98   44.91   7.59  50.39
    sdg               0.19     0.11  0.07  0.61     2.54   131.30   199.27     0.04   65.76  28.52   1.92
    sdg1              0.12     0.11  0.04  0.61     2.25   131.30   206.81     0.04   68.26  29.56   1.91
    sdh               4.43     2.29  0.99  1.36   199.10    29.19    97.03     0.05   20.92   5.13   1.21
    sdh1              4.43     2.29  0.98  1.36   198.95    29.19    97.49     0.05   21.01   5.14   1.20
    avg-cpu:  %user   %nice %system %iowait  %steal   %idle
              13.72    0.00    2.49   75.31    0.00    8.48
    Device:         rrqm/s   wrqm/s   r/s   w/s   rsec/s   wsec/s avgrq-sz avgqu-sz   await  svctm  %util
    sda               0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sda1              0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sda2              0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sda3              0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sda4              0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sda5              0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sda6              0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sda7              0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sdb               0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sdb1              0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sdc              18.00     0.00 54.00  2.00 25984.00   160.00   466.86     8.96   94.18  17.89 100.20
    sdc1             18.00     0.00 54.00  2.00 25984.00   160.00   466.86     8.96   94.18  17.89 100.20
    sdd              18.00     0.00 79.00  2.00 40240.00    32.00   497.19     8.61  118.93  12.04  *97.50*
    sdd1             18.00     0.00 79.00  2.00 40240.00    32.00   497.19     8.61  118.93  12.04  *97.50*
    sde              19.00     0.00 44.00  8.00 26656.00   187.00   516.21     9.34  119.81  19.27 *100.20*
    sde1             19.00     0.00 44.00  8.00 26656.00   187.00   516.21     9.34  119.81  19.27 *100.20*
    sdf              26.00     0.00 76.00  6.00 35600.00    59.00   434.87     3.23   40.76  10.52  86.30
    sdf1             26.00     0.00 76.00  6.00 35600.00    59.00   434.87     3.23   40.76  10.52  86.30
    sdg               0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sdg1              0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sdh               0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sdh1              0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    avg-cpu:  %user   %nice %system %iowait  %steal   %idle
              18.64    0.00    5.29   49.87    0.00   26.20
    Device:         rrqm/s   wrqm/s   r/s   w/s   rsec/s   wsec/s avgrq-sz avgqu-sz   await  svctm  %util
    sda               0.00    14.00  0.00  3.00     0.00   136.00    45.33     0.01    1.67   1.67   0.50
    sda1              0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sda2              0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sda3              0.00    14.00  0.00  3.00     0.00   136.00    45.33     0.01    1.67   1.67   0.50
    sda4              0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sda5              0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sda6              0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sda7              0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sdb               0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sdb1              0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sdc              44.00     0.00 99.00  1.00 58368.00     8.00   583.76    12.03  154.83   9.66  96.60
    sdc1             44.00     0.00 99.00  1.00 58368.00     8.00   583.76    12.03  154.83   9.66  96.60
    sdd              44.00     0.00 103.00  0.00 50672.00     0.00   491.96    10.07   82.47   8.37  86.20
    sdd1             44.00     0.00 103.00  0.00 50672.00     0.00   491.96    10.07   82.47   8.37  86.20
    sde              45.00     0.00 110.00  5.00 58176.00   126.00   506.97    13.01  113.47   8.02  92.20
    sde1             45.00     0.00 110.00  5.00 58176.00   126.00   506.97    13.01  113.47   8.02  92.20
    sdf              40.00     0.00 122.00  5.00 52944.00   126.00   417.87     9.74   63.94   6.52  82.80
    sdf1             40.00     0.00 122.00  5.00 52944.00   126.00   417.87     9.74   63.94   6.52  82.80
    sdg               0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.01    0.00   0.00   0.90
    sdg1              0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.01    0.00   0.00   0.90
    sdh               0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sdh1              0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    avg-cpu:  %user   %nice %system %iowait  %steal   %idle
               7.48    0.00    2.49   *61.60*    0.00   28.43
    Device:         rrqm/s   wrqm/s   r/s   w/s   rsec/s   wsec/s avgrq-sz avgqu-sz   await  svctm  %util
    sda               0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sda1              0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sda2              0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sda3              0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sda4              0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sda5              0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sda6              0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sda7              0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sdb               0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sdb1              0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sdc              13.86     0.00 38.61  0.99 19611.88    11.88   495.50     3.35   79.53  25.03  99.11
    sdc1             13.86     0.00 38.61  0.99 19611.88    11.88   495.50     3.35   79.53  25.03  99.11
    sdd              15.84     0.00 40.59  0.99 17758.42    31.68   427.81    10.93  122.36  23.26  96.73
    sdd1             15.84     0.00 40.59  0.99 17758.42    31.68   427.81    10.93  122.36  23.26  96.73
    sde              12.87     0.00 46.53  1.98 22035.64    70.30   455.65    13.19  275.96  20.43  99.11
    sde1             12.87     0.00 46.53  1.98 22035.64    70.30   455.65    13.19  275.96  20.43  99.11
    sdf              13.86     0.00 39.60  2.97 17584.16   101.98   415.42     6.83   81.19  22.21  94.55
    sdf1             13.86     0.00 39.60  2.97 17584.16   101.98   415.42     6.83   81.19  22.21  94.55
    sdg               0.00     0.00  0.00  0.99     0.00     7.92     8.00     0.21  226.00 217.00  21.49
    sdg1              0.00     0.00  0.00  0.99     0.00     7.92     8.00     0.21  226.00 217.00  21.49
    sdh               0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sdh1              0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    avg-cpu:  %user   %nice %system %iowait  %steal   %idle
              24.69    0.00    8.98   48.38    0.00   17.96
    Device:         rrqm/s   wrqm/s   r/s   w/s   rsec/s   wsec/s avgrq-sz avgqu-sz   await  svctm  %util
    sda               0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sda1              0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sda2              0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sda3              0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sda4              0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sda5              0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sda6              0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sda7              0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sdb               0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sdb1              0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sdc              25.00     0.00 61.00  4.00 36304.00   120.00   560.37     9.58  156.23  14.78  96.10
    sdc1             25.00     0.00 61.00  4.00 36304.00   120.00   560.37     9.58  156.23  14.78  96.10
    sdd              23.00     0.00 82.00  1.00 34832.00    32.00   420.05     7.61  163.49  11.27  93.50
    sdd1             23.00     0.00 82.00  1.00 34832.00    32.00   420.05     7.61  163.49  11.27  93.50
    sde              27.00     0.00 62.00  0.00 32864.00     0.00   530.06     9.41  149.56  16.15 100.10
    sde1             27.00     0.00 62.00  0.00 32864.00     0.00   530.06     9.41  149.56  16.15 100.10
    sdf              17.00     0.00 101.00  4.00 42656.00   132.00   407.50     4.18   88.24   6.72  70.60
    sdf1             17.00     0.00 101.00  4.00 42656.00   132.00   407.50     4.18   88.24   6.72  70.60
    sdg               0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sdg1              0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sdh               0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
    sdh1              0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00Regards,
    Nayagan
    Edited by: nayagan on Jan 27, 2010 12:23 PM
    Edited by: nayagan on Jan 27, 2010 2:04 PM

    Two points:
    1. I can not read what you posted because you did not read the FAQ (upper right) and put tags around the listing so it would retain its formatting.
    2. Even if I could read them I wouldn't as they are not necessarily relevant. What I would want to see is what query you are issuing that you think should be maxing out your disk subsystem and giving you the performance you expect. Single block reads read single blocks. Post the DML and the corresponding explain plan report generated using DBMS_XPLAN.DISPLAY or AUTOTRACE. Also the result of this statement in SQL*Plus.show arraysize
    Because this is precisely what is going to be brought back with each round trip between the client (SQL*Plus) and the server.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • JMS Adapter Tuning in Oracle 10G SOA suite - Fixing the Errors

    Hi All,
    We are getting an error in Production environment while a BPEL process producing (enqueue) a message to a JMS queue by using JMS adapter. (partener link)
    The error is as follows.
    Adapter Framework unable to create outbound JCA connection.
    file:/sw/appnew/product/SOA/10.1.3/bpel/domains/default/tmp/.bpel_CurrenListJMSProducer_1.0_4ec528ec93a8a6ff0278fab9701dcc71.tmp/CurrenListJMSProducerV1.wsdl [ Produce_Message_ptt::Produce_Message(OutputParameters) ] - : The Adapter Framework was unable to establish an outbound JCA connection due to the following issue: oracle.j2ee.connector.proxy.ProxyInterceptException: javax.resource.ResourceException: RollbackException: Transaction has been marked for rollback: null [Caused by: RollbackException: Transaction has been marked for rollback: null]
    Please note that we are not getting this error every time,  few BPEL instances are getting this error, around 3 out of 10 instances.
    We are using Orcacle 10G SOA suite.
    The BPEL process will take the messages from Oracle Apps adapter and  send to the JMS queue, where we are getting error.
    I can see in the BPEL.xml  the "retryInterval" property set to '60' for both partner links (Apps adapter and JMS adapter).
    But not set any other values. So,these values may be default.
    We need to fix this issue soon.
    I am requesting you all the Experts and Gurus, please let me know what can be done to fix this issue.
    Thanks a lot in advance,
    John.

    Hi All,.
    Is there any work around for the above issue?
    I tried all the below JMS tunings, but not no improvement.
                <property name="useJCAConnectionPool">true</property>
                <property name="maxSizeJCAConnectionPool">500</property>
                <property name="retryMaxCount">10</property>
                <property name="retryInterval">60</property>
    Please let
    me know if any other logs or any other information is required in order to analyse the issue.
    Thanks,
    John

  • Automatic Checkpoint Tuning in Oracle 10g

    Hi ,
    How to confirm if the database has been configured for automatic checkpoint tuning...????
    Many thanks...
    Sim

    The log_checkpoint_timeout (default 1800) gives Oracle a time-based target, and the log_checkpoint_interval (default 0, meaning the action is based on the size of the current redo log file) give Oracle a 'volume-based' target.
    The target affects the rate at which the database writer writes dirty blocks to disk. Every three seconds the database writer wakes up and checks the tail-end of the checkpoint queue and writes out any blocks that were attached to the queue too far in the past.
    In this context, "too far in the past" means either "more seconds in the past than the[i] log_checkpoint timeout" or "made dirty by a change described in a redo block more than log_checkpoint_interval blocks back from the current block".
    If you set fast_start_mttr_target to a non-zero number of seconds then Oracle tries to treat that as a request to write out dirty blocks sufficiently rapidly that crash recovery will take no more than that number of seconds. In effect this makes Oracle change the internal value of log_checkpoint_interval and log_checkpoint_timeout dynamically every few seconds.
    Recoverty requires Oracle to apply the redo log from a known point - which means reading and applying a certain amount of redo to a number of "out of synch" blocks that have to be read from disk. So the fast_start_mttr_target code is constantly calculating how much redo would have to be read and applied, and how many data blocks would have to be read and fixed - and writing dirty blocks fast enough to make it possible to do that work within the given time limit.
    Setting the parameter to zero is (as it is with many numerical parameters) equivalent to not setting it at all. If you try to set the parameter to a very small value (say 30 seconds) you may end up finding lots of messages in your alert log saying something like: "I can't honour your request to recover in 30 seconds, the best I can do is XXX".
    Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    http://www.jlcomp.demon.co.uk

  • Easily Tuning Oracle XE 10g in Linux? (Seems to be crashing)

    +(This was previously posted on the General forum, but I was told that this might be a better one to post this question.)+
    I teach a very basic database concepts class at a community college. Rather than using Access to teach SQL, I am trying to use Oracle XE 10g because it is much more ANSI-compliant. I have Oracle XE setup on a Linux box (CentOS 5.3), and we are logging in through the APEX Web interface.
    I have a few questions:
    1.) Originally, I had it setup on a box with only 256 MB of RAM. It worked, but when I had all 18 of my students working with it concurrently, it repeatedly asked them for their username and password. It would work for a while, then ask again. Is this a sign of low RAM or of something else? I have upgraded it to 1 GB now, so I will see how it goes tomorrow.
    2.) Even with the 1 GB increase, I have noticed that I am down to 300 MB of free RAM when I login myself. Will 18 students really put a strain on the system? I need this to be available almost 24/7 because my students will be using it to create basic tables and creating SQL queries to act on those tables.
    3.) Having said all that, is there a quick and dirty way to simply tune the database to run better? Anything I can turn off, for example, because I am using the bare basics (18 users, using the APEX interface, creating and manipulating tables with no more than 100 rows per table, running basic queries on tables, etc.)?
    Thanks for any guidance.
    Jason

    JasonFree wrote:
    I am not familiar with SQL Developer.Desc: http://www.oracle.com/technology/products/database/sql_developer/index.html
    Demo: http://www.oracle.com/technology/products/database/sql_developer/files/obe.html (incl tutorials)
    Dnld: http://www.oracle.com/technology/software/products/sql/index.html
    >
    Would I still use XE but just the database itself? Yes.
    Would I turn off APEX (even though I don't know how)?Not necessary.
    >
    Could SQL Developer be used by the student at home? Yes.
    And is it extremely easy to install and use? Download, unzip & run
    Those are the primary reasons I am using APEX because, despite its weirdness, it is pretty easy to use for our purposes and they can access it from their home computers and work on basic development at any time.APEX is a great app development and app runtime platform (think MS Access done right :-) ) but is questionable as a basic SQL learning tool.

  • Easily Tuning Oracle XE 10g in Linux?

    I teach a very basic database concepts class at a community college. Rather than using Access to teach SQL, I am trying to use Oracle XE 10g because it is much more ANSI-compliant. I have Oracle XE setup on a Linux box (CentOS 5.3), and we are logging in through the APEX Web interface.
    I have a few questions:
    1.) Originally, I had it setup on a box with only 256 MB of RAM. It worked, but when I had all 18 of my students working with it concurrently, it repeatedly asked them for their username and password. It would work for a while, then ask again. Is this a sign of low RAM or of something else? I have upgraded it to 1 GB now, so I will see how it goes tomorrow.
    2.) Even with the 1 GB increase, I have noticed that I am down to 300 MB of free RAM when I login myself. Will 18 students really put a strain on the system? I need this to be available almost 24/7 because my students will be using it to create basic tables and creating SQL queries to act on those tables.
    3.) Having said all that, is there a quick and dirty way to simply tune the database to run better? Anything I can turn off, for example, because I am using the bare basics (18 users, using the APEX interface, creating and manipulating tables with no more than 100 rows per table, running basic queries on tables, etc.)?
    Thanks for any guidance.
    Jason

    Thanks for the reply.
    1.) Where are these logs? Sorry, but I am a total newbie.
    Is there a place where I can set the APEX timeout? Personally, I never had the problem previously, but once all my students logged in during class, I suddenly had the problem.
    2.) These are my current memory settings according to Oracle APEX:
    TARGET---CURRENT
    Maximum System Global Area (SGA) Size: 280 MB---280 MB
    Program Global Area (PGA) Aggregate Target: 92 MB---57 MB
    Current Configuration: (SGA + PGA): 372.25 MB---337 MB
    In Linux, my "free -m" reads as follows right now with only me logged in to APEX:
    TOTAL RAM: 1024
    USED RAM: 567
    FREE RAM: 456
    This is basically only with Oracle XE running.
    I just want to reiterate that I have not tried it with my students since I upgraded to 1 GB of RAM. When I tried it on Tuesday, I was using a 256 MB machine.

  • Tuning UNDO tablespace - 10g

    Hi,
    Currently my undo tablespace is 1GB (data file not set to autoextensible due to filesystem space constraint) and undo retention is 900 seconds.
    I'm facing alot of snapshot too old errors.
    I'm going to increase/tune tablespace size and also undo retention period. from the below query from gv$undostat, shud i set the maximun retention period of undo to the max query length? or only to the max query length there the ora-01555 error happens? how abt the tablespace sizing, how can i estimate.. please advise experts.
    Tuned Undo # Unexpired # Expired ORA-1555 Out-Of-space Max Query
    INST_ID BEGIN_TIME Retention Stolen Reused Error Error Length
    1 07/21/2008 11:12 49564 0 438 0 0 1421
    1 07/21/2008 11:22 2086 173 497 0 5 2022
    1 07/21/2008 11:32 2602 64 65 0 3 1768
    1 07/21/2008 11:42 3118 0 0 0 0 1847
    1 07/21/2008 11:52 3632 3 12 0 0 385
    1 07/21/2008 12:02 4146 2 17 0 0 572
    Tuned Undo # Unexpired # Expired ORA-1555 Out-Of-space Max Query
    INST_ID BEGIN_TIME Retention Stolen Reused Error Error Length
    1 07/21/2008 12:12 4659 57 60 0 0 32
    1 07/21/2008 12:22 5175 47 53 0 0 12
    1 07/21/2008 12:32 5690 0 43 0 0 105
    1 07/21/2008 12:42 6203 0 116 0 0 488
    1 07/21/2008 12:52 6719 0 116 0 0 1088
    1 07/21/2008 13:02 7231 0 330 0 0 1687
    1 07/21/2008 13:12 7743 0 229 0 0 2290
    1 07/21/2008 13:22 8248 13 393 0 0 666
    1 07/21/2008 13:32 8713 278 420 0 0 459
    1 07/21/2008 13:42 9180 170 288 1 0 1058
    1 07/21/2008 13:52 9650 286 335 2 0 1657
    1 07/21/2008 14:02 10141 51 273 2 0 733
    1 07/21/2008 14:12 10610 85 584 0 0 1389
    1 07/21/2008 14:22 10963 89 283 2 0 1716
    1 07/21/2008 14:32 12022 32 264 0 0 1598
    1 07/21/2008 14:42 10783 0 158 0 0 2918
    1 07/21/2008 14:52 11902 0 134 1 0 3519
    1 07/21/2008 15:02 13283 34 658 0 0 4121
    1 07/21/2008 15:12 12044 0 322 0 0 4722
    1 07/21/2008 15:22 2932 5 208 0 0 5322
    1 07/21/2008 15:32 3497 45 398 0 0 6200
    Tuned Undo # Unexpired # Expired ORA-1555 Out-Of-space Max Query
    INST_ID BEGIN_TIME Retention Stolen Reused Error Error Length
    1 07/21/2008 15:42 4071 8 489 0 0 6800
    1 07/21/2008 15:52 4637 386 494 0 5 7402
    1 07/21/2008 16:02 5209 200 812 0 1 7727
    1 07/21/2008 16:12 5775 319 568 1 7 1138
    1 07/21/2008 16:22 6345 3 1220 0 0 1740
    1 07/21/2008 16:32 6858 0 5575 0 0 98
    1 07/21/2008 16:42 7420 4 777 0 0 606
    1 07/21/2008 16:52 7952 32 1344 0 0 604
    1 07/21/2008 17:02 8293 0 6 0 0 43
    576 rows selected.

    Snapshot too old error's most useful solution is to raise the undo tablespace's size. I would raise it anyway, but i think you need to report your manager that you need to upgrade the system, indeed 900 seconds undo retention is not enough to your database.
    Simple logic, growing database, growing sql queries, decreasing or steady hardware and sizes? IMPOSSIBLE.

Maybe you are looking for

  • What characters are allowed in an Apple ID Password?

    My mom has "changed" her password because she said she was asked to when logging into Facetime. Now she can't log in. When I asked her what it was, she read to me and it had both a space and a period. I don't believe those are accepted. I tried to lo

  • JQuery modal region template in theme 24

    Please provide details how to use the JQuery modal region template in theme 24. I want to create a modal page but I am no expert in jquery or script. I am sure this template should make life easy but unable to find how to use it. Any help greatly app

  • SAP BPC 10.0. NW Currency Translation

    Hello, I am using BPC NW 801 SP04. In below script logic code, I am tring to make currency translation but getting same value as is in USD currency. Could anyone please help me what mistake I am doing in given below code. *SELECT(%REPORTING_CURRENCIE

  • JAAS & JGSSAPI 's Java version

    Hi, JAAS version info: http://java.sun.com/j2se/1.5.0/docs/guide/security/jaas/JAASRefGuide.html i would like to know in which Java version is JGSSAPI written? and if there a SPNEGO authentication API to validate the service ticket that was aquired w

  • Looking to collaborate with game developers ($500)

    Hey everyone - my name is Ayo. My company, Flypad turns your iPhone into a game controller. 30 Second demo here: https://vimeo.com/35823386 We're launching a freemium app for iPhone and Android, that will be a dedicated gamepad for 6 flash games. The