How to access alert log--- $ORACLE_HOME/saptrace/background
Hi,
Using the Alert log under $ORACLE_HOME/saptrace/background.
Is it possible to determine whether the database is currently in an intermediate start or stop phase.???
If it so how can i proceed the process for alert log?
with regards
vijay
Dear Vijay ,
Q ) Is it possible to determine whether the database is currently in an intermediate start or stop phase.??? - Yes log will provide the information .
Q ) If it so how can i proceed the process for alert log? ->
Under $ORACLE_HOME/saptrace/background you will find the log file alertsid.log .
Regards ,
Santosh Karadkar
Similar Messages
-
I tried clicking on the xml alert log, but it goes into IE and tells me "Cannot view xml input using xsl style sheet...Only one top level element allowed in an xml document". I don't see any adrci, and I can't find any text file alert log? trace directory only has files beginning with cdump. database and dbs directories don't have it. And nothing about it in the docs?
I hope I'm missing something obvious. The database is running. XP Pro SP3.Udo wrote:
Hello Joel,
the good old text alert log is still there, it just moved a bit. The default location would be ORACLE_HOME\diag\rdbms\xe\xe\trace, e.g. D:\oracle\product\database_xe_11_2\app\oracle\diag\rdbms\xe\xe\trace for the instance on my machine.Yep, that's the trace directory I was looking in, it only has an xml.
See this thread for further hints: {thread:id=2281565}(You had an extra ampersand in the thread id). Yeah, 'Diag Trace' says same directory.
Anyone know how to get the css right? I'm clueless about such things.
>
-Udo -
How to access Portal Logged in user in Web Service application
Hi Experts,
I have created one Deployable Proxy and based on that i have created Web Based (WAR) project. to consume the proxy i have created Servlet based java file which invokes Web services. Based on this WAR project i created EAR application which deploys on J2EE server.
I am facing issue while accessing Portal Logged in user in my Servlet Class in WAR project so can you please provide inputs for how we can access Portal Logged in user in our Servlet class? also how we can access LDAP detailes of portal Logged inuser ?
I tried to fetch the Logged in user from servlet request but i can't access it giving me null value. Following is the method details that i am using in my servlet.
protected void doGet(HttpServletRequest request,HttpServletResponse response)throws ServletException, IOException
IUser user = UMFactory.getAuthenticator().getLoggedInUser();
String strName = user.getFirstName();
If I checked in LDAP values First name for logged in user is present but in my code its giving Null value.
Can you please provide your inputs on above issue.
Regards,
Rahulhave you found a solution this problem yet?
-
How to access sharepoint logs using Java?
Is there a way to access Sharepoint logs using Java from a remote machine?
Any help / pointers would be appreciated. Thanks.Hello,
I am not aware about any client modal class for log but if you create your own service and host in SP server then you can call this web service in JAVA. (i am not sure whether JAVA supports .NET web service or not).
You can refer this for web service:
http://www.arboundy.com/2010/12/centalised-view-of-sharepoint-uls-log-files/
Hope it could help
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help -
How to access transport logs?
looks like somebody in our company sent confidential information outside,
i've been asked to check email logs to verify if it's been done via email.
any tips/suggestions would be highly appreciated.
thank you.Hi,
Regarding to the original question, as BadBoyHouse said, the
message tracking log may be an option. However, specify maximum age for the message tracking log files: the default is 30 days. It seems that didn’t meet your requirements.
Meanwhile, did you mean that want to check details of the attachment in the user email? I doubt whether there has such log files on SBS, which can help you to achieve this target.
In addition, would you please let me know whether all emails of this user had been deleted? Or even this user
account had been deleted?
Hope this helps.
Best regards,
Justin Gu -
Alert log.xml or alert.log errors do not appear in EM
Little puzzled here. Using 11.1.0.6 to test if alert errors will appear on 11.1.0.1 EM Grid pages. Simple ORA-1653 triggered via sql insert and then waited and waited. Nothing. I can use EM to open log file and to display the errors but no alerts are flagged on any of the pages.
Is this a another bug?
RomanYou can read all about how the 11g alert log is monitored in: Monitoring 11g Database Alert Log Errors in Enterprise Manager [ID 949858.1]
Yes, it describes some bugs (and workarounds) too.
Eric -
Question regarding alert log file and trace files
What should be the alert log file size ? And when should it be deleted? And for how many days user trace files should be kept?
Also will anyone please tell me the importance of these files.
ThanksThis may help: http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14231/manproc.htm#sthref729
There are a few discussions on it here:
Re: Alert Log File
alert log file contents viewing
Re: how to read alert log file? is there any tool available? -
Rogue alert log in $ORACLE_HOME/dbs
Hi there, have looked all over and not yet found the answer to my query. I have a database instance running at 10.2.0.4.0. There is a rougue alert-{ORACLE_SID}.log created in $ORACLE_HOME/dbs directory when an instance is started. Show parameter background_dump_dest points to the correct directory - $ORACLE_ADMIN/$ORACLE_SID/bdump wether using spfile or pfile. To confirm what is happening I shutdown the instance and deleted both alert logs from the two locations and restarted the instance. Again two alert logs were created. Can anyone please advise why this is happening. I have found threads suggesting that logs are created in $ORACLE_HOME/dbs as default if parameters are not set correctly, but this is creating an alert log in two locations at startup.
in $ORACLE_ADMIN/$ORACLE_SID/bdump/alert_DBAASS06.log shows -
[oracle@el64dev03 bdump]$ cat alert_DBAASS06.log
Wed Jul 24 09:29:19 2013
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
Shared memory segment for instance monitoring created
Picked latch-free SCN scheme 3
Autotune of undo retention is turned on.
IMODE=BR
ILAT =30
LICENSE_MAX_USERS = 0
SYS auditing is disabled
ksdpec: called for event 13740 prior to event group initialization
Starting up ORACLE RDBMS Version: 10.2.0.4.0.
System parameters with non-default values:
processes = 250
__shared_pool_size = 92274688
__large_pool_size = 4194304
__java_pool_size = 4194304
__streams_pool_size = 0
nls_language = ENGLISH
nls_territory = UNITED KINGDOM
sga_target = 327155712
control_files = /oradata/10.2.0/DBAASS06/DBAASS06ctrl01.ctl, /oradata/10.2.0/DBAASS06/DBAASS06ctrl02.ctl
db_block_size = 8192
__db_cache_size = 218103808
compatible = 10.2.0.4.0
log_archive_dest_1 = LOCATION=/oradata/10.2.0/DBAASS06/archive
log_archive_format = DBAASS06%t_%s_%r.dbf
db_file_multiblock_read_count= 16
undo_management = AUTO
undo_tablespace = UNDO
remote_login_passwordfile= EXCLUSIVE
db_domain = bctn.wheatley-associates.co.uk
utl_file_dir = *
job_queue_processes = 10
background_dump_dest = /orahome/app/oracle/admin/DBAASS06/bdump
user_dump_dest = /orahome/app/oracle/admin/DBAASS06/udump
core_dump_dest = /orahome/app/oracle/admin/DBAASS06/cdump
session_max_open_files = 20
sort_area_size = 65536
db_name = DBAASS06
db_unique_name = DBAASS06
open_cursors = 300
pga_aggregate_target = 31457280
PMON started with pid=2, OS id=13977
PSP0 started with pid=3, OS id=13979
MMAN started with pid=4, OS id=13981
DBW0 started with pid=5, OS id=13983
DBW1 started with pid=6, OS id=13985
LGWR started with pid=7, OS id=13987
CKPT started with pid=8, OS id=13989
SMON started with pid=9, OS id=13991
RECO started with pid=10, OS id=13993
CJQ0 started with pid=11, OS id=13995
MMON started with pid=12, OS id=13997
MMNL started with pid=13, OS id=13999
Wed Jul 24 09:29:57 2013
ALTER DATABASE MOUNT
Wed Jul 24 09:30:01 2013
Setting recovery target incarnation to 2
Wed Jul 24 09:30:01 2013
Successful mount of redo thread 1, with mount id 3614370965
Wed Jul 24 09:30:01 2013
Database mounted in Exclusive Mode
Completed: ALTER DATABASE MOUNT
Wed Jul 24 09:30:01 2013
ALTER DATABASE OPEN
Wed Jul 24 09:30:01 2013
LGWR: STARTING ARCH PROCESSES
ARC0 started with pid=15, OS id=14163
Wed Jul 24 09:30:01 2013
ARC0: Archival started
ARC1: Archival started
LGWR: STARTING ARCH PROCESSES COMPLETE
ARC1 started with pid=16, OS id=14165
Wed Jul 24 09:30:01 2013
Thread 1 opened at log sequence 14
Current log# 2 seq# 14 mem# 0: /oradata/10.2.0/DBAASS06/DBAASS06_redo02.log
Successful open of redo thread 1
Wed Jul 24 09:30:01 2013
MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
Wed Jul 24 09:30:01 2013
ARC1: Becoming the 'no FAL' ARCH
ARC1: Becoming the 'no SRL' ARCH
Wed Jul 24 09:30:01 2013
ARC0: Becoming the heartbeat ARCH
Wed Jul 24 09:30:01 2013
SMON: enabling cache recovery
Wed Jul 24 09:30:01 2013
Successfully onlined Undo Tablespace 1.
Wed Jul 24 09:30:01 2013
SMON: enabling tx recovery
Wed Jul 24 09:30:01 2013
Database Characterset is WE8MSWIN1252
Opening with internal Resource Manager plan
where NUMA PG = 1, CPUs = 12
replication_dependency_tracking turned off (no async multimaster replication found)
Starting background process QMNC
QMNC started with pid=17, OS id=14167
Wed Jul 24 09:30:01 2013
Completed: ALTER DATABASE OPEN
[oracle@el64dev03 bdump]$
There is also a trace file created -
[oracle@el64dev03 bdump]$ cat dbaass06_lgwr_13987.trc
/orahome/app/oracle/admin/DBAASS06/bdump/dbaass06_lgwr_13987.trc
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORACLE_HOME = /orahome/app/oracle/product/10.2.0/db_1
System name: Linux
Node name: el64dev03.bctn.wheatley-associates.co.uk
Release: 2.6.32-300.39.2.el5uek
Version: #1 SMP Wed Dec 19 14:56:59 PST 2012
Machine: x86_64
Instance name: DBAASS06
Redo thread mounted by this instance: 1
Oracle process number: 7
Unix process pid: 13987, image: [email protected]
*** 2013-07-24 09:30:01.622
*** SERVICE NAME:() 2013-07-24 09:30:01.622
*** SESSION ID:(275.1) 2013-07-24 09:30:01.622
Maximum redo generation record size = 156160 bytes
Maximum redo generation change vector size = 150676 bytes
tkcrrsarc: (WARN) Failed to find ARCH for message (message:0x10)
tkcrrpa: (WARN) Failed initial attempt to send ARCH message (message:0x10)
in $ORACLE_HOME/dbs/alert_DBAASS06.log shows -
[oracle@el64dev03 dbs]$ cat alert_DBAASS06.log
Wed Jul 24 09:29:19 2013
Adjusting the default value of parameter parallel_max_serversThanks for the reply. The cloned database source looks like it uses spfile on startup on the test box, but as I hadn't checked this at the time it was cloned, the spfile was not copied over, so I'm assuming it would have used the default init.ora created which had the correct dump dest defined. As for the new database, it was created from scratch, so I don't see why this should not work correctly. Unfortunately as I am new to this establishment, I have no history as to how Oracle was installed on either machine or how any of the other databases were created, though I do understand that many may have been cloned.
So while I can't speak for the databases that already existed on the Dev box, it seemed weird that they all appeared to be doing the same thing. So I found one that hadn't been started for a while for which there was no historic alert log in dbs and started it to see what happened. It had no spfile, started with pfile and did not create a rogue log. I created an spfile and restarted and still no rouge log. I ran show paremeters and compared to another similar database that had a rougue log, DASSEN02 v DASSEN04 and the only differences were with the instance name and all the files (bdump, cdump etc) existed correctly. Had a further look ref RMAN as some but not all databases had snapcf files in the dbs directory, but again some that had snap files had rougue alert files and others didn't. Also double checked file permissions on the bdump directory, no issues there. Unexplained issues really do bug me, but I think I'll just have to live with not knowing for now, till I have a spare few hours to look at again. -
If alert log is deleted, how to restore it?
Hi,
I want to know if Alert log is deleted, how to restore it?RMAN does not backup the alertlog, only an OS filesystem backup does this. In 11g and higher there are 2 versions of the alertlog, the well-known textfile and now additionally a file in xml format. IF only the text version is lost, command line utility adrci can still access the xml file:
http://docs.oracle.com/cd/E11882_01/server.112/e22490/adrci.htm#BGBBBBEA -
Hi Team,
I am doing database Refreshment. I want to monitor the alert logs.
Please suggest me, How to open the alert logs. Working on unix server.
Thanks & Regards,if its 10g then go to bdump directory
you can either do tail -f <alert_log_name>
or vi <alert_log_name>
if 11g then you want should go to
$ORACLE_HOME/diag/$ORACLE_SID
the alert log file is in XML format as well as a text file. The default location of both these files is the new ADR home or Automatic Diagnostic Respository. The ADR is set by using the DIAGNOSTIC_DEST initialization parameter. The location of an ADR home is ADR_BASE/diag/product_type/product_id/instance_id. If the environment variable ORACLE_BASE is not set then DIAGNOSTIC_DEST is set to ORACLE_HOME/log
there are different directories for different types of alert log files
alert - The XML formatted alertlog
trace - text alert log -
Which background process writes date into alert log file in oralce
which background process writes date into alert log file in oralce
Hi,
AFAIK, all the background process are eligible for writing information to alert log file. As the file name indicates to show the alerts, so background process have the access rights in terms of packages (dbms), to write to alert log.
I might be wrong also..
- Pavan Kumar N -
How to be notified for all ORA- Errors recorded in the alert.log file
based on Note:405396.1, I Changed the Matches Warning from the default value ORA-0*(600?|7445|4[0-9][0-9][0-9])[^0-9] to ORA-* in order to receive an warning alert for all ORA- errors.
but I just recieved the alert like the following:
Metric=Generic Alert Log Error
Time/Line Number=Mon Feb 25 23:52:21 2008/21234
Timestamp=Feb 26, 2008 12:06:03 AM EST
Severity=Warning
Message=ORA-error stack (1654, 1654, 1654) logged in /opt/oracle/admin/PRD/bdump/alert_PRD.log.
Notification Rule Name=Alert Log Error
Notification Rule Owner=SYSMAN
as you can see, the message only indicate the ORA-1654, nothing else.
How to set in 10g grid control to get the details alert that in the alert log like:
"ORA-1654: unable to extend index ADM.RC_BP_STATUS by 1024 in tablespace PSINDEX"
I can't believe Oracle 10g Grid control only provide the ORA- number without detailsGo to your database target.
On the home tab, on the left hand side under Diagnostic Summary, you'll see a clickable date link next to where it says 'Alert Log'. Click on that.
next click on Generic Alert Log Error Monitoring Configuration (its at the bottom)
In the alert thresholds put:
ORA-0*(600?|7445|4[0-9][0-9][0-9])[^0-9]
I believe that will pick anything up but experiment, its only perl.
If you want to test this use the DBMS_System.ksdwrt package but I would advise you only do so on a test database. If you've never heard of it, google it. Its a way of writing to your alert log.
Make sure you have your emails sent to long format as well. -
How to check particular error in alert log file
Hi all,
How to check particular error in alert log file,for supose if i get error in batabase yesterday 4 pm & today i want to check alert log file to get basic idea..it might be a big file so how to check that particular error..
Thanks & regards,
Eswar..What's your oracle version?
If you are in 11g you can use adrci tool
1- set homes diag/rdbms/orawiss/ORAWISS/ : the rdbms home
2- show alert -P "MESSAGE_TEXT LIKE '%ORA-%'" -term : to find all the ORA-% errors in the alert file
3- show alert -P "MESSAGE_TEXT LIKE '%ORA-%' and originating_timestamp > systimestamp-51 " -term : to find all the ORA-% errors in the alert file during the last 51 days,
4- show alert -P "MESSAGE_TEXT LIKE '%ORA-%' and originating_timestamp > systimestamp-1/24 " -term : to find all the ORA-% errors in the alert file during the last hour,
5- show alert -P "MESSAGE_TEXT LIKE '%ORA-12012%' and originating_timestamp > systimestamp-1/24 " -term : to find the particular ORA-12012 error in the alert file during the last hour,
Example:
[oracle@wissem wissem]$ adrci
ADRCI: Release 11.2.0.1.0 - Production on Wed May 4 10:24:54 2011
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
ADR base = "/home/oracle/app/oracle"
adrci> set homes diag/rdbms/orawiss/ORAWISS/
adrci> show alert -P "MESSAGE_TEXT LIKE '%ORA-'" -term
ADR Home = /home/oracle/app/oracle/diag/rdbms/orawiss/ORAWISS:
adrci> show alert -P "MESSAGE_TEXT LIKE '%ORA-%'" -term
ADR Home = /home/oracle/app/oracle/diag/rdbms/orawiss/ORAWISS:
2010-12-11 19:45:41.289000 +01:00
ORA-1109 signalled during: ALTER DATABASE CLOSE NORMAL...
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01152: file 1 was not restored from a sufficiently old backup
ORA-01110: data file 1: '/home/oracle/app/oracle/oradata/ORAWISS/system01.dbf'
ORA-1547 signalled during: ALTER DATABASE RECOVER database until time '2011-01-21:10:48:00' ...
Errors in file /home/oracle/app/oracle/diag/rdbms/orawiss/ORAWISS/trace/ORAWISS_j000_5692.trc:
ORA-12012: error on auto execute of job 29
ORA-01435: user does not exist
2011-03-15 11:39:37.571000 +01:00
opiodr aborting process unknown ospid (31042) as a result of ORA-609
2011-03-15 12:04:15.111000 +01:00
opiodr aborting process unknown ospid (3509) as a result of ORA-609
adrci>
adrci> show alert -P "MESSAGE_TEXT LIKE '%ORA-%' and originating_timestamp > systimestamp-51 " -term
ADR Home = /home/oracle/app/oracle/diag/rdbms/orawiss/ORAWISS:
2011-03-15 10:19:45.316000 +01:00
Errors in file /home/oracle/app/oracle/diag/rdbms/orawiss/ORAWISS/trace/ORAWISS_j006_5536.trc:
ORA-12012: error on auto execute of job 26
ORA-01435: user does not exist
Errors in file /home/oracle/app/oracle/diag/rdbms/orawiss/ORAWISS/trace/ORAWISS_j000_5692.trc:
ORA-12012: error on auto execute of job 29
ORA-01435: user does not exist
2011-03-15 11:39:37.571000 +01:00
opiodr aborting process unknown ospid (31042) as a result of ORA-609
2011-03-15 12:04:15.111000 +01:00
opiodr aborting process unknown ospid (3509) as a result of ORA-609
adrci> -
How to read trace files alerted in the alert.log file
Hello,
My alert.log file indicated multiple trace files to review. How to read these trace files to understand the cause of errors. Do I open the trace files with vi and do a search for 'ORA-' error. Are there tools to read and understand trace files. Thank you.It depends what kind of trace file it is.
You can use vi or other text editing tool to open the trace file. The trace file usually provides more detailed information when you have ORA- errors in alert.log. It's also very helpful for Oracle support when troubleshooting. -
How to initiating entry in alert.log?
Hallo,
i want initiate an entry in the alert.log by myself.
how can i do that?
thanks in advancejust make a archive log switch or shut down startup or any parameter changes which will effect alert.log file and there are many more
Maybe you are looking for
-
Is there a way to create/edit registry keys with Java?
I'm writing a console app and I'd like to have it so the users can change values in the registry. I'm not just talking about app keys I want any key. Is there a way to do this with Java?
-
Authorisation group and document type
Dear Experts I want our users who are using transaction F.14 to be able to process document type ZF only. I have created a role and in the authorisation object F_BKPF_BLA i can see field authorisation group and activity. What value i should put in th
-
The files tab on my cc desktop days sync coming soon and won't allow me to drag files to it.
-
Go past page 1 in the main java web interface
Hi All, This may be a pretty basic question but I can't past page 1 on the main webi java interface after refreshing a report. If I view the report in pdf mode or export the report I have no problem seeing all of the pages. Also, no problem paging
-
Finder quits unexpectedly after upgrading to lion, won't launch
I just upgraded my iMac (2 GB memory, 3.06 GHz Intel Core Duo) to Lion and after everything installed and restarted, I get and error message saying the Finder Quit Unexpectedly and it won't relaunch. Any ideas on how to fix this problem would be gre