ORA-28221
This post shows that if a profile has a password verify function and you assign it to a user who does not have the ALTER USER privilege, that user will not be able to change his or her password without...
View ArticleALTER DATABASE BEGIN BACKUP and ALTER DATABASE END BACKUP
I logged into an Oracle 12.1 database, checked it was in ARCHIVELOG mode then ran the ALTER DATABASE BEGIN BACKUP command. This told Oracle I was about to do a hot backup:C:\Users\Andrew>sqlplus /...
View ArticleRe-Creating Datafiles When Backups Are Unavailable
I found an old copy of the Oracle 9i User-Managed Backup and Recovery Guide and read the following: If a datafile is damaged and no backup of the file is available, then you can still recover the...
View ArticleRollback to Savepoint Does Not Release Locks
I read that rolling back to a savepoint releases locks. This sounded reasonable so I decided to check it out in an Oracle 11.2 database. I logged in as user John (in blue) and noted my SID for future...
View ArticleCase Sensitive Passwords in Oracle 11
In version 11, Oracle passwords became case sensitive. You can see what I mean in the example below:SQL> conn / as sysdbaConnected.SQL> alter user system identified by manager 2 / User altered....
View ArticleA Simple Example With V$BACKUP
I tested this in an Oracle 12.1 database. The V$BACKUP view tells you if a datafile is in hot backup mode. I started off with none of the datafiles in hot backup mode so they were all shown as NOT...
View ArticleRECOVER DATABASE TEST
I logged into an Oracle 12.1 database and ran the ALTER DATABASE BEGIN BACKUP command. This told Oracle I was about to start a hot backup:C:\Users\Administrator>sqlplus / as sysdba SQL*Plus: Release...
View ArticleRecursion in Oracle 12
Oracle 12 has a new parameter called PGA_AGGREGATE_LIMIT:SQL> conn system/managerConnected.SQL> l 1 select value from v$parameter 2* where name = 'pga_aggregate_limit'SQL> /...
View ArticleOne Cause of ORA-01092
I saw the following error in a job which had just recreated the control file of a test database after cloning:SQL> 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18...
View ArticleSUCCESS and FAILURE Columns in DBA_STMT_AUDIT_OPTS
I tested this in Oracle 10.2. DBA_STMT_AUDIT_OPTS records auditing options which are currently in effect. If no auditing has been requested, it will be empty: SQL> select user_name, audit_option,...
View ArticleA Difference Between SQL*Plus and SQL Developer
A third-party supplier delivered some SQL today but it did not work in SQL*Plus. We asked the supplier about this and it turned that the code had been tested in SQL Developer. The reason for the...
View ArticleORA-01114 Not Recorded Correctly in Alert Log
A user reported an ORA-01114 and an ORA-27069 in a 3rd party application running against an Oracle 11.1 database:ERROR 28/01/2015 10:32:37 INF2 LKPDP_10:READER_1_1 RR_4035 SQL Error [ORA-01114: IO...
View ArticleORA-00600: internal error code, arguments: [kzdlk_zt2 err]
This example is based on an error which a colleague showed me recently. I logged into an Oracle 11.1 database, reset its SYSTEM password and checked the encrypted value: Oracle11 > sqlplus / as...
View Articleenq: TM - contention
This example was tested in an Oracle 11.1 database. I created a DEPT (or parent) table, added a couple of departments then made it available to other database users:SQL> conn...
View Articlestatement suspended, wait error to be cleared
This happened in an Oracle 11.2.0.4 database. A colleague complained of poor performance. I looked to see what his session was waiting for:SQL> l 1 select event 2 from v$session_wait 3 where...
View ArticleFULL and NO_INDEX Hints
I was reading about hints and decided to try out a couple on an Oracle 11.2 database. First I created a table, added some data and created an index:SQL> create table t1 (c1 varchar2(30)) 2 / Table...
View ArticleCOMMIT Causes ORA-03113
A colleague had a problem with an Oracle 11.2.0.1 database today. It affected the following table:SQL> desc bepe.sd_national_holiday Name Null? Type...
View ArticleDefault Size of a CHAR Column
If you do not specify a size for a CHAR column, the default is 1. You can see what I mean in the example below, which I tested on Oracle 11.2:SQL> create table t1 2 (c1 char, 3 c2 char(1)) 4...
View ArticleORA-00604 and ORA-00001
This happened in an Oracle 11.1.0.6.0 database: A developer reported problems when running a CREATE OR REPLACE TYPE statement in a development database. It was failing with an ORA-00604 followed by an...
View ArticleOverloading
I was looking at a 3rd party application running in an Oracle 11.2 database. I listed the source code of one of the packages and noticed that it contained 5 versions of the same procedure. I have never...
View Article