can not pass the user name and password

The following code works.

In the file beats,

sqlplus obpmdir/eu1 @c:\*.sql "sd" BIENVENUE1

In the * .sql:

Select & 1 of & 2;
=================================================================================================
However, the following 2 files may not work. The command line wonder username and other key variables.

* .bat:

sqlplus sys/password as sysdba @c:\createOBPMusers.sql NouveauNomUtilisateur NouveauNomUtilisateur newpassword

* .sql:

create a user & myusers identified by & password;

grant resources, connect, dba at & grant_myusers;


output

* .sql:

create user & 1 identified by &2;

grant resources, connect, s/n to &3;

output

Tags: Database

Similar Questions

Maybe you are looking for