重新发现Oracle太美之如何重新安装sqlplus help?

在Oracle数据库中安装sqlplus中帮助命令行的脚本在$ORACLE_HOME/sqlplus/admin/help下面。

如下所示:

[[email protected] admin]$ cd $ORACLE_HOME/sqlplus/admin

[[email protected] admin]$ ls -ltr

total 20

-rw-r--r-- 1 oracle oinstall 2118 Feb 16  2003 pupbld.sql

-rw-r--r-- 1 oracle oinstall  813 Mar  7  2006 plustrce.sql

-rw-r--r-- 1 oracle oinstall  368 Apr 10  2011 glogin.sql

-rw-r--r-- 1 oracle oinstall  226 Jul 17  2013 libsqlplus.def

drwxr-xr-x 2 oracle oinstall 4096 May 14 02:39 help

[[email protected] admin]$ cd help

[[email protected] help]$ ls -ltr

total 84

-rw-r--r-- 1 oracle oinstall   265 Feb 16  2003 helpbld.sql

-rw-r--r-- 1 oracle oinstall  2154 Jan  3  2011 hlpbld.sql

-rw-r--r-- 1 oracle oinstall   366 Jan  3  2011 helpdrop.sql

-rw-r--r-- 1 oracle oinstall 71817 Aug 16  2012 helpus.sql

[[email protected] help]$ pwd

/u01/app/db11g/product/11.2.0/dbhome_1/sqlplus/admin/help

[[email protected] help]$

helpus.sql---->>>被helpbld.sql所调用,是往sqlplus里面插入文本的帮助内容

helpdrop.sql---->>>顾名思义,就是删除帮助表的,不过要以system用户来执行脚本

HLPBLD.SQL ---->>>to drop and create new help tables.

安装步骤如下:

1. Log in to SQL*Plus as the SYSTEM user with:

SQLPLUS SYSTEM

2. In UNIX run the SQL script, HLPBLD.SQL, from SQL*Plus with:

@$ORACLE_HOME/SQLPLUS/ADMIN/HELP/HLPBLD.SQL HELPUS.SQL

In Windows run the SQL script, HLPBLD.SQL, from SQL*Plus with:

@ORACLE_HOME\SQLPLUS\ADMIN\HELP\HLPBLD.SQL HELPUS.SQL

The HLPBLD.SQL script creates and loads the help tables.

drop更简单,都是官方文档上直接做就行

----------->>>这章没有啥可以啃的骨头,过过眼即可。

重新发现Oracle太美之如何重新安装sqlplus help?

时间: 2024-08-24 04:12:00

重新发现Oracle太美之如何重新安装sqlplus help?的相关文章

重新发现Oracle太美之awr相关脚本简单介绍

大家知道在$ORACLE_HOME/rdbms/admin下,有如下的相关脚本(我的环境为11.2.0.4.2): [[email protected] ~]$ cd $ORACLE_HOME/rdbms/admin [[email protected] admin]$ ls -ltr awr* -rw-r--r-- 1 oracle oinstall  1999 Oct 24  2003 awrrpt.sql -rw-r--r-- 1 oracle oinstall 49166 Sep  1

重新发现Oracle太美之orainstRoot.sh

我们安装数据库软件的时候,都要会执行orainstRoot.sh,今天就来仔细看看这个脚本是来干嘛的. 平台为RedHat 6.4 x64位的,数据库版本为11.2.0.4.2 下面是脚本的内容 [[email protected] ~]$ cd /u01/app/oraInventory/ [[email protected] oraInventory]$ ls -ltr total 24 drwxrwx--- 2 oracle oinstall 4096 Oct 30  2013 Conte

重新发现Oracle太美之glogin.sql

刚开始接触Oracle的时候,有时候一登陆一个生产环境,经常会出现下面的情况: [[email protected] app]$ sqlplus / as sysdba SQL*Plus: Release 11.2.0.4.0 Production on Thu May 15 03:17:34 2014 Copyright (c) 1982, 2013, Oracle.  All rights reserved. Connected to: Oracle Database 11g Enterpr

重新发现Oracle太美之root.sh

如果你执行下以下命令基本上会在Oracle软件目录下会发现两个root.sh的脚本 [[email protected] Templates]$ find /u01/ -name root.sh |xargs ls -ltr -rwxrwx--- 1 oracle oinstall  10 May 14 02:37 /u01/app/db11g/product/11.2.0/dbhome_1/inventory/Templates/root.sh -rwxr-x--- 1 oracle oins

又一次发现Oracle太美之orainstRoot.sh

又一次发现Oracle太美之orainstRoot.sh 我们安装数据库软件的时候,都要会运行orainstRoot.sh,今天就来细致看看这个脚本是来干嘛的. 平台为RedHat 6.4 x64位的,数据库版本号为11.2.0.4.2 以下是脚本的内容 [[email protected] ~]$ cd /u01/app/oraInventory/ [[email protected] oraInventory]$ ls -ltr total 24 drwxrwx--- 2 oracle oi

又一次发现Oracle太美之root.sh

假设你运行下下面命令基本上会在Oracle软件文件夹下会发现两个root.sh的脚本 [[email protected] Templates]$ find /u01/ -name root.sh |xargs ls -ltr -rwxrwx--- 1 oracle oinstall  10 May 14 02:37 /u01/app/db11g/product/11.2.0/dbhome_1/inventory/Templates/root.sh -rwxr-x--- 1 oracle oin

又一次发现Oracle太美之awr相关脚本简介

大家知道在$ORACLE_HOME/rdbms/admin下,有例如以下的相关脚本(我的环境为11.2.0.4.2): [[email protected] ~]$ cd $ORACLE_HOME/rdbms/admin [[email protected] admin]$ ls -ltr awr* -rw-r--r-- 1 oracle oinstall ?1999 Oct 24 ?2003 awrrpt.sql -rw-r--r-- 1 oracle oinstall 49166 Sep ?

又一次发现Oracle太美之glogin.sql

刚開始接触Oracle的时候,有时候一登陆一个生产环境.常常会出现以下的情况: [[email protected] app]$ sqlplus / as sysdba SQL*Plus: Release 11.2.0.4.0 Production on Thu May 15 03:17:34 2014 Copyright (c) 1982, 2013, Oracle.  All rights reserved. Connected to: Oracle Database 11g Enterpr

zabbix自动发现oracle表空间并监控其使用率

监控需求 Oracle表空间使用率实时监控,当表空间使用率达到95%时触发告警机制.Oracle表空间分为系统默认表空间和用户创建的表空间,而表空间又有自动扩展和非自动扩展两种类型,用户(DBA)在创建表空间时可以根据应用需求指定是否开启表空间自动扩展.那么在这里我们需要分析一个监控策略,就是当zabbix监控到某个表空间使用率达到95%,那么就让触发器触发警告(Warning)信息,并发送邮件给DBA或管理者.当检测到表空间没有开启自动扩展时,则触发Information信息.说明一下:ora