home *** CD-ROM | disk | FTP | other *** search
- ECHO OFF
- ECHO
- rem
- rem Usage: ADDUSER DBANAME DBAPASSWORD
- rem
- IF NOT .%1 == . GOTO ADDUSER
- ECHO Usage: ADDUSER DBA_Name DBA_Password
- GOTO EXIT
- :ADDUSER
- ECHO SET SCAN ON > ADDUSER.SQL
- ECHO SET VER OFF >> ADDUSER.SQL
- ECHO GRANT CONNECT, RESOURCE TO &New_UserName IDENTIFIED BY &New_Password; >> ADDUSER.SQL
- ECHO EXIT >> ADDUSER.SQL
- SQLPLUS -s %1/%2 @ADDUSER.SQL
- DEL ADDUSER.SQL
- :EXIT