本站所有文章及代码如无特别说明均为本站原创,如果您需要转载,需本人同意!
我坚持一日三思,所以我的blog每天都会更新,除非我无法上网!(^_^)
我的联系方式:
QQ:363978818 Msn/mail:yonghe169@163.com
[不指定 2007/12/12 13:49 | by fubin ]
dba_开头
  dba_users     数据库用户信息
  dba_segments  表段信息
  dba_extents    数据区信息
  dba_objects    数据库对象信息
  dba_tablespaces   数据库表空间信息
  dba_data_files    数据文件设置信息
  dba_temp_files   临时数据文件信息
  dba_rollback_segs   回滚段信息
  dba_ts_quotas   用户表空间配额信息
  dba_free_space  数据库空闲空间信息
  dba_profiles   数据库用户资源限制信息
  dba_sys_privs   用户的系统权限信息
  dba_tab_privs  用户具有的对象权限信息
  dba_col_privs  用户具有的列对象权限信息
  dba_role_privs  用户具有的角色信息
  dba_audit_trail  审计跟踪记录信息
  dba_stmt_audit_opts  审计设置信息
  dba_audit_object   对象审计结果信息
  dba_audit_session  会话审计结果信息
  dba_indexes  用户模式的索引信息


user_开头
  user_objects   用户对象信息
  user_source   数据库用户的所有资源对象信息
  user_segments   用户的表段信息
  user_tables    用户的表对象信息
  user_tab_columns   用户的表列信息

  关于这个还涉及到两个常用的例子如下:

1、oracle中查询某个字段属于哪个表


Sql代码
1.select table_name,owner from dba_tab_columns t where t.COLUMN_NAME like upper('%username%');  
select table_name,owner from dba_tab_columns t where t.COLUMN_NAME like upper('%username%');  


2、oracle中查询某个表的列数

Sql代码
1.select count(*) from user_tab_columns where table_name= upper('sys_operate');  
select count(*) from user_tab_columns where table_name= upper('sys_operate');


注:这两个例子都用到了upper这个函数,是因为在这里表名得大写,否则查出的结果不是正确的



 
  user_constraints   用户的对象约束信息
  user_sys_privs   当前用户的系统权限信息
  user_tab_privs   当前用户的对象权限信息
  user_col_privs   当前用户的表列权限信息
  user_role_privs   当前用户的角色权限信息
  user_indexes   用户的索引信息
  user_ind_columns  用户的索引对应的表列信息
  user_cons_columns   用户的约束对应的表列信息
  user_clusters   用户的所有簇信息
 user_clu_columns  用户的簇所包含的内容信息
 user_cluster_hash_expressions   散列簇的信息



v$开头
  v$database    数据库信息
  v$datafile   数据文件信息
  v$controlfile  控制文件信息
  v$logfile   重做日志信息
  v$instance   数据库实例信息
  v$log   日志组信息
  v$loghist  日志历史信息
  v$sga   数据库SGA信息
  v$parameter  初始化参数信息
  v$process   数据库服务器进程信息
  v$bgprocess   数据库后台进程信息
  v$controlfile_record_section   控制文件记载的各部分信息
  v$thread   线程信息
  v$datafile_header   数据文件头所记载的信息
  v$archived_log  归档日志信息
  v$archive_dest   归档日志的设置信息
  v$logmnr_contents   归档日志分析的DML DDL结果信息
  v$logmnr_dictionary   日志分析的字典文件信息
  v$logmnr_logs   日志分析的日志列表信息
  v$tablespace   表空间信息
  v$tempfile   临时文件信息
  v$filestat   数据文件的I/O统计信息
  v$undostat   Undo数据信息
  v$rollname   在线回滚段信息
  v$session   会话信息
  v$transaction  事务信息
  v$rollstat    回滚段统计信息
  v$pwfile_users   特权用户信息
  v$sqlarea     当前查询过的sql语句访问过的资源及相关的信息
  v$sql           与v$sqlarea基本相同的相关信息
  v$sysstat    数据库系统状态信息


all_开头
  all_users   数据库所有用户的信息
  all_objects   数据库所有的对象的信息
  all_def_audit_opts   所有默认的审计设置信息
  all_tables   所有的表对象信息
  all_indexes  所有的数据库对象索引的信息

session_开头
    session_roles   会话的角色信息
    session_privs   会话的权限信息


index_开头
   index_stats   索引的设置和存储信息


伪表
  dual   系统伪列表信息


oracle最重要的9个动态性能视图
v$session + v$session_wait (在10g里功能被整合,凑合算1个吧.)
v$process
v$sql
v$sqltext
v$bh (更宁愿是x$bh)
v$lock
v$latch_children
v$sysstat
v$system_event
按组分的几组重要的性能视图

1. System 的 over view
v$sysstat , v$system_event , v$parameter

2. 某个session 的当前情况
v$process , v$session , v$session_wait ,v$session_event , v$sesstat

3. SQL 的情况
v$sql , v$sqlarea , v$SQL_PLAN , V$SQL_PLAN_STATISTICS, v$sqltext_with_newlines

3. Latch / lock /ENQUEUE
v$latch , v$latch_children , v$latch_holder , v$lock ,V$ENQUEUE_STAT ,V$ENQUEUE_LOCK

4. IO 方面的
v$segstat , v$filestat , v$tempstat ,v$datafile , v$tempfile

5. shared pool / Library cache
v$Librarycache , v$rowcache , x$ksmsp

6. 几个advice也不错
v$db_cache_advice , v$PGA_TARGET_ADVICE, v$SHARED_POOL_ADVICE
问题出现在Spring配置上。

将:
<listener>
  <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>

改为:问题即可解决

<servlet>
 <servlet-name>SpringContextServlet</servlet-name>
  <servlet-class>org.springframework.web.context.ContextLoaderServlet   </servlet-class>
  <load-on-startup>1</load-on-startup>
</servlet>

<servlet>  
<servlet-name>SpringLog4jConfigServlet</servlet-name>  
<servlet-class> org.springframework.web.util.Log4jConfigServlet </servlet-class>
</servlet>
<servlet>
  <servlet-name>web</servlet-name>
  <servlet-class>org.springframework.web.servlet.DispatcherServlet </servlet-class>
</servlet>

关于log4j 1.2.15的搞笑问题

[不指定 2010/07/18 23:42 | by fubin ]
Log4j 1.2.15存在一个bug会导致log4j:ERROR LogMananger.repositorySelector was null likely due to。在apache官网上下一个Log4j 1.2.16 把包一覆盖就好了!
var siteName = new Ext.form.Field({
           id: 'siteName1',//表单元素最好使用Id,不然在IE浏览器中表单内容将变形
           fieldLabel: '网站名称',
           listeners : {
               specialkey : function(field, e) {
                   if (e.getKey() == Ext.EventObject.ENTER) {
                       alert("终于可以回车提交了");
                       ...
                   }
               }
           }
});

EXT的时间格式化

[不指定 2010/06/09 14:03 | by fubin ]
格式化时间方法: format: 'Y-m-d H:i:s'

替换'Y-m-d H:i:s'中的各个字母,当然增加和减少都没有问题,留意大小写.可得到多种样式的日期格式.
  Ext.Date的格式说明
    d 01 to 31
    D Mon to Sun
    j 1 to 31
    l Sunday to Saturday
    N 1 (for Monday) through 7 (for Sunday)
    S st, nd, rd or th. Works well with j
    w 0 (for Sunday) to 6 (for Saturday)
    z 0 to 364 (365 in leap years)
    W 01 to 53
    F January to December
    m 01 to 12
    M Jan to Dec
    n 1 to 12
    t 28 to 31
    L 1 if it is a leap year, 0 otherwise.
    o Examples: 1998 or 2004
    Y Examples: 1999 or 2003
    y Examples: 99 or 03
    a am or pm
    A AM or PM
    g 1 to 12
    G 0 to 23
    h 01 to 12
    H 00 to 23
    i 00 to 59
    s 00 to 59
    u 001 to 999
    O Example: +1030
    P Example: -08:00
    T Examples: EST, MDT, PDT ...
    Z -43200 to 50400
    c 2007-04-17T15:19:21+08:00
    U 1193432466 or -2138434463

Flower Sandwich

[不指定 2010/05/11 21:50 | by fubin ]
点击在新窗口中浏览此图片
What appears to be part of a spring wedding bouquet is actually a nest for a rare species of solitary bee, a new study says.

Called a "flower sandwich," the three-tiered arrangement consists of a thin layer of petals on the outside, then a layer of mud, and finally another layer of petals lining the inside of the chamber, according to study leader Jerome Rozen, a curator of invertebrate zoology at the American Museum of Natural History in New York.

At the core of the sandwich is the bee's larva, which feasts on nectar and pollen deposited inside the chamber by its parent before the egg is laid and the nest is sealed. (Related: "Bees Like It Hot: Pollinators Prefer Warm Flowers, Study Reveals.")

The colorful nesting behavior of the Osmia avosetta bees was discovered on the same day by teams in Turkey and Iran, where the insects are mostly found.

The teams jointly described the behavior in the February 2010 edition of the journal American Museum Novitates.
点击在新窗口中浏览此图片

    The transparent shells of tiny Cypridina hilgendorfii, found in the coastal waters and sands of Japan, hold a creature that emits a luminous blue substance when disturbed. During World War II, the Japanese harvested these creatures for soldiers to use when reading maps and messages at night.

    这是一些微小且透明的希根海萤,在日本的近海海域的海水和沙子里面都可以发现他们,他们在不安的情况下就会发出蓝色的光。在二战中日本人把这些生物收集在一起用于晚上查看作战地图和战地信息。



(Photo shot on assignment for "Nature's Night Lights—Probing the Secrets of Bioluminescence," July 1971, National Geographic magazine)


About  Cypridina hilgendorfii from wiki(我从wiki上收集到的Cypridina hilgendorfii信息)

Vargula hilgendorfii, sometimes called the sea-firefly, one of three bioluminescent species known in Japan as umi-hotaru, is a species of ostracod crustacean. It is the only member of genus Vargula to inhabit Japanese waters; all other members of its genus inhabit the Gulf of Mexico, the Caribbean Sea, and waters off the coast of California. V. hilgendorfii was formerly more common, but its numbers have recently fallen significantly.

why the Cypridina hilgendorfii  can light(wei )

V. hilgendorfii is known for its bioluminescence. It produces a blue-coloured light by a specialized chemical reaction of the substrate luciferin and the enzyme luciferase.The luciferase enzyme consists of a 555 amino acid long peptide with a molecular mass of 61627 u, while the luciferine vargulin has only a mass of 405.5 u. A suggested biosynthesis for vargulin divides the molecule into a tryptophan, a arginin and a isoleucine subunit.

希根海萤是可发光的微生物,它用由基体荧光素和荧光素酶产生化学而产生的蓝光。荧光素酶由555个氨基酸肽长分子量是61627U,而荧光素只有405.5U,这时候分子就不断转变为色氨酸,精氨酸、异亮氨酸组。




标准J2ME菜单

[不指定 2010/05/06 08:13 | by fubin ]
下载文件
这个文件只能在登入之后下载。请先 注册登入
    服务器换成了电信机房,拥有了多条线路(电信、网通、铁通、移动),访问速度会快很多。
分页: 1/109 第一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] 下页 最后页 [ 显示模式: 摘要 | 列表 ]