Oracle 8i Snapshots

Question for anyone who has worked with snapshots between similar and dissimilar Oracle version UNIX environments:
In what performance order, slowest to fastest, would you rate the following snapshot configurations: Oracle7 to Oracle7, Oracle7 to Oracle8i, Oracle8i to Oracle7, Oracle8i to Oracle8i?
Any feedback will be greatly appreciated.
Thank you
John Manuel
Oracle DBA
Sprint Data Management
Reston, VA
null

Updated rows are updated on refresh becasue there can same replication conflict on master site resolved by defined method. So values sent from snapshot site can deffed from values on master site. You problem is that yours trigger is fired on refresh time. You can avoid this by place this if to tou trigger body.
if dbms_snapshot.i_am_a_refresh then return; end if;
dbms_snapshot.i_am_a_refresh is True when snapshot is refreshed
so trigger work only when local update is called.
Analogicaly on masterr site you can use
if dbms_reputil.from_remote then return; end if;
dbms_reputil.from_remote is True when remote transaction are applied on master site.

Similar Messages

  • How Oracle process Snapshot log?

    Hello,
    we are updating a column in a very large table that will result in a very large mlog$.
    The column is not a part of the snapshot.
    We have only one simple snapshot that references this table.
    The testing proved that even this column is not a part of the snapshot Oracle will have to process the mlog$ file anyway.
    Just wonder what will be the process in this case?
    We need to know this to anticipate possible problems with long refresh.

    Make a
    desc your_Mlo$_table
    You will this table has a column CHANGE_VECTOR$$ of type RAW
    I found no documentation of the content of this column.
    Probably it contains only the changes coded in a binary format. That's probably a very perfomant solution in general, but in your specific case maybe a hand-made special replication-solution could be better.
    The hand-made solution can be done like this: A Trigger in the primary-database fires only changes you would to propaged, that is changes on columns you also have on the replication site. The trigger inserts the changes in a self-made log-table. This log table could have the column that should be replicated. Just insert new:column. You must also have the ability to replicated deleted. On the replication site you can create a stored-procedure, which makes a select on your log-table, makes the changes on the replication-site an deletes the replicated records on the primary-site.

  • Snapshot too Old Error - Help needed

    One of the batch job is failing due to oracle error “snapshot too old.”
    Please let me know what are the possible reason’s this problem occurs and suggest me the possible solutions to rectify this problem.
    Thanks in advance

    > this can mean different things:
    1. your rollback / undo is too small for this
    transaction,
    Incorrect. A snapshot too old means that a consistent read cannot be maintained. A read is not a transaction - it does not cause any locks on rows.
    What is can mean that rollback is too small to maintain a consistent read for a sufficiently long enough period for the consistent read to be completed.
    > 2. commits aren't made often enough,
    NOT TRUE!! Not in Oracle. (sorry for the emphatic bold, but this an OWT within Oracle - it is very far from the truth in Oracle and Oracle is not SQL-Server)
    > 3. there are concurrent transactions which act on the
    same tables.
    This is usually the case - more accurately, fetching across commits. This is caused by creating a consistent read on a table (opening a cursor in PL/SQL), reading the rows (fetching from cursor in PL/SQL) and then updating those exact same rows.
    The consistent read deals with version n of the table. At the same time the exact same process updates those very same rows creating new versions of those rows.
    Rollbacks are overwritten (it is a circular buffer) and the version n of the rows cannot be maintained and "goes out of scope" as the rollbacks containing that version of the rows are re-used.

  • ETL Process - snapshot too old

    Hi friends:
    I would like to get some comments from you about the following situation:
    In an ETL process, usually we have gotten the Oracle error "Snapshot too old". We are doing various modifications in our ETL process (developed via PL/SQL or OWB), however, we have not had success. Could you give me some advise in order to avoid this problem?
    Thanks in advance.

    It's sth with your Rollback segment settings.Pls set the MINEXTENTS more larger and set OPTIMAL,if the sutiation still occurs,get the rollback segment offline first and then re-online the rollback segment.

  • CAM 6.1.0.16 (sscs) and Snapshot

    Dear all,
    I'm using this command to create a snapshot called TEST of the Volume VOLUME-1 where ORACLE-1 is
    the snapshot reserve volume:
    #sscs create -a StorageTek-2540 -V VOLUME-1 -f failsnapshot - m ORACLE-1 snapshot TEST
    My base volume VOLUME-1 has a capacity of 500GB.
    Why does this "sscs" command create a 100GB large ORACLE-1 volume? Is this the default (20% of base
    volume) and/or how can I modify this size?
    THX in advance for any info!
    RB

    You can check for problems caused by recent Flash updates and try these:
    *disable a possible RealPlayer Browser Record Plugin extension for Firefox and update the RealPlayer if installed
    *disable protected mode in Flash 11.3 and later
    *disable hardware acceleration in the Flash plugin
    *downgrade the Flash player to version 10.3 or 11.2
    *http://kb.mozillazine.org/Flash#Troubleshooting
    *http://helpx.adobe.com/flash-player/kb/flash-player-113-crash-mozilla.html
    *https://support.mozilla.org/kb/flash-113-doesnt-load-video-firefox

  • Why ORA-01555 (Snapshot too old) occures on an unchanged table

    Hello,
    we have to add a not null column into a large table. The simple update is not good, due to UNDO space.
    alter table T add F INTEGER default 0 not null;
    ORA-30036: unable to extend segment by  in undo tablespace ''It is OK. (We cannot use create + insert + drop + rename due to not enough free space. The table is not partitioned current) So we try this script:
    --create the column without default and not null
    alter table T add F INTEGER;
    --create temp table with the rowids of T (nologging -> minimal log)
    create table TMP (row_id rowid) nologging;
    --save the rowid-s. (direct -> minimal undo usage)
    insert /*+APPEND*/ into TMP(row_id) select rowid from T;
    commit;
    --the "insert method"
    --set the column to "0" with frequently commit
    declare
      i integer := 0;
      commit_interval integer := 10000;
    begin
      for c in (select * from TMP) loop
        update T set F=0 where rowid=c.row_id;
        i := i + 1;
        if( mod(i,commit_interval)=0) then commit;
        end if;
      end loop;
      commit;
    end;
    --set to not-null
    alter table T modify F default 0 not null;
    --drop the temp table
    drop table TMP;the insert method occures
    ORA-01555: Snapshot too old (in row 5)The row 5 is the cursor "select * from TMP" in the insert method. The undo usage of this method is below 2 MB.
    My question is:
    Why oracle need snapshot, while the TMP table does not change during the insert method? The TMP table was populated and commited before the insert method. Why oracle try to read the rows of the TMP table from the undo tablespace?
    Thx: lados.

    Thank, I have read this article, but there is something, what I don't understand.
    As I see, the DML does not clear all the modified datablock header, but it clears only the rollback segment slots. Only the next SQL (even if this is a query) clears the datablock header. This next SQL can clear only when the info is still available in the rollback segment, else ORA-1555 occures.
    My question is:
    What happens when the next SQL comes only one year later on this block? I don't believe that oracle doesn't handle this situation, but I didn't find how it is handled.
    Thx: lados.

  • Versioned tables and Oracle Lite

    Is it possible to use versioned tables in Oracle Lite snapshots?
    I would like to use both these features in my application:
    Workspace Manager - history and long transaction support
    Oracle Lite/Mobile server - support and synchronization in mobile clients.
    Thanks
    Ondrej

    Again not sure if this will be useful for you. You can put all the data back into a workspace from Olite and then diff that workspace with its parent workspace. That will tell you all the rows that have been changed in the child workspace.
    So, the way I see this work, extract data from a workspace onto Olite. Make changes to the extracted data. And then merge back ALL the extracted data (because you do not know what has been changed). And then rely on workspace manager diff view to tell you what has changed.
    Does this help?
    regards
    Arun

  • AWR - Database Performance Slow

    If my Whole Database Performance is slow,
    running AWR report include current time statistics when the DB Performance is slow ?

    The default AWR Snapshot Interval is 1 hour. So, if you have the default implementation, you will be able to create an AWR report for the period 10am to 11am. It will not reflect what or why "slowness" occurred at 10:45. The statistics in the AWR report will be a summation / averaging of all the activity in the entire hour.
    You could modify the Snapshot Interval (using dbms_workload_repository.modify_snapshot_settings) to have Oracle collect snapshots every 15minutes. But that will apply after the change has been made. So, if you have a slowness subsequently, you will be able to investigate it with the AWR report for that period. But what has been collected in the past at hourly intervals cannot be refined any further.
    Hemant K Chitale

  • Restore control files from snapcf_SID.f?

    oracle takes snapshot and store it in snapcf_SID.f file . I am wondering ther is anyway to restore it ..Anyone of you ever restoring it? how do we do it?
    thanks
    Jonathan

    restore controlfile
    restores the snapshot controlfile (all versions)
    restore controlfile from autobackup (9i and higher) takes the autobackup controlfile.
    Sybrand Bakker
    Senior Oracle DBA

  • Snapshot_id duplicated in sys.slog$

    We have a master site with 20 snapshot sites. There are about 60 master tables with snapshot logs.
    I have doubts regardind the snapshot_id.
    In dba_registered_snapshots the snapshot_id is unique, but in sys.slog$, dba_snapshot_logs there are pairs of records with the same snapshot_id. One of the records matches the corresponding record in dba_registered_snapshots while the other has as a master table one that seems to be totally unrelated.
    Does it make sense?
    select *
    from dba_snapshot_logs
    where snapshot_id=4156
    NAF46,MONEDAS,MLOG$_MONEDAS,,NO,YES,NO,2003/12/01 8:13:46 ,4156
    NAF46,ARINTCL,MLOG$_ARINTCL,,NO,YES,NO,2003/12/05 2:33:34 ,4156
    select *
    from dba_registered_snapshots
    where snapshot_id=4156
    NAF46,SS_MONEDAS_OF,RICAPE01.WAKED.COM.CO,YES,NO,PRIMARY KEY,4156,ORACLE 8 SNAPSHOT,
    The query_txt is:
    SELECT "MONEDAS"."ID_MONEDA" "ID_MONEDA","MONEDAS"."DESC_MONEDA" "DESC_MONEDA","MONEDAS"."DESCRIPCION" "DESCRIPCION","MONEDAS"."SIGNO" "SIGNO","MONEDAS"."REDONDEO" "REDONDEO","MONEDAS"."NUMDECI" "NUMDECI","MONEDAS"."TSTAMP" "TSTAMP" FROM "MONEDAS"@WAKED.WAKED.COM.CO "MONEDAS"

    No, the error has nothing to do with Service Broker. Or for that matter, query notifications, which is the feature you are actually using. (Query notifications uses Service Broker, but Service Broker != Query notification.)
    You would get the same error if you had a trigger in MyObjects that tried to update the same row for both deletions. A snapshot transaction gives you a consistent view of the database in a certain point in time. Consider this situation:
    Snapshot transaction A that started at time T update a row R at time T2. Snapshot transaction B starts at time T1 updates the same row at time T3. Had they been regular non-snapshot transaction, transaction B would have been blocked already when it tried
    to read R, but snapshot transactions do not get blocked. But if B would be permitted to update R, the update from transaction A would be lost. Assume that the update is an incremental one, for instance updating cash balance for an account. You can see that
    this is not permittable.
    In your case, the row R happens to be a row in an internal table for query notifications, but it is the application design which is the problem. There is no obvious reason to use snapshot isolation in your example since you are only deleting. And there is
    even less reason to have two transactions and connections for the task.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • What is the difference between view and materialized views

    Hi
    What is the difference between view and materialized view ? can we update the base table using views

    can we update the base table using viewsYes:
    VIEWS
    1. an updatable view is one that lets you perform DML on the underlying table
    (see Oracle Database Concepts 10g - 5 Schema Objects)
    2. non-updatable view requires INSTEAD OF Triggers
    (see Oracle Database Concepts 10g - 22 Triggers)
    SNAPSHOTS
    You can have updateable (and writeable) snapshots - in updateable (writeable) MV replication.
    Oracle uses snapshots (Materialized Views - MV) for two different purposes:
    1. replication
    2. automated Query Rewrite facility (first introduced in Oracle Discoverer, later included in Oracle database 8i).
    Replication types in Oracle are:
    a) Basic replication (MV replication)
    - transaction based
    - row-level
    - asynchronous from master table to MV (Materialized View)
    - DML replication only
    - database 7 / 8.0 / 8i / 9i / 10g
    - Standard and Enterprise Edition
    1. Read-only MV replication
    2. Updateable MV replication:
    2.1 asynchronous from MV to master
    2.2 synchronous from MV to master
    3. Writeable MV replication
    b) Multimaster replication
    - transaction based
    - row-level or procedural
    - asynchronous or synchronous
    - DML and DDL replication
    - database 7 / 8.0 / 8i / 9i / 10g
    - Enterprise Edition only
    1. row-level asynchronous replication
    2. row-level synchronous replication
    3. procedural asynchronous replication
    4. procedural synchronous replication
    c) Streams replication
    - (redo) log based
    - row-level
    - asynchronous
    - DML and DDL replication
    - database 9i / 10g (10g has Down Streams Capture)
    - Enterprise Edition only (Standard Edition 10g can execute Apply process)
    Regards,
    Zlatko Sirotic

  • Why would anyone want to use ASM Clustered File system?

    DB Version: 11gR2
    OS : Solaris, AIX, HP-UX
    I've read about the new feature ACFS.
    http://www.oracle-base.com/articles/11g/ACFS_11gR2.php
    But why would anyone want to store database binaries in a separate Filesystem created by Oracle?

    Hi Vitamind,
    how do these binaries interact with the CPU when they want something to be done?
    ACFS should work with Local OS (Solaris) to communicate with the CPU . Isn't this kind of double work?ACFS dont work with .... but provide filesystem to Local S.O
    There may be extra work, but that's because there are more resources that a common filesystem.
    Oracle ACFS executes on operating system platforms as a native file system technology supporting native operating system file system application programming interfaces (APIs).
    ACFS is a general purpose POSIX compliant cluster file system. Being POSIX compliant, all operating system utilities we use with ext3 and other file systems can also be used with Oracle ACFS given it belongs to the same family of related standards.
    ACFS Driver Model
    An Oracle ACFS file system is installed as a dynamically loadable vendor operating system (OS) file system driver and tool set that is developed for each supported operating system platform. The driver is implemented as a Virtual File System (VFS) and processes all file and directory operations directed to a specific file system.
    It makes sense you use the ACFS if you use some of the features below:
    • Oracle RAC / RAC ONE NODE
    • Oracle ACFS Snapshots
    • Oracle ASM Dynamic Volume Manager
    • Cluster Filesystem for regular files
    ACFS Use Cases
    • Shared Oracle DB home
    • Other “file system” data
    • External tables, data loads, data extracts
    • BFILES and other data customer chooses not to store in db
    • Log files (consolidates access)
    • Test environments
    • Copy back a previous snapshot after testing
    • Backups
    • Snapshot file system for point-intime backups
    • General purpose local or cluster file system
    • Leverage ASM manageability
    Note : Oracle ACFS file systems cannot be used for an Oracle base directory or an Oracle grid infrastructure home that contains the software for Oracle Clusterware, Oracle ASM, Oracle ACFS, and Oracle ADVM components.
    Regards,
    Levi Pereira

  • Error occured during creation of oracle snapshot

    Dear All,
    I am getting error messange in my SAP Inbox in t.code SBWP.
    In SBWP, the nessage text is as follow.
    =============================
    Error occured during creation of oracle snapshot (Creation aborted)
    (Log see also transaction SLG1, Object ORASNAP, Subobject ORASNAPCR)
    Oracle snapshot creation program aborted
    Error while copying from oracle view to SAP table
    Oracle view SAP$KCBFWAIT
    SAP table ORA_SAPKCBFWAIT
    Return code (ORA-....) 942
    You tried to work with the name of a table or view that does not exist in the database
    The table does not exist on the database. A table name or view name was used that does not exist on                           the database.
    ===============================
    I also check in T.Code SLG1, but i am not getting the reason for this error.
    Regards,
    Nisit

    Hi,
    Check each of the following :
    the spelling of the table or view name.
    that a view is not specified where a table is required.
    that an existing table or view name exists.
    Contact the database administrator if the table needs to be created or if user or application privileges are required to access the table.
    Also, if attempting to access a table or view in another schema, make certain the correct schema is referenced and that access to the object is granted.
    Regards
    Krishna

  • Taking snapshot of oracle tables to sql server using transactional replication is taking a long time

    Hi All,
    I am trying to replicate around 200 oracle tables onto sql server using transaction replication and it taking a long time i.e the initial snapshot is taking more than 24 hrs and it still going on.
    Is there any way to replicate those these tables faster?
    Kindly help me out..
    Thanks

    Hi,
    According to the description, I know the replication is working fine. But it is very slow. 
    1. Check the CPU usage on Oracle publisher and SQL Server. This issue may due to slow client processing (Oracle performance) or Network performance issues.
    2. Based on SQL Server 2008 Books Online ‘Performance Tuning for Oracle Publishers’ (http://msdn.microsoft.com/en-us/library/ms151179(SQL.100).aspx). You can enable the transaction
    job set and follow the instructions based on
    http://msdn.microsoft.com/en-us/library/ms147884(v=sql.100).aspx.
    2. You can enable replication agent logging to check the replication behavior. You may follow these steps to collect them:
    To enable Distribution Agent verbose logging. Please follow these steps:
    a. Open SQL Server Agent on the distribution server.
    b. Under Jobs folder, find out the Distribution Agent.
    c. Right click the job and choose Properties.
    d. Select Steps tap, it should be like this:
    e. Click Run agent and click Edit button, add following scripts by the end of scripts in the command box:
            -Output C:\Temp\OUTPUTFILE.txt -Outputverboselevel 2
    f. Exit the dialogs
     For more information about the steps, please refer to:
    http://support.microsoft.com/kb/312292
    Hope the information helps.
    Tracy Cai
    TechNet Community Support

  • Oracle BUG... Snapshots in 8.1.7

    I accidently issued a RENAME on a number of snapshots in my DB. It created a TABLE for each of these objects and I can not drop these objects without getting told "ORA-12083 must use DROP MATERIALIZED VIEW to drop "OWNER.TABLE"".
    If I try to use drop MAT VIEW I recieve messaage telling me that object is not a snapshot.
    Think this is a potential Oracle Bug. How can I drop these tables?
    Thanks,
    Miller

    This is the Oracle Database Lite forum. Can you please repost your question on the general database forum: General Database Discussions

Maybe you are looking for

  • LSMW upload for Vendor and Customer Open items

    Hi Experts, 1. I wanted to use to use LSMW to upload through FB60 for Vendor Invoices through recording, but the problem is Amount in Document Currency is 'USD' and Amount in Local Currency is 'INR'. While recording it is not allowing to input values

  • TS2972 Home Sharing no longer connects to PC

    Home Sharing is no longer connecting, I have tried rebooting Apple TV, I have tried turning off home sharing and turning back on, rebooting my PC, and updating both PC and ATV to latest verison - both indicate they are up to date.  I have tried turni

  • How to track activity for users logged in using solman to target systems?

    If a person accesses a monitored system through solman, how can we track the user activity (including transactions viewed and changes made etc)? Thanks Prasad

  • Remembering which tabbed panel I left

    I have a web page that uses several Spry tabbed panels to display different sub-sets of volunteers who have applied to volunteer at an airshow. Alongside each volunteer is a link to a page that allows an administrator to edit the volunteer informatio

  • Using AVI files w/final cut

    Tried opening/importing, no luck, only a black screen in the viewer. Strangely, the timeline reflected the length of the clip (12 seconds of AVI video), but fcp was unable to play the video. I ended up having to import the files to a pinnacle system