`
hotjava
  • 浏览: 178486 次
  • 性别: Icon_minigender_1
  • 来自: 天津
社区版块
存档分类
最新评论

小贴士

阅读更多

导出数据库脚本

exp rms/ctgrms@ORACLE16 owner=bss,rms,sysman file=C:/rms/db/rmsdb%date:~0,10%.dmp

导入数据库脚本

imp rms/ctgrms@trmstest full=y ignore=y file=E:\rms.dmp log=E:\irms.log

创建索引
create index index_standard_address_status on rms.standard_address(status)

数据库脚本分析
execute DBMS_UTILITY.ANALYZE_DATABASE('COMPUTE',10000,NULL,'');

=================================================================================

linux简单操作

杀进程 kill -9 XXXX

查看进程 ps -ef|grep java

后台启动weblogic  nohup ./startWebLogic.sh >log &

停止 ./stopWebLogic.sh

[bad interpreter:No such file or directory ] 这个错误主要是因为在windows下编辑的脚本,所以有可能有不可见字符。

vi filename
然后用命令
:set ff?
可以看到dos或unix的字样. 如果的确是dos格式的, 那么你可以用set ff=unix把它强制为unix格式的, 然后存盘退出. 再运行一遍看.
==========================================

springxml配置文件中读取.properties属性,跟ANT差不多,
spring中声明:
 

xml 代码
  1. <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">  
  2.     <property name="location"><value>config.properties</value></property>  
  3. </bean>  
  4.   
  5. <!--weblogic jndi datasource TRMSDS TRMSTEST and TransactionMana -->  
  6. <bean id="dataSource"  
  7.     class="org.springframework.jndi.JndiObjectFactoryBean">  
  8.     <property name="jndiName">  
  9.     <value>${rmsdatasourceName}</value>  
  10.     </property>  
  11. </bean>  

 

然后config.properties中

# Properties file with server URL settings for remote access.

#rms的数据源jndi名
rmsdatasourceName=rmsdatasource


#资源环境
rms.java.naming.provider.url=t3://10.48.66.6:7001
rms.java.naming.security.principal=weblogic
rms.java.naming.security.credentials=weblogic

 

打开GC日志的方法

1、登录console

2、在msreomte start中的Arguments框中,加入:-verbose:gc -Xverbosegclog:gc.log。

3、重新启动ms。

 

存储过程里面打印输出:

DBMS_OUTPUT.PUT_LINE('结束时间:' ||
                       to_char(sysdate, 'yyyy-mm-dd hh24:mm:ss'));

 

 

==========================================================================

 

1.windows 版本
     打开web/bin/catalina.bat 文件
     在 “rem Guess CATALINA_HOME if not defined” 行下加入以下一行
     set JAVA_OPTS="-Xmx512m"
     表示JVM最大使用内存值为 512 M
   2.unix/linux 版本
     打开web/bin/catalina.sh 文件
     在注释行(以"#")下加入以下一行
     JAVA_OPTS="-Xmx512m"
     export ...
   其中具体内存数可根据系统具体情况而定。

分享到:
评论
2 楼 hotjava 2007-10-09  
webLogic察看Licenses的命令
$ java -Dbea.home=d:\bea utils.showLicenses
具体可查询:http://www.bea.com.cn/support_pattern/Licensing_Support_Pattern.html#Verifycheck_your_license_information
1 楼 hotjava 2007-08-31  
解决编码的另一个办法是用editPlus,把文件保存到本地,然后选择文档-文件格式-UNIX

相关推荐

Global site tag (gtag.js) - Google Analytics