Quantcast
Channel: Teguh Triharto Learning Center
Browsing latest articles
Browse All 429 View Live
↧

Image may be NSFW.
Clik here to view.

.::: Query Check user session, current, Client IP in MariaDB MySQL,...

 1. MariaDB MySQLselect USER(); 2. PostgreSQL SELECT session_user, CURRENT_USER || '@' || host(inet_client_addr()) AS user_with_ip;  SELECT CURRENT_USER || '@' || host(inet_client_addr()) AS...

View Article


Image may be NSFW.
Clik here to view.

.::: How to enable CDC (Change Data Capture) in SQL Server Using Trigger with...

  Berikut adalah implementasi Change Data Capture (CDC) menggunakan trigger di SQL Server, termasuk contoh tabel, data awal, serta operasi INSERT, UPDATE, dan DELETE.correlation  with...

View Article


Image may be NSFW.
Clik here to view.

.::: Enable Change Data Capture (CDC) Oracle Database using TRIGGER with...

 Berikut adalah langkah-langkah untuk mengaktifkan Change Data Capture (CDC) di Oracle menggunakan Trigger, termasuk contoh tabel, isi tabel, dan implementasi trigger untuk melacak perubahan data:1....

View Article

Image may be NSFW.
Clik here to view.

.::: Backup restore Export import expdp impdp from schema to another schema...

 correlation https://teguhth.blogspot.com/2024/12/backup-restore-export-import-expdb.html1. backup manual [oracle@teguhth ~]$ expdp aisyah/hanin@localhost:1521/tgh DIRECTORY=DATA_PUMP_DIR...

View Article

Image may be NSFW.
Clik here to view.

.::: how to use DBMS_CRYPTO.ENCRYPT dan DBMS_CRYPTO.DECRYPT in Oracle as...

 Oke! Saya akan kasih kamu contoh penggunaan DBMS_CRYPTO.ENCRYPT dan DBMS_CRYPTO.DECRYPT pada tabel pembelian. Di sini, kita akan menyimpan kolom credit_card_number dalam bentuk terenkripsi, dan...

View Article


Image may be NSFW.
Clik here to view.

.::: Setting up and using the mutt email client in Linux for alert NMS or...

  Berikut contoh penggunaan mutt untuk mengirim email dari command line di CentOS 9:A. Setup1. update repositorysudo dnf update -y2. setup muttsudo dnf install mutt -y3. check mutt -v  4. configuration...

View Article

Image may be NSFW.
Clik here to view.

.::: Insert data table to another table with different Database in MariaDB :::.

  A. Without Date1. Checkselect * from teguhth.pembelian; 2. table after createCREATE TABLE pembelian_clone (    KODE_PEMBELIAN CHAR(10) NOT NULL,    KODE_BARANG CHAR(6) NOT NULL,    KODE_CUSTOMER...

View Article

Image may be NSFW.
Clik here to view.

.::: Insert data table to another table with different Database in...

  A. Without Date1. Checkselect * from pembelian; 2. table after createCREATE TABLE pembelian_clone (    KODE_PEMBELIAN     CHAR(10) NOT NULL,    KODE_BARANG        CHAR(6) NOT NULL,    KODE_CUSTOMER...

View Article


Image may be NSFW.
Clik here to view.

.::: Insert data table to another table with different Database in Oracle...

 A. Without Date1. Checkselect * from pembelian;  2. table after createCREATE TABLE pembelian_clone (    KODE_PEMBELIAN     CHAR(10) NOT NULL,    KODE_BARANG        CHAR(6) NOT NULL,    KODE_CUSTOMER...

View Article


Image may be NSFW.
Clik here to view.

.::: Quary T-SQL to simulation High CPU & High Memory Usage In SQL Server :::.

 A. Simulation High CPU 1. Contoh T-SQL untuk Simulasi CPU Tinggi Untuk mensimulasikan CPU utilization tinggi di SQL Server menggunakan T-SQL, kamu bisa menjalankan perintah yang bersifat berat secara...

View Article

Image may be NSFW.
Clik here to view.

.::: Quary to simulation High CPU & High Memory Usage In MySQL MariaDB :::.

 A. Simulation High CPU 1. Contoh untuk Simulasi CPU Tinggi Untuk mensimulasikan CPU utilization tinggi di SQL Server menggunakan T-SQL, kamu bisa menjalankan perintah yang bersifat berat secara...

View Article

Image may be NSFW.
Clik here to view.

.::: Shell Script Kasir cashier with & Without MariaDB :::.

 A. Simple Cashier without Database1. Struktur File listbarang.txt2. Script: kasir.sh [root@teguhth program]# cat kasir.sh#!/bin/bashfile_barang="listbarang.txt"# Fungsi untuk menampilkan daftar...

View Article

Image may be NSFW.
Clik here to view.

.::: Quary query to simulation High CPU & High Memory Usage In EDB PostgreSQL...

  A. Simulation High CPU1. Contoh query untuk Simulasi CPU Tinggi Untuk mensimulasikan CPU utilization tinggi di PostgreSQL menggunakan query, kamu bisa menjalankan perintah yang bersifat berat secara...

View Article


Image may be NSFW.
Clik here to view.

.::: Move TempDB to other folder (move SQL Server MDF and LDF Files...

  correlation https://teguhth.blogspot.com/2023/06/move-sql-server-mdf-and-ldf-files.html1. check sp_helpdb tempdbUSE tempdb;GOSELECT     name AS [Logical Name],    physical_name AS [File Path],...

View Article

Image may be NSFW.
Clik here to view.

.::: Simulation connection java to MariaDB for Success & Fail using...

 1. Download (Platform independent)https://mariadb.com/downloads/connectors/connectors-data-access/java8-connector java -versiondnf install java-17-openjdk-devel -y    # CentOS 92. check login...

View Article


Image may be NSFW.
Clik here to view.

.::: Simulation connection java to MariaDB for Success & Fail using...

 1. Download (Platform independent) MySQL Driverhttps://repo1.maven.org/maven2/com/mysql/mysql-connector-j/8.0.33/mysql-connector-j-8.0.33.jarjava -versiondnf install java-17-openjdk-devel -y    #...

View Article

Image may be NSFW.
Clik here to view.

.::: Simulation Query Select from Java to MariaDB using...

  https://teguhth.blogspot.com/2025/06/simulation-connection-java-to-mariadb.html1. Script java [root@teguhth maria]# cat queryjoin.javaimport java.sql.*;public class queryjoin {    public static void...

View Article


Image may be NSFW.
Clik here to view.

.::: Trial Backup & Restore MariaDB MySQL with crontab -l / crontab -e &...

 A. Prepare Script backup & Restore1. create backup script[root@teguhth cron]# pwd/data/cron[root@teguhth cron]# cat backup_test.shecho "backup full mulai"> log_backup.txtdate >>...

View Article

Image may be NSFW.
Clik here to view.

.::: Shell Script to compare value table a Database MariaDB MySQL :::.

  correlation with https://teguhth.blogspot.com/2025/03/query-to-check-table-column-compare_28.html1. check value table barang server1  2. check value table barang server2 3. run script compare value...

View Article

Image may be NSFW.
Clik here to view.

.::: Shell Script to compare table Database MariaDB MySQL :::.

   correlation with https://teguhth.blogspot.com/2025/03/query-to-check-table-column-compare_28.html1. check table server1  2. check table server2 3. run script compare tablesh compare_table.sh.sh...

View Article

Image may be NSFW.
Clik here to view.

.::: Start the SQL Server Import and Export Wizard From MSSQL to MariaDB :::.

 1. Install ODBC Driver MariaDB MySQL (32 bits) for this case install mysql-connector-odbc-8.0.42-win32mysql-connector-odbc-8.0.42-win32mariadb-connector-odbc-3.2.6-win322. Setup DSN MariaDB Using...

View Article


Image may be NSFW.
Clik here to view.

.::: Start the SQL Server Import and Export Wizard From MariaDB to MSSQL...

 correlation with https://teguhth.blogspot.com/2025/06/start-sql-server-import-and-export.htmlA. Prepare1. MariaDB check sample query select * from products where product_name='laptop' or...

View Article


Image may be NSFW.
Clik here to view.

.::: Install MongoDB 8 in Centos 9 (mongodb-org-server, mongodb-mongosh) :::.

  1. downloadwget https://repo.mongodb.org/yum/redhat/9/mongodb-org/8.0/x86_64/RPMS/mongodb-org-server-8.0.10-1.el9.x86_64.rpm2. create repository[root@teguhth ~]# cat...

View Article

Image may be NSFW.
Clik here to view.

.::: Sample shell script integration MariaDB to Redis :::.

 1. run script using mariadbsh compare_maria_redis.sh mariadb 2. run script using redissh compare_maria_redis.sh redis  3. try delete delete from pembelian where kode_pembelian='BEL-E002'; 4. run...

View Article

Image may be NSFW.
Clik here to view.

.::: Script Daily Backup MongoDB using Date or Compress :::.

  1. Script backup full #[root@teguhth mongod]# cat backup_mongodb_full_script.sh##-bash-4.2$ cat backup_mongodb_full_script.shecho ""Server=$(hostname)ip_address=$(ip a | awk '/inet / && $2 !~...

View Article

Browsing latest articles
Browse All 429 View Live