Yearly Archives: 2025

Weblogic .out files are not rotating issue.

Issue:  In WebLogic Server, the .out log files (such as nohup.out or server.out) are not rotating properly, causing them to grow significantly in size—sometimes reaching several GBs. This can lead to disk space exhaustion and make log analysis difficult. Cause of the issue: The primary reasons for .out files not rotating are: WebLogic Logging Configuration – The .out file is typically not managed by WebLogic’s built-in log rotation settings. nohup or Redirected Output – If the server is started using nohup ./startWebLogic.sh &, the output is redirected to nohup.out, which does not rotate automatically. Log Rotation Not Configured – The absence of an external log rotation mechanism (logrotate) can cause .out files to grow indefinitely. Long Running Process – WebLogic keeps writing to the same .out file as long as the process is running. How do we solve:  Solution 1: Enable WebLogic’s Built-in Log Rotation If .out logs are managed via WebLogic settings, follow these steps: Login to WebLogic Admin Console Navigate to Servers → Select the target Managed Server. Go to Logging Settings Click on the Logging tab → Click on the General sub-tab. Configure Rotation Settings Rotate Log Files → Enabled Rotation Type → Set to either: By Size (100MB or as needed). By Time (24 Hours). Maximum Number of Retained Files → Set a limit (e.g., 10). Save and Restart WebLogic Server Apply changes and restart the WebLogic server for them to take effect. Solution 2: Redirect Standard Output to a Rotating Log Modify the WebLogic startup script to redirect logs using cronolog: Edit startWebLogic.sh and Modify the nohup Command: ### nohup ./startWebLogic.sh > /path/to/logs/weblogic_$(date +%Y-%m-%d).log 2>&1 &…

Read More

Deterministic Functions in Oracle 

Deterministic Functions in Oracle    Overview A deterministic function in Oracle is a function that always returns the same result for the same input values and has no side effects.…

Read More

Read permission on secondary replica in always-on AG

How to give read permission on secondary replica in always-on AG    Purpose of Log shipping:     Always On availability groups feature is a high-availability and disaster-recovery solution that provides an…

Read More

Permission on secondary database in loginshipping

How to give read permission on secondary server in log shipping    Purpose of Log shipping:   SQL Server Log shipping allows databases to automatically send transaction log backups from a…

Read More

The Art of Visual Storytelling in UX Design

The Art of Visual Storytelling in UX Design  Introduction  Visual storytelling has become essential in UX design in today’s fast-paced digital world. It’s about using design elements to convey a…

Read More

Creating new VM in azure environment

Creating new VM in azure environment  Title/ Description of the Process  This process outlines the steps to manually or programmatically create a new Virtual Machine (VM) in Microsoft Azure. It…

Read More

How to Create a Fine Poster: A Quick Guide 

How to Create a Fine Poster: A Quick Guide  Introduction  Posters are a powerful way to grab attention and communicate messages quickly. Whether you’re promoting an event, brand, or idea,…

Read More

Overview of Microsoft Azure Cloud Services

Overview of Microsoft Azure Cloud Services Introduction to Cloud Computing: Briefly discuss cloud computing and how Azure fits into the market of cloud service providers.  Core Services of Azure: Cover…

Read More

Create the OEM Repository Database 

Notes:  Database oemdb is created via dbca  Non-CDB database is created (PDB is also supported for repository database)  Redo Log file size should be minimum 300 MB  After database is…

Read More

Blob File Move From DB to Directory

Introduction/ Issue:   CSV blob file to raw file move from database table blob column to database directory. Why we need to do / Cause of the issue:  We can move from blob to raw CSV file from database table blob column to database directory. How do we solve:  Step 1: Create one database procedure PROCEDURE P_FILE_TO_DBSER (p_blob      IN  BLOB, p_dir       IN  VARCHAR2, p_filename  IN  VARCHAR2) AS l_file      UTL_FILE.FILE_TYPE; l_buffer    RAW(32767); l_amount    BINARY_INTEGER := 32767; l_pos       INTEGER := 1; l_blob_len  INTEGER; BEGIN l_blob_len := DBMS_LOB.getlength(p_blob);   — Open the destination file. l_file := UTL_FILE.fopen(p_dir, p_filename,’wb’, 32767); — Read chunks of the BLOB and write them to the file until complete. WHILE l_pos <= l_blob_len LOOP DBMS_LOB.read(p_blob, l_amount, l_pos, l_buffer); UTL_FILE.put_raw(l_file, l_buffer, TRUE); l_pos := l_pos + l_amount; END LOOP;   — Close the file. UTL_FILE.fclose(l_file);  …

Read More