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%'
@danielbaccin
danielbaccin / gist:2844473
Created May 31, 2012 16:11
aumenta num de conxões do oracle
b. Altere o número de processos para 100
alter system set processes=100 scope=spfile
c. Remova o limite de 20 sessões
alter system reset sessions scope=spfile sid=’*’
d. Pare o banco
@danielbaccin
danielbaccin / gist:3091912
Created July 11, 2012 17:35
link da documetação hibernate referente ao uso de subqueries
http://docs.jboss.org/hibernate/orm/3.3/reference/en/html/querycriteria.html
@danielbaccin
danielbaccin / gist:4027253
Created November 6, 2012 20:21
plugin do java funfando no firefox linux
É so criar um link simbolico da lib necessária na pasta de plugins do firefox
ex:
cd /usr/lib/firefoz/plugins
sudo ln -s /home/usuario/<caminho do jdk>/jre/lib/amd64/libnpjp2.so
@danielbaccin
danielbaccin / gist:4258418
Created December 11, 2012 13:03
corrigindo flash no ubuntu 12.10
Baixar flash
http://get.adobe.com/br/flashplayer/?no_redirect
criar pasta
sudo mkdir -p /opt/google/chrome/plugins
copiar plugin
sudo cp /usr/lib/adobe-flashplugin/libflashplayer.so /opt/google/chrome/plugins
verificar se deu certo
@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
@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:7710324
Created November 29, 2013 18:54
parametro p fixar o servidor d rmi
-Djava.rmi.server.hostname=ip
@danielbaccin
danielbaccin / gist:8808809
Created February 4, 2014 17:53
mostra valores dos parâmetros em consultas
log4j.appender.STDOUT.Threshold=TRACE
log4j.category.org.hibernate.SQL=TRACE, STDOUT
log4j.category.org.hibernate.type=TRACE, STDOUT
@danielbaccin
danielbaccin / 0_reuse_code.js
Created February 4, 2014 18:53
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console