Infrastructure at your Service

All Posts By

Clemens Bleile

Clemens Bleile

Cleanup a failed Oracle XE installation on Linux Mint

By | Oracle | No Comments

On this Blog I described on how to install Oracle XE on a current Linux Mint version (19.3. Tricia when writing the Blog). After the conversion of the Oracle provided rpm to a deb installation file with the tool alien, you can install the Oracle XE software with a simple command [email protected]:/opt/distr# dpkg -i oracle-database-xe-18c_1.0-2_amd64.deb If the installation fails or the XE database cannot be created with the configuration script later on, then you have…

Read More
Clemens Bleile

Setup Oracle XE on Linux Mint – a funny exercise

By | Oracle | No Comments

On my old Laptop (Acer Travelmate with an Intel Celeron N3160 CPU) I wanted to install Oracle XE. Currently the available XE version is 18.4. My Laptop runs on Linux Mint 19.3 (Tricia). The Blog will describe the steps I had to follow (steps for Ubuntu would be similar). REMARK: The following steps were done just for fun and are not supported and not licensable from Oracle. If you follow them then you do it…

Read More
Clemens Bleile

A change in full table scan costs in 19c?

By | Database Administration & Monitoring, Oracle | No Comments

During tests in Oracle 19c I recently experienced this: [email protected]@orcl> select * from demo4 where m=103; [email protected]@orcl> select * from table(dbms_xplan.display_cursor); … ————————————————————————— | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | ————————————————————————— | 0 | SELECT STATEMENT | | | | 26439 (100)| | |* 1 | TABLE ACCESS FULL| DEMO4 | 1 | 10 | 26439 (14)| 00:00:02 | ————————————————————————— –> The costs of the full table…

Read More
Clemens Bleile

ARRAYSIZE or ROWPREFETCH in sqlplus?

By | Database Administration & Monitoring, Oracle | No Comments

ARRAYSIZE or ROWPREFETCH in sqlplus? What is the difference between the well known sqlplus-setting arraysize and the new sqlplus-12.2.-feature rowprefetch? In Blog https://blog.dbi-services.com/oracle-fasttrue-in-sqlplus-some-thoughts-about-rowprefetch/ I showed a case, which helps to reduce the logical IOs when using rowprefetch. Here the definition of arraysize and rowprefetch according the documentation: arraysize: SET System Variable Summary: Sets the number of rows, called a batch, that SQL*Plus will fetch from the database at one time. Valid values are 1 to…

Read More
Clemens Bleile

Oracle FAST=TRUE in sqlplus? Some thoughts about rowprefetch

By | Database Administration & Monitoring, Oracle | No Comments

During my time as a Consultant working on Tuning Tasks I had the feeling that many people think that there is an Oracle-parameter “FAST=TRUE” to speed up the performance and throughput of the database calls. Unfortunately such a parameter is not available, but since version 12cR2 Oracle provided the option “-F” or “-FAST” for sqlplus, which looks like a “FAST=TRUE”-setting. Here an excerpt from the documentation: The FAST option improves general performance. This command line…

Read More
Clemens Bleile

Elapsed time of Oracle Parallel Executions are not shown correctly in AWR

By | Database Administration & Monitoring, Oracle | 2 Comments

As the elapsed time (time it takes for a task from start to end, often called wall-clock time) per execution of parallel queries are not shown correctly in AWR-reports, I thought I setup a testcase to find a way to get an elapsed time closer to reality. REMARK: To use AWR (Automatic Workload Repository) and ASH (Active Session History) as described in this Blog you need to have the Oracle Diagnostics Pack licensed. I created…

Read More
Clemens Bleile

Creating archived redolog-files in group dba instead of oinstall

By | Database management, Oracle | No Comments

Since Oracle 11g files created by the database belong by default to the Linux group oinstall. Changing the default group after creating the central inventory is difficult. In this Blog I want to show how locally created archived redo can be in group dba instead of oinstall. One of my customers had the requirement to provide read-access on archived redo to an application for logmining. To ensure the application can access the archived redo, we…

Read More
Clemens Bleile

Oracle 19c

By | Database Administration & Monitoring, Oracle | No Comments

Oracle 19c has been released quite a while ago already and some customers already run it in Production. However, as it is the long term supported release, I thought I blog about some interesting information and features around 19c to encourage people to migrate to it. Download Oracle 19c: https://www.oracle.com/technetwork/database/enterprise-edition/downloads or https://edelivery.oracle.com (search e.g. for “Database Enterprise Edition”) Docker-Images: https://github.com/oracle/docker-images/tree/master/OracleDatabase Oracle provides different offerings for 19c: On-premises: – Oracle Database Standard Edition 2 (SE2) –…

Read More
Clemens Bleile

Direct NFS, ODM 4.0 in 12.2: archiver stuck situation after a shutdown abort and restart

By | Database Administration & Monitoring, Database management, Oracle | 3 Comments

A customer had an interesting case recently. Since Oracle 12.2. he got archiver stuck situations after a shutdown abort and restart. I reproduced the issue and it is caused by direct NFS since running ODM 4.0 (i.e. since 12.2.). The issue also reproduced on 18.5. When direct NFS is enabled then the archiver-process writes to a file with a preceding dot in its name. E.g. .arch_1_90_985274359.arc When the file has been fully copied from the…

Read More
Clemens Bleile

Restart a failed transportable tablespace import during a cross platform incremental backup migration

By | Database Administration & Monitoring, Database management, Oracle | No Comments

I’m currently working in a project to migrate a 11g-Datawarehouse-database from Solaris to Linux Intel (Endian-change). We do use the cross platform incremental backups method as described in My Oracle Support Note 1389592.1 for that. I.e. incremental backups are applied to database files and during the migration the recovered datafiles are attached to the target database via the transportable tablespace method. When testing the transportable tablespace metadata import I got an error for a table:…

Read More