Quantcast
Channel: Andrew's Oracle Blog
Browsing all 330 articles
Browse latest View live

Problem with utlrp?

I looked at how you could use utlrp to compile invalid objects in an earlier post: SQL> @utlrp...

View Article


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


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

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

Image may be NSFW.
Clik here to view.

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


V$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 Article

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

V$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 Article


V$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 Article


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

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

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

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


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

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


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

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


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

Image may be NSFW.
Clik here to view.

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

LF_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
Browsing all 330 articles
Browse latest View live