on 11-22-2013 11:53 AM
Hi Team,
I have this strange issue where i get connected to idle instance whenever i type asmcmd from oracle user.
oracle user is part of the asmadmin group.
ORACLE_SID is the same as we get fro instance_name from v$instance.
Do we still have to set some parameters in order to launch asmcmd?
problem solved?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
xmas and new year are now more or less far away, but wishing you the same as well
To change your environment in easiest way between the GRID Installation (SID= +ASM) and your "real" DB Instance (SID = "SAPSID", e.g. CP1) use the tool oraenv (bash) or coraenv (c-shell).
Use it this way:
execute as user oracle the command "source /usr/local/bin/oraenv" or for c-shell the same with coraenv. It will ask you for your SID I explained above. Enter "+ASM" and your environment will be set correctly and you'll be able to use asmcmd and other tools.
Cheers,
Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
make sure you applied the the following document(s):
http://scn.sap.com/docs/DOC-7971
Please check the following variables: "ORACLE_HOME", "LD_LIBRARY_PATH" and "PATH".
Make sure the correct directory is set (Because there's a softlink issue in this case).
If the above mentioned variables refer to /oracle/GRID/112 then change them all referring to /oracle/GRID/1120x, where the x stand for e.g. 2 or 3 (so 11202 or 11203 should be resulting) or change them vice versa.
Example:
Changes are made from 112 to 11203:
ORACLE_HOME=/oracle/GRID/11203
LD_LIBRARY_PATH=/oracle/GRID/11203/lib
PATH=/oracle/GRID/11203/bin; ......
Then pls try again to connect with asmcmd.
BTW: Have you already tried starting asmca? Is that working properly? How about "crsctl" commands lik "crsctl status resource -t". Is that working?
Best,
Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
asmca doesnt work
_X11TransSocketINETConnect() can't get address for <>:6000: Name or service not known
crsctl status resource -t : works fine
ORACLE_HOME=/oracle/SID/11202
LD_LIBRARY_PATH=/oracle/SID/11202/lib
ORACLE_PATH=/oracle/SID/BASE/common/oracle/sql:.:/oracle/SID/11202/rdbms/admin
LD_LIBRARY_PATH=/oracle/SID/11202/lib
PATH=/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/etc/opt/emcpower/bin:/home/oracle/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/etc/opt/emcpower/bin:/home/oracle/bin:/oracle/SID/11202/bin:/home/oracle/bin:/oracle/SID/11202/bin:/oracle/GRID/11202/OPatch:/oracle/GRID/11202/bin
SHLIB_PATH=/oracle/SID/11202/lib
-bash-3.2$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.2.0 Production on Tue Nov 26 07:31:45 2013
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 * from v$version
2 ;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
CORE 11.2.0.2.0 Production
TNS for Linux: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production
So your database works as expected. Fine!
If you want to use asmcmd and/or other Tools, make sure you have GRID instead of your SID in the paths. And also please try with the two options in path referring to 112 or 11202.
--> /oracle/GRID/11202
Make sure as user oracle your variable PATH does only point to ONE oracle directory, so in this case only to your GRID directory and not, as posted before by you, to multiple Oracle software installation directories.
If you want to get connected to DB +ASM (which is your ASM Instance which gets installed with the GRID software) make sure to use the connection string connect / as sysasm
asmca doesn't work because it has no display (X window forwarding).
At least, pls have a look at this, as already mentioned:
http://scn.sap.com/docs/DOC-7971
while most important is this one: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90e629a6-0611-2e10-0f9d-860802da0...
Best,
Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.