DBAsupport.com Forums - Powered by vBulletin
Page 1 of 4 123 ... LastLast
Results 1 to 10 of 31

Thread: How to convert the status of object "invalid" to "valid'?

  1. #1
    Join Date
    Nov 2003
    Posts
    48

    How to convert the status of object "invalid" to "valid'?

    How to convert the status of object "invalid" to "valid'?

    select object_name, status from all_objects where status <> 'VALID';

  2. #2
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092

  3. #3
    Join Date
    Nov 2003
    Posts
    48
    if I have a package name VEH_RA_ADDRESSES_SV that the status is INVALID, the owner is APPS and object_type is PACKAGE, I need to recompile it in order to change the status from invalid to valid. The SQL should be

    ALTER PACKAGE APPS.VEH_RA_ADDRESSES_SV
    COMPILE PACKAGE;

    AM I Right?

  4. #4
    Join Date
    Nov 2001
    Location
    Planet Earth
    Posts
    116
    in general,
    alter compile;
    ----------------

    alter view myview compile;
    show err;
    alter package mypackage compile;
    show err;
    alter trigger mytrigger compile;
    show err;
    alter procedure myproc compile;
    show err;
    alter function myfunc compile;
    The man called Zorro

  5. #5
    Join Date
    Nov 2003
    Posts
    48
    Alter X compile can apply to
    Function, package, procedure, trigger, view

    How about package body and type?

  6. #6
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092

  7. #7
    Join Date
    Nov 2003
    Posts
    48
    I would like to ask the mypackage name. Is it that same as
    select object_name from all_objects where status <> 'INVALID';

    Since I try to alter package mypackage compile.
    It said object does not exist.

  8. #8
    Join Date
    Nov 2001
    Location
    Planet Earth
    Posts
    116
    I wondering s/thing... How old are you williamLWY?
    The man called Zorro

  9. #9
    Join Date
    Nov 2003
    Posts
    48
    22

  10. #10
    Join Date
    Nov 2001
    Location
    Planet Earth
    Posts
    116
    Originally posted by WilliamLWY
    22
    No wonder....

    How sure are you "alter X compile" work for fucntion/package/etc. Have you tried it? I donno if it is work in 10g... i never touch 10g before
    The man called Zorro

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