这是我所使用的语句:
SQL> select 'drop user'||' '||username||' cascade;' from dba_users where user_id<>73 and user_id<>0 and user_id<>5 and user_id<>30 and user_id<>71 and user_id<>9 and user_id<>74 and user_id<>57 and user_id<>53 and user_id<>42 and user_id<>32 and user_id<>31 and user_id<>77 and user_id<>79 and user_id<>54 and user_id<>43 and user_id<>46 and user_id<>45 and user_id<>55 and user_id<>78 and user_id<>56 and user_id<>60 and user_id<>83 and user_id<>21 and user_id<>2147483638 and user_id<>89 and user_id<>88 and user_id<>64 and user_id<>14 and user_id<>75 and user_id<>69 and user_id<>66;
自带用户参考数据库版本