Skip to content

Instantly share code, notes, and snippets.

View marcosvidolin's full-sized avatar
🎯
Always learning

Marcos Vidolin 👾 marcosvidolin

🎯
Always learning
View GitHub Profile
@marcosvidolin
marcosvidolin / table_relationships.sql
Created September 18, 2013 19:28
Oracle - See all table relationships
select table_name from user_constraints
where r_constraint_name in
(select constraint_name
from user_constraints
where constraint_type in ('P','U')
and table_name = upper('&tableOfInterest')
)
@marcosvidolin
marcosvidolin / catalina.sh
Created September 18, 2013 18:41
Tomcat - Debug remoto no Tomcat. Inclua o código a baixo no arquivo %CATALINA_HOME%/bin/catalina.sh e inicie normalmente o tomcat (startup.sh) No eclipse em "Debug Configurations", informe o nome da conexão remota, o projeto, host e porta do servidor remoto.
CATALINA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
@marcosvidolin
marcosvidolin / locked_object.sql
Created September 18, 2013 14:03
Oracle - Check leased objects in Oracle
select * from v$locked_object;
@marcosvidolin
marcosvidolin / jetty-goals.txt
Last active December 23, 2015 08:29
Jetty - specifying a port
// para subir o jetty numa determinada porta via linha de comando
mvn -Djetty.port=9999 jetty:run
// para subir o jetty numa determinada porta via Goals (Eclipse)
jetty:stop -Djetty.port=8080 jetty:run