Problem with utlrp?
I looked at how you could use utlrp to compile invalid objects in an earlier post: SQL> @utlrp...
View ArticleA Simple Test of V$SEGSTAT_NAME and V$SEGMENT_STATISTICS
This was tested on Oracle 11.2.0.2.7. V$SEGSTAT_NAME shows the names of various statistics which Oracle records. The SAMPLED column shows whether the figures are obtained by sampling or not: SQL> l...
View ArticleChallenge Your Colleagues (No 1)
To set up this challenge, you need an Oracle test database. I used one running on Oracle 11.2.0.2.7 but this works on other versions too. First you need to create a user as follows: SQL> create user...
View ArticleCONNECT_TIME
I had to limit a SQL*Plus session’s connection time today while I was setting up a new environment so I decided to document how I did it. The example below was run on an Oracle 11.2.0.2.7 database....
View ArticleOracle Enterprise Manager (Example 1)
I decided it was time I started looking at Oracle Enterprise Manager. Here is the performance tab for an Oracle 11.2.0.1.0 test database. It does not look very busy as most people havegone home. As...
View ArticleV$DB_OBJECT_CACHE
This happened on Oracle 11.1.0.6.0. A colleague was debugging a package in a test database and his debug session fell over. Subsequent attempts to compile the package timed out as shown below: SQL>...
View ArticleORA-04021
A colleague had another problem with a package compilation hanging in an Oracle 11.1.0.6.0 test database. I was able to reproduce it as follows: SQL> alter package srce.pk_pricing compile 2 /alter...
View ArticleV$RESERVED_WORDS
This was run on an Oracle 11.1 database. The v$reserved_words view lists Oracle's reserved words:SQL> desc v$reserved_words Name Null? Type --------------------------...
View ArticleV$SQL_BIND_CAPTURE
This simple example, tested on Oracle 11.2, shows how to use V$SQL_BIND_CAPTURE to see the value of bind variables used in a WHERE clause. First I created a table called TAB1 with 1 row of data:...
View ArticleDBMS_SESSION.SET_SQL_TRACE
This was tested on Oracle 11.1. In previous posts, I have looked at enabling tracing. You can start and stop a trace of your current session like this:SQL> alter session set sql_trace = true;...
View ArticleDBMS_STATS Causes ORA-00600 [15851]
I noticed this in an Oracle 11.2.0.1.0 database. DBMS_STATS failed with an ORA-00600 and the first argument was [15851]. On investigation, it seemed to have something to do with the fact that the table...
View ArticleORA-01466 (SET TRANSACTION READ ONLY - Part 1)
Going through some SQL*Plus course notes from 1990 (as you do) I came across the SET TRANSACTION READ ONLY statement and decided to try it out in an Oracle 11.2 database. It didn’t quite work as...
View ArticleORA-01453 (SET TRANSACTION READ ONLY - Part 2)
Continuing with my investigation of SET TRANSACTION READ ONLY on an Oracle 11.2 database, I noticed that it fails with an ORA-01453 if you try to run it from a session with pending transactions. Once...
View ArticleORA-01456 (SET TRANSACTION READ ONLY - Part 3)
This was tested on an Oracle 11.2 database. If you try to INSERT, UPDATE or DELETE rows in a table during a READ ONLY transaction, you get an ORA-01456: SQL> create table tab1 (col1 number) 2 /...
View ArticleWhat it Does (SET TRANSACTION READ ONLY - Part 4)
This was tested on Oracle 11.2. So far, I have not explained what SET TRANSACTION READ ONLY does. To illustrate this, I first need to show what happens normally, i.e. when you are not in a READ ONLY...
View ArticleORA-08176 (SET TRANSACTION READ ONLY - Part 5)
According to Jonathan Lewis, if you do a SET TRANSACTION READ ONLY, rebuild an index then use that rebuilt index in the READ ONLY session, you get an ORA-08176. I decided to check this out in an Oracle...
View ArticleORA-01555 (SET TRANSACTION READ ONLY - Part 6)
In What it Does (SET TRANSACTION READ ONLY – Part 4), I explained that if you are in a read only transaction, select statements return data as it was when you ran the set transaction read only...
View ArticleORA-02019
I had not seen this problem for a long time so, when it happened yesterday, it took me a while to see the cause. I therefore decided to record it for future reference. First I created a database link:...
View ArticleWhat Can You Do With GRANT ALL ON?
I saw somebody using the GRANT ALL ON command recently and decided to see what I could do with it in an Oracle 11.2.0.2.7 database. First I logged in as OPS$ORACLE: SQL> conn /Connected.SQL> show...
View ArticleLF_ROWS and DEL_LF_ROWS
This example was tested on Oracle 9.2.0.7. It shows how you can sometimes improve performance by rebuilding an index. I found a table: SQL> desc braid.b_old_sp_profile_image Name...
View Article