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

Thread: machine name problem

  1. #1
    Join Date
    Nov 2001
    Posts
    29
    getting problem with this procedure.
    all the permissions are there for that view

    SQL>CREATE OR REPLACE procedure machinename IS
    2 v_mc_name system.v$session.machine%type;
    3 BEGIN
    4 select distinct machine into v_mc_name from system.v$session
    5 END;
    6 /

    Warning: Procedure created with compilation errors.

    SQL> show err
    Errors for PROCEDURE MACHINENAME:

    LINE/COL ERROR
    -------- -----------------------------------------------------------------
    2/11 PLS-00201: identifier 'SYSTEM.V$SESSION' must be declared
    2/11 PL/SQL: Item ignored
    4/1 PL/SQL: SQL Statement ignored
    4/45 PLS-00201: identifier 'SYSTEM.V$SESSION' must be declared
    balraj

  2. #2
    Join Date
    Aug 2001
    Location
    Waterloo, On
    Posts
    547
    V$session is just a synonym.
    use SYS.V_$SESSION instead.

    Raminder Singh

    Oracle Certified DBA: Oracle 8i, 9i


    Mail me at raminderahluwalia@rediffmail.com.

  3. #3
    Join Date
    Nov 2001
    Posts
    29

    re:raminder

    If I user SYS.V$SESSION also it is showing the same error but when I am using this in d2k then it is not showing any error. Why?

    Originally posted by Raminder
    V$session is just a synonym.
    use SYS.V_$SESSION instead.
    balraj

  4. #4
    Join Date
    Aug 2001
    Location
    Waterloo, On
    Posts
    547
    I said SYS.V_$SESSION not SYS.V$SESSION.
    As regards D2K, it might be converting it implicitly.

    Raminder Singh

    Oracle Certified DBA: Oracle 8i, 9i


    Mail me at raminderahluwalia@rediffmail.com.

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