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. webxml样板

    <!--<!DOCTYPE web-app PUBLIC--> <!--"-//Sun Microsystems, Inc.//DTD Web Application ...

  2. python中的*和**的用途

    def function_with_one_star(*t):    print(t, type(t)) def function_with_two_stars(**d)    print(d, ty ...

  3. 第27月第28天 iOS bundle

    1. 7.如果将自己打包的bundle给别人使用,别人在打包上传过程中可能会遇到错误提示如: ERROR ITMS-90171: "Invalid Bundle Structure - Th ...

  4. 第25月第11天 deeplearning.ai

    1.网易云课堂 深度学习工程师 点击进入课程地址(英文)(收费) 点击进入课程地址(中文)(免费) 第一门 神经网络和深度学习 第二门 改善神经网络 第三门 结构化机器学习项目 第四门 卷积神经网络 ...

  5. js 中编码(encode)和解码(decode)的三种方法

    js对文字进行编码涉及3个函数:escape,encodeURI,encodeURIComponent,相应3个解码函数:unescape,decodeURI,decodeURIComponent 下 ...

  6. mybatis批量更新报错

    批量更新sql <update id="updateAutoAppraiseInfo" parameterType="Object"> <fo ...

  7. Shiro入门 - 通过ini文件进行认证

    导入依赖 <dependency> <groupId>org.apache.shiro</groupId> <artifactId>shiro-core ...

  8. javascript/ajax和php 进阶 之 项目实战

    1,使用异步思想做一个下拉列表,能够选择和展示数据库中对应的信息. 1,事件知识:所有的事件可参照:https://www.jb51.net/html5/459444.html 2,js中this补充 ...

  9. RabbitMQ简单应用の简单队列

    (1)首先创建一个maven项目: pom.xml,重点是配置RabbitMQ <dependencies> <dependency> <groupId>junit ...

  10. RabbitMQ四种交换机类型介绍

    RabbitMQ  原文地址: https://baijiahao.baidu.com/s?id=1577456875919174629&wfr=spider&for=pc 最新版本的 ...