Flackback query with version management

Hello

I gives me 2 times. I need to know what has changed between the two times.
SELECT versions_startscn, versions_starttime, 
       versions_endscn, versions_endtime,
       versions_xid, versions_operation,
       sec_id, ...,...,...,...,...
  FROM op_seremain_scd
  VERSIONS BETWEEN TIMESTAMP 
      TO_TIMESTAMP('2010-06-10 12:00:00', 'YYYY-MM-DD HH24:MI:SS') 
AND TO_TIMESTAMP('2010-06-14 11:00:00', 'YYYY-MM-DD HH24:MI:SS')
I get the following:
1                                   00000060 Z
2                                   0000009CXT
3                                   00000647 Y
4                                   000312   X
5     8088277359248     11-JUN-10 03.31.52 PM               05000C004D580000     I     000SXW9IBT
6     8088277359248     11-JUN-10 03.31.52 PM               05000C004D580000     D     000SXW9IBT
The I means Inserted and D means Deleted. Pretty simple. What happens if the row has been updated? How to get who presented? I see what has been changed or recording at this time?

I need to be able to show the recording as it is and what has been changed. How can I achieve that with the above example?

Possible?

You have to install a test case to find out?

SQL> DROP TABLE TEST;

Table dropped.

SQL>
SQL> COLUMN VERSIONS_OPERATION FORMAT A18
SQL> COLUMN VERSIONS_ENDTIME FORMAT A25
SQL> COLUMN VERSIONS_STARTTIME FORMAT A25
SQL> COLUMN COL1 FORMAT A4
SQL> COLUMN COL2 FORMAT A4
SQL> COLUMN PREV_COL1 FORMAT A9
SQL> COLUMN PREV_COL2 FORMAT A9
SQL> SELECT * FROM V$VERSION;

BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
PL/SQL Release 10.2.0.4.0 - Production
CORE     10.2.0.4.0     Production
TNS for 64-bit Windows: Version 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production

SQL> CREATE TABLE test
  2  (
  3          ID      NUMBER  PRIMARY KEY
  4  ,       COL1    VARCHAR2(3)
  5  ,       COL2    VARCHAR2(3)
  6  );

Table created.

SQL> INSERT INTO test (id, col1, col2) VALUES (1,'ABC','DEF');

1 row created.

SQL> INSERT INTO test (id, col1, col2) VALUES (2,'GHI','JKL');

1 row created.

SQL> INSERT INTO test (id, col1, col2) VALUES (3,'MNO','PQR');

1 row created.

SQL> INSERT INTO test (id, col1, col2) VALUES (4,'STU','VWX');

1 row created.

SQL> COMMIT;

Commit complete.

SQL> exec DBMS_LOCK.SLEEP(10);

PL/SQL procedure successfully completed.

SQL> UPDATE  test
  2  SET     col1 = 'ZZZ'
  3  WHERE   id   = 3
  4  ;

1 row updated.

SQL> COMMIT;

Commit complete.

SQL> SELECT  id
  2  ,       col1
  3  ,       prev_col1
  4  ,       col2
  5  ,       prev_col2
  6  FROM
  7  (
  8          SELECT  id
  9          ,       col1
 10          ,       col2
 11          ,       LAG(col1) OVER (PARTITION BY id ORDER BY VERSIONS_STARTTIME NULLS FIRST) AS prev_col1
 12          ,       LAG(col2) OVER (PARTITION BY id ORDER BY VERSIONS_STARTTIME NULLS FIRST) AS prev_col2
 13          ,       versions_operation                                                       AS vo
 14          FROM    test
 15          VERSIONS BETWEEN TIMESTAMP MINVALUE AND MAXVALUE
 16  )
 17  WHERE vo = 'U'
 18  ;

                  ID COL1 PREV_COL1 COL2 PREV_COL2
-------------------- ---- --------- ---- ---------
                   3 ZZZ  MNO       PQR  PQR

SQL> spool off;

With the Flashback Versions query you see every instance of the row. Therefore, you can use the analytical functions of LAG/LEAD sink two changes of line in one line and look at the before and after image.

I hope this helps!

Tags: Database

Similar Questions

  • Report - a list of all instances of FglAM with versions & type o/s

    I have not found any KB article, community or previous Commons on this subject.

    The Web Console. Host agent dashboard lists all FglAM ' assets/market' with their OS version/type & version FglAM.
    I have difficulties to create a report that lists all of the FglAM that have already been created with their versions & type o/s.

    FglamClientInstance & RemoteClient toplogies have "null" displayed for the field version so don't know where we can get this value.

    This simple query lists all FglAM and the last updated field:

    sb = def "<>
    #! FglamClientInstance # .getTopologyObjects () .each {}

    SB< 'host:="" '="">< it.name =""><   '="" last="" updated:'="">< it.lastupdated=""><>

    }
    return of sb

    RESULT:
    Host: alvbchan2k8-562 (fglam) last updated: 2013-06-20 10:07:10.375

    Host: loriw2k8r2f55 (fglam) last updated: 2013-06-20 10:07:10.375

    Host: loriw2k8r2f555 (fglam) last updated: 2013-06-20 10:07:10.375

    Examination of the application of the hosts of the Agent dashboard, seems, it gets these values from root of the Administration Server. all_agent_hosts.

    See attachment.
    So that won't work because we are interested in all THE FglAM whether they are active or not.

    Any help appreciated to generate a report similar to the table edge, but for all FglAM that have already been deployed with version & type o/s; No active and active.

    Thank you
    Rick

    Currently on FMS version 5.6.7, version FglAM is not stored in the FglamClientInstance or the RemoteClient types of topology.  FAM-5227 was generated to request the FglAM version to be stored in FglamClientInstance.

    The code following groovy lists currently active FglAMs and their versions:

    output = new StringBuilder()

    EOL = System.getProperty ("line.separator");

    fglams = server. RemoteAgentManagementService.findAllRemoteClients)

    fglams.sort ({IT. GetHostName()})

    output< "hostname,="" ,="" type,="" version,="" os="" name,="" os="" version,="" os="" arch"=""><>

    {fglams.each ()}

    output<>

    output< ",="" "=""><>

    output< ",="" "=""><>

    output< ",="" "=""><>

    output< ",="" "=""><>

    output< ",="" "=""><>

    output<>

    }

    return output

    RESULT:

    HostName, Type, Version, name of the OS, OS Version, OS Arch

    alvrstoner, FglAM, 5.6.2.2, windows, 5.1, ia32

    alvbchan2k8-562, FglAM, 5.6.7, windows, 5.2, x86_64

  • Getting started with Open manage the essential problem of Server Data Sources

    I installed a server for and with Open Manage Server Essentials... discovered my network and found a lot of good servers... 1 server has a green check mark and you can see in the Data Source, it uses the administrator of the server with the Version 7.1.0. I downloaded the OMSA node in 7.4.0.2 on another server, etc. SNMP installed and the server is located with a gray question mark and the data source is an Agent of Version 2.0 of Windows Hardware... is anyone has any advice how to handle? And want to install server after the server to see it in OME centrally on a single management server...

    Sorry for my bad English and thanks for all the info.

    Thomas

    OK, so make sure you check out the first installation tutorial in the console of the OME.

    1. you must on the box, so 7.4 OMSA's fine.

    2. be sure that you did the necessary SNMP parameters in the box of the OMSA (services.msc, SNMP, accept any host paackets - or use the ip address).

    3. you can use the tool for troubleshooting Dell desktop OME to test SNMP connectivity to the server with OMSA on it.

    4. I think that the FAQ (delltechcenter.com/ome) contains some tips in the discovery section (3.4)?

    That should make us started.

    Thank you

    Rob

  • Lost touch with alert manager system

    I have sync of identity for the footstool of number 2005.255.0012 SP1 Build of windows version 1 2004 q 3 on a solaris Server 10 with a 2003 ad server synchronization window.

    I get an alert of lost status contact with System Manager, can anyone give help to correct alert?

    I was able to fix the problem is a missing file that the necessary for the functioning windows idsync

  • help me out with a query with an output that has own text.

    help me out with a query with an output that has own text.

    For example select name from tbl_name

    Ben "is my name"-> should be the output

    Hello

    3cc59f7b-B8C1-4EFA-8385-e0d8720a689c wrote:

    help me out with a query with an output that has own text.

    For example select name from tbl_name

    Ben "is my name"---> should be the output

    Sorry, it is not clear what you want.

    If the table contains only "Ben", then you can get the output above using a query like this:

    SELECT name. '' my name is' ' AS name_plus

    FROM tbl_name;

    I hope that answers your question.

    If this isn't the case, please post a small example data (CREATE TABLE and only relevant columns, INSERT statements), and the results you want from this data.

    Explain, using specific examples, how you get these results from these data.

    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: https://forums.oracle.com/message/9362002#9362002

  • A simple query with as wrong return result

    Hello

    I run a simple query with like.
    If I use the parameter I get incorrect results.
    If I use the request without parameter results are ok.

    My script:

    ALTER SESSION SET NLS_SORT = BINARY_CI;
    ALTER SESSION SET NLS_COMP = LINGUISTIC;

    -drop table abcd;
    create table abcd (col1 varchar2 (10));

    INSERT INTO VALUES ABCD ('122222');
    insert into abcd values ('111222');


    SELECT * FROM ABCD WHERE COL1 LIKE: 1. -bad result with 12%
    /*
    COL1
    ----------
    122222
    * 111222 *.
    */

    "Select * ABCD where col1 like 12%; -result ok
    /*
    COL1
    ----------
    122222
    */

    I use Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
    and query, run in Oracle SQL Developer 3.1.07.

    I think it's just a bug, and it is set to 11.2.0.3:

    11.2.0.1:

    DB11.2.0.1>> select * from v$version where rownum=1;
    
    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    
    1 row selected.
    
    DB11.2.0.1>> ALTER SESSION SET NLS_SORT=BINARY_CI;
    
    Session altered.
    
    DB11.2.0.1>> ALTER SESSION SET NLS_COMP=LINGUISTIC;
    
    Session altered.
    
    DB11.2.0.1>> create table abcd (col1 varchar2(10));
    
    Table created.
    
    DB11.2.0.1>> INSERT INTO ABCD VALUES ('122222');
    
    1 row created.
    
    DB11.2.0.1>> insert into abcd values ('111222');
    
    1 row created.
    
    DB11.2.0.1>> VARIABLE A1 VARCHAR2(10);
    DB11.2.0.1>> EXEC :A1 := '12%';
    
    PL/SQL procedure successfully completed.
    
    DB11.2.0.1>> SELECT * FROM ABCD WHERE COL1 LIKE :A1;
    
    COL1
    ----------
    122222
    111222
    
    2 rows selected.
    

    11.2.0.3:

    DB11.2.0.3>> select * from v$version where rownum=1;
    
    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    
    1 row selected.
    
    DB11.2.0.3>> ALTER SESSION SET NLS_SORT=BINARY_CI;
    
    Session altered.
    
    DB11.2.0.3>> ALTER SESSION SET NLS_COMP=LINGUISTIC;
    
    Session altered.
    
    DB11.2.0.3>> create table abcd (col1 varchar2(10));
    
    Table created.
    
    DB11.2.0.3>> INSERT INTO ABCD VALUES ('122222');
    
    1 row created.
    
    DB11.2.0.3>> insert into abcd values ('111222');
    
    1 row created.
    
    DB11.2.0.3>> VARIABLE A1 VARCHAR2(10);
    DB11.2.0.3>> EXEC :A1 := '12%';
    
    PL/SQL procedure successfully completed.
    
    DB11.2.0.3>> SELECT * FROM ABCD WHERE COL1 LIKE :A1;
    
    COL1
    ----------
    122222
    
    1 row selected.
    

    Kind regards
    Sayan Malakshinov
    http://orasql.org

  • ESX 3.5 Update 5 (Build 207095) Crash @ 30% with Update Manager

    Hi everyone, we are currently trying to update our ESX running 207095 build (new generation).  As soon as we do the remediation.  It starts to install without problem until it hits the 30% Mark.  At this point the update managers hangs and fails after 30 minutes saying "Update Manager has timed out...". "At this point i will accept a reboot in vCenter, and once he's trying to start at what was assumed to be GRUB I get this error:"Error 15 file not found"at this stage, we rebuild the host.  And it happened again on the fresh build.

    Here are the versions:

    ESX 3.5 Update 5 (Build 207095)

    2.5 U6 with Update Manager vCenter

    What we're doing wrong?

    check this post with the same problem http://communities.vmware.com/thread/178800;jsessionid=A7FDAFF76607E4B0BB8E2CF17C437E62

    If you have found this information useful, please consider awarding points to 'Correct' or 'Useful'*.

  • Questions to integrate the pay with cash management: GB legislation

    Hello

    We have recently implemented GB pay and integrate payroll with GL and cash management.

    Done installing like below-
    R12 installation steps to reconcile the Payroll Transactions in the Treasury [ID 758253.1]
    Integration of the payroll with cash management for the reconciliation of payments EFT [ID 365544.1]

    Running payroll, prepaid expenses ahead, BINS, cost, calculation of the costs of payments, transfer to the SLO. The costing and payments are transferred correctly to the SLO and work perfectly.
    But we are not able to see payments in cash management, so it is impossible to reconcile.

    Entered the bank details in the mode of payment in Payroll Organization.
    Made sure that all the steps are made of metalink above notes, but still values do not appear in the cash management.

    Am I missing any other simple step here?
    Appreciate the pointers.

    Thank you
    Vigneswar

    Integration of the payroll with cash management for the reconciliation of payments EFT (Doc ID 365544.1)
    This feature has been made available in version 12.1.2 and will not be credited back to an earlier version. Please see the Document 561580.1

  • SQL query with dynamic exercise

    Hello

    I wrote this query with static exercise and exercise, I need info on making the dynamic variables

    Exercise: starts from July1st. This year up to June 30 is "2011" and July ' 1's '2012'
    Exercise: July1st his '1' and June ' 1 his '12'

    Query:

    Select distinct o.c_num, o.ac_num, s.sub_ac_num, o.fiscal_year, o.ac_exp_date, s.sub_ac_ind
    of org_account o
    outer join left sub_account s
    on o.c_num = s.c_num and o.ac_num = s.ac_num
    where (o.ac_exp_date > = CURRENT_DATE or o.ac_exp_date is null)
    and o.fiscal_year = * '2011' * -> need to be dynamic
    and o.fiscal_period = * '12' * -> need to be dynamic

    Thank you
    Mano

    Published by: user9332645 on June 2, 2011 18:55

    Hi, Mano,

    Welcome to the forum!

    Whenever you have a question, please post a small example of data (CREATE TABLE and INSERT statements) and the results desired from these data.
    Always tell what version of Oracle you are using.

    Since this is your first thread, I will post some examples of data for you:

    CREATE TABLE     table_x
    (     dt     DATE
    );
    
    INSERT INTO table_x (dt) VALUES (DATE '2010-12-31');
    INSERT INTO table_x (dt) VALUES (DATE '2011-01-01');
    INSERT INTO table_x (dt) VALUES (DATE '2011-06-02');
    INSERT INTO table_x (dt) VALUES (DATE '2011-06-30');
    INSERT INTO table_x (dt) VALUES (DATE '2011-07-01');
    

    What is the output you can from these data?

    DT          FISCAL_YEAR     FISCAL_PERIOD
    ----------- --------------- ---------------
    31-Dec-2010 2011            06
    01-Jan-2011 2011            07
    02-Jun-2011 2011            12
    30-Jun-2011 2011            12
    01-Jul-2011 2012            01
    

    If so, here's a way to get it:

    SELECT       dt
    ,       TO_CHAR ( ADD_MONTHS (dt, 6)
                , 'YYYY'
                )     AS fiscal_year
    ,       TO_CHAR ( ADD_MONTHS (dt, 6)
                , 'MM'
                )     AS fiscal_period
    FROM       table_x
    ORDER BY  dt
    ;
    

    Since your exercise begins 6 months prior to the calendar year, you must add 6 months to the actual date for the fiscal year and month.

    The above query produces strings for fiscal_year and fiscal_period. If you prefer to have the numbers, then use EXTRACT instead of TO_CHAR:

    SELECT       dt
    ,       EXTRACT (      YEAR
                FROM     ADD_MONTHS (dt, 6)
                )     AS fiscal_year
    ,       EXTRACT (      MONTH
                FROM     ADD_MONTHS (dt, 6)
                )     AS fiscal_period
    FROM       table_x
    ORDER BY  dt
    ;
    

    The first query will work in Oracle 6 (and more).
    I don't know when EXTRACT was introduced. Certainly, it works in Oracle 10 and may be available in older versions too.

  • FB4 plugin does not work with versions of Eclipse cocoa (3.5 and 3.6)

    I try to install the plugin for Flash Builder 4 in cocoa Eclipse 3.6 or 3.5 (32-bit) and they both install but I'm not able to launch the Flash view. If I install the version of Eclipse 3.5 carbon perspective Flash works. The 3.5 and 3.6 have the same error messages in the Eclipse log file. So from what I see, the Flash plugin is not supported in versions of cocoa. Is this correct? 64-bit support in the near future?

    My setting of the machine:

    Mac OS 10.6.4

    Java 1.6.0_20

    Eclipse Log file:

    BootLoader constants: OS = macosx, ARCH = x 86, WS = cocoa, NL = en_US

    ! ENTRY org.eclipse.core.jobs 4 2 10:44:23.748 2010-09-07

    ! MESSAGE an internal error occurred during: "creating Adobe Flash Player... confidence file." ».

    ! BATTERY 0

    java.lang.NoClassDefFoundError: com/adobe/flexbuilder/utils/osnative/NativeControl

    to com.adobe.flexbuilder.project.internal.PlayerTrustStore.getUserFlashPlayerTrustFolder (Pla yerTrustStore.java:198)

    to com.adobe.flexbuilder.project.internal.PlayerTrustStore. < init > (PlayerTrustStore.java:81)

    to com.adobe.flexbuilder.project.internal.PlayerTrustStore.getInstance (PlayerTrustStore.java:71)

    to com.adobe.flexbuilder.project.internal.FlexProjectCore$ 4.run(FlexProjectCore.java:388)

    to org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

    Caused by: java.lang.ClassNotFoundException: com.adobe.flexbuilder.utils.osnative.NativeControl

    to org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:494)

    to org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)

    to org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)

    to org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass (DefaultClassLoader.jav a: 105)

    to java.lang.ClassLoader.loadClass(ClassLoader.java:248)

    ... 5 more

    ! ENTRY org.eclipse.ui 4 0 10:44:26.028 2010-09-07

    ! Unmanaged event loop exception MESSAGE

    ! BATTERY 0

    org.eclipse.swt.SWTException: cannot run an executable (java.lang.NoSuchFieldError: manage)

    to org.eclipse.swt.SWT.error(SWT.java:3884)

    to org.eclipse.swt.SWT.error(SWT.java:3799)

    to org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:137)

    to org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3405)

    to org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3102)

    to org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)

    to org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)

    to org.eclipse.ui.internal.Workbench.access$ 4 (Workbench.java:2221)

    to org.eclipse.ui.internal.Workbench$ 5.run(Workbench.java:500)

    to org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

    to org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)

    to org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)

    to org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)

    to org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)

    to org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication (EclipseAppLau ncher.java:110)

    to org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start (EclipseAppLauncher.jav one: 79)

    to org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)

    to org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    to sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    to java.lang.reflect.Method.invoke(Method.java:597)

    to org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)

    to org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)

    to org.eclipse.equinox.launcher.Main.run(Main.java:1311)

    Caused by: java.lang.NoSuchFieldError: manage

    to com.adobe.flexbuilder.ui.UIPlugin$ 1.run(UIPlugin.java:120)

    to org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)

    to org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)

    ... more than 22

    Hello

    FB4 plugin is compatible with versions of carbon of the eclipse, and the Setup program you should informed when you tried to install a version of cocoa.

    We have Fb working with cocoa in the next version of Fb (in development now), but FB4 requires carbon.

    -Chris

  • Call Service, run a query with a LimitFilter and a comparator, extend

    I have a lot of difficulties running an InvocationService. I'm relatively new to coherence, please excuse my ignorance

    Basically, I'm trying to get a web client access to a cluster of consistency (which uses * extend) and run a query with a LimitFilter and a comparator.
    It looks that I implement the PortableObject interface on the comparator. I don't know how to be honest, and I'm getting an exception
    : java.io.NotSerializableException:com.tangosol.util.internal.ConcurrentCounter

    Do I need to apply the laptop on the comparator? I have to add the Group of comparison in a pof config XML? I have configuration errors?

    Java code:
            InvocationService service = (InvocationService)  CacheFactory.getConfigurableCacheFactory().ensureService("ExtendTcpInvocationService");
            Map map = service.query(new LatestContentAgent(), null);
            Set result = (Set) map.get(service.getCluster().getLocalMember());
    public class LatestContentAgent extends AbstractInvocable {
    
         private static final long serialVersionUID = 5121824227545845101L;
    
         @Override
         public void run() {
              final Filter filter = new EqualsFilter("getStatusId", Status.LIVE);
                    final LimitFilter limitFilter = new LimitFilter(filter,200);
                    NamedCache cacheInstance = CacheFactory.getCache("dist-extend-cache");
                    setResult(cacheInstance.entrySet(limitFilter,  new ActivityContentVOComparator()));
         }
    }
    public class ActivityContentVO extends AbstractEvolvable implements Serializable, Cacheable {
    
         private static final long serialVersionUID = 1282169603551341131L;
         
         private static final int VERSION = 2; 
    
         private static final int WHEN_IDX = 2;
         private Date when;
    
         public ActivityContentVO() {     // hibernate needs this constructor
         }
         
         public Date getWhen() {
              return when;
         }
    
         public void setWhen(Date when) {
              this.when = when;
         }
    
         public void readExternal(PofReader reader) throws IOException {
              setWhen((Date) reader.readObject(WHEN_IDX));
         }
    
         public void writeExternal(PofWriter writer) throws IOException {
              writer.writeObject(WHEN_IDX, getWhen());
         }
    
         @Override
         public int getImplVersion() {
              return VERSION;
         }
    }
    public class ActivityContentVOComparator implements Comparator<ActivityContentVO>, Serializable,PortableObject {
    
        private static final long serialVersionUID = -8536328258251728594L;
    
        @Override
         public int compare(ActivityContentVO a1, ActivityContentVO a2) {
              if ( a1 == null) {
                return a2 == null ? 0 : 1;
            }
            if (a2 == null) {
                return -1;
            }
            
            final Date d1 = a1.getWhen();
            final Date d2 = a2.getWhen();
            if (d1 == null) {
                return d2 == null ? 0 : 1;
            } else if (d2 == null) {
                return -1;
            }
            
            return d2.compareTo(d1);
         }
    
        @Override
        public void readExternal(PofReader arg0) throws IOException {
            // TODO Auto-generated method stub
            
        }
    
        @Override
        public void writeExternal(PofWriter arg0) throws IOException {
            // TODO Auto-generated method stub
            
        }
    }
    POF configuration file
    <pof-config>
      <user-type-list>
        <!-- coherence POF user types -->
        <include>coherence-pof-config.xml</include>
        <user-type> 
          <type-id>1004</type-id> 
          <class-name>net.tm.ActivityContentVO</class-name> 
        </user-type>
        ....
        <user-type>
          <type-id>1009</type-id> 
          <class-name>net.tm.ActivityContentVOComparator</class-name> 
        </user-type>
      </user-type-list>
      <allow-interfaces>true</allow-interfaces>
      <allow-subclasses>true</allow-subclasses>
    </pof-config>
    Configuration consistency client-side:
    <remote-invocation-scheme>
          <scheme-name>extend-invocation</scheme-name>
          <service-name>ExtendTcpInvocationService</service-name>
          <initiator-config>
            <tcp-initiator>
                   <remote-addresses>
                            <socket-address>
                                <address system-property="tangosol.coherence.extend.remote.node1"></address>
                                <port system-property="tangosol.coherence.extend.invocation.remote.port1">9094</port>
                            </socket-address>
                            <socket-address>
                                <address system-property="tangosol.coherence.extend.remote.node2"></address>
                                <port system-property="tangosol.coherence.extend.invocation.remote.port1">9094</port>
                            </socket-address>
                        </remote-addresses>
                        <connect-timeout>10s</connect-timeout>
                      </tcp-initiator>
                      <outgoing-message-handler>
                        <request-timeout>5s</request-timeout>
                      </outgoing-message-handler>
                    </initiator-config>
                <serializer>
                    <class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
                    <init-params>
                        <init-param>
                            <param-type>String</param-type>
                            <param-value system-property="tangosol.pof.config">app-pof-config.xml</param-value>
                        </init-param>
                    </init-params>
                </serializer>           
    </remote-invocation-scheme>
    Consistent server configuration
            <proxy-scheme>
                <scheme-name>extend-proxy</scheme-name>
                <service-name>ExtendTcpProxyService</service-name>
                <thread-count>5</thread-count>
                <acceptor-config>
                    <tcp-acceptor>
                        <local-address>
                            <address>localhost</address>
                            <port system-property="tangosol.coherence.extend.port">9094</port>
                        </local-address>
                    </tcp-acceptor>
                </acceptor-config>
                <proxy-config>
                    <cache-service-proxy>
                        <lock-enabled>true</lock-enabled>
                    </cache-service-proxy>
                </proxy-config>
                <autostart 
                     system-property="tangosol.coherence.extend.enabled">
                     false
                </autostart>
            </proxy-scheme>
    It's filling stack trace
     TcpConnection(Id=0x000001297F449E980A640BB49B3E90457BFBA97FDB268F4DCF95962206C4C35D, Open=true, LocalAddress=10.100.11.180:90
    94, RemoteAddress=10.100.130.22:4989)
    2010-06-28 16:54:50.398/277.593 Oracle Coherence GE 3.5.3/465 <D6> (thread=Proxy:ExtendTcpProxyService:TcpAcceptor, member=3): Opened: Channel(Id=1588644627, Open=true, Connection=0x000001297F449E980A640BB49B3E90457BFBA97FDB268F4DCF95962206C4C35D)
    2010-06-28 16:54:50.528/277.723 Oracle Coherence GE 3.5.3/465 <Error> (thread=Proxy:ExtendTcpProxyService:TcpAcceptorWorker:3, member=3): An exception occurred while encoding a Response for Service=Proxy:ExtendTcpProxyService:TcpAcceptor: java.io.NotSerializableException: com.tangosol.util.internal.ConcurrentCounter
            at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
    
    ....
       at com.tangosol.io.pof.PofBufferWriter$UserTypeWriter.writeObject(PofBufferWriter.java:2092)
            at com.tangosol.coherence.component.net.extend.message.Response.writeExternal(Response.CDB:15)
            at com.tangosol.coherence.component.net.extend.Codec.encode(Codec.CDB:23)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer.encodeMessage(Peer.CDB:23)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.peer.acceptor.TcpAcceptor.encodeMessage(TcpAcceptor
    .CDB:8)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer.send(Peer.CDB:16)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer.post(Peer.CDB:23)
            at com.tangosol.coherence.component.net.extend.Channel.post(Channel.CDB:25)
            at com.tangosol.coherence.component.net.extend.Channel.send(Channel.CDB:6)
            at com.tangosol.coherence.component.net.extend.Channel.receive(Channel.CDB:55)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer$DaemonPool$WrapperTask.run(Peer.CDB:9)
            at com.tangosol.coherence.component.util.DaemonPool$WrapperTask.run(DaemonPool.CDB:32)
            at com.tangosol.coherence.component.util.DaemonPool$Daemon.onNotify(DaemonPool.CDB:63)
            at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
            at java.lang.Thread.run(Thread.java:619)
    Published by: user6122052 on June 28, 2010 09:46

    Hi user6122052,

    The problem is that you try to return the result of a query:

    setResult(cacheInstance.entrySet(limitFilter,  new ActivityContentVOComparator()));
    

    and this set is an instance of com.tangosol.util.ConverterCollections$ ConverterEntrySet, which is not serializable. So, you can either convert it, for example:

    Set setResults = cacheInstance.entrySet(limitFilter,  new ActivityContentVOComparator());
    Set setConverted = new HashSet(setResults.size());
    for (Iterator iter = setResults.iterator(); iter.hasNext(); )
        {
        Map.Entry entry = (Map.Entry) iter.next();
        setConverted.add(entry.getValue());
        }
    setResult(setConverted);
    

    or better yet - query the cache directly from your customer Extend.

    Kind regards
    Dimitri

  • Cannot use AVG safe search with version 6 and needs which fixed until I use version 6

    I have a paid AVG application that uses AVG safe search. I need this so I can't use firefox 6 because it which turns off. In addition, my pc seems slow when I tried to use version 6. I don't have a real problem with version 5! I'm forced to use the five version up to what firefox 6 can allow me to use my AVG! I don't want to force firefox to activate AVG either, because that could cause real problems. This info should be resolved by the developers!

    http://forums.Avg.com/us-en/AVG-Free-Forum?sec=thread & Act = Show & ID = 171434

    Safe Search extension is not compatible with Firefox 6.0
    

    Mozilla has released their new browser Firefox 6.0 for the public. Unfortunately, the AVG Safe Search extension is not compatible with this version of browser yet (example screenshot). We found a few glitches in our internal tests and the developers are working on their rectification. A new update of the AVG program will be released soon support fully implemented. You may also notice that some other Firefox extensions are not compatible, as the cycle of development of Firefox is very rapid.

    Please rest assured you are still protected by AVG even if you have already upgraded to Firefox 6.0. The AVG Active Surf Shield component is still checking all data and will prevent you from accessing malicious content even though search results verdict icons are not available temporarily.
    
  • I can not connect with version 5... had version 4 and it was very good, I was very happy, now with this new version, my office is a mess... due uninstall... Please let my download 4 new... it is much, much better

    I used to have Firefox version 4 mt Desktop... then that you asked, I've updated to version 5... then everything happened in my computer... When I click the icon to open Firefox... it takes a long time to open and what I got is the following: script is not responding... a script on this page may be busy, or it may stop responding.
    Script chrome://taugt/content/libs/includejs:595
    Then my computer froze and stop working... I tried uninstalling and reinstalling several times but it's always the same failure.
    I never had problem with version 4... Please let me download version 4 new... it is much, much better than this one again.
    I have windows XP.
    I hope I gave you enough information... If you held more... Please contact me

    Hi Juan, you will need to only maintain Shift to use the Safe Mode, which is just to test. If you have disabled your addons, then you can simply start Firefox normally.

  • I replaced my Firefox3.6 with version 4 is not working on my computer. How can I reinstall Firefox 3.6?

    I've replaced Firefox 3.6 with version 4 that is not on my computer. How can I reinstall Firefox 3.6?

    Firefox 4 requires at least OS X 10.5 and an Intel Mac. There is a third part of Firefox 4 version that works under OS X 10.4/10.5 and PPC Macs, for details, see http://www.floodgap.com/software/tenfourfox

    If you prefer, you can get the latest version of Firefox 3.6 http://www.mozilla.com/en-US/firefox/all-older.html

  • Problem with Photos Soft - error message the application built with PhotoLibraryPrivate version 215.65.00 but works with version 209.52.00

    Hello, hope someone can help with my MacBook Pro sluggish.

    I'm in OS X Yosemite 10.10.3 version and tried to upgrade to El Capitan 10.10.5 on a Macbook Pro 13inc mid-2012.  He said it has already downloaded twice, but when I open the software it is still sitting at 10.10.3 without modification, download seems to take a lot of time - been sitting for about 6 hours.

    Now I trying to open the photos app but get the following error coming - the application built with PhotoLibraryPrivate version 215.65.00 but works with version 209.52.00.

    Any advice on what are the options for my new photos app! Have you tried different time machine backups and the computer does not like it either

    Upgrade to El Captain OS X 10.11.2 which includes Photo 1.3

    I have no idea of what you see on "El Capitan 10.10.5" as far as I know is not exiat

    LN

Maybe you are looking for