Solved

Count of rows being inserted per minute

Posted on 2015-02-13
3
253 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
add more rows to hierarchy 3 48
error in oracle form 11 53
SQL Syntax Question 9 57
Convert CSV to list in oracle for IN-Clause 6 48
Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
Via a live example, show how to take different types of Oracle backups using RMAN.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

752 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