现在的位置: 首页 > 综合 > 正文

Oracel9i的使用和oemapp相关命令

2013年10月02日 ⁄ 综合 ⁄ 共 5009字 ⁄ 字号 评论关闭
Oracel9i的使用

  安装完Oracle数据库后会自动启动,下面可以进行一下实际的操作。
  以oracle用户身份登陆数据库,可一个终端窗口(Terminal),进行如下的操作:

     [oracle@Linux oracle]$ sqlplus "/ as sysdba"//以sysdba用户登陆数据库

   出现如下字符提示:
   ――――――――――――――――――――――――――――――
   SQL*Plus: Release 9.2.0.1.0 - Production on Thu Feb 26 15:53:31 2004
   Copyright(c) 1982,2002, Oracle Corporation. All rights reserved.

   Connected to:
   Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
   With the Partitioning OLAP and Oracle Data Mining options
   JServer Release 9.2.0.1.0 – Production

   SQL>
   ――――――――――――――――――――――――――――――
   
   运行shudown命令关闭数据库,操作如下:
   ――――――――――――――――――――――――――――――
   SQL> shutdown
   Database closed.
   Database dismounted.
   ORACLE instance shut down.
   SQL>  
   ――――――――――――――――――――――――――――――

   启动Oracle 9i 数据库,操作如下:
   ――――――――――――――――――――――――――――――
   [oracle@Linux oracle]$ sqlplus "/ as sysdba"

   SQL*Plus: Release 9.2.0.1.0 - Production on Thu Feb 26 16:00:59 2004
   Copyright (c) 1982,2002, Oracle Corporation. All rights reserved.
   Connected to an idle instance.

   SQL> startup

   Oracle instance started.

   Total System Global Area 235999352 bytes
   Fixed Size                  450680 bytes
   Variable Size            201326592 bytes
   Database Buffers          33554432 bytes
   Redo Buffers                667648 bytes
   Database mounted.
   Database opened.
   SQL>
   ――――――――――――――――――――――――――――――

  启动Oracle 9i监听程序,操作如下:
  说明:Oracle的监听程序主要是为客户端的连接提供接口的。
  ――――――――――――――――――――――――――――――
   [oracle@Linux oracle]$ lsnrctl

   LSNRCTL for Linux: Version 9.2.0.1.0 - Production on 26-FEB-2004 16:10:17
   Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
   Welcome to LSNRCTL, type "help" for information.
 
   LSNRCTL> start
   Starting /opt/oracle9i/product/9.2.0/bin/tnslsnr: please wait...

   TNSLSNR for Linux: Version 9.2.0.1.0 - Production
   System parameter file is /opt/oracle9i/product/9.2.0/network/admin/listener.ora
   Log messages written to /opt/oracle9i/product/9.2.0/network/log/listener.log
   Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
   Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=Linux)(PORT=1521)))

   Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
   STATUS of the LISTENER
   ------------------------
   Alias              LISTENER
   Version            TNSLSNR for Linux: Version 9.2.0.1.0 - Production
   Start Date         26-FEB-2004 15:28:23
   Uptime             0 days 0 hr. 0 min. 0 sec
   Trace Level        off
   Security           OFF
   SNMP               OFF
   Listener Parameter File   /opt/oracle9i/product/9.2.0/network/admin/listener.ora

   Listener Log File         /opt/oracle9i/product/9.2.0/network/log/listener.log

   Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=Linux)(PORT=1521)))
   Services Summary...
   Service "ORCL.SOFT" has 1 instance(s).
   Instance "ORCL", status UNKNOWN, has 1 handler(s) for this service...
   Service "PLSExtProc" has 1 instance(s).
   Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
   The command completed successfully
   LSNRCTL>
  ――――――――――――――――――――――――――――――

  关闭Oracle 9i监听程序,操作如下:
  ――――――――――――――――――――――――――――――
   [oracle@Linux oracle]$ lsnrctl

    LSNRCTL for Linux: Version 9.2.0.1.0 - Production on 26-FEB-2004 16:15:28
    Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
    Welcome to LSNRCTL, type "help" for information.

    LSNRCTL> stop
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
    The command completed successfully
    LSNRCTL>
  ――――――――――――――――――――――――――――――

   启动Oracle Web Server,操作如下:
   ――――――――――――――――――――――――――――――
    [oracle@Linux oracle]$cd $Oracle_HOME/Apache/Apache/bin
    [oracle@Linux oracle]$./startJServ.sh
    /opt/oracle9i/product/9.2.0/Apache/Apache/bin/apachectl start: httpd started
    ――――――――――――――――――――――――――――――

   启动Oracle Web Server后默认的端口号是7777,在客户端的浏览器地址栏中输入
     
     http://xxx.xx.xxx.xxx:7777/

   其中,xxx.xx.xxx.xxx代表IP地址,或用网络机器名也可。如果浏览器出现 ORACLE HTTP Server的页面,则说明Oracle Web Server运行正常。

   关闭Oracle Web Server, 操作如下:
   ――――――――――――――――――――――――――――――
    [oracle@Linux oracle]$cd $Oracle_HOME/Apache/Apache/bin
    [oracle@Linux oracle]$./stopJServ.sh
     /opt/oracle9i/product/9.2.0/Apache/Apache/bin/apachectl stop: httpd stopped
   ――――――――――――――――――――――――――――――

   启动Database Configuration Assistant,操作命令如下:
   ――――――――――――――――――――――――――――――
    [oracle@Linux oracle]$dbca&
   ――――――――――――――――――――――――――――――

   启动Oracle Net Configuration Assistant,操作命令如下:
   ――――――――――――――――――――――――――――――
    [oracle@Linux oracle]$netca&
   ――――――――――――――――――――――――――――――

   启动Enterprise Manager Configuration Assistant,操作命令如下:
   ――――――――――――――――――――――――――――――
    [oracle@Linux oracle]$emca&
   ――――――――――――――――――――――――――――――

   oemapp相关命令,如下:
   ――――――――――――――――――――――――――――――
   [oracle@Linux oracle]$oemapp dbastudio
   [oracle@Linux oracle]$oemapp console
   [oracle@Linux oracle]$oemapp txtmgr
   [oracle@Linux oracle]$oemapp ocmcli
   [oracle@Linux oracle]$oemapp lmviewer
   [oracle@Linux oracle]$oemapp ocm
   [oracle@Linux oracle]$oemapp esmsrv
   [oracle@Linux oracle]$oemapp opm
   [oracle@Linux oracle]$oemapp cpta
   [oracle@Linux oracle]$oemapp esm
   [oracle@Linux oracle]$oemapp jdbctest
   [oracle@Linux oracle]$oemapp oemutil
   [oracle@Linux oracle]$oemapp topsess
   [oracle@Linux oracle]$oemapp dataguard
   [oracle@Linux oracle]$oemapp worksheet
   [oracle@Linux oracle]$oemapp cp
   [oracle@Linux oracle]$oemapp sdoadvisor
   [oracle@Linux oracle]$oemapp pm
   ――――――――――――――――――――――――――――――
 

抱歉!评论已关闭.