ITeye博客

小贴士

hotjava · 2007-08-07 10:21 · 工作 · Markdown

导出数据库脚本

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. <!--weblogic jndi datasource TRMSDS TRMSTEST and TransactionMana -->
  5. <bean id="dataSource"
  6. class="org.springframework.jndi.JndiObjectFactoryBean">
  7. <property name="jndiName">
  8. <value>${rmsdatasourceName}</value>
  9. </property>
  10. </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、在ms的reomte 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)

  1. #2 楼 · hotjava · 2007-10-09 21:14

    webLogic察看Licenses的命令 $ java -Dbea.home=d:\bea utils.showLicenses 具体可查询:http://www.bea.com.cn/support_pattern/Licensing_Support_Pattern.html#Verifycheck_your_license_information

  2. #1 楼 · hotjava · 2007-08-31 15:47

    解决编码的另一个办法是用editPlus,把文件保存到本地,然后选择文档-文件格式-UNIX

评论功能维护中,当前仅展示历史评论。