Browsed by
Author: Tèng

50 thiên kiến nhận thức

50 thiên kiến nhận thức

1. Lỗi quy chụp căn bản: Khi người khác đến muộn, đó là do họ lười. Khi bạn đến muộn, đó là do đường tắc. 2. Thiên kiến tự phục vụ: Bạn nghĩ mình thành công là nhờ năng lực và bản thân, còn thất bại là do hoàn cảnh hoặc thiếu may mắn. 3. Ưu đãi bè phái: Bạn có xu hướng thiên vị thành viên nhóm mình hơn những người khác. 4. Hiệu ứng đoàn tàu: Bạn chạy…

Read More Read More

Manual Oracle Uninstall

Manual Oracle Uninstall

A number of people have contacted me regarding problems uninstalling Oracle products. The two methods listed below should only be used as a last resort and will remove *all* Oracle software allowing a re-install. If you make any mistakes they can be quite destructive so be careful. Windows UNIX Windows In the past I’ve had many problems uninstalling all Oracle products from Windows systems. Here’s my last resort method: Uninstall all Oracle components using the Oracle Universal Installer (OUI). Run regedit.exe and delete the HKEY_LOCAL_MACHINE/SOFTWARE/Oracle key….

Read More Read More

Debezium with Oracle 11g

Debezium with Oracle 11g

Versions in use Kafka 2.3.0 / Confluent Platform 5.3.0 Debezium 0.10 Oracle 11g EE 11.2.0.4 tl;dr It works, though you need some small adjustments to the DB setup that is described in the Debezium Tutorial Using Oracle. You need a minimum version of 11.2.0.4. You also need an Oracle license for XStream in addition to your 11g database. Watch out for Oracle data types that come through Debezium as a byte array: KSQL can’t read it, so you need some other way…

Read More Read More

XStream Inbound… A Sample Java Program

XStream Inbound… A Sample Java Program

Oracle XStream is a new feature of Oracle Database 11g Release 2. Though it has been developed by the Streams team and is part of the database, XStream is part of GoldenGate! And now that the GoldenGate deal has been closed, 7 days before Oracle Openworld, it’s easy to guess why XStream went out a few hours ago. This post is about XStream; it provides a Java program that uses “XStream In” to enqueue messages to a buffered queue. A…

Read More Read More

XStream Outbound… A sample Java Program

XStream Outbound… A sample Java Program

Like with XStream InBound in my previous post, you’ll find below a simple Java for XStream Outbound. This new program subscribes to Streams captured changes. Does it sound easy ? It is, like you’ll figure out below. Step 1: Create a Sample Schema For this sample program, create a schema and a table : connect / as sysdbacreate user source identified by source default tablespace users temporary tablespace temp;grant connect,resource to source;col dbname new_value dbnameselect value dbname from v$parameterwhere name=’db_unique_name’;prompt &&dbnameconnect…

Read More Read More

Oracle to Kafka made easy.

Oracle to Kafka made easy.

Source: http://oebsnotes.blogspot.com Sometimes we need to expose data from Oracle database to external systems/services.  In our experience, it ends ups with kind of interim tables or even interim databases or REST service solutions, the downsides of such approaches are well known. These days one of the best solution to communicate services is message broker, namely Apache Kafka.  This time we would like to send data from Oracle database to Kafka, after some googling we come up with – GoldenGate, WebLogic,…

Read More Read More

Installing oracle 11.2.0.4 under Docker

Installing oracle 11.2.0.4 under Docker

1. Upload the oracle installation package to the host and extract it (for example, under the directory of / data) [root@localhost data]# ll total 2487256 drwxr-xr-x. 7 440 200 4096 Aug 27 2013 database drwx——. 2 root root 16384 Aug 30 23:23 lost+found -rw-r–r–. 1 root root 1395582860 Aug 30 23:59 p13390677_112040_Linux-x86-64_1of7.zip -rw-r–r–. 1 root root 1151304589 Aug 30 23:59 p13390677_112040_Linux-x86-64_2of7.zip 2. Start with the image of Docker official website and mount / data to / install docker run -it –privileged…

Read More Read More

How to secure Windows Remote Desktop (RDP)

How to secure Windows Remote Desktop (RDP)

How secure is Windows RDP? By default, a Remote Desktop session is operated via an encrypted channel which prevents anyone to view your session by network listening methods. Although this is a secure method, it is still susceptible to “man-in-the-middle-attack” to a certain degree as well as a form of brute-force attacks or simple guesses if the attacker has any info on your general likes, preferences and habits (Social media is fun indeed). Basic security tips Keep your Windows updated…

Read More Read More

Set up a proxy server on the machine level

Set up a proxy server on the machine level

Set up the proxy for a system account ExecutePsExec.exe -i -s cmd.exeto run the command prompt under a system account.Note: Check whether you have the proper login set up by executing the “whoami” command. The response should be “nt authority\network service” Execute%PROGRAMFILES%\Internet Explorer\iexplore.exeto run Internet explorer in system context. Open the Control Panel, and go to Internet Options > Connections > LAN settings. Click Use a proxy server, and define your proxy settings. Set up the proxy for a network…

Read More Read More

Throttling Concurrent Outgoing HTTP Requests in .NET Core

Throttling Concurrent Outgoing HTTP Requests in .NET Core

In my last post, we implemented the rate limiting for an API endpoint on the server side. The server side rate limiting is useful for API providers to ensure system performance and/or to realize business values. On the client side, the API consumers then should throttle the rate of concurrent HTTP requests in order to comply with the rate limits of the endpoints and moderate the usage of client side resources. This post will go over how to make concurrent outgoing HTTP requests on the client…

Read More Read More