ORACLE OMF介绍
先看Oracle 官方解释
Oracle managed file (OMF)
A file that is created automatically by the Oracle database server when it is needed and automatically deleted when it is no longer needed.
如何判断你的数据库是否为支持OMF
SQL> show parameter db_create_file_dest;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_create_file_dest string
如果Value 为空则不支持,有值则支持。
如何设置DB 支持?
修改初始化参数文件
[oracle@itc-test9 dbs]more initOCM.ora
.......
*.user_dump_dest='/disk/oracle/admin/OCM/udump'
db_create_file_dest = '/disk/oracle/oradata'
使用 ALTER SYSTEM 命令动态设置
SQL> alter system set db_create_file_dest='/disk/oracle/oradata ;
System altered.
OMF有些用呢?
我大体总结一个一下就下面几点:
1: 创建Tablespace 是不需要写数据文件名称和大小 (default 100M,自动增长,Autoextend 为unlimited)
SQL> create tablespace omf;
Tablespace created.
Os:
[oracle@itc-test9 datafile]pwd
/disk/oracle/oradata/OCM/datafile
[oracle@itc-test9 datafile]ll
total 102512
-rw-r----- 1 oracle dba 104865792 Apr 29 16:13 o1_mf_omf_4zj30b2p_.dbf
创建数据文件属性:
Name /disk/oracle/oradata/OCM/datafile/o1_mf_omf_4zj30b2p_.dbf
Tablespace OMF
Status Online
File Size (KB) 102400
AutoExtend Yes
Increment 100MB
Maximum File Size 32767MB
2: 向Tablespace 添加文件是只适用add datafile 就可以了,参数如1.
SQL> alter tablespace omf add datafile;
Tablespace altered.
Os
[oracle@itc-test9 datafi
相关文档:
【转】http://topic.csdn.net/t/20031006/10/2327335.html
文章来自 www.ncn.cn (聚贤庄)
=======================================================
ORACLE里锁有以下几种模式:
0:none
1:null 空 ......
最简单的一个Oracle定时任务
一、在PLSQL中创建表:
create table HWQY.TEST
(
CARNO VARCHAR2(30),
CARINFOID NUMBER
)
二、在PLSQL中创建存储过程:
create or replace procedure pro_test
AS
carinfo_id number;
BEGIN
select s_CarInfoID.nextval into carinfo_id
from dual;
in ......
oracle数据库插入日期型数据
往Oracle数据库中插入日期型数据(to_date的用法)
INSERT INTO FLOOR VALUES ( to_date ( '2007-12-20 18:31:34' , 'YYYY-MM-DD HH24:MI:SS' ) ) ;
查询显示:2007-12-20 18:31:34.0
-------------------
INSERT INTO FLOOR VALUES ......
connect by 是结构化查询中用到的,其基本语法是:
select ... from tablename start with 条件1
connect by 条件2
where 条件3;
例:
select * from table
start with org_id = 'HBHqfWGWPy'
connect by prior org_id = parent_id;
简单说来是将一个树状结构存储在一张表里,比如一个表 ......