CRIANDO PROCEDIMENTO
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.
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
Curtidas 0
Respostas
Motta
11/09/2003
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.
se ´LOGIX.NF_MESTRE´ é objeto de outro owner vc tem que ter grant sobre este.
ou ´LOGIX.NF_MESTRE´ não existe.
GOSTEI 0
Orlandodias
11/09/2003
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
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
GOSTEI 0
Manjuneiro
11/09/2003
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.
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.
GOSTEI 0
Motta
11/09/2003
nunca fiz isto, mas tente.
definir um tipo(type) public e passar como parametro
definir um tipo(type) public e passar como parametro
GOSTEI 0
Orlandodias
11/09/2003
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.
GOSTEI 0