SQL Developer Performance Issue
This happened when I was using SQL Developer in an Oracle 11.1.0.6 database. I clicked on the + sign next to Tables (Filtered) in the top left hand corner of the screen below (as usual, click on the...
View ArticleRaw Columns
#yiv9010210031 _filtered #yiv9010210031 { FONT-FAMILY: "Cambria Math"; panose-1: 2 4 5 3 5 4 6 3 2 4 } _filtered #yiv9010210031 { FONT-FAMILY: Calibri; panose-1: 2 15 5 2 2 2 4 3 2 4 } #yiv9010210031...
View ArticleOracle export and deferred segment creation
A colleague told me about an issue when using export on an Oracle 11.2.0.1 database. He said that if the database contains tables created with segment creation deferred, those tables will not be...
View ArticleRecyclebin does not Keep Tables from the SYSTEM Tablespace
Oracle introduced the recyclebin in version 10. This post shows that tables in the SYSTEM tablespace do not go into the recyclebin when they are dropped. It was tested on Oracle 11.2.0.2.7. First I...
View ArticleDROP TABLE ... PURGE
I tested this on Oracle 11.2.0.2.7. If the recyclebin is in use:SQL> conn / as sysdbaConnected.SQL> select value from v$parameter 2 where name = 'recyclebin' 3 / VALUE----------on SQL> ......
View ArticleReads and Writes Figures from V$FILESTAT
You can get the number of reads and writes your database has done on each datafile since the instance was started from V$FILESTAT. I have looked at the number of writes (PHYWRTS) before but I do not...
View ArticleORA-01623, ORA-01624 and ORA-01567
This was tested on an Oracle 11.2.0.2.7 database. The output below shows that this database had 3 online redo log groups. You can only drop a redo log group if its STATUS is INACTIVE so when I tried to...
View ArticleHow to Rename an Oracle Tablespace
In Oracle 9 you got an error if you tried to rename a tablespace: SQL> l 1* alter tablespace users rename to andrewSQL> /alter tablespace users rename to andrew...
View ArticleAnother Possible Cause of ORA-12537
I have changed the names of the database and server in this example.I had a new Oracle 11.1 database, which I was trying to access remotely using an Oracle 11.2 listener: Solaris > sqlplus /@XXXXXX...
View ArticleHow to Allow a User to Refresh Another User's Materialized View
I needed to find out how to allow a user to refresh another user’s materialized view. Once I had done this I decided to document it for future reference with a worked example, which I ran on an Oracle...
View ArticleORA-04098
I noticed this recently on an Oracle 11.1.0.6.0 database. If you create a table, add a trigger then add a column, it all works: SQL> create table tab1 (col1 varchar2(1)) 2 / Table created. SQL>...
View ArticleORA-12899
If you try to update a column with a value which is too big, you get an ORA-12899. If this happens in a PL/SQL block, all the updates done in that block will be rolled back, not just the one which...
View ArticleORA-39083 and ORA-00439
I created a table with deferred segment creation in an Oracle 11.2.0.1.0 Enterprise Edition database: SQL> create table andrew.tab1 (col1 number) 2 segment creation deferred; Table created....
View ArticleORA-39171
I ran Data Pump for the first time in May this year. It displayed the following errors:ORA-39171: Job is experiencing a resumable wait.ORA-01691: unable to extend lob segment...
View ArticleSPOOL...APPEND
According to the book I found this in, it was new in Oracle 10 but I tested it on Oracle 11.2.0.2.7. You can SPOOL output to a file like this… SQL> spool spool_testSQL> select 'Andrew' Andrew...
View ArticleORA-00960
This was tested on Oracle 11. I tried to sort on a column which appeared more than once in the SELECT list, and got an ORA-00960: SQL> select username, username from dba_users 2 order by username...
View ArticleConstraints (Part 1) - ORA-01400 and ORA-02290
These examples were tested on an Oracle 9 database.Constraints are used to validate table data. You can add a constraint when you create a table:SQL> CREATE TABLE MY_TABLE 2 (MY_COLUMN NUMBER NOT...
View ArticleConstraints (Part 2) - ORA-00001 and ORA-02431
Go to part 1 The example below was checked on Oracle 9, 10 and 11. First a table was created:SQL> create table my_table 2 (my_column number) 3 /Table created.SQL>The number of constraints in...
View ArticleConstraints (Part 3) - More About Unique Constraints
Go to part 2This example, tested on an Oracle 11 database, shows a different way to set up a unique constraint. As before, a table is created:SQL> create table my_table 2 (my_column number) 3...
View ArticleConstraints (Part 4) - ORA-02299
Go to part 3 This was tested on an Oracle 11.2 database. As I have already said, you can add a constraint when a table is created or you can modify an existing table as shown below: SQL> create...
View Article