In this tutorial, i will share you how to do checksum using MessageDigest in JAVA. Below my code: 1 2 3 4 5 6
Read MoreCategory: Tutorial
Sample Decompression In JAVA (Using Apache Common Compress)
In this tutorial, i will share to you how to extract zip, 7z, gzip tar and tar-gz in java. below my code: 1 2
Read MoreSample Samba Connection in JAVA
In this tutorial, i will share to you how to create folder, copy file to samba and move file in samba. Below my code:
Read MoreMultiple DockerFile using Docker-Compose
In this tutorial, i will show to you how to create multiple image and container with combining docker file into single docke-compose file. my
Read MoreDynamic Artifact Id Name in Maven
In this tutorial, i will give you an example how to create Artifact Id dynamically using maven. below my pom.xml: <groupId>sample-project</groupId> <artifactId>sampleproject–${your_parameter}</artifactId> <version>0.1.0</version><groupId>sample-project</groupId> <artifactId>sampleproject–${your_parameter}</artifactId>
Read MoreAlter Table Column To Primary Key Or Identity (Oracle)
ALTER TABLE YOUR_TABLE_NAME ADD CONSTRAINT PK_CONSTRAINT_NAME PRIMARY KEY (YOUR_COLUMN_NAME);ALTER TABLE YOUR_TABLE_NAME ADD CONSTRAINT PK_CONSTRAINT_NAME PRIMARY KEY (YOUR_COLUMN_NAME); ALTER TABLE YOUR_TABLE_NAME ADD ( YOUR_COLUMN_NAME INT
Read MoreHow To Include All Dependencies Jar into Main Jar Maven
My pom.xml : <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>copy-dependencies</id> <phase>prepare-package</phase> <goals> <goal>copy-dependencies</goal> </goals> <configuration> <outputDirectory>${project.build.directory}/classes/lib</outputDirectory> <overWriteReleases>false</overWriteReleases> <overWriteSnapshots>false</overWriteSnapshots> <overWriteIfNewer>true</overWriteIfNewer> </configuration> </execution> </executions> </plugin>
Read MoreMy Oracle Experience Part 1
I want to share to you my exploration in ORACLE database: ROWTYPE variable ALIAS in ORACLE >> SELECT COLUMN_NAME “COLUMN ALIAS” FROM TABLE LOOP
Read MoreSample DBMS_OUTPUT in SQL Developer
SET SERVEROUTPUT ON; BEGIN DBMS_OUTPUT.PUT_LINE(’Sample DBMS_OUTPUT’); END;SET SERVEROUTPUT ON; BEGIN DBMS_OUTPUT.PUT_LINE(‘Sample DBMS_OUTPUT’); END; CMIIW .
Read MoreSample Dynamic Query in ORACLE Procedure
CREATE OR REPLACE PROCEDURE USPS_GET_DYNAMIC_QUERY ( RESULTSET OUT SYS_REFCURSOR ) AS v_strSql VARCHAR(4000); BEGIN v_strSql := ‘SELECT * FROM TBLM_DATA’; OPEN RESULTSET FOR v_strSql;
Read More