- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to know the oracle record change time
Operating System - HP-UX
1753863
Members
7839
Online
108809
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-05-2001 07:35 PM
тАО12-05-2001 07:35 PM
How to know the oracle record change time
Hi,
if I want to list the records in a table that was modified 30 minutes ago ( I want to know that every 30 minutes which records was modified) , how can I do in oracle , does any hidden column that have modification timestamp for that row.
If they don't have how can I know , or what else method can be use , snapshot /replication ?
thanks in advance,
if I want to list the records in a table that was modified 30 minutes ago ( I want to know that every 30 minutes which records was modified) , how can I do in oracle , does any hidden column that have modification timestamp for that row.
If they don't have how can I know , or what else method can be use , snapshot /replication ?
thanks in advance,
enjoy any little thing in my life
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-05-2001 07:46 PM
тАО12-05-2001 07:46 PM
Re: How to know the oracle record change time
By far the easiest method would be to a datetime column to the table with an update/insert trigger to load the time.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2001 02:26 AM
тАО12-06-2001 02:26 AM
Re: How to know the oracle record change time
How about adding a 'serial' field?
You'll have to store the max. serial number found after each run, so that the next time around, you can query for all records with serial_no > this value.
A word of caution, though - this may not work well if records are deleted frequently, because the Database Engine may allot a 'freed' serial number to a freshly added row. This is an issue in Informix - not too sure how Oracle behaves.
You'll have to store the max. serial number found after each run, so that the next time around, you can query for all records with serial_no > this value.
A word of caution, though - this may not work well if records are deleted frequently, because the Database Engine may allot a 'freed' serial number to a freshly added row. This is an issue in Informix - not too sure how Oracle behaves.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2001 03:18 PM
тАО12-06-2001 03:18 PM
Re: How to know the oracle record change time
Deepak's idea will work out very well if you use a non-recycling sequence as your counter. Be prepared for "holes" in your serial number as rows are deleted and your database is recycled.
IMHO, Clay's solution may prove to be of greater benefit as important auditing information is gathered and affixed permenently to the row. With a serial number, you only have creation order preserved once the max.ser_no is overwritten.
IMHO, Clay's solution may prove to be of greater benefit as important auditing information is gathered and affixed permenently to the row. With a serial number, you only have creation order preserved once the max.ser_no is overwritten.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP