Looking for a better way to utilize streams to track deletes in the db.

I'm trying to figure out a way to track deletes in the database using streams. I found that a dml_hander for deletes could satisfy my needs but it appears I would need to create a dml_handler for each table in the schema. Since I have ~250 tables I'm thinking there has to be a better way to do this. I simply need a way to capture all deletes and insert them into a table before they are deleted from the db. Is there a better way then creating a handler for each table?
Thanks,
Doug

So far you haven't posted a version number or any information about the use of any auditing tool, whether FGA or other auditing so it is impossible to either comment or advise you further.
If you want help you are going to need to do something you did not do in your original post and that is provide a description of your environment, your business rules, how you have attempted to use FGA or standard auditing, etc. Streams is for replication not auditing so perhaps you mean AQ but so far you haven't said that yet either.
The more information you can provide, and perhaps some code or clear descriptions of what you've attempted, the better the help possible.

Similar Messages

  • Looking for a better way to backup end users

    Hello there.
    Not sure if this the best forum for this post but here goes.
    Last week my company had a break in and a couple of laptops got lifted. Not a big deal as I had backups of the machines on tape. It did take a while to recover the files though. During that time I got to thinking about a better way to backup and I am looking for any ideas of if this would work or not.
    First quick overview. About 60 end users majority with laptops.
    What I am thinking of doing is this. Take an xServe RAID configured in RAID 5, for redundancy and speed, and creating a shared folder on it for each of my end users. This way if they need to retrieve a file they can log in and will not have to call me. Then, this is where I need help, use some tool to copy all of their files at specified intervals into their folder, at least once a day. I am currently using Retrospect to backup everyone directly to tape and I could use that to do this but the only thing I do not like about Retrospect is it can only do one user at a time. With 60 users I have to start it pretty early in the day. I know copy files would be alot faster so I am not ruling it out. I was also thinking about using ChronoSync to accomplish this and then use Retrospect to backup the RAID to tape for long term storage. I am ruling out using Home directories on the xServe for my users because they are all laptops and are usually out of the office at least one day a week.
    If anyone could offer some ideas of whether or not this is going to work or not or if you have other suggestions, any help would be greatly appreciated.
    Thanks in advance.
    Daniel Krajc

    Hi,
    you could be using a combination of Mobile Accounts (for the settings of the ibook) and rsync (which is installed by default on 10.3 and 10.4), check man rsync for more info.
    regards.
    Dimi.

  • Looking for a better way to count responses to survey questions

    Hello all - I've created a survey for a site and now want to display the results for the site admins. I am simply trying to display the counts - the number of times a question has been answered a certain way. I realize that I may need to construct the survey itself differently and how it stores the data, but here's how it goes so far.
    There are 10 questions, each with 4 options in radio button groups. The database table has a column for each question and stores the value of the selected radio button. So that's pretty simple.
    Now on the results page this is the only way I can think of doing it, but there has to be a better way. For each response, I create a recordset filtered on the question and option value, then display the total record count. That works just fine, but to count each option, that means 40 recordsets on the page - al to merely determine "How many times was Question 1, Option A selected, and How many times was Question 1, Option B selected, and so on.
    The only other thing I can think of, there perhaps is a better way to count the occurrences of these values in the table either with PHP or in the SQL itself.  Or, perhaps if the values themselves are all numeric and follow some sort of pattern I can use a math solution.
    Any thoughts, solutions and ideas are welcome!  Thanks. 

    THANK YOU!!
    I used this format before actually for an exam in an online training program, and I don't know why I didn't make the connection.
    I also want to connect the responses to the participant, but I think that would even be secondary to the survey itself.
    So just to clarify, if you would, I would have a survey table l like I do now, with each survey generating an ID with each one and perhaps the user info or a column for User ID. Then, the questions table each with an ID to populate the questions, a options table, each with its own ID and linked to the questions that populate the options.
    Finally a responses table that records the Survey ID, Question ID and Option ID with each record.
    In the exam I did before, the questions and responses were in the same table, so I suppose I could make it work that way too. But, now I know why I didn't think of this - unlike the exam where each question was presented one at a time, the survey is on a single page and would require a multiple record insert - which I haven't done as much as single inserts, so it didn't pop into the head.
    L

  • Looking for a better way to determine string variable from multiple options

    Hi,
    I trying to figure out a better way to determine a string variable from multiple options.
    Say i have five pictures each with a different filename: img1 - img5...these file names could be named anything really but for this example i will keep them as img1, img2, img3, img4 and img5.
    I want to display a messagebox with the string depending on what a certain variable is.
    So for example, we have the number X, if X = 1 then i want the messagebox to show "img1" as the message
    Essentially the way I have been doing it so far is:
    Private Sub WhichImage()
    Dim ImageName As String = ""
    Dim i as integer
    If i = 0 Then
    ImageName = "img1"
    End If
    If i = 1 Then
    ImageName = "img2"
    End If
    If i = 2 Then
    ImageName = "img3"
    End If
    If i = 3 Then
    ImageName = "img4"
    End If
    If i = 4 Then
    ImageName = "img5"
    End If
    MessageBox.show(imagename, "Name of image", MsgBox.Style.OkOnly, MsgBoxResult.Ok)
    end
    Up until now, this has been fine, but what if I have 50 images, do I have to do this for all 50 images? or is there an easier way like putting the image names into a text file and have it read from the file depending on what the variable i equals? If so,
    how do I go about this? Does each image name go on a separate line? can it just be separated by a comma instead? or is there a better way?
    Please note that i know that i have declared "i" above in my code and not intialised it with anything, in reality "i" comes from somewhere else in the program so please ignore that part, it is not what I am concerned with.
    Thanks
    Mersec

    Does each image name go on a separate line? can it just be separated by a comma instead? or is there a better way?
    Arrays are useful for this.
    Dim imagenames() As String = {"img1", "img2", "img3", "img4", "img5"}
    Dim imagename As String = imagenames(i)
    MessageBox.Show(imagename, "Name of image")
    Any sort of collection will do instead of an array, and may be simpler to manage. There are many other options - the most suitable one probably depends on where the names originally come from.  For instance, if you are getting them from a folder
    using the FileSystem.GetFiles method, then they are already in a collection.
    If the files names never change then you may as well include them in the program code, using something like the code above.  If they can change, then you could use a text file, but that means you need a file update routine.  If that is required
    then the way you store the names will dictate how you access them.

  • Looking for a better way to write this SQL

    Oracle version 11R2
    OS version (does not matter)
    What I trying to do is write a query that finds Public Synonyms without a target object. I came up with this but I thinking there's a better way.
    Select
      s.owner, s.synonym_name, s.table_name, s.table_owner, s.db_link, InitCap(o.object_type) object_type
    from  
      sys.DBA_SYNONYMS s, sys.DBA_OBJECTS o
    where 
      s.synonym_name is not null
    and   
      s.table_owner = o.owner (+)
    and   
      s.table_name = o.object_name (+)
    and   
      s.owner = 'PUBLIC'
    and
      object_type is null;  object_type is null appears to be the weakness. It seems the check of the target object should be better.
    Feedback, comments, queries welcome.

    I'm not sure exactly what "better" means in this context (faster, easier to read, etc.) but I'd tend to use a NOT EXISTS
    SELECT s.*
      FROM dba_synonyms s
    WHERE owner = 'PUBLIC'
       AND s.db_link IS NULL
       AND NOT EXISTS (
        SELECT 1
          FROM dba_objects o
         WHERE o.owner = s.table_owner
           AND o.object_name = s.table_name )I added the DB_LINK criteria to filter out public synonyms that reference objects in remote databases which obviously don't exist in the local DBA_OBJECTS.
    Justin

  • Looking for a better way to observe POJO changes

    Let's say you have a POJO like Employee, and you want to make changes to the fields in the POJO observable. What's the best way to do this? The listeners should be able to register for change events, without necessarily subscribing to every property.
    I could create an ObservableEmployeeHelper that takes an employee and wraps each of the fields in Simple*Property objects, and then fires notifications whenever any of those properties change. But it would be nice for the listeners to be able to pick and choose what they want to listen to -- something like this:
    addListener(EmployeeEvent.ALL, new ChangeListener<ObservableEmployeeHelper>(){...});or
    addListener(EmployeeEvent.SALARY_CHANGE, new ChangeListener<ObservableEmployeeHelper>(){...});The other problem is that the ListCell and TableCell's really don't know how to deal with a change to the POJO instead of to the a single observable attribute. For example, if Employee has a status field (ON_HOLIDAY, ON_SICK_LEAVE, ON_SITE, WORKING_FROM HOME) and you want to display an icon next to the user's name indicating this status. It's difficult to do in way that automatically updates the icon in a list whenever you change the status. My hack for this to attach a listener to the Employee observable status property and watch for changes. But this can lead quickly to memory leaks if not done well.
    And currently if you put the Observable POJOs into an ObservableList, you won't get notified if a particular POJO changes, only if the entire list changes.
    Is there an easier way to watch for changes to any field in a POJO?
    It would be nice if there was an @Observable annotation that you could just add to the fields of your POJO and some kind of mixin that you could add to the class that would propagate changes, register listeners, etc.
    Edited by: mfortner on Aug 6, 2012 5:00 PM

    I think you'll need to build somekind of custom solution for this.
    I've done this for my own program so I can monitor changes in any of the properties using just one listener. This helps me to do two things:
    1) Monitor when an object has changed (if any of its properties was changed), and register the object for future storage (unless modified again within a specific timeout)
    2) Monitor when an object was accessed (if a specific set of properties was read), and schedule the object for enrichment (fetching additional data in the background)
    Using properties for this is great because a lot of action can simply be done in the background and as soon as the information is available the UI will update. For example, when the Photo property is accessed the first time by binding it to an ImageView, the Photo won't have loaded yet (it's null). The access is noticed though, and so a background thread loads the Photo from the database. When this process is finished, it updates the Photo property -- thanks to the binding to ImageView, the Photo will be updated automatically in the UI.
    The advantage of course is that I donot need to fetch these things myself anymore -- the program will do this automatically... and for only those objects that actually were accessed (the rest will remain in a minimal state until actually used).
    Same for the automated storage. I just bind a property to the UI, or multiple of them, and when any of them is changed, a process starts that waits for 3 seconds before storing the object. If any more changes occured in the mean time, the timer resets.

  • Looking for a better solution that tunnel interface

    Hi
    acctualy I have a Vsat connection between my remote site and central office
    on both site we have router and sat modem
    I have now a tunnel interface between my two routers,I am looking for a better idea,,

    hi...
    so you have tunnel interface between your two router so now what are you looking for...?
    secure IPsec connection or what???
    please explaine in details
    regards
    Devang

  • Looking for a better heatsink help....K8N NEO2

    Im looking for a better heatsink....any suggestions? I may oc it but for now I wont....it idles at 40-41 and stays at 60 when im gaming 58 if i turn off cool n quiet.....and thats with some ocz ultra5 Thermal compund....ThX

    Yes, agree with SAB, zalman 7000 is a good one, however I´ve got 2 very simular K8N Neo2-systems but with 2 different cpu coolers.
    One with zalman 7000alcu and one with Thermalright XP-90 and a zalman 92mm fan ( you can use what ever 80/92mm fan you like high speed, low speed, led colored, etc).
    Both are equal regarding cooling to my experience, but I prefered the XP-90 because I did not have to remove the backplate ( I think zalman recommends mounting it´s own backplate to get the right distance/pressure between the cooler and cpu ).
    With the XP-90 you just switch the retension mechanism which is easy ( even with the MoBo in the case ).

  • Looking for a simple way to convert a string to title case

    New to LiveCycle and Javascript.  Looking for a simple way to convert a string to title case, except acronyms.  Currently using the the following, it converts acronyms to lower case:
    var str  =  this.rawValue;
    var upCase = str.split(" ");
    for(i=0; i < upCase.length; i++) {
    upCase[i] = upCase[i].substr(0,1).toUpperCase() + upCase[i].substr(1).toLowerCase();
    this.rawValue = upCase.join(' ');

    Thanks for the reply.
    Found the following script in a forum, which works fine as a "custom validation script" in the.pdf version of my form.  However, it will not work in LiveCycle?  The problem seems to be with
    "return str.replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g"
    function toTitleCase(str) {
    var smallWords = /^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;
        return str.replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g, function(match, index, title){
    if (index > 0 && index + match.length !== title.length &&
      match.search(smallWords) > -1 && title.charAt(index - 2) !== ":" &&
    (title.charAt(index + match.length) !== '-' || title.charAt(index - 1) === '-') &&
    title.charAt(index - 1).search(/[^\s-]/) < 0) {
    return match.toLowerCase();
    if (match.substr(1).search(/[A-Z]|\../) > -1) {
      return match;
      return match.charAt(0).toUpperCase() + match.substr(1);
    event.value = toTitleCase(event.value);

  • Is there a (relatively simple) way to skip tracks with an iPod touch 5th gen using a physical button? I'm aware songs can be skipped on-screen without unlocking the iPod, but I'm looking for a method that doesn't require taking my eyes off the road.

    Is there a (relatively simple) way to skip tracks with an iPod touch 5th gen using a physical button? I'm aware songs can be skipped on-screen without unlocking the iPod, but I'm looking for a method that doesn't require taking my eyes off the road while driving. For that reason, I'm also not interested in adding in headphones or additional devices that have the desired button functions. Going both forward and back would be great but I would be pleased just to have a "sight-free" way to go forward.
    I've seen some mention here and there about ways to maybe change it so the volume buttons change tracks and holding the volume buttons changes the volume... but I don't know what's involved in that or if its even possible/recommended for a new 5th gen iPod. I think its a great device but its sadly lacking in music oriented functions and features... which is disappointing since music is why most people would bother getting one instead of some other "iDevice" :/

    Given that you cannot do what you have asked for, perhaps you simply need to find another solution to your root problem.
    Presumably, you want to skip to the next track because you don't want to hear the current one, and that is because...
    You don't like it.
    You've heard it recently and don't want to hear it now.
    Simply don't want to hear it at this time.
    For problem number 1. Don't put it on the iPod in the first place. (I know, obvious answer!)
    For problem number 2. How about playing from a Smart Playlist (initially created in your iTunes Library) which has only songs you've not played recently?
    For problem number 3. Hhhmmm! Create alternative Playlists for use in the car.
    As for going back to the start of the "now playing" track.... Well, if your Playlist has only songs that you really, really want to hear, then you'll be looking forward to that rather go back to the beginning of the current song.
    I'm not trying to be prescriptive, just giving you food for thought.
    (They are all cheaper options than buying a car which can control the iPod from the steering wheel.)

  • My cd drive on my mac w/ itunes is busted, so i'm looking for an alternative way to get mp3 files (large, for an audiobook) from a cd to my iphone. Any suggestions? Thanks

    My cd drive on my mac w/ itunes is busted, so i'm looking for an alternative way to get mp3 files (large, for an audiobook) from a cd to my iphone. Any suggestions? Thanks

    Copy them to a thumb drive using a different computer then use that to transfer them to your machine. Over a network from a machine with a working CD drive...
    What does this have to do with using the iPhone in an enterprise environment?

  • Looking for an app that allows our business to track where our company issued Iphone4S's are at all times.  Ideas?

    We are looking for an app that allows our business to track where our company issued IPhone4S's are at all times.  Any ideas?

    Requires each device/user have an unique Apple ID(verifiable email address):
    http://itunes.apple.com/us/app/find-my-friends/id466122094?mt=8
    Otherwise you can use Find My Phone, but requires logging in for each separate user. Find My Friends(built by Apple) will show everyone's location on one device.

  • Does a Time Machine backup capture unsaved Word Documents? I am looking for a Word Document that I am guessing I deleted though I think it was open when I was doing a backup.

    Does a Time Machine backup capture unsaved Word Documents?
    I am looking for a Word Document that I am guessing I deleted though I think it was open when I was doing a backup.

    If you didn't save the document it would not be on your hard drive and therefore not copied via Time Machine.

  • If I delete a backup icon for an old iPhone on my iPad will it delete all the photos saved from that phone in my iCloud??

    If I delete a backup icon for an old iPhone on my iPad will it delete all the photos saved from that phone in my iCloud??

    Welcome to the Apple Community.
    It won't affect any photos in photo stream but any photos within the back up itself will go.

  • Is there a way to recover pictures that were deleted on the i Pad 2 ??

    Is there a way to recover pictures that were deleted on the i Pad 2 ?

    Only if you have a copy of them e.g. if they were on your iPad when you last backed then you can try restoring to that backup. But unlike on a computer there is no trashcan or recycle bin on an iPad, once they are deleted from an iPad then they are gone from it.

Maybe you are looking for