Linux下的启动oracle的EM的命令

1.启动数据库

  1 su - oracle
2 $sqlplus / as sysdba
3 sql>startup

2.启动监听

  1 $lsnrctl
2 LSNRCTL>start

3.启动EM

  1 $emctl start dbconsole

4:操作示例: 因为我不知道我的数据库示例是否已经启动了。于是下面示例是重启了数据库,查看了监听是否已经启动

  1 [oracle@localhost ~]$ sqlplus / as sysdba;
2
3 SQL*Plus: Release 11.2.0.3.0 Production on Tue Apr 3 15:24:51 2018
4
5 Copyright (c) 1982, 2011, Oracle. All rights reserved.
6
7
8 Connected to:
9 Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production
10 With the Partitioning, OLAP, Data Mining and Real Application Testing options
11
12 SYS@orcl> startup force
13 ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance
14 ORACLE instance started.
15
16 Total System Global Area 1221992448 bytes
17 Fixed Size 1344596 bytes
18 Variable Size 939527084 bytes
19 Database Buffers 268435456 bytes
20 Redo Buffers 12685312 bytes
21 Database mounted.
22 Database opened.
23 SYS@orcl> quit
24 Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production
25 With the Partitioning, OLAP, Data Mining and Real Application Testing options
26 [oracle@localhost ~]$ lsnrctl
27
28 LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 03-APR-2018 15:25:46
29
30 Copyright (c) 1991, 2011, Oracle. All rights reserved.
31
32 Welcome to LSNRCTL, type "help" for information.
33
34 LSNRCTL> status
35 Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1521)))
36 STATUS of the LISTENER
37 ------------------------
38 Alias LISTENER
39 Version TNSLSNR for Linux: Version 11.2.0.3.0 - Production
40 Start Date 27-MAR-2018 21:12:41
41 Uptime 6 days 18 hr. 13 min. 8 sec
42 Trace Level off
43 Security ON: Local OS Authentication
44 SNMP OFF
45 Listener Parameter File /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
46 Listener Log File /u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
47 Listening Endpoints Summary...
48 (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
49 (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
50 Services Summary...
51 Service "orcl" has 1 instance(s).
52 Instance "orcl", status READY, has 1 handler(s) for this service...
53 Service "orclXDB" has 1 instance(s).
54 Instance "orcl", status READY, has 1 handler(s) for this service...
55 The command completed successfully
56 LSNRCTL> quit
57 [oracle@localhost ~]$ emctl start dbconsole;
58 Oracle Enterprise Manager 11g Database Control Release 11.2.0.3.0
59 Copyright (c) 1996, 2011 Oracle Corporation. All rights reserved.
60 https://localhost.localdomain:1158/em/console/aboutApplication
61 Starting Oracle Enterprise Manager 11g Database Control ....... started.
62 ------------------------------------------------------------------
63 Logs are generated in directory /u01/app/oracle/product/11.2.0/db_1/localhost.localdomain_orcl/sysman/log
64 [oracle@localhost ~]$ cat /u01/app/oracle/product/11.2.0/db_1/localhost.localdomain_orcl/sysman/log
65 cat: /u01/app/oracle/product/11.2.0/db_1/localhost.localdomain_orcl/sysman/log: Is a directory
66 [oracle@localhost ~]$ cd /u01/app/oracle/product/11.2.0/db_1/localhost.localdomain_orcl/sysman/log
67 [oracle@localhost log]$ ls
68 emagentfetchlet.log emagent.log emagent.trc emdctl.log emoms.log nfsPatchPlug.log patchAgtStPlugin.log
69 emagentfetchlet.trc emagent_perl.trc emdb.nohup emdctl.trc emoms.trc pafLogs secure.log
70 [oracle@localhost log]$ cat emagent.log
71 2016-11-30 03:45:56,404 Thread-3040471936 Starting Agent 10.2.0.4.4 from /u01/app/oracle/product/11.2.0/db_1 (00701)
72 2016-11-30 03:45:59,914 Thread-3040471936 Undefined column name __intervalONNECT_DATA in expression ((gc_cr_recv < _gc_cr_recv) ? 0 : (gc_cr_recv - _gc_cr_recv))/__intervalONNECT_DATA=(SID=%SID%)))
73 (00104)
74 2016-11-30 03:45:59,914 Thread-3040471936 Undefined column name __intervalCT_DATA in expression ((gc_cur_recv < _gc_cur_recv) ? 0 : (gc_cur_recv - _gc_cur_recv))/__intervalCT_DATA=(SID=%SID%)))
75 (00104)
76 2016-11-30 03:45:59,914 Thread-3040471936 Undefined column name __intervalrvalCT_DATA in expression ((gc_cr_serv < _gc_cr_serv) ? 0 : (gc_cr_serv - _gc_cr_serv))/__intervalrvalCT_DATA=(SID=%SID%)))
77 (00104)
78 2016-11-30 03:45:59,914 Thread-3040471936 Undefined column name __intervalCT_DATA in expression ((gc_cur_serv < _gc_cur_serv) ? 0 : (gc_cur_serv - _gc_cur_serv))/__intervalCT_DATA=(SID=%SID%)))
79 (00104)
80 2016-11-30 03:45:59,914 Thread-3040471936 Undefined column name __intervalATA in expression ((msg_sent_dir < _msg_sent_dir) ? 0 : (msg_sent_dir - _msg_sent_dir))/__intervalATA=(SID=%SID%)))
81 (00104)
82 2016-11-30 03:45:59,914 Thread-3040471936 Undefined column name __intervalinterval in expression ((msg_recv_act < _msg_recv_act) ? 0 : (msg_recv_act - _msg_recv_act))/__intervalinterval=%SID%)))
83 (00104)
84 2016-11-30 03:46:00,457 Thread-3040471936 [Load Balancer Switch] InstanceProperty (snmpTimeout) is marked OPTIONAL but is being used (00506)
85 2016-11-30 03:46:03,365 Thread-3040471936 EMAgent started successfully (00702)
86 2018-04-03 15:26:15,247 Thread-3040008400 Starting Agent 10.2.0.4.4 from /u01/app/oracle/product/11.2.0/db_1 (00701)
87 2018-04-03 15:26:16,791 Thread-3040008400 Undefined column name __intervalONNECT_DATA in expression ((gc_cr_recv < _gc_cr_recv) ? 0 : (gc_cr_recv - _gc_cr_recv))/__intervalONNECT_DATA=(SID=%SID%)))
88 (00104)
89 2018-04-03 15:26:16,791 Thread-3040008400 Undefined column name __intervalCT_DATA in expression ((gc_cur_recv < _gc_cur_recv) ? 0 : (gc_cur_recv - _gc_cur_recv))/__intervalCT_DATA=(SID=%SID%)))
90 (00104)
91 2018-04-03 15:26:16,791 Thread-3040008400 Undefined column name __intervalrvalCT_DATA in expression ((gc_cr_serv < _gc_cr_serv) ? 0 : (gc_cr_serv - _gc_cr_serv))/__intervalrvalCT_DATA=(SID=%SID%)))
92 (00104)
93 2018-04-03 15:26:16,791 Thread-3040008400 Undefined column name __intervalCT_DATA in expression ((gc_cur_serv < _gc_cur_serv) ? 0 : (gc_cur_serv - _gc_cur_serv))/__intervalCT_DATA=(SID=%SID%)))
94 (00104)
95 2018-04-03 15:26:16,791 Thread-3040008400 Undefined column name __intervalATA in expression ((msg_sent_dir < _msg_sent_dir) ? 0 : (msg_sent_dir - _msg_sent_dir))/__intervalATA=(SID=%SID%)))
96 (00104)
97 2018-04-03 15:26:16,791 Thread-3040008400 Undefined column name __intervalinterval in expression ((msg_recv_act < _msg_recv_act) ? 0 : (msg_recv_act - _msg_recv_act))/__intervalinterval=%SID%)))
98 (00104)
99 2018-04-03 15:26:17,203 Thread-3040008400 [Load Balancer Switch] InstanceProperty (snmpTimeout) is marked OPTIONAL but is being used (00506)
100 2018-04-03 15:26:21,110 Thread-3040008400 EMAgent started successfully (00702)
101 [oracle@localhost log]$

本地访问地址:https://localhost:1158/em/console/aboutApplication

Linux下的启动oracle的EM的命令的更多相关文章

  1. linux 下 apache启动、停止、重启命令

    原文:linux 下 apache启动.停止.重启命令 基本的操作方法: 本文假设你的apahce安装目录为/usr/local/apache2,这些方法适合任何情况 apahce启动命令: 推荐/u ...

  2. Linux下的启动oracle服务 启动监听 开放端口操作

    尝试登录oracle 使用root用户将没有sqlplus命令 [root@localhost ~]# sqlplus /nolog bash: sqlplus: 未找到命令...     [root ...

  3. linux 下 apache启动、停止、重启命令

    基本的操作方法: 本文假设你的apahce安装目录为/usr/local/apache2,这些方法适合任何情况 apahce启动命令: 推荐/usr/local/apache2/bin/apachec ...

  4. linux下 apache启动、停止、重启命令

    假设你的apahce安装目录为/usr/local/apache2,这些方法适合任何情况 apahce启动命令:推荐/usr/local/apache2/bin/apachectl start apa ...

  5. linux下后台启动springboot项目

    linux下后台启动springboot项目 我们知道启动springboot的项目有三种方式: 运行主方法启动 使用命令 mvn spring-boot:run”在命令行启动该应用 运行“mvn p ...

  6. Linux下自动备份Oracle数据库并删除指定天数前的备份

    说明: Oracle数据库服务器 操作系统:CentOS IP:192.168.0.198 端口:1521 SID:orcl Oracle数据库版本:Oracle11gR2 具体操作: 1.root用 ...

  7. 转:Linux下同时启动两个Tomcat进行设置

    转: Linux下同时启动两个Tomcat进行设置 解压tar.gz:tar -zxvf apache-tomcat-6.0.41.tar.gz 至相应的路径下,可解压至两个不同的路径或者相同的路径下 ...

  8. Linux 下随机启动自己的应用 -请使用while(true) 不要Console.ReadKey()

    Linux 下随机启动 自己的应用 -请使用while(true) 不要Console.ReadKey() 开机启动脚本启动,某些程序无法启动 原因 例如写了一个服务,不能停止程序运行,所以主线程成不 ...

  9. linux下无法启动webdriver问题

    linux下无法启动webdriver问题: 查看是否有足够多的webdriver进程: ps -ef | grep chromedriver kill -9 `ps -ef |grepchromed ...

随机推荐

  1. 默认约束(DEFAULT)

    默认值 当插入记录时,如果没有明确为字段赋值,则自动赋予默认值. mysql> CREATE TABLE tb8( -> id SMALLINT UNSIGNED AUTO_INCREME ...

  2. tensorflow---文字识别

    读取数据的三种方法: 1. feeding : providing data when running each step : classifier.eval(feed_dict={input:my_ ...

  3. python中读取mongodb数据并保存为csv格式的文件

    import pandas as pd import matplotlib.pyplot as plt import pymongo %matplotlib inline # 连接mongodb数据库 ...

  4. KeyUp 和KeyDown 、KeyPress之间的区别

    keydown:用户在键盘上按下某按键是发生.一直按着某按键则会不断触发(opera浏览器除外). keypress:用户按下一个按键,并产生一个字符时发生(也就是类似shift.alt.ctrl之类 ...

  5. java String、StringBuffer、StringBuild、StringTokenizer

    StringBuffer线程安全.StringBuilder线程不安全 效率: StringBuilder(线程不安全) > StringBuffer(线程安全) > String Str ...

  6. oracle12.2.1 坑

    1.ORA-28040: No matching authentication protocol 解决:在Oracle用户(不是grid用户)下,将$ORACLE_HOME/network/admin ...

  7. oracle启用归档日志

    一.开启归档 1.查看归档信息 SQL> archive log list Database log mode No Archive Mode Automatic archival Disabl ...

  8. Debian 为firefox安装flash插件 以及 音频驱动

    1. flash下载地址:http://get.adobe.com/cn/flashplayer/ lv@lv:~/Downloads$ tar -zxvf flash_player_npapi_li ...

  9. SSIS服务无法登录的解决方案

    现象1:登录SSIS报权限认证失败. 授予对 Integration Services 服务的访问权限 运行 Dcomcnfg.exe. Dcomcnfg.exe 提供用于修改注册表中的某些设置的用户 ...

  10. 虚拟机配置nginx无法访问80端口

    在虚拟机中配置成功并正常启动nginx服务后,但浏览器无法访问服务,原因可能是linux中未开放80端口(nginx默认的端口为80). 1.执行该命令打开端口文件 vi /etc/sysconfig ...