Solved

Only get records that have been changed

Posted on 2011-03-17
8
393 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
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.

 

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
 
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

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to connect SQL Server from my Oracle database? 11 131
run sql script from putty 4 67
Database Design Dilemma 6 58
pl/sql parameter is null sometimes 2 14
Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
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, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
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.

856 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