Solved

Only get records that have been changed

Posted on 2011-03-17
8
385 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)
Comment Utility
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
Comment Utility
0
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
Comment Utility
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
Comment Utility
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)
Comment Utility
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
Comment Utility
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 31

Accepted Solution

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

Author Closing Comment

by:running32
Comment Utility
Thanks
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

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…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

772 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

10 Experts available now in Live!

Get 1:1 Help Now