12 2010 档案
摘要:根据汉字,返回汉字对应的拼音。 直接上Function代码。一. 字典函数:CREATE OR REPLACE function f_getSpellcode return t_spellcode PipelinedisBeginPIPE Row(spell_code('a', -20319));PIPE Row(spell_code('ai', -20317));PIPE Row(spell_code('an', -20304));PIPE Row(spell_code('ang', -20295));PIPE Row(spel
阅读全文
摘要:根据汉字,返回汉字对应的拼音。 直接上Function代码。一. 字典函数:CREATE OR REPLACE function f_getSpellcode return t_spellcode PipelinedisBeginPIPE Row(spell_code('a', -20319));PIPE Row(spell_code('ai', -20317));PIPE Row(spell_code('an', -20304));PIPE Row(spell_code('ang', -20295));PIPE Row(spel
阅读全文
摘要:之前在Blog中对RMAN 的备份和恢复做了说明,刚看了下,在恢复这块还有知识点遗漏了。 而且恢复这块很重要,如果DB 真要出了什么问题,就要掌握对应的恢复方法。 所以把DB的恢复这块单独拿出来说明一下。RMAN 备份与恢复 实例http://blog.csdn.net/tianlesoftware/archive/2009/10/19/4699320.aspx如何搭建一个数据库服务器平台http://blog.csdn.net/tianlesoftware/archive/2010/05/17/5602291.aspx如何 搭建 RMAN 备份平台http://blog.csdn.net/.
阅读全文
摘要:之前在Blog中对RMAN 的备份和恢复做了说明,刚看了下,在恢复这块还有知识点遗漏了。 而且恢复这块很重要,如果DB 真要出了什么问题,就要掌握对应的恢复方法。 所以把DB的恢复这块单独拿出来说明一下。RMAN 备份与恢复 实例http://blog.csdn.net/tianlesoftware/archive/2009/10/19/4699320.aspx如何搭建一个数据库服务器平台http://blog.csdn.net/tianlesoftware/archive/2010/05/17/5602291.aspx如何 搭建 RMAN 备份平台http://blog.csdn.net/.
阅读全文
摘要:ORA-600 [2662] "Block SCN is ahead of Current SCN" [ID 28929.1]Modified 09-DEC-2010Type REFERENCEStatus PUBLISHEDNote: For additional ORA-600 related information please read Note:146580.1PURPOSE: This article discusses the internal error "ORA-600 [2662]", what it means and possib
阅读全文
摘要:ORA-600 [2662] "Block SCN is ahead of Current SCN" [ID 28929.1]Modified 09-DEC-2010Type REFERENCEStatus PUBLISHEDNote: For additional ORA-600 related information please read Note:146580.1PURPOSE: This article discusses the internal error "ORA-600 [2662]", what it means and possib
阅读全文
摘要:TECH: Summary For Forcing The Database Open With `_ALLOW_RESETLOGS_CORRUPTION` with Automatic Undo Management [ID 283945.1]Modified 18-MAY-2010Type BULLETINStatus PUBLISHED***This article is being delivered in Draft form and may contain errors. Please use the MetaLink "Feedback" button to
阅读全文
摘要:TECH: Summary For Forcing The Database Open With `_ALLOW_RESETLOGS_CORRUPTION` with Automatic Undo Management [ID 283945.1]Modified 18-MAY-2010Type BULLETINStatus PUBLISHED***This article is being delivered in Draft form and may contain errors. Please use the MetaLink "Feedback" button to
阅读全文
摘要:一. 官网对外部表的说明Managing External Tableshttp://download.oracle.com/docs/cd/E11882_01/server.112/e17120/tables013.htm#ADMIN12896 Oracle Database allows you read-only access to data in external tables. External tables are defined as tables that do not reside in the database, and can be in any format for w
阅读全文
摘要:一. 官网对外部表的说明Managing External Tableshttp://download.oracle.com/docs/cd/E11882_01/server.112/e17120/tables013.htm#ADMIN12896 Oracle Database allows you read-only access to data in external tables. External tables are defined as tables that do not reside in the database, and can be in any format for w
阅读全文
摘要:DBA 3群里的Jin 说他用ssh连接的时候,很慢。 一个朋友让他把方向解析禁用了。 我之前也遇到过SSH 慢的现象, 敲一条命令要等很长时间, 不过那时我ping 时丢包很严重。 所以,我的现象应该是和丢包有关系的。 在连接apache,ssh,mysql等服务器时,如果出现连接过慢,可能的原因是dns 的反向查询。 反向解析是防止假冒的IP连接服务器,把IP解析成域名,来提高安装性,看这个IP是否是伪造,这是dns反向查询的功能之一。 如果在开启apache,ssh,mysql 等服务器的反向解析功能之后,连接过慢的话。有二种解决方法: 1. 把服务的DNS反向解析功能关掉。 2. ..
阅读全文
摘要:DBA 3群里的Jin 说他用ssh连接的时候,很慢。 一个朋友让他把方向解析禁用了。 我之前也遇到过SSH 慢的现象, 敲一条命令要等很长时间, 不过那时我ping 时丢包很严重。 所以,我的现象应该是和丢包有关系的。 在连接apache,ssh,mysql等服务器时,如果出现连接过慢,可能的原因是dns 的反向查询。 反向解析是防止假冒的IP连接服务器,把IP解析成域名,来提高安装性,看这个IP是否是伪造,这是dns反向查询的功能之一。 如果在开启apache,ssh,mysql 等服务器的反向解析功能之后,连接过慢的话。有二种解决方法: 1. 把服务的DNS反向解析功能关掉。 2. ..
阅读全文
摘要:先看Oracle 官网的说明, 看的是Oracle 10gR2的文档:Physical Database LimitsItemType of LimitLimit ValueDatabase Block SizeMinimum2048 bytes; must be a multiple of operating system physical block sizeDatabase Block SizeMaximumOperating system dependent; never more than 32 KBDatabase BlocksMinimum in initial extent o
阅读全文
摘要:先看Oracle 官网的说明, 看的是Oracle 10gR2的文档:Physical Database LimitsItemType of LimitLimit ValueDatabase Block SizeMinimum2048 bytes; must be a multiple of operating system physical block sizeDatabase Block SizeMaximumOperating system dependent; never more than 32 KBDatabase BlocksMinimum in initial extent o
阅读全文
摘要:一. 启动过程启动过程包含下面的一些步骤: 1.1启动一个系统的初始步骤是上电自检(Power On Self Test,POST)。其目的是验证基本硬件是否处于正常的工作状态。同时初始化内存、键盘、通信,以及音频设备。您可以看到在屏幕上显示了所有的这些设备。在这个步骤中,您可以按下功能键,以选择不同的启动列表。这个阶段中所显示的 LED 值是模型特定的。硬件和软件方面的问题都可能使得系统无法启动。 注意:基于 MCI 体系结构的旧系统在这个步骤之前还将执行一个附加的步骤,即所谓的内建自检(Built In Self Test,BIST)。对于基于 PCI 体系结构的系统,不再需要执行这个步骤
阅读全文
摘要:一. 启动过程启动过程包含下面的一些步骤: 1.1启动一个系统的初始步骤是上电自检(Power On Self Test,POST)。其目的是验证基本硬件是否处于正常的工作状态。同时初始化内存、键盘、通信,以及音频设备。您可以看到在屏幕上显示了所有的这些设备。在这个步骤中,您可以按下功能键,以选择不同的启动列表。这个阶段中所显示的 LED 值是模型特定的。硬件和软件方面的问题都可能使得系统无法启动。 注意:基于 MCI 体系结构的旧系统在这个步骤之前还将执行一个附加的步骤,即所谓的内建自检(Built In Self Test,BIST)。对于基于 PCI 体系结构的系统,不再需要执行这个步骤
阅读全文
摘要:关于exp/imp 和 expdp/impdp, 之前整理的2篇Blog如下:ORACLE 数据库逻辑备份 简单 EXP/IMPhttp://blog.csdn.net/tianlesoftware/archive/2009/10/23/4718366.aspxOracle 10g EXPDP和IMPDP使用说明http://blog.csdn.net/tianlesoftware/archive/2009/10/16/4674224.aspx一. exp/imp 与 expdp/impdp 对比1.1 expdp/impdp调用Server端的API在执行操作,是数据库内部的job任务。可以
阅读全文
摘要:关于exp/imp 和 expdp/impdp, 之前整理的2篇Blog如下:ORACLE 数据库逻辑备份 简单 EXP/IMPhttp://blog.csdn.net/tianlesoftware/archive/2009/10/23/4718366.aspxOracle 10g EXPDP和IMPDP使用说明http://blog.csdn.net/tianlesoftware/archive/2009/10/16/4674224.aspx一. exp/imp 与 expdp/impdp 对比1.1 expdp/impdp调用Server端的API在执行操作,是数据库内部的job任务。可以
阅读全文
摘要:Parameter DIRECT: Conventional Path Export Versus Direct Path Export [ID 155477.1]Modified 24-JUN-2010Type BULLETINStatus PUBLISHEDIn this DocumentPurposeScope and ApplicationParameter DIRECT: Conventional Path Export Versus Direct Path Export1. Introduction.2. Performance issues.3. Restrictions. 4.
阅读全文
摘要:Parameter DIRECT: Conventional Path Export Versus Direct Path Export [ID 155477.1]Modified 24-JUN-2010Type BULLETINStatus PUBLISHEDIn this DocumentPurposeScope and ApplicationParameter DIRECT: Conventional Path Export Versus Direct Path Export1. Introduction.2. Performance issues.3. Restrictions. 4.
阅读全文
摘要:Export/Import DataPump Parameter ACCESS_METHOD - How to Enforce a Method of Loading and Unloading Data ? [ID 552424.1]Modified 06-APR-2009Type HOWTOStatus PUBLISHEDIn this DocumentGoalSolution1. Introduction. 2. Export Data Pump: unloading data in "Direct Path" mode. 3. Export Data Pump: u
阅读全文
摘要:Export/Import DataPump Parameter ACCESS_METHOD - How to Enforce a Method of Loading and Unloading Data ? [ID 552424.1]Modified 06-APR-2009Type HOWTOStatus PUBLISHEDIn this DocumentGoalSolution1. Introduction. 2. Export Data Pump: unloading data in "Direct Path" mode. 3. Export Data Pump: u
阅读全文
摘要:Linux 下,不同服务器之前的数据copy是很常见的操作。 常见的copy命令有scp 和cp。 但是对于一些重要的文件,如数据库的备份文件,在copy之后,我们还需要对copy之后的文件进行一下效验, 以免在copy过程中的丢失。 造成无法恢复数据。常见的效验有如下2种方式:1. 比较文件大小用ll或者ls 命令分别查看一下copy之前和copy之后的文件大小。 [root@singledb backup]# lltotal 639820-rw-r----- 1 oracle oinstall 18150400 Dec 7 19:50 arch_0hluu1q6_1_1_20101207.
阅读全文
摘要:Linux 下,不同服务器之前的数据copy是很常见的操作。 常见的copy命令有scp 和cp。 但是对于一些重要的文件,如数据库的备份文件,在copy之后,我们还需要对copy之后的文件进行一下效验, 以免在copy过程中的丢失。 造成无法恢复数据。常见的效验有如下2种方式:1. 比较文件大小用ll或者ls 命令分别查看一下copy之前和copy之后的文件大小。 [root@singledb backup]# lltotal 639820-rw-r----- 1 oracle oinstall 18150400 Dec 7 19:50 arch_0hluu1q6_1_1_20101207.
阅读全文
摘要:一. 先看官网的说明1.1 OPEN_LINKSPropertyDescriptionParameter typeIntegerDefault value4ModifiableNo --即修改需要重启实例Range of values0 to 255 OPEN_LINKS specifies the maximum number of concurrent open connections to remote databases in one session. These connections include database links, as well as external proce
阅读全文
摘要:一. 先看官网的说明1.1 OPEN_LINKSPropertyDescriptionParameter typeIntegerDefault value4ModifiableNo --即修改需要重启实例Range of values0 to 255 OPEN_LINKS specifies the maximum number of concurrent open connections to remote databases in one session. These connections include database links, as well as external proce
阅读全文
摘要:一. 相关概念关于DB_NAME,INSTANCE_NAME 的定义,参考我的Blog: DBID,SID,DB_NAME,DB_DOMAIN,INSTANCE_NAME,DB_UNIQUE_NAME,SERVICE_NAMES 及监听参数的说明 http://blog.csdn.net/tianlesoftware/archive/2010/12/20/6086066.aspx关于NID命令的使用,参考Blog: How to Change the DBID and the DBNAME by using NID [ID 224266.1] http://blog.csdn.net/tian
阅读全文
摘要:一. 相关概念关于DB_NAME,INSTANCE_NAME 的定义,参考我的Blog: DBID,SID,DB_NAME,DB_DOMAIN,INSTANCE_NAME,DB_UNIQUE_NAME,SERVICE_NAMES 及监听参数的说明 http://blog.csdn.net/tianlesoftware/archive/2010/12/20/6086066.aspx关于NID命令的使用,参考Blog: How to Change the DBID and the DBNAME by using NID [ID 224266.1] http://blog.csdn.net/tian
阅读全文
摘要:How to Change the DBID and the DBNAME by using NID [ID 224266.1]Modified 16-JUL-2009Type PROBLEMStatus PUBLISHEDChecked for relevance on 05-March-08Introduction============The NID (New Database ID)is a new utility introduced with Oracle 9.2. The NIDutility allows you to change only the DBNAME, or on
阅读全文
摘要:一. LOCAL_LISTENER 和 REMOTE_LISTENER说明1.1 LOCAL_LISTENER官网信息如下: PropertyDescriptionParameter typeStringSyntaxLOCAL_LISTENER = network_nameDefault value(ADDRESS = (PROTOCOL=TCP)(HOST=hostname)(PORT=1521)) where hostname is the network name of the local host.ModifiableALTER SYSTEMBasicNo LOCAL_LISTENER
阅读全文
摘要:一. LOCAL_LISTENER 和 REMOTE_LISTENER说明1.1 LOCAL_LISTENER官网信息如下: PropertyDescriptionParameter typeStringSyntaxLOCAL_LISTENER = network_nameDefault value(ADDRESS = (PROTOCOL=TCP)(HOST=hostname)(PORT=1521)) where hostname is the network name of the local host.ModifiableALTER SYSTEMBasicNo LOCAL_LISTENER
阅读全文
摘要:How To Configure Server Side Transparent Application Failover [ID 460982.1]Modified 23-NOV-2010Type HOWTOStatus PUBLISHEDIn this DocumentGoalSolutionGoalHow to configure Server Side Transparent Application Failover (TAF)? Server side TAF settings override client-side counterparts that might be confi
阅读全文
摘要:How To Configure Server Side Transparent Application Failover [ID 460982.1]Modified 23-NOV-2010Type HOWTOStatus PUBLISHEDIn this DocumentGoalSolutionGoalHow to configure Server Side Transparent Application Failover (TAF)? Server side TAF settings override client-side counterparts that might be confi
阅读全文
摘要:公司机房搬迁,Data Guard 环境需要修改IP地址。 提前整理顺便测试一下。 虽然只有几步,但怕晚上头晕了出了纰漏。 整理好了,晚上直接按文档,一步一步操作就可以了。一. IP 及数据库信息修改之前:主库:192.168.2.242备库:192.168.2.243修改之后:主库:192.168.2.22备库:192.168.2.23数据库版本: 10.2.0.5操作系统版本: Redhat 5.5二. Shutdown 主备库实例及监听2.1 shutdown 主库SQL> select db_unique_name,open_mode from v$database;DB_UNI
阅读全文
摘要:公司机房搬迁,Data Guard 环境需要修改IP地址。 提前整理顺便测试一下。 虽然只有几步,但怕晚上头晕了出了纰漏。 整理好了,晚上直接按文档,一步一步操作就可以了。一. IP 及数据库信息修改之前:主库:192.168.2.242备库:192.168.2.243修改之后:主库:192.168.2.22备库:192.168.2.23数据库版本: 10.2.0.5操作系统版本: Redhat 5.5二. Shutdown 主备库实例及监听2.1 shutdown 主库SQL> select db_unique_name,open_mode from v$database;DB_UNI
阅读全文
摘要:这篇文章中要讲的几个参数: DB 相关的: DBID, SID PFILE中的参数:DB_NAME,DB_DOMAIN, INSTANCE_NAME, DB_UNIQUE_NAME,SERVICE_NAMES, GLOBAL_NAME,GLOBAL_NAMES Listener.ora中参数: SID_NAME,GLOBAL_DBNAME Tnsnames.ora中参数: SERVICE_NAME,SID 一. 与DB 相关的2个参数1.1 DBID(DataBase IDentifier)Oracle 官网对DBID的解释如下: An internal, uniquely gene...
阅读全文
摘要:这篇文章中要讲的几个参数: DB 相关的: DBID, SID PFILE中的参数:DB_NAME,DB_DOMAIN, INSTANCE_NAME, DB_UNIQUE_NAME,SERVICE_NAMES, GLOBAL_NAME,GLOBAL_NAMES Listener.ora中参数: SID_NAME,GLOBAL_DBNAME Tnsnames.ora中参数: SERVICE_NAME,SID 一. 与DB 相关的2个参数1.1 DBID(DataBase IDentifier)Oracle 官网对DBID的解释如下: An internal, uniquely gene...
阅读全文
摘要:10g & 11g :Configuration of TAF(Transparent Application Failover) and Load Balancing [ID 453293.1]Modified 28-SEP-2010Type HOWTOStatus PUBLISHEDIn this DocumentGoalSolutionCONCEPTSCONFIGURATIONClient Side Load BalancingConnect Time Failover Client Side Load Balance & Connect-time Failover Co
阅读全文
摘要:10g & 11g :Configuration of TAF(Transparent Application Failover) and Load Balancing [ID 453293.1]Modified 28-SEP-2010Type HOWTOStatus PUBLISHEDIn this DocumentGoalSolutionCONCEPTSCONFIGURATIONClient Side Load BalancingConnect Time Failover Client Side Load Balance & Connect-time Failover Co
阅读全文