易截截图软件、单文件、免安装、纯绿色、仅160KB

提取Oracle当前用户名,机器名,IP的方法

select sysdate  当前时间,
       sys.login_user  数据库用户,
       machine   登录机器名,
       SYS_CONTEXT('USERENV', 'IP_ADDRESS')   登录IP,
       program   应用程序
  from v$session
 where AUDSID = USERENV('SESSIONID');


相关文档:

oracle 表空间操作

oracle表空间操作详解
  1
  2
  3作者:   来源:    更新日期:2006-01-04 
  5
  6 
  7建立表空间
  8
  9CREATE TABLESPACE data01
 10DATAFILE '/ora ......

ORACLE的lpad函数、rpad函数用法

ORACLE的lpad函数、rpad函数用法
语法:select lpad('12345678',1,'0') from dual;
返回字符串‘12345678’的从左边长度为1的字符串,如果不够,左边补‘0’
语法:select rpad('12345678',1,'0') from dual; 
返回字符串‘12345678’的从左边长度为1的字符串,如果不够,右边补&ls ......

Oracle 10.1 Statistics

Oracle 10.1 Statistics:
In Oracle 9.2 there were 264 statistics; in Oracle 10.1 there are 332 statistics
The following table shows the 106 statistics that were added in Oracle 10.1:
 
Name
application wait time
cluster wait time
concurrency wait time
consistent gets direct
consistent ......

oracle中重命名列名和表名

我们在创建表结构的过程中,可能会由于失误,造成表中列名错误,如何更改呢,你可能会回答,使用OEM或者PL/SQL,除了这两种方法,我们可以使用命令:
   ALTER TABLE 表名 rename   column  列名 to 新列名     注意column是关键字   /*重命名列名*/
  ALTE ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号