Home » RDBMS Server » Server Administration » Error in TOAD software
Error in TOAD software [message #62623] Tue, 03 August 2004 23:04 Go to next message
Vikash
Messages: 17
Registered: April 2002
Junior Member
Hi there,

I have toad version 7.6.011. When using kill/trace session i got the following errors and sessions are not displayed:

you must hav access to Session_priv, V$open_cursor v_$sess_io,v_$session,v_$process,v_$lock,
v$locked_object, sys.v$sqltext_with_lines, sys.v_trnsaction, sys.v_$rollname.

Thanks

 
Re: Error in TOAD software [message #62624 is a reply to message #62623] Wed, 04 August 2004 01:17 Go to previous messageGo to next message
Maaher
Messages: 7065
Registered: December 2001
Senior Member
You are connected with a user that lacks the necessary privileges. It try with a more privileged user.

MHE
Re: Error in TOAD software [message #62635 is a reply to message #62624] Wed, 04 August 2004 08:28 Go to previous message
andrew again
Messages: 2577
Registered: March 2000
Senior Member
To be able to kill session etc, it's most practical to grant DBA to the user you are connecting through. If you just want to view sessions etc, then you can just grant select on the required views (see Toad's online help). In 8i you need to grant individual privs, in 9i I think you can just grant select DICTIONARY or similar to the user.

-- execute from SYS (not SYSTEM)
grant select on v_$thread to SCOTT;

--Optimization & Session Info screens
grant select on v_$rowcache to SCOTT;
grant select on v_$sysstat to SCOTT;
grant select on v_$system_event to SCOTT;
grant select on v_$librarycache to SCOTT;
grant select on v_$STATNAME to SCOTT;
grant select on v_$SESSTAT to SCOTT;
grant select on v_$sess_io to SCOTT;
grant select on v_$session to SCOTT;
grant select on v_$process to SCOTT;
grant select on v_$latch to SCOTT;

--DBA > Database Monitor
grant select on v_$sysstat to SCOTT; 
grant select on v_$system_event to SCOTT;
grant select on v_$session to SCOTT;
grant select on v_$librarycache to SCOTT;
grant select on sys.x_$ksllt to SCOTT;
grant select on v_$sgastat to SCOTT;

--DBA > Database Health Check

grant select on v_$version to SCOTT;
grant select on v_$instance to SCOTT;
grant select on v_$sysstat to SCOTT;
grant select on v_$librarycache to SCOTT;
grant select on v_$rowcache to SCOTT;
grant select on v_$sgastat to SCOTT;
grant select on v_$parameter to SCOTT;
grant select on v_$database to SCOTT;
grant select on v_$log_history to SCOTT;
grant select on v_$filestat to SCOTT;
grant select on v_$datafile to SCOTT;
grant select on v_$tablespace to SCOTT;

--DBA > Oracle Parameters
grant select on v_$parameter to SCOTT;

--DBA > Kill/Trace
grant select on v_$lock to SCOTT;
grant select on v_$locked_object to SCOTT;
grant select on v_$open_cursor to SCOTT;

--DBA > Log Miner
grant select on v_$logmnr_contents to SCOTT;
grant select on v_$logmnr_logs to SCOTT;

--Tools > SGA Trace 
grant select on v_$sqlarea to SCOTT;
grant select on v_$sqltext_with_newlines to SCOTT;
--access to the v_$ Oracle Dictionary views 

--Instance Manager > Shutdown
grant select on v_$parameter to SCOTT;

--TOAD Server Statistics > Analysis
grant select on SYS.V_$SESS_IO to SCOTT;
grant select on SYS.V_$SESSION to SCOTT;
grant select on SYS.V_$PROCESS to SCOTT;
grant select on SYS.V_$STATNAME to SCOTT;
grant select on SYS.V_$ROWCACHE to SCOTT;
grant select on SYS.V_$SYSSTAT to SCOTT;
grant select on SYS.V_$SYSTEM_EVENT to SCOTT;
grant select on SYS.V_$LIBRARYCACHE to SCOTT;
grant select on SYS.SESSION_PRIVS to SCOTT;

--TOAD Server Statistics > Waits
grant select on SYS.V_$SYSTEM_EVENT to SCOTT;

--TOAD Server Statistics > Latches
grant select on SYS.V_$LATCH to SCOTT;

--TOAD Server Statistics > Sessions
grant select on SYS.V_$SESS_IO to SCOTT;
grant select on SYS.V_$SESSION to SCOTT;
grant select on SYS.V_$PROCESS to SCOTT;
grant select on SYS.V_$STATNAME to SCOTT;

--TOAD Server Statistics > Instance Summary
grant select on SYS.V_$SYSSTAT to SCOTT;

--Space Manager Setup
grant select on SYS.V_$SYSSTAT to SCOTT;
grant select on V_$FILESTAT to SCOTT;

-- another useful one...
grant select on v_$mystat to SCOTT;
Previous Topic: 8174 to 9205 migration error
Next Topic: Oracle on Windows 2000
Goto Forum:
  


Current Time: Fri Sep 27 10:31:21 CDT 2024