Solved

Count of rows being inserted per minute

Posted on 2015-02-13
3
203 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 76

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
Comment Utility
>>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 37

Expert Comment

by:Gerwin Jansen
Comment Utility
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
Comment Utility
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.

Join & Write a Comment

Subquery in Oracle: Sub queries are one of advance queries in oracle. Types of advance queries: •      Sub Queries •      Hierarchical Queries •      Set Operators Sub queries are know as the query called from another query or another subquery. It can …
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

744 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now