Reg. cursor based delete! Little Urgent!

Hi all,
While accessing for a change now, i need to delete the values that came out of the cursor.
For an Exting functionality: I am fetching few values by a cursor and i am starting a loop for executing few condtions based on the records available in the cursor. there after i am explicitly closing the cursor. The issue i have now is, since i am using the loop the pointer would be in some row x or y or z after executing the loop. Now, my question is, If i delete by using the where current of clause by giving the cursor will all the rows that came from the cursor be deleted? Before Planning the above way, i am moving the close cursor statement towards the end of my Function.
The existing functional code is like below:
CURSOR ship_unit_det_cur IS SELECT CNTNR_I
          FROM SHIP_UNIT_DET
          WHERE SHIP_UNIT_I = prm_cnt_i;
Some set of statements
BEGIN
OPEN ship_unit_det_cur;
FETCH ship_unit_det_cur INTO var_cnt_i;
if ship_unit_det_cur%NOTFOUND then /* if empty */
if(prm_log_err = 'Y') then
err_ret_code2 := dsh_insert_drvt_evnt (prm_cnt_i, 'SHP', 'DVRT',
               SYSDATE, USER, prm_hi_lvl_strg_i,
                         NULL, prm_load_grp_i, prm_dvrt_mthd_i, 8109);
end if;
commit;
return 8109;
end if;
LOOP
FETCH ship_unit_det_cur INTO var_cnt_i;
EXIT WHEN ship_unit_det_cur%NOTFOUND;
stproc_loc := 'dsh_load 2';
err_ret_code := dsh_load_cntnrs_pkg.dsh_load (var_cnt_i,
               var_prm_cnt_par_i,
               prm_load_grp_i,
               prm_hi_lvl_strg_i,
               prm_dvrt_mthd_i,
               prm_store_door_assn_i,
               dummy,
               prm_pgm_n,
               'Y',
NULL);
if(err_ret_code = 8999) then /* on system error, always quit */
stproc_loc := 'LoadDet 2';
errdesc := prm_cnt_i || ' Failed fo load detail for ' || var_cnt_i;
RAISE SYSTEM_ERROR;
end if;
END LOOP;
CLOSE ship_unit_det_cur;
END;
Some set of statements
Now delete the shipping unit information
BEGIN
stproc_loc := 'DletShipUnit';
savepoint DELETE_SHIP_UNIT;
delete from ship_unit_det where ship_unit_i = prm_cnt_i;
if(prm_reusbl_f = 'N') then -- non-reusable master
delete from shipping_unit where ship_unit_i = prm_cnt_i;
end if;
EXCEPTION
WHEN OTHERS THEN
rollback to DELETE_SHIP_UNIT;
stproc_loc := 'DelShUn';
errdesc := prm_cnt_i || ' Failed to delete shipping unit';
RAISE SYSTEM_ERROR;
END;
In the above Begin and End Block, For the new proposed change functional code, i need to delete based on cursor. Hence forth i am planning to add the for update clause in my Cursor statement to lock the cursor values till i execute the delete.
And in delete i am using the where current of clause. Now the question is where do i put the commit? As you can see in the above block, after i replace the delete by following,
-- delete from ship_unit_det where ship_unit_i = prm_cnt_i;
delete from ship_unit_det where current of ship_unit_det_cur;
to unlock the cursor i need to place a commit. If some operation fail in the if condition below the proposed change, the rollback to the save point need to happen! so, can i place the commit in the place below Exception and end statement like:
EXCEPTION
WHEN OTHERS THEN
rollback to DELETE_SHIP_UNIT;
stproc_loc := 'DelShUn';
errdesc := prm_cnt_i || ' Failed to delete shipping unit';
RAISE SYSTEM_ERROR;
COMMIT;
CLOSE ship_unit_det_cur;
END;
Or Is there any other way to process the same?

How about the Commit statement? Is that ok, if i give
it between the Exception and the End?
Like the below:
EXCEPTION
WHEN OTHERS THEN
rollback to DELETE_SHIP_UNIT;
stproc_loc := 'DelShUn';
errdesc := prm_cnt_i || ' Failed to delete
shipping unit';
RAISE SYSTEM_ERROR;
COMMIT;
CLOSE ship_unit_det_cur;
END;You do realise that the moment the RAISE system_error is encountered this block is left and the COMMIT and CLOSE ship_unit_det_cur will never be executed, right?

Similar Messages

  • Sorting records dynamically in REF cursor, based upon a dynamic field

    Hi,
    I have a REF CURSOR built by using row type, table type and PIPELINE function. I have opened the ref cursor now. I would like to update a field called 'RANK' based upon 'RATIO' field in the REF CURSOR. i.e order the records in the ref cursor by RATIO field and then update the RANK as 1, 2, 3, 4, ....
    Aim: I want to update a field in the REF CURSOR based upon another numeric field.
    Please help me.
    OPEN sales FOR
    SELECT RANK, ratio
    FROM TABLE (fngetfundholdingsale (in_primarykey, in_flag));
    loop
    fetch sales into sale1;
    exit when sales%notfound;
    --I want to update sale1.rank based upon ratio
    end loop;
    Thanks
    Ashok

    Try to use NDS (Native Dynamic SQL):
    l_order := 'ratio';
    OPEN sales FOR
    'SELECT rank' ||
    '  FROM TABLE (fngetfundholdingsale (:in_primarykey, :in_flag))' ||
    ' ORDER BY ' || l_order
      USING in_primarykey, in_flag;Regards,
    Zlatko

  • OPEN CURSOR FOR  DELETE ROWS

    This transaction will work properly?
    I know it work but I have feeling it may cause a problem
    To open a cursor and delete the row I have selected.
    CREATE OR REPLACE PROCEDURE PRC_MAIN_INTER IS
    BEGIN
    BEGIN
    FOR A IN (SELECT B.HIST_ID
    FROM MOBIDEO.MAIN_INTER B
    WHERE B.STATUS = 9)
    LOOP
    BEGIN
    DELETE MAIN_INTER C WHERE C.HIST_ID = A.HIST_ID;
    COMMIT;
    END LOOP;
    END;
    COMMIT;
    END PRC_MAIN_INTERF;

    Sagi wrote:
    Toon Koppelaars wrote:
    Why not just:
    BEGIN
    DELETE FROM MOBIDEO.MAIN_INTER B WHERE B.STATUS = 9;
    COMMIT;
    END;
    The original transaction is longer I have truncate it .
    It also use log HIST_ID and some more detail for log table .Question: Are mobideo.main_inter and main_inter the same table? If so then
    declare
      cursor c_main_inter is select hist_id from main_inter where status=9 for update;
    begin
      for c in c_main_inter
      loop
        -- Logging, any other processing, etc.
        delete from main_inter where current of c_main_inter;
      end loop;
      commit;
    end;

  • OWB 10.2.0.4 really bad set-based delete performance

    Hi, we recently upgraded to OWB 10.2.0.4, with one of the reasons being the ability to do set-based deletes instead of row-based. However, upon testing this, we're seeing maps that in row based deletes go from 30 - 40 seconds, now taking literally 1.5 to 2 HOURS to run.
    I expected the SQL from the set based to take the form of:
    delete from my_table
    where (col_a, col_b, col_c) in (select a, b, c from ....)
    but instead the format is different:
    delete from my_table
    where exists (select 1 from ....)
    I don't quite understand what the SQL is trying to accomplish - and truthfully, it performs horribly compared to the hand-written version (explain plan shows estimated cost of 14,000 for my query, and over 5 million for the OWB query).
    Has anyone else seen this - and is there a solution? Part of me wants to say I'm doing something wrong, but the other part says "sure, but it works fine in row-based mode(target only)" - exact same map.
    Any ideas?
    Thanks!
    Scott

    Hi everyone, we'll I've figured out what is causing the problem and how to fix it...but still don't understand why it causes the problem.
    Here's a high level overview of the ETL - we find deleted record by selecting business key columns from our existing dimension table and doing a MINUS on the matching columns from the source table. If any records come out of this, it means the record was deleted on the source, and we go ahead and do a matching delete on the dimension table.
    Here's where the odd thing happens though - there's a column called "source system name" that is part of the dimension business key. This column does NOT exist on the source system - it's just a hard coded constant (put in just in case we ever add an additional system in the future).
    Basically, if we do the minus logic on all the columns EXCEPT for this one, and then connect a constant to the delete operator that has this hard coded value in - the delete takes FOREVER... On the other hand, if we actually put this field into the minus operator by simply repointing the existing constant there instead of directly to the delete table...the deletes magically start taking 30 seconds instead of 10 minutes to run.
    No idea (at all) why this makes a diff, but it seems to - and it's a day and night different.
    Hopefully this can help someone else out who runs into the same issue.
    Thanks!
    Scott

  • How to delete client (urgent plz help me )

    hi friends
              i have created a client in my system and i have done client copy in my system (local client copy) why copying i got an error that is there is no enough space in the drive  so i want to delete the client and copyed data .can any one help  it urgent
    thanks in advance
    by san

    Hi SAN,
                      1. log into the client to delete
    2. go into SCC5 and delete client
    3. log into another client and delete entry with SCC4
    4. reorg database to recover database space.
    Actually, if you check "on" the little "Delete Entry from T000" checkbox, you can skip step 3.
    One other way of deleting a client which could give significant performance gain and save time is at OS level using - R3trans
    To delete a client( eg: 100 ), you have to create a command file "del100" with following entries
    Clientremove
    Client = 100
    Select *
    Place the command file in /usr/sap/trans/bin
    $ cd /usr/sap/trans/bin
    $ R3trans –w <log file name> -u 1 <command file name >
    e.g $ R3trans -w del100.log -u 1 del100
    To check the progress...
    $ tail -f del100
    Also, check this link
    http://help.sap.com/saphelp_nw04/helpdata/en/69/c24c9c4ba111d189750000e8322d00/content.htm
    Check this SAP Note for DB reorganization 417539
    Hope this will help you.
    Hari.
    PS: Points are welcome.

  • Insert and update a data block which is based on view--urgent help required

    Hi experts,
    I created a view(A_VIEW) which is based on a union select. I have created a data block A_VIW_BLOCK which is based on this view. I need to insert/update one of the base tablesfor A_VIEW through this data block. I also need to be able to make a query through all the fields in the view.
    The questions are:
    1.Can it be done at all?
    2. What properties need to be set?
    3. If can't be done, what the best approach to achieve this?
    Thanks in advance!!
    Michael

    hi
    try something like this.
    CREATE TABLE demo_tab (
    person_id NUMBER(3),
    first_name VARCHAR2(20),
    last_name VARCHAR2(20));
    CREATE OR REPLACE VIEW upd_view AS
    SELECT * FROM demo_tab;
    INSERT INTO demo_tab
    (person_id, first_name, last_name)
    VALUES
    (1, 'Daniel', 'Morgan');
    INSERT INTO demo_tab
    (person_id, first_name, last_name)
    VALUES
    (2, 'Helen', 'Lofstrom');
    COMMIT;
    SELECT * FROM upd_view;
    UPDATE upd_view
    SET person_id = person_id * 10;
    SELECT * FROM upd_view;
    desc user_updatable_columns
    SELECT table_name, column_name, updatable, insertable, deletable
    FROM user_updatable_columns
    WHERE table_name IN (
       SELECT view_name
       FROM user_views);
    SQL> create table dummy (f1 number);
    Table created.
    SQL> create view dummy_v 
    2  as 
    3  select f1 from dummy 
    4  union all  
    5  select f1 from dummy;
    View created.
    SQL> create trigger dummy_v_it 
    2  instead of insert 
    3  on dummy_v 
    4  for each row 
    5  begin 
    6    insert into dummy values (:NEW.f1); 
    7  end; 
    8  /
    Trigger created.
    SQL> insert into dummy_v values (1);
    1 row created.
    SQL> select * from dummy_v;       
    F1
    1        
    1
    SQL> select *
      2  from user_updatable_columns
      3  where table_name = 'DUMMY_V';
    OWNER    TABLE_NAME   COLUMN_NAME  UPD INS DEL
    FORBESC  DUMMY_V      F1            NO  NO  NOforms settings.
    Enforce Primary Key - No
    Query Allowed - Yes
    Query datasource Name - V_TSFDETAIL
    Insert Allowed - Yes
    Update Allowed - Yes
    Delete Allowed - Yes
    Locking Mode - Automatic
    Key Mode - Automatic
    do not forget to create synonyms.
    hope this helps.
    sarah

  • Need help, MMC tree got deleted, very urgent.

    Hi,
    My sap MMC tree, got deleted in the server. I have been trying to restore since 2 days and couldnt succeed, please help me.
    1) i have uncared the sapmmc.sar from   Kernal\NT\I386\MMC\sapmmc.sar file
    2) i got about 7 files, in which there is one sapmmc file i have tried to double click it, n check but no go.
    3) i also tried to run the Sapstartsrv.exe file and fill in up the values in pop up window. & filled up the following values :-
                        SID: DEV
                        NR: 00
                        StartProfile:  (entire start profile path given)
                        user: devadm
                        passwd; (given)
    - but it says "the account name is invalid or does not exist or the password is invalid for account name specified"/
    - no go in both the cases.
    Please need help very urgent.
    Regards,
    Satish.

    siva,
    I am getting same error since 2 days
    SID: DEV
    NR: 00
    Start Profile: (entire start profile path)
    User: <hostname>/devadm
    passwd: ****
    Error:
    cannot install service
    create service failed:421
    The account name is invalid or doesnot exist, or the passwd is invalid for the account name specified.
    Edited by: satish c on Jun 4, 2008 11:12 AM

  • Cursor based on variable?

    I posted this issue in the APEX forum since I call my procedure through APEX, but I'm including it in here as well since the issue is with my cursor/loop:
    In APEX, I have a process that calls apex_mail. I have a cursor/loop that pulls records meeting my criteria and lists them in the body of the mail. This all works. However, I added another field (field b) which in the app is dependent on field a. Rather than having 11 cursors defined that run according to my 'if' statements, I would like one cursor that is equal to the end result of my variable (v_sql). When I run the code below, I receive the following error: ORA-06550: line 11, column 22: PLS-00382: expression is of wrong type ORA-06550: line 11, column 3: PL/SQL: Statement ignored ORA-06550: line 68, column 18: PLS-00221: 'GATHER_USRS_CUR' is not a procedure or is undefined ORA-06550: line 68, column 3: PL/SQL: Statement ignored.
    Code:
    declare
    e_body_1 CLOB;
    e_body_2 CLOB;
    j_sql CLOB :=null;
    v_sql varchar2(2000);
    -- Define cursor as SYS_REFCURSOR?
    gather_usrs_cur SYS_REFCURSOR;
    BEGIN
    -- make cursor equal to variable of v_sql
    gather_usrs_cur := v_sql;
    -- Generate body of e-mail
    e_body_1 := 'This e-mail is being generated to inform you that ... Those users are: '||utl_tcp.crlf||utl_tcp.crlf;
    e_body_1 := e_body_1||'USER ID, FIRST, LAST, PHONE, E-MAIL'||utl_tcp.crlf;
    e_body_1 := e_body_1||'==================================='||utl_tcp.crlf;
    e_body_2 := utl_tcp.crlf||'Please review the accounts identified above and inform us .... We appreciate your follow-up regarding the account activity in your State.'||utl_tcp.crlf||utl_tcp.crlf;
    e_body_2 := e_body_2||'Should you have any concerns/questions, please respond to the e-mail members on this e-mail.'||utl_tcp.crlf||utl_tcp.crlf;
    e_body_2 := e_body_2||' Sincerely,'||utl_tcp.crlf||utl_tcp.crlf;
    e_body_2 := e_body_2||' Team'||utl_tcp.crlf;
    -- Conditions for determing value of v_sql which would ultimately be reflected in cursor, gather_usrs_cur
    v_sql := 'select Q_APEX_ID,
    USER_ID,
    Q_USER_TYPE,
    Q_FIRST,
    Q_LAST,
    C_PHONE,
    C_EMAIL,
    C_STATE
    from Q_AUDIT
    where MATCH = ''Y'' and
    UPDT_ID is null and
    UPDT_TS is null and
    COMMENTS is null and
    Q_USER_TYPE = :P32_USER_TYPE ';
    if :P32_RO_USER_TYPE <> 'ALL' then
    if :P32_RO_USER_TYPE = 1 then
    v_sql := v_sql ||' and C_STATE in (''CT'',''MA'',''ME'',''NH'',''RI'',''VT'') ';
    end if;
    if :P32_RO_USER_TYPE = 2 then
    v_sql := v_sql ||' and C_STATE in (''NJ'',''NY'',''PR'',''VI'') ';
    end if;
    if :P32_RO_USER_TYPE = 3 then
    v_sql := v_sql ||' and C_STATE in (''DE'',''DC'',''MD'',''PA'',''VA'',''WV'') ';
    end if;
    if :P32_RO_USER_TYPE = 4 then
    v_sql := v_sql ||' and C_STATE in (''AL'',''FL'',''GA'',''KY'',''MS'',''NC'',''SC'',''TN'') ';
    end if;
    if :P32_RO_USER_TYPE = 5 then
    v_sql := v_sql ||' and C_STATE in (''IL'',''IN'',''MI'',''MN'',''OH'',''WI'') ';
    end if;
    if :P32_RO_USER_TYPE = 6 then
    v_sql := v_sql ||' and C_STATE in (''AR'',''LA'',''NM'',''OK'',''TX'') ';
    end if;
    if :P32_RO_USER_TYPE = 7 then
    v_sql := v_sql ||' and C_STATE in (''IA'',''KS'',''MO'',''NE'') ';
    end if;
    if :P32_RO_USER_TYPE = 8 then
    v_sql := v_sql ||' and C_STATE in (''CO'',''MT'',''ND'',''SD'',''UT'',''WY'') ';
    end if;
    if :P32_RO_USER_TYPE = 9 then
    v_sql := v_sql ||' and C_STATE in (''AZ'',''CA'',''HI'',''NV'') ';
    end if;
    if :P32_RO_USER_TYPE = 10 then
    v_sql := v_sql ||' and C_STATE in (''AK'',''ID'',''OR'',''WA'') ';
    end if;
    end if;
    -- call and loop through cursor for body of e-mail
    for usr_rec in gather_usrs_cur
    loop
    begin
    j_sql := j_sql ||usr_rec.user_id||', '||usr_rec.Q_first||', '||usr_rec.Q_last||', '||usr_rec.C_phone||', '||usr_rec.C_email||utl_tcp.crlf;
    end;
    end loop;
    commit;
    -- Call mail procedure
    apex_mail.send(
    P_TO => :P32_E_RECIPIENT,
    P_CC => '[email protected], [email protected]',
    P_FROM => '[email protected]',
    P_BODY => e_body_1||j_sql||e_body_2,
    P_SUBJ => 'Q Accounts Requiring Review');
    end;
    Is it possible to create one cursor that is equal to the 11 possible combinations, based on v_sql? Note that the :P32_X variables are set via buttons/fields in my APEX application. Thanks in advance for your help.

    I went ahead and rewrote this for you. Obviously I can't test it so no guarantees....
    Are you putting this code directly in APEX? If so, notice how I took ":P32_USER_TYPE" out from being a literal in your string and put in a bind variable.
    DECLARE
    e_body_1 CLOB;
    e_body_2 CLOB;
    j_sql CLOB := NULL;
    v_sql VARCHAR2 (2000);
    usr_rec q_audit%ROWTYPE;
    TYPE auditcurtype IS REF CURSOR;
    v_audit_cur auditcurtype;
    BEGIN
    -- Generate body of e-mail
    e_body_1 :=
    'This e-mail is being generated to inform you that ... Those users are: '
    || UTL_TCP.crlf
    || UTL_TCP.crlf;
    e_body_1 :=
    e_body_1 || 'USER ID, FIRST, LAST, PHONE, E-MAIL' || UTL_TCP.crlf;
    e_body_1 :=
    e_body_1 || '===================================' || UTL_TCP.crlf;
    e_body_2 :=
    UTL_TCP.crlf
    || 'Please review the accounts identified above and inform us .... We appreciate your follow-up regarding the account activity in your State.'
    || UTL_TCP.crlf
    || UTL_TCP.crlf;
    e_body_2 :=
    e_body_2
    || 'Should you have any concerns/questions, please respond to the e-mail members on this e-mail.'
    || UTL_TCP.crlf
    || UTL_TCP.crlf;
    e_body_2 := e_body_2 || ' Sincerely,' || UTL_TCP.crlf || UTL_TCP.crlf;
    e_body_2 := e_body_2 || ' Team' || UTL_TCP.crlf;
    -- Conditions for determing value of v_sql which would ultimately be reflected in cursor, gather_usrs_cur
    v_sql :=
    'select *
    from Q_AUDIT
    where MATCH = ''Y'' and
    UPDT_ID is null and
    UPDT_TS is null and
    COMMENTS is null and
    Q_USER_TYPE = :1';
    IF :p32_ro_user_type <> 'ALL'
    THEN
    IF :p32_ro_user_type = 1
    THEN
    v_sql :=
    v_sql
    || ' and C_STATE in (''CT'',''MA'',''ME'',''NH'',''RI'',''VT'') ';
    END IF;
    IF :p32_ro_user_type = 2
    THEN
    v_sql := v_sql || ' and C_STATE in (''NJ'',''NY'',''PR'',''VI'') ';
    END IF;
    IF :p32_ro_user_type = 3
    THEN
    v_sql :=
    v_sql
    || ' and C_STATE in (''DE'',''DC'',''MD'',''PA'',''VA'',''WV'') ';
    END IF;
    IF :p32_ro_user_type = 4
    THEN
    v_sql :=
    v_sql
    || ' and C_STATE in (''AL'',''FL'',''GA'',''KY'',''MS'',''NC'',''SC'',''TN'') ';
    END IF;
    IF :p32_ro_user_type = 5
    THEN
    v_sql :=
    v_sql
    || ' and C_STATE in (''IL'',''IN'',''MI'',''MN'',''OH'',''WI'') ';
    END IF;
    IF :p32_ro_user_type = 6
    THEN
    v_sql :=
    v_sql || ' and C_STATE in (''AR'',''LA'',''NM'',''OK'',''TX'') ';
    END IF;
    IF :p32_ro_user_type = 7
    THEN
    v_sql := v_sql || ' and C_STATE in (''IA'',''KS'',''MO'',''NE'') ';
    END IF;
    IF :p32_ro_user_type = 8
    THEN
    v_sql :=
    v_sql
    || ' and C_STATE in (''CO'',''MT'',''ND'',''SD'',''UT'',''WY'') ';
    END IF;
    IF :p32_ro_user_type = 9
    THEN
    v_sql := v_sql || ' and C_STATE in (''AZ'',''CA'',''HI'',''NV'') ';
    END IF;
    IF :p32_ro_user_type = 10
    THEN
    v_sql := v_sql || ' and C_STATE in (''AK'',''ID'',''OR'',''WA'') ';
    END IF;
    END IF;
    OPEN v_audit_cur FOR v_sql using :P32_USER_TYPE;
    LOOP
    FETCH v_audit_cur
    INTO usr_rec;
    EXIT WHEN v_audit_cur%NOTFOUND;
    j_sql :=
    j_sql
    || usr_rec.user_id
    || ', '
    || usr_rec.q_first
    || ', '
    || usr_rec.q_last
    || ', '
    || usr_rec.c_phone
    || ', '
    || usr_rec.c_email
    || UTL_TCP.crlf;
    END LOOP;
    CLOSE v_audit_cur;
    -- No need for this, you aren't changing anything
    -- COMMIT;
    -- Call mail procedure
    apex_mail.send (p_to => :p32_e_recipient,
    p_cc => '[email protected], [email protected]',
    p_from => '[email protected]',
    p_body => e_body_1 || j_sql || e_body_2,
    p_subj => 'Q Accounts Requiring Review'
    END;
    Hope this helps,
    Steve
    Alliance Technologies

  • My iMac wont boot up properly. Stops at background pic, no dock, only little apple show up top and cursor sticks on little spinning wheel. Have to shut down manually in back and reboot to get it to work. Any ideas why this sometimes happens?

    I'm running OSX 10.9.1 (13B42)
    My problem is that occasionally my Mac wont boot properly. It gets to the background picture where the dock should open but it freezes there. The little apple shows up top left but nothing else and the cursor shows as the little spinning wheel that wont do anything. I can't click on the apple to restart, I have to switch off in back and then start up again. It usally boots all the way after that but I'm worried there's something up since this seems to be happeneing more frequently. Also I'm worried that having to manually shut down like that will somehow damage the software in time?
    I tried a disk verify but there were no repairs needed. I repaired disk permissions too just in case but it still seems to happen every once in a while.
    I've noticed recently that it happens the next reboot after I've been streaming movies online if that helps. Is there any reason for this and anything i can do to stop it in the future?

    Thanks Paul, just ran the etrecheck you recommended and got this:
    Hardware Information:
              iMac (21.5-inch, Mid 2011)
              iMac - model: iMac12,1
              1 2.5 GHz Intel Core i5 CPU: 4 cores
              4 GB RAM
    Video Information:
              AMD Radeon HD 6750M - VRAM: 512 MB
    System Software:
              OS X 10.9.1 (13B42) - Uptime: 0 days 0:45:16
    Disk Information:
              ST3500418AS disk0 : (500.11 GB)
                        EFI (disk0s1) <not mounted>: 209.7 MB
                        Macintosh HD (disk0s2) /: 499.25 GB (350.35 GB free)
                        Recovery HD (disk0s3) <not mounted>: 650 MB
              OPTIARC DVD RW AD-5690H 
    USB Information:
              Apple Inc. FaceTime HD Camera (Built-in)
              Samsung SCX-4600 Series
              Apple Inc. BRCM2046 Hub
                        Apple Inc. Bluetooth USB Host Controller
              Apple Internal Memory Card Reader
              Apple Computer, Inc. IR Receiver
    FireWire Information:
    Thunderbolt Information:
              Apple Inc. thunderbolt_bus
    Kernel Extensions:
              com.sophos.kext.sav          (8.0.14)
    Startup Items:
              MobileBrServ: Path: /Library/StartupItems/MobileBrServ
    Problem System Launch Daemons:
    Problem System Launch Agents:
    Launch Daemons:
              [loaded] com.adobe.fpsaud.plist 3rd-Party support link
              [loaded] com.adobe.SwitchBoard.plist 3rd-Party support link
              [loaded] com.anchorfree.ajaxserver.plist 3rd-Party support link
              [loaded] com.microsoft.office.licensing.helper.plist 3rd-Party support link
              [loaded] com.sophos.autoupdate.plist 3rd-Party support link
              [loaded] com.sophos.intercheck.plist 3rd-Party support link
              [loaded] com.sophos.notification.plist 3rd-Party support link
    Launch Agents:
              [not loaded] com.adobe.AAM.Updater-1.0.plist 3rd-Party support link
              [loaded] com.adobe.CS5ServiceManager.plist 3rd-Party support link
              [loaded] com.sophos.uiserver.plist 3rd-Party support link
    User Launch Agents:
              [loaded] com.adobe.AAM.Updater-1.0.plist 3rd-Party support link
              [failed] com.apple.CSConfigDotMacCert-[...]@me.com-SharedServices.Agent.plist 3rd-Party support link
              [loaded] com.divx.agent.postinstall.plist 3rd-Party support link
              [loaded] com.google.keystone.agent.plist 3rd-Party support link
    User Login Items:
              iTunesHelper
              BitTorrent
    Internet Plug-ins:
              Flip4Mac WMV Plugin: Version: 2.4.4.2 3rd-Party support link
              FlashPlayer-10.6: Version: 12.0.0.38 - SDK 10.6 3rd-Party support link
              OVSHelper: Version: 1.1 3rd-Party support link
              Flash Player: Version: 12.0.0.38 - SDK 10.6 3rd-Party support link
              Default Browser: Version: 537 - SDK 10.9
              DivXBrowserPlugin: Version: 2.2 3rd-Party support link
              QuickTime Plugin: Version: 7.7.3
              SharePointBrowserPlugin: Version: 14.0.0 3rd-Party support link
              JavaAppletPlugin: Version: 14.9.0 - SDK 10.7 Outdated! Update
    Audio Plug-ins:
              BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
              AirPlay: Version: 1.9 - SDK 10.9
              AppleAVBAudio: Version: 2.0.0 - SDK 10.9
              iSightAudio: Version: 7.7.3 - SDK 10.9
    3rd Party Preference Panes:
              DivX  3rd-Party support link
              Flash Player  3rd-Party support link
              Flip4Mac WMV  3rd-Party support link
              Growl  3rd-Party support link
    Bad Fonts:
              None
    Old Applications:
              /Library/Sophos Anti-Virus
                        SophosAntiVirus:          Version: 8.0.8.1 - SDK 10.5 3rd-Party support link
                        SophosAutoUpdate:          Version: 8.0.15 - SDK 10.5 3rd-Party support link
                        SophosUIServer:          Version: 8.0.21 - SDK 10.5 3rd-Party support link
                        InterCheck:          Version: 8.0.8.1 - SDK 10.5 3rd-Party support link
              VLC:          Version: 2.0.1 - SDK 10.5 3rd-Party support link
              Sophos Anti-Virus:          Version: 8.0.21 - SDK 10.5 3rd-Party support link
              Spotify:          Version: 0.8.4.93.gd9f49c35 - SDK 10.5 3rd-Party support link
              Install Spotify:          Version: 1.0 - SDK 10.5 3rd-Party support link
                        /Users/[redacted]/Downloads/Programs/Install Spotify.app
    Time Machine:
              Time Machine not configured!
    Top Processes by CPU:
                   2%          WindowServer
                   2%          EtreCheck
                   0%          Google Chrome
                   0%          hidd
                   0%          SophosUIServer
    Top Processes by Memory:
              438 MB          firefox
              139 MB          InterCheck
              119 MB          com.apple.IconServicesAgent
              106 MB          Google Chrome
              78 MB          mds_stores
    Virtual Memory Information:
              370 MB          Free RAM
              1.59 GB          Active RAM
              1.25 GB          Inactive RAM
              813 MB          Wired RAM
              397 MB          Page-ins
              0 B          Page-outs
    I have no idea what all the means, lol.

  • When typing in Adobe Muse CC vers6 the cursor sometimes deletes the characters after it

    I'm editing text in type frames in Adobe Muse CC vers6 and sometimes the cursor deletes all the characters after its position, rather than enter new characters. Anybody else have this problem or a solution?

    Hello,
    Does it replace the characters after the cursor when you enter new character?
    If the above happens, can you hit the "Insert" button in your keyboard and then see if that resolves the issue? Insert button does the exact same thing.
    Hope this helps.
    Cheers
    Parikshit

  • How do I reclaim the unused space after a huge data delete- very urgent

    Hello all,
    How do I reclaim the unused space after a huge data delete?
    alter table "ODB"."BLOB_TABLE" shrink space; This couldn't execute with ora 10662 error. Could you please help

    'Shrink space' has requirements:
    shrink_clause
    The shrink clause lets you manually shrink space in a table, index-organized table or its overflow segment, index, partition, subpartition, LOB segment, materialized view, or materialized view log. This clause is valid only for segments in tablespaces with automatic segment management. By default, Oracle Database compacts the segment, adjusts the high water mark, and releases the recuperated space immediately.
    Compacting the segment requires row movement. Therefore, you must enable row movement for the object you want to shrink before specifying this clause. Further, if your application has any rowid-based triggers, you should disable them before issuing this clause.
    Werner

  • Reg: ABAP report deleted

    Hi,
    How do we find who deleted ABAP report (manually created report) in SAP system?
    User is used that report since 8 months back
    Thanks,
    Bikshamaiah

    Hi,
    Here is the the answer for the my question. one of my team member has given below answer.
    The report been directly created in production.
    (This report was created by a report painter which automatically generates the code for this )
    2.Once the report was created a transaction was created to assign this report in development system and then transported to Acceptance and production. This is how the tcode contains this report for execution.
    We concluded this based on the fact that the report was not associated with any package without which we cannot transport the objects but the transaction code is associated with a package.
    Thanks,
    Bikshamaiah

  • Reg:How to delete the column in table control also from database table.

    Hi Experts,
    Once again thank u all for giving the responses.
    one more doubt is how to delete the columns of table control and also the record shold delete from ztable.
    With Regards,
    Saroja.P.

    Hi,
    If you want to delete the rows in the table control and simultaneously delete it from the database table, then you can implement a 'DELETE' functionality specific to your table control. Have a MARK field (you will find that in the screen attributes of the table control -> give a name for the MARK field, you will find an additional MARK column at the beginning of your table control). You can check whatever rows you want to delete from the table control, call the delete module.
    "This portion of code inside the LOOP...ENDLOOP.
    IF sy-ucomm eq 'F_DELETE'.
       gt_itab2-check = mark.  " Store the MARK field status into your internal table's correspoding field 'check'
      MODIFY gt_itab INDEX tabcontrol-current_line.
    ENDIF.
    iF sy-ucomm eq 'DELETE1'.
      DELETE gt_itab WHERE check eq 'X'. "Your internal table does not have rows that you want to delete
    ENDIF.
    Now you can modify your database table using the MODIFY statement.
    MODIFY ZDB FROM TABLE gt_itab.

  • Reg:-How to delete PO from Table

    Hi,
        I need to know how to delete PO from the table.I know for item deletion.
    Edited by: Venkadesh on May 22, 2009 2:53 PM

    Hi
    PO's cannot be deleted from the table, we can only archive them from the data base being used.
    Deletion flag in the PO will not remove data from table.
    Thanks & Regards
    Kishore

  • Assigning a query dynamically to a cursor based on IF ELSE condotion

    hello guys,
    we are facing a problem while creating a procedure.
    The procedure has been recreated in ORACLE from SQL SERVER 2005.
    the problem is that in SQL server we can assign a query dynamically to a cursor so that it will be called at execution time.But this is not the case in oracle, i.e in Oracle its not allowed to assign a query to a cursor dynamically(OR IS IT...!!!)
    the code is
    vr_SQL varchar2(400);
    declare
       cursor ord_cur  ;  <-----cursor declaration
      begin
       If v_pIsScrutiny = 0 then   +<--------------second condition+
          vr_SQL:='Select NVL(ServiceID,0)  ServiceID,OrdQty,+<-------query assignment to a variable+
              NVL(DrugID,0) DrugID,NVL(ServiceAmount,0) Rate,OrdDtlID 
              from Orderdtl inner join ordermst on Orderdtl.OrdID = ordermst.OrdID 
              Where Orderdtl.OrdID in (Select OrdID From Ordermst Where OrdVisitID = vr_visitid  
              and TO_CHAR(ordermst.OrdDate,''DD-MON-YYYY'') 
              Between TO_CHAR(vr_pActivationDate,''DD-MON-YYYY'') 
              and TO_CHAR(vr_pExpiryDate,''DD-MON-YYYY'') 
              ) And NVL(Orderdtl.Cancelled,0) = 0 And NVL(Orderdtl.PackageID,0) = 0 
              and NVL(Orderdtl.DrugID,0) = 0;';
        Else  +<--------------first condition+
            Update OrderDtl Set PackageID = 0 , AllocationID = 0 , ConsumptionID = 0 
            Where OrdID in (Select OrdID From Ordermst Where OrdVisitID = vr_visitid)  
            And AllocationID = v_pHCPAllocationID; 
           vr_SQL:= 'Select NVL(ServiceID,0)  ServiceID, +<-------query assignment to a variable+
           OrdQty,NVL(DrugID,0)  DrugID,NVL(ServiceAmount,0)
            Rate,OrdDtlID 
           from Orderdtl inner join ordermst on Orderdtl.OrdID = ordermst.OrdID 
           Where Orderdtl.OrdID in (Select OrdID From Ordermst Where OrdVisitID = vr_visitid  
           and TO_CHAR(ordermst.OrdDate,''DD-MON-YYYY'') 
           Between TO_CHAR(vr_pActivationDate,''DD-MON-YYYY'') 
           and TO_CHAR(vr_pExpiryDate,''DD-MON-YYYY'') 
           ) And NVL(Orderdtl.Cancelled,0) = 0 And NVL(Orderdtl.PackageID,0) = 0;'; 
        end if;
           ord_cur is vr_SQL; +<----------query assigned to a cursor variable+
        ord_rec ord_cur%ROWTYPE;
       if not ord_cur%ISOPEN then
            open ord_cur;
       end if;
        loop
        fetch ord_cur into ord_rec;
        exit when ord_cur%NOTFOUND;So currently we are stuck with this problem.
    Any solution would be of great help..
    thank you

    841363 wrote:
    hello guys,
    we are facing a problem while creating a procedure.
    The procedure has been recreated in ORACLE from SQL SERVER 2005.
    the problem is that in SQL server we can assign a query dynamically to a cursor so that it will be called at execution time.But this is not the case in oracle, i.e in Oracle its not allowed to assign a query to a cursor dynamically(OR IS IT...!!!)The problem is that you are thinking in SQL Server terms and Oracle just isn't SQL Server.
    You need to consider using ref cursors for such things (sys_refcursor) e.g.
    SQL> CREATE OR REPLACE PACKAGE reftest IS
      2    PROCEDURE test(P_no in number, cur_o OUT sys_refcursor);
      3  end;
      4  /
    Package created.
    SQL>
    SQL> CREATE OR REPLACE PACKAGE body reftest as
      2    PROCEDURE test(P_no in number, cur_o OUT sys_refcursor) as
      3      myexc exception;
      4    BEGIN
      5      if P_no = 1 then
      6        open cur_o for select empno, ename from emp;
      7      elsif p_no =2 then
      8        open cur_o for select deptno, dname from dept;
      9      else
    10        RAISE myexc;
    11      END IF;
    12    exception
    13      when myexc then
    14        raise_application_error(20991,'input must be 1 or 2');
    15    end ;
    16  end reftest;
    17  /
    Package body created.
    SQL> var x refcursor;
    SQL> exec reftest.test(1,:x);
    PL/SQL procedure successfully completed.
    SQL> print x;
         EMPNO ENAME
          7369 SMITH
          7499 ALLEN
          7521 WARD
          7566 JONES
          7654 MARTIN
          7698 BLAKE
          7782 CLARK
          7788 SCOTT
          7839 KING
          7844 TURNER
          7876 ADAMS
          7900 JAMES
          7902 FORD
          7934 MILLER
    14 rows selected.
    SQL> exec reftest.test(2,:x);
    PL/SQL procedure successfully completed.
    SQL> print x;
        DEPTNO DNAME
            10 ACCOUNTING
            20 RESEARCH
            30 SALES
            40 OPERATIONS
    SQL>

Maybe you are looking for

  • Picture Slider Show Question

    I'm doing a project for someone and they asked me to make a photo gallery that has two arrows on both sides which they user can click to scroll from previous to next but has the ability to click on the photo and make it larger. also they want caption

  • Greyed out images when opened in photoshop CS

    I ahve been happily using my photoshop but recently all my images are greyed out with small white and grey boxes so cannot view or change.  I have clicked on the imagine open section in history and it makes not difference.  What am I doing wrong?

  • Macbook pro - 10.5.6, wont accept leopard safari update..

    I tried to install the latest safari update, 3.1..i think it was ( going off the top of my head ) but when i went to install it, it refused it, saying i wasn't compatible. I have leopard on my computer. The other option is Tiger but..it makes no sens

  • Convert 32 bit JPEG to 24 bit?

    MediaShout requires 24 bit JPEG files. How do I get there from Illustrator which I believe defaults to 32 bit?

  • Typical problem in java program ?

    Typical problem in java program ? I have three java files , i am pasting them here. Please show me the errors. Compilation error in Cat.java File 1 : Dog.java public class Dog extends Animal { public String noise() { return "back"; } File 2 : Cat.jav