In Oracle 10g you can run the following command to crosscheck and expire any expired archive logs:
RMAN> crosscheck archivelog all;
RMAN> delete expired archivelog all;
However in Oracle 8 and 9 you need to do the following
Example for Oracle 8 use:
RMAN> Change Archivelog All Validate;
Example for Oracle 8i use:
RMAN> change Archivelog All Crosscheck;
Example for Oracle 9i:
RMAN> crosscheck archivelog all;
Run the “catexp.sql” as SYS. The file is located in $ORACLE_HOME/rdbms/admin.
SQL> @?/rdbms/admin/catexp.sql
SQL> sp_dropserver 'oldservername';
SQL> sp_addserver 'newservername';
don’t run in same batch.
the two statements must be executed separately.
via sp_addserver Transact-SQL.

Moving a database to a new oracle home, owned by a different user and running a newer version.
NOTE : This is how is worked in my environment. It might not work the same in your environment. This is meant as a guide only.
Read more…
Some files that you get from Oracle download come in cpio format.
Here’s what to do with them.
First unzip the files:
gunzip lnx_920_disk1.cpio.gz
gunzip lnx_920_disk2.cpio.gz
gunzip lnx_920_disk3.cpio.gz
Next unpack the contents of the files:
cpio -idmv < lnx_920_disk1.cpio
cpio -idmv < lnx_920_disk2.cpio
cpio -idmv < lnx_920_disk3.cpio
Possible Cause : root.sh not run after the EM 10G installation.
Fix:
Check the permissions and ownership of the nmo and nmb executable in the $
AGENT_OH/bin, where the management agent has been installed:
$ ls -al nmo
$ ls -al nmb
These should be of the form :
-rwsr-s--- 1 root dba 22465 Apr 13 17:53 nmo
-rwsr-s--- 1 root dba 18055 Apr 13 17:53 nmb
Every time I have to setup users in MySQL I seem to have problems.
I was setting up a system to do some WordPress testing and installed MySQL OK, but ran into problems with the users and permissions. Again.
So I had to search the net, again, and find out what I was doing wrong, again.
Maybe I’m just used to the way oracle does it, my MySQL does it in a strange way, why is it so hard ?
Read more…

by numstead
One of the jobs I do the most as a DBA is added space to peoples schemas. It’s not a big thing, just something I have to monitor and watch out for. Users don’t like it when they can’t save their data into the database.
Below is a script that simplifies the main tasks required to do this.
Read more…
Photo by Cindy_FL
I was trying to setup an instance of Oracle 10.2.0.3 a while back and was running into a strange problem.
I could get 10.2.0.1 to install and run OK, and the upgrade to 10.2.0.3 seemed to work OK. But then when I tried to create a database it would fail and give me a “Inappropriate ioctl for device” error message. And inappropriate what for who ?
Read more…