segunda-feira, 17 de abril de 2017

OHS - Oracle HTTP Server - Comandos Úteis

Olá pessoal, eu resolvi listar alguns comandos úteis do OHS.

Iniciar o servidor:
$ORACLE_INSTANCE/bin/opmnctl startproc process-type=OHS

Parar servidor ohs
$ORACLE_INSTANCE/bin/opmnctl stopproc process-type=OHS

Para um componente 
$ORACLE_INSTANCE/bin/opmnctl stopproc ias-component=component_name

Parar de forma verbosa
$ORACLE_INSTANCE/bin/opmnctl verbose stopproc ias-component=component_name

Reiniciar Servidor:
$ORACLE_INSTANCE/bin/opmnctl restartproc process-type=OHS

Reiniciar um componente
$ORACLE_INSTANCE/bin/opmnctl restartproc ias-component=component_name

Reiniciar de forma verbosa
$ORACLE_INSTANCE/bin/opmnctl verbose restartproc ias-component=component_name
Criar um componente
$ORACLE_INSTANCE/bin/opmnctl createcomponent -componentType OHS -componentName component_name
-listenPort: HTTP listening port
-sslPort: HTTPS (SSL) listening port
-proxyPort: Proxy MBean port usada internamente para se comunicar com o fusion middleware.

Remover todos componentes:
$ORACLE_INSTANCE/bin/opmnctl deletecomponent -componentName component_name

Remover componente especifico:
$ORACLE_INSTANCE/bin/opmnctl deletecomponent -componentName ohs2

Mudar porta do OHS
ORACLE_HOME/ohs/bin
chown root .apachectl
chmod 6750 .apachectl

That's all folks!!

Nenhum comentário: