Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: SQL Statements
Hi Puneet,
check this page for sample queries, it will get you started....
brent
column pid heading "PID" format 9999999 column spid heading "SPID" format 999999 column username heading "UserName" format a10 column "Oracle User" heading "OracleUser" format a15 column Terminal heading "Terminal" format a15 column latchwait heading "LatchWt" format 9999999
column lockwait heading "LockWt" format 9999999 column command heading "Command" format a15 column program heading "Program" format a15
select p.pid,
p.spid, p.username, s.username "Oracle User",
I want to know SQL statements for -
>
>1. Checking how long database instance is up.
>2. How many active users are in the system.
>3. Are there any locking problems.
Received on Fri Jul 23 1999 - 07:44:32 CDT
![]() |
![]() |