Re: PL/SQL Question

2001-05-11 Thread Karthik Ramachandran

Try 

DBMS_LOCK.SLEEP (
seconds IN NUMBER);





Regards

Karthik Ramachandran

>>> [EMAIL PROTECTED] 05/11/01 11:20AM >>>
I need to whip out a PL/SQL procedure real quick today and have a quick
question for fellow-listers ( since today is Friday, hopefully I don't get
RTFMed on this one :) )
The purpose of my procedure is to collect stats from v$session_wait
periodically ( every second for example) and pump the data into a stats
table.
But how to make the procedure to wait for a specified time? I know of the
option of using dbms_jobs to handle this. But I am wondering if there is a
similar
function in PL/SQL similar as the Unix 'sleep' command.

TIA

Dennis Meng
Database Administrator
Focal Communications
847-954-8328

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com 
-- 
Author: 
  INET: [EMAIL PROTECTED] 

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Karthik Ramachandran
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Re: OS bloack size and ORACLE BLOCK SIZE

2001-05-01 Thread Karthik Ramachandran

The default block size is 8K with a fragment size of 1K i.e. files with size below 8K 
are allocated using 1K blocks increments and files larger than 8K are done in 8K 
increments except for the last block which may be a fragment.



>>> [EMAIL PROTECTED] 05/01/01 02:50PM >>>
Hi Everyone i'm trying to determine what my os block size is
My DB's have an 8k block size and i thought for best performance my os block
size should be the same.

So i run the command "df -g"
   8192 file system block size1024 fragment size
is the result

and i run the command "fstyp -v /dev/dbvg/dblv"
f_bsize: 1024
f_frsize: 1024
is the result

so what is my os block size, aren't these commands returning my filesystem
block size, or is that the same thing.
If i'm completly wrong how do i find out my OS block and should my
filesystem block be the same as that?
i'm on HPUX 10.20

Thanks David Hill

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com 
-- 
Author: hp
  INET: [EMAIL PROTECTED] 

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Karthik Ramachandran
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).