Purge MV logs over dblink

Is it possible to purge MVlogs over dblink? what syntax needs to be followed?
begin
dbms_snapshot.purge_log('testing_mview@ORCL10R2',1,'DELETE' );
END;
ORA-20000: ORA-00979: illegal reference to remote database
ORA-06512: at "SYS.DBMS_IREFRESH", line 77
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2693
ORA-06512: at line 2

Hi,
I'd rather try something like this:
BEGIN
dbms_snapshot.purge_log@ORCL10R2('testing_mview',1,'DELETE' );
END;

Similar Messages

  • ORA-01653 error while executing a select query over DBLINK

    Hi,
    We have a query that is running to extract some data from a remote DB over DBLINK.
    The query is failing by throwing the error "ORA-01653 -- Unable to extend.........".
    Is this a problem with the "temp" tablespace of local database or is this with the "temp" tablespace of remote DB.
    As far as my knowledge goes, I guess any statement , selecting data over dblink where the query is being fired actually in remote db over dblink uses the temp tablespace of that DB only and hence the problem should be with the temp tablespace of remote db only but I am not very sure about this.
    Is there any chance that it can be problem with "temp" tablespace of local DB from where the query is being fired over dblink.
    It would be really helpful if anyone can throw some light on this.
    Thanks

    The error stack will normally tell you if the exception is raised in the remote database.
    You might try using the driving_site hint (see performance guide) to push work to the remote site or pull it local. It all depends on your particular query and explain plan.
    Remember to use { code } (without the embedded spaces) tags to frame your code and explain plan so it remains formatted, if you post it here.

  • Purging application logs automatically in Hyperion 9.3.1 products

    Hi,
    I am trying to explore purging options in Weblogic server.
    Could someone help me in finding a setting(if there is one) under Weblogic properties files, which will purge Application logs automatically after 'n' number of days.
    for example in D:\Hyperion\deployments\WebLogic9\servers\aas\logs directory, I see a lot of eas log files created with extensions from .log00001 to .log00427. Is there any way of removing these automatically without using any other windows scripts.
    Thanks
    Prasad

    This works now after I did the change from WebLogic Administration comsole by going to each server's Logging tab ( Servers -> server_name -> Logging ). Set the rotation type to "Time", files to retain, and rotation interval ( default 24 hours ), etc. This will keep the files to a fixed count

  • CSCul18667 - CUIC does not purge JMX logs

    Although "CSCul18667: CUIC doesn't purge JMX logs" bug web page does not show a "Known Fixed Releases" today January 12th, 2015, it is showing fixed under Release notes of UCCX 9.0.2SU2.

    Although "CSCul18667: CUIC doesn't purge JMX logs" bug web page does not show a "Known Fixed Releases" today January 12th, 2015, it is showing fixed under Release notes of UCCX 9.0.2SU2.

  • Need advice about making a application log over every task succsessfully done to a target

    Hi!!!
    I need an advice about how to make an application log over every task succsessfully done to a target with an unique ID.
    I have developed an application with several tasks on the menu which have to be done in a certain order to program and test a target board,
    and the user want a log about which tasks are done to the target, so it is easy to know which step is next on the menu (It is a very routinebased  job).
    Do somebody have any good advice on how this can be done in a cleaver way ?
    Best regards,
    A

    Also, now that I have an ethernet cable, if I go ahead and use migration assistant to transfer the account from my old computer, will Logic only be available through the new account I have set up on my new computer? Would I have to log out of one account and into the other and back and forth to access the different files/programs? Any help would be much appreciated

  • Schedule to Purge Event Logs in Windows

    Hi,
    How to schedule to purge event logs in windows 2003/2007.
    Thanks in advance.
    Regards,
    Saurabh

    This is obviously not an Oracle problem, but native Windows handling.
    Control panel ==> Administrative Tasks ==> Event Log ==> Properties has several settings, whether and when to delete event log contents.
    Werner

  • Purging application logs automatically under Weblogic servers

    Hi,
    I am trying to explore purging options in Weblogic server.
    Could someone help me in finding a setting(if there is one) under Weblogic properties files, which will purge Application logs automatically after 'n' number of days.
    for example in D:\Hyperion\deployments\WebLogic9\servers\aas\logs directory, I see a lot of eas log files created with extensions from .log00001 to .log00427. Is there any way of removing these automatically without using any other windows scripts.
    Thanks
    Prasad

    This is configured within each server's Logging tab ( Servers -> server_name -> Logging ). Set the rotation type to "Time", files to retain, and rotation interval ( default 24 hours ), etc. This will keep the files to a fixed count.

  • Is there any way to automate purging Application Logging in azure storage account tables

    is there any way to automate purging Application Logging in azure storage account tables
    Rohit Pasrija

    hi Rohit,
    If you want to delete old data automatically, I think you need develop this feature by yourself. You could code the logic methods on your project, and set a timer to execute the methods to delete old data. Please refer to this thread (http://stackoverflow.com/questions/13602629/is-it-possible-to-acces-a-table-storage-in-azure-from-an-azure-web-site
    ), you could operate table storage data using azure sdk or REST API.
    Please try it.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • NLS over dblink

    we have two oracle 8.1.7 databases - the first one with charset EE8MSWIN1250 the second with WE8DEC.
    In the second db there is a dblink to the first one.
    Users have their NLS_NCHAR environment variable set to EE8MSWIN1250.
    When they are connected to the second database and are accessing tables from the first db through the link data conversion occurs (I guess) two times first from EE8MSWIN1250 to WE8DEC (over dblink) and then from WE8DEC back to the EE8MSWIN1250 (to user code page) and some chars are replaced by '?'.
    Is there any way how to get those data unchanged ?

    Hi Janus,
    Unfortunately what you are seeing is the expected behavior. Assuming for now that the two databases were created with the correct database character sets.
    EE8MSWIN1250 is for Eastern European languages; hence you must be storing one or more of these language data inside your database: Croatian, Hungarian, Polish, Romanian, Czech or Slovenian.
    WE8DEC is for Western European languages; this is for storing French, German and Spanish etc.
    Now if you start pushing data from one database character set to another, Oracle will always try and apply character set conversion to preserve your data; however these two character sets are not compatible, when Oracle encounters any characters than can not be stored in the target database character set, replacement characters such as '?' will be used. See below for the differences between the 2 character sets.
    Characters in WE8DEC that are not in EE8MSWIN1250
    INVERTED EXCLAMATION MARK
    CENT SIGN
    POUND SIGN
    YEN SIGN
    FEMININE ORDINAL INDICATOR
    SUPERSCRIPT TWO
    SUPERSCRIPT THREE
    SUPERSCRIPT ONE
    MASCULINE ORDINAL INDICATOR
    VULGAR FRACTION ONE QUARTER
    VULGAR FRACTION ONE HALF
    INVERTED QUESTION MARK
    LATIN CAPITAL LETTER A WITH GRAVE
    LATIN CAPITAL LETTER A WITH TILDE
    LATIN CAPITAL LETTER A WITH RING ABOVE
    LATIN CAPITAL LETTER AE
    LATIN CAPITAL LETTER E WITH GRAVE
    LATIN CAPITAL LETTER E WITH CIRCUMFLEX
    LATIN CAPITAL LETTER I WITH GRAVE
    LATIN CAPITAL LETTER I WITH DIAERESIS
    LATIN CAPITAL LETTER N WITH TILDE
    LATIN CAPITAL LETTER O WITH GRAVE
    LATIN CAPITAL LETTER O WITH TILDE
    LATIN CAPITAL LETTER O WITH STROKE
    LATIN CAPITAL LETTER U WITH GRAVE
    LATIN CAPITAL LETTER U WITH CIRCUMFLEX
    LATIN SMALL LETTER A WITH GRAVE
    LATIN SMALL LETTER A WITH TILDE
    LATIN SMALL LETTER A WITH RING ABOVE
    LATIN SMALL LETTER AE
    LATIN SMALL LETTER E WITH GRAVE
    LATIN SMALL LETTER E WITH CIRCUMFLEX
    LATIN SMALL LETTER I WITH GRAVE
    LATIN SMALL LETTER I WITH DIAERESIS
    LATIN SMALL LETTER N WITH TILDE
    LATIN SMALL LETTER O WITH GRAVE
    LATIN SMALL LETTER O WITH TILDE
    LATIN SMALL LETTER O WITH STROKE
    LATIN SMALL LETTER U WITH GRAVE
    LATIN SMALL LETTER U WITH CIRCUMFLEX
    LATIN SMALL LETTER Y WITH DIAERESIS
    LATIN CAPITAL LIGATURE OE
    LATIN SMALL LIGATURE OE
    LATIN CAPITAL LETTER Y WITH DIAERESIS
    Characters in EE8MSWIN1250 that are not in WE8DEC
    NO-BREAK SPACE
    BROKEN BAR
    DIAERESIS
    NOT SIGN
    SOFT HYPHEN
    REGISTERED SIGN
    ACUTE ACCENT
    CEDILLA
    MULTIPLICATION SIGN
    LATIN CAPITAL LETTER Y WITH ACUTE
    DIVISION SIGN
    LATIN SMALL LETTER Y WITH ACUTE
    LATIN CAPITAL LETTER A WITH BREVE
    LATIN SMALL LETTER A WITH BREVE
    LATIN CAPITAL LETTER A WITH OGONEK
    LATIN SMALL LETTER A WITH OGONEK
    LATIN CAPITAL LETTER C WITH ACUTE
    LATIN SMALL LETTER C WITH ACUTE
    LATIN CAPITAL LETTER C WITH CARON
    LATIN SMALL LETTER C WITH CARON
    LATIN CAPITAL LETTER D WITH CARON
    LATIN SMALL LETTER D WITH CARON
    LATIN CAPITAL LETTER D WITH STROKE
    LATIN SMALL LETTER D WITH STROKE
    LATIN CAPITAL LETTER E WITH OGONEK
    LATIN SMALL LETTER E WITH OGONEK
    LATIN CAPITAL LETTER E WITH CARON
    LATIN SMALL LETTER E WITH CARON
    LATIN CAPITAL LETTER L WITH ACUTE
    LATIN SMALL LETTER L WITH ACUTE
    LATIN CAPITAL LETTER L WITH CARON
    LATIN SMALL LETTER L WITH CARON
    LATIN CAPITAL LETTER L WITH STROKE
    LATIN SMALL LETTER L WITH STROKE
    LATIN CAPITAL LETTER N WITH ACUTE
    LATIN SMALL LETTER N WITH ACUTE
    LATIN CAPITAL LETTER N WITH CARON
    LATIN SMALL LETTER N WITH CARON
    LATIN CAPITAL LETTER O WITH DOUBLE ACUTE
    LATIN SMALL LETTER O WITH DOUBLE ACUTE
    LATIN CAPITAL LETTER R WITH ACUTE
    LATIN SMALL LETTER R WITH ACUTE
    LATIN CAPITAL LETTER R WITH CARON
    LATIN SMALL LETTER R WITH CARON
    LATIN CAPITAL LETTER S WITH ACUTE
    LATIN SMALL LETTER S WITH ACUTE
    LATIN CAPITAL LETTER S WITH CEDILLA
    LATIN SMALL LETTER S WITH CEDILLA
    LATIN CAPITAL LETTER S WITH CARON
    LATIN SMALL LETTER S WITH CARON
    LATIN CAPITAL LETTER T WITH CEDILLA
    LATIN SMALL LETTER T WITH CEDILLA
    LATIN CAPITAL LETTER T WITH CARON
    LATIN SMALL LETTER T WITH CARON
    LATIN CAPITAL LETTER U WITH RING ABOVE
    LATIN SMALL LETTER U WITH RING ABOVE
    LATIN CAPITAL LETTER U WITH DOUBLE ACUTE
    LATIN SMALL LETTER U WITH DOUBLE ACUTE
    LATIN CAPITAL LETTER Z WITH ACUTE
    LATIN SMALL LETTER Z WITH ACUTE
    LATIN CAPITAL LETTER Z WITH DOT ABOVE
    LATIN SMALL LETTER Z WITH DOT ABOVE
    LATIN CAPITAL LETTER Z WITH CARON
    LATIN SMALL LETTER Z WITH CARON
    CARON
    BREVE
    DOT ABOVE
    OGONEK
    DOUBLE ACUTE ACCENT
    HORIZONTAL BAR
    LEFT SINGLE QUOTATION MARK
    RIGHT SINGLE QUOTATION MARK
    LEFT DOUBLE QUOTATION MARK
    RIGHT DOUBLE QUOTATION MARK
    EURO SIGN
    TRADE MARK SIGN
    However, there is also a very likely possibility that your current database character sets may not reflect the encoding of the data inside your database; in that case you need to change the database character set of your current database. Please refer to the White Paper (Character Set Migration Best Practices on the Globalization Support Home Page on OTN.http://technet.oracle.com/tech/globalization/content.html
    Regards
    Nat

  • Pass a type over dblink

    Hi,
    If I have defined a type as:
    create or replace type MyType is table of number(10);
    , can I so something like this (this block is executed from machine A):
    declare
    varType MyType;
    begin
    varType := MyType();
    for i in 1..10 loop
      varType.extend;
      varType(varType.last) := i;
    end loop;
    -- then call a remote procedure, for which the 3rd parameter is of MyType type
    <schema>.<procedure_name>@<dblink_name<(param1, param2, varType);
    So can I call from machine A, a remote procedure (from machine B), and pass to it that varType parameter of that type? Is this supported over dblink?
    That MyType type is created on both machines.
    Thank you.

    Perhaps this will convince you then:
    Restriction on Using User-Defined Types with a Remote Database
    Objects or user-defined types (specifically, types declared with a SQL CREATE TYPE statement, as opposed to types declared within a PL/SQL package) are currently useful only within a single database. Oracle Database restricts use of a database link as follows:
    You cannot connect to a remote database to select, insert, or update a user-defined type or an object REF on a remote table. You can use the CREATETYPE statement with the optional keyword OID to create a user-specified object identifier (OID) that allows an object type to be used in multiple databases. See the discussion on assigning an OID to an object type in the Oracle Database Data Cartridge Developer's Guide. You cannot use database links within PL/SQL code to declare a local variable of a remote user-defined type.
    You cannot convey a user-defined type argument or return value in a PL/SQL remote procedure call.
    http://docs.oracle.com/cd/E11882_01/appdev.112/e11822/adobjbas.htm#ADOBJ7083

  • Purge oc4j logs

    Dear all,
    How can I purge OC4j logs in R12 (like out.log,server.log,system-aplication.log ) when the system is up and running ?..out.log is 4.5 GB in size ?
    any idea ?
    Kai

    Kai,
    On Linux/Unix, yes you can. Or, you can rename the file and delete it later. Some operating systems like Windows will not allow you to purge log files unless you shutdown the services first.

  • Archive/purge HBRLaunch.log in windows

    Should I stop any services before I start archiving the HBRLaunch.log ..
    Its on windows ..
    Please suggest the steps to archive/purge this log on a daily basis..
    Thanks in advance

    Hi,
    EAS doesn't put a lock on this file so you shouldn't have to stop any services, you can just copy and archive the log if you like then delete it and next time a rule is run it will create the log again.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Log for DBlink transactions ?

    Hello all,
    Is anobody aware of any facility wherein Oracle maintains/creates any log for transactions across the DBLinks.
    When we execute a select query from 1 database to another through DBLink, does Oracle maintain a log which would specify the time at which the connection was established, the time taken to reply back, etc ?
    Thanks a lot in advance.

    As Sybrandb said there is no special log of distributed activity though distributed transactions like all transactions are recored in the online redo logs.
    If a distributed transaction is interrupted by the loss of a node you can find information in dba_2pc_pending and dba_2pc_neighbors.
    Here are some articles about finding current distributed transactions:
    Why does it seem that a select over a db link requires a commit after execution?
    http://www.jlcomp.demon.co.uk/faq/dblink_commit.html
    How do I find distributed queries / transactions (either issued from or connecting to this instance)? http://www.jlcomp.demon.co.uk/faq/find_dist.html
    HTH -- Mark D Powell --

  • Poor CLOB performance over dblink

    These statements take 4 seconds to complete:
    drop table t_test purge;
    create table t_test as
    SELECT CONTENT_ID,SITEID
    from sitecontent@remotedb;These statements don't complete after at least 10 minutes of waiting:
    drop table t_test purge;
    create table t_test as
    SELECT CONTENT_ID,SITEID, BODY
    from sitecontent@remotedb;The only difference is that the second SQL contains a reference to BODY, which is a CLOB column.
    The SITECONTENT table consists of just 2815 records. The CONTENT_ID and SITEID columns are NUMBER. A max(length(body)) returns a result of 29,005. And a count where length(body)>15000 returns just 115. So we are not talking about huge amounts of data for the table, nor large amounts for very many rows. Certainly not enough, I would have thought, to explain a difference in completion times between about 4 seconds and apparently forever.
    Is this a known issue with CLOBs over database links? (I have looked, but not found anything relevant). Is there anything I can do to remedy the situation (not asking for quick fixes, just any steps I can plod my way through!). When I look at the local database, it's just constantly waiting on SQL*Net message from dblink.
    This is 11.2.0.1 on RHEL5.5 x86_64.
    Thanks in advance.

    Well, I tried that:
    Connected.
    SQL> set autotrace traceonly explain statistics;
    SQL> create table t_test as select ctext from clobtest@remotedb;
    Table created.
    SQL>No statistics were displayed, in other words. (Same result when selecting vtext, as it happens). I don't think autotrace works on DDL statements, does it? It's working fine for selects, though. So, ignoring the create table bit for now, here's the Vtext statistics:
    SQL> select vtext from clobtest@remotedb;
    2831 rows selected.
    Execution Plan
    Plan hash value: 1402521094
    | Id  | Operation              | Name     | Rows  | Bytes | Cost (%CPU)| Time     | Inst   |
    |   0 | SELECT STATEMENT REMOTE|          |  2994 |  5853K|   312   (1)| 00:00:04 |        |
    |   1 |  TABLE ACCESS FULL     | CLOBTEST |  2994 |  5853K|   312   (1)| 00:00:04 |   RMDB |
    Note
       - fully remote statement
       - dynamic sampling used for this statement (level=2)
    Statistics
              0  recursive calls
              0  db block gets
              0  consistent gets
              0  physical reads
              0  redo size
        3629480  bytes sent via SQL*Net to client
           2428  bytes received via SQL*Net from client
            190  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
           2831  rows processedI can't produce the equivalent Ctext statistics, of course, since a select from a remote clob simply generates an ORA_22992.
    I'm sort-of stumped at this point.

  • ORA-00904 over DBLINK

    Hi,
    I have a cursor which queries some tables over a DBLINK. The remote
    database is Oracle 8.1.7.4 and package is being compiled on 10.2.0.3
    Since this morning I am getting the below error message while trying
    to compile the package:
    112/10 PL/SQL: ORA-00904: "MIL"."ORGANIZATION_ID": invalid
    identifier
    However, when I run the cursor query in a different SQL session, it
    fetches data. The cursor definition is
    CURSOR curLocators(pOrganizationId NUMBER) IS
    SELECT ood.organization_code organization_code
    ,NULL row_organization_id
    ,mil.segment1||'.'||mil.segment2||'.'||mil.segment3||'.'||
    mil.segment4 Concatenated_Segments
    ,NULL row_item_id
    ,mil.description
    ,mil.inventory_location_type --no longer used
    ,mil.picking_order
    ,mil.location_maximum_units
    ,mil.subinventory_code
    FROM mtl_item_locations@convsourcedb mil
    ,mtl_material_statuses_vl@convsourcedb mms
    ,org_organization_definitions@convsourcedb ood
    ,(SELECT sum(total_qoh) total_qoh,
    subinventory_code,
    organization_id,
    locator_id
    FROM mtl_onhand_locator_v@convsourcedb
    GROUP BY locator_id, subinventory_code,
    organization_id
    ) mol
    WHERE 1=1
    AND NVL(mil.status_id,1) = mms.status_id(+)
    AND ood.organization_id = mil.organization_id
    AND mms.status_code = 'Active'
    AND mil.enabled_flag = 'Y'
    AND mol.organization_id = mil.organization_id
    AND mol.locator_id = mil.inventory_location_id
    AND mil.organization_id = pOrganizationId
    The column definetely exists in the base table
    SQL> select organization_id from mtl_item_locations@convsourcedb where
    rownum=1;
    ORGANIZATION_ID
    216
    I tried to comment out the where clause which is throwing the error,
    but the package compilation fails with another Where clause error.
    All this was working absolutely fine till last evening and I have not
    changed the cursor query since then.
    How can I rectify this?
    Any inputs would be greatly appreciated.
    Thanks,
    Ashish

    Hi Ashish,
    Maybe the link user and the owner of the remote table are not the same?
    What do you have here :
    select tab.owner remote_owner, lnk.username link_user
      from all_db_links lnk, all_tables@convsourcedb tab
    where tab.table_name = 'MTL_ITEM_LOCATIONS'
       and lnk.db_link = 'CONVSOURCEDB';Regards
    Peter

Maybe you are looking for

  • Function with select if statement query

    Hi, I want to use if condition in select statement in function. But i implemented in case too ,its taking more time to return the value while using case statement. My function is like this create or replace FUNCTION GET_CODE (pv_type IN table1.type%T

  • Using variables for function arguments AS2

      Hello, I am trying to create a function in AS2. After creating the function, I want to use values stored in variables for the function arguments rather than manually typing static values for carrying out the function calculation. Also, I want to us

  • Pricing configuration records

    I am looking for a way to copy pricing records from one SAP instance to another.   We are able to this with Materials using ALE, but ALE does not appear to be able to handle the pricing configuration.    Is there a similar utility or method for copyi

  • 2004q6 update7 cannot find jms.jar

    creator 2 and my j2ee application server finds the jms package but the ide i am using "Sun Studio Creator 2004q6 update7" does not. I have tried changing the classpath in tools ->options but without success. please let me know who to rectify this con

  • Backup the backup

    I'm not sure if this is the correct group, but apologize in advance. I have a 2TB external firewire disk unit for timemachine. It works great. But if this disk unit wil stop working for some reason I have no backup anymore. So I was thinking of creat