Pular para o conteúdo
Visualizando 6 posts - 1 até 6 (de 6 do total)
  • Autor
    Posts
  • #94161
    airoosp
    Participante

      Bom dia,

      Preciso criar uma procedure para executar um programa no sistema operacional. Pesquisando na Internet vi que isso é possível através de um job mas ao executar os comandos abaixo aparece erro “ORA-00990: missing or invalid privilege”.

      grant create any job to ‘teste1’;
      grant create external job to ‘teste1’;

      O que esta faltando na sintaxe dos comandos?

      Obrigado.

      Airton

      #94168
      Anônimo

        tente :

        grant create any job to teste1;
        grant create external job to teste1;

        sem as aspas simples.

        #94170
        airoosp
        Participante

          Continua o mesmo erro.

          #94171
          Anônimo

            o privilégio ‘create external job’ só existe a partir do Oracle 10gR2 :

            External jobs present an equally large threat as they allow access to the full power of the underlying operating system, including OS authentication connections to the database. In Oracle 10g Release 1 there is no distinction between an internal job and an external job as far as privileges are concerned, so even the CREATE JOB privilege represents a massive security breach. In Oracle 10g Release 2 (10.2.0) this situation is improved by the addition of the CREATE EXTERNAL JOB privilege, allowing access to internal and external jobs to be granted separately. Even so, access to the scheduler should be guarded very carefully.

            Acredito que para bancos 9i, o comportamento deve ser simular ao 10.1, ou seja, basta o CREATE ANY JOB.

            #94173
            airoosp
            Participante

              Entendi, o que eu preciso fazer é chamar e executar um arquivo .exe a partir de uma procedure e/ou função do Oracle 9i, isso é possível?

              Obrigado.

              Airton

              #94182
              Anônimo

                Cara… acho que vai dar trabalho… nunca fiz isso…
                Dá uma olhada e vê se ajuda:

                http://download.oracle.com/docs/cd/B105 … g11rtn.htm

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