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
<!-- pom.xml --> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-assembly-plugin</artifactId> | |
<configuration> | |
<appendAssemblyId>false</appendAssemblyId> | |
<descriptors> | |
<descriptor>src/main/assemble/assemble.xml</descriptor> | |
</descriptors> | |
</configuration> |
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
<!-- pom.xml --> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-jar-plugin</artifactId> | |
<configuration> | |
<excludes> | |
<exclude>*.properties</exclude> | |
</excludes> | |
</configuration> | |
</plugin> |
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
jdbc:mysql:replication://localhost:3306/test | |
jdbc:mysql://localhost:3306/test |
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
# create directory | |
create directory dmpdir as 'c:/temp'; | |
select directory_name,directory_path from dba_directories; | |
# expdp owner | |
create user scott identified by tiger; | |
grant connect, resource to scott; | |
... | |
grant read, write on directory dmpdir to scott; | |
expdp scott/tiger@xe directory=dmpdir dumpfile=scott.dmp logfile=expdp.log |
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
set stamp=%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2% | |
echo %stamp% |
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
# run_sql.bat | |
sqlplus system/system@xe @test.sql | |
# test.sql | |
set echo on; | |
spool test.log | |
...your sql | |
spool off; |
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
#windows | |
-Dcom.sun.management.jmxremote.port=7101 | |
-Dcom.sun.management.jmxremote.ssl=false | |
-Dcom.sun.management.jmxremote.authenticate=false | |
#linux | |
-Djava.rmi.server.hostname=192.168.0.190 | |
-Dcom.sun.management.jmxremote | |
-Dcom.sun.management.jmxremote.port=7101 | |
-Dcom.sun.management.jmxremote.authenticate=false |
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
run.sh -Djboss.service.binding.set=ports-01 |
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
#for java | |
-agentpath:/temp/yjpagent.dll | |
#for jboss | |
-agentpath:/temp/yjpagent.dll=delay=10000 |
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
#change java program language | |
-J-Duser.language=en -J-Duser.region=CN | |
or | |
-J-Duser.language=en -J-Duser.country=CN | |