oracleのユーザー再作成

spool  .\hoge.log;
set echo off;

/************************************************************************/
/*            ユーザー削除処理                                          */
/************************************************************************/
drop user mydb cascade;

/************************************************************************/
/*            ユーザー作成処理                                          */
/************************************************************************/
grant dba to mydb identified by mydb;

/************************************************************************/
/*             テーブルスペース作成処理                                 */
/************************************************************************/
/* デフォルト割当て */
alter user mydb 
 default   tablespace mydb
 temporary tablespace mydbtmp;

/************************************************************************/
/* positiveユーザー権限付与                                             */
/************************************************************************/
grant create table to mydb;
grant create view  to mydb;
grant create sequence to mydb;
grant alter rollback segment to mydb;

commit;
set echo off;
spool off;
disconnect;
exit;