This forum is currently locked. You can't register or post questions at this time. (read more)

Oracle 11.2 Grid deinstall

Questions relating to Oracle Real Application Clusters (RAC) and Clusterware.

Moderator: Tim...

jnrpeardba
Advisor
Posts: 401
Joined: Wed May 04, 2011 3:14 pm

Oracle 11.2 Grid deinstall

Postby jnrpeardba » Sat Sep 01, 2012 6:21 pm

Hi Tim,

I have an up and running 2 node cluster, but seems Grid was not successful loading files on both nodes. I would like to de-install and then
re-install Grid again to ensure it is installed correctly, before I configure the Enterprise Manager.

Looking around I found that I can deinstall by using a deinstall utility

Code: Select all

./deinstall -home /opt/oracle/product/11.2/grid1


However I am unsure what effect this will have on the Cluster or ASM disks that have been configured.
I do not wish to impact the Cluster or Disks, only to remove the Grid environment.

My last question (hopefully an easier one) do I simply rerun the Grid installer to configure Grid again or is there an alternative method?

This is on an AIX 6.1 box (should not make any difference) with Oracle 11.2

As mentioned, Cluster is up and running, ASM working fine and the 2 databases, one on each node are also up and running. I would hope not to effect any of these

Any advice or guidance would be most appreciated

Regards

Jnrpeardba

Tim...
Site Admin
Posts: 18437
Joined: Mon Nov 01, 2004 5:56 pm
Location: England, UK
Contact:

Re: Oracle 11.2 Grid deinstall

Postby Tim... » Sat Sep 01, 2012 8:02 pm

Hi.

Are you talking about the grid control agent, or are you talking about the Gird Infrastructure installation?

If you are talking about the grid control agent, then you can remove this with no problems. If you are talking about removing the GI installations, then you can't, since this is a fundamental part of RAC clustering.

Your post does not make it clear what you are trying to achieve.

Cheers

Tim...
Tim...
Oracle ACE Director
Oracle ACE of the Year 2006 - Oracle Magazine Editors Choice Awards
OakTable Member
OCP DBA 7.3, 8, 8i, 9i, 10g, 11g
OCP Advanced PL/SQL Developer
Oracle Database: SQL Certified Expert
My website: http://www.oracle-base.com
My blog: http://www.oracle-base.com/blog

jnrpeardba
Advisor
Posts: 401
Joined: Wed May 04, 2011 3:14 pm

Re: Oracle 11.2 Grid deinstall

Postby jnrpeardba » Sat Sep 01, 2012 8:25 pm

Hi Tim,

Basically I cannot get the agent to work and when I compare both nodes, it seems files are missing from a directory on one of the nodes.
So I think I need to remove the agent and then attempt to reconfigure the grid agent, so I can manage the db's and cluster via Enterprise Manager

Apologies for the unclarity of the original post

Tim...
Site Admin
Posts: 18437
Joined: Mon Nov 01, 2004 5:56 pm
Location: England, UK
Contact:

Re: Oracle 11.2 Grid deinstall

Postby Tim... » Sat Sep 01, 2012 9:13 pm

So it is the grid control agent. Then it is OK for you to uninstall it.

Cheers

Tim...
Tim...
Oracle ACE Director
Oracle ACE of the Year 2006 - Oracle Magazine Editors Choice Awards
OakTable Member
OCP DBA 7.3, 8, 8i, 9i, 10g, 11g
OCP Advanced PL/SQL Developer
Oracle Database: SQL Certified Expert
My website: http://www.oracle-base.com
My blog: http://www.oracle-base.com/blog

jnrpeardba
Advisor
Posts: 401
Joined: Wed May 04, 2011 3:14 pm

Re: Oracle 11.2 Grid deinstall

Postby jnrpeardba » Mon Sep 03, 2012 9:27 am

Hi Tim,

Is there a way to manually de-install the grid agent that you know of? I tried the following with no success

Code: Select all

$ ./emctl status dbconsole
Can't locate CompEMdbconsole.pm in @INC (@INC contains: %s_javapOracleHome%/sysman/admin/scripts %s_javapOracleHome%/bin /mware/oracle/11.2/grid/perl/lib/5.10.0/aix-thread-multi-64all /mware/oracle/11.2/grid/perl/lib/5.10.0 /mware/oracle/11.2/grid/perl/lib /mware/oracle/11.2/grid/perl/lib/site_perl/5.10.0/aix-thread-multi-64all /mware/oracle/11.2/grid/perl/lib/site_perl/5.10.0 /mware/oracle/11.2/grid/perl/lib/site_perl /mware/oracle/11.2/grid/perl/libwww-perl/lib /mware/oracle/11.2/grid/perl/ext/POSIX /mware/oracle/11.2/grid/perl/URI /mware/oracle/11.2/grid/perl/HTML_Parser /mware/oracle/11.2/grid/perl/HTML-Parser/lib /mware/oracle/11.2/grid/sysman/admin/scripts /mware/oracle/11.2/grid/bin /mware/oracle/11.2/grid/sysman/admin/scripts/Net-DNS-0.48/lib/ /mware/oracle/11.2/grid/sysman/admin/scripts/libnet-1.19/ .) at /mware/oracle/11.2/grid/bin/EmctlCommon.pm line 598.
$

$ ./emctl stop dbconsole
Can't locate CompEMdbconsole.pm in @INC (@INC contains: %s_javapOracleHome%/sysman/admin/scripts %s_javapOracleHome%/bin /mware/oracle/11.2/grid/perl/lib/5.10.0/aix-thread-multi-64all /mware/oracle/11.2/grid/perl/lib/5.10.0 /mware/oracle/11.2/grid/perl/lib /mware/oracle/11.2/grid/perl/lib/site_perl/5.10.0/aix-thread-multi-64all /mware/oracle/11.2/grid/perl/lib/site_perl/5.10.0 /mware/oracle/11.2/grid/perl/lib/site_perl /mware/oracle/11.2/grid/perl/libwww-perl/lib /mware/oracle/11.2/grid/perl/ext/POSIX /mware/oracle/11.2/grid/perl/URI /mware/oracle/11.2/grid/perl/HTML_Parser /mware/oracle/11.2/grid/perl/HTML-Parser/lib /mware/oracle/11.2/grid/sysman/admin/scripts /mware/oracle/11.2/grid/bin /mware/oracle/11.2/grid/sysman/admin/scripts/Net-DNS-0.48/lib/ /mware/oracle/11.2/grid/sysman/admin/scripts/libnet-1.19/ .) at /mware/oracle/11.2/grid/bin/EmctlCommon.pm line 598.
$ id
uid=204(grid) gid=204(oinstall) groups=205(dba),206(oper),208(asmdba),209(asmadmin),210(asmoper)
$ ./emca -deconfig dbcontrol db -repos drop

STARTED EMCA at 03-Sep-2012 10:06:58
EM Configuration Assistant, Version 11.2.0.0.2 Production
Copyright (c) 2003, 2005, Oracle.  All rights reserved.

Enter the following information:
Database SID: cdrprep
Listener port number: 1521
Password for SYS user:
Password for SYS user: 03-Sep-2012 10:07:09 oracle.sysman.emcp.DatabaseChecks checkRestrictedMode
WARNING: ORA-01034: ORACLE not available

03-Sep-2012 10:07:09 oracle.sysman.emcp.DatabaseChecks checkDataGuardEnabled
WARNING: ORA-01034: ORACLE not available

Password for SYSMAN user:

----------------------------------------------------------------------
WARNING : While repository is dropped the database will be put in quiesce mode.
----------------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: Y
03-Sep-2012 10:07:19 oracle.sysman.emcp.DatabaseChecks checkDbAvailabilityImpl
WARNING: ORA-01034: ORACLE not available

03-Sep-2012 10:07:19 oracle.sysman.emcp.DatabaseChecks throwDBUnavailableException
SEVERE:
Database instance is unavailable. Fix the ORA error thrown and run EM Configuration Assistant again.

Some of the possible reasons may be :

1) Database may not be up.
2) Database is started setting environment variable ORACLE_HOME with trailing '/'. Reset ORACLE_HOME and bounce the database.

For eg. Database is started setting environment variable ORACLE_HOME=/scratch/db/ . Reset ORACLE_HOME=/scratch/db  and bounce the database.

$ id
uid=204(grid) gid=204(oinstall) groups=205(dba),206(oper),208(asmdba),209(asmadmin),210(asmoper)
$


SQL> select status, instance_name from v$instance;

STATUS       INSTANCE_NAME
------------ ----------------
OPEN         cdrprep1

SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
$ lsnrctl status

LSNRCTL for IBM/AIX RISC System/6000: Version 11.2.0.2.0 - Production on 03-SEP-2012 10:09:28

Copyright (c) 1991, 2010, Oracle.  All rights reserved.

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for IBM/AIX RISC System/6000: Version 11.2.0.2.0 - Production
Start Date                31-AUG-2012 10:31:08
Uptime                    2 days 23 hr. 38 min. 21 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      ON
Listener Parameter File   /mware/oracle/11.2/grid/network/admin/listener.ora
Listener Log File         /mware/oracle/grid/diag/tnslsnr/rvecrcdrprep/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.210.11.96)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.210.1.96)(PORT=1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
  Instance "+ASM1", status READY, has 1 handler(s) for this service...
Service "cdrprep" has 1 instance(s).
  Instance "cdrprep1", status READY, has 1 handler(s) for this service...
Service "cdrprepXDB" has 1 instance(s).
  Instance "cdrprep1", status READY, has 1 handler(s) for this service...
The command completed successfully

>ps -ef|grep grid

root 11731066        1   0   31 Aug      - 52:15 /mware/oracle/11.2/grid/bin/crsd.bin reboot
    grid 11927712 12451976   0   31 Aug      -  0:07 /mware/oracle/11.2/grid/opmn/bin/ons -d
    grid 11993210        1   0   31 Aug      -  6:35 /mware/oracle/11.2/grid/bin/oraagent.bin
    root 12058746        1   2   31 Aug      - 47:48 /mware/oracle/11.2/grid/bin/orarootagent.bin
    grid 12124284        1   0   31 Aug      -  0:32 /mware/oracle/11.2/grid/bin/scriptagent.bin
    grid 12451976        1   0   31 Aug      -  0:00 /mware/oracle/11.2/grid/opmn/bin/ons -d
    grid 12517520        1   0   31 Aug      -  0:05 /mware/oracle/11.2/grid/bin/tnslsnr LISTENER_SCAN1 -inherit
    root  8388746        1   0   31 Aug      -  1:32 /mware/oracle/11.2/grid/bin/cssdagent
    grid  8519730  8192012   1   31 Aug      - 61:00 /mware/oracle/11.2/grid/bin/ocssd.bin
    grid  8716418        1   0   31 Aug      - 43:19 /mware/oracle/11.2/grid/bin/evmd.bin
    grid  9633838        1   0   31 Aug      -  0:05 /mware/oracle/11.2/grid/bin/tnslsnr LISTENER -inherit

$ hostname
rvecrcdrprep
$


First I attempted to run the installer to remove the agent, but it appears that this was trying to deinstall Grid and that is not what I wanted to do
Then I tried to stop and drop the cluster, with the intention of re-creating the repository and as you can see ran into some errors.

I am trying to remove either Grid, so I can reinstall this again, without affecitng the current cluster, ASM or the oracle instances which are all working fine.

I am hoping to get to the stage where I can do something similar to this:

Code: Select all

talip /oracle/ora11gR2> emca -config dbcontrol db -repos create

STARTED EMCA at Nov 29, 2011 9:19:25 AM

EM Configuration Assistant, Version 11.2.0.0.2 Production Copyright (c) 2003, 2005, Oracle. All rights reserved.

Enter the following information:

Database SID: TEST11GR2

Listener port number: 1521

Listener ORACLE_HOME [ /oracle/ora11gR2 ]:

Password for SYS user:

Password for DBSNMP user:

Password for SYSMAN user:

Email address for notifications (optional):

Outgoing Mail (SMTP) server for notifications (optional):

—————————————————————–

You have specified the following settings

Database ORACLE_HOME ……………. /oracle/ora11gR2

Local hostname ……………. dbtalip

Listener ORACLE_HOME ……………. /oracle/ora11gR2

Listener port number ……………. 1521

Database SID ……………. TEST11GR2

Email address for notifications ……………

Outgoing Mail (SMTP) server for notifications ……………

—————————————————————–

Do you wish to continue? [yes(Y)/no(N)]: y

Nov 29, 2011 9:19:46 AM oracle.sysman.emcp.EMConfig perform

INFO: This operation is being logged at

/oracle/cfgtoollogs/emca/TEST11GR2/emca_2011_11_29_09_19_24.log.

Nov 29, 2011 9:19:47 AM oracle.sysman.emcp.EMReposConfig createRepository

INFO: Creating the EM repository (this may take a while) …

Nov 29, 2011 9:26:16 AM oracle.sysman.emcp.EMReposConfig invoke

INFO: Repository successfully created

Nov 29, 2011 9:26:22 AM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository

INFO: Uploading configuration data to EM repository (this may take a while) …

Nov 29, 2011 9:27:19 AM oracle.sysman.emcp.EMReposConfig invoke

INFO: Uploaded configuration data successfully

Nov 29, 2011 9:27:21 AM oracle.sysman.emcp.util.DBControlUtil secureDBConsole

INFO: Securing Database Control (this may take a while) …

Nov 29, 2011 9:27:31 AM oracle.sysman.emcp.util.DBControlUtil secureDBConsole

INFO: Database Control secured successfully.

Nov 29, 2011 9:27:31 AM oracle.sysman.emcp.util.DBControlUtil startOMS

INFO: Starting Database Control (this may take a while) …

Nov 29, 2011 9:28:09 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration

INFO: Database Control started successfully

Nov 29, 2011 9:28:09 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration

INFO: >>>>>>>>>>> The Database Control URL is https://dbtalip:1158/em <<<<<<<<<<<

Nov 29, 2011 9:28:13 AM 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 th file:

/oracle/ora11gR2/dbtalip_TEST11GR2/sysman/config/emkey.ora. Ensure this file is backed up as the encrypted data will becom unusable if this file is lost.

***********************************************************

Enterprise Manager configuration completed successfully

FINISHED EMCA at Nov 29, 2011 9:28:13 AM

talip /oracle/ora11gR2> emctl status dbconsole

Oracle Enterprise Manager 11g Database Control Release 11.2.0.2.0

Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved. https://dbtalip:1158/em/console/aboutApplication

Oracle Enterprise Manager 11g is running. ——————————————————————

Logs are generated in directory /oracle/ora11gR2/dbtalip_TEST11GR2/sysman/log talip /oracle/ora11gR2>

 

Now, OEM is available.


Any ideas would be most appreciated and hopefully I have explained it a bit more clearer than previously. Apologies if I have not

Jnrpeardba

Tim...
Site Admin
Posts: 18437
Joined: Mon Nov 01, 2004 5:56 pm
Location: England, UK
Contact:

Re: Oracle 11.2 Grid deinstall

Postby Tim... » Mon Sep 03, 2012 1:29 pm

Hi.

I know I've asked this before, but are you sure it's the grid control agent you are trying to uninstall? You say things like you want to remove the cluster, which is nothing at all to do with the grid control.

If you want to uninstall the grid control agent you can do this by using the agent installer.

$AGENT_HOME/oui/bin/runInstaller.sh

You can then click the deinstall products button...

The following are very different things and you *MUST* use the correct names when asking advice or you will get very different answers...

- Grid Control (GC)- A separate DB, App server installation to run the Grid Control product.
- Grid Infrsatructure (GI) - The combination of Clusterware and ASM used for single instance ASM installations, or RAC.
- DB Control - The locally install Enterprise Manager console that provides a cut down of the GC functionality and is not supported in RAC and Data Guard environments.

The commands you are running have nothing what-so-ever to do with the grid control agent, since you are doing "emctl <command> dbconsole". This command is specifically for the database control, not the grid agent.

This just adds to my confusion about your question. So what are you *really* trying to achieve?

Cheers

Tim...
Tim...
Oracle ACE Director
Oracle ACE of the Year 2006 - Oracle Magazine Editors Choice Awards
OakTable Member
OCP DBA 7.3, 8, 8i, 9i, 10g, 11g
OCP Advanced PL/SQL Developer
Oracle Database: SQL Certified Expert
My website: http://www.oracle-base.com
My blog: http://www.oracle-base.com/blog

jnrpeardba
Advisor
Posts: 401
Joined: Wed May 04, 2011 3:14 pm

Re: Oracle 11.2 Grid deinstall

Postby jnrpeardba » Mon Sep 03, 2012 3:17 pm

Hi Tim,

Again I must apologise for any confusion

Basically my DB Control is not running

However now when I attempt to do a status of the agent and show to you (which I could do prior to this morning)
I now get this error (running as the user Grid)

Code: Select all

$ ./emctl status agent
Can't locate CompEM.pm in @INC (@INC contains: %s_javapOracleHome%/sysman/admin/scripts %s_javapOracleHome%/bin /mware/oracle/11.2/grid/perl/lib/5.10.0/aix-thread-multi-64all /mware/oracle/11.2/grid/perl/lib/5.10.0 /mware/oracle/11.2/grid/perl/lib /mware/oracle/11.2/grid/perl/lib/site_perl/5.10.0/aix-thread-multi-64all /mware/oracle/11.2/grid/perl/lib/site_perl/5.10.0 /mware/oracle/11.2/grid/perl/lib/site_perl /mware/oracle/11.2/grid/perl/libwww-perl/lib /mware/oracle/11.2/grid/perl/ext/POSIX /mware/oracle/11.2/grid/perl/URI /mware/oracle/11.2/grid/perl/HTML_Parser /mware/oracle/11.2/grid/perl/HTML-Parser/lib /mware/oracle/11.2/grid/sysman/admin/scripts /mware/oracle/11.2/grid/bin /mware/oracle/11.2/grid/sysman/admin/scripts/Net-DNS-0.48/lib/ /mware/oracle/11.2/grid/sysman/admin/scripts/libnet-1.19/ .) at /mware/oracle/11.2/grid/bin/emctl.pl line 300.
$ ./emctl status dbconsole
Can't locate CompEMdbconsole.pm in @INC (@INC contains: %s_javapOracleHome%/sysman/admin/scripts %s_javapOracleHome%/bin /mware/oracle/11.2/grid/perl/lib/5.10.0/aix-thread-multi-64all /mware/oracle/11.2/grid/perl/lib/5.10.0 /mware/oracle/11.2/grid/perl/lib /mware/oracle/11.2/grid/perl/lib/site_perl/5.10.0/aix-thread-multi-64all /mware/oracle/11.2/grid/perl/lib/site_perl/5.10.0 /mware/oracle/11.2/grid/perl/lib/site_perl /mware/oracle/11.2/grid/perl/libwww-perl/lib /mware/oracle/11.2/grid/perl/ext/POSIX /mware/oracle/11.2/grid/perl/URI /mware/oracle/11.2/grid/perl/HTML_Parser /mware/oracle/11.2/grid/perl/HTML-Parser/lib /mware/oracle/11.2/grid/sysman/admin/scripts /mware/oracle/11.2/grid/bin /mware/oracle/11.2/grid/sysman/admin/scripts/Net-DNS-0.48/lib/ /mware/oracle/11.2/grid/sysman/admin/scripts/libnet-1.19/ .) at /mware/oracle/11.2/grid/bin/EmctlCommon.pm line 598.
$


Again I can only apologise for any misunderstanding I have given to you

Jnrpeardba

Tim...
Site Admin
Posts: 18437
Joined: Mon Nov 01, 2004 5:56 pm
Location: England, UK
Contact:

Re: Oracle 11.2 Grid deinstall

Postby Tim... » Mon Sep 03, 2012 4:44 pm

Hi.

In the case of the DB console you can pretty much forget the agent.

The basic troubleshooting can be found here:

http://www.oracle-base.com/articles/mis ... ooting.php

Before you work through that, it's worth checking that all your environment variables are set correctly. The error you are getting suggest to me that you've not get your environment set up properly.

You can see from my 11gR2 installation guide, I set the following environment variables in the profile

# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR

Code: Select all

ORACLE_HOSTNAME=ol5-112.localdomain; export ORACLE_HOSTNAME
ORACLE_UNQNAME=DB11G; export ORACLE_UNQNAME
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME
ORACLE_SID=DB11G; export ORACLE_SID
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH

LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH


See: http://www.oracle-base.com/articles/11g ... inux-5.php

With these set, pretty much all your command should run without a problem. Check your environment is set up in a similar way.

Cheers

Tim...
Tim...
Oracle ACE Director
Oracle ACE of the Year 2006 - Oracle Magazine Editors Choice Awards
OakTable Member
OCP DBA 7.3, 8, 8i, 9i, 10g, 11g
OCP Advanced PL/SQL Developer
Oracle Database: SQL Certified Expert
My website: http://www.oracle-base.com
My blog: http://www.oracle-base.com/blog

jnrpeardba
Advisor
Posts: 401
Joined: Wed May 04, 2011 3:14 pm

Re: Oracle 11.2 Grid deinstall

Postby jnrpeardba » Tue Sep 04, 2012 7:11 am

Morning Tim,

thanks for the update so I tried the following having looked at your posts

Code: Select all

$ id
uid=204(grid) gid=204(oinstall) groups=205(dba),206(oper),208(asmdba),209(asmadmin),210(asmoper)

more /etc/hosts

10.210.9.96     bvecrcdrprep.hscni.net  bvecrcdrprep
10.210.11.96    rvecrcdrprep.hscni.net  rvecrcdrprep

$ lsnrctl status

LSNRCTL for IBM/AIX RISC System/6000: Version 11.2.0.2.0 - Production on 04-SEP-2012 07:56:43

Copyright (c) 1991, 2010, Oracle.  All rights reserved.

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for IBM/AIX RISC System/6000: Version 11.2.0.2.0 - Production
Start Date                31-AUG-2012 10:31:08
Uptime                    3 days 21 hr. 25 min. 35 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      ON
Listener Parameter File   /mware/oracle/11.2/grid/network/admin/listener.ora
Listener Log File         /mware/oracle/grid/diag/tnslsnr/rvecrcdrprep/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.210.11.96)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.210.1.96)(PORT=1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
  Instance "+ASM1", status READY, has 1 handler(s) for this service...
Service "cdrprep" has 1 instance(s).
  Instance "cdrprep1", status READY, has 1 handler(s) for this service...
Service "cdrprepXDB" has 1 instance(s).
  Instance "cdrprep1", status READY, has 1 handler(s) for this service...
The command completed successfully
$


Environment Variables

Code: Select all

$ ORACLE_HOSTNAME=rvecrcdrprep.hscni.net; export ORACLE_HOSTNAME
$ ORACLE_UNQNAME=cdrprep1; export ORACLE_UNQNAME
$ ORACLE_BASE=/mware/oracle/11.2; export ORACLE_BASE
$ ORACLE_HOME=/mware/oracle/11.2/product/11.2.0/dbhome_1; export ORACLE_HOME
$ ORACLE_SID=CDRPREP1; export ORACLE_SID
PATH=/usr/sbin:$PATH; export PATH
ORACLE_SID=CDRPREP1; export ORACLE_SID
$ PATH=/usr/sbin:$PATH; export PATH
$ PATH=$ORACLE_HOME/bin:$PATH; export PATH
$ LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
$ CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
$ TMP=/tmp; export TMP
$ TMPDIR=$TMP; export TMPDIR
$


Code: Select all

./emctl status dbconsole
Can't locate CompEMdbconsole.pm in @INC (@INC contains: %s_javapOracleHome%/sysman/admin/scripts %s_javapOracleHome%/bin /mware/oracle/11.2/grid/perl/lib/5.10.0/aix-thread-multi-64all /mware/oracle/11.2/grid/perl/lib/5.10.0 /mware/oracle/11.2/grid/perl/lib /mware/oracle/11.2/grid/perl/lib/site_perl/5.10.0/aix-thread-multi-64all /mware/oracle/11.2/grid/perl/lib/site_perl/5.10.0 /mware/oracle/11.2/grid/perl/lib/site_perl /mware/oracle/11.2/grid/perl/libwww-perl/lib /mware/oracle/11.2/grid/perl/ext/POSIX /mware/oracle/11.2/grid/perl/URI /mware/oracle/11.2/grid/perl/HTML_Parser /mware/oracle/11.2/grid/perl/HTML-Parser/lib /mware/oracle/11.2/grid/sysman/admin/scripts /mware/oracle/11.2/grid/bin /mware/oracle/11.2/grid/sysman/admin/scripts/Net-DNS-0.48/lib/ /mware/oracle/11.2/grid/sysman/admin/scripts/libnet-1.19/ .) at /mware/oracle/11.2/grid/bin/EmctlCommon.pm line 598.


So I tried to drop the repos as mentioned

Code: Select all

./emca -deconfig dbcontrol db -repos drop$

STARTED EMCA at 04-Sep-2012 08:02:38
EM Configuration Assistant, Version 11.2.0.0.2 Production
Copyright (c) 2003, 2005, Oracle.  All rights reserved.

Enter the following information:
Database SID: cdrprep1
Listener port number: 1521
Password for SYS user:
04-Sep-2012 08:02:52 oracle.sysman.emcp.DatabaseChecks checkRestrictedMode
WARNING: ORA-01034: ORACLE not available

04-Sep-2012 08:02:52 oracle.sysman.emcp.DatabaseChecks checkDataGuardEnabled
WARNING: ORA-01034: ORACLE not available

Password for SYSMAN user: $


----------------------------------------------------------------------
WARNING : While repository is dropped the database will be put in quiesce mode.
----------------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: Y
04-Sep-2012 08:03:24 oracle.sysman.emcp.DatabaseChecks checkDbAvailabilityImpl
WARNING: ORA-01034: ORACLE not available

04-Sep-2012 08:03:24 oracle.sysman.emcp.DatabaseChecks throwDBUnavailableException
SEVERE:
Database instance is unavailable. Fix the ORA error thrown and run EM Configuration Assistant again.

Some of the possible reasons may be :

1) Database may not be up.
2) Database is started setting environment variable ORACLE_HOME with trailing '/'. Reset ORACLE_HOME and bounce the database.

For eg. Database is started setting environment variable ORACLE_HOME=/scratch/db/ . Reset ORACLE_HOME=/scratch/db  and bounce the database.


Confirmation that the database is in fact up and running

Code: Select all

$ sqlplus '/ as sysdba'

SQL*Plus: Release 11.2.0.2.0 Production on Tue Sep 4 08:05:49 2012

Copyright (c) 1982, 2010, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

SQL> select status, instance_name from v$instance;

STATUS       INSTANCE_NAME
------------ ----------------
OPEN         cdrprep1

SQL>



Is there something that I am still not doing correctly?

Many thanks

Jnrpeardba

Tim...
Site Admin
Posts: 18437
Joined: Mon Nov 01, 2004 5:56 pm
Location: England, UK
Contact:

Re: Oracle 11.2 Grid deinstall

Postby Tim... » Tue Sep 04, 2012 7:16 am

Hi.

I think this is one for Oracle Support. It seems almost like some of the DB Console software is missing. I figured this was due to a path issue, but that is obviously not the case. Check with support for the next best options.

Now I'm not telling you to do this, but I think I would probably re-download the software and do a new installation over the top of the existing one. That will require database downtime though...

Cheers

Tim...
Tim...
Oracle ACE Director
Oracle ACE of the Year 2006 - Oracle Magazine Editors Choice Awards
OakTable Member
OCP DBA 7.3, 8, 8i, 9i, 10g, 11g
OCP Advanced PL/SQL Developer
Oracle Database: SQL Certified Expert
My website: http://www.oracle-base.com
My blog: http://www.oracle-base.com/blog

jnrpeardba
Advisor
Posts: 401
Joined: Wed May 04, 2011 3:14 pm

Re: Oracle 11.2 Grid deinstall

Postby jnrpeardba » Tue Sep 04, 2012 8:37 am

Hi Tim,

Thanks for the reply. Just to clarify before I log a call with Oracle - do you mean a reinstall of the Oracle Grid software?
And if this is the case will it affect my current Cluster configuration? I can have downtime (not an issue) but did not want to jepordise anything already in place

Regards

Jnrpeardba

Tim...
Site Admin
Posts: 18437
Joined: Mon Nov 01, 2004 5:56 pm
Location: England, UK
Contact:

Re: Oracle 11.2 Grid deinstall

Postby Tim... » Tue Sep 04, 2012 5:59 pm

Hi.

Think about it for a second. Which Oracle home do you think I'm talking about? The one where you are running the emctl command from or the other one, that you are not trying to use emctl from?

Note. I doubt this is something Oracle Support would recommend, so do it at your own risk!

Cheers

Tim...
Tim...
Oracle ACE Director
Oracle ACE of the Year 2006 - Oracle Magazine Editors Choice Awards
OakTable Member
OCP DBA 7.3, 8, 8i, 9i, 10g, 11g
OCP Advanced PL/SQL Developer
Oracle Database: SQL Certified Expert
My website: http://www.oracle-base.com
My blog: http://www.oracle-base.com/blog


Return to “Oracle RAC and Clusterware”

Who is online

Users browsing this forum: No registered users and 2 guests

cron