So easy! Oracle installation Configuration series six on Linux
In the previous few, we installed the Oracle database software, created a database configuration monitoring, this is the last article of this system, Oracle Enterprise Manager creation.
When you have completed all of the above steps, use
$emctl Start Dbconsole
Starting Oracle Enterprise Manager, the following error occurs, prompting that the ORACLE_UNQNAME environment variable is not set
[Email protected] ~]$ emctl start dbconsole
Now that you're prompted, import the Oracle_unqname environment variable in the Oracle user's. Bash_profile, and then start Oracle Enterprise Manager
$ echo "Export ORACLE_UNQNAME=ORCL" >>. Bash_profile && source. bash_profile
$ echo $ORACLE _unqname
Orcl
$ emctl Start Dbconsole
Prompt for the following error
Oc4j Configuration issue. /u01/app/oracle/product/11.2.0/db_1/oc4j/j2ee/oc4j_dbconsole_oracle. STUDY_ORCL not found.
Of course there is no way to start, because we are manually created database, if you are creating a database during installation or using DBCA to create a database Oracle Setup automatically creates Oracle Enterprise Manager
Related Document locations for Oracle Enterprise Manager:
Http://docs.oracle.com/cd/E11882_01/server.112/e25494/dbcontrol.htm
The following is the creation of Oracle Enterprise Manager
[[email protected] bin]$ emca-config dbcontrol db-repos Create
EMCA started on 2015-4-20 2:49:02
EM Configuration Assistant, 11.2.0.0.2 official version
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Enter the following information:
Database Sid:orcl
Listener Port number: 1521
Listener Oracle_home [/u01/app/oracle/product/11.2.0/db_1]:
SYS User's password:
DBSNMP User's password:
Sysman User's password:
Sysman User's password: e-mail address of the notification (optional):
Outgoing (SMTP) server for notifications (optional):
-----------------------------------------------------------------
The following settings have been specified
Database Oracle_home .../u01/app/oracle/product/11.2.0/db_1, ....----
Local hostname .......... Oracle. Study
The listener is oracle_home .../u01/app/oracle/product/11.2.0/db_1------
Listener port number ...... ....... 1521
Database SID ..... ORCL-----
The e-mail address of the notification .....
Notification of the outgoing (SMTP) server ..... .....
-----------------------------------------------------------------
Do you want to continue? [Yes (Y)/No (N)]: Y
2015-4-20 2:49:27 Oracle.sysman.emcp.EMConfig Perform
Info: This operation is being logged to/u01/app/oracle/cfgtoollogs/emca/orcl/emca_2015_04_20_02_49_01.log.
2015-4-20 2:49:28 Oracle.sysman.emcp.EMReposConfig createrepository
Info: Creating an EM Data archive (this operation may take a while) ...
2015-4-20 2:57:34 Oracle.sysman.emcp.EMReposConfig Invoke
Info: The repository was created successfully
2015-4-20 2:57:43 Oracle.sysman.emcp.EMReposConfig uploadconfigdatatorepository
Info: Uploading configuration data to the EM data archive (this operation may take some time) ...
2015-4-20 2:59:36 Oracle.sysman.emcp.EMReposConfig Invoke
Info: The configuration data was uploaded successfully
2015-4-20 2:59:37 Oracle.sysman.emcp.ParamsManager Getlocallistener
Warning: Retrieving Oracle. Error in Study Listener program
2015-4-20 2:59:41 Oracle.sysman.emcp.util.DBControlUtil Configuresoftwarelib
Info: The software library has been configured successfully.
2015-4-20 2:59:41 Oracle.sysman.emcp.EMDBPostConfig configuresoftwarelibrary
Info: Provisioning profile is being deployed ...
2015-4-20 3:00:26 Oracle.sysman.emcp.EMDBPostConfig configuresoftwarelibrary
Info: Provisioning file deployment was successful.
2015-4-20 3:00:26 Oracle.sysman.emcp.util.DBControlUtil Securedbconsole
Info: Protecting Database Control (This operation may take some time) ...
2015-4-20 3:00:47 Oracle.sysman.emcp.util.DBControlUtil Securedbconsole
Info: Database Control has been successfully protected.
2015-4-20 3:00:47 Oracle.sysman.emcp.util.DBControlUtil startoms
Info: Starting Database Control (This operation may take some time) ...
2015-4-20 3:01:39 Oracle.sysman.emcp.EMDBPostConfig performconfiguration
Info: The Database Control was successfully started
2015-4-20 3:01:39 Oracle.sysman.emcp.EMDBPostConfig performconfiguration
Info: The >>>>>>>>>>> Control URL is https://oracle. Study:1158/em <<<<<<<<<<<
2015-4-20 3:01:47 Oracle.sysman.emcp.EMDBPostConfig Invoke
Warning:
WARNING ************************
The management repository is placed in safe mode, in which Enterprise Manager data is encrypted. The encryption key has been placed in the file/u01/app/oracle/product/11.2.0/db_1/oracle. The Study_orcl/sysman/config/emkey.ora. Be sure to back up this file, because if this file is lost, the encrypted data will not be available.
***********************************************************
Configuration of Enterprise Manager completed successfully
EMCA ended on 2015-4-20 3:01:47
Create complete now
To view the status of EM:
[Email protected] bin]$ emctl status Dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, Oracle Corporation. All rights reserved.
Https://oracle.Study:1158/em/console/aboutApplication
Oracle Enterprise Manager 11g is running.
------------------------------------------------------------------
Logs is generated in directory/u01/app/oracle/product/11.2.0/db_1/oracle. Study_orcl/sysman/log
The last line marks the log location of em:
In the browser, enter:
Https://oracle.Study:1158/em
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6B/B8/wKiom1U04yeCiEyJAAKoroKYuyI707.jpg "title=" em.png "alt=" Wkiom1u04yecieyjaakorokyuyi707.jpg "/>
In the end, the Oracle documentation says that there is no static registration listener configured, and EM will not be able to be used. There's no testing here.
& nbsp , &NB Sp , &NB Sp , &NB Sp qq:276631587
Good luck!
This article is from the "attention to Linux technology" blog, please be sure to keep this source http://werewolftj.blog.51cto.com/1606482/1636238
So easy! Oracle installation Configuration series seven on Linux