| Ver tema anterior :: Ver siguiente tema | | Autor | Mensaje |
|---|
jhonny666
Registrado: 04 May 2009 Mensajes: 17
| Publicado: 11/11/2009 12:23 pm | | | Título: Privilegios para vistas Oracle |
| Ola amigos les escribo puesto que tengo un problema con mi gestor de bases de datos Oracle 11g.
Veran todo a surgido a raiz de que he intentado crear una una vista como la siguiente:
create view vista_llegada as (select num_parte,fecha from partes where to_char(hora_llegada,'HH24')>('12'));
bueno mi sentencia esta bien lo que ocurre esque Oracle me devuelve el siguiente mensaje:
Error report: SQL Error: ORA-01031: privilegios insuficientes 01031. 00000 - "insufficient privileges" *Cause: An attempt was made to change the current username or password without the appropriate privilege. This error also occurs if attempting to install a database without the necessary operating system privileges. When Trusted Oracle is configure in DBMS MAC, this error may occur if the user was granted the necessary privilege at a higher label than the current login. *Action: Ask the database administrator to perform the operation or grant the required privileges. For Trusted Oracle users getting this error although granted the the appropriate privilege at a higher label, ask the database administrator to regrant the privilege at the appropriate label.
Bueno por loque mas omenos entiendo lo que ocurre es que no tengo privilegios para crear vistas, Y aqui surge mi duda ya que no se como hacer para tener privilegios de administrador he buscado en internet pero no entiendo como hacer ... ojala me pudiesen ayudar amigos se lo agradeceria un montos puesto que necesito practicar las vistas para mis examenes jejeje
BUENO E DE APUNTAR QUE AHORA TOY TRABAJANDO CON EL USUARIO 'Scott' que trae Oracle por defecto..
bueno sin mas m despido amigos un fuerte abrazo y grasias otra vez  |
| | Volver arriba | |  | Killrazor
Registrado: 24 Ene 2006 Mensajes: 1284 Ubicación: Barcelona
| Publicado: 12/11/2009 1:12 am | | | Título: |
| Lo que tienes que hacer es crear la vista como administrador. Después le das un grant a select sobre la vista al usuario.
Otra solución es dar mas privilegios al usuario para crear tablas, aunque es menos seguro.
Aqui mas info: http://www.dba-oracle.com/art_builder_grant_sec.htm _________________ I wanna heal i wanna feel like I'm close to something real. I wanna find something I've wanted all along somewhere i belong |
| | Volver arriba | |  | | |
| No puede crear mensajes No puede responder temas No puede editar sus mensajes No puede borrar sus mensajes No puede votar en encuestas
|
|
| |