pcap file format

https://wiki.wireshark.org/Development/LibpcapFileFormat Libpcap File Format magic_number: used to detect the file format itself and the byte ordering. The writing application writes 0xa1b2c3d4 with it’s native byte ordering format into this field. The reading application will read either 0xa1b2c3d4 (identical) or 0xd4c3b2a1 (swapped). If the reading application reads the swapped 0xd4c3b2a1 value, it knows that all the… Continue reading pcap file format

NAT Traversal Practices for Client-Server SIP

https://tools.ietf.org/html/rfc6314 NAT Traversal Practices for Client-Server SIP ALGs have limitations (as per RFC 4787 [RFC4787] Section 7, RFC 3424 [RFC3424], and [RFC5245] Section 18.6), and experience shows they can have an adverse impact on the functionality of SIP. This includes problems such as requiring the media and signaling to traverse the same device and not… Continue reading NAT Traversal Practices for Client-Server SIP

MySQL connect to unexpected instance

This morning, I ran into this strange problem: Linux user root cannot connect to local MySQL instance while user mysql can. However, it seems that it connected to the wrong instance. [root@SMNYDBS06 ~]# mysql -h localhost -u root –port=3307 ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (111) [root@SMNYDBS06 ~]# su… Continue reading MySQL connect to unexpected instance

Cross-platform data replication

11G – Reduce Transportable Tablespace Downtime using Cross Platform Incremental Backup (Doc ID 1389592.1) RMAN DUPLICATE/RESTORE/RECOVER Mixed Platform Support (Doc ID 1079563.1) Data Guard Support for Heterogeneous Primary and Physical Standbys in Same Data Guard Configuration (Doc ID 413484.1)

Step-by-step guide on installing and configuring OGG for Oracle replication(Part III – Monitoring and High Availability)

# create heartbeat job on source database exec dbms_scheduler.drop_job(job_name=>’OGG_HEARTBEAT_JOB’); create table nlnk.test(id number); BEGIN DBMS_SCHEDULER.create_job ( job_name => ‘ogg_heartbeat_job’, job_type => ‘PLSQL_BLOCK’, job_action => ‘BEGIN insert into nlnk.test(id) values(to_number(to_char(sysdate,”yyyymmddhh24miss”))); END;’, start_date => systimestamp, end_date => NULL, repeat_interval => ‘freq=minutely;bysecond=0;interval=1′, enabled => true); END; / exec dbms_scheduler.run_job(job_name=>’OGG_HEARTBEAT_JOB’); col max(id) for 99999999999999 select max(id) from NLNK.test; alter… Continue reading Step-by-step guide on installing and configuring OGG for Oracle replication(Part III – Monitoring and High Availability)

Step-by-step guide on installing and configuring OGG for Oracle replication(Part II – Configuring OGG)

#### Configuring Database (both source and destination) # If the database is configured to use a bequeath connection cd $ORACLE_HOME/network/admin vi sqlnet.ora # add the following bequeath_detach=true # We’re using Integrated Capture (LogMiner) and Integrated Replicat (LCR with Inbound Server) # cat ~/.ogg_profile # export ORACLE_HOME=$ORACLE_BASE/product/12.2.0.1/ogghome_1 # export PATH=$ORACLE_HOME:$ORACLE_HOME/OPatch:$PATH # export LD_LIBRARY_PATH=$ORACLE_HOME:$LD_LIBRARY_PATH # From OGG… Continue reading Step-by-step guide on installing and configuring OGG for Oracle replication(Part II – Configuring OGG)

Step-by-step guide on installing and configuring OGG for Oracle replication(Part I – Patching RDBMS and OGG)

It is well known that Oracle has replaced Streams with OGG(Oracle GoldenGate) as its primary data replication solution. You may easily find basic configuration steps for OGG from various sources, which would NOT be sufficient for production. This post aims to provide additional information for product-ready deployment. I have to divide these steps into several… Continue reading Step-by-step guide on installing and configuring OGG for Oracle replication(Part I – Patching RDBMS and OGG)