Good way to respond to the events to commit

Community,.

. . . . What is the right way to add a trigger for a table with version as this event only fires on MergeWorkspace?

Kind regards
Noel



. . . . What I've tried: (plan A) to exclude the possibility of a trigger on the table of LT shooting as part of a workspace, I implemented a trigger aulieude on the view. Then I tried to use SetTriggerEvents to ensure the trigger pulled only on MergeWorkspace. This does not, as bspeckha pointed out, account OWM does not support triggers aulieude. (plan B) As advised, I added the relaxation to the LTS table in the context of a DDL session and was able to run successfully SetTriggerEvents. I've listed the triggers associated with the table in question (using the OEM) and does not see the trigger in question. A systematic update against the erroneous out table and I suspect the newly added trigger was guilty:
ERROR at line 1:
ORA-00600: internal error code, arguments: [kxtounpi2], [image-to-object
conversion failed in trigger bind], [7], [], [], [], [], []
ORA-04088: error during execution of trigger '<SCHEMA>.OVM_UPDATE_25'
. . . . (plan C) As advised, I could create a copy empty table, add triggers, activate the version and reload all the files and revisions. I have not tried yet as it is a tedious job and wondered if there was another way.

Hello

When you call dbms_wm. EnableVersioning on a table that has a user-defined trigger, OWM will convert the relaxation in a PL/SQL procedure. That's why she will not appear in the dba_triggers view. You don't want to use all_wm_tab_triggers view instead.

If you want a trigger only during the MergeWorkspace, you do the following:
SQL > exec dbms_wm. SetTriggerEvents ('', dbms_wm.) WORKSPACE_MERGE_WO_REMOVE | «, » || dbms_wm. WORKSPACE_MERGE_W_REMOVE);

If you get an ORA-600 error when you do, I'd file a SR. It is an internal database error.

Kind regards
Ben

Tags: Database

Similar Questions

  • Buttons stops responding when the event takes place

    I have two independent loops while in a VI. A while loop have a structure of the event. Buttons stop responding when the event takes place. Is there a solution for this problem.

    If you change the event you can see the 'Lock Front panel' option, if you uncheck the box that your PC will not be locked. But the wisest method does not perform any operation within the structure of the event.

  • What is a good way to check if the selection ADB sql cursor returns nothing

    Hi all

    I am trying to find a good way to identify that a select SQL basic cursor return nothing.
    I know that or we use exception when no data found or count (*) to check how many rows are returned.


    I have a cursor based on a long statement select.
    As
    CREATE OR REPLACE PROCEDURE aaa (v_input IN NUMBER, v_output OUT VARCHAR2)
         CURSOR long_cursor IS
              --long select statement(with input variable) ;
    
    BEGIN
         Select count(*) 
         Into v_count
      From
      -- a long select statment with input again ;
      IF v_count > 0 then
        For record in long_cursor loop
         --Get information from cursor
            --other processing for output
        End loop;
      END IF;
    
    END;
    Is there a way other than the above?
    I would like to reduce the amount of typing. I know that repetition in code is not good.

    Thanks in advance,
    Ann

    Published by: Ann586341 on February 28, 2013 14:29

    Hello Ann,.

    Apart from the possibility has already been mentioned that other users can change the data during execution of your process, you can check if something needs to be done without the COUNTY. Set a flag in the cursor for loop. When there is no data, then the flag will not change one you can perform the necessary procedure.

    CREATE OR REPLACE PROCEDURE aaa (v_input IN NUMBER, v_output OUT VARCHAR2)
    
        v_data_found    BOOLEAN := FALSE;
        CURSOR long_cursor IS
            --long select statement(with input variable) ;
    
    BEGIN
        For record in long_cursor loop
            v_data_found := TRUE;
            --Get information from cursor
            --other processing for output
        End loop;
        IF NOT v_data_found THEN
            -- set processed flag
        END IF;
    END;
    

    Concerning
    Marcus

  • How can I catch and respond to the events to load a PDF incorporated into the Web site?

    I have a pdf embedded in my web page by using a URL in an HTML object tag.  Sometimes the URL is not responding, or throws an exception.  Is there a way I can capture that from the plugin side client in javascript and indicate to the user that's happened?  Same result in IE and Chrome, even if plugins are different - when the URL fails, the user just sits on a white screen.  It would also be nice to be able to catch a load event, so I don't know when the PDF was loaded successfully (so I could do my own spinner, for example).

    Hi woopsydoozy,

    See the KB documents below to help: -.

    Kind regards
    Nicos

  • OsCustomizationSpec and OSCustomizationNicMapping they are a good way to set up the new virtual machine for the model

    I build a script to generate auto magicly VM when I have import information from a csv file. I have the latest PowerCli, I am trying to build servers r2 Sever 2012 model.  I tried several OsCustomizationSpec (OCS) of in the hope of getting something to work, but I had no luck so far.  In VCenter, it shows that it applies the OCS, but is not apear to have an impact on the server.  I have disabled UAC since the last time that I tried it so maybe that will make a difference.  I am under ESXi 5.1 update 2, just to try to give all the necessary information.  Ideally, I'd like Sysprep, the value of intellectual property, change the computer name and join the server to the domain.  That's all! lol I have the book "VMware vSphere PowerCLI Reffernece, automating vSphere Administration, I walked through step by step.  The new version of PowerCli seems not have the x 86 limitation as earlier versions of PowerCli.  I tried so many different things, I'm not sure what to put in place as a starting point.

    # Save the object credentials with permission to join the domain.
    $DomainCredentials = get-Credential "domain\testername."
    # Clone our Spec by adding the domain information.
    $Spec = get-OSCustomizationSpec "Windows Server 2012 R2"
    $Spec += get-OSCustomizationNicMapping - Spec $Spec
    #$Spec | Select *.

    # Get our VM
    # Change network settings
    Get - VM BigServername | Get-NetworkAdapter | Together-NetworkAdapter - NetworkName nic - 172.16.25 - VLAN225 - connected: $true '
    -Confirm: $false | out-null
    # Close the comments to make change.
    Stop-VMGuest - VM $VM - confirm: $false | out-null
    # Wait while feedback stops
    While ($vm. ExtensionData.Runtime.PowerState - not "poweredOff")
    {
    Start-Sleep - seconds 1
    $vm. ExtensionData.UpdateViewData ('Runtime.PowerState')
    }
    # Apply Spec customization to apply the new network settings
    Get - VM "BigServername" |
    Set-VM - OSCustomizationSpec "R2 Windows Server 2012" - confirm: $false |
    Start-VM

    I can rebuild the model, or something else, we must do this work.

    OR - is simply not the best way to configure the VM?  If not, what Sysprep?

    Good news, but first, I would really like to know where the log files are on which server to the OsCustomization process.

    I decided to reverse engineer and create a CSOS within vCeneter and once I got to work, I kept creating new CSO via PowerCli until I could get that to work, create a new virtual machine.  Once I got this to work, I have tryied to apply on a cloned vm, with no parameters. I got it works too.  I tried to go back to my original image, but I couldn't get this to work.  Something's wrong with this picture.  He wrath that the problem was related to the permissions on the local client.

    New OSCustomizationSpec - OrgName company OSType - Windows - ChangeSid-Server "vcenter.dom.com" - name PowerCliOnly4 - persistent administrator-Type FullName - AdminPassword! password123 - zone "Eastern (USA and Canada)" AutoLogonCount - 3 - domain dom dadmin - DomainUsername - DomainPassword! password123 NamingScheme - vm-Description "PowerCli Use only" - confirm: $false

    Get-OSCustomizationNicMapping - OSCustomizationSpec PowerCliOnly4 | Game-OSCustomizationNicMapping - Position 1 - IpMode UseStaticIP - IpAddress 10.10.10.98 - 255.255.255.0 - DefaultGateway 10.10.10.1 Dns subnet - mask "10.10.10.10","10.10.10.11" "-confirm: $false

    This seems to be very picky.  Because the area is one of the parameters, you cannot put it in the DomainUsername, no dom\dadmin. The part that I really want to know how to get more, is what happens if your vm has a different local administrator as the administrator account.  It turns out that FullName - is not the account that it to connect locally with tires. When I created the vCenter Medtronic Chondroitin, I put 'me' in the name and information of the Organization and that's what was settled in the FullName property:

    Name: PowerCliOnlyM
    Type: persistent
    ServerId: /VIServer = dom\[email protected]: 443.
    Server: vcenter.dom.com
    LastUpdate: 24/09/2014 13:33:19
    DomainAdminUsername: dadmin NO dom/dadmin here!
    DomainUsername: dadmin
    Description: PowerCli use only, done manually in vCenter.
    AutoLogonCount: 3
    ChangeSid: true
    DeleteAccounts: false
    DnsServer:
    DnsSuffix:
    Domain: vsi
    Full name: me
    GuiRunOnce:
    NamingPrefix:
    NamingScheme: Vm
    OrgName: CompanyTU
    OSType: Windows
    ProductKey:
    Time zone: (USA and Canada)
    Working Group:
    LicenseMode: NotSpecified
    LicenseMaxConnections:
    EncryptionKey: {-126, 3, 48, 108...}
    ExtensionData: VMware.Vim.CustomizationSpecItem
    ID: PowerCliOnlyM
    UID: /VIServer = vsi\[email protected]: 443/OSCustomizationSpec = PowerCliOnlyM /.
    Client: VMware.VimAutomation.ViCore.Impl.V1.VimClient
    AdminPassword: w
    DomainAdminPassword: N
    DomainPassword: N

    DNS: {10.10.10.10, 10.10.10.11}
    Wins                  :
    SpecId: PowerCliOnlyM
    Spec: PowerCliOnlyM
    SpecType: persistent
    NetworkAdapterMac:
    Position: 1
    IPMode: UseStaticIP
    IP address: 10.10.10.98
    Subnet mask: 255.255.255.0
    DefaultGateway: 10.10.10.1
    AlternateGateway:
    VCApplicationArgument:
    ID: /VIServer = dom\[email protected]: 443/OSCustomizationNicMapping = OSCustomizationNicMappingImpl-PowerCliOnlyM-persistent-1.
    UID: /VIServer = dom\[email protected]: 443/OSCustomizationNicMapping = OSCustomizationNicMappingImpl-PowerCliOnlyM-persistent-1.
    ExtensionData: VMware.Vim.CustomizationAdapterMapping
    Client: VMware.VimAutomation.ViCore.Impl.V1.VimClient
    Version: 1

    I think that it is good to know that the virtual machine reboot 4 or 5 times as it goes through this process.  It breaks is you try and do something for the virtual machine that interrupt the process.  I don't know that I'll think more questions in a second.

    In addition, it cost he had some problems with the put between quotation marks, single or double around the password, but I did not check this again, I just know that once I took them, he began to work.  I ran on other issues while testing as I was using a single IP address, so if I do not disable the test VM, the following would not work because of the conflct network, maybe I shouldn't admit that... lol

  • What is the best way to deal with the events of Qml-components of java script or C++?

    Hello

    Please suggest which is the best way to treat the Qml-components signal in the manuscript of java or C++.

    can read contacts in javaScript?

    When you want to make things more complex: Yes.
    QT made it much easier for me as a java developer, bb, but you will need to learn some basics.

  • Click on the white space of the text and to respond to the event listener?

    Not sure if I as formulated properly. I have about 6 pieces of illustrator described the text. imported into flash as symbols with the works and the set fine event listeners. but I notice that I can only click on the plan itself, if I click on the inside of an 'o' or 'R', it does not work.

    I added white boxes behind each of the symbols and that fixes the problem, but now I want to make a change of color on the symbol (text only, of course), but when I apply the transformation, but the background area and text that have the new color applied, leaving me with a rectangle. I gave the box a alpha to 0, if I did not affect alpha in the transformation of hope, the pointer would read again the box, but not go, he can't even see the box again.

    no work around for this sort of thing?

    You can try mmaking text of a movieclip object separated from the box inside a container movieclip and assign events from the mouse to the container, but the transformation to the text inside movieclip.

  • good way to store/retrieve the lat lon

    Hello

    I need to store points in the database and then retrieve the distance to these points. I'll also have to get the lat lon.

    I thought that the column type must be SDO_GEOMETRY

    and when I'm ready to find a distance to a point I can do (for example, where mypoint is a column SDO_GEOMETRY):
    SELECT 
    SDO_GEOM.SDO_DISTANCE(mypoint, 
         SDO_GEOMETRY
         (
         2001, -- SDO_GTYPE attribute: "2" in 2001 specifies dimensionality is 2.
         NULL, -- other fields are set to NULL.
         SDO_POINT_TYPE(-78.907167, 35.988644, NULL),
         NULL,
         NULL
         ),
        0.01) distance
    FROM
    geo_test
    What is the best way to store points and calculate the distance?

    What happens if I want to retrieve the latitude and longitude using a select statement? How do I do that?

    Hello

    IIF you use long lat for your data, you must explicitly set the SRID. If the system does not know what are the values long lat, which means the distance will return a Cartesian distance that will be small and not what you expect.

    There are 2 options for contact information:

    for the geometry SDO_POINT_TYPE explicit;

    Select a.mypoint.sdo_point.x, a.mypoint.sdo_point.y,.
    of geo_test one

    NOTE: you must use the alias for your table name

    or you can use the generic option SDO_UTIL. GETVERTICES

    http://download.Oracle.com/docs/HTML/B14255_01/sdo_util.htm#sthref2424

    SELECT t.X, t.Y, t.id
    OF geo_test c,.
    TABLE (SDO_UTIL. GETVERTICES (c.myPoint)) t

    Luke

  • Sprite will not respond to custom events

    I have a soft where many Sprite objects are placed on the stage, and then, when an event occurs (most likely mouse click), I want all of the Sprites to move around independently, based on an algorithm that has every Sprite.  I can't get the Sprite objects to respond to the event; I get no error, it's just that the right thing is not the case, see my comment below in red.

    Thank you!

    Here's my class of the event:

    package {}
    import flash.events.Event;

    SerializableAttribute public class MyCustomEvent extends flash.events.Event {}
    public static const = "deplaceza" CONTROL_TYPE:String

    public void MyCustomEvent (type: String, bubbles: Boolean = false, cancelable: Boolean = false) {}
    Super (type, bubbles, cancelable);
    }
    }
    }

    Here are my main:

    Import MyCustomEvent;
    import flash.events.EventDispatcher;
    import flash.events.Event;
    import flash.display.Sprite;

    var arr:Array = new Array();

    for (var i: int = 0; i < 10; i ++) {}
    var c:Sprite = new Sprite();
    c.addEventListener (MyCustomEvent.CONTROL_TYPE, doSomething);
    c.graphics.beginFill (Math.random () * 0xffffff);
    var myX:int = Math.Random () * 500;
    var myY:int = Math.Random () * 500;
    c.graphics.drawCircle (myX, myY, 5);
    addChild (c);
    arr.push (c);
    }

    function doSomething(e:Event):void {}
    trace ("Sprite heard event");  / / this does NOT
    }

    addEventListener (MouseEvent.CLICK, mouse click);

    function mouseClick(e:Event):void {}
    trace ("Click"); / / in this case
    dispatchEvent (new MyCustomEvent (MyCustomEvent.CONTROL_TYPE));
    }

    However, it seems based on the code you provided that it is not really as simple as that: that actually what needs to happen is that I have to visit each person individually and ship the order 100 times (your for loop).  Which seems to bulky me.  If they have the listener, why can't they just 'hear' my event a reshipment?  Which is not how things should work ideally?

    I think there could be a hundred ways in OO concepts to implement this functionality.

    I'll list some of them:

    1. Create a controller of empty MovieClip that will be the only object to listen to your event and move/scale or work on the required objects. [just like the model MVC]
    2. Create a class singleton as kglad told earlier and do listen to the object that will be internally "clone" of the event and send it to all your items. [just like the Singleton Pattern]
    3. Creates an array [that you use now], use no events rather directly move/scale or work on the required objects. [Simple OO]

    If you are looking for more on the design patterns on Google, you will get N number of styles available for you. I want to say OOP is not just about programming, it's more HOW YOU PROGRAM to thissubject. [because you will get thousands of ways to do the same thing.]

    Either by the way, I like your approach to learn things and it's very nice that you have not just copy paste the code ready to available employment.

    Keep learining going and happy!

  • Generate the event

    Hi all

    I use Labview7.0 and need to generate the automatic event. This means without any button or mouse move the activity on the front panel, I want to generate the event after each interval of time given.

    How can I fullfill my requirement?

    Kind regards

    Ratna

    Hello

    One way you can trigger the event is to use node property of this control or indicator value.

  • How to disable the events of navigation of the keyboard to the ScrollPane.

    Title pretty much everything said. I'm looking for a way to disable only the events of keyboard for the scrollpane himself. I have a number of textfields combined in a movielip within scrollpane so I want to disable the keyboard for the component navigation, while keeping the rest of the functionality of the component as well as the custom for my clip interactions. Is this possible? or do I just try to create a custom scroll bar?

    All advice appreciated.

    M.

    normally intercept you the keyboard event in a listener function and apply the preventDefault() method.  but the keyboard events scrollpane for are not cancellable, so you'll need to do your own scrollpane.

  • We can add money on an iphone to get the new, a good way would it cost?

    We can add money on an iphone to get the new, a good way would it cost?

    You must speak to your support for example provider (at & t, Verizon, etc.) about adding money to pay your device if not already eligible for an upgrade. Hope this helps, good luck to you.

  • Is there a good way to reuse the facades?


    Yes.  Use an Xcontrol.  A façade Xcontrol always appears the same on every FP that contains an instance of it and it may take action in response to the events...   Read this KB article (always a good read)

  • What is a good way to use the queues for the model of consumers/producers?

    Hi all

    I am following the model of consumers/producers to use the queue to synchronize the following process: the producer is a loop to produce a number N, I will put each number generated in a table and after each 5 numbers generated, I put the table in the queue and pass it on to the consumer. I have to wait the use by consumers of the data and it will then remove the item from queue so that producers will have the chance to produce another 5 numbers. As I put the maximum size of the queue one, I expect that the producer and the consumer turns to produce / consume all five numbers and the opportunity to another. Here is my code

    When the checkbox is false, the code will be

    For the first 5 numbers, product will generate every thing right and put it in the table, and it's going to pass the array to the quere so that the consumer will have the chance to loop through the table. I except the procude loop will continue only when the queue is available (i.e. all items are deleted), but it seems that once the consumer starts the loop loop of the product will continue (if the indicator x + 1 and x 2 will be changed to numbers). But this isn't what I want, I know there must be something wrong, but I can't say it is.

    dragondriver wrote:

    As you say in 1, sequency structure to enforce the order of execution, that's why I put it here, in this example, the simple question, I replace the complete code with increase in the number, in the real case, the first markers + 1 and + 2 must be performed in this order.

    Mikeporter says:
    1. get rid of all the structures of the sequence. None of them are nothing but apply a work order which would have been the same without them.

    So even if you delete the sequence structure, there will be a fixed & defined order and it is because LabVIEW follows the MODEL of FLOW OF DATA.

    Data flow model (more precisely in the context of LabVIEW): a block diagram node runs when it receives the required inputs. When a node is running, it produces output data and transmits data to the next node in the path of the data stream. The flow of data on the nodes determines the order of execution of the VIs and functions on the block diagram (click here for reference).

    Now in your code, just remove the sequence structure will not make you order will be going to stay the same, but you need to do some very minor changes (as thread of the error in loop, before that he go to the node "Élément Dequeue").

    Come to the main point: it's a good way to use the queue for the consumer/pmodel that?
    The model you are using (and qualifying as consumer/pmodel) is much too deviated from the original consumer/pmodel which model.

    dragondriver wrote:

    For the second, Yes, it's my fault for delete, though. I'm actually the example of model of producer/consumer design pattern, but I do not pay attention to the while loop in the part of the consumer.

    While loops (two producers & consumers) are the essential part of this architecture and cannot be deleted. You can start your code using standard model.

  • Computer crash xp pro have attempted to use the console to restore windows, but im not a good enough geek to type orders correctly is a more automated way to boot from the CD to reinstall the CD?

    Computer crash xp pro have attempted to use the console to restore windows, but im not a good enough geek to type orders correctly is a more automated way to boot from the CD to reinstall the CD?  There is a lot of argument about deplacerb help pages the correct process and commands to use I don't want to do more damage.

    Thank you

    Hello

    I suggest you to visit these links and check if it helps:

    How to install and use the Recovery Console in Windows XP:
    http://support.Microsoft.com/kb/307654

    Description of the Windows XP Recovery Console for advanced users:
    http://support.Microsoft.com/kb/314058

    How to perform an upgrade on the spot (reinstallation) of Windows XP:
    http://support.Microsoft.com/kb/978788

    Check if that helps.

Maybe you are looking for