Fixing schema definition query for Oracle