Problem in Mat view execution through dblinks

HI Experts,
I am refreshing MAT_VIEW's via dblinks. But during refresh i am getting below error.
I tried both with Complete and Fast. Both are getting errors.
Seems i missed some privilages.
Please assist me here..
With Fast option
*===========*
SQL> exec dbms_mview.refresh('CDS_BANK_BRANCH_NLD',*'F'*);
BEGIN dbms_mview.refresh('CDS_BANK_BRANCH_NLD','F'); END;
ERROR at line 1:
ORA-12018: following error encountered during code generation for
"ACCOUNTINFO"."CDS_BANK_BRANCH_NLD"
ORA-00942: table or view does not exist
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2256
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2462
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2431
ORA-06512: at line 1
With Complete Option
SQL> exec dbms_mview.refresh('CDS_BANK_BRANCH_NLD',*'C'*);
BEGIN dbms_mview.refresh('CDS_BANK_BRANCH_NLD','C'); END;
ERROR at line 1:
ORA-12018: following error encountered during code generation for "ACCOUNTINFO"."CDS_BANK_BRANCH_NLD"
ORA-00942: table or view does not exist
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2256
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2462
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2431
ORA-06512: at line 1

Fran wrote:
You are calling materialized view at local DB where the m_view doesn't exists. To refer another database through dblink you must use m_view@remote_databaseyou are right , i just notice this :)

Similar Messages

  • Error in Executing Procedure through DBLink

    Hi,
    I am facing some problems in executing a procedure through DBLink.
    I have two schema A and B in two different database.
    In schema A I am having one procedure X in package Y and my requirement is that I want to execute this procedure in schema B. So in schema B i have created one DBLink ABC and trying to execute procedure X using this DB link.
    begin
    A.Y.X@ABC;
    end;
    But I am getting below error:
    ORA-06550: line 2, column 1:
    PLS-00201: identifier 'A.Y.X@ABC' must be declared
    ORA-06550: line 2, column 1:
    PL/SQL: Statement ignored
    Any help would be greatly appreciated!
    Thanks In Advance..
    Regards,
    Sachin Bansal

    Hi,
    Yes, I am connecting to user A of DB1 and in this user I am having procedure X in Package Y. My DBLink in Schema B of DB2 is pointing to user A of DB1.
    I have created DBLINK using below script:
    create public database link abc
    connect to A
    identified by A
    using '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=XXX)(PORT=1521)))(CONNECT_DATA=(service_name=XXX)))';
    Above DBLInk is working fine..I am able to access all the table of schema A in schema B using this DBLink. But when I trying to execute any procedre of schema A in schema B then i am getting error.
    Regards,
    Sachin

  • Insert / update data to a table through DBLINK (oracle)

    I try to insert / update a table from one instance of oracle database to another one through oracle dblink, get following error:
    java.sql.SQLException: ORA-01008: not all variables bound
    ORA-02063: preceding line from MYLINK
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
    at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
    at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:582)
    at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1986)
    at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1144)
    at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2152)
    at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:2035)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2876)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:609)
    The same code to insert / update the exact same table in local instance works fine.No any binding problem. So i am pretty sure all ? mark in SQL are set with some value before sending to Oracle.
    Someone please advise what is possible problem. Db link is not set correctly? or we can not update remote table by dblink.
    By the way i can do insert / update from TOAD to the remote table through DBLINK. Problem happens only in Java code.
    thanks!
    Gary

    dblink links from one database instance to another.
    So it is certainly a source of possible problems when it works on one database and not another.
    You should start by looking at the dblink and it possible testing it in the database not via java.
    Note as well that that error suggests that it is coming from the Oracle database. I believe if you had a bind parameter problem in your java code that the error would come from the driver. But that is a guess on my part.

  • Adding Report Viewer Webpart through console app Throws UpdatePanel Error

    Hi,
        I had created a console application in Visual Studio 2012, to add Report Viewer Webpart into the team site page in sharepoint 2013. I wrote a code to add the Report Viewer webpart into the sharepoint site. I followed some links to successfully
    execute the console application to add the Report Viewer webpart.
        After successful execution of the console application, if i navigate to the sharepoint site where i had added the webpart through console application, it throws the following error.
    "Cannot unregister UpdatePanel with ID 'ViewerAreaUpdatePanel' since it was not registered with the ScriptManager. This might occur if the UpdatePanel was removed from the control tree and later added again, which is not supported".
        In my console application i didn't use any UpdatePanel. Just add the webpart into the default sitepage in sharepoint. Hope it was in the default page on the sharepoint site.
       I had googled the rootcause for the error, but i end up with all the answers pointing to ScriptManager into the aspx page. But i didn't find the SafeScriptManager .dll file. I followed the steps, in some other sites to create the ScriptManager
    dll file, but that .cs project was not in compatible mode with VS 2012/2010.
    I had attached the full executing code of the console application.
    using System;
    using System.Collections.Generic;
    using System.Globalization;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls.WebParts;
    using System.Xml;
    using Microsoft.ReportingServices.SharePoint.UI.WebParts;
    using Microsoft.SharePoint;
    using Microsoft.SharePoint.Client.WebParts;
    using Microsoft.SharePoint.WebPartPages;
    using PersonalizationScope = System.Web.UI.WebControls.WebParts.PersonalizationScope;
    using WebPart = Microsoft.SharePoint.WebPartPages.WebPart;
    namespace SampleSite.Accessor
    public class WebPartGalleryAccessor
    private readonly string _rootSiteUrl = "http://<server>/sites/testsite";
    private readonly string _pageUrl = "http://<server>/sites/testsite/test1/SitePages/Home.aspx";
    private const string PageName = "home.aspx";
    private const string SubSiteUrl = "test1";
    private void AddReportViewer()
    const int zoneIndex = 0;
    var reportViewerWebPart = new ReportViewerWebPart();
    AddReportViewerWebPartToSitePage(_rootSiteUrl, SubSiteUrl, _pageUrl, reportViewerWebPart, zoneIndex);
    public void AddReportViewerWebPartToSitePage(string rootSiteUrl, string subSiteUrl, string pageUrl, ReportViewerWebPart webPart, int zoneIndex)
    try
    SPSecurity.RunWithElevatedPrivileges(delegate()
    using (var pageLoadSite = new SPSite(rootSiteUrl))
    pageLoadSite.AllowUnsafeUpdates = true;
    using (var pageLoadWeb = pageLoadSite.OpenWeb(subSiteUrl))
    pageLoadWeb.AllowUnsafeUpdates = true;
    AddReportViewerWebPartToPage(pageLoadWeb, pageUrl, webPart, zoneIndex);
    pageLoadWeb.AllowUnsafeUpdates = false;
    pageLoadSite.AllowUnsafeUpdates = false;
    catch (Exception exception)
    throw new Exception("Unable to Add WebPart To Site Page: " + pageUrl + " Webpart title: " + webPart.Title + "Error: " + exception.Message);
    private string AddReportViewerWebPartToPage(SPWeb web, string pageUrl, ReportViewerWebPart webPart, int zoneIndex)
    try
    HttpRequest request = new HttpRequest("", web.Url, "");
    HttpResponse response = new HttpResponse(null);
    HttpContext.Current = new HttpContext(request, response);
    HttpContext.Current.Request.Browser = new HttpBrowserCapabilities();
    HttpContext.Current.Request.Browser.Capabilities = new System.Collections.Generic.Dictionary<string, string>();
    HttpContext.Current.Request.Browser.Capabilities["type"] = "IE7";
    HttpContext.Current.Request.Browser.Capabilities["majorversion"] = "7";
    HttpContext.Current.Request.Browser.Capabilities["minrversion"] = "0";
    HttpContext.Current.Items["HttpHandlerSPWeb"] = web;
    webPart.Title = "My Report Viewer";
    webPart.ZoneID = "Top";
    webPart.ReportPath = "/sites/testsite/Shared Documents/RemoteSalesRepor.rdl";
    webPart.AsyncRendering = false;
    webPart.DockToolBar = DockToolBarLocation.Top;
    SPFile file = web.GetFile(pageUrl);
    if (file.CheckOutType == SPFile.SPCheckOutType.None)
    file.CheckOut();
    using (SPLimitedWebPartManager manager = file.GetLimitedWebPartManager((PersonalizationScope)Microsoft.SharePoint.Client.WebParts.PersonalizationScope.Shared))
    manager.AddWebPart(webPart, webPart.ZoneID, zoneIndex);
    file.CheckIn("Webpart Added.");
    return webPart.ID;
    catch (Exception exception)
    throw new Exception("Unable to Add WebPart To Page: " + pageUrl + " Webpart title: " + webPart.Title + "Error: " + exception.Message);
       Could anyone have the solution to overcome the above issue. I was knocking my head to resolve this error.
     Note:
        I am using,
        1. sharepoint 2013
        2. SQLServer 2012R2
        3. Windows2008R2 server
     I can able to create the ReportViewer webpart in the site manually.
    Thanks
    Jaibabu
       

    Hi Jai,
    Did you find a workaround to this issue. I have the exact same issue with SharePoint foundation 2010. I am adding report viewer webpart through HTML5 web page hosted in SharePoint site.
    Regards,
    Ojas Maru ( My blog )

  • DML through DBLink

    Hi all,
    I have a job which executes a stored procedure "A" in database "D1". "A" calls the procedure "B" stored in database "D2" through DBLink. "B" is compiled with autonomous_transaction pragma. My question is does "A" know if "B" has finished its execution? The reason to ask this question is that sometimes "A" never ends eventhough "B" has finished.
    Thanks in advance!

    Look into the parameter commit_point_strength. Ensure that the primarily driving database is the commit point.
    Lee

  • Can't View Video through MSN. Have to reset router!

    I'm having the same problems as some of the others, but still don't see a corrective answer.  I'm having trouble viewing video through MSN without losing connection and having to reset the router.
    How do I roll back to my previous version of firmware?, and is that the only way to fix this problem, or has linksys offered any support?
    Thanks,
    Chris

    Thank you for your suggestion. Does FCP Rescue trash your prefs, because if so then I have done that as well. It tends to be spotty now too. Just after I posted it worked just fine. I can't promise that it will continue to work that way.

  • Unable to refresh Mat View

    BANNER (ADB)
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    BANNER (MDB)
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    Hello everyone,
    I'm unable to refresh a mat view in MDB which is based on ADB. Even just after creating it everytime the refresh fails.
    Currently I'm re-creating the mat view daily and then point the synonym to new one.
    There are no errors thrown in session. It just times out.
    Below is the script for the same.
    CREATE MATERIALIZED VIEW MDB.MV_APRP_DTL_JUN02
    TABLESPACE MCCI_DATA
    BUILD IMMEDIATE
    USING INDEX
    REFRESH FAST START WITH SYSDATE+12/24 NEXT SYSDATE+1
    WITH ROWID
    AS
    SELECT /*+ PARALLEL (APREP_DTL,6) */ * FROM prp.aprep_dtl@mdb_adb prep_del_dtl;
    Can anybody tell me how can I atleast find what and where the problem is ?
    Thanks
    Jitu J K

    If you currently are dropping and recreating the MV, you don't need the MV Log.
    Drop and recreate the MV Log before you recreate the MV and then retest performance of FAST refresh's. A 600MB MV Log does mean that something has gone wrong. Do you / Did you have other MVs that were also extracting data from the same base table(s) ? If those MVs have stopped refreshing but did not unregister, the MV Log will continue to grow and your current MV's FAST refresh performance will suffer.
    See Oracle Support Note#1031924.6 and
    http://hemantoracledba.blogspot.com/2007/01/large-growing-snapshot-logs-indicate.html
    Note : Before you drop the MV log confirm that there are no other MVs (in the same database or a remote database) that are built on the same base table(s).
    Hemant K Chitale

  • Unable to run spatial operations through dblinks

    Hello All,
    I am trying to run spatial operations through dblinks. Please see the example query below
    select a.OGC_GEOMETRY.sdo_gtype from <table>@dblink a where sdo_nn(a.OGC_GEOMETRY,mdsys.sdo_geometry(2001,null,mdsys.sdo_point_type(0,0,null),null,null),'sdo_num_res=1')='TRUE'.
    Query fails with the following error
    ORA-13249:
    ORA-06512: at "MDSYS.MD", line 1723
    ORA-06512: at "MDSYS.MDERR", line 17
    ORA-06512: at "MDSYS.PRVT_IDX", line 9
    *13249. 00000 - "%s"*
    **Cause: An internal error was encountered in the extensible spatial index*
    component. The text of the message is obtained from some
    other server component.
    **Action: Contact Oracle Support Services with the exact error text.*
    Same Query runs fine in the original database but fails with dblinks. Is it possible to run spatial operations through dblink?
    Thanks & Regards,
    Jasti

    I've never used spatial myself but this other user had issues with it and dblinks. They ended up using the dblink to create a local materialized view with local indexes and used those.
    MapBuilder does not work with DB-link in a spatial view
    Found this as well. Does it mean anything to you?
    4.2 Querying Spatial Data
    This section describes how the structures of a Spatial layer are used to resolve spatial queries and spatial joins.
    Spatial uses a two-tier query model with primary and secondary filter operations to resolve spatial queries and spatial joins, as explained in Section 1.6. The term two-tier indicates that two distinct operations are performed to resolve queries. If both operations are performed, the exact result set is returned.
    You cannot append a database link (dblink) name to the name of a spatial table in a query if a spatial index is defined on that table.
    If a spatial index is created in a database that was created using the UTF8 character set, spatial queries that use the spatial index will fail if the system parameter NLS_LENGTH_SEMANTICS is set to CHAR. For spatial queries to succeed in this case, the NLS_LENGTH_SEMANTICS parameter must be set to BYTE (its default value).
    http://docs.oracle.com/cd/B13789_01/appdev.101/b10826/sdo_index_query.htmEdited by: Gaff on Aug 16, 2012 4:46 PM

  • Problem on installation of linux through the vmware software on compaq CQ60

    Problem on installation of linux through the vmware software on xp operating system. My laptop is Compac CQ60.
    The error message is no device found compatable for the installation.

    user12190571 wrote:
    The error message is no device found compatable for the installation.The question after this kind of information is usually : What is the exact error you got, from who and when you were doing what.

  • Weird event display problem in week view

    Hi. I'm getting a weird display problem in week view. First time this has ever happened.
    Some events appear to be missing, but when i double click on where I know the event is supposed to be, a new event is created (as excepted), and the missing events suddenly appear. When i move forward or back by a week, and then return to the week in question, the missing events are gone again. But, I can see the missing events in day view or month view.
    Any ideas?

    Dean,
    Next, try reinstalling the Mac OS X v10.6.2 Update (Combo).
    If that is unsuccessful:
    1. Use iCal>Export...>for each one of your individual calendars.
    2. Delete all but one of your calendars.
    3. Create a calendar and name it "Test."
    4. Delete the calendar which remained after step #2.
    5. Quit iCal.
    6. Remove the iCal plist, and drag the iCal plist file to your Desktop.
    7. Log out/in or restart.
    8. Restart iCal and use iCal>File>Import...for each one of the calendars that you exported in step #1.
    9. Delete the "Test" calendar, and any "Home/Work" calendar which was automatically created when you opened iCal in step #8.
    ;~)

  • Problem with a view in XK01 transaction

    Hi All,
    I am working on upload conversion for Vendor Master. While doing conversion, i am getting a problem with a Contact person view in XK01 transaction. In contact person view the telephone field column sometimes allowing to add data ,sometimes it's not allowing data which results an error in conversion program saying that the telephone field in not an input field. I don't know why the view is showing the telephone field like that.
    Can any one suggest the solution for this problem. I know this is configuration problem with a view but i posted in ABAP forums.
    Thanks

    Hi Ben,
    I assume that you are writing a BDC program to upload contact person information. If so, you are trying to populate a table control here. Please check to see if you are calculating the index to assign values to the correct rows.
    if you are calculating index in your program then i think it should be configuration problem as you said.
    Thanks,
    Ganesh.

  • Creating a Mat View having the same name with that of the table name

    Hi everyone,
    After dropping the mat view name "QQ.TRDLN_DIM_MV", I'm trying to re-create it by having the same name as that of the table but I got an error stating that "name is already used by an existing object". How can create a mat view to look like the object owned by schema "GQ", having a name that is the same as that of the table name, without dropping the table?
    OWNER_O OBJECT_TYPE CREATED LAST_DDL_ TIMESTAMP STATUS OBJECT_NAME
    ===
    GQ MATERIALIZED VIEW 05-NOV-08 13-DEC-08 2008-11-05:06:31:46 VALID TRDLN_DIM_MV
    GQ TABLE 05-NOV-08 15-DEC-08 2008-11-05:06:31:00 VALID TRDLN_DIM_MV
    QQ TABLE 17-AUG-07 16-MAR-09 2007-08-17:17:05:21 VALID TRDLN_DIM_MV
    SQL&gt;CREATE MATERIALIZED VIEW QQ.TRDLN_DIM_MV
    2 TABLESPACE FPLC01S
    3 NOCACHE
    4 NOLOGGING
    5 COMPRESS
    6 PARALLEL ( DEGREE 2 INSTANCES 1 )
    7 BUILD IMMEDIATE
    8 REFRESH FORCE ON DEMAND
    9 WITH PRIMARY KEY
    10 AS
    11 select /*+ NO_REWRITE */ trdln_id,
    12 trdln_skid,
    13 trdln_end_date,
    14 first_value(trdln_end_date) over (partition by trdln_id order by trdln_end_date DESC) as MaxDate
    15 from QQ.trdln_dim;
    from QQ.trdln_dim
    ERROR at line 15:
    ORA-00955: name is already used by an existing object
    I appreciate your help. Many thanks in advance!
    Regards,
    Radic

    You'd have to rename the table (using ALTER TABLE tablename RENAME TO othername; ) before you create the MV.
    You can't have both existing with the same name in the same schema.
    What you see in the GQ schema is that the "table" is the underlying table for the Materialized View.
    When you do a CREATE MATERIALIZED VIEW MY_MV AS ...
    Oracle creates two objects with the same name, one being the Materialized View MY_MV and the other being the table MY_MV which is the physical storage. {Remember that a Materialized View is a means of getting a physical representation of a View}.
    In the QQ schema what you have is either
    a. a real Table
    or
    b. an improperly dropped MV, resulting in the underlying Table still present.

  • Problem with Accounting view in Material Master

    Hi,
    One of the material master does not have the accounting view and the costing views attached to it. When trying to extend the views thru MM01, the system shows the following message -
           Material already maintained for this Transaction/event
    What we understood is that the views were already extended earlier but still does not show up.
    Any help extended is highly appreciated.
    Regards,
    Mike
    Edited by: Michael Gerard Leo on Mar 10, 2009 4:35 PM

    Hi,
    After we extended the accounting view in MM01 for a particular plant and saved it, we are not able to view it through MM02 or MM03.
    Again, if we try to extend the view for the same plant in MM01, the system gives an error message that it is already extended.
    Any reasons why the accounting views are not showing up in MM02 and MM03.
    Regards,
    Mike

  • Problem with HTML viewer

    Dear All ,
    I am facing a problem with HTML Viewer . My senario is as follows :
    1. I have created one HTML page . On that page there are 4 Images
    2. I imported that HTML page in SAP with the help of transaction SMW0
    3. I Called that HTML page in my ABAP program using the method "load_html_document" of class cl_gui_html_viewer
    4. This is happening perfectly ok on the machine on which all this developement was done.
    But the issue is when I execute my ABAP program on a different machine , those Images on that HTML page are not displaying.
    Can you please guide me how to remove that machine dependancy?
    Regards,
    Nikhil

    Hi Nikhil,
    Please check if the image is properly imported properly. Also check if there is any option which you might have forgotten while imported like dependeency.
    Regards
    Abhii...

  • Calling Function in SQL Server through DBLINK

    Hello
    I need to call a function that exists in other database (*SQL Server*) through DBLINK
    Is It possible? If yes, please give me the syntax
    Thanks

    Hi,
    You can call remote functions on SQL*Server if you create the database link using the Database Gateway for SQL*Server (DG4MSQL).
    You need to install and configure DG4MSQL then you can call remote functions as follows -
    SELECT function1@Remote_DB(7782) FROM dual;
    You need to set the parameter -
    HS_CALL_NAME
    in the DG4MSQL init<sid>.ora file with the owner and name of the function, for example -
    HS_CALL_NAME = "owner1.function1, owner2.function2 "
    and if you want to return values using the function you need to set the parameter in the gateway init file -
    HS_FDS_PROC_IS_FUNC=TRUE
    For full details you need to refer to the documentation -
    Oracle® Database Gateway for SQL Server User’s Guide, 11g Release 2 (11.2)
    Oracle® Database Heterogeneous Connectivity User’s Guide 11g Release 2 (11.2)
    which is available from -
    http://www.oracle.com/pls/db112/homepage
    and click on the 'Integration Information' option on the left.
    The documentation has further details on how to call and use remote functions.
    For information about installing and configuring the gateway and links to further information have a look at the following note -
    Note.1083703.1 Master Note for Oracle Gateway Products
    available in My Oracle Support
    You cannot use the Database Gateway for ODBC (DG4ODBC) to create the database link as it does not supported stored procedures or remote functions.
    Regards,
    Mike
    Edited by: mkirtley on Sep 2, 2011 11:09 AM

Maybe you are looking for

  • Error 5125 Attaching a Database in SQL Server 2008 Express R2

    Hello Everybody, I want to attach a Database and I am getting the Error 5125. An exception occured while excuting a transact sql statement or a batch(Microsoft.sqlserver.ConnectionInfo) File C:\Daten\SQL\SL_MRUB.mdf apperars to have been truncated by

  • XML Publisher in Oracle Applications - Merge PDFs in Templates

    Requirement, I have PDF files stored in Huge Blob columns in a oracle apps tables. I would like to make a single PDF using the XML publisher template to merge all these PDFs into a single PDF file and show the merged PDF file, when user clicks on vie

  • How do I startup an application for all users at login?

    I know about launchd, but I want an application to start whenver a user logs in and run as that user.  launchd stuff seems to run as root. I would prefer to set this up to work for all users, but if that can't be done, just for the current user.  I h

  • How do I get gallery images to display properly in...

    Any pictures that are in portrait mode are shown with the top and bottom cut off

  • Guide Lines Won't Let Go!

    I've clicked "hide guide lines, release guide lines," and unlocked guide lines and removed Preferences to no avail. I can't adjust the SIZE of the drawing because the dang guides lines are stuck to it. I'm going mad. How do I get rid of them and be a