Solved

Count of rows being inserted per minute

Posted on 2015-02-13
3
232 Views
Last Modified: 2015-03-04
Hi Gurus,

I'm trying to get the countof rows inserted in per minute while data load is happening. Please help.
Count-of-rows-per-min.sql
0
Comment
Question by:loginboy
3 Comments
 
LVL 77

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
ID: 40607883
>>while data load is happening.

What is loading the data?
If it isn't committing then you will be unable to query the table while some other process is loading the data.

Based on the test sample you provided:  What are your expected results?

First guess is something like this should count and group by the minute:
select to_char(ins_dt,'MM/DD/YYYY HH24:MI'), count(*) from test_tab group by to_char(ins_dt,'MM/DD/YYYY HH24:MI');
0
 
LVL 38

Expert Comment

by:Gerwin Jansen, EE MVE
ID: 40609930
If the table has a date field, just count the number of rows per minute (see above suggestion).

If table is not having a date field, you could write a trigger 'before insert' that is updating a counter in another table for each minute. What are you after exactly?
0
 

Author Closing Comment

by:loginboy
ID: 40645727
Perfect. Sorry for the delayed update!
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…

837 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question