Execution of SQL statement 'alter tablespace PSAPSR3

Dear mastah,
I trying extend tablesapce at oracle, but not succesfully, and have problem,
maybe can help this issue..
error problem add tablespace:
BR0280I BRSPACE time stamp: 2014-01-06 10.27.31
BR0370I Directory /oracle/SID/sapreorg/semxnacf created
BR0280I BRSPACE time stamp: 2014-01-06 10.27.32
BR0319I Control file copy created: /oracle/SID/sapreorg/semxnacf/cntrlSID.old 99106816
BR0280I BRSPACE time stamp: 2014-01-06 10.27.32
BR1088I Extending tablespace PSAPSR3...
BR0280I BRSPACE time stamp: 2014-01-06 10.27.51
BR0301E SQL error -59 at location BrSqlExecute-1, SQL statement:
'/* BRSPACE */ alter tablespace PSAPSR3 add datafile '/oracle/SID/sapdata16/sr3_218/sr3.data218' size 4000M autoextend off'
ORA-00059: maximum number of DB_FILES exceeded
BR1017E Execution of SQL statement 'alter tablespace PSAPSR3 add datafile '/oracle/SID/sapdata16/sr3_218/sr3.data218' size 4000M autoextend off' failed
BR0669I Cannot continue due to previous warnings or errors - you can go back to repeat the last action
BR0280I BRSPACE time stamp: 2014-01-06 10.27.51
BR0671I Enter 'b[ack]' to go back, 's[top]' to abort:
regards,
amin

BR1088I Extending tablespace PSAPSR3...
BR0280I BRSPACE time stamp: 2014-01-06 10.27.51
BR0301E SQL error -59 at location BrSqlExecute-1, SQL statement:
'/* BRSPACE */ alter tablespace PSAPSR3 add datafile '/oracle/SID/sapdata16/sr3_218/sr3.data218' size 4000M autoextend off'
ORA-00059: maximum number of DB_FILES exceeded
$ oerr ora 59
00059, 00000, "maximum number of DB_FILES exceeded"
// *Cause:  The value of the DB_FILES initialization parameter was exceeded.
// *Action: Increase the value of the DB_FILES parameter and warm start.
$

Similar Messages

  • RMAN-11003: failure during parse/execution of SQL statement: alter session

    without doing any changes I have started getting the following error in the RMAN logs.
    i didnt any changes related to sort_area_size but getting the error below
    plz help guys
    RMAN logs
    =====================
    connected to recovery catalog database
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of allocate command at 12/03/2007 22:00:01
    RMAN-03014: implicit resync of recovery catalog failed
    RMAN-03009: failure of full resync command on default channel at 12/03/2007 22:00:01
    RMAN-11003: failure during parse/execution of SQL statement: alter session set sort_area_size=10485760
    ORA-00068: invalid value 10485760 for parameter sort_area_size, must be between 0 and 1

    Hi:
    It seems when you are starting RMAN it's executing some commands (one 'ALTER SESSION...'. It's seems to be a batch which has a bad value for SORT_AREA_SIZE. Find it and modify to a proper value as message shows. If you can't find start RMAN by calling directly the executable ($ORACLE_HOME/bin/rman or %ORACLE_HOME%/bin/rman.exe).

  • RMAN-10006: error running SQL statement: alter session set remote_dependenc

    Backups are failing with following error
    RMAN-00554: initialization of internal recovery manager package failed
    RMAN-12001: could not open channel default
    RMAN-10008: could not create channel context
    RMAN-10002: ORACLE error: ORA-00096: invalid value SIGNATURE for parameter remote_dependencies_mode, must be from among MANUAL, AUTO
    RMAN-10006: error running SQL statement: alter session set remote_dependencies_mode = signature
    Not able to change to signature
    SQL> alter session set remote_dependencies_mode=signature;
    ERROR:
    ORA-00096: invalid value SIGNATURE for parameter remote_dependencies_mode, must
    be from among MANUAL, AUTO
    I dont see MANUAL or AUTO as valid value for this parameter (http://download.oracle.com/docs/cd/B10501_01/server.920/a96536/ch1175.htm#1023124) DB version is 9.2.0
    Parameter type
    String
    Syntax
    REMOTE_DEPENDENCIES_MODE = {TIMESTAMP | SIGNATURE}
    Default value
    TIMESTAMP
    Parameter class
    Dynamic: ALTER SESSION, ALTER SYSTEM
    =======================================
    I believe it could be because of following bug
    "A PRE-PATCHED ORACLE IMAGE CAN BE INSTALLED IN MEMORY "
    Refer: "https://metalink2.oracle.com/metalink/plsql/f?p=130:15:1613505143885559758::::p15_database_id,p15_docid,p15_show_header,p15_show_help,p15_black_frame,p15_font:BUG,4610411,1,1,1,helvetica"
    I appreciate your effort in fixing this issue.
    Edited by: user10610722 on Nov 25, 2008 4:37 PM

    Hi:
    It seems when you are starting RMAN it's executing some commands (one 'ALTER SESSION...'. It's seems to be a batch which has a bad value for SORT_AREA_SIZE. Find it and modify to a proper value as message shows. If you can't find start RMAN by calling directly the executable ($ORACLE_HOME/bin/rman or %ORACLE_HOME%/bin/rman.exe).

  • Time of execution of SQL statement

    Hi,
    I executed some DML statements and Select statements as user SYS for user U1. How can I find the time of execution of these statements?
    Regards,
    Mathew

    You have a couple of options to time queries.
    SET TIMING ON has already been mentioned. I'll add that spooling the session to a file helps keep those timings for later reference.
    You can use DBMS_UTILITY.GET_TIME to get start and end times in microseconds for PL/SQL evaluation. DBMS_PROFILER will time lines of PL/SQL code as they execute. Trace/tkprof has also already been mentioned, although tkrpof times tend to vary a bit between reported and real times and don't take OS activity into account as much as the other timings do.

  • Connecting strings for execution as SQL-Statement

    Hello to all.
    I've the problem, that I want to write a package which handels occuring erros as far as possible automatically.
    One part is to recompile invalid objects.
    I can find all these objects by useing the following cursor:
    CURSOR curInvalidObjects
    IS SELECT OBJECT_TYPE, OWNER, OBJECT_NAME
              from dba_objects a
              where STATUS = 'INVALID' and
              OWNER = 'BESECKE' AND
              OBJECT_TYPE in ( 'PACKAGE BODY',
    'PACKAGE', 'FUNCTION', 'PROCEDURE',
    'TRIGGER', 'VIEW' )
              order by OWNER, OBJECT_TYPE, OBJECT_NAME;
    After opening the cursor I can go trough the records and recompile the objects with something like this:
    alter || recInvalidObjects.OBJECT_TYPE || ' '
    || recInvalidObjects.OWNER || '.' ||
    recInvalidObjects.OBJECT_NAME || compile;
    But that does not work. In this way I can't get any executable SQL-Statement. It just becomes a string, but it's not executable.
    I think it's a simple problem, but I tried to find anything about executable stings in the documentation I have, and I could not find anything. So can anybody give me a short hint, how to create an executable statement?
    Thanks a lot.
    Susanne Saalmann

    If you just recompile without taking the correct order of compilation into account, you will have to run your statement a couple of times. This script solves that:
    SET HEADING OFF
    SET FEEDBACK OFF
    SET PAGES 9999
    SET TIMING OFF
    SET TERMOUT ON
    COLUMN noprn NOPRINT
    SPOOL comp.sql
    SELECT 'ALTER '||
    DECODE( o.object_type, 'PACKAGE BODY', 'PACKAGE', o.object_type)||
    ' '||decode(o.object_type,'JAVA CLASS','"',null)||
    o.object_name || decode(o.object_type,'JAVA CLASS','"',null)||
    ' COMPILE '||
    DECODE( o.object_type, 'PACKAGE BODY', 'BODY;', ';'),
    COUNT( d.name ) noprn
    FROM user_objects o,
    user_dependencies d
    WHERE o.object_name = d.referenced_name(+)
    AND o.object_type = d.referenced_type(+)
    AND o.status = 'INVALID'
    GROUP BY o.object_name, o.object_type
    ORDER BY noprn DESC
    SPOOL OFF
    SET HEADING ON
    SET FEEDBACK ON
    SET PAGES 14
    START comp.sql
    SHOW USER
    SELECT object_type, status, count(*)
    FROM user_objects
    GROUP BY object_type, status

  • First execution of sql statements is slow every morning

    Dears,
    we are running an oracle11g database (HP-UX Itanium) and have the following problem:
    Every morning the first execution of statements is very slow.
    After the first execution the statements are running fine.
    Does anyone have an idea where this can come from?
    Is it possible that the cache (shared pool, etc.) will be deleted every night (for example when new statistics are generated or something else)?
    Regards,
    Ilja

    I think you are close to answering your question.
    As you know, Oracle 11g has an automated job to run performance stats every night at approx. 10:00pm (until 2:00am).
    This is run by the dbms_scheduler.
    This could be causing the shared_pool to be flushed because it certainly uses it a lot. I have to manually flush the shared_pool every night in one of my databases before this job runs otherwise I get an ORA-01461.
    But, what I'm surprised is that you have this problem only in the morning.
    It seems you would want to pin your SQL in memory and perhaps set a profile for your execution.
    You don't bounce your database every night, do you?

  • Tablespace PSAPSR3 is already in backup status

    Hi!
    I have planed an ALL-ONLINE Backup from DB13.
    What does it mean and how can I proceed to backuo these tablespaces?
    Here is the error I am getting:
    BR0328E Database file E:\ORACLE\DEV\SAPDATA1\SR3_1\SR3.DATA1 of tablespace PSAPSR3 is already in backup status
    BR0328E Database file E:\ORACLE\DEV\SAPDATA1\SR3_2\SR3.DATA2 of tablespace PSAPSR3 is already in backup status
    And second question:
    <b>Which form should have the parameter stage_root_dir, if a do a backup from windows to unix via FTP?</b>
    stage_root_dir=SAP/backup or
    stage_root_dir=SAP\backup
    Thank you very much
    regards

    Hi ,
    Are you taken backup successfully , if not pls check below things.
    1,tablespace PSAPSR3 is already in backup status is caused last backup is not success.
    pls check if any backup is running or not
    ps -ef|grep brbackup .
    2 , check any lock file is created under oracl/SID/sapbackup if s remove lock file from the directory .
    3 , login into DB
    > sqlplus /nolog
    SQL*Plus: Release 10.2.0.4.0 - Production on Tue Oct 19 14:57:23 2010
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    SQL> connect /as sysdba
    Connected.
    SQL>  select status from v$backup;
    check the status it should not be ACTIVE .
    from your case Tablespace PSAPSR3 is already in backup status so login into DB
    > sqlplus /nolog
    SQL*Plus: Release 10.2.0.4.0 - Production on Tue Oct 19 14:57:23 2010
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    SQL> connect /as sysdba
    Connected.
    alter tablespace PSAPSR3 end backup;
    SQL> alter tablespace PSAPSR3 end backup;
    Tablespace altered.
    SQL> select status from v$backup;
    STATUS
    NOT ACTIVE
    NOT ACTIVE
    NOT ACTIVE
    NOT ACTIVE
    NOT ACTIVE
    NOT ACTIVE
    NOT ACTIVE
    NOT ACTIVE
    NOT ACTIVE
    NOT ACTIVE
    NOT ACTIVE
    STATUS
    NOT ACTIVE
    NOT ACTIVE
    NOT ACTIVE
    NOT ACTIVE
    NOT ACTIVE
    NOT ACTIVE
    NOT ACTIVE
    NOT ACTIVE
    NOT ACTIVE
    NOT ACTIVE
    NOT ACTIVE
    STATUS
    NOT ACTIVE
    NOT ACTIVE
    NOT ACTIVE
    NOT ACTIVE
    NOT ACTIVE
    NOT ACTIVE
    NOT ACTIVE
    NOT ACTIVE
    NOT ACTIVE
    NOT ACTIVE
    NOT ACTIVE
    STATUS
    NOT ACTIVE
    NOT ACTIVE
    NOT ACTIVE
    NOT ACTIVE
    NOT ACTIVE
    NOT ACTIVE
    NOT ACTIVE
    NOT ACTIVE
    41 rows selected.
    SQL>
    After complete the above activity pls fire the backup .
    It might be resolve your issue .

  • Tablespace PSAPSR3  is 100% used

    hi Dear,
    the PSAPSR3 tablespace is used 100% full as you can see following
    BR0280I BRSPACE time stamp: 2010-09-19 23.17.59
    BR0659I List menu 259 + you can select one or more entries
    List of database tablespaces
    Pos.  Tablespace     Type  Status    ExtMan.  SegMan.  Backup  Files/AuExt.
          Total[KB]   Used[%]    Free[KB]  MaxSize[KB]  ExtSize[KB]  FreeExt.    Lar
    gest[KB]
      1 - PSAPSR3        DATA  ONLINE    LOCAL    AUTO      NO        14/14
         143360000     92.85    10246784    143360000            0        13     406
    3232:4061184:2113472:960:960
      2 - PSAPSR3700     DATA  ONLINE    LOCAL    AUTO      NO        13/13
          67072000     99.49      345088    133120000     66048000        14     684
    0320+:5263360+:5222400+:4997120+:4956160+
      3 - PSAPSR3USR     DATA  ONLINE    LOCAL    AUTO      NO         1/1
             30720     22.50       23808     10240000     10209280         1    1020
    9280+:23808:0:0:0
      4 - PSAPTEMP       TEMP  ONLINE    LOCAL    MANUAL    NO         1/1
           6481920      0.00     6481920     10240000      3758080         0     375
    8080+:0:0:0:0
      5 - PSAPUNDO       UNDO  ONLINE    LOCAL    MANUAL    NO         1/1
           9072640      0.00     9072576     10240000      1167360       515     406
    3232:1167360+:925632:589824:573440
      6 - SYSAUX         DATA  ONLINE    LOCAL    AUTO      NO         1/1
            983040     95.24       46784     10240000      9256960       118     925
    6960+:7104:3072:2048:1088
      7 - SYSTEM         DATA  ONLINE    LOCAL    MANUAL    NO         1/1
            870400     99.16        7296     10240000      9369600         3     936
    9600+:7104:128:64:0
    how can i increase the tablespace with brtools or sap tcode?
    is it better to increase the tablespace or add a new?
    Regards,
    majamil

    Dear,
    FYI....
    the previous value of tablesapce PSAPSR3 was following
    Pos. Tablespace Files/AuExt. Total[KB]   Used[%]  Free[KB] MaxSize[KB]
    1 - PSAPSR3 13/13    133120000           99.99 8896         133120000
    2 - PSAPSR3700 13/13 67072000 99.49 345088 133120000
    3 - PSAPSR3USR 1/1 30720 22.50 23808 10240000
    4 - PSAPTEMP 1/1 6481920 0.00 6481920 10240000
    5 - PSAPUNDO 1/1 9072640 0.00 9072576 10240000
    6 - SYSAUX 1/1 983040 95.14 47808 10240000
    7 - SYSTEM 1/1 870400 99.16 7296 10240000
    i have put these value during tablespace extention mean with 10 GB
    Options for extension of tablespace PSAPSR3 (1. file)
    1 * Last added file name (lastfile) ....... [G:\ORACLE\PRD\SAPDATA2\SR3_13\SR3.
    DATA13]
    2 * Last added file size in MB (lastsize) . [10000]
    3 - New file to be added (file) ........... [G:\oracle\PRD\sapdata2\sr3_14\sr3.
    data14]
    4 # Raw disk / link target (rawlink) ...... []
    5 - Size of the new file in MB (size) ..... [10000]   // default vlaue
    6 - File autoextend mode (autoextend) ..... [yes]
    7 ? Maximum file size in MB (maxsize) ..... []  default setting
    7 - Maximum file size in MB (maxsize) ..... [10000] //  extended size (10GB)
    8 - File increment size in MB (incrsize) .. [20]
    9 - SQL command (command) ................. [alter tablespace PSAPSR3 add dataf
    ile 'G:\oracle\PRD\sapdata2\sr3_14\sr3.data14' size 10000M autoextend on next 20l
    M maxsize 10000M]
    now current tablespace PSAPSR3 is
    Pos.  Tablespace     Type  Status    ExtMan.  SegMan.  Backup  Files/AuExt.
          Total[KB]   Used[%]    Free[KB]  MaxSize[KB]  ExtSize[KB]  FreeExt.    Lar
    gest[KB]
      1 - PSAPSR3        DATA  ONLINE    LOCAL    AUTO      NO        14/14
         143360000     92.85    10247808    143360000            0        13     406
    above procedure is ok mean i increased the 10GB space for PSAPSR3 if not then guide me.
    which size will be recommended for extending the Tablespaces PSAPSR3 and others ???.
    Regards,

  • SQL Statement / index on function ??

    Hello
    My environment is : Oracle 9.2.0.7
    In "top sql sessions" I obtained that sql statement as below consumes many ressources.
    When I use "SQL Analyzer" ... no recommandation was specified but I wonder if an index on function may be use to optimize this request.
    I'd like to have your opinion on how to optimize this kind of request :
    SELECT trim(CARD_NUMBER) as CARD_NUMBER,
    trim(CUSTOMER.CLIENTS.CUSTOMER_ID) as CUSTOMER_ID,
    trim(LASTNAME) as LASTNAME,
    trim(FIRSTNAME) as FIRSTNAME,
    trim(EMAIL) as EMAIL,
    FROM CUSTOMER.CARTES, CUSTOMER.CLIENTS
    WHERE CUSTOMER.CARTES.CUSTOMER_ID = CUSTOMER.CLIENTS.CUSTOMER_ID
    AND trim(CUSTOMER.CARTES.CARD_NUMBER) = '1234567890'
    AND (trim(CUSTOMER.CLIENTS.POST_CODE)='12345')
    Plan execution is :
    SQL STATEMENT :
    JOIN
    TABLE ACCESS (FULL) CUSTOMER.CARTES
    TABLE ACCESS (FULL) CUSTOMER.CLIENTS
    Many thanks for any help.
    Regards,
    Guillaume

    AND trim(CUSTOMER.CARTES.CARD_NUMBER) =
    '1234567890'
    AND (trim(CUSTOMER.CLIENTS.POST_CODE)='12345')Yea function based index on trim(CUSTOMER.CARTES.CARD_NUMBER) and trim(CUSTOMER.CLIENTS.POST_CODE) might help.
    BUT I suggest to correct data insertion app and insert already trimmed data in your table to avoid such ugly queries.
    Gints Plivna
    http://www.gplivna.eu

  • Hot backup : Rman vs. ALTER TABLESPACE...BEGIN BACKUP

    Dear Experts,
    I'm currently using the following statements
    - ALTER TABLESPACE (...) BEGIN BACKUP
    - host ocopy (...)
    - ALTER TABLESPACE (...)END BACKUP state
    I'm going for rman now but I've got 2 questions for those who did that in the past:
    1/ Will rman reduce the size of my hotbackup ?
    2/ Does the hot backup run faster using rman ?
    Thanks.
    Best Regards,
    Jerome

    1/ Will rman reduce the size of my hotbackup ? rman backup only those blocks which get accessed by oracle, means it doesn't copy the empty blocks as a part of backup as your OS copy command does. So yeah, the size of the backup will be smaller if there are huge datafiles but with comparably less data. Moreover if you are on 10g then you can use compressed backupset feature which will compress the backupsets.
    2/ Does the hot backup run faster using rman ?
    By using rman, there is no need to put every tablespace in backup mode, you can run the backup in parallel by allocating multiple channels, on 10g you can use block change tracking feature to speed up your incremental backups AND as explained in point 1 there is no need to copy the whole datafile. These all are the benefits of RMAN and I can't make a state statement that by all this the backup will run faster but will definitely go for it.
    Daljit Singh

  • How to execute SQL statement with oracle jdev

    Please I'm a beginner in oracle jdeveloper. I want to know how to use and execute sql statememt within oracle Jdeveloper 10 g release 3 to manipulate objects in oracle database. I want for e.g. to Enable/disable trigger using sql statement "ALTER TRIGGER trigername DISABLE" explicitly. Please tell me how to proceed.
    i am sure you can help me
    Sincerly yours.

    Hi,
    Using following tutorial http://www.oracle.com/technology/obe/ADF_tutorial_1013/10131/index.htm
    you will found how to connect from Jdev to a database (chapter 1 or 2 ?). Then you just have to go under Tool>SQL*Plus or Tools>SQL Worksheet depending on what you need.
    Luck,
    Tif

  • Altering tablespace offline

    I have put tablespace with rollback segments to
    the offline state:
    alter tablespace rollbck offline normal;
    When I tried to view its status:
    select tablespace_name,status from dba_tablespaces;
    ORA-00376 occured, that means file cannot be read at this time, with the file belonging to the offline tablespace.
    So, when the tablespace is offline I can not even
    check its state?

    Query the dba_data_files and check the datafiles(for the rollbck tablespace) if they are offline. If not make them offline and then try out your statement
    select tablespace_name,status from dba_tablespaces;

  • Alter tablespace command problem (sql statement))

    Hello,
    I have a table space named t_space2.
    I wanna add a datafile for this tablespace so I wrote on sql the following:
    Alter tablespace t_space2
    add datafile 'D:\DATA\cust.dat'
    size 30 M;
    it gives me the following message:
    table space t_space2 doesn't exist!!!
    the tablespace exsits on dba_tablespaces.
    Thank u in advance
    null

    Hi,
    the reason may be that one:
    You created the tablespace with a command like that:
    CREATE TABLESPACE "goofy"
    DATAFILE 'E:\ORADB8I\ORADATA\WARPING\GOOFY_01.dbf' SIZE 5M REUSE
    DEFAULT STORAGE ( INITIAL 80K NEXT 80K MINEXTENTS 1 MAXEXTENTS UNLIMITED PCTINCREASE 1 )Using the quotes, You've indicated to the DB to use the name exaclty as written, so in lower cases.
    Because of that, every time You need to refere to the tablespace, but the same is for tables or column names, Youve to use the name "goofy" intead of goofy or GOOFY.
    This is used to permit to the user, if it is necessary to the application, to use a field name that may be:
    "Total Amount Field"
    I believe that this is the rela reason.
    Bye Max
    null

  • Multiple Executions Plans for the same SQL statement

    Dear experts,
    awrsqrpt.sql is showing multiple executions plans for a single SQL statement. How is it possible that one SQL statement will have multiple Executions Plans within the same AWR report.
    Below is the awrsqrpt's output for your reference.
    WORKLOAD REPOSITORY SQL Report
    Snapshot Period Summary
    DB Name         DB Id    Instance     Inst Num Release     RAC Host
    TESTDB          2157605839 TESTDB1               1 10.2.0.3.0  YES testhost1
                  Snap Id      Snap Time      Sessions Curs/Sess
    Begin Snap:     32541 11-Oct-08 21:00:13       248     141.1
      End Snap:     32542 11-Oct-08 21:15:06       245     143.4
       Elapsed:               14.88 (mins)
       DB Time:               12.18 (mins)
    SQL Summary                            DB/Inst: TESTDB/TESTDB1  Snaps: 32541-32542
                    Elapsed
       SQL Id      Time (ms)
    51szt7b736bmg     25,131
    Module: SQL*Plus
    UPDATE TEST SET TEST_TRN_DAY_CL = (SELECT (NVL(ACCT_CR_BAL,0) + NVL(ACCT_DR_BAL,
    0)) FROM ACCT WHERE ACCT_TRN_DT = (:B1 ) AND TEST_ACC_NB = ACCT_ACC_NB(+)) WHERE
    TEST_BATCH_DT = (:B1 )
    SQL ID: 51szt7b736bmg                  DB/Inst: TESTDB/TESTDB1  Snaps: 32541-32542
    -> 1st Capture and Last Capture Snap IDs
       refer to Snapshot IDs witin the snapshot range
    -> UPDATE TEST SET TEST_TRN_DAY_CL = (SELECT (NVL(ACCT_CR_BAL,0) + NVL(AC...
        Plan Hash           Total Elapsed                 1st Capture   Last Capture
    #   Value                    Time(ms)    Executions       Snap ID        Snap ID
    1   2960830398                 25,131             1         32542          32542
    2   3834848140                      0             0         32542          32542
    Plan 1(PHV: 2960830398)
    Plan Statistics                        DB/Inst: TESTDB/TESTDB1  Snaps: 32541-32542
    -> % Total DB Time is the Elapsed Time of the SQL statement divided
       into the Total Database Time multiplied by 100
    Stat Name                                Statement   Per Execution % Snap
    Elapsed Time (ms)                            25,131       25,130.7     3.4
    CPU Time (ms)                                23,270       23,270.2     3.9
    Executions                                        1            N/A     N/A
    Buffer Gets                               2,626,166    2,626,166.0    14.6
    Disk Reads                                      305          305.0     0.3
    Parse Calls                                       1            1.0     0.0
    Rows                                        371,735      371,735.0     N/A
    User I/O Wait Time (ms)                         564            N/A     N/A
    Cluster Wait Time (ms)                            0            N/A     N/A
    Application Wait Time (ms)                        0            N/A     N/A
    Concurrency Wait Time (ms)                        0            N/A     N/A
    Invalidations                                     0            N/A     N/A
    Version Count                                     2            N/A     N/A
    Sharable Mem(KB)                                 26            N/A     N/A
    Execution Plan
    | Id  | Operation                    | Name            | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | UPDATE STATEMENT             |                 |       |       |  1110 (100)|          |
    |   1 |  UPDATE                      | TEST            |       |       |            |          |
    |   2 |   TABLE ACCESS FULL          | TEST            |   116K|  2740K|  1110   (2)| 00:00:14 |
    |   3 |   TABLE ACCESS BY INDEX ROWID| ACCT            |     1 |    26 |     5   (0)| 00:00:01 |
    |   4 |    INDEX RANGE SCAN          | ACCT_DT_ACC_IDX |     1 |       |     4   (0)| 00:00:01 |
    Plan 2(PHV: 3834848140)
    Plan Statistics                        DB/Inst: TESTDB/TESTDB1  Snaps: 32541-32542
    -> % Total DB Time is the Elapsed Time of the SQL statement divided
       into the Total Database Time multiplied by 100
    Stat Name                                Statement   Per Execution % Snap
    Elapsed Time (ms)                                 0            N/A     0.0
    CPU Time (ms)                                     0            N/A     0.0
    Executions                                        0            N/A     N/A
    Buffer Gets                                       0            N/A     0.0
    Disk Reads                                        0            N/A     0.0
    Parse Calls                                       0            N/A     0.0
    Rows                                              0            N/A     N/A
    User I/O Wait Time (ms)                           0            N/A     N/A
    Cluster Wait Time (ms)                            0            N/A     N/A
    Application Wait Time (ms)                        0            N/A     N/A
    Concurrency Wait Time (ms)                        0            N/A     N/A
    Invalidations                                     0            N/A     N/A
    Version Count                                     2            N/A     N/A
    Sharable Mem(KB)                                 26            N/A     N/A
    Execution Plan
    | Id  | Operation                    | Name         | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | UPDATE STATEMENT             |              |       |       |     2 (100)|          |
    |   1 |  UPDATE                      | TEST         |       |       |            |          |
    |   2 |   TABLE ACCESS BY INDEX ROWID| TEST         |     1 |    28 |     2   (0)| 00:00:01 |
    |   3 |    INDEX RANGE SCAN          | TEST_DT_IND  |     1 |       |     1   (0)| 00:00:01 |
    |   4 |   TABLE ACCESS BY INDEX ROWID| ACCT         |     1 |    26 |     4   (0)| 00:00:01 |
    |   5 |    INDEX RANGE SCAN          | INDX_ACCT_DT |     1 |       |     3   (0)| 00:00:01 |
    Full SQL Text
    SQL ID       SQL Text
    51szt7b736bm UPDATE TEST SET TEST_TRN_DAY_CL = (SELECT (NVL(ACCT_CR_BAL, 0) +
                  NVL(ACCT_DR_BAL, 0)) FROM ACCT WHERE ACCT_TRN_DT = (:B1 ) AND PB
                 RN_ACC_NB = ACCT_ACC_NB(+)) WHERE TEST_BATCH_DT = (:B1 )Your input is highly appreciated.
    Thanks for taking your time in answering my question.
    Regards

    Oracle Lover3 wrote:
    Dear experts,
    awrsqrpt.sql is showing multiple executions plans for a single SQL statement. How is it possible that one SQL statement will have multiple Executions Plans within the same AWR report.If you're using bind variables and you've histograms on your columns which can be created by default in 10g due to the "SIZE AUTO" default "method_opt" parameter of DBMS_STATS.GATHER__STATS it is quite normal that you get different execution plans for the same SQL statement. Depending on the values passed when the statement is hard parsed (this feature is called "bind variable peeking" and enabled by default since 9i) an execution plan is determined and re-used for all further executions of the same "shared" SQL statement.
    If now your statement ages out of the shared pool or is invalidated due to some DDL or statistics gathering activity it will be re-parsed and again the values passed in that particular moment will determine the execution plan. If you have skewed data distribution and a histogram in place that reflects that skewness you might get different execution plans depending on the actual values used.
    Since this "flip-flop" behaviour can sometimes be counter-productive if you're unlucky and the values used to hard parse the statement leading to a plan that is unsuitable for the majority of values used afterwards, 11g introduced the "adaptive" cursor sharing that attempts to detect such a situation and can automatically re-evaluate the execution plan of the statement.
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • Find start and end execution time of a sql statement?

    I am have databases with 10.2.0.3 and 9.2.0.8 on HP UNIX 11i and Windows 200x.
    I am not in a position to turn on sql tracing in production environment. Yet, I want to find when a sql statement started executing and when it ended. When I look at v$sql, it has information such FIRST_LOAD_TIME, LAST_LOAD_TIME etc. No where it has information last time statement began execution and when it ended execution.. It shows no of executions, elapsed time etc, but they are cumulative. Is there a way to find individual times (time information each time a sql statement was executed. – its start time, its end time ….)? If I were to write my own program how will I do it?
    Along the same line, when an AWR snapshot is shown, does it only include statements executed during that snapshot or it can have statements from the past if they have not been flushed from shared memory. If it only has statements executed in the snapshot period, how does it know when statement began execution?

    Hi,
    For oracle 10g you can use below query to find start and end time, you can see data for last seven days.
    select min(to_char(a.sample_time,'DD-MON-YY HH24:MI:SS')) "Start time", max(to_char(a.sample_time,'DD-MON-YY HH24:MI:SS')) "End Time", b.sql_text
    from dba_HIST_ACTIVE_SESS_HISTORY a,DBA_HIST_SQLTEXT b where
    a.sql_id=b.sql_id
    order by 1;
    Regards
    Jafar

Maybe you are looking for

  • Error  -- Result Code -54 HELP PLEASE!!!!!!

    I've been recording 10-20 minute stories on my macbook for a while now (I'm an elementary school teacher) and today I recorded a 45 min interview. I opened the new track and picked the real audio option and saved it to the desktop. I began to record

  • Migrating forms 6i to oracle 9i

    Hello, I am currently running an Oracle 8.0.5 Database about 1.2 GigaBytes in size on a Novell 5.1 server. 1) I want to migrate to a Linux Red Hat 8 Server (I know that I have to upgrade to Linus Red Hat Enterprise 3 (ES)) No questions about that. 2)

  • CS3 Malfunctionging Badly~!~!~!

    MAX OS `10.5.8 PLEase excuse me. I AM NOT TYPING lower AND UPPER Case letters.... THIS ALL STarted in InDesign. `1. It ALL STarted just A LITTLE BIT ago.... and you cAN SEE HOW IT IS adding the ' thAT I am ALSO NOT TYPING IN and ADDING THE ~! SYMBOLS

  • Load approvers, solicitors & workflows to the CUP (SAP GRC AC 5.3)

    Hello, I want to know if there is a way to load the approvers, solicitors & workflows to the CUP (SAP GRC AC 5.3) massively. Best Regards. Pablo Mortera.

  • Flash in PDF?

    Is there any way to get flash content into a form made with LiveCycle designer. Is there a way to open it in acrobat and have it editable enought to insert a swf if not in LiveCycle? Short story is I want to drop a colorpicker into the form, and I ca