Triggers in the Workspace Manager

I have some problems with the Workspace Manager and triggers in 10g:

If you have a trigger defined on a table and you the version of this table, ORACLE will create 3 'instead of' - triggers on the view that represents the table.
The "content" of the trigger is created in a procedure of $ wm.

My question is: How can I change my trigger without unversioning the table?

As an example, consider the following two tables:

-Create the data Table
CREATE TABLE MY_TABLE
(
X_ID NUMBER (28) NOT NULL,
V_TEXT VARCHAR2 (200),
V_COMMENT VARCHAR2 (4000)
);

-PK from table
ALTER TABLE ADD CONSTRAINT PK_MY_TABLE MY_TABLE
PRIMARY KEY (X_ID)
WITH THE HELP OF THE INDEX;

-Create the registry Table
CREATE TABLE MY_REGISTRY_TABLE
(
X_ID NUMBER (28) NOT NULL,
V_OLD_TEXT VARCHAR2 (200),
V_OLD_COMMENT VARCHAR2 (4000).
V_NEW_TEXT VARCHAR2 (200),
V_NEW_COMMENT VARCHAR2 (4000).
D_WHEN DATE NOT NULL
);

Now, we create a trigger that automatically saves changes on my_table:

-Create the trigger
CREATE OR REPLACE TRIGGER TR_MY_TABLE
AFTER INSERT OR UPDATE OR DELETE ON MY_TABLE
FOR EACH LINE
BEGIN

INSERT INTO MY_REGISTRY_TABLE)
X_ID
V_OLD_TEXT
V_OLD_COMMENT
V_NEW_TEXT
V_NEW_COMMENT
D_WHEN
)
VALUES)
NVL(:Old.) X_ID,: new. X_ID)
,: old. V_TEXT
,: old. V_COMMENT
,: new. V_TEXT
,: new. V_COMMENT
sysdate
);

END TR_MY_TABLE;
/

Now, we decide to version my_table.

exec ('MY_TABLE') dbms_wm.enableversioning;

This turns my_table 2 data tables and a collection of views.
The trigger has changed as well. The initial trigger was gone, and there are 3 "INSTEAD OF" - triggers view my_table:
OVM_Delete_102
OVM_Insert_102
OVM_Update_102

These three triggers in the end call a system generated procedure:
WM proc_udt_187 $

If I try to change this procedure, the system doesn't let me do.

So, my question is, how do I change my trigger on my_table without unversioning the table?

Hello

3 INSTEAD OF triggers are created regardless of whether if the table contained a trigger defined by the user or not. They are mainly used to implement the DML, but are used for other things as well as you noted. To change the trigger definition, you must use the Workspace Manager DDL procedure. See section 1.8 of the user guide. Essentially, you run dbms_wm.beginDDL on the table, update the trigger on the LTS table that is created (the trigger will be the original name that you gave it), then run dbmswm.commitDDL.

Kind regards
Ben

Tags: Database

Similar Questions

  • Unable to manage planning datasources in the workspace

    I have a problem of planning datasources in the workspace management. When I open the workspace and go to administer / manage Datasources planning, I get an error "could not retrieve data source information.

    If I ignore this and just try to create a new data source (e.g. file / new / Datasource), I get an error IE "error on Page".

    Any ideas?

    Paul.

    If you go directly to planning it is exactly the same as access via the workspace, workspace is just a redirect to the same page.

    It's the same that go through the workspace > manage > classic Application Administration > Planning Administration.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Update the workspace schema and schema Post installation Analysis App

    Initially, I create the workspace schema and the schema analysis corresponding to an application in the diagram A title.  I am now interested to change the schema associated with the workspace and the application in the diagram B.  I can easily do that via the workspace management UI, but I need a way to this script, so I can deliver to customers.  Does anyone have a solution?

    Chris Kopacko says:

    Initially, I create the workspace schema and the schema analysis corresponding to an application in the diagram A title.  I am now interested to change the schema associated with the workspace and the application in the diagram B.  I can easily do that via the workspace management UI, but I need a way to this script, so I can deliver to customers.  Does anyone have a solution?

    Changes in the workspace can be performed using apex_instance_admin API methods ( add_workspace/add_schema/remove_schema etc.), even if this requires scripts must be run by a user with elevated privileges.

    Once the required schema is associated with the workspace, the analysis schema can be changed using the apex_application_install.set_schema method in a script to import.

  • Workspace Manager 11 GR 2: ORA-20145: "Under TENSION" workspace cannot be deleted ORA-06512

    Hi all

    I considered the possibility of use of the Workspace Manager on Oracle 11g 11.2.0.4 (Oracle Linux OS) as a way to allow developers to experiment in our Dev of the databases (s) on the changing data in application dev (for most code tables) schema support app. I used preview Workspace Manager Enterprise Manager 12 c against one of our Dev database after (briefly) examining the 2009 Oracle Database 11g and the more formal Workspace Manager Guide the developer 11g Release 2 (11.2).

    My initial work did not provide the correct results (do not ask for help on that), so I want to start by removing all child workspaces and workspace 'On-line'. However, when I try to use EM12C to remove the LIVE (which was created under SYS) workspace I get "ORA-20145: 'LIVE' workspace cannot be deleted ORA-06512: at the"WMSYS.LT", line 4994 ORA-06512: at line 2".»

    Before posting, I googled first, then questioned this forum and even the 'full search' option but have not found any other mention to this.

    Can someone help guide me to a fix? It's development, it is important for me as a DBA because it will help you avoid to create and maintain multiple copies of our data and application for each developer schemas.

    Thank you

    Ted

    I could have sworn that I replied to this a few hours ago.  Maybe the Web gremlins ate the post, maybe they will regurgitate a few hours (so apologies if it appears a second time).

    You can not remove the DIRECT workspace.  The DIRECT workspace still exists.  This is the workspace that you are in when you log in.  If you have a table without version 10 lines and activate the version, it will have 10 rows in the DIRECT workspace.  You can create children other areas of work where the table can have 9 lines or 11 and those that can be deleted, but can not be the DIRECT workspace.

    You can disable versioning on each of your tables (dbms_wm.disableVersioning) If you want to return to the State they were before that you have turned on versioning in the first place.

    Justin

  • New members added to the workspace are not updated in beehiveonline

    I have a beehiveonline workspace

    I've added new participants via the https://beehiveonline-apex.oracle.com/pls/apex/f?p=200:4:402691159256859:NO apex management tool:

    I've added new users Friday, March 19.

    In the workspace management tool (where you can view the members of the Group) have the status of verification.

    When I checked today Monday, March 21, users are not yet valid parcipants of the beehiveonline workspace which they have been added to through the apex management tool

    It seems that the apex tool is not insert these new participants in the beehiveonline workspace?

    How can I solve this problem?


    Noel

    RBS - first on request RBS - first on [email protected] - no available invitation - [email protected] 1 F Normal Workspace request<--- workspace="" required,="" f="" means="">

    Christmas recording in the groups tool shows that you have chosen can have a default value, workspace. This means that users are in a group and can be added to the workspace - individually or in groups. The addition will have to be done manually.

    Phil

  • The audit through Workspace manager

    Hello

    I am auditing 7-8 tables in my database according to the needs of the company.

    I have a very large table in my database which is having around more than 60million records and the size of this segment is about 9 GB. Because of the requirement of the enterprise, to capture all the update and delete the history of this table.
    Currently, we have update and delete row level triggers that simply insert old values in the change_history table. But because of the size of this table of history, sometimes it become pain to get information.

    Now, we are modernizing our Database 9i and 10g and I read about the enable workspace versioning feature manager.

    Could you please provide your valuable suggestion is it interesting to use dbms_wm.enableversioning for this large table? It will increase the performance? It will increase the performance of history changes drillthrough reports.

    I perform a simple test to check the performance of the normal and the activated version table. If the performance is the same, but explain the plan for the activated version table was pretty horrible as oracle has created some tables and views that he.
    I wonder if I join tbal activated version with a few other tables and the complexity of the explain plan command, focus of this query could be tricky.

    Please suggest...

    Kind regards
    JM

    You will get probably not any improvement in performance by using Workspace Manager for relatively simple reports. The main advantages of the use of Workspace Manager to keep track of changes to data over time are

    -eliminating the need to write and maintain line-level triggers (less of a concern here where the code is already written and a relatively small number of tables is involved)
    -avoids the logic of the code "includes" in your reports. If you need run a report that gets the State of a line at a particular point in time table, join to the version of one row in another table that was in effect at that point in time, etc., you end up writing a lot of custom code to determine the current version of each line of a particular table. Workspace Manager allows you to go back to an arbitrary point in time and is implemented that bounding box logic automatically (helpful when you can reuse the reports which are designed to examine the current state without making any code changes for the status to an arbitrary point in the past).

    However, performance tends to be much more difficult because there are a number of objects involved. Best Workspace Manager will perform as well as your custom code could perform. For most cases, it is possible to write custom code more quickly. Therefore, whether the effort of that save you from the Manager of the workspace will argue (potentially small) performance problems.

    If you are on editing business, purely from the performance point of view, you would get probably more benefits of partitioning the table audit (partitioning is an extra cost option with your license to enterprise edition). You can also consider upgrading to 11g and using Total Recall (other additional cost).

    Justin

  • Zul'Aman Manager add on error on the URL of the workspace

    Hello, we use the Hyperion Planning 11.1.2.5.210. I use Mozilla Firefox to go to the workspace, however, when I type the URL of the workspace I get an error that the XUL Remote Manager add on for Mozilla Firefox in not configured.

    Help, please.

    Thank you


    The version you gave is for Smart View I think and does not intend, have you installed the Manager of XUL and added the url because depending on the version, it will be necessary.

    See you soon

    John

  • Help! I managed to pin the workspace to a launcher in the toolbar, and now I work across tools/space bar bar sitting in the middle of my screen in Photoshop. Nothing I try (right/slip etc.) seem to be moving it, can anyone advise p

    Help! I managed to pin the workspace to a launcher in the toolbar, and now I have the bar tools/work space bar sitting right in front of the middle of my screen in Photoshop as below. Nothing I try (right/slip etc.) seem to be moving it, can someone advise please? I think it happened when I accidentally scrolled with the mouse button and it seems to somehow have locked the workspace and flying together. Any ideas please? Thank youCapture.JPG

    No need to reset the prefs. Just grab the handle on the left options bar, drag it to the menu bar and drop when a thin blue line appears between them. The options bar behaves just like any other Panel in this regard.

  • Profitability and cost management application is not available in the workspace

    Hi all

    I hope someone in this forum can help me with this.

    I built a profitability management application and costs in the workspace. I have validated and deployed it sucessuflly. But when I try to open the app, I am not able to see profitability in the Menu or Navigate menu open in the workspace.

    Can someone tell what could be the cause for this?

    Some information:

    I have deployed an application with the "default application group" with "again and cost management.

    I created the Group application separately Profitabiilty and costs in Services management shared.

    Kind regards
    Subramaniam Gaudin

    What is 11.1.2.x?
    You have activated the product, Coordinator, in workspace server settings?

    See you soon,.
    Abhishek

  • No item in the workspace "classic application management."

    Hello world!
    I installed EMP 11.1.1.3, once more, and when I started the workspace, I found no classic Wizard creating applications in the Administration menu.

    There is no element:
    Manage-> classic Application Management

    could someone help me with this?

    You have configured the user with the roles of shared services of the creator of the Application, Dimension Editor
    If it does not try to rerun the configurator and configure the piece of the Foundation's web server.
    You can also go direct planning - http://administration: 8300/HyperionPlanning/AppWizard.jsp

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Calculation Manager is not available from the workspace

    We have recently installed Hyperion Planning v 11.1.1.1.0 to a customer. The installation consisted of EPMA. Everything works fine (app created, responsible for dimensions, forms of work, etc.) with one exception. We cannot step Manager appears as an option in the menu under "Administer" in the workspace. We installed the calculation Manager Finally, after that everything was in place. We have configured in the EMP system configurator. The calculation Manager service is running and everything seems to work in EPMA. I use the user ID is a shared services administrator with administrator rights Manager calculation.

    I have to do something stupid, but unfortunately the calculation Manager is new to me. We tried to restart all services.

    Any ideas?

    Hey Jake,.

    You redeploy workspace and re-configuration of the web server after the installation of the Calc Manager?

    Just like all the other components workspace does not recognize if it was installed after the deploy/web server config workspace - poor design in my mind.

    Kind regards

    -John

  • Manage the XML files in the workspace tool

    Hello

    I developed a workspace tool that was working until I have add the report XML file IO > XML > XML Parser.

    I can't add any VI of this palette to my worksapce tool. I get an error when trying to open the workspace tool if one of these screws is inside my tool.

    The error is:

    In my workspace tool, I need to open/create/modify and save XML files.

    I am in a position to use property nodes and node invoke for this type of files. And I already replace all screws of NI_XML.lvlib for nodes of property and call the nodes. But there are 2 screws that actually, I'm still unable to find the solution for them.

    Who are the NI_XML.lvlib:New.vi and the NI_XML.lvlib: Close .vi, because they are protected by Word.

    Anyone has idea how to solve this problem?

    I noticed a few screws of this palette XML using a dll. For example the first matched NI_XML.lvlib:Get Node.vi this interior uses the DOMUserDefRef.dll.

    I saw this dll functions and there is a for close, which might be the one they use inside the Close.vi. The function is DUXDocumentClose.

    I need this because you cannot close a XML reference with close Reference.vi.

    I need to replace the 3 screws

    You can do it in the manner that main vi is only as .vi. Dependencies must go to llb in the same folder as vi main.

    You can look at some of the tools here: https://github.com/NIVeriStandAdd-Ons/

  • People with disabilities maximize triggers the Task Manager button

    Maximize the error button:

    When any window dialog desktop application to maximize button is disabled, then normally it seems turned off and we couldn't maximize thanks to keyboard shortcuts or mouse.

    But if we open the Task Manager and select the application and click on Windows > maximize, then the dialog box is maximized, but I never want this aspect in my application.

    This is mistake or not?
    This applies to all windows applications including the applications that are included with the installation of windows.
    Please answer me.

    Hello

    This feature is normal and is not supposed to be a problem with the computer. Feel free to post all other queries that you have associated with Windows.

  • Management of the workspace in Dreamweaver CC2014

    In Dreamweaver CC2014 my windows go behind my tab groups (files, extracted, assets, insert, etc.) where I'm not working on it. If I reduce down, he piles up the windows in a strange way. I've been using Dreamweaver for many years and it is only a question to CC2014.

    I finally got the problem solved through contact Adobe support - we had essentially reset the workspace to one of the predefined patterns coming out of the box with Dreamweaver. Then the signs start to behave properly. From there I could customize my layout to where I needed it. This problem occurred on the upgrade of the CC to CC2014, something in the configuration files was not correct. I'm writing this in case anyone else had these issues. Machine Windows, Pro 8.1.

  • Not able to open the designer of the rule in Calc Manager in the workspace

    I installed Hyperion 11.1.2.2 on Win2003 sp2. My version of IE is 7. When I try to write/modify a business rule in the calc Manager, I get a warning "your current security settings don't allow websites to use ActiveX ie7... "Your page may not display correctly. I tried every setting in Internet Explorer to get this message across, but it doesn't. All the world faces this problem and what is the solution.

    Hello

    You will probably have to have Flash plugin (Yes it's kind of ridiculous that most of us use Calc Manager just to write calc scripts), but this is probably the reason why, I came across it last month. No idea if a recent version of the Flash plug-in for Win2003.

    Or just use a browser (Firefox or IE. recent 8/9 on a client of work instead of working directly on the server

    Good luck!
    JM

Maybe you are looking for

  • Notification Center Widgets inadmissible

    Problems with widgets on the notification Center is not not admissible. I can add and delete, but I can't click on them. For example, I can't use the calculator; its on the center of notification but not clickable. Is there any solution for this?

  • Satellite C55-C1665 - Windows 10 activation problem

    Dear support, I have improved my language unique windows preinstalled 8.1 (Toshiba C55-C1665) to windows 10 home through usb media, but impossible to activate with the 0x8007232B error. Please help. Thank youElijah

  • ThinkPad x 230 problem

    Hello I start my laptop, after he gives me eye pic "Boot Menu" screen I click on enter it remains on the same screen. Please, do you have the solution? Thank you http://img4.hostingpics.NET/pics/331432IMG0259.jpg

  • Microsoft Narrator does not read what I want it.

    Original title: I have windows xp. Narrator doesn't read what I want it. Is there another type of Narrator that I can download for free?

  • Audio books for Fuze

    Audio books can be obtained from sources other than SEO? I do not think that I could use them too often and prefer to buy them one at a time, not a monthly subscription. (or download for free if possible)