楼主: jlandzpa

[精华] [转载]ORACLE数据库开发经验

[复制链接]
论坛徽章:
11
数据库板块每日发贴之星
日期:2008-10-19 01:02:292010新春纪念徽章
日期:2010-03-01 11:06:132010新春纪念徽章
日期:2010-01-04 08:33:08祖国60周年纪念徽章
日期:2009-10-09 08:28:00ITPUB8周年纪念徽章
日期:2009-09-27 10:21:222009日食纪念
日期:2009-07-22 09:30:00ITPUB元老
日期:2009-01-09 16:58:572009新春纪念徽章
日期:2009-01-04 14:52:28数据库板块每日发贴之星
日期:2008-11-09 01:01:02授权会员
日期:2008-11-08 23:32:16
91#
发表于 2008-5-19 20:35 | 只看该作者
不错

使用道具 举报

回复
论坛徽章:
273
生肖徽章2007版:猪
日期:2008-09-27 09:35:45明尼苏达森林狼
日期:2009-01-12 14:15:09生肖徽章2007版:猪
日期:2009-01-21 16:30:59布鲁克林篮网
日期:2009-03-03 14:42:32圣安东尼奥马刺
日期:2009-03-03 14:44:41生肖徽章2007版:鸡
日期:2009-03-03 21:45:52生肖徽章2007版:牛
日期:2009-03-09 14:03:42生肖徽章2007版:猪
日期:2009-03-10 21:37:00生肖徽章2007版:羊
日期:2009-03-16 10:17:11生肖徽章2007版:虎
日期:2009-03-24 21:26:52
92#
发表于 2008-5-20 07:48 | 只看该作者
不错的东东
谢谢分享

使用道具 举报

回复
论坛徽章:
0
93#
发表于 2008-5-23 10:06 | 只看该作者

8错

刚刚接触ORACLE,从LZ那学了不少呢

使用道具 举报

回复
论坛徽章:
0
94#
发表于 2008-5-23 10:36 | 只看该作者
学习很好

使用道具 举报

回复
论坛徽章:
1
ITPUB新首页上线纪念徽章
日期:2007-10-20 08:38:44
95#
发表于 2008-5-23 18:06 | 只看该作者
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
Cocuments and Settingsdennyliu>sqlplus sys as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Fri May 23 17:55:24 2008
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
Enter password:
Connected to:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SQL> create tablespace test_space datafile 'CraclexeoradataXE        est_space.db
f' size 1000 autoextend off;
create tablespace test_space datafile 'CraclexeoradataXE        est_space.dbf' si
ze 1000 autoextend off
*
ERROR at line 1:
ORA-03214: File Size specified is smaller than minimum required

SQL>  create tablespace test_space datafile 'CraclexeoradataXE        est_space.d
bf' size 10k autoextend off;
create tablespace test_space datafile 'CraclexeoradataXE        est_space.dbf' s
ize 10k autoextend off
*
ERROR at line 1:
ORA-03214: File Size specified is smaller than minimum required

SQL>  create tablespace test_space datafile 'CraclexeoradataXE        est_space.d
bf' size 100k autoextend off;
Tablespace created.
SQL> create table test1 (name varchar2(4000)) tablespace test_space;
Table created.
SQL> insert into test1 select object_name from dba_objects;
insert into test1 select object_name from dba_objects
            *
ERROR at line 1:
ORA-01653: unable to extend table SYS.TEST1 by 8 in tablespace TEST_SPACE

SQL> insert into test1 select object_name from dba_objects where rownum <1000;
999 rows created.
SQL> commit;
Commit complete.
SQL> insert into test1 select object_name from dba_objects where rownum <1000;
insert into test1 select object_name from dba_objects where rownum <1000
            *
ERROR at line 1:
ORA-01653: unable to extend table SYS.TEST1 by 8 in tablespace TEST_SPACE

SQL> delete from test1;
999 rows deleted.
SQL> commit;
Commit complete.
SQL> insert into test1 select object_name from dba_objects where rownum <1000;
999 rows created.
SQL> commit;
Commit complete.
SQL> drop tablespace test1 cascade;
drop tablespace test1 cascade
                      *
ERROR at line 1:
ORA-02173: invalid option for DROP TABLESPACE

SQL>  drop tablespace test1;
drop tablespace test1
*
ERROR at line 1:
ORA-00959: tablespace 'TEST1' does not exist

SQL> drop tablespace test_space;
drop tablespace test_space
*
ERROR at line 1:
ORA-01549: tablespace not empty, use INCLUDING CONTENTS option

SQL>  drop tablespace test_space including contents;
Tablespace dropped.

[ 本帖最后由 ccc96317 于 2008-5-23 18:08 编辑 ]

使用道具 举报

回复
论坛徽章:
95
秀才
日期:2015-10-08 17:57:58法拉利
日期:2013-12-30 15:11:23问答徽章
日期:2013-12-26 12:24:32优秀写手
日期:2013-12-18 09:29:13本田
日期:2013-12-09 10:02:28兰博基尼
日期:2013-11-18 17:44:52宝马
日期:2013-11-06 11:34:13雪佛兰
日期:2013-11-01 18:36:15宝马
日期:2013-10-25 08:22:20路虎
日期:2014-01-20 14:09:03
96#
发表于 2008-5-23 22:53 | 只看该作者
不是吧?8年前的东西翻出来说好?

使用道具 举报

回复
论坛徽章:
273
生肖徽章2007版:猪
日期:2008-09-27 09:35:45明尼苏达森林狼
日期:2009-01-12 14:15:09生肖徽章2007版:猪
日期:2009-01-21 16:30:59布鲁克林篮网
日期:2009-03-03 14:42:32圣安东尼奥马刺
日期:2009-03-03 14:44:41生肖徽章2007版:鸡
日期:2009-03-03 21:45:52生肖徽章2007版:牛
日期:2009-03-09 14:03:42生肖徽章2007版:猪
日期:2009-03-10 21:37:00生肖徽章2007版:羊
日期:2009-03-16 10:17:11生肖徽章2007版:虎
日期:2009-03-24 21:26:52
97#
发表于 2008-5-24 16:49 | 只看该作者
数据库系统很多理论也多年不变了吧

使用道具 举报

回复
论坛徽章:
9607
土豪章
日期:2013-12-31 14:11:39土豪章
日期:2013-12-31 14:11:39阿森纳
日期:2013-06-03 17:00:31阿森纳
日期:2013-10-11 09:27:58法拉利
日期:2013-12-27 15:20:30林肯
日期:2013-12-27 15:19:09法拉利
日期:2013-12-27 15:20:30法拉利
日期:2013-12-27 15:20:30法拉利
日期:2013-12-27 15:20:30法拉利
日期:2013-12-27 15:20:30
98#
发表于 2008-5-24 17:05 | 只看该作者
ITPUB有你们才精彩!

使用道具 举报

回复
论坛徽章:
1
ITPUB新首页上线纪念徽章
日期:2007-10-20 08:38:44
99#
发表于 2008-5-26 10:18 | 只看该作者
里面有个地方很明显的有错

使用道具 举报

回复
论坛徽章:
273
生肖徽章2007版:猪
日期:2008-09-27 09:35:45明尼苏达森林狼
日期:2009-01-12 14:15:09生肖徽章2007版:猪
日期:2009-01-21 16:30:59布鲁克林篮网
日期:2009-03-03 14:42:32圣安东尼奥马刺
日期:2009-03-03 14:44:41生肖徽章2007版:鸡
日期:2009-03-03 21:45:52生肖徽章2007版:牛
日期:2009-03-09 14:03:42生肖徽章2007版:猪
日期:2009-03-10 21:37:00生肖徽章2007版:羊
日期:2009-03-16 10:17:11生肖徽章2007版:虎
日期:2009-03-24 21:26:52
100#
发表于 2008-5-26 21:18 | 只看该作者
原帖由 ccc96317 于 2008-5-26 10:18 发表
里面有个地方很明显的有错

没看出来

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表