Oracle under Linux - emctl start dbconsole command failed

oracle dbconsole 起不来解决办法 oracle 中若遇到dbconsole 起不来的问题,此文档中提供了解决办法 立即下载

After certain time of the testing on the Oracle 11.2.0.1.0 on Linux, encountered below errors.

[tom@ocp ~]$ emctl start dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
https://ocp:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 11g Database Control ............................................................................................. failed.
------------------------------------------------------------------
Logs are generated in directory /u01/app/tom/product/11.2.0/dbhome_1/ocp_orcl/sysman/log

Check the log, it shows as below,

[tom@ocp ~]$ emctl status dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
https://ocp:1158/em/console/aboutApplication
Oracle Enterprise Manager 11g is not running

[tom@ocp ~]$ netstat -ntulp | grep 1158
(Not all processes could be identified, non-owned process info

[tom@ocp ~]$ tail /u01/app/tom/product/11.2.0/dbhome_1/ocp_orcl/sysman/log/emagent.log
2019-07-25 11:21:51,431 Thread-2876659520 ORAXML-229, 文件=file:/u01/app/tom/product/11.2.0/dbhome_1/ocp_orcl/sysman/emd/lastupld.xml, 行=0, 消息=LPX-00229: input source is empty (01006)
2019-07-25 11:21:51,431 Thread-2876659520 启动代理 10.2.0.4.2 (从 /u01/app/tom/product/11.2.0/dbhome_1) (00701)
2019-07-25 11:21:51,480 Thread-2876659520 [Oracle Exadata Storage Server] InstanceProperty (MgmtIPAddr2) 已标记为 OPTIONAL, 但正在使用中 (00506)
2019-07-25 11:21:51,592 Thread-2876659520 [Load Balancer Switch] InstanceProperty (snmpTimeout) 已标记为 OPTIONAL, 但正在使用中 (00506)
2019-07-25 11:21:51,595 Thread-2876659520 <代理启动> : 初始化 TARGET MANAGER 失败 (00724)
2019-07-25 11:30:22,127 Thread-1127233344 ORAXML-229, 文件=file:/u01/app/tom/product/11.2.0/dbhome_1/ocp_orcl/sysman/emd/lastupld.xml, 行=0, 消息=LPX-00229: input source is empty (01006)
2019-07-25 11:30:22,127 Thread-1127233344 启动代理 10.2.0.4.2 (从 /u01/app/tom/product/11.2.0/dbhome_1) (00701)
2019-07-25 11:30:22,197 Thread-1127233344 [Oracle Exadata Storage Server] InstanceProperty (MgmtIPAddr2) 已标记为 OPTIONAL, 但正在使用中 (00506)
2019-07-25 11:30:22,317 Thread-1127233344 [Load Balancer Switch] InstanceProperty (snmpTimeout) 已标记为 OPTIONAL, 但正在使用中 (00506)
2019-07-25 11:30:22,321 Thread-1127233344 <代理启动> : 初始化 TARGET MANAGER 失败 (00724)


[tom@ocp ~]$ tail /u01/app/tom/product/11.2.0/dbhome_1/ocp_orcl/sysman/log/emdb.nohup
19/07/25 11:30:25 isOMSSecure = 1 isOMSSecureLocked = 1
19/07/25 11:30:29 ExtendClusterIntegration: init: start
19/07/25 11:30:29 ExtendClusterIntegration: init: end
19/07/25 11:30:29 ProvCommonIntegration.init, registering the Page Handlers and Page Segment Handlers
19/07/25 11:30:30 PAF Integration init BEGIN
19/07/25 11:30:30 PAF Integration init END
--- DBConsole internal stop. No OC4J admin passwd hence hard stop. ---
----- Thu Jul 25 11:30:30 2019::Commiting Process death. -----
----- Thu Jul 25 11:30:30 2019::Exiting watchdog loop
 -----



[tom@ocp ~]$ tail /u01/app/tom/product/11.2.0/dbhome_1/ocp_orcl/sysman/log/emdctl.trc
2019-07-25 11:33:13,888 Thread-2726082368 WARN  http: nmehl_connect_internal: connect failed to (ocp:1158): Connection refused (error = 111)
2019-07-25 11:33:15,922 Thread-4011067200 WARN  http: nmehl_connect_internal: connect failed to (ocp:1158): Connection refused (error = 111)
2019-07-25 11:33:17,954 Thread-2068617024 WARN  http: nmehl_connect_internal: connect failed to (ocp:1158): Connection refused (error = 111)
2019-07-25 11:33:19,979 Thread-2846291776 WARN  http: nmehl_connect_internal: connect failed to (ocp:1158): Connection refused (error = 111)
2019-07-25 11:33:22,030 Thread-3364038464 WARN  http: nmehl_connect_internal: connect failed to (ocp:1158): Connection refused (error = 111)
2019-07-25 11:33:24,088 Thread-265647936 WARN  http: nmehl_connect_internal: connect failed to (ocp:1158): Connection refused (error = 111)
2019-07-25 11:33:26,137 Thread-4226950976 WARN  http: nmehl_connect_internal: connect failed to (ocp:1158): Connection refused (error = 111)
2019-07-25 11:33:28,182 Thread-2738038592 WARN  http: nmehl_connect_internal: connect failed to (ocp:1158): Connection refused (error = 111)
2019-07-25 11:33:30,238 Thread-1064294208 WARN  http: nmehl_connect_internal: connect failed to (ocp:1158): Connection refused (error = 111)
2019-07-25 11:33:32,285 Thread-109283136 WARN  http: nmehl_connect_internal: connect failed to (ocp:1158): Connection refused (error = 111)



[tom@ocp ~]$ tail /u01/app/tom/product/11.2.0/dbhome_1/ocp_orcl/sysman/log/emoms.log
2019-07-25 11:30:26,820 [OC4J Launcher] ERROR app.ContextInitializer contextInitialized.420 - Integration Class not found: oracle.sysman.emCLI.CLIDownloadIntg
2019-07-25 11:30:27,366 [OC4J Launcher] ERROR app.ContextInitializer contextInitialized.420 - Integration Class not found: oracle.sysman.eml.target.slb.common.SLBIntegration
2019-07-25 11:30:29,893 [OC4J Launcher] ERROR app.ContextInitializer contextInitialized.420 - Integration Class not found: oracle.sysman.pp.asprov.ui.intg.ASProvisioningIntegration
2019-07-25 11:30:29,894 [OC4J Launcher] ERROR app.ContextInitializer contextInitialized.420 - Integration Class not found: oracle.sysman.pp.paf.sample.ui.intg.PAFDemoIntegration
2019-07-25 11:30:29,942 [OC4J Launcher] ERROR app.ContextInitializer contextInitialized.420 - Integration Class not found: oracle.sysman.pp.sidb.ui.intg.SIDBProvisioningIntegration
2019-07-25 11:30:30,086 [OC4J Launcher] ERROR app.ContextInitializer contextInitialized.420 - Integration Class not found: oracle.sysman.pp.racprov.ui.intg.RACProvIntegration
2019-07-25 11:30:30,087 [OC4J Launcher] ERROR app.ContextInitializer contextInitialized.420 - Integration Class not found: oracle.sysman.pp.ec.ui.intg.ExtendClusterIntegration
2019-07-25 11:30:30,088 [OC4J Launcher] ERROR app.ContextInitializer contextInitialized.420 - Integration Class not found: oracle.sysman.pp.dn.ui.intg.DltNodeIntegration
2019-07-25 11:30:30,089 [OC4J Launcher] ERROR app.ContextInitializer contextInitialized.420 - Integration Class not found: oracle.sysman.pp.common.ui.intg.ProvCommonIntegration
2019-07-25 11:30:30,090 [OC4J Launcher] ERROR app.ContextInitializer contextInitialized.420 - Integration Class not found: oracle.sysman.pp.bpelprov.ui.intg.BPELProvisioningIntegration

Not sure where the problem is, found a solution, though might be the stupid solution, but it was working.

Follow the link How can I start Oracle Enterprise manager after restarting the Red Hat Server?
Try to re-configure em (Enterprise Manager) completely.

[tom@ocp dbhome_1]$ emca -config dbcontrol db

STARTED EMCA at Jul 25, 2019 5:32:45 PM
EM Configuration Assistant, Version 11.2.0.0.2 Production
Copyright (c) 2003, 2005, Oracle.  All rights reserved.

Enter the following information:
Database SID: orcl
Database Control is already configured for the database orcl
You have chosen to configure Database Control for managing the database orcl
This will remove the existing configuration and the default settings and perform a fresh configuration
Do you wish to continue? [yes(Y)/no(N)]: Y
Listener ORACLE_HOME [ /u01/app/tom/product/11.2.0/dbhome_1 ]:
Password for SYS user: [oracle]
Password for DBSNMP user: [oracle]
Password for SYSMAN user: [oracle]
Email address for notifications (optional):
Outgoing Mail (SMTP) server for notifications (optional):
-----------------------------------------------------------------

You have specified the following settings

Database ORACLE_HOME ................ /u01/app/tom/product/11.2.0/dbhome_1

Local hostname ................ ocp
Listener ORACLE_HOME ................ /u01/app/tom/product/11.2.0/dbhome_1
Listener port number ................ 1521
Database SID ................ orcl
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............

-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: Y
Jul 25, 2019 5:33:38 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u01/app/tom/cfgtoollogs/emca/orcl/emca_2019_07_25_17_32_45.log.
Jul 25, 2019 5:33:38 PM oracle.sysman.emcp.util.DBControlUtil stopOMS
INFO: Stopping Database Control (this may take a while) ...
log4j:ERROR No appenders could be found for category (emSDK.config).
log4j:ERROR Please initialize the log4j system properly.
Jul 25, 2019 5:33:40 PM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository
INFO: Uploading configuration data to EM repository (this may take a while) ...
Jul 25, 2019 5:34:26 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Uploaded configuration data successfully
Jul 25, 2019 5:34:32 PM oracle.sysman.emcp.util.DBControlUtil configureSoftwareLib
INFO: Software library is already configured.
Jul 25, 2019 5:34:32 PM oracle.sysman.emcp.util.DBControlUtil configureSoftwareLib
INFO:  EM_SWLIB_STAGE_LOC (value) will be ignored.
Jul 25, 2019 5:34:32 PM oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary
INFO: Deploying Provisioning archives ...
Jul 25, 2019 5:35:09 PM oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary
INFO: Provisioning archives deployed successfully.
Jul 25, 2019 5:35:09 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Securing Database Control (this may take a while) ...
Jul 25, 2019 5:35:13 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Database Control secured successfully.
Jul 25, 2019 5:35:13 PM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
Jul 25, 2019 5:35:38 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully
Jul 25, 2019 5:35:38 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: >>>>>>>>>>> The Database Control URL is https://ocp:1158/em <<<<<<<<<<<
Jul 25, 2019 5:35:40 PM oracle.sysman.emcp.EMDBPostConfig invoke
WARNING:
************************  WARNING  ************************

Management Repository has been placed in secure mode wherein Enterprise Manager data will be encrypted.  The encryption key has been placed in the file: /u01/app/tom/product/11.2.0/dbhome_1/ocp_orcl/sysman/config/emkey.ora.   Please ensure this file is backed up as the encrypted data will become unusable if this file is lost.

***********************************************************
Enterprise Manager configuration completed successfully
FINISHED EMCA at Jul 25, 2019 5:35:40 PM

After re-configure, the problem was resolved.

[tom@ocp dbhome_1]$ emctl start dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
https://ocp:1158/em/console/aboutApplication
 - An instance of Oracle Enterprise Manager 11g Database Control is already running.

Check the link https://192.168.26.130:1158/em/, it is working properly now.

Reference

How can I start Oracle Enterprise manager after restarting the Red Hat Server?

智能车竞赛蚂蚁搬家组:NXP-MicroPython与STC单片机协同搬运策略解析 本文深入解析智能车竞赛蚂蚁搬家组中NXP-MicroPython与STC单片机的协同搬运策略。通过硬件选型、通信架构设计、效率优化及实战经验分享,展示了如何利用NXP-MicroPython的实时控制与STC单片机的感知导航优势,实现高效多智能体协同作业,为参赛团队提供实用技术参考。 阅读详情

相关推荐

Modelsim安装教程以及管理员身份运行patch_dll.bat时找不到文件mgls.dll的解决

Modesim安装教程 Modesim版本有很多,但是安装方式大都相同,我们以modesim.10.5为例,电脑使用的是win10 64位,讲一下安装过程中的步骤以及出现问题的解决方法 一 安装 1.首先解压安装包,在解压的安装包内选择应用程序,右键选择管理员运行。 2.稍等一会,有的电脑会弹出是否允许modesim进行更改,选择 是 即可,然后出现下面的界面,点击下一步。 3.弹出此界面选择安装路径,选择安装路径,我是在D盘新建的文件夹,直接把文件夹中的路径复制在框内。文件夹名称切记不要带中文 4.

weixin_48564372的博客 1万+

修改sysman和dbsnmp密码后,EM无法启动

昨天登陆EM后提示sysman与dbsnmp用户密码过期,在该界面修改密码后,em再也进不去。 emctl status dbconsole 已关闭 emctl start dbconsole 失败 vi $ORACLE_HOME/host_sid/sysman/log/emdb.nohup [code="log"] ----- Tue Apr 9 16:09:16 2013::oms...

yuyuncheng的专栏 667

Eclipse 数据空间组件(EDC)项目介绍

在当今数字经济的背景下,数据成为了新的“石油”。但与石油不同的是,数据可以无限共享且再生。然而,如何在保持数据主权的前提下实现高效、安全的数据共享,成为了企业和组织面临的主要挑战。这时,**Eclipse 数据空间组件(Eclipse Dataspace Components, EDC)**应运而生,它为企业在多方参与的数据交换中提供了一个标准化、可扩展的解决方案。数据空间不仅是一个多组织间的数据共享协议,还是一套支撑这些协议运行的技术基础设施。

m0_74331272的博客 4615

oem无法正常使用解决方法

1.oem安装 想启动oem发现未安装 $ emctl status dbconsole OC4J Configuration issue. /data/Oracle/oracle/product/11.2.0/db_1/oc4j/j2ee/OC4J_DBConsole_host021_bakdb not found.  使用emca安装 $emca -config dbcontrol

lg2512的专栏 3862

宇树智能人形机器人模块化腿部动力系统技术拆解

o电机防摔防护板(3.1.5.1)→端盖总成(3.1.5.2)→电机外壳(3.1.5.4)的冲击力传递路径;o散热风扇(3.1.3.1)推动冷风→大腿基座腔体→散热片组(3.1.5.7)→中空大腿杆排出;o防御专利:覆盖“关节热管理风道接口标准”、“抗冲击结构身份编码”;o大腿杆腔体(3.1.3.4)内置反平行四边形机构,避免连杆外露。:力传感器(3.1.8.4.2)仅部署于足端,缺失关节力矩反馈。:更换行星减速器(3.1.5.5)需拆解整个电机模块;o热量传导路径:电机定子→外壳→散热片组。

weixin_50955533的博客 1251

Haystack框架实战:从零构建企业级智能问答系统

自然语言处理(NLP)技术通过让计算机理解和生成人类语言,正在深刻改变信息检索与交互方式。其核心原理在于将文本转化为机器可处理的向量表示,并通过语义相似度计算实现精准匹配。这一技术价值在于能够从海量非结构化数据中快速提取精准信息,大幅提升知识获取效率。在工程实践中,检索增强生成(RAG)架构结合了密集向量检索与大语言模型生成能力,成为构建智能问答、知识库助手等应用的主流方案。该架构通过将用户查询与文档库进行语义匹配,并为大语言模型提供精准上下文,有效提升了回答的准确性与可追溯性。本文以Haystack这一生

weixin_42521032的博客 581

unwrapped oracle,求助CentOS 5.4 +oracle 11g R2 ASM 模式 安装后 EM 启动后登陆不进去!

求助CentOS 5.4 +oracle 11g R2 ASM 模式 安装后 EM 启动后登陆不进去!按照安装文档,正常安装后,em 画面也有就是报网页错误,数据库正常,grid 用户tnsping 数据库SID出错,[grid@oracle11g ~]$ tnsping queryTNS Ping Utility for Linux: Version 11.2.0.1.0 - Productio...

weixin_35297190的博客 364

基于STM32+OneNet设计的物联网智慧路灯(100)

本次设计的智能路灯采用STM32芯片和OneNet物联网平台进行连接,开发出支持太阳能充电锂电池供电、GPS定位上传位置信息、手动/自动控制路灯开关、环境光照调节、红外传感器检测周围人员、空气质量监测等多项功能。同时,当路灯发生异常情况时,系统可以自动发送邮件或短信到指定邮箱或电话。

7740

OBIEE 10G重置oc4jadmin 密码

1.打开OracleBI\oc4j_bi\j2ee\home\config目录下的system-jazn-data.xml文件,如下 修改前 oc4jadmin OC4J Administrator 5776E000ECE111E0BF45678F470343A9 OC4J Administrator {903}niblJlzsVJ81wXJQt5Sx8uQKBU4HU/FN2GY

ygj26's blog 2583

工业相机通用SDK封装实战:C#硬件抽象层(HAL)实现多品牌无缝切换

本文介绍了一种解决工业相机SDK碎片化问题的通用解决方案。作者基于多年工业视觉项目经验,提出通过硬件抽象层(HAL)和适配器模式封装不同品牌相机的SDK差异,实现统一的相机操作接口。文章详细分析了传统直接对接SDK方式的四大痛点:接口碎片化、维护成本高、业务耦合度高和稳定性差,并给出了分层架构设计方案。该方案采用三层架构(业务层、抽象层、实现层),遵循最小接口原则和高内聚低耦合等设计理念,定义了包括触发模式、像素格式等通用枚举类型,以及图像数据结构等核心抽象。最终实现的HAL层能够支持多种品牌相机,显著降低

这里只有干货:从 Modbus 到 MES,从 YOLO 到工控机部署;65 篇现场排障案例,每篇都写到改哪一行。 585

Prometheus+Grafana+alertmanager+PrometheusAlert监控告警 实现飞书告警

以上 是以grafana做的邮件告警,但是感觉邮件很少人看。下面是以webhook 可以接入。启动alertmanager (设置 开机在启动)下载prometheusalter 配置文件。这里的告警是基于grafana上搭建的。我们启动PrometheusAlert。写完之后进行重启Prometheus。prometheus 的告警规则。测试 基于我们生产环境做的文档。然后在grafana上导模板。上导入模板就可以 直接引用。访问 grafana页面。重启一下grafana。

墨痕诉清风的博客 877

Environment variable ORACLE_UNQNAME not defined. Please set ORACLE_UNQNAME to database unique name

<br />解决方法:<br />     在启动的时候先设置一下oracle_unqname<br />                    set oracle_unqname=$ORACLE_SID<br /> <br />如果还是失败,在环境变量中添加:<br />     vi ~/.bash_profile<br /> <br />    在最后添加:export  ORACLE_UNQNAME=$ORACLE_SID    <br /> <br /> <br />        启动dbco

DreamDB的专栏 4万+

反爬虫:对抗最新反爬技术 Cloudflare详解

本文针对Cloudflare最新反爬机制提供完整解决方案,覆盖TLS指纹、行为轨迹、设备指纹等检测场景。文章首先分析Cloudflare的三重检测体系(TLS指纹、行为指纹、设备指纹)及其拦截表现,随后提出四种绕过方案:1)使用curl_cffi模拟浏览器TLS指纹;2)通过undetected-chromedriver移除自动化特征;3)Playwright结合stealth插件模拟人类行为;4)动态请求调度策略。重点推荐轻量级Python方案curl_cffi和浏览器自动化方案Playwright-st

数据知道的博客 4648

oracle enterprise manager 11g 下载,Starting Oracle Enterprise Manager 11g Database Control ...failed...

plus:emdctl.trc2010-01-26 18:57:53,873 Thread-3043346112 ERROR main: nmectla_agentctl: Error connecting to https://linux1:3938/emd/main. Returning status code 12010-01-26 18:57:56,772 Thread-304362464...

weixin_39755824的博客 465

IMSL CNL 7.0.0 (x86-64)Crack

IMSL CNL 7.0.0 (x86-64)Crack intel的算法库破解文件,这是C++版本的破解文件

jre9下载 jdk9

(Java SE Runtime Environment 9.0) 9.0u175 官方最新版 【x86|x64】

linux设置oracle开机自启动,linux下oracle设置开机自启动实现方法

一、在Linux下启动Oracle登录到CentOS,切换到oracle用户权限# su �C oracle接着输入:$ sqlplus "/as sysdba"原本的画面会变为SQL>接着请输入SQL> startup就可以正常的启动数据库了。 另外停止数据库的指令如下:SQL> shutdown immediate二、检查Oracle DB监听器是否正常回到终端机模式,输入:...

weixin_42499681的博客 2410

文档:亲测可用解决vnc灰屏,黑屏,鼠标大黑叉情况

主要解决vnc-viewer灰屏,黑屏,鼠标大黑叉等现象,详细见文档。

10g异机恢复后EM无法启动故障处理一例

之前在自己的测试环境上做了个异机恢复,原来的库上是配置过EM的,但是在恢复的库上去启动EM就报错了,下面看具体解决过程: PS:原主机名为zlm,恢复出来的主机名为bak [root@bak ~]# su - oracle [oracle@bak ~]$ emctl status dbconsole TZ set to PRC OC4J Configu

aaron8219's Oracle&Linux Technology Blog 1701

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

OracleDBconsoleorcl服务无法启动的原因及解决思路

被这个OracleDBconsole服务无法启动的问题折磨了两个星期了,今天很幸运,在网上无意间看到了一位大侠的思路,虽然错误的情况并不完全相同,但他的思路完全可以搬过来用。 环境:Windows XP, 装Oracle 11g,装完数据库软件、新建一个数据库(数据库的SID为orcl20120825),但是无法进入网页版的企业管理器(EM),提示是“403,服务器拒绝了您的访问请求”。因为数据

小鹰信息技术服务部 11万+

修改 oc4j 用户密码

1. open $oc4jHOME\j2ee\home\config\system-jazn-data.xml jazn.com ...

clw741105的博客 255

oracle下oem日志,启动OEM失败,帮我看一下日志里的错误,谢了

本帖最后由 ighack 于 2013-7-31 10:21 编辑执行emca -config dbcontrol db以后有提示说警告: 启动 Database Control 时出错。请执行以下命令。1) 将环境变量 ORACLE_UNQNAME 设置为 数据库的唯一名称2) /opt/oracle/product/11.2.0/dbhome_1/bin/emctl start dbconso...

weixin_28913019的博客 462

oracle11g安装EM配置失败,oracle11g 安装 实例化 EM 配置文件时出错

安装oracle 11g 出现错误。解决如下:由于某些原因,需要更改服务器机器名,重启后,修改了oracle监听配置文件,但依旧无法启动服务,在google上找了N种方案,均告失败。无耐,只好重装oracle,安装到最好,告知em部署失败,依据提示查看log文件,如下:2011-9-30 16:17:55 oracle.sysman.emcp.util.PlatformInterface exec...

weixin_28902341的博客 1747

emctl start dbconsole遇到错误:OC4J Configuration issue

emctl start dbconsole 报如下错误: [oracle@server2 ~]$ emctl start dbconsole OC4J Configuration issue. /home/u01/app/oracle/product/11.2.0/db_1/oc4j/j2ee/OC4J_DBConsole_server2_ghsjdb not found.   [or

Vincent的专栏 2397

oracle故障一例,Oracle 10g异机恢复后EM无法启动故障处理一例

之前在自己的测试环境上做了个异机恢复,原来的库上是配置过EM的,但是在恢复的库上去启动EM就报错了,下面看具体解决过程:PS:原主机名为zlm,恢复出来的主机名为bak[root@bak ~]# su - Oracle[oracle@bak ~]$emctl status dbconsoleTZ set to PRCOC4J Configuration issue. /u01/app/oracl...

weixin_33772892的博客 669

emctl start dbconsole起不来问题的解决

<br />emctl start dbconsole起不来问题的解决  <br />     要想打开OEM的web管理程序,必须先启动Database listener,再启动Datebase Control端口监控程序,但是碰到下面的情况.<br />[oracle@redhat bin]$ emctl dbconsole start<br />TZ set to PRC<br />EM Configuration issue. /u01/app/oracle/product/10.2.0/db_1/

DreamDB的专栏 5002
上一篇: Embedded Linux S3C2440 - USB Gadget Drivers
下一篇: My son is half year old now
scruffybear
博客等级 码龄20年 214粉丝 460原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值