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

ORACLE 10G常用命令

---创建表空间
create tablespace 表空间名字 datafile 'F:\oracle\product\10.2.0\oradata\wsdata\yss01.dbf' size 4096M;
alter tablespace 表空间名字 add datafile 'F:\oracle\product\10.2.0\oradata\wsdata\yss02.dbf' size 4096M;
alter tablespace 表空间名字 add datafile 'F:\oracle\product\10.2.0\oradata\wsdata\yss03.dbf' size 4096M;
alter tablespace 表空间名字 add datafile 'F:\oracle\product\10.2.0\oradata\wsdata\yss04.dbf' size 4096M;
alter tablespace 表空间名字 add datafile 'F:\oracle\product\10.2.0\oradata\wsdata\yss05.dbf' size 4096M;
alter tablespace 表空间名字 add datafile 'F:\oracle\product\10.2.0\oradata\wsdata\yss06.dbf' size 4096M;
alter tablespace 表空间名字 add datafile 'F:\oracle\product\10.2.0\oradata\wsdata\yss07.dbf' size 4096M;
alter tablespace 表空间名字 add datafile 'F:\oracle\product\10.2.0\oradata\wsdata\yss08.dbf' size 4096M;
alter tablespace 表空间名字 add datafile 'F:\oracle\product\10.2.0\oradata\wsdata\yss09.dbf' size 2048M;
---创建表空间
alter tablespace SYSAUX add datafile 'F:\oracle\product\10.2.0\oradata\wsdata\sysaux02.dbf' size 512M;
alter   database   datafile   'E:\oracle\product\10.2.0\oradata\pluto\ysstech01.dbf'    offline   drop
create undo tablespace UNDOTBS2 datafile 'E:\oracle\product\10.2.0\oradata\pluto\undotbs02.dbf' SIZE 300M AUTOEXTEND ON;
alter system set UNDO_TABLESPACE=UNDOTBS2
DBA_ROLLBACK_SEGS
drop tablespace UNDOTBS1
-- 如果undo表空间undotbs不能释放空间,重建之
-- 创建备用undo表空间
create undo tablespace newundotbs datafile '$ORA_DATA/newundotbs01.dbf' size 1000m
/
-- 切换undo表空间
alter system set undo_tablespace=newundotbs scope=spfile
/
shutdown immediate
/
startup
/
-- drop原表空间
drop tablespace undotbs including contents and datafiles
/
-- 创建原undo表空间
create undo tablespace undotbs datafile '$ORA_DATA/undotbs01.dbf' size 1000m
/
-- 切换undo表空间
alter system set undo_tablespace=undotbs scope=spfile
/
-- 关闭重起并把备


相关文档:

OCP认证考试指南(2):安装Oracle Database 10G

想在Linux系统把Oralce安装好,确实是个不小的挑战,最起码的,首先要对Linux系统有所了解,不说多的,简单的一些配置文件和常用命令总要知道,要不真不知道如何下手。今天按书本的启示,和网上别人写的文章还有Oralce官方的帮助感觉都对我帮助甚微啊。。。不过感觉最后还是在QQ群和百度的帮助下,当然书本和那些文章都起到 ......

OCP认证考试指南(4):接合Oracle数据库

一、SQL的使用
CREATE、ALTER和DROP是主要的3种DDL语句,这些语句被用于在数据库中添加、修改或删除对象。
DCL语句包括GRANT和REVOKE命令,它们可以被用于为用户或角色授予或取消权限,可以被授予和取消的两种权限是系统权限和对象权限。取决于不同的对象类型,对象权限可能不同。
操纵或检索数据都需要使用DML语句。D ......

Oracle中Cursor介绍

关键字 
概念 
类型 
异常处理 
一  概念 
游标是SQL的一个内存工作区,由系统或用户以变量的形式定义。游标的作用就是用于临时存储从数据库中提取的数据块。在某些情况下,需要把数据从存放在磁盘的表中调到计算机内存中进行处理,最后将处理结果显示出来或最 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号