iya mas wadi dan mas yulius,,
GRANT SELECT ON V_$SQL_PLAN TO COBA;
sukses,,,

tapi waktu saya masuk ke user coba, lalu saya membuat procedure seperti dibawah 
ini masih gagal mas,dan errornya juga sama seperti yang sebelumnya
create or replace procedure coba
is
owner varchar2(30);
begin
SELECT OBJECT_OWNER into owner FROM V_$SQL_PLAN WHERE OBJECT_OWNER = 'COBA';
if SQL%NOTFOUND then
DBMS_OUTPUT.PUT_LINE('coba lagi');
else
DBMS_OUTPUT.PUT_LINE(owner);
end if;
end;
/
Warning: Procedure created with compilation errors.

SQL> show err
Errors for PROCEDURE COBA:

LINE/COL ERROR
-------- -----------------------------------------------------------------
5/1      PL/SQL: SQL Statement ignored
5/37     PL/SQL: ORA-00942: table or view does not exist



tapi ketika saya masuk sebagai sys as dba, ternyata procedure itu sukses,,,
apa emank g bisa jalan di user lain ya mas selain sys??

mas,,makasi banyak loch udah mau sharing,,,,
maaf juga klo udah ngerepotin mas2 semua,,ini semua berawal dari ke isengan 
mengoprek oracle,,hihihihih


________________________________
Dari: Wadi Achmed <[email protected]>
Kepada: [email protected]
Terkirim: Sel, 5 Januari, 2010 09:08:26
Judul: Re: Bls: Bls: [indo-oracle] procedure dari tabel V$SQL_plan

  
Mas Juanda,

Karena V_$SQL_PLAN_ TO milik SYS bukan SYSTEM.
Jadi yang berhak memberikan grant ke user lain adalah sang pemiliknya, yaitu
SYS.

Cheers,
Wadi Achmed

On Mon, Jan 4, 2010 at 8:12 PM, juanda hakim <juanda_...@yahoo. co.id> wrote:

> Mas yuliiuuuuuuuuuuuuus ,,,,,
> g bisa mas,,,
>
> udah dicoba
>
> SQL> CONN SYSTEM
> Enter password: ******
> Connected.
> SQL> GRANT SELECT ON V$SQL_PLAN TO COBA;
> GRANT SELECT ON V$SQL_PLAN TO COBA
>                *
> ERROR at line 1:
> ORA-01031: insufficient privileges
>
> ============ ========= ========= ========= ======
> SQL> CONN SYS AS SYSDBA
> Enter password: ******
> Connected.
> SQL> GRANT SELECT ON V$SQL_PLAN TO COBA;
> GRANT SELECT ON V$SQL_PLAN TO COBA
>                *
> ERROR at line 1:
> ORA-02030: can only select from fixed tables/views
> ============ ========= ========= ========= ======
>
> tapi tadi saya iseng2 masuk sebagai sys, trus saya create procudure dari
> tabel V$SQL_PLAN
> alhasil,,,sukses maaaaas,,,,,
>
> tapi begitu saya masuk sebagai system, kenapa g bisa???
> duuuh makin bingung mas,,,,
> mohon petunjuknya ,,,,
>
>
>
>
>
>      Lebih aman saat online. Upgrade ke Internet Explorer 8 baru dan lebih
> cepat yang dioptimalkan untuk Yahoo! agar Anda merasa lebih aman. Gratis.
> Dapatkan IE8 di sini!
> http://downloads. yahoo.com/ id/internetexplo rer/
>
> [Non-text portions of this message have been removed]
>
>
>
> ------------ --------- --------- ------
>
> --
> -----------I. N.D.O - O.R.A.C.L.E- --------- -----
> Keluar: indo-oracle- unsubscribe@ yahoogroups. com
> Website: http://indooracle. wordpress. com
> http://www.facebook .com/group. php?gid=51973053 515
> ------------ --------- --------- --------- --------
>
> Bergabung dengan Indonesia Thin Client User Groups,
> Terminal Server, Citrix, New Moon Caneveral, di:
> http://indo- thin.blogspot. comYahoo! Groups Links
>
>
>
>

[Non-text portions of this message have been removed]


 


      Selalu bisa chat di profil jaringan, blog, atau situs web pribadi! Yahoo! 
memungkinkan Anda selalu bisa chat melalui Pingbox. Coba! 
http://id.messenger.yahoo.com/pingbox/

[Non-text portions of this message have been removed]

Kirim email ke