Wednesday, February 11, 2026

How to pull image in docker and run ? Hello-World image

use : https://hub.docker.com/_/hello-world



anurag@Anurags-MacBook-Air ~ % 

anurag@Anurags-MacBook-Air ~ % 

anurag@Anurags-MacBook-Air ~ % 

anurag@Anurags-MacBook-Air ~ % docker pull hello-world

Using default tag: latest

latest: Pulling from library/hello-world

Digest: sha256:ef54e839ef541993b4e87f25e752f7cf4238fa55f017957c2eb44077083d7a6a

Status: Image is up to date for hello-world:latest

docker.io/library/hello-world:latest

anurag@Anurags-MacBook-Air ~ % 

anurag@Anurags-MacBook-Air ~ % 

anurag@Anurags-MacBook-Air ~ % docker run hello-world


Hello from Docker!

This message shows that your installation appears to be working correctly.


To generate this message, Docker took the following steps:

 1. The Docker client contacted the Docker daemon.

 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.

    (arm64v8)

 3. The Docker daemon created a new container from that image which runs the

    executable that produces the output you are currently reading.

 4. The Docker daemon streamed that output to the Docker client, which sent it

    to your terminal.


To try something more ambitious, you can run an Ubuntu container with:

 $ docker run -it ubuntu bash


Share images, automate workflows, and more with a free Docker ID:

 https://hub.docker.com/


For more examples and ideas, visit:

 https://docs.docker.com/get-started/


anurag@Anurags-MacBook-Air ~ % >....                                                                                                                                                                           

This message shows that your installation appears to be working correctly.


To generate this message, Docker took the following steps:

 1. The Docker client contacted the Docker daemon.

 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.

    (arm64v8)

 3. The Docker daemon created a new container from that image which runs the

    executable that produces the output you are currently reading.

 4. The Docker daemon streamed that output to the Docker client, which sent it

    to your terminal.


To try something more ambitious, you can run an Ubuntu container with:

 $ docker run -it ubuntu bash


Share images, automate workflows, and more with a free Docker ID:

 https://hub.docker.com/


For more examples and ideas, visit:

 https://docs.docker.com/get-started/


anurag@Anurags-MacBook-Air ~ % 


if you see " Hello from Docker! " then all good 


Tuesday, February 10, 2026

Oracle AI Database 26ai ?

Oracle AI Database 26ai – Key Highlights


Next Long-Term Support Release

Delivers over 300 new features focused on AI integration and developer productivity.


AI & Machine Learning Enhancements

AI Vector Search

Supports generation and storage of vector embeddings for documents, images, audio, and more.

Enables fast similarity search using Oracle’s existing analytical engines.


Integrated Machine Learning

Leverages Oracle’s extensive ML algorithms to rapidly build sophisticated AI-driven applications.


AI-Optimized Core Functions

Uses AI to improve accuracy of execution-time estimates and resource costing.




Developer Productivity Improvements

Flexible Development Models

Simplified development for JSON, relational, or hybrid application architectures.


Enhanced Microservices & Messaging

Expanded support for modern microservice-based application designs.


New RAFT Protocol Support

Simplifies database distribution and sharding for regulatory and performance-driven requirements.




SQL & PL/SQL Advancements

New Data Types & Language Enhancements

Improves creation and optimization of OLTP and analytical applications.


SQL Firewall

Offers advanced security by controlling precisely which SQL statements can execute against the database.



Database Administration Improvements

Refined Management Tasks

Reduced complexity and improved performance across key DBA operations.

New automation for tasks such as reclaiming free space in tablespaces.


Performance Enhancements

Infrastructure-level boosts, including True Cache, for higher throughput.

SQL-level optimizations enabling significantly faster execution of certain statements.

Wednesday, February 4, 2026

How to Monitor When Oracle Management Packs Are Activated or Used in Oracle database ?

 

How to Monitor When Oracle Management Packs Are Activated or Used

Oracle provides multiple internal views, advisor logs, and AWR/ADDM activity indicators that reveal accidental or unauthorized use of:

  • Diagnostics Pack
  • Tuning Pack

Below is a complete monitoring framework.


1. Check if Diagnostic/Tuning Features Were Used (Primary Indicator)

Oracle logs all usage in DBA_FEATURE_USAGE_STATISTICS.

Run:

SELECT name, detected_usages, total_samples, last_usage_date
FROM dba_feature_usage_statistics
WHERE name IN (
'Automatic Workload Repository',
'ADDM',
'SQL Tuning Advisor',
'SQL Access Advisor',
'ASH',
'AWR Baseline',
'Real-Time SQL Monitoring'
)
ORDER BY last_usage_date DESC;

What to look for:

  • DETECTED_USAGES > 0 → feature was used
  • LAST_USAGE_DATE not null → pack was accessed
  • If you disabled packs but this still updates → OEM or some script is still invoking features

This is the most authoritative licensing indicator.


2. Monitor the Management Pack Parameter (Active Status)

Run:

SHOW PARAMETER control_management_pack_access;

Expected safe value:

NONE

If it changes to:

  • DIAGNOSTIC
  • DIAGNOSTIC+TUNING

➡️ Packs are active and billable.

For automated monitoring, query:

SELECT value
FROM v$parameter
WHERE name='control_management_pack_access';


3. Check if AWR Snapshots Are Being Generated (Diagnostics Pack Usage)

If snapshots exist, AWR is active → Diagnostic Pack is considered used.

SELECT snap_id, begin_interval_time, end_interval_time
FROM dba_hist_snapshot
ORDER BY snap_id DESC
FETCH FIRST 10 ROWS ONLY;

If you see new snapshots after disabling:

➡️ Something is still collecting AWR data.


4. Monitor ADDM Execution (Diagnostics Pack)

SELECT task_name, created, status
FROM dba_advisor_tasks
WHERE advisor_name='ADDM';

If any task appears → Diagnostics Pack used.


5. Monitor SQL Tuning Advisor Activity (Tuning Pack)

SELECT task_name, created, status
FROM dba_advisor_tasks
WHERE advisor_name='SQL TUNING ADVISOR';

If tasks ran → Tuning Pack usage triggered.

Also check:

SELECT COUNT(*) FROM DBA_ADVISOR_LOG WHERE advisor_name='SQL TUNING ADVISOR';


6. Monitor SQL Access Advisor Activity (Tuning Pack)

SELECT task_name, created, execution_start
FROM dba_advisor_tasks
WHERE advisor_name='SQL ACCESS ADVISOR';

Any appearance = Tuning Pack usage.


7. Detect Automatic SQL Monitoring (Diagnostics + Tuning Pack)

SQL Monitoring is part of Tuning Pack.

Check ASH/SQL Monitor usage:

SELECT sql_id, status, sid, username, elapsed_time
FROM v$sql_monitor;

If rows appear → Tuning Pack active.


8. OEM Activity Monitoring (Common Source of Accidental Usage)

OEM may trigger pack usage even if DBAs don't run anything manually.

Check OEM repository:

For AWR/ASH report generation:

SELECT * FROM mgmt$awr_reports ORDER BY time_start DESC;

For SQL Tuning Advisor tasks created by OEM:

SELECT task_name, created
FROM dba_advisor_tasks
WHERE task_name LIKE 'SYS_AUTO_SQL%';

If OEM is generating:

  • AWR Reports
  • ADDM Reports
  • SQL Tuning tasks

➡️ Packs are being used even if parameter says NONE.


9. Enable Audit Monitoring for Parameter Changes

Track if someone re-enabled packs:

AUDIT ALTER SYSTEM;

Then check:

SELECT username, timestamp, sql_text
FROM dba_audit_trail
WHERE sql_text LIKE '%control_management_pack_access%';

This is extremely valuable during SOX audits.


📈 10. Recommended Scheduled Monitoring Script

Run daily/weekly through OEM/cron.

SELECT 'FEATURE_USAGE', name, detected_usages, last_usage_date
FROM dba_feature_usage_statistics
WHERE detected_usages > 0
UNION ALL
SELECT 'AWR_SNAP', snap_id, begin_interval_time, end_interval_time
FROM dba_hist_snapshot
WHERE begin_interval_time > SYSDATE-1;

Generate alerts if ANY usage is detected.


🎯 Summary – What You Must Monitor

Check AreaWhat It DetectsIndicates Usage
DBA_FEATURE_USAGE_STATISTICSCore featuresPrimary licensing indicator
DBA_HIST_SNAPSHOTAWR snapshotsDiagnostics Pack
ADDM TasksDiagnostics PackYes
SQL Tuning AdvisorTuning PackYes
SQL Access AdvisorTuning PackYes
SQL MonitoringTuning PackYes
OEM ActivityAuto usage triggersVery common
Audit of parameter changeRe-enabling packsCompliance breach



Disable Diagnostics Pack & Tuning Pack in Oracle

 These packs are controlled by the Oracle parameter control_management_pack_access.

🎯 Step 1 — Check Current Status


SHOW PARAMETER control_management_pack_access;

You’ll see one of the following:

  • DIAGNOSTIC+TUNING (both packs enabled)
  • DIAGNOSTIC (Diagnostics only)
  • NONE (all packs disabled → fully license‑safe)

🎯 Step 2 — Disable Both Packs

You must set the parameter to NONE at the instance level:

For RAC or Single Instance (spfile):

ALTER SYSTEM SET control_management_pack_access = NONE SCOPE=BOTH;

For pfile:

Edit the pfile and add:

control_management_pack_access = NONE

Restart the database.


🎯 Step 3 — Restart (Required for Some Versions)

Some Oracle versions apply the change immediately; others require a bounce.

To be safe:

SHUTDOWN IMMEDIATE;
STARTUP;

⚠️ Important Notes for Compliance

Disabling these packs automatically disables:

  • AWR (Automatic Workload Repository)
  • ADDM (Automatic Database Diagnostic Monitor)
  • SQL Tuning Advisor
  • SQL Access Advisor
  • Database Monitoring pages in OEM that use diagnostic data

If you're using OEM, make sure:

  • AWR snapshots are not scheduled
  • OEM does not trigger diagnostics-related jobs

🎯 Optional — Disable AWR Snapshot Collection (prevents accidental usage)

EXEC dbms_workload_repository.modify_snapshot_settings(interval => 0);


✔️ Good Practice Checklist for SOX & Licensing

Since you’re running DB architecture at NXP and focusing heavily on audit readiness, here’s a quick compliance checklist:

CheckStatus
control_management_pack_access = NONE
AWR snapshots disabled
OEM monitoring avoids diag/tuning features
No use of SQL Tuning Advisor
No manual AWR report generation




1. Purpose

This SOP defines the detailed steps required to disable Oracle Diagnostics Pack and Tuning Pack across Oracle databases to ensure license compliance, prevent unintended usage, and support SOX / ITGC audit requirements.


2. Scope

This procedure applies to:

  • All Oracle Enterprise Edition databases.
  • All environments: Production, Non‑Prod, DR, QA, Dev.
  • Both single-instance and Oracle RAC deployments.
  • Systems integrated with Oracle Enterprise Manager (OEM).

3. Responsibilities

RoleResponsibility
Database ArchitectApprove the requirement & design compliance controls
DBA TeamExecute the SOP across environments
OEM AdministratorEnsure OEM jobs do not trigger Diagnostic/Tuning features
Internal Audit / SOX TeamPeriodic validation

4. Prerequisites

  1. SYSDBA access to the database.
  2. Approval from Application Owners (if restart is required).
  3. Confirm no features dependent on AWR/ADDM are needed.
  4. Recent database backup.

5. Background

Oracle Diagnostics & Tuning Packs are separately licensed. When enabled, Oracle automatically collects & stores performance data through:

  • AWR (Automatic Workload Repository)
  • ADDM (Automatic Database Diagnostic Monitor)
  • SQL Tuning Advisor
  • SQL Access Advisor
  • OEM performance pages

To prevent unintentional usage, Oracle provides a parameter:

control_management_pack_access

Valid values:

  • DIAGNOSTIC+TUNING
  • DIAGNOSTIC
  • NONE ← Fully disables both packs

6. Procedure


6.1 Step 1 — Verify Current License Pack Status

Execute as SYS:

SHOW PARAMETER control_management_pack_access;

Expected output will show the current value.


6.2 Step 2 — Disable Diagnostics & Tuning Packs

If using SPFILE (Recommended for most environments):

ALTER SYSTEM SET control_management_pack_access = NONE SCOPE=BOTH;

If using PFILE:

  1. Edit the pfile:
control_management_pack_access = NONE
  1. Recreate the spfile (if required):
CREATE SPFILE FROM PFILE;

6.3 Step 3 — Restart Database (Required in Some Versions)

Some Oracle versions apply immediately, but restart ensures full enforcement:

SHUTDOWN IMMEDIATE;
STARTUP;

6.4 Step 4 — Validate the Change

SHOW PARAMETER control_management_pack_access;

Expected:

NAME                                 VALUE
------------------------------------ -----
control_management_pack_access       NONE

6.5 Step 5 — Disable AWR Snapshots (Optional but Recommended)

This prevents accidental AWR collection:

EXEC dbms_workload_repository.modify_snapshot_settings(interval => 0);

To verify:

SELECT interval FROM dba_hist_wr_control;



6.6 Step 6 — Adjust OEM Monitoring

If OEM is configured, ensure:

  • AWR-based reports are disabled
  • ASH Analytics not accessed
  • Performance pages using Diagnostic data are not used
  • No SQL Tuning Advisor jobs scheduled

Deactivate OEM jobs:

-- Disable SQL Tuning Advisor tasks
EXEC dbms_sqltune.drop_tuning_task(task_name => '<task_name>');

-- Disable ADDM tasks
EXEC dbms_addm.delete_db_advisor_run(run_name => '<run_name>');

7. Post‑Implementation Checks

CheckValidation Query / Step
Parameter set to NONESHOW PARAMETER control_management_pack_access
AWR snapshots disabledSELECT interval FROM dba_hist_wr_control
No ADDM reports generatedCheck OEM & DBA_ADVISOR_LOG
No SQL Tuning Advisor usageSELECT * FROM dba_advisor_log WHERE advisor_name='SQL TUNING ADVISOR';
OEM Performance pages do not show diagnostic dataManual check

8. Rollback Procedure

If the packs need re-enabling:

ALTER SYSTEM SET control_management_pack_access = 'DIAGNOSTIC+TUNING' SCOPE=BOTH;

Restart database if required.


9. Compliance & Audit Evidence

DBA team must retain the following evidence:

  • Screenshot or spool log of parameter:
    control_management_pack_access = NONE
    
  • AWR snapshot interval set to 0.
  • OEM tuning/diagnostic jobs disabled.
  • Monthly validation logs.

10. Risks & Mitigations

RiskMitigation
Loss of AWR dataUse Statspack instead
OEM features unavailableMonitor via OS tools or Statspack
Application performance troubleshooting impactBuild custom scripts or enable temporarily with approval

How to pull image in docker and run ? Hello-World image

use : https://hub.docker.com/_/hello-world anurag@Anurags-MacBook-Air ~ %   anurag@Anurags-MacBook-Air ~ %   anurag@Anurags-MacBook-Air ~ % ...