Posts by Ajay Kumar

Tried to import a partitioned table from Oracle enterprise edition to Standard edition 2 database.

Tried to import a partitioned table from Oracle enterprise edition to Standard edition 2 database. 1st Method : impdp \”/ as sysdba\” directory=DUMP dumpfile=2tab_tst_19_12_25.dmp logfile=2tab_tst_19_12_25_2.log TABLES=GLOBUS_APP.T502_ITEM_ORDER REMAP_TABLE=GLOBUS_APP.T502_ITEM_ORDER:T502_ITEM_ORDER_TEST2 REMAP_TABLESPACE=GMI_APP_DATA:GLOBUS_PROD_PERM Imported a entire table, but faced the below error. Since, we cannot import a partitioned table to a SE2 database. 2nd Method : impdp \”/ as sysdba\” directory=DUMP dumpfile=2tab_tst_19_12_25.dmp logfile=2tab_tst_19_12_25.log TABLES=GLOBUS_APP.T502_ITEM_ORDER REMAP_TABLE=GLOBUS_APP.T502_ITEM_ORDER:T502_ITEM_ORDER_TEST REMAP_TABLESPACE=GMI_APP_DATA:GLOBUS_PROD_PERM CONTENT=DATA_ONLY Created the table with the metadata first. Then imported with the data_only option. This time it works.

Read More

Unlocking the Power of Table Partitioning in Oracle Databases 

Unlocking the Power of Table Partitioning in Oracle Databases  Managing large datasets efficiently is a key challenge for database administrators (DBAs). One solution to this problem is table partitioning, a feature in Oracle databases that allows large tables to be divided into smaller, more manageable segments called partitions. In this post, we’ll explore the concept, benefits, and implementation of table partitioning, along with practical SQL examples. What is Table Partitioning?  Table partitioning involves splitting a large table into smaller, independent pieces, each known as a partition. These partitions can have distinct storage characteristics, but the SQL used to access the data remains unchanged. This means that while the data storage mechanism is different, users can interact with partitioned tables just like regular tables. Advantages of Table Partitioning  Improved Data Availability: – If one partition becomes unavailable due to a media failure, other partitions remain accessible. For example, if the ‘EMP’ table has three partitions (A, B, C) and partition A encounters an issue, partitions B and C can still serve user requests. Reduced Contention: – By storing partitions in separate tablespaces and placing each tablespace on a different disk drive, multiple users can access the table simultaneously without contention. For instance, User A can select data from Partition 1, while User B inserts data into Partition 2 without interference. Enhanced Query Performance: – Partition Pruning optimizes query execution. Oracle automatically identifies the relevant partition based on the query condition, significantly reducing the search scope. Efficient Backups: – DBAs can back up individual partitions instead of the entire table, making the backup process faster and more manageable. Simplified Data Management: – Partitioning makes handling large datasets easier. For example, in a data warehouse, weekly data can be loaded into a fresh partition. Retrieving data for a specific week then becomes as simple as querying that partition.   Types of Table Partitioning  Range Partitioning: – Divides data based on a range of values in a specified column (e.g., salary ranges). List Partitioning: – Segregates data based on a predefined list of values (e.g., state codes). Hash Partitioning: – Distributes data evenly across partitions using a hash function, ensuring balanced storage and performance. How to Implement Table Partitioning  Here are practical examples of table partitioning in Oracle databases: Creating a Table with Range Partitions: CREATE TABLE EMP1 (    EMPNO NUMBER(4),    ENAME VARCHAR2(10),    SAL   NUMBER(7,2),   HIREDATE DATE) PARTITION BY RANGE (SAL) (  PARTITION P1 VALUES LESS THAN (1000),    PARTITION P2 VALUES LESS THAN (2000),   PARTITION P3 VALUES LESS THAN (3000),   PARTITION P4 VALUES LESS THAN (5000)); Inserting Data into Partitions: INSERT INTO EMP1 PARTITION (P1) VALUES (1001, ‘ALLEN’, 800, ’01-JAN-2005′); INSERT INTO EMP1 VALUES (1002, ‘JAMES’, 4500, ’01-JAN-2005′);…

Read More

 Issue faced after cloning pluggable database

Verify the pbs’s in the database. Create the pluggable database using the below command. In the above screenshot, new pluggable database opened with errors and in restriction mode. While verifying…

Read More

How to change the Database SYS password in OCI console

Step 1: Login to database where you want to change the sys password. In the example we choose Oracle Base Database Service.   Step 2 : In the Database Page :…

Read More

Installation of DbFetchX application in Oracle database

Introduction: DbFetchX is a robust application designed to streamline data extraction, transformation, and retrieval from Oracle Databases. Its installation involves integrating the application’s schema, objects, and configurations into an Oracle…

Read More

OS upgrade from version Linux 7 to 8 in OCI console

  Introduction: Upgrading from Linux 7 to Linux 8 in the Oracle Cloud Infrastructure (OCI) environment is a crucial step to ensure the operating system is up-to-date, secure, and capable…

Read More

Backup and Restore validation for Oracle database in OCI console

Introduction: Oracle Cloud Infrastructure (OCI) offers robust tools and features that allow database administrators to manage backups and restores efficiently. Ensuring that data is securely backed up and easily restorable…

Read More

Steps to apply and rollback patch in OCI console

Introduction : Maintaining the security and performance of your Oracle Database is crucial, and applying patches is a key aspect of this maintenance. Oracle Cloud Infrastructure (OCI) simplifies the process…

Read More

SETUPAWS CERTIFICATE TO SEND E-MAIL

SETUPAWS CERTIFICATE TO SEND E-MAIL    Download the certificates from the link provided by Amazon. Click on PEM Copy the text. Create five certificate file using notepad with extension .crt. Move…

Read More

Enabling Database management and Operation insights in OCI console

Enabling Database management and Operation insights in OCI console   Enabling Database Management: Navigate to the Observability & Management. In the Observability & Management, under Database Management section select the…

Read More