MS SQL administration / backup in SAP
Hi,
I have worked mostly with SAP and Oracle environment. Now I plan a backup plan for SAP ECC system with SQL server 2005.
So please help me to get some link where I can learn about backup and restore of SQL server in SAP environment.
Regards,
Nallasivam.D
Hi Nallasivam,
Please refer http://msdn.microsoft.com/en-us/library/ms187048(SQL.90).aspx
http://help.sap.com/saphelp_nw70/helpdata/EN/f2/31add4810c11d288ec0000e8200722/content.htm
http://help.sap.com/saphelp_nw70/helpdata/EN/f2/31adc8810c11d288ec0000e8200722/frameset.htm
[Guide|http://help.sap.com/businessobject/product_guides/planning10/en/SQL%20Server%20Setup%20Guide%20for%20Business%20Objects%20Planning.pdf]
Also use Note 555223 - FAQ: Microsoft SQL Server
Regars,
Nibu
Similar Messages
-
SQL LOG Backup failed in one Cluster Node
I have 02 node SQL fail over cluster, NOD01 and NODE 02. and configure SQL log backup job via SQL Logshipping
When the sql service is mounted to node 02 job backup will work without any issues, Once its connected to node 01 this will provide below issue
Executed as user: <domain>\administrator. The process could not be created for step 1 of job 0xAC90A0F3623AE44285089E9EF53B12C7 (reason: The system cannot find the file specified). The step failed.
could anyone have on fix for this
ThanxSQL Server Agent on both nodes run under same domain account?
Are you sure that path location is correct?
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
Low Network Utilization in Remote Disk Backup via SAP FTP
Hi gurus,
I'm running whole online backup + redo log to backup my SAP server to backup server via SAPFTP (remote disk backup).
I'm using 100Mbps network connection between the two servers, with SAP server configured to 'maximize data throughput for network application'.
When I copy data from SAP Server to backup server manually, the speed is OK (around 98% network utilization).
But when I use put command in program RSFTP002 (SAPFTP) for the same file, the network utilization is just around 10%.
I use Windows Server 2003 x64 for SAP Server, and Windows Server 2008 x64 for Backup Server.
Each has adequate RAM, 8GB for SAP Server and 4GB for Backup Server.
Is this technical problem or is it because backup is considered background process, thus lowering its speed?
Help will be very much appreciated.
Edited by: Bobby Gunawan on Jan 9, 2009 11:44 AMgo read http://help.sap.com/saphelp_45b/helpdata/en/0d/d311324a0c11d182b80000e829fbfe/frameset.htm
it's old but should help you nonetheless.
I would not use SAPFTP as you found out, it is slow.
use DD instead which is much faster. -
Hi Friends,
We have planned to upgrade our SCCM 2012 SP1 infrastructure to SCCM 2012 R2 so we have setup test environment to test SQL database upgrade before doing same in production.
But while testing SQL database upgrade on test machine, it is getting failed with below error.
ConfigMgrSetupWizard.log
ConfigMgrSetupWizard Verbose: 1 : Scripted setup failure handling callback called. Failure: 29.
ConfigMgrSetupWizard Verbose: 1 : Received error [Setup cannot upgrade the ConfigMgr database. Contact your SQL administrator.] from native code.
ConfigMgrSetup.log
ERROR: SQL Server error: [23000][2627][Microsoft][SQL Server Native Client 11.0][SQL Server]Violation of PRIMARY KEY constraint 'ContentDistribution_PK'. Cannot insert duplicate key in object 'dbo.ContentDistribution'. The duplicate key value is (921). :
tr_ContentDistributionNotification_insert
ERROR: Failed to execute SQL Server command: ~-- ~-- Rebuild ContentDistribution tables ~-- ~IF (EXISTS(SELECT TOP 1 1 FROM dbo.SMSData WHERE SMSBuildNumber <= 7900) AND dbo.fnIsSecondary() != 1) ~BEGIN ~ exec spRebuildContentDistribution
@TruncateTables=0 ~END
Failed to create process of SetupWpf.exe.
Can anyone please help to get this resolved.
Thanks.We found out that there were duplicate entries in the PkgStatus_G and the PkgServers_G tables in the SCCM DB. We identified them, deleted them , and then we were able to run the /TESTDBUPGRADE command and it went through fine. We performed
all of this on a COPY of the PROD DB and then moved the changes in PROD. Hope this helps someone.
- Dave -
Reporting Services of SQL Server 2005 in SAP B1
Hi,
Can I used Reporting Services of SQL Server 2005 in SAP B1? If yes then please guide me how can I do it. If not then is it possible to use these services in 8.8 version?
Regards,
GhazanfarHi Ghazanfar,
The answer is YES. You may check this blog:
/people/community.user/blog/2008/07/04/sql-server-reporting-magic
Thanks,
Gordon -
Fetch the data from the tables in the SQL 2005 server to sap R/3.
Hi Experts,
We need to fetch the data from the tables in the SQL 2005 server to sap R/3.
Please explain which will be the best approach to fetch the same and how to do it. Sample program can greatly help.
<< Please do not offer points >>
Regards,
Shobana K
Edited by: Rob Burbank on Sep 21, 2010 2:36 PMHi,
Try NATIVE SQL statements in your abap code otherwise you can try to establish jdbc connection from ABAP program.
search in SDN for samples!
Suresh -
Hello all,
not sure if I'm on the right thread but if not please do point me to the correct one.
basically I have a script that run every end of the month to do a backup of a database (Detach, Mount a new, and move the database to a new
location) bu since this month this is coming back with an error when running it. as far as i know nothing has changed since two or three months ago but this is not longer working.
Assistance is really needed. here.
Here is my code but this is now coming back with
Msg 5105, Level 16, State 4, Server PRITL1, Line 1
Device activation error. The physical file name
'E:\SQL\MSSQL\Data\Syslogd.mdf' may be incorrect.
@echo off
rem ***************************************************
rem * This script automates the Syslog Backup process *
rem ***************************************************
echo 192.168.0.9 > report.txt
date /t >> report.txt
time /t >> report.txt
blat report.txt -to [email protected] -f [email protected] -subject "Queen - Starting Syslog DB Maintenance" -server 192.168.0.26
echo ******************************************* >> report.txt
echo * Stopping the Kiwi Syslog Daemon Service * >> report.txt
echo ******************************************* >> report.txt
net stop "Kiwi Syslog Daemon"
for /F "tokens=3 delims=: " %%A in ('sc query "Kiwi Syslog Daemon" ^| findstr " STATE"') do (
if /I "%%A" NEQ "RUNNING" (
echo Stopping the Kiwi Syslog Daemon Service succeeded >> report.txt
echo. >> report.txt
) else (
echo -----!!! Stopping the Kiwi Syslog Daemon Service failed !!!----- >> report.txt
blat report.txt -to [email protected] -f [email protected] -subject "Queen - Syslog DB Maintenance Report" -server 192.168.0.26
exit
echo ********************************** >> report.txt
echo * Detaching the Syslogd database * >> report.txt
echo ********************************** >> report.txt
ping 127.0.0.1
ping 127.0.0.1
osql -E -b -Q "master..sp_detach_db 'Syslogd'" >> report.txt
set ReturnCode=%errorlevel%
if %ReturnCode% equ 0 (
echo Detaching the Syslogd database succeeded >> report.txt
echo. >> report.txt
) else (
echo. >> report.txt
echo -----!!! Detaching the Syslogd database failed !!!----- >> report.txt
echo. >> report.txt
echo ********************************************* >> report.txt
echo * Restarting the Kiwi Syslog Daemon service * >> report.txt
echo ********************************************* >> report.txt
net start "Kiwi Syslog Daemon"
for /F "tokens=3 delims=: " %%A in ('sc query "Kiwi Syslog Daemon" ^| findstr " STATE"') do (
if /I "%%A" NEQ "STOPPED" (
echo Restarting the Kiwi Syslog Daemon Service succeeded >> report.txt
blat report.txt -to [email protected] -f [email protected] -subject "Queen - Syslog DB Maintenance Report" -server 192.168.0.26
exit
) else (
echo -----!!! Restarting the Kiwi Syslog Daemon Service failed !!!----- >> report.txt
blat report.txt -to [email protected] -f [email protected] -subject "Queen - Syslog DB Maintenance Report" -server 192.168.0.26
exit
echo *************************************************** >> report.txt
echo * Moving the Syslogd database to the _Burn folder * >> report.txt
echo *************************************************** >> report.txt
Move E:\SQL\MSSQL\Data\Syslogd*.* \\server\Syslogs2\_Burn\
set ReturnCode=%errorlevel%
if %ReturnCode% equ 0 (
echo Moving the Syslogd database to the _Burn folder succeeded >> report.txt
echo. >> report.txt
) else (
echo -----!!! Moving the Syslogd database to the _Burn folder failed !!!----- >> report.txt
echo ************************************ >> report.txt
echo * Reattaching the Syslogd database * >> report.txt
echo ************************************ >> report.txt
osql -E -b -Q "master..sp_attach_db 'Syslogd','E:\SQL\MSSQL\Data\Syslogd.mdf','E:\SQL\MSSQL\Data\Syslogd_log.ldf'" >> report.txt
echo. >> report.txt
echo ********************************************* >> report.txt
echo * Restarting the Kiwi Syslog Daemon service * >> report.txt
echo ********************************************* >> report.txt
net start "Kiwi Syslog Daemon"
for /F "tokens=3 delims=: " %%A in ('sc query "Kiwi Syslog Daemon" ^| findstr " STATE"') do (
if /I "%%A" NEQ "STOPPED" (
echo Restarting the Kiwi Syslog Daemon Service succeeded >> report.txt
blat report.txt -to [email protected] -f [email protected] -subject "Queen - Syslog DB Maintenance Report" -server 192.168.0.26
exit
) else (
echo -----!!! Restarting the Kiwi Syslog Daemon Service failed !!!----- >> report.txt
blat report.txt -to [email protected] -f [email protected] -subject "Queen - Syslog DB Maintenance Report" -server 192.168.0.26
exit
echo **************************************** >> report.txt
echo * Restoring the blank Syslogd database * >> report.txt
echo **************************************** >> report.txt
osql -E -b -Q "Restore Database Syslogd from disk = 'E:\SQL\MSSQL\Backup\SyslogD_Blank.bak'" >> report.txt
set ReturnCode=%errorlevel%
if %ReturnCode% equ 0 (
echo Restoring the blank Syslogd database succeeded >> report.txt
echo. >> report.txt
) else (
echo. >> report.txt
echo -----!!! Restoring the blank Syslogd database failed !!!----- >> report.txt
echo ************************************ >> report.txt
echo * Moving back the Syslogd database * >> report.txt
echo ************************************ >> report.txt
Move \\server\Syslogs2\_Burn\Syslogd*.* E:\SQL\MSSQL\Data
echo ************************************ >> report.txt
echo * Reattaching the Syslogd database * >> report.txt
echo ************************************ >> report.txt
osql -E -b -Q "master..sp_attach_db 'Syslogd','E:\SQL\MSSQL\Data\Syslogd.mdf','E:\SQL\MSSQL\Data\Syslogd_log.ldf'" >> report.txt
echo. >> report.txt
echo ********************************************* >> report.txt
echo * Restarting the Kiwi Syslog Daemon service * >> report.txt
echo ********************************************* >> report.txt
net start "Kiwi Syslog Daemon"
for /F "tokens=3 delims=: " %%A in ('sc query "Kiwi Syslog Daemon" ^| findstr " STATE"') do (
if /I "%%A" NEQ "STOPPED" (
echo Restarting the Kiwi Syslog Daemon Service succeeded >> report.txt
blat report.txt -to [email protected] -f [email protected] -subject "Queen - Syslog DB Maintenance Report" -server 192.168.0.26
exit
) else (
echo -----!!! Restarting the Kiwi Syslog Daemon Service failed !!!----- >> report.txt
blat report.txt -to [email protected] -f [email protected] -subject "Queen - Syslog DB Maintenance Report" -server 192.168.0.26
exit
echo ******************************************* >> report.txt
echo * Starting the Kiwi Syslog Daemon service * >> report.txt
echo ******************************************* >> report.txt
net start "Kiwi Syslog Daemon"
for /F "tokens=3 delims=: " %%A in ('sc query "Kiwi Syslog Daemon" ^| findstr " STATE"') do (
if /I "%%A" NEQ "STOPPED" (
echo Starting the Kiwi Syslog Daemon Service succeeded >> report.txt
) else (
echo -----!!! Starting the Kiwi Syslog Daemon Service failed !!!----- >> report.txt
blat report.txt -to [email protected] -f [email protected] -subject "Queen - Syslog DB Maintenance Report" -server 192.168.0.26
exit
echo ************************************** >> report.txt
echo * Compressing the Syslog backup file * >> report.txt
echo ************************************** >> report.txt
"C:\program files\winrar\rar.exe" M -df -ep -ag -m5 \\server\Syslogs2\_Burn\PR-Syslog \\server\Syslogs2\_Burn\syslogd*.* >> report.txt
echo. >> report.txt
set ReturnCode=%errorlevel%
if %ReturnCode% equ 0 (
echo Compressing the Syslog backup file succeeded >> report.txt
echo. >> report.txt
) else (
echo -----!!! Compressing the Syslog backup file failed !!!----- >> report.txt
blat report.txt -to [email protected] -f [email protected] -subject "Queen - Syslog DB Maintenance Report" -server 192.168.0.26
exit
echo **************************** >> report.txt
echo * Completed * >> report.txt
echo * Ready for burning! * >> report.txt
echo * Check Archived files on * >> report.txt
echo * \\\server\Syslogs2 * >> report.txt
echo *************************** >> report.txt
echo. >> report.txt
date /t >> report.txt
time /t >> report.txt
blat report.txt -to [email protected] -f [email protected] -subject "Queen - Syslog DB Maintenance Report - Ready to Burn" -server 192.168.0.26Bill thanks for that,
this is actually an SQL express edition and not a full SQL server.
Environment:
Databases will be detached, copied to from E:\SQL\MSSQL\Data\ to a shared location and then mount black database foles .MDF
and .LDF files to the SQL express and then restart the kiwi syslog applications.
why not powershell? well I've inherited this and machine is a 2003 server and we do not install PS on all machines except
if they are needed.
SQLServer Express comes with tools to backup the database. Post is SQLServer forum to learn how to set up and use SQLExpress tools.
SQLExpress has support in PowerShell for managing the server.
Here si on emethod posted by Microsoft that is useful. Methods using the scheduler and other tools are available.
http://support.microsoft.com/kb/2019698
¯\_(ツ)_/¯ -
How to find sql server backup was taken under compression mode
Hello,
How to find SQL server backup was taken under compression mode ? I have disabled the Compress Mode backup setting but I want to make sure the backup is taken without compression.
Is there a script for that?
Thanks
JKI have disabled the Compress Mode backup
That is only a default setting, in backup command you can always overwrite it to a different value.
Olaf Helper
[ Blog] [ Xing] [ MVP] -
Problem: VSS error with 'SQL Server Backup to Windows Azure Tool' installed
When 'SQL Server Backup to Windows Azure Tool' is installed, shadow copies cannot be enable and backups fail. When attempting to enable shadow copies, we get a "volsnap" error: "The shadow copies of volume X were aborted because
of a failed free space computation". After uninstalling the "Tool", VSS works. Reinstalling "Tool" causes the problem to return.
While the error suggests a space issue, there is plenty of space on the server's two volumes. Additionally, another 100GB volume was added and VSS storage was allocated to it; still received the error.
Issue seems to point to 'SQL Server Backup to Windows Azure Tool'.
Environment: Hyper-V guest: "Windows Server 2012 R2 Standard" with "SQL Server 2008 R2 Standard". Using "Azure Storage" for SQL backups.
Suggestions?Hello,
Yes, we have a confirmed interference between the tool and the VSS Framework. This was identified very recently and is under investigation by the product group. Since the issue is within the filter driver shipped by the tool, that unfortunately means that
you currently need to choose between the tool and a working VSS Framework. If the latter is more important, then uninstall the tool (that will require a restart).
We apolologize for the inconvenience. I'm going to try to get the home page of the tool updated to avoid other situations like yours. Hopefully we should see a new version of the tool soon.
As a side note, recent versions of SQL Server can directly use Azure Storage as backup target, see
http://msdn.microsoft.com/en-us/library/jj919148(v=sql.110).aspx.
Regards,
Guillaume Fourrat - Microsoft France -
Converting SQL server database into SAP readable XML??
Could anyone kindly let me know what is the procedure to convert SQL server database into SAP readable (encrypted) XML for SAP Authoring tool???
Sorry you will need to be more specific, what is it exactly you want to do? What authoring tool do you mean.
A bit more info and someone might be able to help you.
BRgds,
Simon -
Possible to view MS SQL Server Log in SAP GUI?
Hi,
I am wondering if I can view the SQL Server log in SAP GUI using a transaction code.
I don't readily see how to do this with the TEs. It would be helpful to see things like: who has tried to log into the SQL Server via a Database Management tool : agnostic to SAP.: is SQL Server Management Studio or DBArtisan or other services.
thanks
ChrisHi chris
Yes,you can view the Sql server log in transaction code ST04 & DBA Cockpit in SAPGUI.
Kindly refer the SAP notes.
139945 - SAP Database Monitor for MS SQL Server
1027512 - MSSQL: DBA cockpit for basis release 7.00 and later
Regards
Ram -
Error in installing SQL SErver 2000 for SAp
When i try to install Ms SQL server 2000 for SAP it is giving me a message , "unable to validate product key"
Pls let me know how to solve itDear,
When u install original sql server, might be it should not ask for product key. In sql source there is one vbs script, just click on that vbs script and ur installation of sql server is going to start. This is upto my knowledge.
Thanking You.
Charanjit -
BI Administrator for several SAP BI systems within SAP Portal
Hi!
I have activated BI Administrator function in SAP BI system and in SAP Solution Manager system as well.
I have connected both systems to SAP Portal as SAP_BW systems.
Per default I can see in SAP EP --> BI Administrator only the SAP BI system entry.
I have the following problem:
When I assign system alias "SAP_BW" in Portal for one of the systems I can see this system in drop down list on BI Administrator. BUT I can assign this system alias only for one system.
Is there a work around to solve my problem?
How can I see the SAP Solution Manager systen in drop down list within SAP EP --> BI Administrator?
Thank you very much!
regards
JürgenHI
You can call the BI Administration Cockpit from the BI Administration 1.0 business package in SAP Enterprise Portal
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90080703-4331-2a10-cd98-9c1e95acdea0
https://www.sdn.sap.com/irj/sdn/howtoguides
https://www.sdn.sap.com/irj/sdn/event/webinars?rid=/library/uuid/d09864c5-0bb0-2910-8e8a-a306a886dcd9
http://help.sap.com/saphelp_nw04s/helpdata/en/48/bc406a800a4226951dcc57428e03f2/frameset.htm
BI ADMINISTRATION COCKPIT
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50f95b21-7fb8-2910-0c81-f6935d4c654b
Also Check the Note 934848 - Collective note: (FAQ) BI Administration Cockpit
Hope it helps -
Backup of SAP binaries \usr\sap
Hello!
I have two SAP ECC 6.0 systems landscape and would like to set up the backup activities for the SAP-Binaries-partition \usr\sap\...
I have the following questions regarding this issue:
1) How often should I backup the SAP-Binaries-partition \usr\sap\...?
(daily, weekly, 1 times month)
2) What should be backuped from \usr\sap\... ?
(trans, profiles)
2) Should the DB, SAP R/3 or some Services be stopped for this issue?
Do exist some file-locks avoiding offline backup of \usr\sap\... ?
Thank you very much indeed!
regards
ThomRefer the link may be useful -
SAP Backup
How to take backup of SAP R3 system
Regards,
Amit
Reward all helpful replies. -
Sybase SQL Anywhere 12 and SAP Sybase SQL Anywhere 16
Hello,
Is there a difference between Sybase SQL Anywhere 12 and SAP Sybase SQL Anywhere 16?
If there is, could you please list out the general information. i.e. is v12 (i.e. pre SAP purchase of Sybase) just older than v16 (i.e. post SAP purchase of Sybase) ?
I know that Hyland's OnBase 14 supports both of these versions. Just having a difficult time trying to find information about Sybase SQLA v12 - if it is even still available for purchase, etc.
Any information would be appreciated.
Thank you,
Christian JonesSAP Sybase SQL Anywhere 16 is the next major version of SQL Anywhere after SQL Anywhere 12.
The following documentation link DocCommentXchange will include information about the changes made for v16. For information specific to v12, see DocCommentXchange which has links for both v12.0.0 and v12.0.1 documentation as I suspect that most of the marketing materials would be focused on v16.
Both v12 and v16 are available for sale. Here is a link SAP SQL Anywhere v16.0 | SAP Online Store
where you will purchase v12 and v16 software (look at the sidebar for the v12 links).
Maybe you are looking for
-
ViewLayout not working when working from home
Hi, My WD Environment works perfectly well when working in office. Layout Opens and also when testing the application it shows properly in internet explorer. But when i am trying to work from home. ViewLayout doesnot open and shows error cann't disp
-
How to connect to TC, new MacBooks have no Ethernet ports
What is recommended for large transfers to Time Capsule from new models of MacBook Pro which do not have Ethernet? (Only USB & Thunderbolt)
-
Nokia N8-Cannot use any search engines Google/Bing
Internet connection via 3G and WLAN is fine. 'Go to new web page' option also works if you enter web address direct. BUT when searching via Google, Bing, BBC or any other search engine no search results come up and phone defaults back to original hom
-
Change Employee Assignment Status
Hi, I have a very urgent requirement in Oracle HRMS R 12.1 version my requirement is when an employee taken annual leave, then the status in th assignment window will automatically change to 'Annual 'Leave instead of 'Active Assignment'. can anybody
-
Question provides the details