Infrastructure at your Service

Category Archives: Database management

William Sescu

Oracle 12c – Recreating a Controlfile in a Data Guard environment with noresetlogs

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

Sometimes you might run into situations where the controlfile does not represent the backups and archivelogs correctly, because of a mismatch of the control_file_record_keep_time and the RMAN retention. The controlfile has non circular and a circular records. Non circular are e.g. database information, redo threads, datafiles and so on. These non circular records don’t age out, however, they can be reused, e.g. when a tablespace is dropped. The circular records are e.g. the log history,…

 
Read More
William Sescu

Oracle 12c – How to correct the error: “RMAN-20005: target database name is ambiguous”

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

I do have a Data Guard environment, where I have configured the RMAN DB_UNIQUE_NAME persistent setting for my primary and the standby. With the RMAN DB_UNIQUE_NAME settings I am able to run reports my Oracle Data Guard environment from any database. I could e.g. list all archivelogs for SITE1 from SITE2 or the other ways around. Or I could show all persistent settings for SITE1 from SITE2 and of course the other way around. The…

 
Read More
William Sescu

Oracle 12c – Combining Flashback Drop and Flashback Query

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

If you think that Flashback Drop feature just brings back your table, then this is only half of the story. It does much more than that. Besides undropping the table, it also brings back your constraints, your indexes, your trigger, your grants and the statistics as well. The ugly part is, that the flashback drop brings back some strange object names e.g. your indexes and constraints with names like “BIN$…” or alike. Maybe something you…

 
Read More
William Sescu

Oracle 12c – Issues with the HEATMAP Segment even if the heat map feature is not used

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

When I don’t need I feature, I don’t turn it on, or do not use it because it reduces the possibility to run into issues. Most of the times this is true, however, during the preparation for an RMAN workshop, the RMAN list failure command showed me the following dictionary issue. RMAN> list failure; using target database control file instead of recovery catalog Database Role: PRIMARY List of Database Failures ========================= Failure ID Priority Status…

 
Read More
William Sescu

Oracle 12c – RMAN list failure does not show any failure even if there is one

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

Relying to much on the RMAN Data Recovery Advisor is not always the best idea. In a lot of situations,  it tells you the right things, however, sometimes it tells you not the optimal things, and sometimes, RMAN list failure does not show any failure at all, even if there is one. So … let’s simulate quickly a loss of a datafile during the normal runtime of the database. The result is a clear error…

 
Read More
William Sescu

Oracle – RMAN Backups to CIFS

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

Not to often, but sometimes you need to offload your RMAN backups and your DataPump exports to CIFS. You might run out of space on your NFS server, or you are a Windows shop who has only CIFS shares, and then you might need to put your RMAN backups to CIFS. One very important MOS Note regarding RMAN backups to CIFS is the following Is use of CIFS Protocol for RMAN backups supported? (Doc ID…

 
Read More
William Sescu

Oracle 12c – How to Prevent License Violation with Active Data Guard

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

There are some articles floating around how to prevent a license violation with Active Data Guard. Some of them related to an underscore parameter “_query_on_physical” and some of them related to a startup trigger. Both of them have advantages and disadvantages. E.g. regarding the “_query_on_physical” I can’t find any MOS Note about it, and I don’t know the side effects. Oracle gives us a hard time to disable features that we don’t want to be…

 
Read More
William Sescu

Oracle 12cR2 – RMAN cold backup with TAG’s

By | Database Administration & Monitoring, Database management | One Comment

I am planning to backup my 12R2 container database, because a huge application change is coming up, and I want to be sure that I have a good RMAN backup beforehand. For that particular DB, I want to do it with a cold backup in combination with RMAN tags. Unfortunately I don’t have any backups at the moment, so I start with a full backup with the TAG ‘DBI_BACKUP’ to be 100% that I restore…

 
Read More
William Sescu

Oracle 12cR2 – DataGuard and Backups to NFS

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

From the RMAN point of view, you have generally two possibilities to store your backups, on Disk or on Tape. In case of a single instance, it doesn’t really matter from the accessible or inaccessible point of view. However, in a DataGuard environment it makes a huge difference. Per default, backups to Tape are always accessible and backups to disk always inaccessible. But what do you do in case you backup to NFS, and you…

 
Read More
Natascha Karfich

vagrant up – get your Oracle infrastructure up an running

By | Database Administration & Monitoring, Database management, Operation systems | No Comments

By using Vagrant to manage your Virtual Machines and Ansible for configuration management and provisioning you can easily automate the setup of your whole test environment in a standardized way. If you have never heard about Ansible and Vagrant I try to give you an idea with the following very short  summary. There is a lot of good information available about Ansible and Vagrant. Please check the provided links at the end of this blog…

 
Read More