Quantcast
Channel: Andrew's Oracle Blog
Browsing latest articles
Browse All 330 View Live

Datapump Does not Export Permissions on Objects Owned by SYS

This post was sponsored by Technimove I was reminded recently that Datapump does not export permissions on objects owned by SYS so I decided to write a post about it for my blog. It was tested on an...

View Article


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 Article


PASSWORD_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 Article

LOCKED 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 Article

ALTER 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 Article


Password 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 Article

ORA-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 Article

Password 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 Article


ORA-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 Article


Correct 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 Article

Oracle 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 Article

How 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 Article

Image may be NSFW.
Clik here to view.

ORA-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 Article


ORA-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 Article

How 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 Article


ORA-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 Article

ORA-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


How to Calculate pi

You can use the following series to calculate pi:4/1 - 4/3 + 4/5 - 4/7 + 4/9 - 4/11 + ...I decided to try this out using PL/SQL. The example I created is shown below. It works OK but the series...

View Article

Online Rebuild of Bitmap Indexes

I was reading an old Oracle 9 performance tuning book (as you do) and it said that you could not do online rebuilds of bitmap indexes.I did not have access to an Oracle 9 database so I tried it out in...

View Article

ORA-14306 and ORA-14400

Oracle apparently introduced list partitioning in Oracle 9. I decided to try it out in an Oracle 11 database.In this simple example I created a table to store the names of towns in Buckinghamshire,...

View Article

Image may be NSFW.
Clik here to view.

How Auditors Might Be Cracking Your Oracle Passwords

I have often wondered how auditors crack Oracle passwords, particularly if the user concerned has a profile which locks the account after a few unsuccessful login attempts. I just realised today how...

View Article


Deferred Segment Creation not Supported for Partitioned Tables in Oracle...

This post was sponsored by IMPERVAI tried to create a partitioned table with deferred segment creation in an Oracle 11.2.0.1 database.First I tried to do so explicitly but this did not work:SQL>...

View Article


How to Automatically Trace a User's Sessions

This post was sponsored by arcserve It shows how you can use a logon trigger to automatically trace all sessions for a given user. This can be useful where an application is launched from a desktop but...

View Article

Minor Problem with Resumable Session

Oracle started allowing sessions with space issues to hang rather than fail in version 9. I had always assumed this only worked if a tablespace ran out of space. However, I read recently that it also...

View Article

Oracle to Postgres Migration Issue with Commit

If you have some PL/SQL, Oracle allows you to include commit statements between a begin and end. Assuming this is appropriate for your application, it can produce two benefits:(1) If the code runs for...

View Article

Browsing latest articles
Browse All 330 View Live