D:\Source\deinstall>emctl status dbconsole
Unable to determine local host from URL REPOSITORY_URL=http://orcl11r2.oracledba.cz:%EM_UPLOAD_PORT%/em/upload/
 .
D:\Source\deinstall>emctl stop dbconsole
Unable to determine local host from URL REPOSITORY_URL=http://orcl11r2.oracledba.cz:%EM_UPLOAD_PORT%/em/upload/
 .
D:\Source\deinstall>emctl secure dbconsole
Unable to determine local host from URL REPOSITORY_URL=http://orcl11r2.oracledba.cz:%EM_UPLOAD_PORT%/em/upload/

Řešení

D:\Source\deinstall>emca -config dbcontrol db -repos recreate
STARTED EMCA at Jun 6, 2014 8:09:52 PM
EM Configuration Assistant, Version 11.2.0.3.0 Production
Copyright (c) 2003, 2011, Oracle. All rights reserved.
Enter the following information:
Database SID: orcl11r2
Database Control is already configured for the database orcl11r2
You have chosen to configure Database Control for managing the database orcl11r2
This will remove the existing configuration and the default settings and perform a fresh configuration
----------------------------------------------------------------------
WARNING : While repository is dropped the database will be put in quiesce mode.
----------------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: Y
Listener ORACLE_HOME [ C:\Oracle\db01 ]:
Password for SYS user:
Password for DBSNMP user:
Password for DBSNMP user: Jun 6, 2014 8:10:59 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngineLoacly
WARNING: ORA-01017: invalid username/password; logon denied
Jun 6, 2014 8:11:00 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngineLoacly
WARNING: ORA-01017: invalid username/password; logon denied
Invalid username/password.
Password for DBSNMP user: Terminate batch job (Y/N)? y
D:\Source\deinstall>emca -config dbcontrol db -repos recreate
STARTED EMCA at Jun 6, 2014 8:12:15 PM
EM Configuration Assistant, Version 11.2.0.3.0 Production
Copyright (c) 2003, 2011, Oracle. All rights reserved.
Enter the following information:
Database SID: orcl11r2
Database Control is already configured for the database orcl11r2
You have chosen to configure Database Control for managing the database orcl11r2
This will remove the existing configuration and the default settings and perform a fresh configuration
----------------------------------------------------------------------
WARNING : While repository is dropped the database will be put in quiesce mode.
----------------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: Y
Listener ORACLE_HOME [ C:\Oracle\db01 ]:
Password for SYS user:
Password for DBSNMP user:
Password for SYSMAN user:
Email address for notifications (optional): v
Invalid email.
Email address for notifications (optional): v@cc.cz
Outgoing Mail (SMTP) server for notifications (optional):
-----------------------------------------------------------------
You have specified the following settings
Database ORACLE_HOME ................ C:\Oracle\db01
Local hostname ................ orcl11r2.oracledba.cz
Listener ORACLE_HOME ................ C:\Oracle\db01
Listener port number ................ 1521
Database SID ................ orcl11r2
Email address for notifications ............... v@cc.cz
Outgoing Mail (SMTP) server for notifications ...............
-----------------------------------------------------------------
----------------------------------------------------------------------
WARNING : While repository is dropped the database will be put in quiesce mode.
----------------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: Y
Jun 6, 2014 8:13:06 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at c:\oracle\cfgtoollogs\emca\orcl11r2\emca_2014_06_06_20_12_15.log.
Jun 6, 2014 8:13:07 PM oracle.sysman.emcp.util.DBControlUtil stopOMS
INFO: Stopping Database Control (this may take a while) ...
Jun 6, 2014 8:13:07 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Dropping the EM repository (this may take a while) ...
Jun 6, 2014 8:14:08 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully dropped
Jun 6, 2014 8:14:09 PM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
Jun 6, 2014 8:17:39 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully created
Jun 6, 2014 8:17:41 PM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository
INFO: Uploading configuration data to EM repository (this may take a while) ...
Jun 6, 2014 8:18:23 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Uploaded configuration data successfully
Jun 6, 2014 8:18:27 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Securing Database Control (this may take a while) ...
Jun 6, 2014 8:18:33 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Database Control secured successfully.
Jun 6, 2014 8:18:33 PM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
Jun 6, 2014 8:19:19 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully
Jun 6, 2014 8:19:19 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: >>>>>>>>>>> The Database Control URL is https://orcl11r2.oracledba.cz:1158/em <<<<<<<<<<<
Jun 6, 2014 8:19:21 PM oracle.sysman.emcp.EMDBPostConfig invoke
WARNING:
************************ WARNING ************************
Management Repository has been placed in secure mode wherein Enterprise Manager data will be encrypted. The e
c.cz_orcl11r2/sysman/config/emkey.ora. Ensure this file is backed up as the encrypted data will become unusable
***********************************************************
Enterprise Manager configuration completed successfully
FINISHED EMCA at Jun 6, 2014 8:19:21 PM
D:\Source\deinstall>emctl status dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.3.0
Copyright (c) 1996, 2011 Oracle Corporation. All rights reserved.
https://orcl11r2.oracledba.cz:1158/em/console/aboutApplication
Oracle Enterprise Manager 11g is running.
------------------------------------------------------------------
Logs are generated in directory C:\Oracle\db01/orcl11r2.oracledba.cz_orcl11r2/sysman/log
D:\Source\deinstall>


Komentáře