This file contains 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
@MySQL | |
Liberar acesso de outros hosts. | |
grant all on *.* to root@'%' identified by 'root'; |
This file contains 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
How do I Download m2eclipse? | |
Maven - http://download.eclipse.org/technology/m2e/releases | |
https://support.sonatype.com/entries/20914842.html?__utma=246996102.2011723869.1343932852.1343932852.1343933261.2&__utmb=246996102.8.10.1343933261&__utmc=246996102&__utmx=-&__utmz=246996102.1343933261.2.2.utmcsr=google|utmccn=%28organic%29|utmcmd=organic|utmctr=%28not%20provided%29&__utmv=-&__utmk=12338743 |
This file contains 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 | |
Atribuir privilégios de DBA para usuário. | |
GRANT DBA TO my_user; | |
This file contains 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 | |
Deletar usuário e objetos. | |
drop user my_user cascade; |
This file contains 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 | |
Listar todos os usuários. | |
select * from dba_users; |
This file contains 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 | |
Alterar senha usuário. | |
1. | |
alter user my_user identified by my_password; | |
2. | |
alter user my_user identified by values 'code_hash_generated_by_oracle'; |
This file contains 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 | |
Exportar/Importar database. | |
Export FULL: | |
exp my_user/my_password@my_database full=y file=name_my_dump.dmp | |
Import FULL: | |
imp my_user/my_password@my_database full=y file=name_my_dump.dmp |
This file contains 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
@Java | |
When you override the equals method, you must adhere to its general contract. Here | |
is the contract, copied from the specification for java.lang.Object: | |
The equals method implements an equivalence relation: | |
• It is reflexive: For any reference value x, x.equals(x) must return true. | |
• It is symmetric: For any reference values x and y, x.equals(y) must return true | |
if and only if y.equals(x) returns true. |
This file contains 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 | |
Atribuir permissão para um objeto para determinado usuário | |
grant my_operation on my_object to my_user; | |
my_operation: | |
execute | |
insert | |
select |
This file contains 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
@JSF | |
Customização de mensagens de conversão e validação | |
javax.faces.component.UIInput.CONVERSION= | |
javax.faces.component.UIInput.CONVERSION_detail= | |
javax.faces.component.UIInput.REQUIRED= | |
javax.faces.component.UIInput.REQUIRED_detail=Campo obrigatório | |
javax.faces.component.UISelectOne.INVALID= | |
javax.faces.component.UISelectOne.INVALID_detail= |
OlderNewer