Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> Interactive Create User script
I'm trying to come up with a reliable, simple approach to interactively create Oracle accounts on both PO8 and HP Oracle8 databases. Below is my first attempt. As you can see, I'm using two scripts to acheive this. I also hate having the user to remember to 'spool off' but when I programmed it in it didn't work because I'm having them break out of the loop by the use of a Ctrl-C (which sometimes causes a Dr Watson on my PO8 version).
I'm open to suggestions if you have a better approach. Thanks in advance.
---------------------------------------------enter_user.sql script-----------------------------------------------clear screen
---------------------------------------------enter_user2.sql script-----------------------------------------------ACCEPT userid CHAR PROMPT 'User Account: ' ACCEPT pswd CHAR PROMPT 'Password: ' HIDE create user &userid identified by &pswd
![]() |
![]() |