Enable online status for all Oracle database datafiles

I have executed a database migration by transitioning from a physical active data guard to a primary database. Subsequent to the migration, I observed that several data files were offline, as evidenced below: Modifying the status of each individual data file would require a substantial amount of time. To provide an illustrative example: In order to streamline the operation, I devised a PL/SQL procedure that effectively places all data files offline across all tablespaces within the database, subsequently modifying their statuses to online, as illustrated below: I hope this post…

Storing Information from ChatGPT in Oracle Database Container using Python and Jupyter Notebook

In this post, I will be creating Python code using Jupyter Notebook to store information from ChatGPT in an Oracle Database within a Docker container. The objective is to showcase how an application can retrieve various types of data from an AI-based tool. Additionally, the idea behind this is to illustrate how the implementation of supercomputers can further optimize this infrastructure. By utilizing the Python programming language and Jupyter Notebook, we can develop code that captures and stores information generated by ChatGPT. This code will serve as a demonstration of…

Installing Oracle Database on macOS using Oracle Docker Images

Technology is constantly evolving, and with it, the methods of installation have changed. For DBAs who once relied on CDs or diskettes to install Oracle databases, the ability to quickly and easily create and deploy a database using Docker images provided by Oracle is truly impressive. In this post, I will cover the deployment of Oracle database 18.4 using the free and simplified edition, Oracle Express, on MacOS Monterrey 12.6.5. To begin, I would like to share the necessary tools that one must download in order to achieve this goal.…

Oracle Linux Installation Media – ISO images

I needed to install Linux to deploy containers using Kubernetes and Docker. To save time on configuring the environment, I decided to install the latest version of Oracle Linux. Instead of going through a complex installation process, I downloaded an Oracle Linux image under the ‘Virtual Appliance Oracle Product’ category, which I was able to deploy easily. If you’re looking to save on installation and configuration costs, I am sharing the links below, as well as the image I downloaded (which was the Full ISO release 9.1 ‘OracleLinux-R9-U1-x86_64-dvd.iso’ – 9G…

Archive log not deleting within retention policy

I was managing an ORACLE RAC database configured with Oracle Data Guard when I discovered the archive log was not being deleted after the retention policy of 2 days in our backup configuration. Therefore, I started the investigation by collecting some information from the alert log. And the first initiative I took was to verify if the database had been deleting old archives when there was a space pressure in the recovery area as below: It is a cheerful and ordinary Oracle database approach to automatically deleting unneeded files. The…

Managing the availability of a portable collection of schemas, schema objects, and non-schema objects in an Oracle multitenant database

This post serves as a reference to close and open PDB databases. I have been mentoring some colleagues on the way to a data and database management career. As we have been managing Oracle multitenant environments quite often, I decided to create an example where they can easily visualize and have a reference on it. I made another blog post where one can imagine the existence of PDBs (https://www.techdatabasket.com/2018/11/08/how-to-check-if-my-database-is-a-cdb-database-or-not/). Thus, follow below is the representation of the closing and opening of a database instance named TECHDB in an Oracle RAC…

TIDB – CREATE DATABASE command

After creating a local cluster for the TiDB database and visualizing the existing database via the show database command, I decided to create a database. And like many open-source databases, TiDB simplifies this activity by using a simple command as “create database.” Therefore, this post shows how quickly create a new database followed by the latest display of the existing databases:

TiDB – SHOW DATABASES Command

After creating a local TiDB platform, I would like to get started with some typical commands, such as listing the databases. Therefore, this post presents an example of how to display the databases to the connected user who has access: Note*: “The information_schema database always appears first in the list of databases.” Source: https://docs.pingcap.com/tidb/dev/sql-statement-show-databases

Quickly deploy of a TiDB database for mac OS (macOS) – local test cluster

This post is about deploying a TiDB database in a non-productive environment. I intend to try the features of Hybrid Transactional and Analytical Processing (HTAP) workloads of this open-source distributed SQL database. It was mind-blowing when I heard about the possibility of a database maintaining the scalability of a NoSQL database while keeping the ACID transactions of a relational database. Therefore, I will follow the procedure “Deploy a local test cluster” found on the official documentation for MacOS as below: 1- Download and install TiUP: Command: Execution: 2- Declare the…