Ver Mensaje Individual
  #2 (permalink)  
Antiguo 03/12/2010, 08:26
Avatar de huesos52
huesos52
Colaborador
 
Fecha de Ingreso: febrero-2009
Ubicación: Manizales - Colombia
Mensajes: 5.980
Antigüedad: 15 años, 3 meses
Puntos: 360
Respuesta: como crear usuarios en oracle por archivos bath

así:

Código SQL:
Ver original
  1. bash-3.2$ echo "CREATE USER prueba IDENTIFIED BY prueba;" | sqlplus myuser/mypassword@mysid
  2.  
  3. SQL*Plus: Release 10.2.0.1.0 - Production ON Vie Dic 3 09:23:06 2010
  4.  
  5. Copyright (c) 1982, 2005, Oracle.  ALL rights reserved.
  6.  
  7.  
  8. Conectado a:
  9. Oracle DATABASE 10g Express Edition Release 10.2.0.1.0 - Production
  10.  
  11. SQL>
  12. Usuario creado.
  13.  
  14. SQL> Desconectado de Oracle DATABASE 10g Express Edition Release 10.2.0.1.0 - Production
  15. bash-3.2$ sqlplus "/as sysdba"
  16.  
  17. SQL*Plus: Release 10.2.0.1.0 - Production ON Vie Dic 3 09:23:17 2010
  18.  
  19. Copyright (c) 1982, 2005, Oracle.  ALL rights reserved.
  20.  
  21.  
  22. Conectado a:
  23. Oracle DATABASE 10g Express Edition Release 10.2.0.1.0 - Production
  24.  
  25. SQL> SELECT username FROM dba_users WHERE username LIKE 'PRUEBA';
  26.  
  27. USERNAME
  28. ------------------------------
  29. PRUEBA
  30.  
  31. SQL>

o mira este tema
http://www.unix.com/shell-programmin...able-bash.html

saludos
__________________
Without data, You are another person with an opinion.
W. Edwads Deming