Why we cannot perform DML operations against complex views directly.

hi
can any tell me why we cannot perform DML operations against complex views directly.

Hi,
It is not easy to perform DML operations on complex views which involve more than one table as said by vissu. The reason being you may not know which columns to be updated/inserted/deleted on the base tables of the views. If it is a simple view containing a single table it is as simple as performing actions on the table.
For further details visit this
http://www.orafaq.com/wiki/View
cheers
VT

Similar Messages

  • Cannot perform dml operation inside a query

    I have created a function which does some dml opration.
    when I use it in a through a transformation operator, and execute the map,
    it throws the following error:
    cannot perform dml operation inside a query
    how to handle this?

    Hi,
    if you want to execute the dml within a mapping, use the pre or post mapping procress operator. Or use a sql*plus activity in the process flow.
    Regards,
    Carsten.

  • How do I use XML to perform DML Operations against 8i DBs?

    Please point me in the direction to get started. I am not sure if I need XML DB (9i R2 only ?), XSQL, XDK or what.
    I would like to be able to deconstruct existing applications (mostly PL/SQL) into a series of XML docs that when 'pieced' together could behave as a set of transactions. Where I am heading is toward making existing apps Web Services enabled. I would like to be able to use existing tables in my schemas.
    What advice can you give me in terms of getting started and selecting the 'right' approach? I assume there are trade offs between 8i and 9i DBs.
    Jesse Johnson

    You may pass an XML Document as a parameter to a Java file that makes use of XSU classes like OracleXMLSave and there are methods available in OracleXMLSave like insertXML() method that takes care of the dml part.
    Go through the examples listed below.
    Program Listing 1 : This program will insert a record into the emp table. This program takes an xml file as an input , translates the content into an insert statement and inserts and commits the data into the database. An example of the xml file is also enclosed.
    import java.sql.*;
    import java.net.*;
    import oracle.xml.sql.dml.OracleXMLSave;
    public class Insertfromfile {
         public static void main(String argv[])
              throws SQLException {
              Connection cn = ConnectionHelper.getConnection();
              OracleXMLSave sav = new OracleXMLSave(cn, "scott.emp");
              URL url = sav.createURL(argv[0]);
              sav.insertXML(url );
              cn.close();
              System.out.println("Done ....!");
    XML File shown below.
    <?xml version = '1.0'?>
    <ROWSET>
    <ROW num="1">
    <EMPNO>1238</EMPNO>
    <SAL>100</SAL>
    <DEPTNO>20</DEPTNO>
    </ROW>
    </ROWSET>
    Program Listing 2 : Update operations
    import java.sql.*;
    import oracle.xml.sql.dml.OracleXMLSave;
    public class TestUpdate {
         public static void main(String argv[])
              throws SQLException {
              String rowToUpdate = "<?xml version = '1.0'?> " +
                   " <ROWSET> " +
                   " <ROW num=\"1\"> " +
                   " <EMPNO>1238</EMPNO> " +
                   " <SAL>999</SAL> " +
    " <DEPTNO>20</DEPTNO> " +
                   " </ROW> " +
                   " </ROWSET> ";
              Connection cn = ConnectionHelper.getConnection();
              OracleXMLSave sav = new OracleXMLSave(cn, "scott.emp");
              String [] keyColNames = new String[2];
              keyColNames[0] = "EMPNO";
    keyColNames[1] = "DEPTNO";
              sav.setKeyColumnList(keyColNames);
              sav.updateXML(rowToUpdate );
              sav.close();
              System.out.println("Done ....!");
    Program Listing 3 : Delete OPeration
    import java.sql.*;
    import oracle.xml.sql.dml.OracleXMLSave;
    public class TestDelete {
         public static void main(String argv[])
              throws SQLException {
              Connection cn = ConnectionHelper.getConnection();
              OracleXMLSave sav = new OracleXMLSave(cn, "scott.emp");
              String [] keyColNames = new String[1];
              keyColNames[0] = "EMPNO";
              sav.setKeyColumnList(keyColNames);
              for (int i=1234; i <1240; i++) {
              String rowPatternToDelete= "<?xml version = '1.0'?> " +
                        " <ROWSET> " +
                        " <ROW num=\"1\"> " +
                        " <EMPNO>" + i + "</EMPNO> " +
                        " </ROW> " +
                        " </ROWSET> ";
                   sav.deleteXML(rowPatternToDelete );
              sav.close();
              System.out.println("Done ....!");
    Program Listing 4 : ConnectionHelper.java
    import java.sql.*;
    import java.util.*;
    import oracle.jdbc.driver.*;
    public class ConnectionHelper {
    public static Connection getConnection() throws SQLException {
    String username = "scott";
    String password = "tiger";
    String thinConn = "jdbc:oracle:thin:@localhost:1521:orcl";
    String default8iConn = "jdbc:oracle:kprb:";
    String driverClass = "oracle.jdbc.driver.OracleDriver";
    Connection cn = null;
    try {
    Driver d = (Driver)Class.forName(driverClass).newInstance();
    return DriverManager.getConnection(thinConn,username,password);
    catch (Exception e) {
    throw new SQLException("Error Loading JDBC Driver");

  • Cannot perform export operation

    I am trying to export a table (Oracle 8.1.6, iAS 1.0.2) , but I get the following error:
    Could not find the preference storage for temporary directory. Cannot perform export operation. Contact the administrator. (WWV-17101)
    When I try to export an application and I 'Click here to download the export script file (2618 bytes). ', the browser shows a url of http://schmidm-zx/pls/portal30/docs/313.sql, however, this file doesn't exist anywhere on the machine.
    What is going on?
    null

    Martin,
    Export/Import of Tables is different from other exports(application/component/database objects)
    All the other exports generate a sql script however export of table generates a dump file.
    For import of components you need to run sql script from sql plus, however for import of table you need to run Oracle Imp utility.
    For export of table alone, you need to specify the temporary directory with sufficient privileges in global settings.
    For ex in unix machines it can be /var/tmp and for NT machines it can be c:\temp directories.

  • Cannot perform this operation stopping my editing dead.

    I'm running an Imac mid 2011, 2.8ghz I7 with 24gb of ram. All my media is externally stored. I installed FCPX 10.1.1. on top of a clean installation of Mavericks.
    My problem: Just after I build a compound clip with a solid backqround and one title over the top, I invariably get this message popping up..."Cannot perform this operation: The application detected an error that prevents changed from being saved. To avoid losing your work, quit FCP"....then the program disappears.
    I've been reading that this could be coming from updated projects and events so I created a new library for my latest job but the problem persists. Has anyone else encountered this? Seems like yet another bug to me.

    Hi dpcam1,
    I agree - a bug ...I have had that error randomly recently. Hopefully the dumps that apple gets may yield a fix down the track :/
    Bam

  • Problem in Performing DML Operations

    Hi,
    I am performing DML operations(add,edit,delete) on some table 'X'.
    Question:
    After i perform a create operation for the first time, it works fine.
    Now if i tried to perform second consequitive create operation all the fields have first create operations data.
    How will i clear the data in this field.
    Same thing is happening for update operation also.
    This is same even when i use cancel operation followed by create operation.
    How shall i resolve this UI issue.
    Thanks,
    Mithun

    retainAM - If true, all the cached application modules will be retained. If false, all the cached application modules will be released. Developers must use this parameter to control the release behavior of the cached appplication modules. This method will ignore any retainAM=true or retainAM=false as a URL parameter or as part of parameters.
    You should not set retainAM to false in all the cases that can cause performance issue as the AM cache has to be recreated for every navigation. But in your case, it's acceptable.
    Best scenarios for retainAM = true
    1. When you open a page in update mode from List page.
    2. When you want the current values to be retained, after any navigation.
    3. When you add bradcrumb, it is recommended to use reatainAM to true.
    Best scenarios for retainAM = false
    1. When you don't want to retain the AM cache since everytime it should be created. or you want to release manually.
    2. Your current case.
    3. To reset the form values. But this should be the last option.
    Basically, reatainAM parameter is used to tell the OA Caching Framework to retain the current AM cache when the new AM cache gets created by navigating to new page.
    Please set the thread to answered if your issue is solved.

  • Your system is low on disk space and elements organizer cannot  perform this operation

    your system is low on disk space and elements organizer cannot  perform this operation is the error message i keep getting. i have emptied my recycle bin and got rid of some software that i don't use and im still getting the error. Any Suggestions?

    As you might be aware, when you apply auto-fix, a new file (of almost equal size) is created on HDD. This issue might arise if you don't have sufficient hard disk space on the drive which contains the source image. Do you have enough storage space available on your HDD?
    ~Andromeda

  • InvalidOperationException - "Cannot perform this operation while dispatcher processing is suspended."

    I have a WPF application in .NET 4.5.  The latest version of the map control (version 1.0.1.0) is causing an issue if it is used within a datatemplate.  This does not happen with the previous version I was using from Nuget (version 1.0.0.0).  As
    an aside, what happened to the Nuget package?  Anyways, it is easy to reproduce the issue:
    MainWindow.xaml:
    <Window x:Class="MicrosoftMapError.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="MainWindow"
    Content="{Binding ViewModel,
    RelativeSource={RelativeSource Self}}">
    <Window.Resources>
    <ResourceDictionary>
    <ResourceDictionary.MergedDictionaries>
    <ResourceDictionary Source="Views/MapView.xaml" />
    </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
    </Window.Resources>
    </Window>
    MainWindow.cs:
    using MicrosoftMapError.ViewModels;
    using System.Windows;
    namespace MicrosoftMapError
    public partial class MainWindow : Window
    public MainWindow()
    InitializeComponent();
    this.ViewModel = new MapViewModel();
    public object ViewModel
    get { return (object)GetValue(ViewModelProperty); }
    set { SetValue(ViewModelProperty, value); }
    public static readonly DependencyProperty ViewModelProperty = DependencyProperty.Register(
    "ViewModel",
    typeof(object),
    typeof(MainWindow));
    MapView.xaml:
    <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:wpf="clr-namespace:Microsoft.Maps.MapControl.WPF;assembly=Microsoft.Maps.MapControl.WPF"
    xmlns:viewModels="clr-namespace:MicrosoftMapError.ViewModels">
    <DataTemplate DataType="{x:Type viewModels:MapViewModel}">
    <Grid>
    <wpf:Map />
    </Grid>
    </DataTemplate>
    </ResourceDictionary>
    The MapViewModel class is just an empty class, there is nothing to show there.
    And this is the stack trace for the exceptions.
    Outer exception: XamlParseException - The invocation of the constructor on type 'Microsoft.Maps.MapControl.WPF.Map' that matches the specified binding constraints threw an exception.
       at System.Windows.FrameworkTemplate.LoadTemplateXaml(XamlReader templateReader, XamlObjectWriter currentWriter)
       at System.Windows.FrameworkTemplate.LoadTemplateXaml(XamlObjectWriter objectWriter)
       at System.Windows.FrameworkTemplate.LoadOptimizedTemplateContent(DependencyObject container, IComponentConnector componentConnector, IStyleConnector styleConnector, List`1 affectedChildren, UncommonField`1 templatedNonFeChildrenField)
       at System.Windows.FrameworkTemplate.LoadContent(DependencyObject container, List`1 affectedChildren)
       at System.Windows.StyleHelper.ApplyTemplateContent(UncommonField`1 dataField, DependencyObject container, FrameworkElementFactory templateRoot, Int32 lastChildIndex, HybridDictionary childIndexFromChildID, FrameworkTemplate frameworkTemplate)
       at System.Windows.FrameworkTemplate.ApplyTemplateContent(UncommonField`1 templateDataField, FrameworkElement container)
       at System.Windows.FrameworkElement.ApplyTemplate()
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Documents.AdornerDecorator.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Border.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Window.MeasureOverrideHelper(Size constraint)
       at System.Windows.Window.MeasureOverride(Size availableSize)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Interop.HwndSource.SetLayoutSize()
       at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)
       at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)
       at System.Windows.Window.SetRootVisual()
       at System.Windows.Window.SetRootVisualAndUpdateSTC()
       at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)
       at System.Windows.Window.CreateSourceWindow(Boolean duringShow)
       at System.Windows.Window.CreateSourceWindowDuringShow()
       at System.Windows.Window.SafeCreateWindowDuringShow()
       at System.Windows.Window.ShowHelper(Object booleanBox)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.DispatcherOperation.InvokeImpl()
       at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Windows.Threading.DispatcherOperation.Invoke()
       at System.Windows.Threading.Dispatcher.ProcessQueue()
       at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.Run()
       at System.Windows.Application.RunDispatcher(Object ignore)
       at System.Windows.Application.RunInternal(Window window)
       at System.Windows.Application.Run(Window window)
       at System.Windows.Application.Run()
       at MicrosoftMapError.App.Main() in d:\SoftwareDevelopment\Working\MicrosoftMapError\MicrosoftMapError\obj\Debug\App.g.cs:line 0
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
    Inner exception: InvalidOperationException - Cannot perform this operation while dispatcher processing is suspended.
       at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
       at System.Windows.Threading.DispatcherOperation.Wait(TimeSpan timeout)
       at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherOperation operation, CancellationToken cancellationToken, TimeSpan timeout)
       at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       at System.Windows.Threading.Dispatcher.Invoke(Delegate method, Object[] args)
       at Microsoft.Maps.MapControl.WPF.Core.MapConfigurationFromWeb.ConfigLoaded(String requestKey, Dictionary`2 sections)
       at Microsoft.Maps.MapControl.WPF.Core.MapConfigurationFromWeb.GetConfigurationSection(String version, String sectionName, String culture, MapConfigurationCallback callback, Boolean reExecuteCallback, Object userState)
       at Microsoft.Maps.MapControl.WPF.Core.MapConfiguration.GetSection(String version, String sectionName, String culture, String key, MapConfigurationCallback callback, Boolean reExecuteCallback, Object userState)
       at Microsoft.Maps.MapControl.WPF.Core.MapConfiguration.GetSection(String version, String sectionName, String culture, String key, MapConfigurationCallback callback, Boolean reExecuteCallback)
       at Microsoft.Maps.MapControl.WPF.Map..ctor()

    Are dev team has looked into this and I believe they have found the issue. They are working on putting together a new release. Also, Microsoft never officially released a Nuget package, someone just took some old buggy libraries and posted them on Nuget
    without asking Microsoft. We are planning to make an official Nuget package.
    http://rbrundritt.wordpress.com

  • Xgrid is not available, watcher cannot perform Xgrid operations

    Hi
    I have this erro on Xgrid Admin:
    pcastserverd [69982] Xgrid is not available, watcher cannot perform Xgrid operations
    I have a 2 xgrid agents controller, but only one works, they are both xserver.
    The jobs aren't working with the second controller.
    Could you help me please!

    Hi dgremy,
    Have you resolved the issue yet?
    Mind let me know your solution if you did?
    Thanks in advance.

  • DML operations on Materialized view

    Hi,
    I want to know can we perform DML operations like insert/update on a materialized view?
    Thanks
    Deepak

    Thanks Michaels. I'm able to update/insert into materialized view.
    But I'm having another problem.
    My materialized view is selecting rows on group by condition, but to create a MV as updatable, it should be simple.
    SQL> create materialized view mv_utr_Link
    2 build immediate
    3 refresh force on demand
    4 for update
    5 enable query rewrite
    6 as
    7 select link_id,booking_date
    8 from t_utr
    9 where link_id=246229
    10 group by link_id,booking_date
    11 /
    from t_utr
    ERROR at line 8:
    ORA-12013: updatable materialized views must be simple enough to do fast
    refresh
    If I remove the group by clause, its allowing me to create MV, but that won't solve my problem.
    any workaround on that?
    Thanks
    Deepak

  • Cannot perform DML inside a query

    Hi,
    I have a Function and I am trying to execute an "Insert" statement into the Function. It gives me an error saying that-
    ERROR:
    ORA-14551: cannot perform a DML operation inside a query
    ORA-06512: at "SCOTT.POP3", line 243
    I then tried adding : PRAGMA AUTONOMOUS_TRANSACTION to the Function and then it gives me an error saying-
    ERROR:
    ORA-06519: active autonomous transaction detected and rolled back
    ORA-06512: at "SCOTT.POP3", line 245
    My code snippet is as follows :
    CREATE OR REPLACE FUNCTION pop3 (
    username VARCHAR2,
    PASSWORD VARCHAR2,
    msgnum NUMBER
    RETURN tstrings PIPELINED
    IS
    --PRAGMA AUTONOMOUS_TRANSACTION;
    pop3_server CONSTANT VARCHAR2 (100) := 'pop.secureserver.net';
    pop3_port CONSTANT NUMBER := 110;
    pop3_ok CONSTANT VARCHAR2 (10) := '+OK';
    e_pop3_error EXCEPTION;
    socket UTL_TCP.connection;
    line VARCHAR2 (30000);
    line2                    VARCHAR2 (30000);
    BYTES INTEGER;
    msg_from varchar2(4000) := '';
    msg_to varchar2(4000) := '';
    msg_date varchar2(4000) := '';
    msg_sub varchar2(4000) := '';
    msg_body clob := NULL;
    hyphen_checker number := 0;
    msg_body_flag number := 0;
    crlf varchar2(2) := chr(13) || chr(10);
    -- send a POP3 command
    -- (we expect each command to respond with a +OK)
    FUNCTION writetopop (command VARCHAR2)
    RETURN VARCHAR2
    IS
    len INTEGER;
    resp VARCHAR2 (30000);
    BEGIN
    len := UTL_TCP.write_line (socket, command);
    UTL_TCP.FLUSH (socket);
    -- using a hack to check the popd response
    len := UTL_TCP.read_line (socket, resp);
    IF SUBSTR (resp, 1, 3) != pop3_ok
    THEN
    RAISE e_pop3_error;
    END IF;
    RETURN (resp);
    END;
    BEGIN
         DBMS_LOB.CREATETEMPORARY(msg_body,true);
    PIPE ROW ('pop3:' || pop3_server || ' port:' || pop3_port);
    -- Just to make sure there are no previously opened connections
    UTL_TCP.close_all_connections;
    -- open a socket connection to the POP3 server
    socket :=
    UTL_TCP.open_connection (remote_host => pop3_server,
    remote_port => pop3_port,
    --tx_timeout => POP3_TIMEOUT,
    CHARSET => 'US7ASCII'
    -- read the server banner/response from the pop3 daemon
    PIPE ROW (UTL_TCP.get_line (socket));
    -- authenticate with the POP3 server using the USER and PASS commands
         LOOP
    EXIT WHEN LENGTH (line) = 1 AND line = '.';
         END LOOP;
         INSERT INTO email (em_issue, em_date, em_from, em_to, em_subject, em_body)
         VALUES(seq_issue.nextval, msg_date, msg_from, msg_to, msg_sub, msg_body);
         DBMS_LOB.freetemporary(msg_body);
         msg_from := '';
         msg_to := '';
         msg_date := '';
         msg_sub := '';
         msg_body := NULL;
         -- close connection
         PIPE ROW ('QUIT');
         PIPE ROW (writetopop ('QUIT'));
         UTL_TCP.close_connection (socket);
    EXCEPTION
    WHEN e_pop3_error
    THEN
    PIPE ROW ('There are no mails !');
    END;
    Message was edited by:
    Monk
    Message was edited by:
    Monk

    See Note:313597.1 on MetaLink

  • Cannot perform scripting operations on lists

    Hi,
    I'm having trouble performing scripting operations on lists, the only variables I can retrieve from lists are the values @HasLeadSelection, @LeadSelectedIndex and @RowCount. I cannot perform any methods on lists, I have gone through the Complete Help document and have also tried to use Resolve to attempt to access list rows but that doesn't seem to working either. Any help would be greatly appreciated!
    Thanks
    Alexander Ludwig

    Hi Alessandro & Alexander,
    I just tried it and yes we can change the colour trough scripting as well.
    Something like below in the Calculation Rule of the property Background Colour would do the job.
    result = 'STANDARD'  // This is a fallback value in case the if condition below is not satisfied.
    if( $currentrow.xxx == 'xx' )  // Here xxx should be the element within the table
    result = 'BADVALUE_DARK'   // This is one of the value from above screenshot.
    end
    Check this other thread for more details:http://scn.sap.com/thread/3528872
    And yeah the code completion is having serious issues. It shows the attributes which do not belong under is sometimes.
    Binding to another attribute and setting it trough ABSL might decrease the performance as there would be a roundtrip required in this case to change the value if this field is not shown on UI and is only used to decide the colour.
    Regards
    Vinod

  • ADF- PERFORMING DML OPERATIONS- VERY URGENT

    Dear All,
    i have an urgent requirement on ADF.
    i have not developed any page in ADF till now this is my first page so plz help Friends.
    Requirement is as follows:
    "I should create a page which should perform all DML operations (Insert, Update, Delete)".
    please specify step by step procedure for creating this plz help. very urbent friends.
    Thanks alot Friends.
    Regards,
    Raja.

    well user,
    here nothing to urgernt
    and *"no urgent."*
    user welcome this forums.
    you have passed 23 posts in this forums.
    you have to see this.
    Announcement: Please read this before you post
    https://forums.oracle.com/forums/ann.jspa?annID=56
    without any details. how can we help you. though.
    here you need.
    http://andrejusb.blogspot.in/2010/05/crud-operations-in-oracle-adf-11g-table.html
    http://andrejusb.blogspot.in/2009/11/crud-operations-in-jdeveloperadf-11g-r1.html

  • DML operations on multiple views

    Hi all.
    I can't understand updateing the data on views which created by multiple table joining. Which columns I can update and why I'm getting
    ORA-01779: cannot modify a column which maps to a non key-preserved table error??
    Can anybody show me explanation with examples??
    Thanks...

    Modifying a Join View
    A modifiable join view is a view that contains more than one table in the top
    level FROM clause of the SELECT statement, and that does not contain any of
    the following:
    - DISTINCT operator
    - aggregate functions: AVG, COUNT, GLB, MAX, MIN, STDDEV, SUM, or VARIANCE
    - set operations: UNION, UNION ALL, INTERSECT, MINUS
    - GROUP BY or HAVING clauses
    - START WITH or CONNECT BY clauses
    - ROWNUM pseudocolumn
    With some restrictions, you can modify views that involve joins. If a view is
    a join on other nested views, then the other nested views must be mergeable
    into the top level view.
    The examples in following sections use the EMP and DEPT tables. These examples
    work only if you explicitly define the primary and foreign keys in these
    tables, or define unique indexes. Following are the appropriately constrained
    table definitions for EMP and DEPT:
      CREATE TABLE dept
        deptno NUMBER(4) PRIMARY KEY,
        dname VARCHAR2(14),
        loc VARCHAR2(13)
      CREATE TABLE emp
        empno NUMBER(4) PRIMARY KEY,
        ename VARCHAR2(10),
        job varchar2(9),
        mgr NUMBER(4),
        hiredate DATE,
        sal NUMBER(7,2),
        comm NUMBER(7,2),
        deptno NUMBER(2),
        FOREIGN KEY (DEPTNO) REFERENCES DEPT(DEPTNO)
    You could also omit the primary and foreign key constraints listed above, and
    create a UNIQUE INDEX on DEPT (DEPTNO) to make the following examples work.
      CREATE OR REPLACE VIEW emp_dept AS
        SELECT empno, ename, sal, e.deptno, dname, loc
        FROM EMP e, DEPT d
        WHERE e.deptno = d.deptno;
    Key-Preserved Tables
    The concept of a key-preserved table is fundamental to understanding the
    restrictions on modifying join views. A table is key preserved if every key of
    the table can also be a key of the result of the join. So, a key-preserved
    table has its keys preserved through a join.
    Note: It is not necessary that the key or keys of a table be selected for it
    to be key preserved. It is sufficient that if the key or keys were selected,
    then they would also be key(s) of the result of the join.
    Attention: The key-preserving property of a table does not depend on the
    actual data in the table. It is, rather, a property of its schema and not of
    the data in the table. For example, if in the EMP table there was at most one
    employee in each department, then DEPT.DEPTNO would be unique in the result of
    a join of EMP and DEPT, but DEPT would still not be a key-preserved table.
    If you SELECT all rows from EMP_DEPT view, the results are:
      SELECT * FROM EMP_DEPT;
      EMPNO ENAME  SAL DEPTNO  DNAME      LOC
       7369 SMITH   800     20 RESEARCH   DALLAS
       7499 ALLEN  1600     30 SALES      CHICAGO
       7521 WARD   1250     30 SALES      CHICAGO
       7566 JONES  2975     20 RESEARCH   DALLAS
       7654 MARTIN 1250     30 SALES      CHICAGO
       7698 BLAKE  2850     30 SALES      CHICAGO
       7782 CLARK  2695     10 ACCOUNTING NEW YORK
       7788 SCOTT  3000     20 RESEARCH   DALLAS
       7839 KING   5500     10 ACCOUNTING NEW YORK
       7844 TURNER 1500     30 SALES      CHICAGO
       7876 ADAMS  1100     20 RESEARCH   DALLAS
       7900 JAMES   950     30 SALES      CHICAGO
       7902 FORD   3000     20 RESEARCH   DALLAS
       7934 MILLER 1430     10 ACCOUNTING NEW YORK
      14 rows selected.
    In this view, EMP is a key-preserved table, because EMPNO is a key of the EMP
    table, and also a key of the result of the join. DEPT is not a key-preserved
    table, because although DEPTNO is a key of the DEPT table, it is not a key of
    the join.
    DML Statements and Join Views
    =============================
    !!!!!! IMPORTANT !!!!!! IMPORTANT !!!!!! IMPORTANT !!!!!! IMPORTANT !!!!!!
    Any UPDATE, INSERT, or DELETE statement performed on a join view can modify
    only *** one *** underlying base table.
    !!!!!! IMPORTANT !!!!!! IMPORTANT !!!!!! IMPORTANT !!!!!! IMPORTANT !!!!!!
    UPDATE Statements:
    The following example shows an UPDATE statement that successfully modifies the
    EMP_DEPT view:
      UPDATE emp_dept
      SET sal = sal * 1.10
      WHERE deptno = 10;
    The following UPDATE statement would be disallowed on the EMP_DEPT view:
      UPDATE emp_dept
      SET loc = 'BOSTON'
      WHERE ename = 'SMITH';
    This statement fails with an ORA-01779 error (cannot modify a column which
    maps to a non key-preserved table), because it attempts to modify the
    underlying DEPT table, and the DEPT table is not key preserved in the EMP_DEPT
    view.
    In general, all modifiable columns of a join view must map to columns of a
    key-preserved table. If the view is defined using the WITH CHECK OPTION
    clause, then all join columns and all columns of repeated tables are not
    modifiable.
    So, for example, if the EMP_DEPT view were defined using WITH CHECK OPTION,
    the following UPDATE statement would fail:
      UPDATE emp_dept
      SET deptno = 10
      WHERE ename = 'SMITH';
    The statement fails because it is trying to update a join column.
    DELETE Statements:
    You can delete from a join view provided there is one and only one
    key-preserved table in the join.
    The following DELETE statement works on the EMP_DEPT view:
      DELETE FROM emp_dept
      WHERE ename = 'SMITH';
    This DELETE statement on the EMP_DEPT view is legal because it can be
    translated to a DELETE operation on the base EMP table, and because the EMP
    table is the only key-preserved table in the join.
    In the following view, a DELETE operation cannot be performed on the view
    because both E1 and E2 are key-preserved tables:
      CREATE VIEW emp_emp AS
        SELECT e1.ename, e2.empno, deptno
        FROM emp e1, emp e2
        WHERE e1.empno = e2.empno;
    If a view is defined using the WITH CHECK OPTION clause and the keypreserved
    table is repeated, then rows cannot be deleted from such a view:
      CREATE VIEW emp_mgr AS
        SELECT e1.ename, e2.ename mname
        FROM emp e1, emp e2
        WHERE e1.mgr = e2.empno
        WITH CHECK OPTION;
    No deletion can be performed on this view because the view involves a
    self-join of the table that is key preserved.
    INSERT Statements:
    The following INSERT statement on the EMP_DEPT view succeeds:
      INSERT INTO emp_dept (ename, empno, deptno)
      VALUES ('KURODA', 9010, 40);
    This statement works because only one key-preserved base table is being
    modified (EMP), and 40 is a valid DEPTNO in the DEPT table (thus satisfying
    the FOREIGN KEY integrity constraint on the EMP table).
    An INSERT statement like the following would fail for the same reason that
    such an UPDATE on the base EMP table would fail: the FOREIGN KEY integrity
    constraint on the EMP table is violated.
      INSERT INTO emp_dept (ename, empno, deptno)
      VALUES ('KURODA', 9010, 77);
    The following INSERT statement would fail with an ORA-1776 error (cannot
    modify more than one base table through a view).
      INSERT INTO emp_dept (empno, ename, loc)
      VALUES (9010, 'KURODA', 'BOSTON');
    An INSERT cannot, implicitly or explicitly, refer to columns of a
    non-key-preserved table. If the join view is defined using the WITH CHECK
    OPTION clause, then you cannot perform an INSERT to it.
    Using the UPDATABLE_ COLUMNS Views
    The following views can assist you when modifying join views:
    View Name               Description
    USER_UPDATABLE_COLUMNS  Shows all columns in all tables and views in the
                            users schema that are modifiable.
    DBA_UPDATABLE_COLUMNS   Shows all columns in all tables and views in the
                            DBA schema that are modifiable.
    ALL_UPDATABLE_COLUMNS   Shows all columns in all tables and views that are
                            modifiable.

  • Cannot perform some operation in portal

    Hi all,
    I am exploring portal and I am trying to do some operation for testing portal, but I get no response; the problem come when:
    1) pasting as delta link: when i try to do it, it ask me a confirm, but when I press "yes" it ignore me
    2) when I create a role or a workset, I cannot modify it or do something simple like creating a folder
    I have a superuser permission so I cannot understand if something is wrong in portal or in my moves.
    thanks to anyone will help me
    gabriele

    I think that maybe object are open in read mode, but the "edit mode" button is disabled. It's not a problem of lock I check each lock was released, but I cannot still understand why the edit button is disabled and also I cannot understand why should be open in read mode: at the end of wizard I click on "open to edit" ...
    I am really confused about this. I search the forum for anyone having this problem and I find a lot of people having this problem but no solutions ...
    does anybody know the right post or the sap note resolving this?
    thanks in advance
    Gabriele

Maybe you are looking for

  • Postfix doesn't recognize my domain

    I'm setting up postfix so I can send mail from an SMF forum on a dedicated mac mini with a static IP address. Following the instructions in the postfix.org documentation I've set mydomain = <mydomainname>.com where <mydomainname> is as in www.<mydoma

  • How do I get into my iPad if I forgot my password

    Help me! I forgot my password to my iPad!

  • What happened to the "options" button in iTunes 5?

    Hello - I just upgraded from a 4G 20G to a 60GB. Now I want iTunes to not transfer unchecked songs. What happened to the options button that used to reside at the bottom of iTunes? And where do I control iTunes to not transfer unchecked songs? Thanks

  • Exp query parameter error

    Hi , What is wrong in query parameter? userid=crmodrepo/reports file=crmodrepo4.dmp log=crmodrepo4.log statistics=NONE indexes=Y tables=(ODPERF_REQUEST_DATA) query=\"DATETIME >'10-MAY-08 01.00.00'\" I am getting bellow error. I have tried differently

  • WSUS Metadata Export Error

    Running WSUS 3.0 SP2, using Windows Internal Database. OS is Server 2008 R2. I experienced the null .cab file issue. I applied KB2828185. Upon reboot and running wsusutil.exe export 'name'.cab 'name'.log, a general error is produced "<ExportError Mes