on 10-14-2015 11:09 AM
Hallo.
I upgraded my delepment portal to Oracle 12.2.0.1 from 11.2.0.3
My system has two instance:
1 ABAP instance
1 Java instance
on the same host.
When I start ABAP Instance, the instance is not able to start the db
I obtain:
.
.
OCIServerAttach(OCI_DEFAULT) failed with SQL error 12505:
ORA-12505: TNS:listener does not currently know of SID given in connect descriptor
.
.
If have to start manually the db else the ABAP instance doesn't work.
What could I check?
I already checked tnsnames.ora and listener.ora
Thanks a loto
Mario
Yes, it use new sqlplus 12.2.1.0 when I execute it from command line.
I don't understand...
When I use strdb.cmd I don't know if it use <sid>adm or SAPSefvice<sid>?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If so, then startsap may change change the environment variables during starting SAP.
are you able to find the os process called sapstartsrv? If you can find it, please restart it:
sapcontrol -nr <instance #> -function RestartService
All you can check the registry for user sidadm, to check if the is anything point to old oracle_home
Best regards,
James
The problem was in the instance profile.
There was:SETENV_04 = PATH=$(DIR_EXECUTABLE):%(PATH)
Perhaps it forces the environment of SAPService<sid> and this setting doesn't permit that sapstart copies the environment of <sid>adm into SAPService<sid> I suppose.
I deleted the entry:
SETENV_04 = PATH=$(DIR_EXECUTABLE):%(PATH)
from the instance profile, and SAPstart is able to start the db.
Thanks
I note, in the stderr3 log file this entry:
Z:\usr\sap\ABC\DVEBMGS00\work>echo WHENEVER SQLERROR exit SQL.SQLCODE 1>v9start.sql
Z:\usr\sap\ABC\DVEBMGS00\work>echo connect / as sysdba 1>>v9start.sql
Z:\usr\sap\ABC\DVEBMGS00\work>echo startup 1>>v9start.sql
Z:\usr\sap\ABC\DVEBMGS00\work>echo exit 1>>v9start.sql
SQL*Plus: Release 11.2.0.3.0 Production on Mon Oct 19 08:58:10 2015
Copyright (c) 1982, 2011, Oracle. All rights reserved.
ERROR:
ORA-12557: TNS:protocol adapter not loadable
It seems that it is using sqlplus 11.2.0.3 instead of 12.1.0.2
But the environment of <sid>adm is:
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\ABCadm\AppData\Roaming
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=SABC01
ComSpec=C:\windows\system32\cmd.exe
DBMS_TYPE=ora
dbs_ora_schema=SAPSR3
dbs_ora_tnsname=ABC
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Users\ABCadm
JAVA_HOME=Z:\usr\sap\ABC\DVEBMGS00\exe\sapjvm_4
LOCALAPPDATA=C:\Users\ABCadm\AppData\Local
LOGONSERVER=\\SWDCVIVV04
NLS_LANG=AMERICAN_AMERICA.UTF8
NUMBER_OF_PROCESSORS=4
ORACLE_HOME=Z:\oracle\oraclehome01\ABC\12102
ORACLE_SID=ABC
OS=Windows_NT
Path=C:\Program Files\EMC NetWorker\nsr\bin;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\j2sdk1.4.2_16-x64\bin;Z:\oracle\oraclehome01\ABC\12102\BIN;Z:\usr\sap\ABC\DVEBMGS00\exe;Z:\usr\sap\ABC\SYS\exe\uc\NTAMD64
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 15 Stepping 1, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0f01
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
rsdb_ssfs_connect=1
RSEC_SSFS_DATAPATH=Z:\usr\sap\ABC\SYS\global\security\rsecssfs\data
RSEC_SSFS_KEYPATH=Z:\usr\sap\ABC\SYS\global\security\rsecssfs\key
SAPDATA_HOME=Z:\oracle\ABC
SAPEXE=Z:\usr\sap\ABC\DVEBMGS00\exe
SAPLOCALHOST=SABC01
SAPSYSTEMNAME=ABC
SAP_DIR_PERF=Z:\usr\sap\PRFCLOG
SESSIONNAME=RDP-Tcp#0
SystemDrive=C:
SystemRoot=C:\windows
TEMP=c:\tmp\3
TMP=c:\tmp\3
TNS_ADMIN=\\SABC01\sapmnt\ABC\SYS\profile\oracle
USERDNSDOMAIN=domain.NET
USERDOMAIN=domain
USERNAME=ABCadm
USERPROFILE=C:\Users\ABCadm
windir=C:\windows
windows_tracing_flags=3
windows_tracing_logfile=C:\BVTBin\Tests\installpackage\csilogfile.log
So, where <sid>adm taks the path for sqlplus 11.2.0.3 instead of 12.1.0.2 ?
Thanks a lot
Mario
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mario,
When I start ABAP Instance, the instance is not able to start the db
Could you share latest trans.log file from the result R3trans -d ?
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mario,
Seems the database is using dynamic registry to oracle listener. Please show output of below:
lsnrctl status
Please manually start db and try below:
sqlplus /nolog
conn /@ABC
tnsping ABC
Let me know the result above.
Best regards,
James
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mario,
Ok, just to be clear: you state that when you bring up the database manually the system starts fine, but if you try to start SAP directly it fails with ORA-12505, correct?
What command are you using to start SAP? If you want to start the database as well you can only use startsap, as the sapcontrol commands will not bring up the database.
In case you are using startsap, does it work when you use startdb?
Regards,
Thiago
Hi,
Regarding "ORA-12505" issue, you can check SAP Note 576919 - "Composite SAP note ORA-12505" for troubleshooting.
You can also refer to SAP Note 1914631 - "Central Technical Note for Oracle Database 12c Release 1 (12.1)"
Regards,
Bíborka
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hallo .
I checked it but no helped me.
Have I to change something on the instance profile?
My listener.ora
# listener.ora Network Configuration File: Z:\oracle\oraclehome01\ABC\12102\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = Z:\oracle\oraclehome01\ABC\12102)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:Z:\oracle\oraclehome01\ABC\12102\bin\oraclr12.dll")
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = SABC01)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
)
My tnsnames.ora under TNS_ADMIN path:
################
ABC.WORLD=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = SAP.WORLD)
(PROTOCOL = TCP)
(HOST = SABC01)
(PORT = 1521)
)
)
(CONNECT_DATA =
(SID = ABC)
(GLOBAL_NAME = ABC.WORLD)
)
)
LISTENER_ABC = (
ADDRESS =
(COMMUNITY = SAP.WORLD)
(PROTOCOL = TCP)
(HOST = SABC01)
(PORT = 1521)
)
Hello Mario,
Does the issue reproduce when you start the database manually using <sid>adm?
Also, did you migrate to 'oracle' user id? If so, was the ora<sid> deleted or not?
What should you check:
- TNS_ADMIN for <sid>adm and the files lay within the path, check for any incorrect reference
- instance and default profile - check whether there are references for the old ORACLE_HOME
- ORACLE_HOME for <sid>adm and ora<sid> (in case the last exist) in the environment when you log in with them. Make sure they are both correct.
Best regards,
Thiago
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.