Enterprise manager 11g doesn't display
Hi all,
I have installed Oracle 11g on Windows server 2008. But now enterprise manager doesn't want to open or display.
C:\Users\Oraclemon>set ORACLE_SID=wmconpd1
C:\Users\Oraclemon>emctl start dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.1.0.6.0
Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
https://SZAJHBODW01.zacca.af.lafarge.net:5500/em/console/aboutApplication
Starting Oracle Enterprise Manager 11g Database Control ...The OracleDBConsoleWM
CONPD1 service is starting................
The OracleDBConsoleWMCONPD1 service was started successfully.
http://10.56.16.52:5500/em in internet explorer
It only shows a upside down T L and two other reversed rr.
But when I connect to one of my other sites no problem, it displays.
Please help
Why are you accessing via IP address ?
Try using https://SZAJHBODW01.zacca.af.lafarge.net:5500/em/console/
emctl status dbconsole
Did you check the logs ?
Similar Messages
-
Too many columns to be shown in the Enterprise Manager 11g?
Hello,
we are having some problems with the Enterprise Manager 11g. When we want to VIEW DATA of a specific table, we get this exception. We think that our table has too many columns to be displayed. If we delete some of the columns, the data is shown in the enterprise manager. But this cannot be a solution for us. Can you help us with this point?
2009-08-03 10:07:04,210 [EMUI_10_07_04_/console/database/schema/displayContents] ERROR svlt.PageHandler handleRequest.639 - java.lang.ArrayIndexOutOfBoundsException: -128
java.lang.ArrayIndexOutOfBoundsException: -128
at oracle.sysman.emo.adm.DBObjectsMCWInfo.getSqlTimestampIndexes(DBObjectsMCWInfo.java:194)
at oracle.sysman.emo.adm.schema.TableViewDataBrowsingDataSource.executeQuery(TableViewDataBrowsingDataSource.java:167)
at oracle.sysman.emo.adm.DatabaseObjectsDataSource.populate(DatabaseObjectsDataSource.java:201)
at oracle.sysman.emo.adm.DatabaseObjectsDataSource.populate(DatabaseObjectsDataSource.java:151)
at oracle.sysman.emo.adm.schema.DisplayContentsObject.populate(DisplayContentsObject.java:369)
at oracle.sysman.db.adm.schm.DisplayContentsController.onDisplayAllRows(DisplayContentsController.java:303)
at oracle.sysman.db.adm.schm.DisplayContentsController.onDisplayContents(DisplayContentsController.java:290)
at oracle.sysman.db.adm.schm.DisplayContentsController.onEvent(DisplayContentsController.java:136)
at oracle.sysman.db.adm.DBController.handleEvent(DBController.java:3431)
at oracle.sysman.emSDK.svlt.PageHandler.handleRequest(PageHandler.java:577)
at oracle.sysman.db.adm.RootController.handleRequest(RootController.java:205)
at oracle.sysman.db.adm.DBControllerResolver.handleRequest(DBControllerResolver.java:121)
at oracle.sysman.emSDK.svlt.EMServlet.myDoGet(EMServlet.java:781)
at oracle.sysman.emSDK.svlt.EMServlet.doGet(EMServlet.java:337)
at oracle.sysman.eml.app.Console.doGet(Console.java:318)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
at oracle.sysman.eml.app.EMRepLoginFilter.doFilter(EMRepLoginFilter.java:109)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
at oracle.sysman.db.adm.inst.HandleRepDownFilter.doFilter(HandleRepDownFilter.java:153)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
at oracle.sysman.eml.app.BrowserVersionFilter.doFilter(BrowserVersionFilter.java:122)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
at oracle.sysman.emSDK.svlt.EMRedirectFilter.doFilter(EMRedirectFilter.java:102)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:336)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:627)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)When we select the table via SQL, everything works fine.Hi,
I'm Galit from the QE team of VIN.
All the things that you've described are correct.
It is actually an edge case where the only VM, that the manual App can be managed from its Map view, was removed from the App.
The Manual App management is as designed, and may be changed in the future.
There are 2 ways to overcome this situation:
1.You can, as you stated, create another Manual App with similar name and remain with the "Zombie App".
2. To run a specific command that will remove the Zombie App from the DB.
Please note that option no. 2 involves using an API that we do not publish.
If you would like to use option no. 2 contact me in private and we will see about supplying the relevant commands to run in order to delete the "zombie" application.
Thanks,
Galit Gutman -
Oracle Enterprise Manager 11g is not running
Hi everyone.
I can't open my Enterprise Manager in my browser.
when I am typing this command "emctl status dbconsole",it gives me this error :
C:\Windows\system32>emctl status dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
https://localhost:1158/em/console/aboutApplication
Oracle Enterprise Manager 11g is not running.
Logs are generated in directory E:\app\Ahmad\product\11.2.0\dbhome_1/Ahmad-PC_or
cl/sysman/log
Thanks.user9077620 wrote:
I type emctl start dbconsole
then it mention to set variable ORACLE_UNQNAME then i did this step
after that i retypr emctl start dbconsole , it gives me this error:
C:\Windows\system32>emctl start dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
https://localhost:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 11g Database Control ...The OracleDBConsoleo
cl service is starting..............
The OracleDBConsoleorcl service could not be started.
A service specific error occurred: 2.
More help is available by typing NET HELPMSG 3547.OS/Networking mis-configuration
Oracle is victim; not culprit -
Management Console Doesn't Display
Hi Experts ,
we are facing issue with Management Console doesn't display after login ,none of the screens shows any user or activity data.
Our DB admin went through the prerequisite list from note 1262933 and everything appears to be correct with the setup.
Regards
VYVadanHi. Just to clarify. Is the bpclog table being populated in the appserver db?
Byron -
Problem using Enterprise Manager 11g Database Control in Firefox 3.6.6
Hello all,
I just intalled Oracle 11g and trying to familiarize myself with Enterprise Manager 11g Dataabse Control using Firefox 3.6.6 in Windows XP.
I'm able to login to Enterprise manager successfully.
However, when I click on on "Performance Tab", the "SYSTEM_MOVING_WINDOW" is empty, and there's a prompt "Click Here to Download Plugin."
When I do click on it, I get message:
No suitable plugins were found.
Unknown plugin (application/octet-stream) [Manual Install].
I'm not sure what plugin I need so I can use Enterprise Manager properly.
Please help!
Thanks
GiovanniI use the Opera browser so I can split the screen to monitor multiple instances at the same time on my 2nd monitor. I am not having issues with the 10g OEM but having the same problem listed in this thread with the 11g OEM ( we have both running during our migration to 11g). The posts here didn't help me with the 11g OEM as there must be some difference from 10g OEM. I will hate it if I can't do the split screen to monitor multiple instances at the same time. And if you are connecting via solaris or lunix browser then IE is not an option ( W3C standards please ).
-
Oracle Enterprise Manager 11g Database Control log file location
Any one knows where the log file is for Oracle Enterprise Manager 11g Database Control. I am trying to set up EUS proxy authentication and running into issues when trying to search proxy user in my DB. The search returns no results and I am not sure where to look for. Please not my setup does work for EUS with shared or exclusive schema. I need to use Oracle DB proxy authentication for my application and that would need a setup of EUS with proxy permissions so please advice if you know where the log file is for Oracle Enterprise Manager 11g Database Control or if there is any logging I can turn on to see what search parameters are passed from Oracle Enterprise Manager 11g Database Control to my DB by using DB audit etc.
Thanks,Be patient...wait for report.
If after some time report does not appear, go to Advisor Central and find it there.
:p -
Error while installing oracle enterprise manager 11g
Hello,
I am trying to install Oracle enterprise manager 11g & keep on
getting following error at install progress stage :
Error in setting permission of file/directory
/u01/labuser/Oracle/Middleware/oracle_common/oui/jlib/emocmul.jar
with 3 options Retry,Ignore & cancel.
Could anyone guide why i am getting this error & how to fix this problem ?
Thank-You
Rahul Shah.Hi;
For your issue i suggest close your thread here as changing thread status to answered and move it to Forum Home » Enterprise Manager which you can get more quick response
Regard
Helios -
Disk 1 of Enterprise Manager 11g Grid Control not downloading correctly
Hello, I'm downloading Enterprise Manager 11g Grid Control.
The first disk, of three, does not download correctly:
GridControl_11.1.0.1.0_Linux_1of3.zip
On the web page, its size is listed to be around 1.3 GB.
However, when downloading, it thinks its actual file size is only around 643 MB.
So only that much gets downloaded.
But after downloading, this .zip file cannot be opened, it does not appear to a valid .zip file.
Please investigate and fix this.
Thanks
EugenePlease check from edelivery.oracle.com . You need to unzip all the zips under one dir.
-
Error on Enterprise Manager 11g login screen
I have Oracle 11g installed on a Windows 2008 Server and I'm running into a problem trying to log in to my Enterprise Manager screen. The screen loads just fine, but when I put in the username and password and hit login, the status wheel at the top spins like it's going to log in but instead returns me to the EM login screen.
I've done some troubleshooting already but I have no idea where else to look. It isn't local because I'm not the only one in the office getting this error, it isn't my installation process because this isn't our only server, but it is the only one exibiting this error. I know there is a known issue with IE8, but from what I've read this isn't the same issue (the known issue is that the page just continues to load indefinately). I've tried 'emctl start agent', and it seems to start fine, but when I run 'emctl status agent' it continues to come back with 'agent not running.' I've tried using just the IP address, as well as the server name (DNS isn't set up on these servers) with the same results.
Anybody out there have any other ideas?20.1.4 Limitations on Viewing XML Data on the Audit Trail Page with Internet Explorer 7
If you are using Internet Explorer 7, and click the view XML document link on the Audit Trail page in Oracle Enterprise Manager Fusion Middleware Control Console, data is not displayed. Instead, you are prompted to save or open the page. If you select to open the file, no data is displayed and you are again prompted to save or open the file. Instead, you must save the XML document and view it separately in a text editor.
As a workaround, use Mozilla FireFox to view the data directly after clicking the view XML document link.
This is the limitation that we are aware of. Login should work with IE7 for EM. Please double check your settings. -
Newbie Oracle Enterprise Manager 11g feature availability question
Newbie question here. I am new to Oracle 11g and new to this forum. I ran a search on this question and came up empty so hopefully there is a kind and knowlegable soul wo can help.
I recall in earlier versions of Oracle Enterprise Manager for earlier versions of Oracle there was something called Oracle Enteprise Manager Reporting accessible from the OEM web.
One of its key features was the ability to make custom "Additional Reports". In our current environment this is installed and works great. I don't know if it was an add on to OEM, or if it was built in. It was built a long time ago and I wasn't arround for that build. All I know is it works and it suits our needs.
Well we are now trying to build a new Oracle dev box to replace the current dev environment. We would prefer to not lose any existing functionality we have... and if possible not have to reinvent the wheel. The new box has Oracle 11g.
**Here comes the dumb newbie questions. **
Does Oracle 11g Enterprise Manager support 9i-style Enterprise Manager Reporting and Custom Reports?
Is it called that in 11g or has it been renamed to something else?
Is it it a simple matter of configuration or is it an add on that needs to be installed?
Any help would be most appreciated.
Thanks,
Wayward Oracle Newbie looking for an Oracle HomeOracle 11g does not support 9i-style custom reports. There is a new reporting framework - Information Publisher available in Grid Control 10+ versions. The new reporting framework does support custom reports as well. Click on the Reports tab to access the functionality.
Regards,
Leslie -
Enterprise Manager Console doesn' t show the correct data
Hi everyone,
we use a oracle 10gR1 rac with two nodes.
we use the oracle enterprise manager console but it does not work all parts of.
And the console is wrong with some parts of the data shows.
for example ;
in the home page, Performans Analysis section shows the date two months earlier. Why ?
(Period Start Time 25.Ara.2010 21:00:59 Period Duration (minutes) 60,02)
other example ;
in the performans tab, host section does not show any data.
why doesn't work this section?
what can i do?
oracle version = 10.1.0.5
OS platform = AIX node1 3 5 00C5116E4C00
thanks.Hm... could be that your machine is low on RAM for java apps (yours and OEM Console). (You can check resource consumption via perfmon)
-
OBIEE Enterprise Manger 11g Doesn't Start
I have OBIEE Simple Installation on Linux.
Enterprise Manager was working fine but after restarted Weblogic server, EM didn't come back up. Weblogic Server and OBIEE11g(dashboard and analysis) are working fine except the Enterprise Manager.
Can you please help?
thanks.
JayIt doesn't have the boot.properties so I was entering login information as I start the Weblogic.
Now I created boot.properities and tried but it still doesn't bring up the EM.
Any idea?
Thanks. -
Administration Enterprise Manager 11g
Hi, I have installed 11g. When you install, oracle create a db orcl. Well, I have created a new Db, is it possible to access to the new DB? and if it is possible, which are the steps i must follow.
Best regards.
Cuqueuser7948330 wrote:
Hi, I have installed 11g. When you install, oracle create a db orcl. Well, I have created a new Db, is it possible to access to the new DB? and if it is possible, which are the steps i must follow.
To expand on Sybrand's correct and extremely concise response ....
Actually - when you install, you decide whether to create a DB and what to call it. That will call DBCA (B Config Assistant) to do the actual creation. After you install, you can use DBCA (DB Config Assistant) to create more databases (and also delete and configure options for databases).
The default action duriung DBCA database create is (usually) to create a DB Control for that database. It does so by calling the EMCA (Enterpise Manager Confids Assistant). You can also call that assistant on the command line - details in the docs.
Oracle designed Enterprise Manager Database Control to manage one, and only one, database. Each database normally gets it's own DBControl. Since this is quiclkly becomes a pain, the preferred solution is to use the Grid Control as a central console (with the same capabilities as DB Control, and more). Licensing of the Grid Control is discussed in the Database doc set (at htytp://tahiti.oracle.com) in the Licensing document.
/Hans
Oracle has written '2 day DBA' guides to help people get started. They are especially useful for those who have no time to read or learn, but have time to do (wrong?) things over and over again. -
I am trying to integrate EBS 12.1.3 with Enterprise Manager 11g
HI Experts
I need to integrate EBS 12.1.3 with Enertprise Manager 11g grid control.
I have applied patch 8333939 to my OMS Instance successfully.
But I am not able to apply the same to my agent home.
I am following this doc.
http://docs.oracle.com/cd/E11857_01/em.111/e18708/T506934T511454.htm
I need to deploy patch 9757683 to my agent home.
Also silent installation is not working.
Please advise.
Thanks
Vsyed786I see this error in your output:
2014-11-26 10:55:23,583 ERROR [ThemeAutoDeployer]
java.io.FileNotFoundException: /tmp/liferay/com/liferay/portal/deploy/dependencies/liferay-theme.tld (Too many open files)
I'm not across what the EBS recommended setting for this is, or if there is one. But try running:
ulimit -n
... and if the number is low, edit /etc/security/limits.conf , add some entries for increased "soft nofile" and "hard nofile" and run sysctl -p. See Linux & Java tips: Too many open files . -
Issue with Enterprise Manager 11g
When I start the db console I am given the message
Enterprise Manager is not able to connect to the database instance, The state of the components are listed below.
All components are listed with green arrows indicating they are up
After reading a few posts here I have attempted to use EMCA to drop and re create the repository and settings
I have run the command 'emca -deconfig dbcontrol db -repos drop' to try and do this but it just hangs
Looking in the logs I can see the follow (only the last few lines added to keep it short)
emca_2011_08_05_14_17_29 -
CONFIG: Setting param: REP_DB_RUNNING_HOST value: RangePlanTest.gooutdoors.local
Aug 5, 2011 2:17:56 PM oracle.sysman.emcp.ParamsManager getRepDbPort
CONFIG: Listener Port: 1521
Aug 5, 2011 2:17:56 PM oracle.sysman.emcp.util.GeneralUtil isLocalConnectionRequired
CONFIG: isLocalConnectionRequired: true
Aug 5, 2011 2:17:56 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
CONFIG: isLocalConnectionRequired: true. Connecting to database instance locally.
Aug 5, 2011 2:17:56 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngineLoacly
CONFIG: SQLEngine connecting with SID: godw, oracleHome: C:\app\server\product\11.2.0\dbhome_2, and user: SYSMAN
Aug 5, 2011 2:17:57 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngineLoacly
CONFIG: SQLEngine created successfully and connected
Aug 5, 2011 2:17:57 PM oracle.sysman.emcp.ParamsManager checkListenerStatusForDBControl
CONFIG: Passed listener validation check.Listener is up and running.
Aug 5, 2011 2:17:57 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Dropping the EM repository (this may take a while) ...
Aug 5, 2011 2:17:57 PM oracle.sysman.emcp.util.PlatformInterface isInView
CONFIG: IN_VIEW marker not instantiated in C:\app\server\product\11.2.0\dbhome_2\sysman\config\emca.properties
Aug 5, 2011 2:17:57 PM oracle.sysman.emcp.ParamsManager getParam
CONFIG: No value was set for the parameter ORACLE_HOSTNAME.
Aug 5, 2011 2:17:57 PM oracle.sysman.emcp.util.PlatformInterface getEnvProps
CONFIG: Returning env array from cache
Aug 5, 2011 2:17:57 PM oracle.sysman.emcp.util.PlatformInterface getSortedEnvArray
+CONFIG: New Env List: [ALLUSERSPROFILE=C:\ProgramData, APPDATA=C:\Users\server\AppData\Roaming, CLASSPATH=C:\app\server\product\11.2.0\dbhome_2\jlib\emca.jar;C:\app\server\product\11.2.0\dbhome_2\jlib\srvm.jar;C:\app\server\product\11.2.0\dbhome_2\jlib\srvmasm.jar;C:\app\server\product\11.2.0\dbhome_2\jlib\cvu.jar;C:\app\server\product\11.2.0\dbhome_2\jlib\emConfigInstall.jar;C:\app\server\product\11.2.0\dbhome_2\jlib\ldapjclnt11.jar;C:\app\server\product\11.2.0\dbhome_2\jlib\ldap.jar;C:\app\server\product\11.2.0\dbhome_2\jlib\share.jar;C:\app\server\product\11.2.0\dbhome_2\jlib\srvmhas.jar;C:\app\server\product\11.2.0\dbhome_2\jlib\netcfg.jar;C:\app\server\product\11.2.0\dbhome_2\jlib\http_client.jar;C:\app\server\product\11.2.0\dbhome_2\lib\http_client.jar;C:\app\server\product\11.2.0\dbhome_2\lib\xmlparserv2.jar;C:\app\server\product\11.2.0\dbhome_2\assistants\jlib\assistantsCommon.jar;C:\app\server\product\11.2.0\dbhome_2\sysman\jlib\emCORE.jar;C:\app\server\product\11.2.0\dbhome_2\sysman\jlib\emagentSDK.jar;C:\app\server\product\11.2.0\dbhome_2\oui\jlib\OraInstaller.jar;C:\app\server\product\11.2.0\dbhome_2\oui\jlib\OraPrereq.jar;C:\app\server\product\11.2.0\dbhome_2\inventory\prereqs\oui\OraPrereqChecks.jar;C:\app\server\product\11.2.0\dbhome_2\oui\jlib\OraPrereqChecks.jar;, COMMONPROGRAMFILES=C:\Program Files\Common Files, COMMONPROGRAMFILES(X86)=C:\Program Files (x86)\Common Files, COMMONPROGRAMW6432=C:\Program Files\Common Files, COMPUTERNAME=RANGEPLANTEST, COMSPEC=C:\Windows\system32\cmd.exe, EMCA_JAR=C:\app\server\product\11.2.0\dbhome_2\jlib\emca.jar, FP_NO_HOST_CHECK=NO, HOMEDRIVE=Z:, HOMEPATH=\, HOMESHARE=\\kryten\gooutdoors\users\server, JRE_JAVA=C:\app\server\product\11.2.0\dbhome_2\jdk\jre\bin\java, LIB_DIR=C:\app\server\product\11.2.0\dbhome_2\jlib, LOCALAPPDATA=C:\Users\server\AppData\Local, LOGONSERVER=\\RIMMER, NUMBER_OF_PROCESSORS=4, OH=C:\app\server\product\11.2.0\dbhome_2, ORACLE_HOME=C:\app\server\product\11.2.0\dbhome_2, ORACLE_SID=godw, OS=Windows_NT, PATH=C:\app\server\product\11.2.0\dbhome_2\bin;C:\app\server\product\11.2.0\dbhome_2\bin;C:\Program Files\HP\NCU;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\, PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC, PROCESSOR_ARCHITECTURE=AMD64, PROCESSOR_IDENTIFIER=Intel64 Family 15 Model 4 Stepping 1, GenuineIntel, PROCESSOR_LEVEL=15, PROCESSOR_REVISION=0401, PROGRAMDATA=C:\ProgramData, PROGRAMFILES=C:\Program Files, PROGRAMFILES(X86)=C:\Program Files (x86), PROGRAMW6432=C:\Program Files, PROMPT=$P$G, PSMODULEPATH=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\, PUBLIC=C:\Users\Public, SESSIONNAME=Console, SYSTEMDRIVE=C:, SYSTEMROOT=C:\Windows, TEMP=C:\Users\server\AppData\Local\Temp\1, TMP=C:\Users\server\AppData\Local\Temp\1, USERDNSDOMAIN=GOOUTDOORS.LOCAL, USERDOMAIN=GOOUTDOORS, USERNAME=server, USERPROFILE=C:\Users\server, WINDIR=C:\Windows, WINDOWS_TRACING_FLAGS=3, WINDOWS_TRACING_LOGFILE=C:\BVTBin\Tests\installpackage\csilogfile.log]+
Aug 5, 2011 2:17:57 PM oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: Starting execution: CMD /C C:\app\server\product\11.2.0\dbhome_2\sysman\admin\emdrep\bin\RepManager.bat -connect (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=RangePlanTest.gooutdoors.local)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=GODW))) -repos_user SYSMAN -action drop -verbose -output_file C:\app\server\cfgtoollogs\emca\GODW\emca_repos_drop_2011_08_05_14_17_57.log
emca_repos_drop_2011_08_05_14_17_57 -
SQL> declare
2 l_username varchar2(30);
3 l_sid number;
4 l_serial number;
5 err number;
6 c number;
7 l_job_process_count NUMBER ;
8 TYPE TBSP_ARRAY IS TABLE OF VARCHAR2(64) INDEX BY BINARY_INTEGER ;
9 l_tablespaces TBSP_ARRAY;
10
11
12 PROCEDURE set_job_process_count(p_count IN NUMBER)
13 IS
14 BEGIN
15 --scope=memory so it will be reset on instance startup
16 -- SID=* to take care of RAC
17 IF p_count >=0
18 THEN
19 EXECUTE IMMEDIATE 'ALTER SYSTEM SET job_queue_processes='
20 ||p_count||' SID=''*''' ;
21 END IF ;
22 EXCEPTION WHEN OTHERS THEN NULL ;
23 END set_job_process_count ;
24
25 FUNCTION get_job_process_count
26 RETURN NUMBER
27 IS
28 l_value NUMBER ;
29 BEGIN
30 SELECT value
31 INTO l_value
32 FROM v$parameter
33 WHERE name = 'job_queue_processes' ;
34 RETURN(l_value) ;
35 EXCEPTION
36 WHEN OTHERS THEN
37 RETURN(10) ;
38 END get_job_process_count ;
39 begin
40 -- Now, drop the SYSMAN user
41 c := 0;
42 -- validate user exists
43 BEGIN
44 SELECT username
45 INTO l_username
46 FROM dba_users
47 WHERE username = upper('&EM_REPOS_USER') ;
48 EXECUTE IMMEDIATE 'ALTER USER '||l_username||' ACCOUNT LOCK' ;
49 EXCEPTION
50 WHEN NO_DATA_FOUND THEN RETURN ;
51 END ;
52 -- reduce job_queue_processes to zero
53 l_job_process_count := get_job_process_count ;
54 set_job_process_count(0) ;
55 begin
56 loop
57 BEGIN
58 LOOP
59 BEGIN
60 FOR crec in (SELECT sid, serial#
61 FROM gv$session
62 WHERE (upper(username)=l_username OR
63 upper(schemaname)=l_username)
64 AND status != 'KILLED')
65 LOOP
66 BEGIN
67 EXECUTE IMMEDIATE 'ALTER SYSTEM KILL SESSION IMMEDIATE ''' ||
68 crec.sid || ',' || crec.serial# || '''';
69 EXCEPTION
70 WHEN OTHERS THEN
71 err := SQLCODE;
72 IF err != -30 THEN
73 EXIT;
74 END IF;
75 END;
76 commit;
77 END LOOP;
78 EXCEPTION
79 WHEN OTHERS THEN
80 err := SQLCODE;
81 IF err != -30 THEN
82 EXIT;
83 END IF;
84 END;
85 IF SQL%NOTFOUND THEN
86 EXIT;
87 END IF;
88 commit;
89 END LOOP;
90
91 -- >> START - Capturing the Tablespaces to be dropped
92
93 for crec in (SELECT DISTINCT TABLESPACE_NAME FROM all_tables
94 WHERE owner = '&EM_REPOS_USER' AND table_name IN ('MGMT_TARGETS','MGMT_JOB_PARAMETER','MGMT_AUDIT_DATA')
95 MINUS
96 SELECT DISTINCT TABLESPACE_NAME FROM all_tables
97 WHERE owner != '&EM_REPOS_USER')
98 LOOP
99 l_tablespaces(l_tablespaces.count) := crec.tablespace_name;
100 END LOOP;
101
102 -- >> END - Capturing the Tablespaces to be dropped
103
104 execute immediate 'drop user ' || l_username || ' cascade';
105 set_job_process_count(l_job_process_count) ;
106
107 -- >> START - Dropping the Tablespaces
108 BEGIN
109 IF (l_tablespaces.count > 0) THEN
110 FOR i IN l_tablespaces.FIRST .. l_tablespaces.LAST
111 LOOP
112 BEGIN
113 execute immediate 'drop tablespace ' || l_tablespaces(i) || ' including contents';
114 exception
115 when NO_DATA_FOUND then
116 DBMS_OUTPUT.PUT_LINE('DropRep: Tablespaces for REPOS USER do not exist');
117 WHEN OTHERS THEN
118 err := SQLCODE;
119 DBMS_OUTPUT.PUT_LINE('DropRep: Error ' || SQLCODE || ' received dropping tablespace ' || l_tablespaces(i));
120 END;
121 END LOOP;
122 ELSE
123 DBMS_OUTPUT.PUT_LINE('NO TABLESPACES Exist');
124 END IF;
125 END;
126 -- >> END - Dropping the Tablespaces
127
128 exit;
129
130 EXCEPTION
131 WHEN NO_DATA_FOUND THEN
132 exit;
133 WHEN OTHERS THEN
134 err := SQLCODE;
135 IF err = -1918 THEN
136 EXIT;
137 ELSE
138 IF err = -1940 THEN
139 NULL;
140 ELSE
141 DBMS_OUTPUT.PUT_LINE('not 1940 err' || err);
142 c := c+1;
143 IF c > 50 THEN
144 RAISE;
145 END IF;
146 END IF;
147 END IF;
148 END;
149 end loop;
150 end;
151 commit;
152 EXCEPTION
153 WHEN OTHERS THEN
154 set_job_process_count(l_job_process_count) ;
155 RAISE ;
156 end;
157 /
old 47: WHERE username = upper('&EM_REPOS_USER') ;
new 47: WHERE username = upper('SYSMAN') ;
old 94: WHERE owner = '&EM_REPOS_USER' AND table_name IN ('MGMT_TARGETS','MGMT_JOB_PARAMETER','MGMT_AUDIT_DATA')
new 94: WHERE owner = 'SYSMAN' AND table_name IN ('MGMT_TARGETS','MGMT_JOB_PARAMETER','MGMT_AUDIT_DATA')
old 97: WHERE owner != '&EM_REPOS_USER')
new 97: WHERE owner != 'SYSMAN')
Sorry for the long post but any help would be greatAs a bit of further info I noticed these warnings when running the command - emca -deconfig dbconrtol db -repos drop
Do you wish to continue? [yes(Y)/no(N)]: Y
Aug 5, 2011 4:26:26 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at C:\app\server\cfgtoollogs\emca\GODW\emca_2011_08_05_16_25_58.log.
Aug 5, 2011 4:26:27 PM oracle.sysman.emcp.util.DBControlUtil stopOMS
INFO: Stopping Database Control (this may take a while) ...
Aug 5, 2011 4:26:28 PM oracle.sysman.emcp.util.PlatformInterface executeCommand
WARNING: Error executing CMD /C C:\app\server\product\11.2.0\dbhome_2\bin\nmesrvops.exe delete OracleDBConsoleGODW
Aug 5, 2011 4:26:32 PM oracle.sysman.emcp.EMReposConfig invoke
WARNING: Unable to remove DBMS jobs.
Aug 5, 2011 4:26:33 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Dropping the EM repository (this may take a while) ...
Maybe you are looking for
-
Reconnecting Application and opening a new applications
My issue is that using server 2012 R2, I have setup any connections that have been disconnected and try to reconnect. All the programs seems to work fine except our internal ERP software which reconnects then opens another instance of the software. H
-
Can't run Toast 7 Titanium's CD Spin Doctor - please help!
Hello, I don't know if I'm posting in the appropriate forum or not, but here goes... I got a LaCie d2 Dual DVD+/_ RW Drive for Christmas, along with a brand new copy of Roxio's Toast 7 Titanium. I recently installed all the driver software and everyt
-
HT4623 REMOVE PASSWORD FROM FIND MY IPHONE ON MY PHONE
HOW DO I REMOVE MY PASSWORD FROM FIND MY IPHONE APP?
-
Configuration changes in Console
Hi, I have a field having values separated with a ","for every 1000. I do not want to have this. For example: Length - 1000,00.00 WRONG I want it to be like Length - 100000.00 We are getting the data from the client system for Length as 100000.00. Ca
-
IPhone cannot be synced. A duplicate file name was specified.
iPhone cannot be synced. A duplicate file name was specified.