Regarding DB13 jobs and Mail
Hi All,
How can i send email if any background jobs which all are completed completed.
My specific requirement is for any database specific jobs completed, means whatever job i scheduled through DB13, if it is completed either completed successfully or not, administrator should get alert on mail.
I have checked through SM36, and given one email id in spool recipient, but it is not working.
Waiting for your kind response.
Thanks and Regards
K R Singh
SAP Basis Consultant
IIL
Hi Karmesh,
although I'm not too sure if doing this is a good idea in terms of efficiency of monitoring there is (of course) an option to implement this.
As (most) of the database jobs are monitored in CCMS (RZ20) you can modify the appropriate monitor there.
Add a "AUTO-REACTION" to send an E-Mail to every monitored alert.
See note
<a href="http://service.sap.com/sap/support/notes/502959">#502959 -RZ20: Externe Email als Autoreaktion</a>
and of course the documentation
<a href="http://help.sap.com/saphelp_bw30b/helpdata/en/2c/abb2e7ff6311d194c000a0c93033f7/content.htm">Define Automatic Alert Notification (SAP Library - The Alert Monitor)</a>
for details on this.
KR Lars
Similar Messages
-
Reg: Function Module thats used to check the status of JOBS and mail it
Hi Experts,
Is there any Standard Function module thats going to find the status of the jobs and mail this status to specied email ID in .xls format. While checking status function module should give whether job is - Aborted, Successful, Running, Waiting, Locked, Error, Warning, Starting Date, Ending Date of the Job.
Please help me,Hello Nagaraj,
You can find out the status of a job with the SHOW_JOBSTATE function module. You provide this function module with a job name and job number. It returns one of the six possible statuses of the job:
ABORTED TYPE C,
FINISHED TYPE C,
PRELIMINARY TYPE C,
READY TYPE C,
RUNNING TYPE C,
SCHEDULED TYPE C.
Following is the link for the same:
http://help.sap.com/saphelp_sm32/helpdata/en/fa/096e10543b11d1898e0000e8322d00/content.htm
Warm Regards,
Riki Dash -
Hi All,
I am working on ECC6.0. i have scheduled DB13 jobs and getting failed. Now i want to cancel the jobs i didnot find any cancel option. please suggest me how to cancel the jobs.
thnaks,
praveen.Hi Praveen,
DB13 is the scheduler, so you can't cancel something which already running through DB13.
You can kill any process with tx SM50 or find the PID of the process and kill it from OS level.
Best way would be using the 'BRTOOLS' rather than doing it on the OS level
Reward points if useful.
Best regards,
Loukas -
Convert Spool to PDF and mail for the jobs not run in background.
Dear All,
I need to convert the spool job into pdf and mail as attachment for job not run in background.
I am printing the bills using the program SD70AV3A to print the bills in a batch using the SUBMIT.
But i am not using the spool options since its going to into waiting state in spool...and i need to change the printer properties to G
to get the printer to print the reports as these jobs run in backgroud....but this solution is not acceptable solution.
SUBMIT SD70AV3A
WITH RG_KSCHL-LOW = 'ZRR'
WITH RG_NACHA-LOW = '1'
WITH PM_VERMO = '2'
WITH PM_NSORT = '1'
WITH RG_VBELN IN range.
* TO SAP-SPOOL
* SPOOL PARAMETERS print_parameters
* WITHOUT SPOOL DYNPRO
* VIA JOB name NUMBER number
* AND RETURN.
so how do i get the spool number from the above after the job is submitted....and then convert into pdf and mail
please suggest some solution. I have searched on net but most the solutions are say to run the job as background job...
i have also looked into the program RSTXPDFT4 but it asks for the spool id ....how can i get spool id for the job that has been completed.
please suggest some solution.
Thanks
Bhargava.Hi,
Spool to PDF : FM 'CONVERT_ABAPSOOLJOB_2_PDF'
Table TSP01 to get spool number
You ,may need to convert OTF to PDF: FM CONVERT_OTF
and the to binary : FM 'SMCS_XSTRING_TO_BINARY'
To send mail use class: cl_document _bcs.
Regards,
Maria João Rocha -
OFFLINE backup and DB13 jobs configuratins error in MSCS cluster with OFS
Hello,
We have recently installed SAP ERP 6.0 EhP4 SR1 in MSCS cluster using Oracle Fail Safe.
The installation is successful and all the failover scenarios work fine.
I need to schedule offline backups and DB13 jobs, which is not possible in current scenario as once the database shuts down it fails over to node2.
I am following sapnote 657999 to install standalone gateway on both the nodes of the cluster and assigned the service to ORACLE<SID> group. the gw<SID> is different from the ERP<SID>.
However, the service SAP<gwSID>_<gwSN> fail to come up with the following error.
The service SAPSGA_30 cannot be started on local computer
error 1067: the process terminated unexpectedly.
The ../SapCluster/sapgw and associated directories have full permission.
Following are the contents of the profiles in ../SapCluster/sapgw
default.pfl
SAPDBHOST = ORACLEPRD
gw30.pfl
SAPSYSTEMNAME = SGA
INSTANCE_NAME = GW30
SAPSYSTEM = 30
DIR_PROFILE=C:\WINDOWS\SapCluster\sapgw
DIR_EXECUTABLE=C:\WINDOWS\SapCluster\sapgw
DIR_INSTANCE=C:\WINDOWS\SapCluster\sapgw
SAPLOCALHOST = ORACLEPRD
SAPLOCALHOSTFULL = ORACLEPRD
startgw.pfl
SAPSYSTEMNAME = SGA
INSTANCE_NAME = GW30
SAPSYSTEM = 30
DIR_EXECUTABLE = C:\WINDOWS\SapCluster\sapgw
DIR_PROFILE = C:\WINDOWS\SapCluster\sapgw
DIR_INSTANCE = C:\WINDOWS\SapCluster\sapgw
_GW=gwrd.exe
Start_Program_00 = local $(DIR_EXECUTABLE)\$(_GW) pf=$(DIR_PROFILE)\gw30.pfl
Now as the service is a part of my ORACLE<ERP SID> group, everytime I try to bring the group online, it fails due to the gw service and toggles many times in the two nodes before coming to rest on one node withfailed gw service and database in the up condition.
Any insight in this regard will be really helpful.
Thanks
NischalHello,
Yes we were able to configure offline backups.
We opted to install standalone gateway on both nodes and added it to the DB group. That provides the essential shell console.
You need to follow the SAP Note 657999 and then 378648 for setting the necessary environment variables.
One piece of advice, use the SID and system no. for the independent gateway, different from any of your SAP installations.
Thanks
Nischal -
Generating PDF Report and Mailing from APEX through DBMS_SCHEDULER job
Hi,
We have a requirement to generate pdf reports and mail them from our apex app through a DBMS_SCHEDULER job. The DBMS_SCHEDULER job calls a PL/SQL procedure which has the logic for calling the APEX_UTIL.GET_PRINT_DOCUMENT API (Function Signature 3) passing the application_id, the report_query_name and the report_layout_name to generate the pdf report output. The APEX_UTIL.GET_PRINT_DOCUMENT call is returning NULL when called from the DBMS_SCHEDULER job (It doesn't throw any exception as well!). But the same procedure when called from an APEX App Page Process that is invoked on an event like a Button click, the API returns the PDF report output.
I am also setting the APEX workspace security_group_id at the beginning of the PL/SQL procedure as follows:
l_workspace_id := apex_util.find_security_group_id (p_workspace => 'MY_WORKSPACE');
apex_util.set_security_group_id (p_security_group_id => l_workspace_id);
Any idea on what might be going wrong? Any alternative ways to generate the report output in the PL/SQL procedure?
Thanks & Regards,
Sujesh K KI was able to do a workaround for this issue by rebooting the DB.
As per ID 579281.1, this is a bug in 11.1.0.6 and we need to upgrade the version to 11.1.0.7 or apply a one -off patch.
Thanks,
Arun -
When I try to apply for job and when I try to e-mail my resume' and Outlook Express comes up to reply to on, I put in my information, etc but when I hit send, it doesn't go through and says? POP and then error report and doesn't go through.
I can't provide a solution with or without the error message, but without an error message, you are making everyone guess at what you see. I have no idea what you see, and I think someone who might be able to help you solve your problem would need to know what that message says. Is "Outlook Express" (Windows Live Mail) your default email processor, if not what is?
-
SQL Server Agent Job And Database Mail - Error formatting query, probably invalid paramters
We have a stored procedure that we are trying to call with a SQL Server Agent Job. The stored procedure calls Database Mail. This is SQL 2008. The execute task is simply:
USE [Production]
GO
EXEC [dbo].[JOB_EMAIL_SCHEDULED_REPORTS]
GO
When the job runs, it is erroring out immediately, with the error:
Execute as user: NT AUTHORITY\NETWORK SERVICE. Error formatting query, probably invalid paramters [SQLSTATE 42000] (Error 22050). The step failed.
When we go into SQL Server Manager and just execute the SQL query, it works though. Something within the SQL Server Agent job, and Database Mail is causing problems. Any ideas? Thanks.Justin,
If you use SSMS then the procedure is executed under a different user when compared to running using a SQL Server Agent Job.
Isolate the problem by running a SQL Server agent job that sends a mail. Also check if the NT Authority\Network Service account is
in good standing. Look at the below thread with a similar problem that had an expired account.
http://social.msdn.microsoft.com/Forums/en/sqltools/thread/bac7ecee-a156-4313-b532-ba15813a0700
http://SankarReddy.com/ -
I've set a factory job and now I can not remember my mail and I could not activate the phone ..alrjae help me re- activate the phone and this zip to communicate with me ******
<Email Edited by Host>Contact that someone else to have them delete their account.
The previous owner needs to do this:
Prepare your device to sell or give away
There is no workaround for Activation Lock.
iCloud: Find My iPhone Activation Lock in iOS 7 & later
http://support.apple.com/kb/HT5818?viewlocale=en_US&locale=en_US
http://support.apple.com/kb/TS4515 -
Hi All,
We are getting error in our DB13 jobs; Job log says:
Execute logical command BRCONNECT On host
Parameters: -u / -c -f check
BR0801I BRCONNECT 6.40 (52)
BR0252W Function remove() failed for '/oracle/PD0/102_64/dbs/sap.ora' at location BrInitOraCreate-1
BR0253W errno 13: Permission denied
BR0252W Function fopen() failed for '/oracle/PD0/102_64/dbs/initPD0.ora' at location BrInitOraCopy-2
BR0253W errno 13: Permission denied
BR0805I Start of BRCONNECT processing: cefqipbr.chk 2011-04-11 10.33.11
BR0252E Function fopen() failed for '/oracle/PD0/sapcheck/cefqipbr.chk' at location main-11
BR0253E errno 13: Permission denied
BR0121E Processing of log file /oracle/PD0/sapcheck/cefqipbr.chk failed
BR0806I End of BRCONNECT processing: cefqipbr.chk2011-04-11 10.33.11
BR0280I BRCONNECT time stamp: 2011-04-11 10.33.11
BR0804I BRCONNECT terminated with errors
External program terminated with exit code 3
We checked that 755 permissions are set on both dbs and sapcheck and in our other same SAP version server DB13 jobs are running fine with the same permissions so I am expecting I need to provide some authorizations somewhere else.
Please suggest.
Shivam MittalHello Mr. Shiva
Fisrt of all please check your permissions according to note 113747. According to note 113747 the permissions should be like this
brarchive, brbackup, brconnect, brtools have permission 4775:
-rwsrwxr-x ora<sid> sapsys ..
These can be started by the ora<sid> or the <sid>adm OS user.
brrestore, brrecover, brspace, and sapdba have permission 755:
-rwxr-xr-x <sid>adm sapsys ...
These can only be started by the ora<sid> OS user.``
Secondaly these type of error can also occur if SAPService<SID> is not a member of the groups ORA_<SID>_DBA,ORA_<SID>_OPER.
Please check if this user can write, read read and modify the directory on which you are getting error.
Hope it helps
Regards
Venkat -
Settings of Mail Host and Mail Port in transaction: SCOT for the node: SMTP
Hi,
Could anyone please explain me the significance of Mail Host and Mail Port for the SMTP node in transaction: SCOT.
It says Mail Server to which outbound mails can be passed.
Can i specify my GMAIL ID in the field Mail Host and left blank the Mail Port so that the mail can be sent to my GMAIL Account.
Please let me know if further details are required from my side.
Thanks & Regards,
Goutham.the below are the step to configure your mail server of anhy type ....
Steps to perform in SAP:
1. Transaction SM59 Setup an RFC Destination for the execution of the email transfer
a. Name: Internet Mail Gateway
b. Connection Type: T
c. Description: Internet Mail Gateway
d. Activation Type: Start
e. Explicit host:
i. Program: c:<dir>mlunxsnd (I used c:sapmail)
ii. Target Host: <Server_Name>
f. (MENU) Destination -> Gateway Options
i. Gateway Host: < Server_Name>
ii. Gateway Service: sapgw00
iii.<OK>
g. SAVE
2. Transaction SCOT Setup a default domain for your system
a. (MENU) Settings -> Default Domain
i. <Default_domain> (i.e. [email protected], Domain company.com)
ii. This setting gives a default to any user who does not have their email address maintained in the system. <user_name>@<default_domain>
3. Transaction SCOT Setup of the Node for queuing the emails before transfer to Exchange
a. Click on INT -> Create button
b. Give Default name (I choose EXCHG, as this was the node type for the Exchange Connector)
c. Give Description
d. Assign the RFC Destination previously created (Internet Mail Gateway)
e. Node: Internet
f. Address area: *
g. Supported address Types:
i. All formats except the fllw
ii. ALI, OBJ, OTF, SCR, URL
h. Choose Ok and Save
4. Transaction SCOT Setup a job to execute the send process on the queue.
a. (MENU) View -> Jobs
i. Select the Create Button
ii. Job Name: SAPConnect
iii. Put Cursor on Variant: SAP&CONNECTINT *As you created an INT Node, you need to run the variant for all of the INT sending. You can select SAP&CONNECTALL, but if you are not using any other node types, you can run with SAP&CONNECTINT.
iv. Select: Schedule Job Button
v. Schedule job for a periodic run approx. every 15 minutes
vi. Save
5. Transaction SU01 Maintain each users email address
a. Select users who require the ability to email from SAP
b. Under the address tab, in SU01, maintain their email address.
Steps to perform on the SAP system (operating System):
1. Create a directory for the SAP programs.
a. Create directory c:sapmail (Directory can be anything)
b. Unpack the ML*.CAR file from SAPs website
c. Alternatively, copy the ML* files from /usr/sap/../run/ directory. This ensures version compatibility with your SAP instance.
2. Create the directories for your sendmail program
a. http://emailrelay.sourceforge.net/
i. Download the emailrelay program
b. Create directory c:winntspoolemailrelay
i. Unpack the contents of the emailrelay zip into this directory
c. create Directory c:reskit (Used to make the emailrelay program run as a service
i. http://www.tacktech.com/display.cfm?ttid=197
1. www.tacktech.com had some great instructions for creating a service on the NT side. (Thank you Tacktech)
2. Use SRVANY to create the services, as documented below.
d. Open command prompt
e. Follow instructions for creating a service
i. cd reskit
ii. execute c:reskitinstsrv.exe "<SERVICE_NAME_Engine>" c:reskitsrvany.exe
1. This service is the engine
iii. execute c:reskitinstsrv.exe "<SERVICE_NAME_Send_Process>" c:reskitsrvany.exe
1. This service is the send process
iv. Modify the registry to represent the two new services
v. View instructions for Parameters and Application Creation under the services in the registry
vi. Command lines should be as follows:
1. <SERVICE_NAME_Engine> - c:winntspoolemailrelayemailrelay.exe --as-server --no-daemon
2. <SERVICE_NAME_Send_Process> - c:winntspoolemailrelayemailrelay.exe --no-daemon -hidden --forward-to (your_mailhost):SMTP --poll 5
vii. Start the services using service mgr.
f. cmd prompt cd sapmail
g. mlsomadm c:sapmailmailgw.ini (see below)
3. Create a mailgw.ini file (This file is used by the mlunxsnd program)
a. Open a command prompt
b. Change to the directory c:sapmail
c. Run command mlsomadm c:sapmailmailgw.ini
i. This creates the parameter file for the send process.
d. MAILGW.INI entries
i. System Name: [SID]
ii. Client: [000]
iii. Username: [MAILADM] no user required, as this is not being used for your connection
iv. Password: [*******] leave empty
v. Language: [E]
vi. Load Balancing: [N]
vii. Hostname: [app_server_name]
viii. System Number: [00]
ix. Gateway Hostname: [ ] you do not have to specify, it will use the default
x. Gateway Service: [ ] default will be used
xi. Use SAP Router: [N]
xii. Set Bcc Flag on Env..: [N]
xiii. Trace Level <In..>: 1
xiv. Trace file <In..> c:sapmailtracein.txt - Can be where ever you want
xv. Sendmail Command: c:winntspoolemailrelaysubmit -from <SENDER_ADDRESS>
xvi. A warning may come up that says to not use the t flag. IGNORE
xvii. Codepage: [ISO-8859-1]
xviii. Generate Notificat..: [N]
xix. Trace Level <Out..: [1]
xx. Trace File <Out..>: c:sapmailtraceout.txt - Can be where ever you want
xxi. Update File c:sapmailmailgw.ini [Y]
Steps to perform on the Microsoft Exchange System
1. Allow the SAP systems to enter on port 25 to send mails using Microsoft Exchange (SMTP Communication)
reward points ....
Girish -
Hi All,
I want to change the user for DB13 jobs of update stats and check database. I do not find any option to do that.
Please help me how to do this??
Thanks
TajinderHi tajinder,
go to SM37, select job & select job -> change, go to edit -> steps and select step -> change from the menu.
Enter the user name in user text box.
Hope this help
Regards,
Rajesh -
Question about DB13 jobs under MSCS environment
Hi,
I have migrated my system to cluster hardware.It´s two nodes windows 2003 server R2 x64, with MSCS and Oracle 10g.
I need run DB13 operations, so I have installed the standalone gateway following note 657999. Gateway is running anda RFC works fine.
Now SAP group is running in node A and Oracle group is running in node B, and when I try to run a database check through DB13 job returns this log:
Job started
Step 001 started (program RSDBAJOB, variant &0000000000210, user ID CONSULTORAC)
No application server found on database host - rsh/Gateway will be used
Ejecución del comando lógico BRCONNECT En máquina ACDCPDPSR3002
Parámetros: -u / -jid CHECK20101201092709 -c -f check
BR0801I BRCONNECT 7.00 (16)
BR0252E Function fopen() failed for 'J:oracleACPsapcheckceernjjz.chk' at location main-9
BR0253E errno 13: Permission denied
BR0121E Processing of log file J:oracleACPsapcheckceernjjz.chk failed
BR0280I BRCONNECT time stamp: 2010-12-01 09.27.11
BR0301E SQL error -12560 at location db_connect-2, SQL statement:
'CONNECT /'
ORA-12560: TNS:protocol adapter error
BR0310E Connect to database instance ACP failed
BR0806I End of BRCONNECT processing: ceernjjz.chk2010-12-01 09.27.11
BR0280I BRCONNECT time stamp: 2010-12-01 09.27.11
BR0804I BRCONNECT terminated with errors
External program terminated with exit code 3
BRCONNECT returned error status E
Job finished
Error 1: BR0252E Function fopen() failed for 'J:oracleACPsapcheckceernjjz.chk' at location main-9
Brconnect is trying to write .chk file in SAPDATA_HOME directory and it can´t. When I execute the command at OS level in node A (where SAP group is running) I get same error, but when I execute same command in node B it run without problems.
Error 2: 'CONNECT /' ORA-12560: TNS:protocol adapter error
No listener.
SAP try to run commands on the node where SAP group is running, and it can´t works with Oracle group resources like listener or sapdata_home disk.
My question, is it possible execute DB13 actions whene each group is running in different nodes?
If is possible, how can I solve my problem?
Thanks in advance.
Pablo.Hello,
As stated in point 7 within Note 446172 :
7. In Windows, make sure that the USER environment variable for
SAPSERVICE<sid> contains <sid>ADM. This variable controls the user
under which the external command is started. See also Note 556232.
regards,
John Feely -
Hi Basis Gurus,
In our Development BW 3.5 system the DB13 jobs (Check DB and updatestats) are getting failed since 15 days.
In DB13 when i clicked on the Check DB and updatestats the system is prompting message as "No action log is found for this action"
Please let me know how can i troubleshoot this issue.
Please help me.
Our is Qulality BW 3.5 system, Solaris OS and Oracle 9i database.
Regards,
Anil.Hi Alok,
Thanks for your support
I could search the jobs by giving the criteria as
Job name : DBA*
Use name : *
DBA:UPDATESTATS_____@210000/4007 D256979 Canceled
DBA:CHECKDB_________@190000/4007 D256979 Canceled
Like the above jobs there are some other jobs of the same name as above which got canceled from 03/01/2009 to till date.
When i clicked on the jobs logs the system is prompting a message as "No job log entries are available for the selected job"
Also i checked the user name with su01 and it is existing.
Please help me
Regards,
Anil. -
Hello,
we have distributed production server.we shceduled db13 jobs like checkdb and update statistics these job s are getting failure
sapxpg rfc connection also failed.
Job started
Step 001 started (program RSDBAJOB, variant &0000000000009, user ID HCCBASIS)
No application server found on database host - rsh/gateway will be used
Execute logical command BRCONNECT On host hrel-prdb
Parameters: -u / -jid CHECK20080825115758 -c -f check
SXPG_COMMAND_EXECUTE(LONG)
COMMANDNAME = BRCONNECT
OPERATINGSYSTEM = ANYOS
TARGETSYSTEM = hrel-prdb
DESTINATION =
SXPG_STEP_XPG_START: is_local_host: rc = 403
SXPG_STEP_XPG_START: host = hrel-prdb
SXPG_STEP_XPG_START: is_local_r3_host: rc = 802
SXPG_STEP_XPG_START: RFC_TCPIP_CONNECTION_OPEN returned rc_cannot_get_rfc_dests
SXPG_STEP_COMMAND_START: SXPG_STEP_XPG_START returned: 901
SXPG_COMMAND_EXECUTE failed for BRCONNECT - Reason: x_error
Job cancelled after system exception ERROR_MESSAGE
thanks in advance,
basis team.Hello All,
Please restart your server and reschedule the job in DB13 .
We also face this problem in past
Thanks & Regards
Shishir
Maybe you are looking for
-
File adapter become second step in the ccBPM (filename base on the input)
Hi XI Expert, Could you help to advise me, what i should o with this scenario : i have ccBPM scenario : 1. monitoring database table (using JDBC adapter), query filepath information and update status accordingly after process. 2. read xml file (n
-
Hi guys! My laptop came with windows 8. I replaced the hard drive with an ssd and installed win7. The computer is much faster now. I installed all the drivers. The only problem i have is that when i click on shut down, the display will turn of but th
-
OS/DB Migration to Windows X64 bit /Oracle 10G from OS400/DB4 V5R4
Hi, We need to do the OS/ DB migration in BI servers .. Kindly guide me .. what are the prerequesties ? I think we can achieve this throught Heterogeneous system copy . Source system Target system NW2004 -BI 7.0 NW2004 -BI 7.0 DB4 V5R4
-
Basically as the title says really. It worked perfectly fine a few months ago and now nothing at all. When I plug the USB lead in it used to be recognized straight away. I have tried rebooting my Mac with the device already connected and that still h
-
Software version 1.2.3...
I'm still running 1.2.1 on my 60GB 5G - has anybody had any bad experiences with 1.2.3? What's been improved in it? (And what's worse?) Thanks!