BC4J, 1012: Cannot create view over 2 different EOs

Hi,
a strange thing is happening here:
I have EOs in different packages. I want to create a join-view over these EOs in one of the packages.
For some or other reason i cannot have the 2 EOs together. I can add either one of them with any other EO in the project but not these specific 2 EOs.
Can someone from oracle please tell me what validations are done in the "Create View" - wizard when adding a EO to participate in the view so that i can check the code for irregularities? There is no error message - it just refuses to go to the "selected" window.
Any ideas PLEASE?
Thanks.

Fixing the FK name in the association.xml file, bouncing JDev(since JDev doesn't refresh internal state when a xml file changes externally), fixes the problem.

Similar Messages

  • Creating Views over DB links

    I have a requirement to create views in 3 different versions of Oracle 8i, 9i and 10g. All the views will be created over DB links and the source tables reside in an Oracle 10g instance. Other than the performance is anybody aware of any other issues with this approach?
    Thanks
    Martin

    Again, though, you're going to need to be more specific about the database releases...
    Database links between 10.2 and 8.1.7 are supported.
    Database links between 10.2 and 9.2 require that the 9.2 end be on 9.2.0.4 or later
    Database links between 10.1 and 8.1.7 require that the 8.1.7 end be on 8.1.7.4 or later
    Database links between 10.1 and 9.2 are supported
    You'll want to review the Client/Server Interoperability Matrix on Metalink to get more detailed information on what is and is not supported.
    Justin

  • Creating View Object with different criteria

    Hi,
    I have a requirement to execute the following queries in the application logic. We have YEAR table with mileage rates with different effective dates. If the service date is greater than any of the existing effective dates we need to get the rate with that effective date. if the service date is less than the existing effective dates, then we have to get the rate with least effective date.
    SELECT mileage_rate, ... FROM year
    WHERE eff_date =  (SELECT MAX(eff_date) FROM   year WHERE  eff_date <= :bServiceDate)
    SELECT MILEAGE_RATE, .... FROM YEAR WHERE
    EFF_DATE =  (SELECT MIN(EFF_DATE) FROM YEAR)
    We have to execute the 1st query and if there is no matching records then we have to take the second query with min effective date. At present we are creating two view objects for the above scenario. Is there any possibility to create one view object with different criteria. What is the best solution to handle the above problem in ADF.
    Thanks and Regards,
    S R Prasad

    Well on the ViewObjectImpl you can fire the method getQueryHitCount() passing in the required ViewRowSetImpl. If you get the query hit count as 0, use can attached the other query and execute it.

  • Cannot create view with parameter bindings

    Hi, I'm trying to create this view in SQLPlus:
    SELECT order_no, SUM(cut_qty),
    SUM(received_qty)
    FROM (
    SELECT order_no, cut.dated, DECODE(cut.bimetallic, 'F', cut.quantity, cut.quantity/2) cut_qty,0 AS received_qty
    FROM cut_shop_orders_dated cut
    WHERE cut.dated BETWEEN TO_DATE('&date1','DD/MM/YYYY') AND TO_DATE('&date2','DD/MM/YYYY')
    UNION
    (SELECT order_no, rec.dated, 0, rec.quantity
    FROM received_shop_orders_dated rec
    WHERE rec.dated BETWEEN TO_DATE('&date3','DD/MM/YYYY') AND TO_DATE('&date4','DD/MM/YYYY')))
    GROUP BY order_no
    The problem is that sqlplus asks me for the parameter values and then creates it with these values as literal dates in the to_date function, those not asking for parameter values in runtime.
    How can I create it using parameters with no values at design time?
    Thanks.
    Leandro.

    if you want something like :
    select * from emp $where_clause;
    you can write a procedure with parameter and run it as dynamic sql for example
    create or replace procedure pr1 ( p_where   varchar2) is
    begin
      execute immediate 'create or replace view view_name as select * from emp '|| p_where;
    end pr1;
    /then run it on sql*plus
    SQL> exec pr1('where deptno = 10');
    make sure you give yourself "create any view" rights explicitly.
    HTH
    Ghulam

  • Cannot create view

    Hi all,
        I am using the FM MATERIAL_MAINTAIN_DARK to create a material in the forecasting view. I have searched sdn and found lots of materials on this FM but still the I am not finding any solution to my problem.
    My problem is, when I am using this FM to create a material, and error message is popping up saying "An internal error while updating, inserting or deleting from table MLAN.". We are not using BAPI_MATERIAL_SAVEDATA or BAPI_MATERIAL_SAVEREPLICA for the purpose. So please suggest me what possibly could be the problem in my test code given below :-
    DATA: GT_MPOP_UEB TYPE STANDARD TABLE OF MPOP_UEB,
          GT_MARA_UEB TYPE STANDARD TABLE OF MARA_UEB,
          GT_MAKT_UEB TYPE STANDARD TABLE OF MAKT_UEB,
          GT_MVEG_UEB TYPE STANDARD TABLE OF MVEG_UEB,
          GT_ERROR_LIST TYPE STANDARD TABLE OF MERRDAT,
          GW_MPOP_UEB TYPE MPOP_UEB,
          GW_MARA_UEB TYPE MARA_UEB,
          GW_MAKT_UEB TYPE MAKT_UEB,
          GW_MVEG_UEB TYPE MVEG_UEB.
    DATA: G_TRANC TYPE TRANSCOUNT VALUE 1.
    CONSTANTS: G_MATERIAL TYPE STRING VALUE 'ZANIRBAN1',        "ANIRBAN1',
               G_MATERIAL_DESC TYPE STRING VALUE 'Test Material',
               G_INDUSTRY_SECTOR TYPE STRING VALUE 'M',
               G_MATERIAL_TYPE TYPE STRING VALUE 'FERT',
               G_BASE_UNIT_OF_MEASURE TYPE STRING VALUE 'EA',
               G_PLANT TYPE STRING VALUE '0001',
               G_FORECASTMODEL TYPE STRING VALUE 'J',
               G_FUNCTION TYPE STRING VALUE 'INS',
               G_TCODE TYPE STRING VALUE 'MM01'.
    Continued in the next thread *****

    Continued from previous thread ***
    START-OF-SELECTION.
      CALL FUNCTION 'MATERIAL_MAINTAIN_DARK'
        EXPORTING
         FLAG_MUSS_PRUEFEN               = 'X'
       SPERRMODUS                      = 'E'
       MAX_ERRORS                      = 0
          P_KZ_NO_WARN                    = 'N'
          KZ_PRF                          = SPACE
       KZ_VERW                         = 'X'
       KZ_AEND                         = 'X'
       KZ_DISPO                        = 'X'
       KZ_TEST                         = ' '
         CALL_MODE                       = 'RMD'
       CALL_MODE2                      = ' '
         USER                            = SY-UNAME
        TABLES
          AMARA_UEB                       = GT_MARA_UEB
          AMAKT_UEB                       = GT_MAKT_UEB
          AMPOP_UEB                       = GT_MPOP_UEB
          AMVEG_UEB                       = GT_MVEG_UEB
         AMERRDAT                        = GT_ERROR_LIST
       EXCEPTIONS
         KSTATUS_EMPTY                   = 1
         TKSTATUS_EMPTY                  = 2
         T130M_ERROR                     = 3
         INTERNAL_ERROR                  = 4
         TOO_MANY_ERRORS                 = 5
         UPDATE_ERROR                    = 6
         ERROR_PROPAGATE_HEADER          = 7
         OTHERS                          = 8
      IF SY-SUBRC NE 0.
        LOOP AT GT_ERROR_LIST INTO GW_ERROR_LIST .
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          CLEAR GW_ERROR_LIST.
        ENDLOOP.
      ELSE.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          WAIT          =
        IMPORTING
          RETURN        =
        MESSAGE 'Material Created successfully.' TYPE 'I'.
      ENDIF.

  • Create View Object programattically from XML input

    Hi,
    I have requirement to create view object from xml at run time in ADF application. is there any way to create view object dynamically in java program from xml?
    My requirement is to call a webservice and generate view object from the response of the web service call.
    Thanks

    I want to create view objects from different web services and the same will be available to the developer at the time of development. I don't want to create web service proxies for each of the web service. this will simplify the developers task to create proxy and data controls. the one thing developer has to do is select the service and base on the service the view objects will be created to develop pages accordingly.

  • Cannot create mysites from powershell: Original XSLT List View Web Part not found

    I have a bizarre problem in my SharePoint 2013 farm. This does not occur in my test farm, only in the farm we were going to go live with.
    I'm on windows Server 2012, SQLServer 2012 SP1, SharePoint 2013 April CU. 1 appserver/centraladmin server, 2 web servers.
    When I log into our mysitehost and click newsfeed, it will create a mysite (even though first it displays "we are sorry there was a problem creating your site")
    But from powershell, whether I use $UserProfile.CreatePersonalSite() or New-SPSite, I get the following error:
    Original XSLT List View Web Part not found
    So far I've only found one other person with this:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/2503e42c-e114-4e89-8e00-89fe70f0b154/cannot-create-sharepoint-mysite-programmatically
    This is a brand new farm, created with the same scripts I created my test farm with, and same version of SharePoint. Only the service accounts are different. (Farm account has admin on the servers right now since I was setting up profile service).
    Some other errors from the same correlation ID that look related:
    It can't seem to find the listemplate 101
    And something looks wrong with the MySiteDocumentLibrary feature
    I have tried the following:
    1. run psconfig.exe on each server
    2. install-spfeature -AllExistingFeatures
    3. looped through the directory under Features and for each called Install-SPFeature $dirname -Force
    4. uninstalled and reinstalled MySiteDocumentLibrary feature
    5. blew away the whole farm (removed all servers from farm, deleted all databases) and recreated it.
    6. tried creating the UPA from the CentralAdmin gui.
    The only real difference I can think of between the working farm and non working farm is, I installed the working farm using RTM, then as they came out added the March PU and April CU. For this farm I installed RTM and March and April, and then ran my build
    farm script.
    I am at a loss. What do I need to do, re-install the binaries? That's all I can think of. What I love is that our test / POC system worked fine, and now 2 weeks before go-live I'm seeing errors on the production servers I've never seen before. Using the
    same scripts no less.
    Feature Activation: Feature 'Fields' (ID: 'ca7bd552-10b1-4563-85b9-5ed1d39c962a') was activated
    Feature Activation: Feature 'CTypes' (ID: '695b6570-a48b-4a8e-8ea5-26ea7fc1d162') was activated
    No document templates uploaded for list "$Resources:core,global_onet_solutiongallery_list;" -- none found for list template "100"
    Failed to find <ListTemplate> tag corresponding to ID "101", tried both onet.xml for site definition ID "0" language "1033" and global site definition. Operation failed.
    No document templates uploaded for list "$Resources:core,stylelibraryList;" -- none found for list template "121".
    System.Runtime.InteropServices.COMException: A user may not remove his or her own account from a site collection.<nativehr>0x81020051</nativehr><nativestack></nativestack>, StackTrace: at Microsoft.SharePoint.SPUserCollection.UpdateMembers
    Feature Activation: Feature 'MySitePersonalSite' (ID: 'f661430e-c155-438e-a7c6-c68648f1b119') was activated
    Feature Activation: Activating Feature 'MySiteDocumentLibrary'
    Calling 'FeatureActivated' method of SPFeatureReceiver for Feature 'MySiteDocumentLibrary'
    SharePoint Foundation Upgrade MySiteDocumentLibraryFeatureReceiveraj08n INFO Creating new My Documents library
    Unknown SPRequest error occurred. More information: 0x80070002
    SPRequest.GetMetadataForUrl: UserPrincipalName=, AppPrincipalName= ,bstrUrl=http://contoso/personal/cbuchholz/DOCUMENTS ,METADATAFLAGS=59
    System.IO.FileNotFoundException: <nativehr>0x80070002</nativehr><nativestack></nativestack>, StackTrace: at Microsoft.SharePoint.SPWeb.GetObjectForUrl at Microsoft.SharePoint.Portal.UserProfiles.MySiteDocumentLibraryUtil.GetSPObjectFromUrl ...
    <nativehr>0x80070002</nativehr><nativestack></nativestack>There is no Web named "/personal/cbuchholz/DOCUMENTS"
    Possible mismatch between the reported error with code = 0x81070504 and message: "There is no Web named "/personal/cbuchholz/DOCUMENTS"." and the returned error with code 0x80070002.
    Attemping to add webpart id 0F6072F2-E804-4CFD-837E-BB37332B9D1C to web http://contoso/personal/cbuchholz
    Adding XsltListViewWebPart calling SPRequest::CreateListViewPart. Web part id 0F6072F2-E804-4CFD-837E-BB37332B9D1C, web http://contoso/personal/cbuchholz
    Feature receiver assembly 'Microsoft.SharePoint.Portal, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c', class 'Microsoft.SharePoint.Portal.UserProfiles.MySiteDocumentLibraryFeatureReceiver', method 'FeatureActivated' for feature 'e9c0ff81-d821-4771-8b4c-246aa7e5e9eb' threw an exception: System.InvalidOperationException: Original XSLT List View Web Part not found at Microsoft.SharePoint.Portal.UserProfiles.MySiteDocumentLibraryUtil.ReplaceListViewWebPart
    Feature Activation: Threw an exception, attempting to roll back. Feature 'MySiteDocumentLibrary'
    Exception in EnsureFeaturesActivatedAtSite: System.InvalidOperationException: Original XSLT List View Web Part not found
    Failed to activate site-collection-scoped features for template 'SPSPERS#2' in site collection 'http://contoso/personal/cbuchholz'
    Failed to apply template "SPSPERS#2" to web at URL "http://contoso/personal/cbuchholz
    I've had other problems in this farm: the bug where when you add Administrators to a Search Service via the Manage Service Applications page, it removes the SPSearchDBAdmin role from the search service process account. That one did not happen in the other farm.
    At least other people have that one and I could just use the farm admin instead (still troublng of course).

    Ok,
    Here is the problem:
    When creating a mysite from powershell or script, apparently you can ONLY do this from a wfe (or a server running Microsoft SharePoint Foundation Web Application in services on server).
    You CANNOT create mysites from script on your appserver if it is not also a Web Application Server. I confirmed the same is true in my test farm. I guess I was always running most of these scripts on the webserver.
    I searched all over and cannot find this documented anywhere.
    Who do I contact to have Microsoft document this?
    It's Thursday morning, I've been working non stop since Saturday morning so you don't have to :)

  • Creating a .pdf with different page views

    I'm tyring to create a .pdf with different page views.  For example as the viewer goes through the .pdf some pages I would like viewed as "single page view" and others "two page view".  Is this possible?   I'm working with Adobe Acrobate Pro.  Thanks for any suggestions.

    It's possible to use the Page Open actions to trigger a view mode change but it's messy - if the user tries to override them because they prefer to zoom in, etc. then they'll get very annoyed when things keep resetting.
    To create a Page Open action, open the thumbnails panel, right-click on a page, choose Page Properties, then the Actions tab. You can use the Execute a Menu Item tool to fire one of the view modes.

  • Ical cannot create event in month view

    iCal cannot create event in month view. Is this a bug?
    I've tried double clicking in a day as I always did but nothing.

    Ko be,
    Application UI issues are in many cases, caused by a corrupt plist file.
    Quit iCal, and try removing the com.apple.iCal.plist file from your Macintosh HD/Users/yourusername/Library/Preferences Folder. Since that Library is now hidden, you have to use the Finder>Go Menu>Depress the "Option" key>Library. Drag the .plist file to your desktop, and log out/in or restart and check iCal for functionality.
    Also read Apple iCal 5 Office Software Review | Macworld for a description of Lion iCal.

  • Create a classification view over bapi

    Hello,
    i start a vb Programm to create a material in sap.
    I get all views with material_savedata but the classification view is missing.
    Does anybody know if there exist a special bapi to create a classification view
    over the .net connector ?
    thanks for any help

    Hello , thanks a lot for the answers. I am using a vb programm with the proxy connector.
    In this connector i have defined:
            Dim oClassnum As String
            Dim oClasstype As String
            Dim oKeydatum As String
            Dim oLanguage As String
            Dim oObjectkey As String
            Dim oObjecttable As String
            Dim oUnvaluated_char As String
            Dim oStandardklasse As String
            Dim oStatus As String
            Dim oAllocvaluechar As New BAPI1003_ALLOC_VALUES_CHARTable
            Dim oAllocvaluecurr As New BAPI1003_ALLOC_VALUES_CURRTable
            Dim oAllocvaluesnum As New BAPI1003_ALLOC_VALUES_NUMTable
            Dim oReturn0 As New BAPIRET2Table
    Try
                oProxy.Bapi_Objcl_Getdetail(oClassnum, oClasstype, oKeydatum, _
                oLanguage, _
                oObjectkey, oObjecttable, oUnvaluated_char, oStandardklasse, _
                oStatus, oAllocvaluechar, _
                oAllocvaluecurr, oAllocvaluesnum, oReturn0)
                MsgBox(oReturn0.Item(0).Message.ToString)
            Catch ex As Exception
                MsgBox(ex.ToString)
            End Try
    When i start the programm i get the error:
    The function  OBJECT_CHECK_ does not exist. 
    WHY ??
    I have also tried to use 
    Bapi_Charact_Getdetail
    to test, if something works but i really do'nt know what the meaning of
    the parameters are . Perhaps somebody can explain them to me.
    I have tried with charactername and used a  *  but the result is always 0.
    Has somebody a documentation of the fields and tables that are
    needed or filled or a little example of the us of the classification.
    thanks a lot

  • Create trigger on view belong to different schema of same db

    Hi Guru's,
    I have two different schema in the same DB.
    Example : schema1 and schema2
    I have one view on schema1 and i have grant select to schema2 and create synonym for that view.
    Now i need to create trigger on synonym which created from view in schema1 and insert the data into different table from trigger when insert happen on view.
    first of all , is it possible?
    if its possible then do i need to give create any trigger on view to schema2.
    Or is there any other we can get this done..
    Many thanks.

    Hi,
    user590978 wrote:
    Hi Guru's,
    I have two different schema in the same DB.
    Example : schema1 and schema2
    I have one view on schema1 and i have grant select to schema2 and create synonym for that view.
    Now i need to create trigger on synonym I'm not sure I understand you.
    Triggers operate on tables and views (but I'll just say "table" from now on). It doesn't matter if the statement that caused the trigger to fire used the actual table name or a synonym.
    which created from view in schema1 and insert the data into different table from trigger when insert happen on view.
    first of all , is it possible?I'm not sure I understand you here, either.
    It is possible to have a trigger on a view in schema1, which INSERTs data into a table. That table can be in any schema, just so long as the trigger owner has privilges on INSERT into it.
    if its possible then do i need to give create any trigger on view to schema2.It's very dangerous, and usually a terrible idea, to grant the CREATE ANY privileges to users.
    Schema2 needs the CREATE ANY TRIGGER system privilege only to create a trigger in another schema, such as schema1. There's probably no reason to do that. Let schmea1 create the objects in its own schema.
    Post a test script that shows what you want to do. Include CREATE TABLE, CREATE VIEW, CREATE TRIGGER, CONNECT and INSERT statements, and the results you want (the contents of tables where the trigger INSERTed data). If you don't know how to code something, post the closest thing you can, and explain what you really want to do in that place.

  • Power View error: Cannot create a connection to data source 'EntityDataSource'

    I have Power View on SharePoint 2013. I have both Multidimentional and Tabular model in use.
    I have several Report.drlx file in Report libary in SharePoint.
    My colleague is getting following error when building report by dragging Facts and Dimentions to report.
    On the hand, I'm not receiving error.
    Error is cannot create a connection to data source 'EntityDataSource'
    <detail><ErrorCode xmlns="rsErrorOpeningConnection</ErrorCode><HttpStatus">http://www.microsoft.com/sql/reportingservices">rsErrorOpeningConnection</ErrorCode><HttpStatus
    xmlns="400</HttpStatus><Message">http://www.microsoft.com/sql/reportingservices">400</HttpStatus><Message xmlns="Cannot">http://www.microsoft.com/sql/reportingservices">Cannot
    create a connection to data source 'EntityDataSource'.</Message><HelpLink xmlns="http://go.microsoft.com/fwlink/?LinkId=20476&EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&EvtID=rsErrorOpeningConnection&ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&ProdVer=12.0.2000.8</HelpLink><ProductName">http://www.microsoft.com/sql/reportingservices">http://go.microsoft.com/fwlink/?LinkId=20476&amp;EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&amp;EvtID=rsErrorOpeningConnection&amp;ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&amp;ProdVer=12.0.2000.8</HelpLink><ProductName
    xmlns="Microsoft">http://www.microsoft.com/sql/reportingservices">Microsoft SQL Server Reporting Services</ProductName><ProductVersion xmlns="12.0.2000.8</ProductVersion><ProductLocaleId">http://www.microsoft.com/sql/reportingservices">12.0.2000.8</ProductVersion><ProductLocaleId
    xmlns="1033</ProductLocaleId><OperatingSystem">http://www.microsoft.com/sql/reportingservices">1033</ProductLocaleId><OperatingSystem xmlns="OsIndependent</OperatingSystem><CountryLocaleId">http://www.microsoft.com/sql/reportingservices">OsIndependent</OperatingSystem><CountryLocaleId
    xmlns="1033</CountryLocaleId><MoreInformation">http://www.microsoft.com/sql/reportingservices">1033</CountryLocaleId><MoreInformation xmlns="<Source>Microsoft.ReportingServices.ProcessingCore</Source><Message">http://www.microsoft.com/sql/reportingservices"><Source>Microsoft.ReportingServices.ProcessingCore</Source><Message
    msrs:ErrorCode="rsErrorOpeningConnection" msrs:HelpLink="http://go.microsoft.com/fwlink/?LinkId=20476&amp;EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&amp;EvtID=rsErrorOpeningConnection&amp;ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&amp;ProdVer=12.0.2000.8"
    xmlns:msrs="Cannot">http://www.microsoft.com/sql/reportingservices">Cannot create a connection to data source 'EntityDataSource'.</Message><MoreInformation><Source>Microsoft.AnalysisServices.AdomdClient</Source><Message></Message><MoreInformation><Source>Microsoft.SharePoint</Source><Message>Could
    not retrieve a valid Windows identity.</Message><MoreInformation><Source>mscorlib</Source><Message>WTS0003: The caller is not authorized to access the service.</Message></MoreInformation></MoreInformation></MoreInformation></MoreInformation><Warnings
    xmlns="http://www.microsoft.com/sql/reportingservices" /></detail>
    Kenny_I

    Hi Kenny_I,
    As per my understanding, I think this issue may be caused by your colleague has no permission to access to data source 'EntityDataSource', it is a Kerberos issue. When report server uses ‘Windows authentication (integrated) or SharePoint user’ as the credentials
    to access the data source 'EntityDataSource', the authentication would be failed.  So we should try to check if the issue is in this scenario. If in this case, we should change the credentials to stored credentials.
    Besides, if we don’t configure C2WTS Service Account to use Local System, it needs the following local policy rights:
    Act as part of the operating system.
    Impersonate a client after authentication.
    Log on as a service.
    For more details, please refer to the following blog:
    http://www.codeovereasy.com/2014/01/powerview-report-fails-no-credentials-are-available-in-the-security-package/
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • ORA-12015: cannot create a fast refresh materialized view from a complex qu

    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0      Production
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - ProductionI'm trying to create a fast refresh materialized view that uses a column of xmltype. The problem is I cannot create an MV log that accounts for the xmltype column. I tried excluding it and got the above error. Is there another way I can incrementally update a materialized view where I don't have to do a COMPLETE refresh or use FAST refresh?
    CREATE TABLE "DAS_DESC"."AUTHORITY_TEST"
        "NAID"      NUMBER(20,0) NOT NULL ENABLE,
        "AUTH_TYPE" VARCHAR2(40 BYTE),
        "XML_DATA" "SYS"."XMLTYPE" ,
        "TERM_NAME" VARCHAR2(4000 BYTE)
    CREATE TABLE "DAS_DESC"."AUTH_ASSC_TEST"
        "NAID"    NUMBER(20,0),
        "P_NAID" NUMBER(20,0),
        "REL_TYPE"    VARCHAR2(25 BYTE),
        "XML_DATA" "SYS"."XMLTYPE"
    CREATE
    MATERIALIZED VIEW person_mv
    AS
    SELECT  p.naid
          , p.auth_type
          , INSERTCHILDXML
              p.xml_data                 -- Parent XML Column
            , '//*[contains(local-name(), ''person'')]' --XPATH to Person
            , 'nonPreferredHeadingArray'                -- Value for new child element
            (                                                       -- Sub query for injecting new variant person array
              SELECT XMLELEMENT
                "nonPreferredHeadingArray"
              , XMLAGG -- Aggregator for Variant Persons Array
                  XMLELEMENT
                    "variantPersonName"                    -- Wrapper for each entry in array
                  , extract(a.xml_data,'*/*')
              FROM auth_assc_table -- Link table
              WHERE a.p_naid = p.naid
          ) AS XML_DATA
    FROM authority p -- Parent table
    WHERE p.auth_type = 'Person';The views are created fine and they work perfectly for what we need. The problem is the refresh when we edit the base tables. Ideally, it should take a couple seconds. Right now, it takes a couple minutes. XMLTYPE is one problem and the Complex Query exception is the other. If there is a work-around for fast refresh, please let me know. Greatly appreciated.

    jjmdb wrote:
    I'm trying to create a fast refresh materialized view that uses a column of xmltype. The problem is I cannot create an MV log that accounts for the xmltype column. I tried excluding it and got the above error. Is there another way I can incrementally update a materialized view where I don't have to do a COMPLETE refresh or use FAST refresh? Besides XMLTYPE column, your MV definition has a subquery which prevents it from being fast refreshable.
    I could not find any specific reference in documentation about restriction on XMLTYPE (or CLOB) columns but it seems logical that oracle will not be able to keep track of changes to binary data. What does DBMS_MVIEW.EXPLAIN_MVIEW generate for your MV definition? That should tell you which all conditions (for FAST REFRESH) your MV violates. Since you can not create a MV LOG to include XMLTYPE column, it will not be possible to create a FAST REFRESHABLE MV that includes the XMLTYPE column.
    I am afraid there is not much you can do here unless you are prepared to change the way data is stored in your base tables. If you can store data in base tables using standard data types instead of binary/XML storage, you might be able to create a FAST REFRESHABLE MV.

  • ORA-12015:  cannot create a fast refresh materialized view from a complex q

    Hi,
    I'm facing very strange problem. Please help me why this error is coming
    I'm creating a simple materialized view, but it is giving below error since this is simple select * from.
    CREATE MATERIALIZED VIEW EFMS.MS_TASK
    BUILD IMMEDIATE
    REFRESH FAST
    START WITH SYSDATE
    NEXT (SYSDATE + 1/24)
    WITH ROWID
    AS
    SELECT * FROM MS_TASK@efms_link;
    SELECT * FROM MS_TASK@efms_link
    ERROR at line 8:
    ORA-12015: cannot create a fast refresh materialized view from a complex query
    CREATE MATERIALIZED VIEW LOG ON MSDBO.MS_TASK
    TABLESPACE DBOR_MVLOG
    PCTUSED 0
    PCTFREE 60
    INITRANS 20
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    NOCACHE
    NOLOGGING
    PARALLEL ( DEGREE 2 INSTANCES 1 )
    WITH ROWID, PRIMARY KEY
    EXCLUDING NEW VALUES;


    Not is a best practice to use 'select *'

    ORA-12015: cannot create a fast refresh materialized view from a complex query
    Cause:      Neither ROWIDs and nor primary key constraints are supported for complex queries.
    Action:      Reissue the command with the REFRESH FORCE or REFRESH COMPLETE option or create a simple materialized view.
    Then you have to change REFRESH FAST or create a primary key in MS_TASK@efms_link to avility fast refresh.
    . :-) any help with my english is wellcome :-) .

  • ORA-12015: cannot create a fast refresh materialized view from a complex

    Hi All,
    I am trying to create materialized view but i got a error ORA-12015: cannot create a fast refresh materialized view from a complex query.
    Regards,
    narayana

    Hi,
    Please see if (Note: 179466.1 - Diagnosing ORA-12015 fast refresh materialized view / complex queries) helps.
    Regards,
    Hussein

Maybe you are looking for