GARANTIR DESCONTO

Fórum CRIANDO PROCEDIMENTO #27542

11/09/2003

0

Pessoal estou criando uma procedure mais estou tendo o seguinte erro:

LINE/COL ERROR
-------- ---------------------------------------------------------------
10/5 PL/SQL: Item ignored
11/5 PLS-00597: expression ´<expression>´ in the INTO list is of wro
type

11/5 PLS-00597: expression ´<expression>´ in the INTO list is of wro
type

11/16 PLS-00201: identifier ´LOGIX.NF_MESTRE´ must be declared
31/37 PL/SQL: SQL Statement ignored
38/37 PLS-00201: identifier ´LOGIX.NF_MESTRE´ must be declared
60/39 PL/SQL: SQL Statement ignored

LINE/COL ERROR
-------- ---------------------------------------------------------------
67/37 PLS-00201: identifier ´LOGIX.NF_MESTRE´ must be declared
102/9 PL/SQL: SQL Statement ignored
105/11 PL/SQL: SQL Statement ignored
106/26 PLS-00320: the declaration of the type of this expression is
incomplete or malformed

115/9 PL/SQL: SQL Statement ignored
118/11 PL/SQL: SQL Statement ignored
119/26 PLS-00320: the declaration of the type of this expression is
incomplete or malformed

----------------------------------------------------------------------------------

Estou fazendo a criação da Procedure da seguinte forma

CREATE OR REPLACE PROCEDURE mapa_vendas(v_data_inicio DATE,
v_data_fim DATE,
v_cod_empresa VARCHAR2,
v_clientes VARCHAR2,
v_flag_cli IN VARCHAR2) AS

BEGIN

.
.
.
.
.
END;


Se alguém souber qual o problema, agradeço muito.

Obrigado.


Manjuneiro

Manjuneiro

Responder

Posts

15/09/2003

Motta

11/16 PLS-00201: identifier ´LOGIX.NF_MESTRE´ must be declared


se ´LOGIX.NF_MESTRE´ é objeto de outro owner vc tem que ter grant sobre este.

ou ´LOGIX.NF_MESTRE´ não existe.


Responder

Gostei + 0

23/09/2003

Orlandodias

ACREDITO QUE O PROBLEMA ESTAH NO AS ANTES DO BEGIN. O CORRETO EH IS.

NO ENTANTO, COMO VC NAO POSTOU A PROCEDURE INTEIRA NAO TENHO COMO ANALISAR COM MAIS DETALHES.


CREATE OR REPLACE PROCEDURE mapa_vendas(v_data_inicio DATE,
v_data_fim DATE,
v_cod_empresa VARCHAR2,
v_clientes VARCHAR2,
v_flag_cli IN VARCHAR2) IS

BEGIN


Responder

Gostei + 0

23/09/2003

Manjuneiro

Orlando obrigado pela resposta, mais este problema eu ja resolvi.

Agora estou com problemas para passar um parametro do tipo array nesta mesma procedure. Se souber como fazer isto me de uma dica.
Se quiser que eu passe o procedimento todo para que vc de uma analizada e so dizer.

Obrigado.


Responder

Gostei + 0

23/09/2003

Motta

nunca fiz isto, mas tente.

definir um tipo(type) public e passar como parametro


Responder

Gostei + 0

23/09/2003

Orlandodias

SE VC VAI CHAMAR A ROTINA QUE TEM ARRAY NO PROPRIO ORACLE, NO VEJO PROBLEMA EM SEGUIR A INSTRUCAO DO MOTA. MAS SE VC VAI ACESSAR VIA OUTRA LINGUAGEM (DELPHI,VB,ASP) VC PODERÁ ENCONTRA ALGUNS PROBLEMAS, POIS ESTE TIPO DE DADOS NAO SERAH SUPORTADO.


Responder

Gostei + 0

Utilizamos cookies para fornecer uma melhor experiência para nossos usuários, consulte nossa política de privacidade.

Aceitar