--- moodle_19_stable/lib/adminlib.php	2008-05-06 14:29:15.000000000 +1200
+++ moodle_19_stable-ora/lib/adminlib.php	2008-05-06 15:40:07.000000000 +1200
@@ -4490,7 +4539,20 @@
 
         if ($columns = $db->MetaColumns($table, false)) {
             foreach ($columns as $column => $data) {
-                if (in_array($data->type, array('text','mediumtext','longtext','varchar'))) {  // Text stuff only
+                $inarray = false;
+                switch ($CFG->dbfamily) {
+                    case 'oracle':
+                        if (in_array($data->type, array('CLOB'), array('VARCHAR2'))) {  // Text stuff only
+                            $inarray = true;
+                        }
+                    break;
+                    default:
+                        if (in_array($data->type, array('text','mediumtext','longtext','varchar'))) {  // Text stuff only
+                            $inarray = true;
+                        }
+                    break;
+                }
+                if ($inarray) {
                     $db->debug = true;
                     execute_sql("UPDATE $table SET $column = REPLACE($column, '$search', '$replace');");
                     $db->debug = false;
