Skip to content

Instantly share code, notes, and snippets.

View danielbaccin's full-sized avatar

Daniel Baccin danielbaccin

View GitHub Profile
@danielbaccin
danielbaccin / gist:2499371
Created April 26, 2012 12:56
comando uteis para config do oracle
Comandos uteis do oracle para obter configiurações:
Parâmetros da NLS:
=> Select * from nls_database_parameters
=> Select * from nls_session_parameters
=> Select * from nls_instance_parameters
Exibe os valores de database_parameters
=> SELECT name,value$ from sys.props$ where name like '%NLS_LANG%'
=> SELECT name,value$ from sys.props$ where name like '%NLS_CHAR%'
=> SELECT name,value$ from sys.props$ where name like '%_CHARACTER%'
-Dhttp.proxyHost=localhost -Dhttp.proxyPort=8800
@danielbaccin
danielbaccin / gist:80b060771f62efff073c81a4f5dcad1d
Created February 6, 2017 14:15
aumentando numero de conexões no oracle
--rodar esse comando como system
ALTER SYSTEM SET PROCESSES=150 SCOPE=SPFILE;
--reiniciar o serviço do listener (OracleXETNSListener):
@danielbaccin
danielbaccin / gist:a5559c5b0b65e79edc1afb0ba132a20f
Created April 12, 2016 20:20
define versão do java de uma lista
update-alternatives --config [javac, java, javap, ...]
@danielbaccin
danielbaccin / gist:d340cac2b50658cbaf85ede9aee3781e
Created April 7, 2016 13:36
conf tomcat para exibir request e response http
-Dcom.sun.xml.ws.transport.http.client.HttpTransportPipe.dump=true
-Dcom.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.dump=true
-Dcom.sun.xml.ws.transport.http.HttpAdapter.dump=true
-Dcom.sun.xml.internal.ws.transport.http.HttpAdapter.dump=true
@danielbaccin
danielbaccin / gist:dedfec0c8eb551ac8a19
Last active January 14, 2016 19:26
intall postgresql no ubuntu
sudo apt-get update
sudo apt-get install postgresql postgresql-contrib
sudo passwd postgres
su postgres
psql -c "ALTER USER postgres WITH PASSWORD 'nova_senha'" -d template1
http://blog.patrickmaciel.com/instalando-o-postgresql-9-3-no-ubuntu-14-04-lts/
http://alcemirprogramador.blogspot.com.br/2013/07/liberando-acesso-remoto-postgresql.html
@danielbaccin
danielbaccin / gist:7710324
Created November 29, 2013 18:54
parametro p fixar o servidor d rmi
-Djava.rmi.server.hostname=ip
@danielbaccin
danielbaccin / gist:5527633
Created May 6, 2013 19:49
url sql server 2008 com instancia
jdbc:jtds:sqlserver://IP/NOME_DO_BANCO;instance=NOME_DA_INSTANCIA
@danielbaccin
danielbaccin / gist:78d81c28f11bd5ca8aa8
Created December 16, 2015 14:57
registros com msm cnpj firebird
select forcod, forcgc from FORNECEDOR where forcgc in(
select forcgc from FORNECEDOR group by forcgc having count(forcgc) > 1)
@danielbaccin
danielbaccin / gist:4330447
Created December 18, 2012 18:06
alterar senha do sa no SQLSERVER
Loga-se como autenticação do windows.
E executa-se a seguinte query:
sp_password @new = 'sa1234', @loginame=sa