seting up EM

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

seting up EM

Saud
hi arslan
i have deployed new 2 node RAc using 11 g R2 with ASM on solaris 10 . now databse is created and appl is running on this datbase. i need to setup EM. after running envoirnment i use tjis commnd

bash>emctl start dbconsole
OC4J Configuration Issue: /u01/app/oracle/product/11.2.0/dbhome/oc4j/j2ee/OC4J_DBConsole_fedbx_grid3 not found

can you give me some scripts so i can confugure it please


Reagrds
Reply | Threaded
Open this post in threaded view
|

Re: seting up EM

ErmanArslansOracleBlog
Administrator
There is no such thing like tjis :) I don't know about that tjis command :)
I think you have a typo there. You probably mean the "following" ("this") probably. Anyways..

Did you configure Oracle EM with "Enterprise Manager Configuration Assistant" (emca) utility?
If you did, is your environment correct? (what is that grid3 there? )
Does your /etc/hosts contain correct entries?
What folders do you have in that oc4j/j2ee folder?
Reply | Threaded
Open this post in threaded view
|

Re: seting up EM

Saud
sorry for typo errors
 ok grid3 is the name of the grid when we were installing the grid so they as k for a name so we gvae that'
yes my /etc/hosts entries are correct

in my oc4j/j2ee folder i have following

drwxr-x---   6 oracle   oinstall     512 Dec  8 23:35 OC4J_DBConsole
drwxr-xr-x   5 oracle   oinstall     512 Dec  8 23:35 OC4J_Workflow_Component_Container
drwxr-xr-x   5 oracle   oinstall     512 Dec  8 23:35 OC4J_Workflow_Management_Container
drwxr-xr-x   3 oracle   oinstall     512 Dec  8 23:35 oc4j_applications
drwxr-xr-x  20 oracle   oinstall     512 Dec  8 23:42 ..
-rw-r--r--   1 oracle   oinstall    1000 Dec  8 23:42 deploy_db_wf.ini
drwxr-xr-x  14 oracle   oinstall    1.0K Dec  8 23:42 home
drwxr-xr-x   2 oracle   oinstall     512 Dec  8 23:43 utilities
drwxr-xr-x   8 oracle   oinstall     512 Dec 14 18:48 .
-bash-3.2$

the emca wizard i tried have following output

-bash-3.2$ ./emca -config dbcontrol db -repos create

STARTED EMCA at Jan 24, 2020 7:59:27 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: orcl
Listener port number: 1521
Listener ORACLE_HOME [ /u01/app/oracle/product/11.2.0/dbhome ]:
Password for SYS user:  
Password for DBSNMP user:  
Password for SYSMAN user:  
Email address for notifications (optional):
Outgoing Mail (SMTP) server for notifications (optional):
ASM ORACLE_HOME [ /u01/app/oracle/product/11.2.0/dbhome ]:
ASM SID [ +ASM ]: +asm
ASM port [ 1521 ]:
ASM username [ ASMSNMP ]:
ASM user password:  
-----------------------------------------------------------------

You have specified the following settings

Database ORACLE_HOME ................ /u01/app/oracle/product/11.2.0/dbhome

Local hostname ................ node2
Listener ORACLE_HOME ................ /u01/app/oracle/product/11.2.0/dbhome
Listener port number ................ 1521
Database SID ................ orcl
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............
ASM ORACLE_HOME ................ /u01/app/oracle/product/11.2.0/dbhome
ASM SID ................ +asm
ASM port ................ 1521
ASM user role ................ SYSDBA
ASM username ................ ASMSNMP

-----------------------------------------------------------------
----------------------------------------------------------------------
WARNING : While repository is dropped the database will be put in quiesce mode.
----------------------------------------------------------------------
Jan 24, 2020 8:13:07 PM oracle.sysman.emcp.util.EMCALogManager addLogFileInternal
WARNING: Adding log file /u01/app/oracle/cfgtoollogs/emca/grid3/emca_2020_01_24_20_13_07.log failed. Messages will not be logged in this file.
Jan 24, 2020 8:13:07 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u01/app/oracle/cfgtoollogs/emca/grid3/emca_2020_01_24_20_13_07.log.
Jan 24, 2020 8:13:11 PM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
Jan 24, 2020 8:13:11 PM oracle.sysman.emcp.EMReposConfig createRepository
WARNING: /u01/app/oracle/cfgtoollogs/emca/grid3/emca_repos_create_2020_01_24_20_13_11.log (No such file or directory)
Jan 24, 2020 8:13:11 PM oracle.sysman.emcp.EMReposConfig invoke
SEVERE: Error creating the repository
Jan 24, 2020 8:13:11 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Refer to the log file at /u01/app/oracle/cfgtoollogs/emca/grid3/emca_repos_create_<date>.log for more details.
Jan 24, 2020 8:13:11 PM oracle.sysman.emcp.EMConfig perform
SEVERE: Error creating the repository
Refer to the log file at /u01/app/oracle/cfgtoollogs/emca/grid3/emca_2020_01_24_20_13_07.log for more details.
Could not complete the configuration. Refer to the log file at /u01/app/oracle/cfgtoollogs/emca/grid3/emca_2020_01_24_20_13_07.log for more details.

======more  emca_2020_01_24_20_13_07.log=========
bash-3.2$
-bash-3.2$ cd /u01/app/oracle/cfgtoollogs/emca/  
-bash-3.2$ ls
emca_2020_01_24_11_35_08.log
-bash-3.2$ more emca_2020_01_24_11_35_08.log
Jan 24, 2020 11:35:08 AM oracle.sysman.emcp.util.OUIInventoryUtil setOUILoc
CONFIG: Setting oracle.installer.oui_loc to /u01/app/oracle/product/11.2.0/dbhome/oui
Jan 24, 2020 11:35:08 AM oracle.sysman.emcp.util.ClusterUtil isHASInstalled
CONFIG: isHAInstalled: false
Jan 24, 2020 11:35:08 AM oracle.sysman.emcp.ParamsManager setFlag
CONFIG: Flag '-migrate' set to false
Jan 24, 2020 11:35:08 AM oracle.sysman.emcp.ParamsManager setFlag
CONFIG: Flag 'migrateFromDBControl' set to false
Jan 24, 2020 11:35:08 AM oracle.sysman.emcp.ParamsManager setFlag
CONFIG: Flag 'migrateToCentralAgent' set to false

Jan 24, 2020 11:35:08 AM oracle.sysman.emcp.ParamsManager setFlag
CONFIG: Flag 'migrateFromCentralAgent' set to false
Jan 24, 2020 11:35:08 AM oracle.sysman.emcp.ParamsManager setFlag
CONFIG: Flag 'migrateToDBControl' set to false
Jan 24, 2020 11:35:08 AM oracle.sysman.emcp.ParamsManager setFlag
CONFIG: Flag 'STANDALONE_MODE' set to true
Jan 24, 2020 11:35:08 AM oracle.sysman.emcp.ParamsManager setParam
CONFIG: Setting param: ORACLE_HOME value: /u01/app/oracle/product/11.2.0/dbhome
-bash-3.2$



Regards
Reply | Threaded
Open this post in threaded view
|

Re: seting up EM

ErmanArslansOracleBlog
Administrator
You have "SEVERE: Error creating the repository" error. Also you have "WARNING: Adding log file" errors.

I think that this location is probably not available ->  /u01/app/oracle/cfgtoollogs/emca/grid3/

What did you change on this server? hostname?

Send me the we need to see the emca log file.. -> emca_2020_01_24_20_13_07.log

Also we need to see the contents of your emca scripts.
It may have wrong etries for the paths.

Also your db may have the related-schemas already created (created earlier).. And emca config may be getting errors because of that.

See this community discussion ->

https://www.oracle.com/webfolder/community/enterprise_manager/4047760.html

Also check this one -> https://community.oracle.com/thread/2284207