光辉飞翔

导航

 

2012年9月11日

摘要: 需求,把"01:大汽车",分成01和大汽车有两种做法:一是substringJava代码 package test; publicclass substringTest { publicstaticvoid main(String args[]) { String N = "01:大汽车"; String L=""; String R=""; int k= N.length(); for (int i = 0; i < N.length(); i++) { if (N.substring(i, i + 1). 阅读全文
posted @ 2012-09-11 14:10 光辉飞翔 阅读(4129) 评论(0) 推荐(0)
 
摘要: select a.tablespace_name as 表空间, a.bytes / 1024 / 1024 as 总容量MB, (a.bytes - b.bytes) / 1024 / 1024 "使用容量MB", b.bytes / 1024 / 1024 "剩余容量MB", round(((a.bytes - b.bytes) / a.bytes) * 100, 2) "使用百分比" from (select tablespace_name, sum(bytes) bytes from dba_data_files group 阅读全文
posted @ 2012-09-11 13:25 光辉飞翔 阅读(369) 评论(0) 推荐(0)
 
摘要: select * from dev.T_INSURANCE_COMPANY;select * from 用户名.表名分配查询权限:grant select on dev.T_INSURANCE_COMPANY to crmos; 阅读全文
posted @ 2012-09-11 11:58 光辉飞翔 阅读(281) 评论(0) 推荐(0)
 
摘要: 今天测试部在跑系统时,老是会报ORA-00980错误。发现同义词有问题。原因是用表的同义词对表查询时报错,表找不到,同义词无效了。同义词创建时,不会去检测内容的准确性,即如果表不存在,也可以创建该表的同义词,但是select时会报ORA-00980 同义词转换不再有效(ORA-00980: synonym translation is no longer valid)的错误。Tom对此错误的解释:That errorsimply means "synonym is still here, but the object it points to is inaccessible" 阅读全文
posted @ 2012-09-11 11:53 光辉飞翔 阅读(36854) 评论(0) 推荐(0)