Delete command was hanged

Hi all,
I have a one problem while execute the job.
We execute the job every day in offline (after 10pm).
We find out a delete command not worked. it hangs.
Our database is 11g r2.
The delete command is
DELETE FROM tab1
WHERE
col1= :B1
But whenever i put a same job after analyzing the table its works fine.
if i did't put a analyze then this won't work.
the delete command will delete the more then 30000 every day and inserted again.
we will put a database analyze on every week without fail.
can you pls suggest ur idea's to solve the issue.
because i won't analyze every day .
Regards,
reshu.

From your description of the command 'hanging' I would suspect that Oracle has chosen an execution plan that is not a correct fit for your data profile because the statistics are incorrect or non-existent.
Check out these threads:
{message:id=1812597}
{thread:id=863295}
You may want to consider fixing statistics on this table (sounds like you do a delete and insert every day). However it's tough to say without knowing the impact it might have on other SQL statements as well as without knowing the volatility of this table.

Similar Messages

  • Understanding the dataadapter.delete command

    I'm new to ADO and ODP so forgive me if I'm missing the obvious. I want to do a simple delete from the database. The problem is I feel like I have to issue the delete command twice. The code I've posted blow works but I don't understand why. I create two commands one a select command the second a delete command. I apply these commands to a dataadapter and then use dataadapter .fill() to get a dataset.
    Great it works fine up to this point. The problem was when I called dataadapter.update nothing would happen. The delete command was ignored. So I looped through the resulting dataset and deleted the record from there. Then I called dataadapter.update and it worked. I tried not setting the dataadapter.deletecommand but then update failed.
    Now my question is: Is it always necessary to delete from a dataset as well as issue a delete command or is there a way of issuing just one delete command? Is it possible to simplify my code?
    Any suggestions or help greatly appreciated.
    Drew
    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
    Dim oradb As String = "Data Source=vulcan.world;User Id=adowling;Password=aragon;"
    Dim conn As New OracleConnection(oradb)
    Dim cmd As New OracleCommand
    Dim cmd2 As New OracleCommand
    Dim orada As New OracleDataAdapter
    Dim dsLog As New DataSet
    Dim drDelete As DataRow
    Dim myCol As DataColumn
    Dim dcPK(1) As DataColumn
    Dim i As Integer
    Dim rc As DataRowCollection
    Dim pSDEWorkspace As IWorkspaceFactory2
    Try
    conn.Open()
    cmd.Connection = conn
    cmd.CommandText = "select * from t.reconcile_log"
    cmd.CommandType = CommandType.Text
    orada.SelectCommand = cmd
    cmd2.Connection = conn
    cmd2.CommandText = "delete from t.reconcile_log where objectid = " + TextBox1.Text
    cmd2.CommandType = CommandType.Text
    orada.DeleteCommand = cmd2
    orada.Fill(dsLog, "Reconcile_Log")
    orada.MissingSchemaAction = MissingSchemaAction.AddWithKey
    myCol = dsLog.Tables("Reconcile_Log").Columns.Item(dsLog.Tables("Reconcile_Log").Columns.IndexOf("OBJECTID"))
    dcPK(0) = myCol
    dsLog.Tables("Reconcile_Log").PrimaryKey = dcPK
    drDelete = dsLog.Tables("Reconcile_Log").Rows.Find(TextBox1.Text)
    drDelete.Delete()
    orada.Update(dsLog, "Reconcile_Log")
    ListBox1.Items.Clear()
    rc = dsLog.Tables("Reconcile_Log").Rows
    For i = 0 To rc.Count - 1
    ListBox1.Items.Add(Convert.ToString(rc.Item(i).Item(0)) + " " + rc.Item(i).Item(1) + " submitted " + rc.Item(i).Item(2) + " on " + rc.Item(i).Item("submitted"))
    Next i
    Catch ex As OracleException
    Select Case ex.Number
    Case 1
    MessageBox.Show("Error attempting to insert duplicate data.")
    Case 12545
    MessageBox.Show("The database is unavailable.")
    Case 904
    MessageBox.Show("invalid type")
    Case Else
    MessageBox.Show("Database error: " + ex.Message.ToString())
    End Select
    Catch ex As Exception
    MessageBox.Show(ex.ToString)
    Finally
    conn.Close()
    conn.Dispose()
    End Try
    End Sub

    Because the dataset is disconnected from the database. This allows you to load some data (into your dataset), disconnect from the network or whatever, make whatever changes you like and have none of this affect the data in the database until you issue the update.
    If you actually want to have your changes applied immediately then you can (assuming your application is constantly connected of course). Don't bother with a dataset/data adaptor at all. For example set up the sql select statement, assign it to a reader, execute the reader, store the rows returned in some custom objects or whatever. Make some changes and then use executeNonQuery to apply the updates, either one at a time or as a batch using array binding. There is a samples folder where you installed ODP.NET, have a look at some of the others.

  • The PL/SQL command (select/update) was hanged for long time

    We have a proc program to access a 160 rows table (F_TRDATA), however, it always hanged for a long time, then it was retarted by our defence process.
    (1)Table structure:
    SQL> desc F_TRDATA;
    Name Null? Type
    SCP_NBR NUMBER
    A_INDEX NUMBER
    A_BITMAP LONG
    SQL> select index_name, column_name from user_ind_columns where TABLE_NAME='F_TRDATA';
    INDEX_NAME
    COLUMN_NAME
    I_F_TRDATA
    SCP_NBR
    I_F_TRDATA
    A_INDEX
    (2)Use DBLINK between two different machines:
    LONG rtc;
    char f_tabname[100];
    EXEC SQL BEGIN DECLARE SECTION;
    char srvname[100];
    char dblink_name[100];
    EXEC SQL END DECLARE SECTION;
    sprintf(srvname,"%s",(const char*)STRING(INOBJECT::srvname).ToUpper());
    EXEC SQL SELECT DB_LINK INTO :dblink_name FROM ALL_DB_LINKS WHERE OWNER=:srvname;
         db.setLastSqlCode(sqlca.sqlcode);
         if (sqlca.sqlcode!=0)
              TRACE("SELECT DB_LINK error "<<sqlca.sqlerrm.sqlerrmc)
              return VAL_ERROR;
         else
              TRACE("SELECT DB_LINK OK");
    sprintf(f_tabname,"F_%s@%s",(const char*)STRING(parent->getClassName()),(const char*)STRING(dblink_name));
    TRACE_SHOW(f_tabname);
    rtc=get_free_ri(f_tabname);
    EXEC SQL COMMIT;
    (3)get_free_ri ():
    memset(s_ln,0,800);
    sprintf(s_ln,"SELECT A_BITMAP FROM %s WHERE A_INDEX=:a AND SCP_NBR=:b \
              FOR UPDATE OF A_BITMAP",tab);
    EXEC SQL PREPARE S FROM :s_ln;
    if (sqlca.sqlcode)
    {TRACE(""<<s_ln);
    TRACE(""<<sqlca.sqlerrm.sqlerrmc);
    EXEC SQL DECLARE C_FREE_RI CURSOR FOR S;
    if (sqlca.sqlcode) {TRACE("DECLARE C_FREE_RI : "<<sqlca.sqlerrm.sqlerrmc)};
    memset(s_ln,0,800);
    sprintf(s_ln,"UPDATE %s SET A_BITMAP=:a WHERE A_INDEX=:b AND SCP_NBR=:c",
         tab);
    EXEC SQL PREPARE S FROM :s_ln;
    EXEC SQL EXECUTE S USING :bitmap,:rand_ind,:scp;
    switch(sqlca.sqlcode)
    {case 0: /* FOUND */
    (4)Trace tools:
    select SQL_TEXT from v$sql where HASH_VALUE=(select SQL_HASH_VALUE from v$session where process=10775);
    select SQL_TEXT from v$sql where HASH_VALUE=(select PREV_HASH_VALUE from v$session where process=10775);
    select XIDUSN,object_id,locked_mode from v$locked_object where object_id =
    (select l.object_id from v$locked_object l,v$session s where s.sid=l.session_id and s.process=10775);
    select s1.SEQ#,s1.P1,s1.P1TEXT,s1.P2,s1.P2TEXT,s1.P3,s1.P3TEXT,s1.EVENT,e.PARAMETER1,e.PARAMETER2,e.PARAMETER3,s1.WAIT_TIME,s1.SECONDS_IN_WAIT,s1.STATE from
    v$session_wait s1,v$session s2,v$event_name e where s1.sid=s2.sid and  e.name=s1.EVENT and s2.process=10775;
    (5)Trace info:
    SQL> start P6-3.sql1
    SQL_TEXT                                                                                           
    SELECT "A1"."A_BITMAP" FROM "F_TRDATA" "A1" WHERE "A1"."A_INDEX"=:A AND "A1"."SCP_NBR"=:B FOR UPDATE
    OF A1."A_BITMAP"                                                                                  
    SELECT "A1"."A_BITMAP" FROM "F_TRDATA" "A1" WHERE "A1"."A_INDEX"=:A AND "A1"."SCP_NBR"=:B FOR UPDATE
    OF A1."A_BITMAP"                                                                                  
    SQL_TEXT                                                                                           
    SELECT "A1"."A_BITMAP" FROM "F_TRDATA" "A1" WHERE "A1"."A_INDEX"=:A AND "A1"."SCP_NBR"=:B FOR UPDATE
    OF A1."A_BITMAP"                                                                                  
    SELECT "A1"."A_BITMAP" FROM "F_TRDATA" "A1" WHERE "A1"."A_INDEX"=:A AND "A1"."SCP_NBR"=:B FOR UPDATE
    OF A1."A_BITMAP"                                                                                  
          SEQ#         P1 P1TEXT                                                                   P2  
    P2TEXT                                                                   P3                        
    P3TEXT                                                                                             
    EVENT                                                                                              
    PARAMETER1                                                                                         
    PARAMETER2                                                                                         
    PARAMETER3                                                        WAIT_TIME SECONDS_IN_WAIT        
    STATE                                                                                              
          1897 1413697536 driver id                                                                 1  
          SEQ#         P1 P1TEXT                                                                   P2  
    P2TEXT                                                                   P3                        
    P3TEXT                                                                                             
    EVENT                                                                                              
    PARAMETER1                                                                                         
    PARAMETER2                                                                                         
    PARAMETER3                                                        WAIT_TIME SECONDS_IN_WAIT        
    STATE                                                                                              
    #bytes                                                                    0                        
          SEQ#         P1 P1TEXT                                                                   P2  
    P2TEXT                                                                   P3                        
    P3TEXT                                                                                             
    EVENT                                                                                              
    PARAMETER1                                                                                         
    PARAMETER2                                                                                         
    PARAMETER3                                                        WAIT_TIME SECONDS_IN_WAIT        
    STATE                                                                                              
          SEQ#         P1 P1TEXT                                                                   P2  
    P2TEXT                                                                   P3                        
    P3TEXT                                                                                             
    EVENT                                                                                              
    PARAMETER1                                                                                         
    PARAMETER2                                                                                         
    PARAMETER3                                                        WAIT_TIME SECONDS_IN_WAIT        
    STATE                                                                                              
    SQL*Net message from client                                                                        
          SEQ#         P1 P1TEXT                                                                   P2  
    P2TEXT                                                                   P3                        
    P3TEXT                                                                                             
    EVENT                                                                                              
    PARAMETER1                                                                                         
    PARAMETER2                                                                                         
    PARAMETER3                                                        WAIT_TIME SECONDS_IN_WAIT        
    STATE                                                                                              
    driver id                                                                                          
          SEQ#         P1 P1TEXT                                                                   P2  
    P2TEXT                                                                   P3                        
    P3TEXT                                                                                             
    EVENT                                                                                              
    PARAMETER1                                                                                         
    PARAMETER2                                                                                         
    PARAMETER3                                                        WAIT_TIME SECONDS_IN_WAIT        
    STATE                                                                                              
    #bytes                                                                                             
          SEQ#         P1 P1TEXT                                                                   P2  
    P2TEXT                                                                   P3                        
    P3TEXT                                                                                             
    EVENT                                                                                              
    PARAMETER1                                                                                         
    PARAMETER2                                                                                         
    PARAMETER3                                                        WAIT_TIME SECONDS_IN_WAIT        
    STATE                                                                                              
                                                                              0          197725        
          SEQ#         P1 P1TEXT                                                                   P2  
    P2TEXT                                                                   P3                        
    P3TEXT                                                                                             
    EVENT                                                                                              
    PARAMETER1                                                                                         
    PARAMETER2                                                                                         
    PARAMETER3                                                        WAIT_TIME SECONDS_IN_WAIT        
    STATE                                                                                              
    WAITING                                                                                            
          SEQ#         P1 P1TEXT                                                                   P2  
    P2TEXT                                                                   P3                        
    P3TEXT                                                                                             
    EVENT                                                                                              
    PARAMETER1                                                                                         
    PARAMETER2                                                                                         
    PARAMETER3                                                        WAIT_TIME SECONDS_IN_WAIT        
    STATE                                                                                              
    SQL> spool off
    SQL> start P6-4.sql1
    SQL_TEXT                                                                                           
    UPDATE "F_TRDATA" "A1" SET "A_BITMAP" = :A WHERE "A1"."A_INDEX"=:B AND "A1"."SCP_NBR"=:C           
    UPDATE "F_TRDATA" "A1" SET "A_BITMAP" = :A WHERE "A1"."A_INDEX"=:B AND "A1"."SCP_NBR"=:C           
    UPDATE "F_TRDATA" "A1" SET "A_BITMAP" = :A WHERE "A1"."A_INDEX"=:B AND "A1"."SCP_NBR"=:C           
    SQL_TEXT                                                                                           
    UPDATE "F_TRDATA" "A1" SET "A_BITMAP" = :A WHERE "A1"."A_INDEX"=:B AND "A1"."SCP_NBR"=:C           
    UPDATE "F_TRDATA" "A1" SET "A_BITMAP" = :A WHERE "A1"."A_INDEX"=:B AND "A1"."SCP_NBR"=:C           
    UPDATE "F_TRDATA" "A1" SET "A_BITMAP" = :A WHERE "A1"."A_INDEX"=:B AND "A1"."SCP_NBR"=:C           
          SEQ# EVENT                                                                                   
    PARAMETER1                                                                                         
    PARAMETER2                                                                                         
    PARAMETER3                                                        WAIT_TIME SECONDS_IN_WAIT        
    STATE                                                                                              
           657 SQL*Net message from client                                                             
    driver id                                                                                          
    #bytes                                                                                             
          SEQ# EVENT                                                                                   
    PARAMETER1                                                                                         
    PARAMETER2                                                                                         
    PARAMETER3                                                        WAIT_TIME SECONDS_IN_WAIT        
    STATE                                                                                              
                                                                              0          311573        
    WAITING                                                                                            
    SQL> spool off
    (6)We found no locked sessions, and the proecess was hanged when it executed SELECT and UPDATE command. However, the system CPU traffic and I/O traffic was not high.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

    up?
    up ... in the sky?
    up ... my shirt sleeve?
    up ... above the streets and houses, rainbow's flying high, everyone can see a rainbow, in the sky.... paint the whole world with a RAINBOW!
    up ... yours?

  • How to filter the "delete" command in oracle streams ?

    How to filter the "delete" command in oracle streams ? (oracle 9i R2 )
    Message was edited by:
    user507013

    Hello
    write a procedure doing "nothing" for delete transcation :
    connect adminstrm/..
    CREATE OR REPACE PROCEDURE write_delete_lcr (
    message IN SYS.ANYDATA,
    error_stack_depth IN NUMBER,
    error_numbers IN DBMS_UTILITY.NUMBER_ARRAY,
    error_messages IN EMSG_ARRAY )
    AS
    s_id sys.anydata ;
    ad SYS.ANYDATA;
    lcr SYS.LCR$_ROW_RECORD;
    ret PLS_INTEGER;
    vc VARCHAR2(30);
    apply_name VARCHAR2(30) ;
    errlog_rec log_errors%ROWTYPE ;
    ov2 SYS.LCR$_ROW_LIST;
    BEGIN
    return;
    End;
    for your apply do :
    BEGIN
    DBMS_APPLY_ADM.SET_DML_HANDLER(
    object_name => TABLE_NAME,
    object_type => 'TABLE',
    operation_name => 'DELETE',
    error_handler => true,
    user_procedure => 'write_delete_lcr',
    apply_database_link => NULL);
    END;
    Hafedh KADDACHI
    Oracle DBA

  • UCS manager blade memory "Delete" command

    I have a question, and I cannot seem to find an answer in documentation or other questions on the support community.  In UCS Manager, if you click a blade server, click the inventory tab, click the memory subtab, you see a graphical display of the memory modules.  If you click on a moduleto select it then right-click it, the menu available includes a "Delete" command.  Does this shut down that particular module, or does it just keep UCS Manager from monitoring it?  Or is it something else more damaging or permanent?  Is it possible to "Add" the module back once that command was issued?  If possible, please provide any documentation or links that would answer this definitively.  Thanks!
    Gil                

    Thanks for the information!  I work with a group that is performing some failure testing, and we were trying to figure a way to fail a memory module while the blade is running.  We were not sure of the purpose of the mentioned command in UCS manager and did not want to try it without knowing if it had serious consequences.

  • Handle same delete command from 2 different sessions!

    Dear All,
    My database is 11gR2. I am in a situation where 2 applications are using the same database. There are times when the same delete command is issued from both applications that hangs the DB. None of the query is successfully executed.
    I want to lock the rows so that the first query executes and while second waits and when first completes second query is executed, though it wont delete any records as records are delete from the first query. But there is no hanging situation. Should I lock the table before running the query? or i first select the records using for update?
    Kindly help on this.
    Regards,
    Imran

    Thanks, The details are:
    Actually my applications are the 2 radius servers that are again getting requests from BRAS server. BRAS issues a delete command to radius server 1, if radius server is busy and takes longer then 3 seconds to respond BRAS issues the same command to radius server 2. When the same command from 2 different servers executes on the DB there is kind of dead lock, when this situation happens I have to terminate session of any one radius server and then the other query gets executed.
    I understand that Oracle takes care of this automatically but in my situation my DB is under tremendous load and sometimes I have to terminate sessions.
    Its a simple delete command with some selection. I hope this helps a bit.
    Regards, Imran

  • Pfiles command is hanged

    when i was working on a multithreading system. the communication between the processes was hanged. i tried pfiles to debug
    the issue but pfiles command is hanged.
    1- can anybody help why it became hanged.
    pstack is also not giving stack output it was coming out as
    "Process is being traced"
    when pstack is tried with -F option 2-3 times then only it gave
    stack dump.
    what is meaning of following message without stackdump
    "Process is being traced"

    thanks for valuable feedback
    when i diagnosis the problem "pfiles" was hanged in the following stack trace
    ffffffff7eea3f10 write (7, ffffffff7fffe350, 10)
    ffffffff7f209bb4 Pstopstatus (2, 3, ffffffff7f318000, 1001041d0, 0, ffffffff7fffe240) + 198
    ffffffff7f20b544 Psyscall (0, ffffffff7f318000, 1, 0, ffffffff7fffece0, 0) + 44c
    ffffffff7f21254c pr_fcntl (21, 1, e, ffffffff7fffed90, 1001041d0, 0) + 190
    0000000100001f18 ???????? (4, 0, 0, 0, 1001041d0, a)
    0000000100001d90 ???????? (1001041d0, 4, 100103528, f000, 1001035a1, 1001051f0)
    00000001000016ec main (1001041d0, 1fd5, 2, 100103598, ffffffff7ffff2b8, 0) + 288
    000000010000144c _start (0, 0, 0, 0, 0, 0) + ec
    it is happening only on sun 5.8 solaris8 machine having OS version
    Generic_108528-13.
    i have no clue why? may be some bug with this version in pfiles

  • RMAN-03009: failure of delete command on ... ORA-19606: Cannot copy or rest

    one server using 11.2.0.1.0 under Suse Linux
    configured catalog db, main db & jobs & ... almost everything with enterprise manager
    keep backups 14 days
    To make 14 full online dumps I had to aktive the archive mode and try to get rid of thoose unwanted additional files.
    Additional I make every night (less til no db activity) a dump and compress it myself.
    After some days the backupjob complain that it can not delete old files.
    EM / manage all backups / crosscheck all(
    CROSSCHECK BACKUPSET;
    CROSSCHECK COPY;
    sucessful
    EM / manage all backups / delete old backups
    DELETE NOPROMPT OBSOLETE;
    failed.
    script result
    Recovery Manager: Release 11.2.0.1.0 - Production on Tue Sep 7 17:20:55 2010
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    RMAN>
    connected to target database: <SID> (DBID=773091283)
    RMAN>
    connected to recovery catalog database
    RMAN>
    echo set on
    RMAN> DELETE NOPROMPT OBSOLETE;
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to recovery window of 14 days
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=196 device type=DISK
    Deleting the following obsolete backups and copies:
    Type Key Completion Time Filename/Handle
    Control File Copy 3831 03-AUG-10 /opt/oracle/base/product/11gR1/db/dbs/snapcf_<SID>.f
    Backup Set 18750 23-AUG-10
    Backup Piece 18754 23-AUG-10 /srv/ora/data/flash_recovery_area/<SID>/backupset/2010_08_23/o1_mf_nnndf_BACKUP_<SID>CH0_673c0hbp_.bkp
    Backup Set 18751 23-AUG-10
    Backup Piece 18755 23-AUG-10 /srv/ora/data/flash_recovery_area/<SID>/backupset/2010_08_23/o1_mf_nnndf_BACKUP_<SID>CH0_673c0hbo_.bkp
    Backup Set 19479 24-AUG-10
    Backup Piece 19482 24-AUG-10 /tmp/o0lm3qh9_1_1
    Backup Set 19490 24-AUG-10
    Backup Set 20087 24-AUG-10
    Backup Piece 20089 24-AUG-10 /srv/ora/data/flash_recovery_area/<SID>/autobackup/2010_08_24/o1_mf_s_727891232_677n40r3_.bkp
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of delete command on ORA_DISK_1 channel at 09/07/2010 17:20:57
    ORA-19606: Cannot copy or restore to snapshot control file
    exit;
    Recovery Manager complete.
    google found some questions, but not fittung answers.
    So far:
    - I checked the folder & users rights.
    - I found some /tmp/ files - yes I "backup" the backuped archivelogs to-delete files in /tmp - I only active archivelogmode so I can onlinebackup
    - I managed to login via rman and execute DELETE OBSOLETE manual - result above.
    - Actual I delete the set one by one to find the problem set. (delete backupset 12345 ) from the list manually.
    Some a good idea what went wrong?
    additional: Is there a way to let oracle delete the empy archvielog-directories after deleting the logs within?
    18:00- the command "RMAN> BACKUP CURRENT CONTROLFILE" also fails.
    Edited by: 793286 on 07.09.2010 09:00

    Meanwhile I managed to delete all backupsets one by one.
    The problem with $ORACLE_HOME/dbs/snapcf_<SID>.f persists.
    cd $ORACLE_HOME/dbs
    mv snapcf_<SID>.f snapcf_<SID>.f.bak
    # replaced actual dbsidname with <SID>
    RMAN> delete obsolete;
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to recovery window of 14 days
    using channel ORA_DISK_1
    Deleting the following obsolete backups and copies:
    Type Key Completion Time Filename/Handle
    Control File Copy 3831 03-AUG-10 /opt/oracle/base/product/11gR1/db/dbs/snapcf_TARMED1P.f
    Do you really want to delete the above objects (enter YES or NO)? y
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of delete command on ORA_DISK_1 channel at 09/08/2010 09:44:07
    ORA-19606: Cannot copy or restore to snapshot control file
    mv snapcf_<SID>.f.bak snapcf_<SID>.fRMAN> backup current controlfile;
    Starting backup at 08-SEP-10
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting compressed full datafile backup set
    channel ORA_DISK_1: specifying datafile(s) in backup set
    including current control file in backup set
    channel ORA_DISK_1: starting piece 1 at 08-SEP-10
    channel ORA_DISK_1: finished piece 1 at 08-SEP-10
    piece handle=/srv/ora/data/flash_recovery_area/TARMED1P/backupset/2010_09_08/o1_mf_ncnnf_TAG20100908T095000_68gj1b2m_.bkp tag=TAG20100908T095000 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
    Finished backup at 08-SEP-10
    Starting Control File and SPFILE Autobackup at 08-SEP-10
    piece handle=/srv/ora/data/flash_recovery_area/TARMED1P/autobackup/2010_09_08/o1_mf_s_729165003_68gj1d1b_.bkp comment=NONE
    Finished Control File and SPFILE Autobackup at 08-SEP-10
    RMAN> delete obsolete;
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to recovery window of 14 days
    using channel ORA_DISK_1
    Deleting the following obsolete backups and copies:
    Type Key Completion Time Filename/Handle
    Control File Copy 3831 03-AUG-10 /opt/oracle/base/product/11gR1/db/dbs/snapcf_<SID>.f
    Do you really want to delete the above objects (enter YES or NO)? y
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of delete command on ORA_DISK_1 channel at 09/08/2010 09:52:37
    ORA-19606: Cannot copy or restore to snapshot control file
    No different effect, if I changed the filename via 2nd terminal to .bak or not.
    RMAN> delete controlfilecopy 3831;
    will fail, if the file exists or not.
    Any chance to reset/kill that file?
    Is there a need to restart the dbms after rename the file?

  • Read from sql task and send to data flow task - [OLE DB Source [1]] Error: A rowset based on the SQL command was not returned by the OLE DB provider.

    I have created a execut sql task -
    In that, i have a created a 'empidvar' variable of string type and put sqlstatement = 'select distinct empid from emp'
    Resultset=resultname=0 and variablename=empidvar
    I have added data flow task of ole db type and I put this sql statement under sql command - exec emp_sp @empidvar=?
    I am getting an error.
    [OLE DB Source [1]] Error: A rowset based on the SQL command was not returned by the OLE DB provider.
    [SSIS.Pipeline] Error: component "OLE DB Source" (1) failed the pre-execute phase and returned error code 0xC02092B4.

    shouldnt setting be Result
    Set=Full Resultset as your query returns a resultset? also i think variable to be mapped should be of object type.
    Then for data flow task also you need to put it inside a ForEachLoop based on ADO.NET recordset and map your earlier variable inside it so as to iterate for every value the sql task returns.
    Also if using SP in oledb source make sure you read this
    http://consultingblogs.emc.com/jamiethomson/archive/2006/12/20/SSIS_3A00_-Using-stored-procedures-inside-an-OLE-DB-Source-component.aspx
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • A rowset based on the SQL command was not returned by the OLE DB provider.

    Hi
    I am calling a stored procedure using ssis.
    i am creating a work table--temp in the procedure and using that to join and select columns from other tables.
    i am gettig the error
    [Positions [22612]] Error: A rowset based on the SQL command was not returned by the OLE DB provider.
    please help

    SET NOCOUNT ON 
    in the stored procedure and try again.
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Insert,update and delete commands

    hi everybody,
    how can i make a button that runs a specific insert update and delete commands
    i am using adf faces jdeveloper 11.1.1.2.0
    than you for all

    thank you guys for your interest what i need in my button click is to take some values from outputtext controls and execute an insert command according to these values what i have done is make a stored procedure and make a client interface function to my amImpl class and i have called getDBTransaction().executeCommand(command); it runs well when i didn't enter values in outputtext controls and it throws an exception when i put the values
    the exception is javax.servlet.ServletException: Unable to resolve a Validator instance using either validatorId '' or binding '#{bindings.FileName.validator}'.
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:270)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.portlet.client.adapter.adf.ADFPortletFilter.doFilter(ADFPortletFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at com.bea.content.manager.servlets.ContentServletFilter.doFilter(ContentServletFilter.java:178)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.webcenter.lifecycle.filter.LifecycleLockFilter.doFilter(LifecycleLockFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: javax.faces.convert.ConverterException: Unable to resolve a Validator instance using either validatorId '' or binding '#{bindings.FileName.validator}'.
         at com.sun.faces.taglib.jsf_core.ValidatorTag$BindingValidator.validate(ValidatorTag.java:168)
         at org.apache.myfaces.trinidad.component.UIXEditableValue.validateValue(UIXEditableValue.java:345)
         at org.apache.myfaces.trinidad.component.UIXEditableValue.validate(UIXEditableValue.java:172)
         at org.apache.myfaces.trinidad.component.UIXEditableValue._executeValidate(UIXEditableValue.java:503)
         at org.apache.myfaces.trinidad.component.UIXEditableValue.processValidators(UIXEditableValue.java:270)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1024)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1009)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:816)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1024)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1009)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:816)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1024)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1009)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:816)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.access$101(ContextSwitchingComponent.java:39)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$3.run(ContextSwitchingComponent.java:122)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:309)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.processValidators(ContextSwitchingComponent.java:125)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1024)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1009)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:816)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.access$101(ContextSwitchingComponent.java:39)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$3.run(ContextSwitchingComponent.java:122)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:309)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.processValidators(ContextSwitchingComponent.java:125)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1024)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1009)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:816)
         at org.apache.myfaces.trinidad.component.UIXForm.processValidators(UIXForm.java:82)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1024)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1009)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:816)
         at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1058)
         at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:700)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl$ProcessValidationsCallback.invokeContextCallback(LifecycleImpl.java:1203)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:303)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         ... 42 more
    thank you for help

  • Skip the DELETE command on logical standby

    Hi All,
    I want to skip the DELETE command on logical standby.
    DB Version - 10.2
    OS - Linux
    Primary DB and logical standby DB .
    In our DB schema some transaction tables. We delete data from those tables by delete commands.
    Delete command, also delete data from logical standby DB. But we want to skip on logical standby DB .
    I use following for that and get error.
    ALTER DATABASE STOP LOGICAL STANDBY APPLY;
    EXECUTE DBMS_LOGSTDBY.SKIP (stmt =>'DELETE TABLE', schema_name =>'TEST',object_name =>'TRANS',proc_name => null);
    ALTER DATABASE START LOGICAL STANDBY APPLY IMMEDIATE;
    But I got error
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'SKIP'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    When I change stmt =>'DELETE TABLE' to stmt =>'DML', no error happen
    Please help me to solve this issue . This is urgent.
    Thanks in advance.
    Regards

    Dear aditi2,
    Actually it is so simple to understand the problem. Please read the following documentation and try to understand the SKIP procedure.
    http://download.oracle.com/docs/cd/B14117_01/appdev.101/b10802/d_lsbydb.htm#997290
    *SKIP Procedure*
    Use the SKIP procedure to define filters that prevent the application of SQL statements on the logical standby database.
    By default, all SQL statements executed on a primary database are applied to a logical standby database.
    If only a subset of activity on a primary database is of interest for application to the standby database,
    you can use the SKIP procedure to define filters that prevent the application of SQL statements on the logical standby database.
    While skipping (ignoring) SQL statements is the primary goal of filters,
    it is also possible to associate a stored procedure with a DDL filter so that runtime determinations can be made whether to skip the statement,
    execute this statement, or execute a replacement statement.
    Syntax
    DBMS_LOGSTDBY.SKIP (
         stmt                      IN VARCHAR2,
         schema_name               IN VARCHAR2,
         object_name               IN VARCHAR2,
         proc_name                 IN VARCHAR2,
         use_like                  IN BOOLEAN,
         esc                       IN CHAR1);Hope That Helps.
    Ogan
    Edited by: Ogan Ozdogan on 30.Tem.2010 13:03

  • Delete Command

    I am trying to add a delete command using DreamWeaver 8. I am
    using SQL. I add my Delete Command, however, since updating to
    Dreamweaver 8.02, I notice two additional columns in the properties
    and I am unsure what gets entered.
    I can see NAME which i enter IDParam, I see TYPE - unknown, I
    see SIZE - unknown, and RUN-TIME VALUE, which I enter
    Request.Form("MM_recordId"). I get an error when opening the
    DeleteCommand dialog SQL type not recognized
    Can someone tell me what I enter in the TYPE and Size
    column?

    Sorry but wanted to correct u fundamentally
    what r u trying to do ?
    delete from table1 where table1.id = table2.id and table1.firstname = 'john'
    how will u get table2.id when u r not selecting ithe table anywhere ?
    Hope u got my hint ....
    try this way
    delete from table1
    where table1.id =(select table2.id from table1,table2
    where table1.id=table2.id and table1.firstname = 'john' )
    cheers
    SHUBH

  • Error: Could not complete your request because an unknown command was encountered.

    I've been working on a file in FreeHand 11 for a few months
    now, and for some reason after saving and closing the file about a
    week ago, I can no longer open it - on either of my computers (both
    PCs, one running XP, one running Vista). When I attempt to do so, I
    am presented with the following error message:
    Could not complete your request because an unknown command
    was encountered.
    Is there any possible way to fix this?

    Haha. I know. I was stupid... The last backup of the file is
    four months old. Unfortunately I've done quite a lot of work on it
    since then...
    One interesting thing though, is that I can still see the
    thumbnail picture in Windows Explorer. Also, I'm able to open the
    file with Fireworks, but none of the hidden layers (most of my
    work) are there.
    I just tried to open it again on my desktop. Same error
    message (but in German)...:
    "Ihre Anforderung konnte nicht ausgeführt werden. Ein
    unbekannter Fehler ist aufgetreten." :S

  • [svn] 1978: Bug: vendors. properties file which is used in vendor specific login commands was not being read properly and as a result some login related error messages were not being displayed correctly .

    Revision: 1978
    Author: [email protected]
    Date: 2008-06-06 08:05:34 -0700 (Fri, 06 Jun 2008)
    Log Message:
    Bug: vendors.properties file which is used in vendor specific login commands was not being read properly and as a result some login related error messages were not being displayed correctly.
    QA: Yes - we need automated tests to make sure that errors.properties and vendors.properties in BlazeDS/LCDS are loaded properly.
    Doc: No
    Modified Paths:
    blazeds/branches/3.0.x/modules/common/src/java/flex/messaging/util/PropertyStringResource Loader.java
    blazeds/branches/3.0.x/modules/opt/src/jrun/flex/messaging/security/JRunLoginCommand.java
    blazeds/branches/3.0.x/modules/opt/src/tomcat/flex/messaging/security/TomcatLoginCommand. java

    I have a lot of grief with this version of Windows Media Player.
    It is very buggy and frustrating to use.
    I have my Music library on a QNAP NAS, which is as reliable as they come.
    System notifications make it not save changes.  It also does not do a good job of interpreting albums and artists from folders.  Changes to track names are not saved, nor are tracks moved to other albums, renamed albums, changes to genre, artist
    or date.  It separates and merges albums/tracks without sense or reason.  Some changes I've made up to 4 times, then closed WMP and re-started my machine to check if it has/hasn't saved the changes.  Often it has not.
    This is the first time I've used WMP in this capacity, and I do not recommend it.
    New service pack please.

Maybe you are looking for