Pular para o conteúdo
Visualizando 3 posts - 1 até 3 (de 3 do total)
  • Autor
    Posts
  • #79475
    BDB20071
    Participante

      Pessoal,
      Preciso de uma ajuda, tenho o codigo abaixo e esta dando o seguinte erro alguem sabe como resolvo?

      [b]Compilation errors for TYPE BDB20071.T_TABELA

      Error: PLS-00329: tipo de nível de esquema faz referência inválida a BDB20071.T_COLUNA_OR
      Line: 8
      Text: colunn_list t_coluna_or

      Error: PL/SQL: Compilation unit analysis terminated
      Line: 0
      Text: CREATE OR REPLACE TYPE t_tabela As Object ([/b]

      Segue o codigo:

      CREATE OR REPLACE TYPE t_tabela As Object (
      Table_Name Varchar(50),
      Pct_Free Number,
      Num_est_lin_ini number,
      Tx_cresc_ano number,
      Tempo_dados number,
      codTabela Number,
      colunn_list t_coluna_or
      ) Not Final

      CREATE OR REPLACE TYPE t_coluna AS OBJECT (
      Table_name varchar(50),
      column_name varchar(50),
      data_type varchar(50),
      data_length varchar(20),
      tam_medio_col Number,
      perc_lin Number,
      codColuna Number
      ) Not FINAL

      CREATE TABLE t_coluna_or OF t_coluna (
      Table_name NOT NULL,
      column_name NOT NULL,
      data_type NOT NULL,
      data_length NOT NULL,
      tam_medio_col NOT NULL,
      perc_lin NOT NULL,
      codColuna NOT NULL
      )

      #79478
      Anônimo

        Olá !!!

        Para criar os objetos abaixo siga a seguinte ordem:

        1) t_coluna
        2) t_coluna_or
        3) t_tabela

        Boa Sorte !!!

        Darci Leandro.

        #79479
        BDB20071
        Participante

          Mesmo adicionando nessa ordem da o problema, ja fiz 200 coisas mas não sei mais o que fazer!

          “colunn_list t_coluna_or ” da erro aqui, diz q a referencia não é válida

          [size=2]

          [size=7][size=9]Compilation errors for TYPE FHEINECK.T_TABELA

          Error: PLS-00329: tipo de nível de esquema faz referência inválida a FHEINECK.T_COLUNA_OR
          Line: 8
          Text: colunn_list t_coluna_or

          Error: PL/SQL: Compilation unit analysis terminated
          Line: 0
          Text: CREATE OR REPLACE TYPE t_tabela As Object ([/size][/size][/size]

        Visualizando 3 posts - 1 até 3 (de 3 do total)
        • Você deve fazer login para responder a este tópico.