[置顶] DotA资料

[置顶] jQuery实用方法(定期更新)

oracle创建表空间,创建用户

January 20, 2011 浏览了
Comments 0

--创建临时表空间 

create temporary tablespace test_temp 
tempfile 'E:\oracle\product\10.2.0\oradata\testserver\test_temp01.dbf' 
...

More...

阅读全文Oracle  

OracleOraDb11g_home1TNSListener启动错误

January 20, 2011 浏览了
Comments 0

 错误提示:尝试连接 (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 152

1)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl)))

...

More...

阅读全文Oracle  

oracle 导入导出数据表

August 27, 2010 浏览了
Comments 0

首先进入dos命令行(cmd): exp 导出:exp name/password@shili file=c:\a.dmp all=yes 导入:imp name1/password1@shili1 file=c:\a.dmp fromuser=name tousers=name1 name,name1是数据库的用户名 password是密码 shili是数据库名(全局实例名)

More...

阅读全文Oracle  

oracle中substr函数的用法

March 23, 2010 浏览了
Comments 0

oracle中substr函数的用法

In oracle/PLSQL, the substr functions allows you to extract a substring from a string.
...

More...

阅读全文Oracle  

Oracle 除数为0的处理(decode)

March 17, 2010 浏览了
Comments 0

select   (a/b*100)per   from   aa;  
  当b为0时,提示除数为0,  
  本人想当除数为0时,不让系统提示出错,结果显示0即可?

解决:select   decode(b,0,0,a/b*100)   per   from   aa;  

More...

阅读全文Oracle  

ora-28002O racle 11g存在密码过期问题

March 2, 2010 浏览了
Comments 0

【问题描述】

使用sqlplus登陆oracle数据库时提示“ORA-28002: 7 天之后口令将过期”。

 

【原因/触发因素】

...

More...

阅读全文Oracle  

oracle 查询字段合并输出

September 12, 2009 浏览了
Comments 0

oracle 查询两个表中字段,将这两个字段合成一个字符串。

比如 A 表中 A1 字段
    B 表中 B1 字段
我想查询出 A1:B1 的字符串插入到 C 表中 C1 字段

 

insert into C (c1)
select A1 || B1 from A,B where a.ID=b.ID

oracle的||相当于SQL的+
...

阅读全文Oracle  

oracle 怎样判断是否存在某个表或者某表里的某个字段

May 9, 2009 浏览了
Comments 0

判断Oracle是否存在某个表

select   table_name     from   user_tables   where   table_name='用户表' ;

More...

阅读全文Oracle  

oracle express edition 创建表空间

April 29, 2009 浏览了
Comments 0

Oracle Database 10g Express Edition,它提供了一个非常容易使用的基于浏览器的控制台,也提供了非常详细友好的教程,不过,一些高级的操作还是需要使用命令行的,下面是使用过程中的一些心得。

安 装完成后会在windows中注册好几个服务,其中OracleServiceXE和OracleXETNSListener默认会自动启动。默认的数据 库名叫XE,express版的oracle数据库只能建立一个数据库,且最大为4G。假如我们用jdbc来连接(这里使用ojdbc14.jar),可 以这样写:

More...

阅读全文Oracle  

Oracle DUAL

April 23, 2009 浏览了
Comments 0

       DUAL ? 有什么神秘的? 当你想得到ORACLE系统时间, 简简单单敲一行SQL [ORACLE的工作机制]

不就得了吗? 故弄玄虚…. 

SQL> select sysdate from dual; 

More...

阅读全文Oracle  

分页:«123»