How Many Profiles Can an Oracle Database Have?
When you create a database, Oracle gives you one profile, called DEFAULT. You can then create more profiles if you need them. I wondered if there might be a limit to the number of profiles you could...
View ArticlePASSWORD_REUSE_MAX and PASSWORD_REUSE_TIME
I tested this on Oracle 11.2. I created a profile called FOR_ANDREW with PASSWORD_REUSE_MAX set to 1. This meant that I could not reuse a password until I had used one other password first: SQL>...
View ArticleSQL Developer Stops Running in Oracle 9
I created the following simple SQL script:spool test_outputprompt Creating proc1:create or replace procedure proc1 isbeginnull;end;/prompt Creating proc2:create or replace procedure proc2...
View ArticleLOCKED and LOCKED(TIMED)
This example, which was tested on Oracle 11.2, shows the difference between a user with an ACCOUNT_STATUS of LOCKED and one with an ACCOUNT_STATUS of LOCKED(TIMED). First I created a profile with a...
View ArticleALTER USER Hangs on row cache lock
I created the following UNIX shell script called loop1.ksh:Oracle 11.1 > cat loop1.ksh#!/bin/bashexport ORACLE_SID=PQEDPT1export ORAENV_ASK=NO. oraenvsqlplus / as sysdba << eofgrant create...
View ArticlePassword Expire
If a user forgets his password, he may ask you to reset it for him. You will then know his new password, which you may see as a security issue. By including the password expire clause in the alter user...
View ArticleORA-28405
This post is an update to an earlier one, which I have now deleted. I tested the first part of it in an Oracle 11.1.0.6 database. First I created a role which was identified by a password: SQL> conn...
View ArticlePassword Last Change Time
I read that the PTIME column in the SYS.USER$ table shows when a user’s password was last changed so I decided to try it out in an Oracle 10 database:SQL> SELECT VERSION FROM...
View ArticleORA-28010
I wondered what would happen if you tried to do a password expire on an externally identified user so I tried it out on an Oracle 11.2 database. As you might expect, it failed: SQL> alter user...
View ArticleA Different Cause for enq: TM - contention
Doc ID 1905174.1 on My Oracle Support looks at how to resolve this wait event.It says:If contention is occurring, then the most common reason is missing Foreign Key (FK) index on the FK constraint...
View ArticleCorrect Password Gives ORA-01017
This post replicates a real-life situation where Oracle returned an ORA-01017 when the correct password was used. First I created a user in an Oracle 11 database and checked that I could connect to...
View ArticleOracle DBA Interview Question
This Oracle DBA interview question is based on some work I did recently. I will leave you to decide whether it is too easy, too difficult or just right for your candidate.Question:I created two Oracle...
View ArticleRMAN-04022
I created an RMAN script to copy an Oracle 11.2.0.1 target database called BUSPROD into an auxiliary database called BUSSOUT2. I left it running overnight but when I looked at the log the following...
View ArticleHow to Skip N Rows in an Oracle SELECT Statement
I saw this question on a SQL Server blog. Apparently it was asked at an interview. Here is the suggested answer:SELECT *FROM [AdventureWorks2014].[Person].[Address]ORDER BY AddressIDOFFSET 100 ROWS; I...
View ArticleORA-02391
I tested this on an Oracle 11.1 database. Oracle profiles control how certain database resources are allocated to a user session. They also define some security rules. When you create a user, it is...
View ArticleTNS-01189
I saw a couple of messages like this in an Oracle listener log recently:TNS-01189: The listener could not authenticate the user I knew that somebody in another country was carrying out internal...
View ArticleORA-16005
I did a shutdown abort in an Oracle 19c database:C:\Users\Admin>sqlplus / as sysdbaSQL*Plus: Release 19.0.0.0.0 - Production on Sun Feb 9 20:52:49 2020Version 19.3.0.0.0Copyright (c) 1982, 2019,...
View ArticleHow to Create a 3 by 3 Puzzle Using Oracle Database Express Edition
In 2012 I wrote a C program to create sudoku puzzles. I took a break from writing about Oracle to set up a blog for these puzzles. You can see it here. I also created a group on Facebook called Sudoku...
View ArticleORA-12954
I went to Techfest 2019 in Brighton. While I was there I saw a presentation by somebody from Pythian. He said that Oracle Database Express Edition is now very similar to Enterprise Edition, it just has...
View ArticleORA-00439
I created a tablespace in an Oracle 12 Enterprise Edition database.I should have used ASM but I put its datafile in ordinary disk space by mistake:SQL> col banner format a47 SQL> l 1 select...
View Article