Oracel9i的使用和oemapp相关命令
来源:互联网 发布:arena软件图片 编辑:程序博客网 时间:2024/05/22 08:00
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
――――――――――――――――――――――――――――――
安装完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
――――――――――――――――――――――――――――――
- Oracel9i的使用和oemapp相关命令
- oemapp相关命令
- Node.js —— npm 的使用和相关命令
- tar命令的相关使用
- Linux 用户和组相关命令使用
- yum命令不能使用的相关错误
- dos中相关命令的使用
- RubyGems rvm相关命令的使用
- redis的使用详解以及相关命令
- Linux开发使用到的相关命令
- Git的使用以及相关命令
- Linux 查看磁盘分区、文件系统、磁盘的使用情况相关的命令和工具介绍
- Linux 查看磁盘分区、文件系统、磁盘的使用情况相关的命令和工具介绍
- Linux 查看磁盘分区、文件系统、磁盘的使用情况相关的命令和工具介绍
- Linux下和编译器相关的命令
- sqlite3数据库和表的相关命令
- 与目录相关的命令和操作
- 和用户与组相关的命令
- 八皇后问题
- 离开公司感言
- shell技巧
- 什么是shell
- 在redhat Linux9下安装Oracle9.2.0的一点经验
- Oracel9i的使用和oemapp相关命令
- 浅复制与深复制
- 几种不同UNIX系统常用的动态连接库建立的参数说明
- 基于Spring的DAO层设计
- 技术协议
- 感觉自己懒,或者自私
- Apache在linux下处理中文文件名的解决
- Win 95下内存映射文件的工作原理及使用方法
- UNIX中的C标准库