Read Only Tables
Oracle 11 introduced a new ALTER TABLE syntax, which allows you to make a table READ ONLY, so I decided to try it out. First I created a table:SQL> create table table_list 2 as select table_name...
View ArticleDBMS_MONITOR.SESSION_TRACE_ENABLE
This happened on Oracle 11.2. I had a problem with a 3rd party application hosted in the UK with users in another country. The front-end application was failing regularly with ORA-01426. I needed to...
View ArticleInteger Arithmetic
I was looking at the problem of the 3rd party application which is generating ORA-01426 errors when I found the following on My Oracle Support. According to Oracle, this issue affects version 11.2.0.4...
View ArticleMDSYS.SDO_COORD_AXES
This was tested on Oracle 11.2. If you need to look at the ORDER column in the above-mentioned table, there only seems to be one way to do it i.e. in upper case and surrounded by double quotes as shown...
View Article1 + NULL = NULL
If you try to add a null to a number, the result is a null. You can see what I mean in the example below, which I tested in Oracle 10: SQL> select 1 from dual 2 / 1---------- 1...
View ArticleDBA_FEATURE_USAGE_STATISTICS
Oracle introduced this view in version 10. It looks like this in version 11: SQL> desc dba_feature_usage_statistics Name Null? Type -------------------------- --------...
View Articlekgxgncin: CLSS init failed with status 3
I had a problem with an Oracle 11.1.0.6.0 database producing trace files every few minutes. Here is one of them: Trace file...
View ArticleA Simple Example with Indexes
I did this worked example on Oracle 11.2. First I created a table:SQL> create table t1 2 as select * from dba_segments 3 / Table created. SQL> …then I made sure it contained enough data:...
View ArticleORA-01460 on PL/SQL Developer
An Oracle 9 database had the following character set: SQL> l 1 select sys_context('userenv','LANGUAGE') 2* from dualSQL> /...
View ArticleFIXED_DATE and LAST_ANALYZED
I tested this on Oracle 11.2.0.1. You need to be careful when looking at the LAST_ANALYZED column in USER_TABLES. I created a table and removed the FIXED_DATE parameter from the database: SQL>...
View ArticleHow to See When Your Database Was Opened
This was tested on Oracle 11.2: SQL> l 1* select startup_time from v$instanceSQL> / STARTUP_TIME------------24-MAY-12 SQL>
View ArticleORA-01123
I was reading through an old book recently and it said that you could not put a tablespace into hot backup mode if the database was in NOARCHIVELOG mode. This seemed reasonable to me but I wondered...
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 ArticleOPTIMIZER_MODE = FIRST_ROWS_N
I have known about the first_rows optimizer mode for some time. This tells Oracle to use an execution path which will return the first few rows as quickly as possible. However, I recently read about...
View ArticleBug 5497611
I used Oracle Enterprise Manager to look at the execution plan for some SQL in an Oracle 10.2.0.3 database. (The SQL shown is just an example done later for the purposes of this blog post. As usual,...
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 ArticleWorked Examples with the SET ROLE Command
Before I start, I wonder if anybody can help me. Some time ago, I saw several adverts on the Internet similar to the one below:I am looking for an Oracle DBA (French speaking) - Hampshire (South Coast...
View ArticleBug 8477973
I ran the following query on an Oracle 11.1.0.6 database but it failed with an ORA-02020: SQL> SELECT ppc.sttlmnt_dt day_date 2 FROM vrm_d18_ppc ppc, 3 meter_nhh mtr, 4...
View ArticleHow to See the Height of an Index
This example shows where to find the height of an index. I tested it on Oracle 11.2. First I deleted the index's statistics:SQL> exec dbms_stats.delete_index_stats ->...
View ArticleORA-02205
I found some notes from a course I took in 1990. They said that it was only possible to GRANT ALTER or GRANT SELECT on a sequence. This seemed reasonable to me but I wanted to check if it was still the...
View Article