Solved

Only get records that have been changed

Posted on 2011-03-17
8
388 Views
Last Modified: 2013-12-07
I am new to pl-sql and want to know how I would see if a record has been changed in pl-sql

thanks
0
Comment
Question by:running32
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 35159139
Are you wanting the see the rows changed in pl/sql code versus say, sqlplus or some application?
0
 
LVL 11

Expert Comment

by:Akenathon
ID: 35159149
0
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 35159176
The rowcount post brings up an interesting question:  I read the question to mean 'after some time' not 'while the code is running'.

Please clarify.
0
 

Author Comment

by:running32
ID: 35159791
slightwv, you are correct in the evening I want to see if there has been a change in a record and only select the records that have been changed.

Thanks
0
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.

 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 35160378
You are describing auditing.  Oracle has several audit methods depending on your specific requirements and how your applications are designed.

I suggest you chek out the online docs.  They will talk about the various options.

I'm online right now and can't provide the exact links but the docs are online at www.oracle.com
0
 
LVL 11

Expert Comment

by:Akenathon
ID: 35160944
You can either manually record the operations with your custom PL/SQL code using triggers, or else let the DB do the work by using DBMS_FGA (Fine-Grained Auditing)
0
 
LVL 32

Accepted Solution

by:
awking00 earned 500 total points
ID: 35182969
You might try the attached.
query.txt
0
 

Author Closing Comment

by:running32
ID: 35183140
Thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
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…
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…
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

910 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

24 Experts available now in Live!

Get 1:1 Help Now