Improve Oracle indexes
– Build faster, smaller and better-balanced indexes[@more@]When using the create index syntax to build and Oracle index, there are many options that can dramatically improve the speed of the creation, the space used by the index, and the height of the resulting index. Let’s review a few of these factors: Speed Factors Parallel option – This option allows for parallel processes to scan the table. When an index is created, Oracle must first collect the symbolic key/ROWID pairs with a full-tabl
RMAN使用小记
RMAN使用简单步骤[@more@]SQL>conn /as sysdbaSQL>create user rman identified by rman;SQL>grant connect,resource to rman;SQL>grant recovery_catalog_owner to rman;c:>rman#进入rman,并以rman用户登录rman>connect catalog rman/rman #创建恢复目录rman>create catalog;#或者c:>rman target sys/sys@resorce_dtzx catalog rman/rman#注册目标数据库rman>register database#取消注册目标数据库SQL> conn rman/rman#428为select * from db中查找到keySQL>exec dbms_rcvcat.unregisterdatabase(428,3
ORA-12571: TNS:packet writer failure
Symptom:The database halts or the current session is terminated with the error:ORA-12571: TNS:packet writer failureThe error may be observed by a session currently using the database and will appear in the alert log file.[@more@]Possible causes and remedies:With Oracle 8.0.4 onwards, this error may indicate that the database is in the process of being shut down.This error has been observed when there was a loose cable connection to the SCSI disk array (on an Oracle Parallel Server system). Relat
Oracle RMAN快速入门指南
这篇文章主要介绍RMAN的常用方法,其中包含了作者一些自己的经验,里面的实验也基本全在WIN 2K和ORACLE 8.1.6环境下测试成功(因为这个环境比较容易实现)。本文借鉴了网上一些高手的相关文章,希望大侠们不要见怪,此处一并谢过。这篇文章主要是在北京出差期间写的,回到家后整理修改了一下,时间比较仓促,同时因为篇幅有限,一些技术细节不能一一覆盖了,只希望能够帮助新手入门的作用,想真正熟练掌握RMAN,必须经过较长时间的实践磨练才可以,尤其需要在工程中获得宝贵的故障解决经验。[@more@]1.什么是RMANRMAN可以用来备份和还原数
Oracle处理多媒体信息的原理
本文将就Oracle对多媒体信息进行处理的方式,工具,特色以及一些基本原理做一个综述。[@more@]一.应用前景综述 随着计算机处理能力的大副提高,多媒体早已经融入到了计算机当中了,如果缺少了多媒体,缺少了各种多姿多采的图象,音频,视频,很难想象计算机如今会走入千家万户。长期以来,多媒体信息在计算机中都是以文件形式存放,由操作系统管理的,但是随着计算机网络,分布式计算的发展, Oracle作为一家著名的数据库厂商,在多媒体信息处理上,更是走在了前边。本文将就Oracle对多媒体信息进行处理的方式,工具,特色以及一些基
用ORACLE数据库存储海量图像数据
在利用ORACLE平台进行数据库系统的开发过程中,对于海量图像数据的管理,目前,大都采用表+实体的方法,即图像数据以文件形式存放于指定的计算机目录下,在数据库 表中只反映图像数据文件的存储路径。这种管理模式,给数据的维护增加了难度,同时,也给数据的安全带来一定的隐患。因此,要真正做到各类数据在数据库中安全管理,研究和探索直接将海量图像数据存储在数据库关系表中的方法是非常必要的。数据库[@more@]笔者在Visual Basic 6.0开发环境中,采用客户机/服务器的工作方式,针对ORACLE数据库关系表中存储大量图像数据的问题和存
转贴一篇:
怎样用Delphi向数据库中存储BLOB[@more@]随着数据库及多媒体技术的发展,人们需要存储、处理的信息的种类越来越多。数据库中存储的数据不再只是文本、数字,而且还可能是图形、声音、视频等等,各式各样的类型。早期的数据库是无法处理这些类型的数据的。现在的数据库中为处理这些特殊格式的数据,设置了一种大二分对象(BLOB-Binary Large OBject)。 BLOB在数据库的表中实际上是以二进制数据的形式存放的。由于BLOB的特殊性,一般的程序都无法处理它。比如,如果在一张表中存在BLOB,当用Dattabase Desktop(Delphi在带的数
(转)Oracle中password file的作用及说明
http://www.eygle.com/archives/2004/06/passwordfile.html[@more@]在数据库没有启动之前,数据库内建用户是无法通过数据库来验证身份的口令文件中存放sysdba/sysoper用户的用户名及口令允许用户通过口令文件验证,在数据库未启动之前登陆从而启动数据库如果没有口令文件,在数据库未启动之前就只能通过操作系统认证.使用Rman,很多时候需要在nomount,mount等状态对数据库进行处理所以通常要求sysdba权限如果属于本地DBA组,可以通过操作系统认证登陆如果是远程sysdba登陆,需要通过passwordfile认证.1.remote_login_passwordfile = NONE此
(转) Oracle基本数据类型存储格式浅析(一)—(五)
Oracle基本数据类型存储格式浅析(一)—(五)[@more@]Oracle基本数据类型存储格式浅析(一)——字符类型发表人:yangtingkun | 发表时间: 2004年十二月09日, 23:47前一阵看完文档,对oracle的基本数据类型的存储格式有了一些了解,最近有做了一些测试进行了验证。打算整理总结一下,这一篇主要说明字符类型的存储格式。主要包括char、varchar2和long等几种类型。SQL> create table test_char (char_col char(10), varchar_col varchar2(10), long_col long);表已创建。SQL> insert into test_char values ('abc', '123', ',fd');已
查询表空间的使用率
select a.TS1,(1-(b.SUM_B2/a.SUM_B1))*100 b4,(b.SUM_B2/a.SUM_B1)*100 b5,a.SUM_B1,a.SUM_B1 - b.SUM_B2 b3,b.SUM_B2,b.MAX_B2 b6,b.CNT_B2 b7FROM(select tablespace_name TS1, sum(bytes) SUM_B1from dba_data_files group by tablespace_name) a,(select tablespace_name TS2, sum(bytes) SUM_B2,max(bytes) MAX_B2,count(bytes) CNT_B2from dba_free_space group by tablespace_name) bwhere a.TS1=b.TS2;或者:select a.tablespace_name "tablespace",trunc(a.total) "allocated(M)",ceil((1-b.free/a.total)*
oracle分析函数
oracle分析函数[@more@]zhouwf0726 | 25 七月, 2006 12:51oracle分析函数--SQL*PLUS环境--1、GROUP BY子句 --CREATE TEST TABLE AND INSERT TEST DATA.create table students(id number(15,0),area varchar2(10),stu_type varchar2(2),score number(20,2));insert into students values(1, '111', 'g', 80 );insert into students values(1, '111', 'j', 80 );insert into students values(1, '222', 'g', 89 );insert into students values(1, '222', 'g', 68 );insert into students values(2, '111', 'g', 80 );insert into students v
Oracle初级教程
Oracle初级教程 http://www.itpub.net/showthread.php?threadid=638192&pagenumber=[@more@]
查询重复记录问题
A表中有记录如下:a b c1 bj jdk2 bj dsf3 zh kdd4 dk jdk5 bj did现在要查询出b字段相同的记录出来,即查询结果为:a b c1 bj jdk2 bj dsf5 bj did请问如何实现?我的实现方式为:select * from A where rowid!=(select max(rowid) from A u where A.b=u.b)但这样,最后只能查出两条记录,最后一条没有出来.方法:select *from A,(select b,count(*) rnfrom Agroup by b) Bwhere A.b=B.b and rn>=2或者select a,b,c from (select a,b,c,count(*) over (partition by b) cntfrom tab) twhere cnt>1[@more@]
oracle 基本知识
转载)大家在应用ORACLE的时候可能会遇到很多看起来不难的问题, 特别对新手来说, 今天我简单把它总结一下, 发布给大家, 希望对大家有帮助! 和大家一起探讨, 共同进步! 对ORACLE高手来说是不用看的. 1. Oracle安装完成后的初始口令? internal/oracle sys/change_on_install system/manager scott/tiger sysman/oem_temp 2. ORACLE9IAS WEB CACHE的初始默认用户和密码? administrator/administrator 3. oracle 8.0.5怎幺创建数据库? 用orainst。如果有motif界面,可以用orainst /m 4. oracle 8.1.7怎幺创建数据库
Oracle中的NLS(转)
NLS: Nation Language SessionNLS_LANG: 語言別以及字符集NLS_DATE_FORMAT: 日期的顯示格式NLS_DATE_LANGUAGE: 日期的語言別-- 查看當前SESSION NLS_LANG SYS@HUIYI>select * from nls_session_parameters where parameter='NLS_LANGUAGE'; PARAMETER VALUE -------------------- ------------------------------ NLS_LANGUAGE TRADITIONAL CHINESE -- 查看數据庫NLS_LANG SYS@HUIYI>select * from nls_database_parameters 2 where parameter in('NLS_LANGUAGE','NLS_CHARACTERSET'); PARAME