This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-Dhttp.proxyHost=localhost -Dhttp.proxyPort=8800 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--rodar esse comando como system | |
ALTER SYSTEM SET PROCESSES=150 SCOPE=SPFILE; | |
--reiniciar o serviço do listener (OracleXETNSListener): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
update-alternatives --config [javac, java, javap, ...] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select forcod, forcgc from FORNECEDOR where forcgc in( | |
select forcgc from FORNECEDOR group by forcgc having count(forcgc) > 1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Oracle JDK 7 | |
sudo apt-get install python-software-properties | |
sudo add-apt-repository ppa:webupd8team/java | |
sudo apt-get update | |
sudo apt-get install oracle-java7-installer | |
#install git | |
sudo apt-get install git | |
#generate public key |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TRUNCATE TABLE VENDA_CONSOLIDADA_PRODUTO; | |
TRUNCATE TABLE VENDA_CONSOLIDADA_FINALIZADORA; | |
TRUNCATE TABLE VENDA_CONSOLIDADA_LOJA; | |
INSERT INTO VENDA_CONSOLIDADA_PRODUTO (ID, LOJCOD, VCPDAT, PROCOD, VCPQTD, VCPVLRTOT) | |
SELECT nextval('SQ_VENDA_CONSOLIDADA_PRODUTO') | |
, T.LOJCOD | |
, T.TRNDAT AS VCPDAT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE produto | |
SET stf_codigo = subquery.situacao | |
FROM (select p.procod as produto, s.stf_codigo as situacao from produto p | |
inner join situacao_fiscal s on (p.trbid = s.trbid)) AS subquery | |
WHERE produto.procod = subquery.produto; | |
http://stackoverflow.com/questions/6256610/updating-table-rows-in-postgres-using-subquery |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Gerar dump: pg_dump -h 127.0.0.1 -p 5432 -U postgres bembomsupermercados > bembomsupermercados.sql | |
Restaurar o banco: psql -h localhost -p 5432 -U postgres -f /home/daniel/bembomsupermercados.sql -W bembomsupermercados |
NewerOlder