易截截图软件、单文件、免安装、纯绿色、仅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
/
-- 关闭重起并把备


相关文档:

Oracle中Cursor介绍

关键字 
概念 
类型 
异常处理 
一  概念 
游标是SQL的一个内存工作区,由系统或用户以变量的形式定义。游标的作用就是用于临时存储从数据库中提取的数据块。在某些情况下,需要把数据从存放在磁盘的表中调到计算机内存中进行处理,最后将处理结果显示出来或最 ......

OCP认证考试指南(11):保护Oracle数据库的安全(1)

1、调整默认的安全设置
1.1、默认的用户
查看数据库的用户和状态,可以查询DBA_USERS视图。
?[Copy to clipboard]View Code SQL
SQL> select username,account_status from dba_users;
1.2、PUBLIC权限
Oracle中存在一个名为PUBLIC的伪用户。只要用PUBLIC授予某个权限,那么所有用户都会被授予这个权限。
?[Copy ......

oracle clob 和blob问题的解决

oracle clob 和blob问题的解决
 
整理了oracle clob 和blob问题的解决办法:
1:建议使用oracle 10的ojdbc14.jar,否则当保存clob的时候可能会出现套接字错误; 
2:spring配置如下: 
java代码: 
        <bean id="sessionFact ......

Oracle的卸载方法

   之前给大家介绍了在WIN7上Oracle 10g的安装方法,接下来就该给大家介绍它的卸载方法了。很多人不敢安装Oracle就是担心安装后会卸载不干净,其实当初我也有过这个顾虑,呵呵。但后来发现,其实卸载是很容易的事。就几步而已,不信就请看:
 
可以使用产品自带的卸载工具去卸载。
1.    ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号