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

Thread: set cursor_sharing=force caused the app break

Threaded View

  1. #4
    Join Date
    May 2000
    Location
    ATLANTA, GA, USA
    Posts
    3,135
    cursor_sharing = force

    will not work always as you expected because the lengths of columns returned to the application will vary. For example, the query expected varchar2(5) but oracle may return 30 characters. That's why your application failed.

    You should not use "FORCE" in your prod env.

    PHP Code:
    SQLalter session set cursor_sharing=force;

    Session altered.

    SQLselect substr(object_name,1,4xxx from dba_objects where rownum 3;

    XXX
    --------------------------------------------------------------------------------
    /
    100
    /100

    SQL
    alter session set cursor_sharing=exact ;

    Session altered.

    SQLselect substr(object_name,1,4xxx from dba_objects where rownum 3;

    XXX
    ----
    /
    100
    /100 
    Tamil
    Last edited by tamilselvan; 04-25-2005 at 07:14 PM.

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