Prerequisities for Database mail
Hi all,
I am trying to configure Database mail,is IIS is mandatory ? I configured DB mail,but its not working ?
Any other settings i need to check in WinServer.
Thanks - SelvaKumarSubramaniam.Please MARK AS ANSWER, if my answer is useful to U.
SQL server running under Local system,if i change the account to network service.is it have any impact for SQL Server ?
Hi Selvaons,
According to your description, when you change the Service Startup Account for SQL Server from the “Local System” account to the “ Network service” account, usually it will not impact the SQL Server service.
However, the Network Service account is a special, built-in account that is similar to an authenticated user account. The name of this account is NT AUTHORITY\NetworkService. Services that run as the Network Service account access network
resources using the credentials of the computer account. The local system account does not require a password to connect to SQL Server on the same computer. Local System is a powerful account and
completely trusted account, than the administrator account.
We recommend that you do not use the Network Service account for the SQL Server. Local User or Domain User accounts are more appropriate for these SQL Server services.
For more information about the difference between Local System account, Network Service account, and Local Service account, you can review the following post.
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/7cd5247a-8e3f-488d-a2a3-3e7b27c49a4f/difference-between-local-service-account-and-network-service-account-in-windows-server-with-respect?forum=sqlsecurity
Regards,
Sofiya Li
Sofiya Li
TechNet Community Support
Similar Messages
-
Script for getting mail if database is down
Hi Friends,
OS Version : IBM AIX 5,2
Oracle version : 9.2.0.7
I am executing the following script for getting mail alert if database is down. some how the script is not working
check_stat=`ps -ef|grep ${ORACLE_SID}|grep pmon|wc -l`;
oracle_num=`expr $check_stat`
if [ $oracle_num -lt 1 ]
then
exit 0
fi
# Test to see if Oracle is accepting connections
$ORACLE_HOME/bin/sqlplus -s "/as sysdba" > /tmp/check_$ORACLE_SID.ora
select name from v$database;
exit
# If not, exit and e-mail . . .
check_stat=`cat /tmp/check_$ORACLE_SID.ora|grep -i error|wc -l`;
oracle_num=`expr $check_stat`
if [ $oracle_num -ne 0 ]
then
mailx -s "$ORACLE_SID is down!" [email protected] < /tmp/check_$ORACLE_SID.ora
exit 16
fi
I am saving this as .sh file and executing at command prompt. It is just hanging, but not throwing any error.
I would like to know if there is anything to be modified in the script or please provide me any such script. Thanks in advanceHI there.
I have a script I use that works really well. It sends out an email only if the database is down and also reads an ini file to process a blackout period and a priority level of the database... High priority databases are monitored every 5 minutes and Medium priority databases every hour.
There are two scripts, the shell script and the .ini file and I have two cron entries...
Check script:_
#!/bin/ksh
# check_oracle_status.sh
# Script to check if Oracle db's are up and running.
# Script is passed a priority field and reads check_oracle_status.ini
# to determine which db's to check. If db is down an email is sent.
# Priority Levels:
# H - Checks db's with "H"igh Priority every 5 minutes (cron)
# M - Checks db's with "M"edium Priority every hour (cron)
# L - db's with "L"ow Priority currently not checked
# Script Change History:
# ======================
# October 29th, 2009 - Initial Creation
# Set environment
export SCRIPTHOME=/opt/oracle/admin/scripts
export INIFILE=$SCRIPTHOME/check_oracle_status.ini
export PRIORITY=$1
. $HOME/.profile
db=`grep -i ":$PRIORITY" $INIFILE | cut -d":" -f1`
check_database()
sqlplus <<! > $SCRIPTHOME/check.out
/ as sysdba
select * from dba_data_files;
exit
grep ORA- $SCRIPTHOME/check.out > $SCRIPTHOME/error.out
if (( $? )); then
echo ""
else
mailx -s "Oracle instance $i is currently UNAVAILABLE" +<email address>+ < $SCRIPTHOME/error.out
fi
for i in $db ; do
fields=`grep $i $INIFILE | awk -F':' '{ total = total + NF }; END {print total}'`
export ORACLE_SID=$i
if [ $fields -gt 2 ]; then
BLACKOUT_START=`grep -i "$ORACLE_SID" $INIFILE | cut -d":" -f3`
BLACKOUT_END=`grep -i "$ORACLE_SID" $INIFILE | cut -d":" -f4`
CURRENT_HOUR=`date +%H`
CHECK_BASE=YES
if [ $BLACKOUT_START -gt $BLACKOUT_END ]; then
(( $CURRENT_HOUR >= $BLACKOUT_START || $CURRENT_HOUR <= $BLACKOUT_END )) && CHECK_BASE=
else
(( $CURRENT_HOUR >= $BLACKOUT_START && $CURRENT_HOUR <= $BLACKOUT_END )) && CHECK_BASE=
fi
if [ -n "$CHECK_BASE" ]; then
check_database
fi
else
check_database
fi
done
rm $SCRIPTHOME/check.out $SCRIPTHOME/error.out
INI File:_
oracle1:L
oracle2:M:17:08
oracle3:M
oracle5:M:17:08
oracle6:H
oracle7:M:17:08
oracle8:M
oracle9:M
Where oracle1,2,3 etc is your sid
L M and H your priority level
17 is blackout start (5 PM)
08 is blackout end (8 AM)
Note: Blackout is just a start hour and an end hour and must contain both or none and my script can only process one blackout per database. I guess if you
needed a second blackout you could add another line with different times for that sid
Cron entries:_
# Check Oracle Status
# The check_oracle_status.sh script monitors "H"igh priority databases every 5 minutes
# and "M"edium priority databases every hour
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /opt/oracle/admin/scripts/check_oracle_status.sh H > /dev/null 2>&1
0 * * * * /opt/oracle/admin/scripts/check_oracle_status.sh M > /dev/null 2>&1
Not sure if you require blackouts or priority levels but this setup works great at our site.
Hope this helps. -
Script for database send mail for tablespace threshold 90%
Dear All,
Scripts required for send mail from database for following events
1.Tablespace Threshold
2. Db Shutdown & Startup
Database Version : 10.2.0.1.0
OS :- Linux
Thanks & Regards,
Praful KawajiYou have Database Control.
Database Control can already do this.
Why do you want to remain in the Stone Age and continue to use scripts?
Why do you want to reinvent the wheel, when the functionality is already there.
Agreed, you would have to read documentation and/or help text, and you rather don't want to do that.
Which is the exact cause why you want to reinvent the wheel, and pay Larry for functionality you don't use.
Sybrand Bakker
Senior Oracle DBA -
Prerequisites for oracle database firewall
Hello,
I am new to Oracle Database Firewall product & i know basic concepts of Oracle Database Firewall after
searching in google & want to know what are prerequisites for installing Oracle database firewall & which is
the latest version & which operating systems are supported ?
Thank-You
Rahul ShahHi Rahul,
I suppose you can get all information from oracle.com.
http://www.oracle.com/technetwork/products/database-firewall/downloads/database-firewall-349271.html
Thanks & regards,
Shuo. -
Auto-Generate mail for database performace reporting.
Hello,
i have many server to keep an eye on for maintenance but, now the number for it is growing day by day. Its difficult for me to keep a watch on each in detail. So I have an idea to implement.
I want to make a script which will auto generate a mail from the server & send it to my email id with all the details of database. Basically performance related details.+
Is it possible to do so ???? I know how to send a mail with attachment, the code i will use is given below.+
please suggest me how can i attach my performance tuning queries output & get those things in my mail on a daily basis......
thanks in advance .....
DECLARE
v_From VARCHAR2(80) := '[email protected]';
v_Recipient VARCHAR2(80) := '[email protected]';
v_Subject VARCHAR2(80) := 'test subject';
v_Mail_Host VARCHAR2(30) := 'mail.mycompany.com';
v_Mail_Conn utl_smtp.Connection;
crlf VARCHAR2(2) := chr(13)||chr(10);
BEGIN
v_Mail_Conn := utl_smtp.Open_Connection(v_Mail_Host, 25);
utl_smtp.Helo(v_Mail_Conn, v_Mail_Host);
utl_smtp.Mail(v_Mail_Conn, v_From);
utl_smtp.Rcpt(v_Mail_Conn, v_Recipient);
utl_smtp.Data(v_Mail_Conn,
'Date: ' || to_char(sysdate, 'Dy, DD Mon YYYY hh24:mi:ss') || crlf ||
'From: ' || v_From || crlf ||
'Subject: '|| v_Subject || crlf ||
'To: ' || v_Recipient || crlf ||
'MIME-Version: 1.0'|| crlf || -- Use MIME mail standard
'Content-Type: multipart/mixed;'|| crlf ||
' boundary="-----SECBOUND"'|| crlf ||
crlf ||
'-------SECBOUND'|| crlf ||
'Content-Type: text/plain;'|| crlf ||
'Content-Transfer_Encoding: 7bit'|| crlf ||
crlf ||
'some message text'|| crlf || -- Message body
'more message text'|| crlf ||
crlf ||
'-------SECBOUND'|| crlf ||
'Content-Type: text/plain;'|| crlf ||
' name="excel.csv"'|| crlf ||
'Content-Transfer_Encoding: 8bit'|| crlf ||
'Content-Disposition: attachment;'|| crlf ||
' filename="excel.csv"'|| crlf ||
crlf ||
'CSV,file,attachement'|| crlf || -- Content of attachment
crlf ||
'-------SECBOUND--' -- End MIME mail
utl_smtp.Quit(v_mail_conn);
EXCEPTION
WHEN utl_smtp.Transient_Error OR utl_smtp.Permanent_Error then
raise_application_error(-20000, 'Unable to send mail: '||sqlerrm);
END;
/I like your script idea.
You can spool output to a file and mail the file to yourself.
What OS are you running?
On linux a simple starter script would look like this:
#!/bin/bash
echo `date`
# Set the Environmental variable for TESTDB instance
. /u01/app/oracle/dba_tool/env/TESTDB.env
$ORACLE_HOME/bin/sqlplus -s system/<PASSWORD> <<EOF
@/u01/app/oracle/dba_tool/TESTDB/quickaudit
EOF
echo `date`
mailx -s "Check database on TESTDB" [email protected] < /tmp/quickaudit.lst
----------------------sample ENV file--------------------------------------
ORACLE_BASE=/u01/app/oracle
ULIMIT=unlimited
ORACLE_SID=TESTDB
export ORACLE_TERM=xterm
ORACLE_HOME=$ORACLE_BASE/product/11.2.0
ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
LIBPATH=$LD_LIBRARY_PATH:/usr/lib
TNS_ADMIN=$ORACLE_HOME/network/admin
PATH=$ORACLE_HOME/bin:$ORACLE_BASE/dba_tool/bin:/bin:/usr/bin:/usr/ccs/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:/usr/lbin:/GNU/bin/make:/u01/app/oracle/dba_tool/bin:/home/oracle/utils/SCRIPTS:/usr/local/bin:
export ORACLE_BASE ORACLE_SID ORACLE_TERM ULIMIT
export ORACLE_HOME
export LIBPATH LD_LIBRARY_PATH ORA_NLS33
export TNS_ADMIN
export PATH
--------------------Starter reporting script--------------------------------------------------
SET ECHO OFF
SET TERMOUT OFF
REM Revisions:
REM Date ID Version Description
REM -------- -- ------- ----------------------------------------------------|
REM 10/07/05 1.0 Script to check for database issues
SPOOL /tmp/quickaudit.lst
SELECT SYSDATE FROM DUAL;
SHOW USER
SET TERMOUT ON
SET VERIFY OFF
SET FEEDBACK ON
PROMPT
PROMPT Checking database name and archive mode
PROMPT
column NAME format A9
column LOG_MODE format A12
SELECT NAME,CREATED, LOG_MODE FROM V$DATABASE;
PROMPT
PROMPT ------------------------------------------------------------------------|
PROMPT
PROMPT
PROMPT Checking database versions
PROMPT
column BANNER format A64
select * from v$version;
PROMPT
PROMPT ------------------------------------------------------------------------|
PROMPT
PROMPT
PROMPT Checking control file(s)
PROMPT
column STATUS format a7
column NAME format a68
column IS_RECOVERY_DEST_FILE format a3
set linesize 110
SELECT * FROM V$CONTROLFILE;
PROMPT
PROMPT ------------------------------------------------------------------------|
PROMPT
PROMPT
PROMPT Checking redo logs and group(s)
PROMPT
column member format a70
set linesize 110
set pagesize 30
SELECT group#, member FROM v$logfile;
PROMPT
PROMPT -----------------------------------------------------------------------|
PROMPT
PROMPT
PROMPT ------------------------------------------------------------------------|
PROMPT
PROMPT
PROMPT Checking freespace by tablespace
PROMPT
column dummy noprint
column pct_used format 999.9 heading "%|Used"
column name format a16 heading "Tablespace Name"
column bytes format 9,999,999,999,999 heading "Total Bytes"
column used format 99,999,999,999 heading "Used"
column free format 999,999,999,999 heading "Free"
break on report
compute sum of bytes on report
compute sum of free on report
compute sum of used on report
set termout off
set pagesize 40
select a.tablespace_name name,
b.tablespace_name dummy,
sum(b.bytes)/count( distinct a.file_id||'.'||a.block_id ) bytes,
sum(b.bytes)/count( distinct a.file_id||'.'||a.block_id ) -
sum(a.bytes)/count( distinct b.file_id ) used,
sum(a.bytes)/count( distinct b.file_id ) free,
100 * ( (sum(b.bytes)/count( distinct a.file_id||'.'||a.block_id )) -
(sum(a.bytes)/count( distinct b.file_id ) )) /
(sum(b.bytes)/count( distinct a.file_id||'.'||a.block_id )) pct_used
from sys.dba_free_space a, sys.dba_data_files b
where a.tablespace_name = b.tablespace_name
group by a.tablespace_name, b.tablespace_name;
PROMPT
PROMPT ------------------------------------------------------------------------|
PROMPT
PROMPT
PROMPT Checking for invalid objects
PROMPT -
Database Mail Fails For SQL Server Agent Jobs / Maintenace plans - Why ?
Database Mail Fails For SQL Server Agent Jobs / Maintenace plans - Why ?
This has been a very common question I have seen relatedt to Database mail and I thought will post here so if you run into this issue, it could be due to one of the following and also have mentioned below how to get around them. Bottom line is datbase mail works fine with SQL Agent jobs and maintenace plans in SP1 on all platforms.
1. If you see this on 64 bit platform and on RTM build, this is a bug that is addressed in SP1.
2. If you see the below error message, it is known issue and this is because of design that requires SQL Agent to restart, if SQL Agent was started before enabling databasemail and setting a new profile. We are evaluating to change this design of not requiring to restart agent for our future release.
Re: 264] An attempt was made to send an email when no email session has been established
This problem will go away after restarting SQL Server Agent in this case. Thanks,
Gops Dwarak, MSFTThis may be related to the fact that DBMail, by default, shuts itself down after 10 minutes of inactivty. If the mail service isn't running, you won't be able to queue up any mail messages.
There may be a built-in mechanism for addressing this problem, but I found that I can detect this situation and start the mail listener before sending db mail. I use the following in stored procs that need to send email.
You could increase the inactivity period for db mail shutdown from 600 seconds to some larger value. It might not make sense to do so, since shutting it down releases its resources back to teh system; if your SQL server only sneds mail infrequently, it might be better to start the mail listener on demand. Someone with more experience than I might want to add their two cents' worth. :-)
/* Check the mail engine. Start the service if is is stopped */
/* -- the DB Mail engine shuts down after 10 minutes (of inactivity) */
/* -- this setting can be changed, but we probably don't need to. */
DECLARE @rc INT
IF NOT EXISTS (SELECT * FROM msdb.sys.service_queues
WHERE name = N'ExternalMailQueue' AND is_receive_enabled = 1)
EXEC @rc = msdb.dbo.sysmail_start_sp
-- TODO: add handling and logging for any engine start issues -
Is there a way to control the number of concurrent SMTP connections on Database Mail?
Las week Rackspace started controlling the number of concurrent SMTP connections and we are now getting the following message when we send as little as 15 messages at a time using Database Mail:
Exception Message: Cannot send mails to mail server. (Service not available, closing transmission channel. The server response was: 4.7.0 smtp13.relay.dfw1a.emailsrvr.com Error: too many connections from IP xxx.xxx.xxx.xxx)
We are using SQL Server 2005 and Windows 2003 and we have been doing this since 2006 with no problems
Is there a way to control the number of concurrent SMTP connections used by Database Mail or the Database Mail external executable DatabaseMail90.exe?Hi rkohler,
Usually, we can use the Database Mail Configuration Wizard or the Database Mail stored procedures to determine the server name and port number for the Simple Mail Transfer Protocol (SMTP) server . In the SMTP server points, we can set or increase the number
of concurrent connections.
There is similar issue about database email on SQL Server 2005, you can refer to the following post.
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/6bb7b600-f025-451b-898b-2caa29c10d4d/only-some-email-gets-sent-successfully-from-spsenddbmail-database-mail-on-sql-server-2005
Thanks,
Sofiya Li
If you have any feedback on our support, please click here.
Sofiya Li
TechNet Community Support -
How to configure email Alerts in OEM Cloud 12c for Database Servers up/down
Hi everybody,
How to configure email Alerts in OEM Cloud 12c for Database Servers up/down status?
Regards,
Miguel VegaHi Miguel Vega,
Information regarding the notifications:
==============================
Configuring notification rules in 12c is different from earlier releases.
The concept and function of notification rules has been replaced with a two-tier system consisting of Incident Rules and Incident Rule Sets :
1. Incident Rules: Operate at the lowest level granularity (on discrete events) and performs the same role as notification rules from earlier releases.
By using incident rules, you can automate the response to incoming incidents and their updates.
A rule contains a set of automated actions to be taken on specific events, incidents or problems.
The actions taken are for example : sending e-mails, creating incidents, updating incidents, and creating tickets.
2. Incident Rule Set: A rule set is a collection of rules that applies to a common set of objects, for example, targets, jobs, and templates.
To help you to achieve the Notification Rules configuration, refer those notes :
How To Configure Notification Rules in 12C Enterprise Manager Cloud Control ? Doc ID 1368036.1
EM12c How to Add and Configure Email Addresses to EM Administrators and Update the Notification Schedule ?Doc ID 1368262.1
EM12c How to Subscribe or Unsubscribe for Email Notification for an Incident Rule Set ?Doc ID 1389460.1
EM 12c How to Configure Notifications for Job Executions ? Doc ID 1386816.1
Best Regards,
Venkat -
Database mail configuration is not working with office365
Hi there!
I' looking for some help debugging a blocking error in our DEV environment.
We're currently using Windows 2008 R2 Standard, with IIS 7.5 and MS SQL Server 2012 Standard.
We're experiencing troubles while trying to use database mail in conjunction with Office365 SMTP.
We've generated our self-signed certificate, via IIS, and configured SMTP Virtual Relay Server with local (machine-name) and remote domain, following a step-by-step tutorial from configureoffice365.com.
We've also checked at the original MSDN tutorial, but it's been of little use (at least for us).
We would like to use our Office365 SMTP server to send out notifications and we're currently using Office365 working credentials to try the SMTP authentication, but we're stuck with this error (x is used to hide sensible data):
OutboundConnectionCommand [12/May/2014:13:35:08 +0100] "STARTTLS - SMTP" 0 8
OutboundConnectionResponse [12/May/2014:13:35:08 +0100] "- -?220 2.0.0 SMTP server ready SMTP" 0 27
OutboundConnectionCommand [12/May/2014:13:35:08 +0100] "EHLO -?SQLDEVxxxxx SMTP" 0 4
OutboundConnectionResponse [12/May/2014:13:35:08 +0100] "- -?250-xxxxx.outlook.office365.com Hello [x.x.x.x] SMTP" 0 58
OutboundConnectionCommand [12/May/2014:13:35:08 +0100] "AUTH - SMTP" 0 4
OutboundConnectionResponse [12/May/2014:13:35:08 +0100] "- -?334 xxxxx SMTP" 0 16
OutboundConnectionResponse [12/May/2014:13:35:14 +0100] "- -?535 5.7.3
Authentication unsuccessful SMTP" 0 37
Any idea or suggestion?
Thank you.Hi giovannizuccaro,
According to your description, when you configure database mail in your SQL Server Management Studio,
Please note that you enter the server to send to as localhost and the email address as the email you have on the office 365 Exchange online for the same account you used to configure the delivery configuration of the local SMTP server. And
you should choose anonymous authentication for SMTP authentication. Once finished the configuration, you can test the email sending, check if you are able to send emails to any external recipient using you Exchange online.
For more information, there is detail about how to configure SQL Database mail so send emails using Office 365 (Exchange Online):
http://blogs.msdn.com/b/momalek/archive/2013/02/25/how-to-configure-sql-database-mail-so-send-emails-using-office-365-exchange-online-a-walkthrough.aspx
If there are still some errors, I recommend you post your error message on the Office 365 forums (https://community.office365.com/en-us/f/default.aspx ), It is appropriate and more experts
will assist you.
Regards,
Sofiya Li
Sofiya Li
TechNet Community Support -
Database mail only works from SSMS not from a job
I have a script that returns its results via DB mail. When I run it from SSMS I get email, when I run it from a job I don't get email
Here is the error message from the DB mail log
Message
The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 1 (2014-09-23T10:12:29). Exception Message: Cannot send mails to mail server. (The operation has timed out.).
I've already enabled mail in SQL server agent.
1. Went into object-explorer, right-clicked on the SQL Server Agent, and selected properties. Then
went to the Alert System page, and enabled the mail profile for the server agent. (you may already have this).
2. Then, went to "Database mail", right-clicked and selected "Configure
Database mail." Selected "Manage profile security" and made sure my profile was set to public. THEN, and this is the kicker, clicked on the "Default Profile" field and set it to "yes".
I'm using SQL server 2012 running on a Windows 7 system
Suggstions?BOL: Configure SQL Server Agent Mail to Use Database Mail
Using Database Mail with SQL Server Agent
Look in Event Viewer & Agent log to find related messages.
Kalman Toth Database & OLAP Architect
SQL Server 2014 Database Design
New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014 -
Database Mail not working with SQL Server Agent
I'm running SQL Server 2005 Standard edition 64 bit with SP2 on a 64 bit machine.
Database mail does not work with SQL Server Agent. When I configure SQL Server Agent to use database mail the test email button is greyed out and inactive therefore I cannot send emails using operators or for jub success failure etc.
I've read that there was supposed to be a fix for this with SP1 but I have SP2 and still receive the same problem. Please can somebody help as I do not wish to use SQL Mail as a work around due to this becomming redundant in future versions of SQL Server.
Kind RegardsThe problems solved
steps:
1)we create a mail profile at at Managment->Database Mail ,of SQL Managment
2)we set this account as "default" at Managment->Database Mail -> Configure Database Mail -> Manage profile security
3)At tab "Alert System" of SQL Server Agent properties , we check the "Enable mail profile" , Mail System=Database Mail, Mail profile = "the profile we already create"
4)we create a new operator at "Operators" of sql agent, where at "notification options" -> "Email name" we put the mail where we want to sent the agent the mails at failured job
5)We go at a specific job, at tab "Notifications" ,we check the "email" check box and then we choose the operator we just create, at the text box next to check box.
I hope not to forget something
Thank You all for the help -
SQL Server 2008 Database Mail Failure
I am currently using SQL Server 2008. I have database mail setup and it was working for a while without any issues. However, now we are getting the following message anytime it trys to send an email with a domain address other than our own.
The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 4 (2010-07-21T15:21:58). Exception Message: Cannot send mails to mail server. (The operation has timed out.). )
The emails have been setup and working since last year up until June 30th. I have made sure that the server name for the email server is correct. Ports 25, 110, and 443 are open on the email server and I setup the database mail to use port 25.
The sever name is webmail.somecompanyname.com
I tested on the server that I could telnet to the mail server and I get the response back from the server that says ready.
I tested sending an email to my work address by right clicking database mail and send test e-mail. When I send it to my work email it works fine (myname.somecompany.com)
When I do the same test only sending it to my personal comcast account I get the error message in the
sysmail_faileditems.
Can anyone help shed some light on other possible issues that might be causing this to fail now?
Any help is greatly appreciated.
Thanks in advance.My issues with the email might be fixed now. I will be keeping an eye on it today.
It turns out that we have 2 IPs for the 2 different internet providers that we have for our company.
In the
On Mail server > Exchange Server Manager > SMTP Connector Properties
> Access Properties > Access Tab > Relay button it had the ip address for one of the providers, but not for the comcast one that we just installed on June 30th.
The network administrator added the ip for comcast to the location above and it seems to be working now.
We will keep our fingers crossed.
Thanks for all your suggestions. -
Why am I unable to Configure Database Mail?
To Anyone who can help -- I am following the self-paced training kit for Microsoft SQL Server 2008 Implementation and Maintenance written by Mike Hotek and have entered the following code as requested: ( Note that I have italicized the
code & message )
EXEC sp_configure ‘Database Mail XPs’,1
GO
RECONFIGURE WITH OVERRIDE
GO
When I execute this code I get the following message:
Msg 15123, Level 16, State 1, Procedure sp_configure, Line 51
The configuration option 'Database Mail XPs' does not exist, or it may be an advanced option.
Admittedly I am very new to SQL Server -- the only thing I can figure why this is not working is because I did not check the Reporting Services box when I installed the SQL Server
2008 Enterprise software, as I was following the instructions as close as possible. The other possibility is I downloaded a different database than what was asked, although I have no idea how that would affect my outcome. Thank you to anyone
who can help!
Oh yeah, I don't know if this helps but I am running Windows Vista, w/ Pentium(R) Dual-Core CPU processor 2.50GHz
& 4GB of RAM and it is a 64-bit system... Thanks again!please try this---
----- First run below script
EXEC sp_configure 'Show Advanced Options', 1
RECONFIGURE
WITH OVERRIDE
go
------ then run below script
EXEC
sp_configure ‘Database Mail XPs’,1
GO
RECONFIGURE
WITH OVERRIDE
GO
http://uk.linkedin.com/in/ramjaddu -
Is Precalculation server a prerequisite for Information broadcasting
Hello Everybody,
I wanted to know is installation and configuration of pecalculation server a prerequisite for enabling Information broadcasting feature in BW 3.5 i.e; inorder to send emails to users .I mean inorder to send mails to users is it necessary to install pecalculation server first.
Regards,
SaumyaThe Precalculation server is only needed if you want to distribute <b>workbooks</b>. In order to distribute workbooks, the BW needs access to a computer with Excel on it. The precacluation server service software can be installed on a standard desktop PC. It can be installed on mutliple desktops, or you can consider a centralized server, but for initial testing, a desktop will do. There are a number of OSS Notes to apply, several from SP 17 that deal with problems occuring as a result trying to distribute multiple wkbks simultaneoulsy.
You do <b><u>NOT</u></b> need it to distribute either query links or html formatted output.
You also need an IGS server if you want to be able to send your output in a zip file format.
Don't have the link handy, but try searching SDN on Precacluation Server - there is a good paper (think it was a How To...) that was just written in April on troubleshooting Precalculation Server issues. -
Msg 22051 Database Mail Attachment file is invalid
Hello,
I'm testing a trigger to output a text file and then attach it to an email in Database Mail. So far, I've gotten the correct text file to export to a TEMP folder, but when I try to attach it to database mail, I get the message below. I think it is a permissions
problem with the TEMP directory, but I've tried adding some permissions, but nothing seems to work. The profile name is TFRONT_DBMAIL and the account name is Albert using Basic Authentication for the SMTP server. I think you have to add the SQL Server User
Account or the Database Mail account to the permissions, but I can't seem to find the exact one to use. I have set up other triggers that use database mail that only send messages with no attachments and they work fine.
Any help appreciated!
Albert
Msg 22051, Level 16, State 1, Line 0
Attachment file "C:\TEMP\NTCDManifestInv135255.txt" is invalid.
Albert SHello, I moved the temp file here:
DECLARE
@PathVARCHAR(200)='C:\Users\MSSQLSERVER\Temp\'
SQL Server service account (MSSQLSERVER) has full access to that folder. Still getting this
message:
Msg 22051, Level 16, State 1, Line 0
Attachment file "C:\Users\MSSQLSERVER\Temp\NTCDManifestInv135255.txt" is invalid.
The file is created and it is in the Temp directory. It just won't attach. Thank you
for any help! Below is the full statement.
Albert
DECLARE @CustomerID varchar(10) = 'NTCD'
DECLARE @EmailBody varchar(1000)
DECLARE @CustomerName varchar(50)
DECLARE @InvoiceNo VARCHAR(6) = '135255'
DECLARE @ManifestName VARCHAR(11) = 'ManifestInv'
DECLARE @Extension VARCHAR(4) = '.txt'
DECLARE @FullName VARCHAR(100)
DECLARE @BCP VARCHAR(8000)
DECLARE @Path VARCHAR(200) = 'C:\Users\MSSQLSERVER\Temp\'
SET @FullName = char(34) + @Path + @CustomerID + @ManifestName + CAST(@InvoiceNo as VARCHAR) + @Extension + char(34)
SET @BCP = 'bcp "SELECT char(34)+ComposerAuthor+char(34), char(34)+Title+char(34), char(34)+(ISNULL([Place],char(32))+char(32)+char(58)+char(32) + [Publisher]+char(44)+char(32) + [Copyright])+char(34) AS PlacePubDate, char(36)+CAST([ExtPrice] AS varchar), char(34)+ScoreFormat+char(34) FROM tfront.dbo.tblCustInvItems INNER JOIN tfront.dbo.tblInventory on tfront.dbo.tblCustInvItems.InventoryID = tfront.dbo.tblInventory.ID WHERE InvoiceNo = ' + @InvoiceNo + '" queryout '+ @FullName + ' -T -c -t\t -S'
EXEC master..xp_cmdshell @BCP
SET @EmailBody = 'The Account ' + @CustomerID + ' was billed today.' + Char(13) + 'A text manifest was sent.'
EXEC msdb.dbo.sp_send_dbmail
@profile_name = 'TFRONT_DBMail',
@recipients = '[email protected]',
@body = @EmailBody,
@subject = 'TFront Database Auto Email',
@file_attachments= @FullName;
Albert S
Maybe you are looking for
-
Balancing field "Segment" in line item 001 not filled while posting through
HI All, I am experiencing the below error while processing FB70 transaction in Foreign currency with Tax codes (earlier this problem was not there, this is happening recently). The error description as given below. "Balancing field "Segment" in line
-
GR Processing Time on Inbound Delivery
Hi, I Have a Material with GR Processing time which was carried to my PO Well. When i Create a Confirmation for that PO and raised a Inbound Delivery against the PO. Now my GR Processing time Changes to 1 automatically in PO. Why? If it is Correct c
-
Exit stored procedure after UPDATE
Hello, I have written a LOOP that calls a second Stored Procedure. In the second Stored Procedure I have 3 INSERTS each SELECT's values limited with a WHERE clause. Example: begin dynsql:=INSERT INTO destinationtable (ID,DATE,NAME) SELECT src.ID,src.
-
Optimizing 1.8 GHz PPC after install of OS 10.5.8
Have 1.8 GHz Power PC G5 and installed OS 10.5.8 to enable iPad wireless function in home application. iPad working great; we love it. But PPC performance, especially web functions and occasionally iTunes, are "balky," slow or just freezing. Is there
-
Reader 10.1.3 keeps reinstalling when I click the icon to open it in my start menu
I have reader 10.1.3 installed on two different computers. Opening PDFs in a browser window is no problem. But when I cick the start menu icon to open reade 10.1.3 I get a message saying installing reader 10.1.3 after a while reader opens after whi