DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: How to fix the rowid problem in PL/SQL where migrating from 7.3.4 to 9i ?

  1. #1
    Join Date
    Mar 2000
    Location
    Hong Kong
    Posts
    10

    Question How to fix the rowid problem in PL/SQL where migrating from 7.3.4 to 9i ?


    How to fix the rowid problem in PL/SQL where migrating from 7.3.4 to 9i ?



    We use lots of rowid in PL/SQL migrated from Oracle 7.3.4 to 9i. How can I fix this problem ? Any tools ? Any tricks ?


    Thanks a lot !!!

  2. #2
    Join Date
    Jul 2002
    Location
    Washington DC
    Posts
    110
    I which way u are using .Are u hard coded it or not ?

  3. #3
    Join Date
    Dec 2001
    Location
    UK
    Posts
    1,684
    If you usesomthing like the follwoing you're OK:


    DECLARE
    v_rowid ROWID;
    BEGIN
    SELECT rowid
    INTO v_rowid
    FROM emp
    WHERE empno = 1234
    FOR UPDATE;

    -- Do something

    UPDATE emp
    SET sal = 2000
    WHERE rowid = v_rowid;
    COMMIT;
    END;
    /


    If you actually store the rowids in a table, or generate them manually your screwed. You can use the DBMS_ROWID package to convert them but I wouldn't bother.

    You should really consider re-engineering your system to avaios the use of stored rowids if possible. As well as this upgrade issue you are prevented from using export/import.

    Cheers
    Tim...
    OCP DBA 7.3, 8, 8i, 9i, 10g, 11g
    OCA PL/SQL Developer
    Oracle ACE Director
    My website: oracle-base.com
    My blog: oracle-base.com/blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width