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

Aix5.3下Oracle 10g设置归档模式到文件系统


新建文件系统
        crfs  -v jfs  -g  rootvg  -m /arch -a \ size=32768 -a frag=512 -a nbpi=8192  也可以 smit。
开启归档模式
     $ sqlplus '/as sysdba'
SQL*Plus: Release 10.2.0.1.0 - Production on Thu Dec 10 13:38:57 2009
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
Connected to an idle instance.
SQL> startup;
ORACLE instance started.
Total System Global Area 5016387584 bytes
Fixed Size                  2027744 bytes
Variable Size             922750752 bytes
Database Buffers         4076863488 bytes
Redo Buffers               14745600 bytes
Database mounted.
Database opened.
SQL> archive log list;
Database log mode              No Archive Mode
Automatic archival             Disabled
Archive destination            USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence     62
Current log sequence           64
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount;
ORACLE instance started.
Total System Global Area 5016387584 bytes
Fixed Size                  2027744 bytes
Variable Size             922750752 bytes
Database Buffers         4076863488 bytes
Redo Buffers      


相关文档:

ORACLE 模拟 java SPLIT

CREATE OR REPLACE FUNCTION F_HPS_SPLIT
/*
 * 功    能: split.
 * 输入参数: Liststr  string
 * 输入参数: Sepe     index
 * 输入参数: Sepe     separator. default is ','.
 * return sepeCount
 */
(
  ......

Oracle 连接远程数据库

公司使用linux开发机进行程序开发时,由于开发用Oracle数据库是由日方提供,所以经常使用sqlplus连接到远程数据库上进行开发,例如:
sqlplus  username/password@servicename
于是想,用我的两台电脑双机互联试一试,也玩个“远程连接”。实验如下:
首先在我的台式机上安装了Oracle9i的数据库管理系统, ......

Oracle复制表结构

 如下,表a是数据库中已经存在的表,b是准备根据表a进行复制创建的表:
  1、只复制表结构的sql
  create table b as select * from a where 1<>1

  2、即复制表结构又复制表中数据的sql
  create table b as select * from a
  3、复制表的制定字段的sql
  create table b as select row_id ......

oracle 存储过程

1.创建过程
   与其它的数据库系统一样,Oracle的存储过程是用PL/SQL语言编写的能完成一定处理功能的存储在数据库字典中的程序。
  语法:
  create [or replace] procedure procedure_name
  [ (argment [ { in| in out }] type,
  argment [ { in | out | in out } ] type
  { is | as }
  <类型 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号