I was trying to drop a tablespace which I know there were no segments in it. A simple query from dba_segments returns no rows which means there are no segments allocated in this tablespace. But strangely I got this:
SQL> drop tablespace psapsr3old including contents and datafiles;
drop tablespace psapsr3old including contents and datafiles
ERROR at line 1:
ORA-14404: partitioned table contains partitions in a different tablespace
How come I cannot drop a tablespace with no segments in it?
Enter deferred segment creation. Things were simpler on 9i or 10g. The database I get this error on is an (more...)
Direct NFS Clonedb is a feature in 11.2 that you can use to clone your databases. Kevin Closson explains what it is in this post
. In his demo videos he is using a perl script to automate the process of generating the necessary scripts. That script is not publicly available as of today but the MOS note 1210656.1 explains how to do the clone manually without the perl script.
Tim Hall also has a step by step guide on how to do the cloning in this post
. He also uses the perl script mentioned above.
We have been (more...)
When you enable the database smart flash cache and start using it you will see new wait events related to that. These events help to find out if the problem is about the flash cache or not.
The ones I faced till now are "db flash cache single block physical read", "db flash cache multiblock physical read" and "write complete waits: flash cache". These are from a 184.108.40.206 database using the F5100 flash array
as the database smart flash cache.
db flash cache single block physical read
"db flash cache single block physical read" is the flash (more...)
about using the database flash cache feature recommends increasing db_cache_size or sga_target or memory_target, whichever you are using, to account for the metadata for the blocks kept in the flash cache. This is because for each block in the flash cache, some metadata is kept in the buffer cache. The recommendation is to add 100 bytes for a single instance database and 200 bytes for RAC multiplied by the number of blocks that can fit in the flash cache. So you need to calculate how many blocks the flash cache can keep (by dividing db_flash_cache_size in bytes with (more...)
We have been testing the F5100 flash array
in our humble lab (borrowed that term from a colleague, he knows who he is). There are two ways to use it, one is to place your datafiles on it, the other is to use it as the database flash cache.
The database flash cache
feature came with 11.2 and is a way to extend the SGA. It is not the same thing as the flash cache in Exadata, read Kevin Closson's this post
to find out what the difference is. F5100 is one of the products you can use as (more...)
There is a common misunderstanding among DBAs about the column ISDEFAULT in the view v$parameter. Some think that when this column is TRUE it means the current value of the parameter is the default value. This leads to wrong conclusions and sometimes wrong settings for even production environments.
says this about this column:
"Indicates whether the parameter is set to the default value (
TRUE) or the parameter value was specified in the parameter file (
This explanation is not a clear one and different people may understand different things from it.
This column is (more...)
In general usage, everyone configures tns listeners on the public interfaces of RAC nodes so that clients can connect through the public network. Conventionally the private network interfaces are used for the interconnect traffic so most people do not open them to the application because the application traffic may interfere with the interconnect messaging.
But what if we have a high-speed and high-bandwidth interconnect network that some applications can also use for fast communication to the nodes? Can we create tns listeners on the private interfaces, if we can how? This high-speed interconnect network is especially true for Exadata where (more...)
If you are trying to patch an existing 220.127.116.11 installation on a non-RAC GI (also called single instance HA) system be aware that some steps will be different from the patch readme or the documentation.
Here is what I experienced.
The documentation for Grid Infrastructure 11.2
states that if you want to upgrade from 18.104.22.168 to 22.214.171.124 you need to apply some patches first.
"To upgrade existing 126.96.36.199 Oracle Grid Infrastructure installations to Oracle Grid Infrastructure 188.8.131.52, you must first do at least one (more...)
In my previous post
I had five lines added to /etc/yum.conf.
The ones except gpgkey are self-explanatory. The parameter gpgkey is used to point to a file that contains the public key for the packages you install so that yum can verify the package's authenticity if needed. The file I use is the key file that contains the public key to verify the oracle-validated rpm.
oracle-validated rpm is used to install the necessary packages for Oracle installations, it also updates the kernel parameters and creates a default oracle user. Using it is an easy (more...)
If you are using Oracle Enterprise Linux (OEL) 5, the installation media comes with a yum repository on it. The repository is in the directory /media/Enterprise Linux dvd 20090127/Server/repodata for OEL 5.3 (the location may change).
It is possible to use that repository when installing new packages or components locally without accessing a remote repository or without having the need to copy the rpms to a local directory. If you did a base installation the yum package is already installed, if not you need to install it first. After yum is in place edit /etc/yum.conf to insert lines related (more...)
When trying to start a new vm in Oracle VM VirtualBox 3.2.10 it hot hung at progress 0%. There is no way to cancel the startup without killing the process from the host OS.
The first thing to look at is the VBox.log file which resides under C:\Documents and Settings\\.VirtualBox\Machines\OELTest\Logs in Windows XP. Or you can access the log using the menu like below.
I had these lines at the bottom of the log file.
00:00:04.228 AIOMgr: Endpoint for file 'E:\vm\OELTest\OELTest_boot.vdi' (flags 000c0723) created successfully
00:00:04.228 AIOMgr: I/O manager 0x3f3f898 encountered a critical (more...)
There is a note in Metalink
that explains that on Windows having space characters in your ORACLE_HOME variable, the patch location or JDK location causes an error when running opatch. Yesterday I saw a strange problem that is similar to the above case.
If your opatch directory contains space characters you get a strange error. Even if the above conditions were not present we got an error like this:C:\Documents and Settings\test\Desktop\OPatch>opatch lsinventoryException in thread "main" java.lang.NoClassDefFoundError: andOPatch failed with error code = 1
Metalink returns no results for this error. This error is caused by (more...)
Yesterday I attended Kevin Closson
's Exadata technical deep dive webcast series part 4. It is now available to download here
. In there he talks about DBFS which is a filesystem on top of the Oracle database which can store normal files like text files. DBFS is provided with Exadata and is used to store staging files for the ETL/ELT process. This looks very promising, he sites several tests he conducted and gives performance numbers too. Watch the webcast if you haven't yet.
11G brought interval partitioning
which is a new partitioning method to ease the maintenance burden of adding new partitions manually. The interval partition clause
in the create table statement has an option to list tablespace names to be used for interval partitioning. The documentation
states that the tablespaces in the list you provide are used in a round-robin manner for new partitions:Interval partitions are created in the provided list of tablespaces in a round-robin manner.
This does not mean that any newly created partition will reside in the tablespace which is next on the list. The tablespaces may be (more...)
I was trying to find out why a query with the RULE hint produces different plans. I got stuck so I posted the problem to the OTN database forum
and Randolf Geist provided a good answer
and starting point for it. A second eye on the problem can remove the mind blockage and clear your way.
When changing plsql code in a production system the dependencies between objects can cause some programs to be invalidated. Making sure all programs are valid before opening the system to users is very important for application availability. Oracle automatically compiles invalid programs on their first execution, but a successfull compilation may not be possible because the error may need code correction or the compilation may cause library cache locks when applications are running.
Dependencies between plsql programs residing in the same database are easy to handle. When you compile a program the programs dependent on that one are invalidated right (more...)
In his famous index internals presentation Richard Foote
mentions a bug in 9i about index block splits when rows are inserted in the order of the index columns. Depending on when you commit your inserts the index size changes dramatically.
While I was trying to find out why a 3-column primary key index takes more space than its table I recalled that bug and it turned out that was the reason of the space issue. The related bug is 3196414 and it is fixed in 10G.
Here is the test case Richard presents in his paper.
SQL> create table t(id (more...)
I am regular user of OTN
and its forums
. Last week I was trying to login to OTN from a public computer and I got the "invalid login" error everytime I tried. I was sure I was typing my password correct but I could not get in anyway. So, I tried to get my password reset and sent to my e-mail address. Then I remembered that the e-mail address I used to register for OTN was from my previous employer meaning I did not have access to it anymore. As OTN does not allow changing the registration e-mail address I (more...)
Complete refresh of a single materialized view used to do a truncate and insert on the mview table until 10G. Starting with 10G the refresh does a delete and insert on the mview table. This guarantees that the table is never empty in case of an error, the refresh process became an atomic operation.
There is another difference between 9.2 and 10G in the refresh process, which I have realized when trying to find out why a DDL trigger prevented a refresh operation. In 9.2 the refresh process runs an ALTER SUMMARY statement against the mview while in (more...)
Last week I read a post in Andy C's blog
about the service called Disqus
. It is a service to keep track of comments in blogs. Later he made another post about it
I have been looking for a solution to keep track of blog comments, both mine and other people's. Not all blogs have the option to subscribe to the comments, when you comment on a post you need to check later if someone commented further. I want a central repository where I can see all my comments on a post, all comments made by others on the same (more...)