Alright, so when we need to recreate a database link for some reason and we do not happen to have the password handy, we’re usually stuck. However, sometimes there is a way to recover passwords for database links. Unfortunately, the method described below only works for the “old” password versions (<= 220.127.116.11)!
As we are migrating the last databases from Oracle 10gR2 to the latest 18.104.22.168 release, there are some errors that we stumbled upon along our way. For example, when we tried to upgrade one particular database, during the upgrade the following error was thrown:
SQL> SELECT TO_NUMBER('DATA_VAULT_OPTION_ON') FROM v$option 2 WHERE 3 value = 'TRUE' and parameter = 'Oracle Database Vault'; SELECT TO_NUMBER('DATA_VAULT_OPTION_ON') FROM v$option * ERROR at line 1: ORA-01722: invalid number
Ouch. That is something that you do not want to see during an upgrade! Needless to say, the upgrade won’t continue here, so how to fix this?
Something that always comes up when discussing Oracle versions is that I am not always sure which number is the Major Database Release and which is the Database Maintenance Release. In the Oracle documentation, the numbers are clearly described:
Oracle Release Number Format 22.214.171.124.0 ┬ ┬ ┬ ┬ ┬ │ │ │ │ └───── Platform-Specific Release Number │ │ │ └────────── Component-Specific Release Number │ │ └─────────────── Fusion Middleware Release Number │ └──────────────────── Database Maintenance Release Number └───────────────────────── Major Database Release Number
Whereas the different numbers mean the following:
Major Database Release Number
The first numeral is the most general identifier. It represents a major new version of the software that contains significant new functionality.
Database Maintenance Release Number
The second numeral represents a maintenance release level. Some new features may also be included.
Fusion Middleware Release Number
The third numeral reflects the release level of Oracle Fusion Middleware.
Component-Specific Release Number
The fourth numeral identifies a release level specific to a component. Different components can have different numbers in this position depending upon, for example, component patch sets or interim releases.
Platform-Specific Release Number
The fifth numeral identifies a platform-specific release. Usually this is a patch set. When different platforms require the equivalent patch set, this numeral will be the same across the affected platforms.
On a few test databases, test managers often need to preserve certain states in the database. This is why we use daily datapump scripts to create exports for archival.
It is important to note that such scripts are never a replacement for a proper RMAN backup, but an easy way to preserve multiple states of a database and reuse data where applicable.
This batch file uses the expdp tool provided by Oracle and the 7-zip archiver to compress the exports for archival. The export tool itself creates a full export of the whole database (
full=y). Also, the
flashback_time parameter is specified to get a consistent export.
After upgrading a database from 10.2.0.1 to 10.2.0.5, I was unable to start the Oracle Enterprise Manager. Whenever I tried to do so, the log showed that it failed to start Database Control. Even when I deconfigured the Enterprise Manager, deleted the repository and started from scratch, I still ran into the same problem. In this post, I will describe the symptoms I encountered and also provide a solution.