[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [shell-script] Validacao pelo Oracle
From: |
Rodolfo Villanova |
Subject: |
RE: [shell-script] Validacao pelo Oracle |
Date: |
Fri, 11 Oct 2002 16:07:44 -0300 |
Aí vai a barbada:
-------------------
sqlplus -s / << FIN
set heading off
set feedback off
set pagesize 0
prompt
select * from tabela_1 where num_telefone = '$FONE';
prompt
FIN
-------------------
Rodolfo Villanova
TMS
> -----Original Message-----
> From: Daniel J. Pinto [mailto:address@hidden]
> Sent: Friday, October 11, 2002 3:10 PM
> To: address@hidden
> Subject: [shell-script] Validacao pelo Oracle
>
>
> Galera...
>
> estou utilizando um usuario no Oracle que é validado pelo UNIX....
> ou seja quando eu me logo no UNIX com esse usuario consigo conectar com a
> base da seguite maneira...
>
> sqlplus /
>
> sem precisar passar usuario, senha e base de dados...
>
>
> meu problema é o seguinte...
> quando eu logo com esse usuario e tento realizar uma conexao como essa fora
> do meu script (ksh) tudo vai bem, ou seja, consigo conectar....
>
>
> SQL*Plus: Release 3.3.4.0.0 - Production on Fri Oct 11 14:47:43 2002
>
> Copyright (c) Oracle Corporation 1979, 1996. All rights reserved.
>
> Connected to:
> Oracle7 Server Release 7.3.4.0.0 with the 64-bit option - Production
> With the distributed, replication and parallel query options
> PL/SQL Release 2.3.4.0.0 - Production
>
> SQL> Disconnected from Oracle7 Server Release 7.3.4.0.0 with the 64-bit
> option - Production
> With the distributed, replication and parallel query options
> PL/SQL Release 2.3.4.0.0 - Production
>
>
> agora quando eu tento fazer a conexão pelo scritp ou seja, no scrit existe
> uma chamada do tipo
> sqlplus /
> acontece o seguinte erro...
>
> SQL*Plus: Release 8.0.5.0.0 - Production on Thu Oct 10 19:44:5 2002
>
> (c) Copyright 1998 Oracle Corporation. All rights reserved.
>
> ERROR:
> ORA-01034: ORACLE not available
>
> Enter user-name: Enter password:
> ERROR:
> ORA-01005: null password given; logon denied
>
> Enter user-name:
>
>
>
> Alguem ja passou por isso e/ou tem ideia de como resolver????
>
> Valeu
>
> Daniel