重新开始更新博客
好久好久没有更新技术博客了,可能总觉得自己取得了一些小小的成就,于是就没有了以前那种学习的激情了。今天下个决定,从现在开始,每周更新自己的博客。另外我会陆续将我在http://blog.chinaunix.net/u1/50863/index.html的博客技术文章搬到ITPUB上。[@more@]
动态监听注册
动态服务注册Oracle9i 以上例程可以使用服务注册来通知监听程序有关其数据库服务的信息。动态服务注册依赖PMON进程向监听程序注册例程信息。PMON 还通知监听程序有关例程和共享服务器调度程序的当前状态和负载。如果安装了Oracle9i JVM,则可向监听程序动态注册HTTP 和IIOP 监听终端。启动例程时,系统会从初始化参数文件中读取有关监听程序的初始化参数,PMON 通过该文件向监听程序注册信息。如果例程启动时监听程序尚未运行(即最好是先启监听,再启数据库),PMON 将不向监听程序注册信息。PMON 将继续尝试与监听程序建立联系(即数据库启
深入了解Oracle数据字典
首先,Oracle的字典表和视图基本上可以分为三个层次。1.1 X$表这部分表是Oracle数据库的运行基础,在数据库启动时由Oracle应用程序动态创建。这部分表对数据库来说至关重要,所以Oracle不允许SYSDBA之外的用户直接访问,显示授权不被允许。如果显示授权你会收到如下错误:SQL> grant select on x$ksppi to eygle;grant select on x$ksppi to eygle *ERROR at line 1:ORA-02030: can only select from fixed tables/views1.2 GV$和V$视图从Oracle8开始,GV$视图开始被引入,其含义为Global V$. 除了一些特例以外,
ora-12500错误
昨天,一个客户打电话过来,说数据库连接不了,报ora-12500错误: 1)查询官方文档对此错的描述: TNS-12500 TNS:listener failed to start a dedicated server processCause: The process of starting up a dedicated server process failed. The executable could not be found or the environment may be set up incorrectly.Action: Turn on tracing at the ADMIN level and re-execute the operation. Verify that the Oracle Server executable is present and has execute permissions enabled. Ensure that the Oracle environment
connection和session的关系
1.官方解释: 1.1 connection: A connection is a physical path from a client to an Oracle instance. A connection is established either over a network or over an IPC mechanism. A connection is typically between a client process and either a dedicated server or a dispatcher. However,using Oracle’s Connection Manager (CMAN), a connection may be between a client and CMAN, and CMAN and the database. 1.2 session A session is a logical entity that exists in the instance. It is your session state,
解决ora-27061的案例
一、故障现象 批量连续加载数据时(调用sql*loader),加载到一定时间(约一个小时),数据库会自动shutdown。 二、数据库配置及运行环境 数据库版本:oracle10.2.0.3 单实例 操作系统:aix5306 主机:IBM P570 存储:IBM DS4800 目前数据库容量80GB ,已创建表空间约6TB 三、故障现象分析 重点检查的操作系统日志及数据库日志 1.操作系统日志无报错 2.oracle数据库日志 Fri Jan 25 18:00:12 2008Thread 1 cannot allocate new log, sequence 1123Checkpoint not complete Current log# 2 seq# 1122 mem# 0: /oradata1_2/
oracle rac on aix 下为表空间增加数据文件
有个新来的同事,常驻一个客户现场,来了不到一个星期,就擅自做了一个不正当操作,把数据库给搞down掉了: 环境 : oracle 10g rac + crs + aix + hacmp + 裸设备操作内容 : 直接在数据库运行过程中,在一台机上增加lv,并且分配一个新建的表空间(该表空间仅仅是为了他测试而已) 在aix oracle rac 环境下,增加lv的步骤应该如下: 1.停掉数据库2.停掉hacmp3.在一台机上增加lv4.另外一台机上importvg5.然后在原来那台机上同步(smitty hacmp)6.起hacmp,crs7.起数据库 据说在hp-ux下,步骤也类似。[@more@]
ORACLE 使用超过2G内存
询问了一下同事,他说他之前修改过windows 32bit下使得oracle使用超过2g内存,以下是他的步骤: 服务器:HPDL580G2(双CPU 6G内存)WIN2003 Enterprise Edition+ORACLE 9I 2.0.3.01、 在boot.int中加入启动参数3G和PAEmulti(0)disk(0)rdisk(0)partition(1)WINNT="Microsoft Windows 2003 Enterprise Edition " /3G /PAE /fastdetect2、 在注册表[HKEY_LOCAL_MACHINESOFTWAREORACLEHOME0]下添加字符串值:AWE_WINDOW_MEMORY,设为1G:10240000003、 备份现在正在使用的spfile:在CMD命令下执行以下命令:Sqlplus /nologConn
ipcs命令
1.ipcs 命令解释用途报告进程间通信设施状态。语法ipcs [ -m] [ -q] [ -s] [ -S] [ -P] [ -l] [ -a | -b -c -o -p -t] [ -T] [ -C CoreFile] [ -N Kernel ] [ -X ]Flags-a 相当于使用了-b ,-c,-o,-p,-t标志-b Writes the maximum number of bytes in messages on queue for message queues, the size of segments for shared memory, and the number of semaphores in each semaphores set.-c Writes the login name and group name of the user that made the facility.-o Writes the follo
Oracle全文检索
1.在9i中手工安装全文检索功能在Oracle9i R2中,Oracle的全文检索技术被称为Oracle Text,在Oracle8/8i中它被称作Oracle interMedia Text,在Oracle8以前它的名称是Oracle ConText Cartridge。Oracle Text组件可以在安装数据库的时候选择,缺省是安装的,如果没有安装,那么可以按照以下方式手动安装Oracle Text:[oracle9@single ~]$ sqlplus "/ as sysdba"SQL*Plus: Release 9.2.0.4.0 - Production on Thu Apr 17 21:50:24 2008Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.Connected to:Oracle9i En
信号量的概念
信号量是由荷兰科学家Dijkstra提出的,是一种卓有成效的进程同步机制。 信号量的定义 信号量是一个记录型数据结构,包含信号量值和一个等待队列,其中信号量值是一个具有非负初值的整型变量,等待队列是一个初始状态为空的队列。又称信号灯。 除信号量的初值外,信号量的值仅能由P操作(又称为wait操作)和V操作(又称为signal操作)改变。 信号量的物理含义 信号量中的整型变量S表示系统中某类资源的数目。 当其值大于0时,表示系统中当前可用资源的数目; 当其值小于0时,其绝对值表示系统中因请求该类资源而被阻塞的进
AIX_故障诊断_0516-062错误
某用户,环境为hds asm500 + ibmp570 + aix5307 + ha5.4 + oracle9207rac. 1)不知用户进行了什么操作,造成一个节点的hdisk2无法访问,而hdisk2来自hds上的一个lun 2)varyoffvg xxx,报错如下: gzyj01[root]#varyoffvg oravg0516-062 lqueryvg: Unable to read or write logical volume manager record. PV may be permanently corrupted. Run diagnostics运行diag也没有用 3)查IBM网站0516-062错误跟IY81477补丁有关,但系统已经有补丁了。 gzyj01[root]#instfix -ick IY81477#Keyword:Fileset:ReqLevel:InstLevel:Status:Abstra
SharePlexForOracle_安装配置_基础使用
1)准备好vmware + oracle9204的环境,保证/etc/oratab有oracle相关条目,保证/etc/hosts文件有hostname. 2)以root用户建立/quest目录 3)将SharePlex_Oracle-5.3.0.57-Linux-x86-Oracle92.run传到/quest目录 4)以root用户执行SharePlex_Oracle-5.3.0.57-Linux-x86-Oracle92.run [root@single quest]# ./SharePlex_Oracle-5.3.0.57-Linux-x86-Oracle92.runCreating directory SharePlex_Oracle-5.3.0.57-Linux-x86-Oracle92.run.tmpVerifying archive integrity... All good.Uncompressing SharePlex_Oracle-5.3.0.57-Linux-x86-Oracle92-Se
10g的BIGFILE TABLESPACE
昨天在一个客户那里建表空间,报下面的错误:SQL> create tablespace tbs_test datafile '/oracle10/oradata/ora10g/test01.dbf' size 10M autoextend off, 2 '/oracle10/oradata/ora10g/test02.dbf' size 10M autoextend off 3 extent management local 4 segment space management auto;create tablespace tbs_test datafile '/oracle10/oradata/ora10g/test01.dbf' size 10M autoextend off,*ERROR at line 1:ORA-32774: more than one file was specified for bigfile tablespace TBS_TEST查询数据库默认的表空间类型:SQ
10g闪回区和归档目录的关系
Oracle10g 有一项新功能称为:自动的基于磁盘的备份与恢复( Automatic Disk-Based Backup and Recovery )。实现该功能的基础为本文要讲述的闪回恢复区( FlashRecovery Area )。闪回恢复区是 Oracle 10g 中的新事物。简单的说,闪回恢复区是一块用以存储恢复相关的文件的存储空间。 如果数据库采用归档模式,那么默认情况下归档文件也会产生在闪回区里面. SQL> archive log listDatabase log mode Archive ModeAutomatic archival EnabledArchive destination USE_DB_RECOVERY_FILE_DESTOldest on
oracle817在AIX5L安装过程中碰到的几个问题
有个客户的项目,需要在aix5.2上安装oracle817,同事装的过程中遇到了一些问题,我帮手解决了,下面总结一下: 1)在执行rootpre.sh过程中,有警告:"crash: not found" 这个警告可以忽略,如果要避免这个警告,可以执行下面的动作:the warning can be avoided by creating the following script and renaming it to "/usr/sbin/crash": #!/bin/ksh read input if [ X"$input" = Xle ]; then echo lke | /usr/sbin/kdb | /usr/bin/awk '/^ *[0-9]+/ {printf("LoadList entry at 0x%sn Name: %snn"
ORACLE_07445[_kill()+48][SIGIOT]错误_附嵌套表研究
用户环境: hp-ux B.11.23 + oracle9206 rac 1)错误的发现 今天在一个客户这里巡检,发现日志文件有以下错误: Thu Jan 24 02:12:36 2008Errors in file /opt/app/oracle/admin/gzgov/udump/gzgov1_ora_8417.trc:ORA-07445: exception encountered: core dump [_kill()+48] [SIGIOT] [unknown code] [0x0000020E1] [] [] 相应的trc文件中,有一些信息:*** 2008-01-24 02:12:36.394*** SESSION ID:(20.39311) 2008-01-24 02:12:36.355Exception signal: 6 (SIGIOT), code: -1 (unknown code), addr: 0x20e1, exception issued by pid: 8417
贵阳的前三天
到贵阳省厅这边搞linux双机+oracle9irac+hds盘柜,从来没搞过,比较有压力!不过前三天货都没有到,所以只有在宾馆里呆着,对着虚拟机上的linux乱弄一通了。一个人呆在贵阳,比较郁闷...[@more@]
一首英语诗,很喜欢
If one day you feel like crying... Call me. [@more@]I don't promise that I will make you laugh, But I can cry with you. If one day you want to run away…… Don't be afraid to call me. I don't promise to ask you to stop... But I can run with you. If one day you don't want to listen to anyone... Call me. I promise to be there for you. And I promise to be very quiet. But if one day you call... And there is no answer... Come fast to see me.
Sybase___在Windows NT上手动卸载Sybase Server
关键是要手工删除注册表上的信息,方法如下:[@more@]关闭 Adaptive Server. 将Adaptive Server在Windows NT Services中由自动改为手动 重新启动 Windows NT server 运运行regedt32修改注册表, 删除以下内容:HKEY_LOCAL_MACHINESOFTWARESYBASEServer<server_name>_BS">HKEY_LOCAL_MACHINESOFTWARESYBASEServer<server_name>_BS_HS">HKEY_LOCAL_MACHINESOFTWARESYBASEServer<server_name>_HS_MS">HKEY_LOCAL_MACHINESOFTWARESYBASEServer<server_name>_MS 到注册表的如下结构下:HKEY_LOC