Getting errors when starting listener [message #660242] |
Mon, 13 February 2017 06:22 |
|
tsar
Messages: 22 Registered: February 2017
|
Junior Member |
|
|
Hi There
I'm currently running on HP-UX box and im new in oracle database. I get the below error when I run lsnrctl status
there is only one instance running on this box.
> lsnrctl status
LSNRCTL for HPUX: Version 8.0.4.0.0 - Production on 13-FEB-17 11:20:25
(c) Copyright 1997 Oracle Corporation. All rights reserved.
Message 1053 not found; No message file for product=NETWORK, facility=TNSMessage 1020 not found; No message file for product=NETWORK, facility=TNSMessage 1021 not found; No message file for product=NETWORK, facility=TNSMessage 1022 not found; No message file for product=NETWORK, facility=TNSMessage 1023 not found; No message file for product=NETWORK, facility=TNSMessage 1026 not found; No message file for product=NETWORK, facility=TNSMessage 1034 not found; No message file for product=NETWORK, facility=TNSMessage 1024 not found; No message file for product=NETWORK, facility=TNSMessage 1025 not found; No message file for product=NETWORK, facility=TNSMessage 1040 not found; No message file for product=NETWORK, facility=TNSMessage 1033 not found; No message file for product=NETWORK, facility=TNSMessage 1028 not found; No message file for product=NETWORK, facility=TNSMessage 1029 not found; No message file for product=NETWORK, facility=TNS Message 1039 not found; No message file for product=NETWORK, facility=TNS
> tnsping AMP
TNS Ping Utility for HPUX: Version 8.0.4.0.0 - Production on 13-FEB-17 12:52:34
(c) Copyright 1997 Oracle Corporation. All rights reserved.
Attempting to contact (ADDRESS=(COMMUNITY=sap.world)(PROTOCOL=TCP)(Host=test)(Port=1521))
Message 3509 not found; No message file for product=NETWORK, facility=TNS
> more listener.ora
################
# Filename......: template listener.ora
# Name..........:
# Date..........:
################
LISTENER =
(ADDRESS_LIST =
(ADDRESS=
(PROTOCOL=IPC)
(KEY= LISTENER1.world)
)
(ADDRESS=
(PROTOCOL=IPC)
(KEY= AMP)
)
(ADDRESS =
(COMMUNITY = sap.world)
(PROTOCOL = TCP)
(Host = test)
(Port = 1521)
)
)
STARTUP_WAIT_TIME_LISTENER = 0
CONNECT_TIMEOUT_LISTENER = 10
TRACE_LEVEL_LISTENER = OFF
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = AMP)
(ORACLE_HOME = /oracle/AMP)
(PRESPAWN_MAX = 10)
)
)
> env | sort
COLUMNS=197
EDITOR=vi
ENV=/oracle/AMP/.kshrc
ERASE=^H
FCEDIT=vi
HISTFILE=/oracle/AMP/.sh_history_dev_pts_0
HOME=/oracle/AMP
LD_LIBRARY_PATH=/oracle/AMP/lib
LIBRARY_PATH=/oracle/AMP
LINES=52
LOGNAME=oraamp
MANPATH=/usr/share/man/%L:/usr/share/man:/usr/contrib/man/%L:/usr/contrib/man:/usr/local/man/%L:/usr/local/man:/opt/upgrade/share/man /%L:/opt/upgrade/share/man:/usr/dt/share/man:/opt/pd/share/man/%L:/opt/pd/share/man:/opt/hparray/share/man:/opt/ignite/share/man/%L:/ opt/ignite/share/man:/opt/aCC/share/man/%L:/opt/aCC/share/man:/opt/audio/share/man:/opt/blinklink/share/man:/opt/ansic/share/man/%L:/ opt/ansic/share/man:/opt/langtools/share/man/%L:/opt/langtools/share/man:/opt/CC/share/man:/opt/imake/man:/opt/perf/man/%L:/opt/perf/ man:/opt/resmon/share/man:/opt/pred/share/man/%L:/opt/pred/share/man:/opt/hpnp//man
NLS_LANG=AMERICAN_AMERICA.US7ASCII
ORACLE_HOME=/oracle/AMP
ORACLE_SID=AMP
ORA_NLS33=/oracle/AMP/ocommon/nls/admin/data
PATH=/oracle/AMP/bin:/oracle/AMP/snapstats:/usr/sap/AMP/SYS/exe/run:/bin:/usr/bin:/usr/sbin:/usr/bin/X11:/usr/ucb:/usr/ccs/bin:/usr/l ocal/bin:/etc:.
oraamp>
PWD=/oracle/AMP
SAPDATA_HOME=/oracle/AMP
SAPSYSTEMNAME=AMP
SHELL=/usr/bin/sh
STAGING_AREA=/oracle/stage/stage_804
TERM=xterm
TNS_ADMIN=/usr/sap/trans
TZ=SAST-2
_=/bin/env
dbs_ora_tnsname=AMP
> ps -ef | grep AMP
oraamp 21392 1 230 Feb 10 ? 221:30 /oracle/AMP/bin/tnslsnr LISTENER -inherit
Please kindly advise if I must supply more details.
|
|
|
|
|
|
|
Re: Getting errors when starting listener [message #660250 is a reply to message #660244] |
Mon, 13 February 2017 08:03 |
|
tsar
Messages: 22 Registered: February 2017
|
Junior Member |
|
|
Thank you very much for quick response
@BlackSwan
This box has been installed many years ago and its been used for references. I searched on internet if its compatible or not but I dint get much on that.
@EdStevens
Is this an installation that you just created yourself? No I did not create it by myself.
> more /etc/oratab
#
# This file is used by ORACLE utilities. It is created by root.sh
# and updated by the Oracle8 and SQL*Net install procedures.
#
# A colon, ':', is used as the field terminator. A new line terminates
# the entry. Lines beginning with a pound sign, '#', are comments.
#
# Entries are of the form:
# $ORACLE_SID:$ORACLE_HOME:<N|Y>:
#
# The first and second fields are the system identifier and home
# directory of the database respectively. The third field indicates
# to the dbstart utility that the database should, "Y", or should not,
# "N", be brought up at system boot time.
#
# Multiple entries with the same $ORACLE_SID are not allowed.
#
#
AMP:/oracle/AMP:N
> ls -l /oracle/AMP
total 392
-rw-r--r-- 1 oraamp dba 7381 Sep 7 1998 .cshrc
-rwxr-xr-x 1 oraamp dba 1472 Aug 27 1997 .dbenv.csh
-rwxr-xr-x 1 oraamp dba 1710 Aug 9 1999 .dbenv.sh
drwx------ 2 oraamp dba 96 Aug 18 1998 .elm
-r--r--r-- 1 oraamp dba 347 Apr 13 1997 .exrc
-rwxr-xr-x 1 oraamp dba 5240 Aug 16 1999 .kshrc
-r--r--r-- 1 oraamp dba 1774 Apr 13 1997 .login
-rw-r--r-- 1 oraamp dba 3909 Sep 7 1998 .profile
-rw------- 1 oraamp dba 22 Aug 10 1999 .sh_history
-rw------- 1 oraamp dba 3522 Feb 16 2015 .sh_history_dev_console
drwxr-xr-x 3 oraamp dba 96 May 9 1999 .sw
drwxrwxrwx 2 oraamp dba 96 Aug 18 1998 Mail
drwxrwxrwx 2 oraamp dba 1024 May 11 1999 ORACLESA
drwxr-xr-x 3 oraamp dba 1024 Jul 4 2016 archtmp
drwxrwxrwx 2 oraamp dba 3072 Aug 8 1999 bin
-rwxrwxrwx 1 oraamp dba 4140 Apr 13 1997 bitmap_sap
-rwxrwxrwx 1 oraamp dba 4140 Apr 13 1997 bitmap_sap.S01
drwxrwxrwx 3 oraamp dba 96 Apr 13 1997 core3
drwxrwxrwx 3 oraamp dba 2048 Feb 11 17:18 dbs
-rwxrwxrwx 1 oraamp dba 538 Aug 16 1999 dev_rout
-rwxrwxrwx 1 oraamp dba 2048 Jan 23 2000 expdat.dmp
drwxrwxrwx 6 oraamp dba 96 Apr 13 1997 guicommon2
drwxrwxrwx 3 oraamp dba 2048 Aug 8 1999 lib
drwxr-xr-x 2 root root 1024 Oct 2 2014 lost+found
drwxrwxrwx 3 oraamp dba 96 Aug 7 1999 migrate
drwxrwxrwx 5 oraamp dba 96 Apr 13 1997 names
drwxrwxrwx 3 oraamp dba 96 Apr 13 1997 netman
drwxrwxrwx 16 oraamp dba 1024 Aug 8 1999 network
drwxrwxrwx 3 oraamp dba 96 Aug 8 1999 nlsrtl
-rwxrwxrwx 1 root sys 2740 Jul 9 1998 no_of_extents.sql
-rwxrwxrwx 1 oraamp dba 15 Jul 24 1997 nohup.out
lrwxrwxrwx 1 root sys 28 Oct 3 2014 oacore -> /oracle/AMD/guicommon/oacore
lrwxrwxrwx 1 root sys 17 Oct 3 2014 oacore2 -> guicommon2/oacore
drwxrwxrwx 4 oraamp dba 96 Aug 8 1999 ocommon
drwxrwxrwx 4 oraamp dba 96 Aug 8 1999 oracore
drwxrwxrwx 5 oraamp dba 6144 Aug 8 1999 orainst
drwxrwxrwx 5 oraamp dba 4096 Aug 8 1999 orainst_sap
-rwxrwxrwx 1 oraamp dba 47455 May 7 1997 oralist
drwxrwxrwx 3 oraamp dba 96 Aug 8 1999 ord
drwxr-xr-x 3 oraamp dba 1024 Feb 11 16:44 origlogA
drwxr-xr-x 3 oraamp dba 1024 Feb 11 16:45 origlogB
drwxrwxrwx 8 oraamp dba 1024 Aug 8 1999 otrace
drwxr-xr-x 2 root root 96 Oct 10 2014 passwd
drwxrwxrwx 7 oraamp dba 96 Aug 8 1999 plsql
drwxrwxrwx 5 oraamp dba 96 Aug 8 1999 precomp
-rwxrwxrwx 1 oraamp dba 3897 Apr 13 1997 prof
drwxrwxrwx 10 oraamp dba 1024 Aug 8 1999 rdbms
-rwxrwxrwx 1 oraamp dba 541 Nov 14 1997 rollback.sql
drwxr-xr-x 4 oraamp dba 7168 Jan 19 08:10 saparch
drwxrwxrwx 2 oraamp dba 1024 Jan 23 12:46 sapbackup
drwxrwxrwx 2 oraamp dba 1024 Oct 10 2014 sapcheck
drwxr-xr-x 24 oraamp dba 1024 Oct 2 2014 sapdata1
drwxr-xr-x 20 oraamp dba 1024 Jun 24 2015 sapdata10
drwxr-xr-x 18 oraamp dba 1024 Sep 9 2015 sapdata11
drwxr-xr-x 13 oraamp dba 1024 Oct 2 2014 sapdata12
drwxr-xr-x 12 oraamp dba 1024 Oct 2 2014 sapdata13
drwxr-xr-x 7 oraamp dba 1024 Oct 2 2014 sapdata14
drwxr-xr-x 7 oraamp dba 1024 Oct 2 2014 sapdata15
drwxr-xr-x 15 oraamp dba 1024 Jan 5 2015 sapdata16
drwxr-xr-x 26 oraamp dba 24576 Oct 2 2014 sapdata2
drwxr-xr-x 25 oraamp dba 1024 Oct 2 2014 sapdata3
drwxr-xr-x 27 oraamp dba 1024 Oct 2 2014 sapdata4
drwxr-xr-x 28 oraamp dba 1024 Oct 2 2014 sapdata5
drwxr-xr-x 30 oraamp dba 1024 Oct 2 2014 sapdata6
drwxr-xr-x 16 oraamp dba 1024 Oct 2 2014 sapdata7
drwxr-xr-x 7 oraamp dba 1024 Oct 2 2014 sapdata8
drwxr-xr-x 23 oraamp dba 1024 Oct 2 2014 sapdata9
drwxr-xr-x 16 oraamp dba 10240 Feb 11 14:23 sapreorg
drwxrwxrwx 2 oraamp dba 96 Apr 13 1997 sapstat
drwxrwxrwx 4 oraamp dba 96 Apr 13 1997 saptrace
drwxrwxrwx 4 oraamp dba 1024 Dec 13 2001 scripts
-rwxrwxrwx 1 oraamp dba 162 Sep 22 1997 session.lst
-rwxrwxrwx 1 oraamp dba 2266 Sep 22 1997 session.sql
drwxrwxrwx 2 oraamp dba 1024 Apr 13 1997 shlib
drwxrwxrwx 4 oraamp dba 96 Aug 8 1999 slax
drwxrwxrwx 2 oraamp dba 96 Apr 13 1997 snapstats
-rwxrwxrwx 1 oraamp dba 324 Apr 13 1997 sqldba.log
drwxrwxrwx 3 oraamp dba 96 Apr 13 1997 sqllib
drwxrwxrwx 8 oraamp dba 1024 Aug 8 1999 sqlplus
-rwxrwxrwx 1 oraamp dba 155 Nov 2 2003 startsap_automdb_00.log
drwxrwxrwx 7 oraamp dba 96 Aug 7 1999 svrmgr
drwxrwxrwx 4 oraamp dba 96 Apr 13 1997 tcppa
-rwxrwxrwx 1 oraamp dba 522 Apr 13 1997 tempfile
-rwxrwxrwx 1 oraamp dba 678 Aug 8 1999 unix.prd
-rwxrwxrwx 1 oraamp dba 678 Aug 7 1999 unix.prd.mig
-rwxrwxrwx 1 oraamp dba 678 Aug 7 1999 unix.prd0
-rwxrwxrwx 1 oraamp dba 678 Aug 7 1999 unix.prdO
@John
please may you please explain again
--moderator edit: added [code] tags
[Updated on: Mon, 13 February 2017 08:22] by Moderator Report message to a moderator
|
|
|
Re: Getting errors when starting listener [message #660252 is a reply to message #660250] |
Mon, 13 February 2017 08:25 |
John Watson
Messages: 8964 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
please use [code] tags when you paste stuff like that. I've added them for you, this time.
Is this a recent problem? Was everything fine until this morning? Or has the system perhaps been unused for a while?
|
|
|
|
|
|
|
|
|
Re: Getting errors when starting listener [message #660304 is a reply to message #660299] |
Tue, 14 February 2017 07:32 |
John Watson
Messages: 8964 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
Your Oracle Home does appear to be set correctly, and the listener is running. Your "errors" are because Oracle can't find the messages file. So all it is giving you is the error numbers:
TNS-01053, TNS-01020, TNS-01021 and so on.
If you look them up, you'll see that they are informative only, telling you that the listener is fine.
The messages file may not be critical, and the directory listings do show a complete Oracle Home. I think. So perhaps all you need to do is start the database instance. Back in release 8.0 you would use the svrmgrl (Server Manager Line Mode) utility, something like this:
svrmgrl
connect internal
startup
|
|
|
|
|
|
|
|
Re: Getting errors when starting listener [message #660335 is a reply to message #660334] |
Wed, 15 February 2017 01:58 |
John Watson
Messages: 8964 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
An ORA-600 error is seriously bad news. The standard answer is that it is a bug, and therefore requires a patch.
The patch may well exist, but as your system is not under support (I assume) you will not be able to get it
However, you may be able to recover. Most likely it is a problem with your controlfile.
Start by looking at your alert log, it is alert_AMP.log probably in a directory named something like
$ORACLE_HOME/udump and post everything from the last attempted start up.
Then check out your controlfile(s). THis should run, even in nomount mode:
select value from v$parameter where name='control_files';
and then see what Unix has to say about the file(s). There are probably two of them, they must be identical.
Copy them somewhere safe.
What sort of backup of the controlfile(s) do you have? Anything at all?
[Updated on: Wed, 15 February 2017 01:59] Report message to a moderator
|
|
|
|
Re: Getting errors when starting listener [message #660339 is a reply to message #660338] |
Wed, 15 February 2017 03:20 |
John Watson
Messages: 8964 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
Are the three controlfile copies listed in v$parameter identical? If so, you may be able to proceed as the
alert log is (to my surprise) reporting errors with an online redo logfile, not a controlfile. Next queries:
select * from v$log;
select * from v$logfile;
|
|
|
|
|
|
Re: Getting errors when starting listener [message #660344 is a reply to message #660343] |
Wed, 15 February 2017 03:49 |
John Watson
Messages: 8964 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
OK, lets try a restart.
It looks as though your alert log and traces are in /oracle/AMP/saptrace/background, so copy them somewhere and remove them.
Then at the svrmgrl prompt:
let's see how far it gets. A new alert log and probably some traces will have been generated, can you upload them here?
|
|
|
|
|
|
|
|
|
|
|
Re: Getting errors when starting listener [message #660362 is a reply to message #660361] |
Wed, 15 February 2017 06:19 |
|
tsar
Messages: 22 Registered: February 2017
|
Junior Member |
|
|
datafiles changed to oraamp:dba
:/> ls -ltr /oracle/AMP/origlogA
total 245772
drwxr-xr-x 2 oraamp dba 96 Oct 2 2014 lost+found
-rw-r----- 1 oraamp dba 20972544 Jan 13 06:23 log_g1_m1.dbf.orig
-rw-r----- 1 oraamp dba 20972544 Feb 6 16:21 log_g3_m1.dbf.org
-rw-r----- 1 oraamp dba 20972544 Feb 11 16:44 log_g1_m1.dbf
-rw-r----- 1 oraamp dba 20972544 Feb 11 16:44 log_g2_m1.dbf
-rw-r----- 1 oraamp dba 20972544 Feb 11 16:44 log_g3_m1.dbf
-rw-r----- 1 oraamp dba 20972544 Feb 11 16:44 log_g4_m1.dbf
/> ls -ltr /oracle/AMP/origlogB
total 245772
drwxr-xr-x 2 oraamp dba 96 Oct 2 2014 lost+found
-rw-r----- 1 oraamp dba 20972544 Jan 12 16:00 log_g4_m1.dbf.orig
-rw-r----- 1 oraamp dba 20972544 Jan 13 06:20 log_g2_m1.dbf.orig
-rw-r----- 1 oraamp dba 20972544 Feb 11 16:44 log_g1_m1.dbf
-rw-r----- 1 oraamp dba 20972544 Feb 11 16:44 log_g2_m1.dbf
-rw-r----- 1 oraamp dba 20972544 Feb 11 16:44 log_g3_m1.dbf
-rw-r----- 1 oraamp dba 20972544 Feb 11 16:45 log_g4_m1.dbf
reran shutdown and startup
SVRMGR> shutdown abort;
ORACLE instance shut down.
SVRMGR>
SVRMGR> startup
ORACLE instance started.
Total System Global Area 336251628 bytes
Fixed Size 47852 bytes
Variable Size 139259904 bytes
Database Buffers 196608000 bytes
Redo Buffers 335872 bytes
Database mounted.
ORA-00314: log 1 of thread 1, expected sequence# 8638 doesn't match 6702
ORA-00312: online log 1 thread 1: '/oracle/AMP/origlogA/log_g1_m1.dbf'
more alert_AMP.log
Wed Feb 15 14:03:06 2017
Shutting down instance (abort)
License high water mark = 3
Instance terminated by USER, pid = 29370
Wed Feb 15 14:03:54 2017
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
LICENSE_MAX_USERS = 0
Starting up ORACLE RDBMS Version: 8.0.4.0.0.
System parameters with non-default values:
processes = 130
sessions = 150
shared_pool_size = 130000000
enqueue_resources = 8000
control_files = ?/dbs/cntrlAMP.dbf, ?/sapdata1/cntrl/cntrlAMP.dbf, ?/sapdata2/cntrl/cntrlAMP.dbf
db_block_buffers = 24000
db_block_size = 8192
db_block_lru_latches = 4
log_archive_start = TRUE
log_archive_dest = ?/saparch/AMParch
log_buffer = 327680
log_checkpoint_interval = 3000000000
db_files = 254
db_file_multiblock_read_count= 8
log_checkpoints_to_alert = TRUE
temporary_table_locks = 200
dml_locks = 10000
row_locking = always
max_rollback_segments = 400
transactions_per_rollback_segment= 10
rollback_segments = PRS_1, PRS_2, PRS_3, PRS_4, PRS_5, PRS_6, PRS_7, PRS_8, PRS_9, PRS_10
transaction_auditing = FALSE
row_cache_cursors = 300
remote_os_authent = TRUE
sort_area_size = 2097152
sort_area_retained_size = 262144
db_name = AMP
open_cursors = 800
optimizer_mode = rule
hash_join_enabled = FALSE
background_dump_dest = ?/saptrace/background
user_dump_dest = ?/saptrace/usertrace
max_dump_file_size = 5000
core_dump_dest = ?/saptrace/background
PMON started with pid=2
DBW0 started with pid=3
ARCH started with pid=4
LGWR started with pid=5
CKPT started with pid=6
SMON started with pid=7
RECO started with pid=8
Wed Feb 15 14:03:55 2017
alter database mount
Wed Feb 15 14:03:55 2017
Successful mount of redo thread 1.
Wed Feb 15 14:03:55 2017
Completed: alter database mount
Wed Feb 15 14:03:55 2017
alter database open
Beginning crash recovery of 1 threads
Wed Feb 15 14:03:58 2017
Errors in file /oracle/AMP/rdbms/log/ora_29673.trc:
ORA-00314: log 1 of thread 1, expected sequence# 8638 doesn't match 6702
ORA-00312: online log 1 thread 1: '/oracle/AMP/origlogA/log_g1_m1.dbf'
ORA-314 signalled during: alter database open ...
|
|
|
|
|
Re: Getting errors when starting listener [message #660369 is a reply to message #660365] |
Wed, 15 February 2017 07:38 |
John Watson
Messages: 8964 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
This tells us that the online logfile /oracle/AMP/origlogA/log_g1_m1.dbf is the incorrect version. It is as though
someone had copied an older version of it over the live version. That is something one should never do, and
unless you can find the correct version of that file you are in trouble. The official story is that if your
current online logfile group is damaged (and yours is) your only recourse is to restore the entire database
from your last whole, closed, backup. Do you have a recent whole closed backup, and are you prepared to lose
all work since? If not, there are hacks that may allow you to open the database, but no promises.
Note that if one file has been "accidentally" restored, others may have the same problem.
|
|
|
|
|