.::: How to identify DB2 port number Service & connect IBM Data Studio...
1. check for windowsdb2 get database manager configuration | findstr /i svceC:\Program Files\IBM\SQLLIB\BIN>db2 get database manager configuration | findstr /i svce TCP/IP Service name...
View Article.::: Study Kasus Praktis belajar Query create & insert table IBM DB2 (Create...
1. create user db2 in linux[root@teguhth-grid ~]# useradd teguh[root@teguhth-grid ~]# passwd teguhChanging password for user teguh.New password: BAD PASSWORD: The password is shorter than 8...
View Article.::: Install IBM DB2 In Linux Centos 7 / Redhat 7 & check version Db2 :::.
1. Extract * install DB2[db2inst1@teguhth-grid ~]$ cd /data/[db2inst1@teguhth-grid data]$ lsdb2v11.5.7_linuxx64_server_dec.tar server_dec[db2inst1@teguhth-grid data]$ [db2inst1@teguhth-grid data]$ ls...
View Article.::: Query Check SQL Server Uptime :::.
1. CheckSELECT @@servername as servername,getdate() as TimeCollect,sqlserver_start_time, DATEDIFF(Day, sqlserver_start_time,getdate()) as sql_uptime_day ,DATEDIFF(hour, sqlserver_start_time,getdate())...
View Article.::: Create user, change password, change role & drop user PostgreSQL :::.
1. Create user[root@teguhth ~]# su - postgresLast login: Thu Oct 13 15:13:33 +07 2022 on pts/0-bash-4.2$ psqlpsql (9.2.24, server 14.5)WARNING: psql version 9.2, server version 14.0. Some psql...
View Article.::: insert Query to test Replica SQL Server from Publisher to Subscription :::.
continue from http://teguhth.blogspot.com/2021/10/how-to-install-replica-sql-server-mssql.html1. run query -- run in primary/publisherselect @@SERVERNAME as ServerName,* from raju.dbo.pembelian;-- run...
View Article.::: Backup & Restore database IBM-DB2 DB2 :::.
1. IntroductionBackup and recovery methods are designed to keep our information safe. In Command Line Interface (CLI) or Graphical User Interface (GUI) using backup and recovery utilities you can take...
View Article.::: How to enable CDC (Change Data Capture) in SQL Server in Table &...
1. check table from databaseUSE teguhthGOselect @@servername as ServerName, DB_NAME() as DBName,* from pembelian;select @@servername as ServerName, DB_NAME() as DBName,* from teguhth.dbo.pembelian;//**...
View Article.::: Test Performance SQL Server, MSSQL, MySQL, MariaDB, Oracle using Apache...
1. Open Jmeter.bat2. Creating a Thread Group Element3. Fill Threat Group and saveName = MSSQL4. Creating JDBC ConnectionRight Click -> Add -> Config Element -> JDBC Connection Configuration...
View Article::: How to Install MariaDB 10.5 or Latest using mariadb_repo (Enable Remote...
1. download repositoryyum wget https://downloads.mariadb.com/MariaDB/mariadb_repo_setupyum install wget -ywget https://downloads.mariadb.com/MariaDB/mariadb_repo_setup[root@teguhth ]# wget...
View Article.::: Install & Configure High Availability MariaDB Using New Galera Cluster :::.
1. Install MariaDB latest http://teguhth.blogspot.com/2023/05/how-to-install-mariadb-105-or-latest.htmlenable /etc/hosts 2. check galera location[root@teguhth01 ~]# yum install -y...
View Article.::: Reindex, Reorganize and Rebuild Indexes & Update statistics in SQL...
1. Check Database_ID (contoh database id 5 & 6 )select @@Servername as ServerName,name as dbname,database_id from sys.databases;select @@Servername as ServerName,name as dbname,database_id from...
View Article.::: Check Running Query In SQL Server/ Check Query Database Berjalan :::.
1. query 1 - full not simpleSET NOCOUNT ON SET ANSI_PADDING ONSET QUOTED_IDENTIFIER ON DECLARE @record_id int, @SQLProcessUtilization int, @CPU int,@EventTime datetime--,@MaxCPUAllowed int select...
View Article.::: How to Shrink Log Database SQL Server :::.
1.check active transcationselect @@servername as ServerName,name,log_reuse_wait_desc, recovery_model_desc,compatibility_level,@@VERSION from sys.databases 2. check size from sqlSELECT getdate() as...
View Article.::: Adding a node to existing MariaDB Galera Cluster :::.
1. additional hosts node at hosts <add node3= teguhth03>[root@teguhth01 ~]# cat /etc/hosts127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4::1 localhost...
View Article.::: Remove a node to existing MariaDB Galera Cluster :::.
A. Temporary remove1. check status existing galera status before remove. for 3 nodeshow status like 'wsrep_incoming_addresses';show status like 'wsrep_cluster_weight';show status like...
View Article.::: Check Hostname & Version for MSSQL, MariaDB, MySQL, OracleDB, PostgreSQL...
1. MSSQLselect @@servername as ServerName,@@VERSION as VersionSQL from sys.databases;select @@servername as ServerName,name,log_reuse_wait_desc, recovery_model_desc,compatibility_level,@@VERSION as...
View Article.::: Repair Unable to launch SQL Server Configuration Manager – Invalid...
1. Get Error open SQL SQL Server 2019 Configuration Manager Here is the text of the error message:—————————SQL Server Configuration Manager—————————Cannot connect to WMI provider. You do not have...
View Article.:: Check ServerName, SQL Server Version, IP, compatibility_level,...
---Open SSMS & Run Command to check version (Capture)select @@servername as ServerName, @@version as VersionSQL;-- select IPSELECT @@servername as ServerName, CONNECTIONPROPERTY('net_transport')...
View Article