Db2 backup
Hi all,
Database is db2.
In dbacockpit there is one option "archive log files to tape".what this will do?will it copy the log files from the secondary path to tape?
Thanks
Hi,
If you Archive Log log files to Tape with DOUBLE STORE option selected, then in First Run, The DOUBLE STORE operation copies log files to tape and then in second run, it will delete only those log files that were copied to tape in first run.
Please use the DOUBLE STORE operation to avoid loss of data as some Tape medias are quite unreliable.
If you Archive Log log files to Tape with STORE option selected, then in every run, The STORE operation copies the log file to tape and then deletes the log files from disk.
Regards,
Bhavik G. Shroff
Similar Messages
-
Dear experts,
your help required.
i'm new to DB2, i can handel MS_sql.
recendlty my company is running SAP on DB2 (windows 2003 server)
i'm unbale to find the init<SID>.db2/db6 to check and adjust the parameters.
if there is any configuration file (to adjust/configure tape drive) please let me know .
main 2 problems are :-
i need to archive the log (now it is 80%) to disk and tape.
*it is very help full,if you can give the syntax that has to typed in command line.
how to increase the size of archive log ?
how important it is to preserve the archived log ?
*how to put the label for archived log to disc or tape drive ?
and about tape drive backup:-
*i'm unable to take backup.
here is the steps that i had tried, to take backup or initialize the tape in drive.
H:\IBM\SQLLIB\BIN>db2 backup db to
.\tape0
SQL0104N An unexpected token "
.\tape0" was found following "TO". Expected
tokens may include: "USER". SQLSTATE=42601
H:\IBM\SQLLIB\BIN>
H:\IBM\SQLLIB\BIN>db2 backup db to
.\tape0
SQL0104N An unexpected token "
.\tape0" was found following "TO". Expected
tokens may include: "USER". SQLSTATE=42601
H:\IBM\SQLLIB\BIN>db2 rewind tape
.\tape0
SQL0104N An unexpected token "
.\tape0" was found following "TAPE".
Expected tokens may include: "END-OF-STATEMENT". SQLSTATE=42601
H:\IBM\SQLLIB\BIN>db2 REWIND TAPE
.\TAPE0
SQL0104N An unexpected token "
.\TAPE0" was found following "TAPE".
Expected tokens may include: "END-OF-STATEMENT". SQLSTATE=42601
H:\IBM\SQLLIB\BIN>db2 initialize tape
.\TAPE0
SQL0104N An unexpected token "
.\TAPE0" was found following "TAPE".
Expected tokens may include: "END-OF-STATEMENT". SQLSTATE=42601
H:\IBM\SQLLIB\BIN>LOGARCHMETH1
'LOGARCHMETH1' is not recognized as an internal or external command,
operable program or batch file.
H:\IBM\SQLLIB\BIN>db2tapemgr
Parameter error. Reason: "DBT2120N No operation is specified.".
Incorrect syntax. Correct the syntax and reissue the command.
db2tapemgr [DATABASE database-alias]
[ON DBPARTITIONNUM db-partition-number]
{{{{STORE | DOUBLE STORE}[Store-Option-Clause]|
RETRIEVE [Retrieve-Option-Clause]|
SHOW TAPE HEADER tape-device}
[USING blocksize][EJECT]}|
EJECT TAPE tape-device|
DELETE TAPE LABEL tape-label|
QUERY [For-Rollforward-Clause]} [TRACE]
Store-Option-Clause:
ON tape-device [TAPE LABEL tape-label]
[ALL LOGS|n LOGS][FORCE]
Retrieve-Option-Clause:
{[For-Rollforward-Clause]
FROM tape-device[TO directory]|
{ALL LOGS|LOGS n TO m}
FROM tape-device[TO directory]|
HISTORY FILE
FROM tape-device TO directory }
For-Rollforward-Clause:
FOR ROLLFORWARD
TO {END OF LOGS|isotime [USING LOCAL|GMT TIME]}
[USING HISTORY FILE history-file]
DBT2008N db2tapemgr failed with errors.
H:\IBM\SQLLIB\BIN>
H:\IBM\SQLLIB\BIN>db2tapemgr db prd store on
.\tape0
DBT2065I Using database partition "NODE0000".
DBT2071I Using the automatic generated tape-label "PRD20070712193141".
Scanning history.
DBT2016I No log files found for processing.
DBT2006I db2tapemgr completed successfully.
H:\IBM\SQLLIB\BIN>
i request all experts to help me out in this basic step/configuration.
it would be very help full to the freshers.
Thanking you all,
by
RaghavDear experts,
your help required.
i'm new to DB2, i can handel MS_sql.
recendlty my company is running SAP on DB2 (windows 2003 server)
i'm unbale to find the init<SID>.db2/db6 to check and adjust the parameters.
if there is any configuration file (to adjust/configure tape drive) please let me know .
main 2 problems are :-
i need to archive the log (now it is 80%) to disk and tape.
*it is very help full,if you can give the syntax that has to typed in command line.
how to increase the size of archive log ?
how important it is to preserve the archived log ?
*how to put the label for archived log to disc or tape drive ?
and about tape drive backup:-
*i'm unable to take backup.
here is the steps that i had tried, to take backup or initialize the tape in drive.
H:\IBM\SQLLIB\BIN>db2 backup db to
.\tape0
SQL0104N An unexpected token "
.\tape0" was found following "TO". Expected
tokens may include: "USER". SQLSTATE=42601
H:\IBM\SQLLIB\BIN>
H:\IBM\SQLLIB\BIN>db2 backup db to
.\tape0
SQL0104N An unexpected token "
.\tape0" was found following "TO". Expected
tokens may include: "USER". SQLSTATE=42601
H:\IBM\SQLLIB\BIN>db2 rewind tape
.\tape0
SQL0104N An unexpected token "
.\tape0" was found following "TAPE".
Expected tokens may include: "END-OF-STATEMENT". SQLSTATE=42601
H:\IBM\SQLLIB\BIN>db2 REWIND TAPE
.\TAPE0
SQL0104N An unexpected token "
.\TAPE0" was found following "TAPE".
Expected tokens may include: "END-OF-STATEMENT". SQLSTATE=42601
H:\IBM\SQLLIB\BIN>db2 initialize tape
.\TAPE0
SQL0104N An unexpected token "
.\TAPE0" was found following "TAPE".
Expected tokens may include: "END-OF-STATEMENT". SQLSTATE=42601
H:\IBM\SQLLIB\BIN>LOGARCHMETH1
'LOGARCHMETH1' is not recognized as an internal or external command,
operable program or batch file.
H:\IBM\SQLLIB\BIN>db2tapemgr
Parameter error. Reason: "DBT2120N No operation is specified.".
Incorrect syntax. Correct the syntax and reissue the command.
db2tapemgr [DATABASE database-alias]
[ON DBPARTITIONNUM db-partition-number]
{{{{STORE | DOUBLE STORE}[Store-Option-Clause]|
RETRIEVE [Retrieve-Option-Clause]|
SHOW TAPE HEADER tape-device}
[USING blocksize][EJECT]}|
EJECT TAPE tape-device|
DELETE TAPE LABEL tape-label|
QUERY [For-Rollforward-Clause]} [TRACE]
Store-Option-Clause:
ON tape-device [TAPE LABEL tape-label]
[ALL LOGS|n LOGS][FORCE]
Retrieve-Option-Clause:
{[For-Rollforward-Clause]
FROM tape-device[TO directory]|
{ALL LOGS|LOGS n TO m}
FROM tape-device[TO directory]|
HISTORY FILE
FROM tape-device TO directory }
For-Rollforward-Clause:
FOR ROLLFORWARD
TO {END OF LOGS|isotime [USING LOCAL|GMT TIME]}
[USING HISTORY FILE history-file]
DBT2008N db2tapemgr failed with errors.
H:\IBM\SQLLIB\BIN>
H:\IBM\SQLLIB\BIN>db2tapemgr db prd store on
.\tape0
DBT2065I Using database partition "NODE0000".
DBT2071I Using the automatic generated tape-label "PRD20070712193141".
Scanning history.
DBT2016I No log files found for processing.
DBT2006I db2tapemgr completed successfully.
H:\IBM\SQLLIB\BIN>
i request all experts to help me out in this basic step/configuration.
it would be very help full to the freshers.
Thanking you all,
by
Raghav -
SQL2025N error in db2 backup to SAMBA filesystem
Hi,
we have mounted an external disk in our linux system using SAMBA.
The db2 backup offline fails with this error message:
ERRORMESSAGE: Error -2025 in dmdb6bkp.c(1498):
SQL2025N An I/O error "4" occurred on media
"/BACKUP/APPS/HP2.0.db2hp2.NODE0000.CATN0000.20080425130153.001".
All users (sidadm, db2sid, sapsid ) have read/write permissions in the filesystem /BACKUP. This filesystem has not file size limited.
In the db2diag.log these errors appear.
2008-04-25-13.22.55.404908+120 E66661757G394 LEVEL: Info
PID : 24014 TID : 2987636400 PROC : db2agent (HP2) 0
INSTANCE: db2hp2 NODE : 000 DB : HP2
APPHDL : 0-7 APPID: *LOCAL.db2hp2.080425112250
AUTHID : HP2ADM
FUNCTION: DB2 UDB, database utilities, sqlubSetupJobControl, probe:1391
MESSAGE : Starting an offline db backup.
2008-04-25-13.22.55.470988+120 E66662152G524 LEVEL: Warning (OS)
PID : 24029 TID : 2987636400 PROC : db2med.24014.0 0
INSTANCE: db2hp2 NODE : 000
FUNCTION: DB2 UDB, oper system services, sqloopenp, probe:150
MESSAGE : ZRC=0x860F0004=-2045837308=SQLO_DGFL "general failure (DD)"
DIA8402C A disk error has occurred.
CALLED : OS, -, chmod OSERR: EPERM (1)
DATA #1 : File name, 62 bytes
/BACKUP/APPS/HP2.0.db2hp2.NODE0000.CATN0000.20080425132255.001
2008-04-25-13.22.55.476804+120 E66664510G892 LEVEL: Severe
PID : 24014 TID : 2987636400 PROC : db2agent (HP2) 0
INSTANCE: db2hp2 NODE : 000 DB : HP2
APPHDL : 0-7 APPID: *LOCAL.db2hp2.080425112250
AUTHID : HP2ADM
FUNCTION: DB2 UDB, database utilities, sqlubMWResponse, probe:1041
MESSAGE : SQL2025N An I/O error "" occurred on media "".
DATA #1 : SQLCA, PD_DB2_TYPE_SQLCA, 136 bytes
sqlcaid : SQLCA sqlcabc: 136 sqlcode: -2025 sqlerrml: 64
sqlerrmc: 4 /BACKUP/APPS/HP2.0.db2hp2.NODE0000.CATN0000.20080425132255.001
Versions:
Operating system : SUSE Linux Enterprise Server 10 (i586)
VERSION = 10
Database: DB6 9.1.3
SAP kernel: 7.0 patch 133
Best regards and thanks in advance.Hi,
thanks for the suggestion, but all permissions are ok.
The db2 user is in usbshare group:
drwxrwxr-x 1 root usbshare 0 2008-04-28 10:00 APPS.
We cannot use NFS, the disk is not in a system, it's an external disk connected directly to the network.
Regards and thanks for the replies.
Sonia.
Edited by: Soporte IBM on Apr 28, 2008 1:22 PM
Finally we fixed this problem.
The problem was the user owner in this filesystem, the owner must be db2<sid>.
Edited by: Soporte IBM on Apr 29, 2008 4:03 PM -
Hi,
We are running SAP on AIX 5.3 AND db2 udb 8.2.3. We have taken full offline backup from OS level. e.g. /usr, /sapmnt, /usr/sap/trans, /home, /db2/<SID>, /db2/log_dir etc. May i restore the backup on another server without installing DB2 software? and run the SAP? or do we need to re-install DB2 & SAP again and then restore the database backup?
Please guide.
-SNHi Jennifer,
it is much easier and less error prone to do a system copy with the build in DB2 backup and restore commands. Copying DB2 by copying files from one server to the other should only be done by experienced DB2 administrators and in most cases there is no need to do this. For example using the wrong OS tools may create sparse allocated DB2 container files and can create unexpected error situations.
The DB2 V8 software installer on AIX uses the OS installer. The DB2 V8 software is installed under /opt and the /db2/db2<sid>/sqllib directory contains links to this directory. Therefore it is not enough to copy the /usr/sap ; /sapmnt and /db2 directories. With DB2 V8 the software installtion directory is fixed. With DB2 V9+ the software can be installed in any directory and as a default new SAPINST versions install the DB2 software under /db2/db2<sid> .
To do a cold copy of DB2 you may also need to use the db2inidb and db2relocated tools ( mostly used for split mirror copies ), especially if you want to rename your dbsid. You can find more information about those tools in the DB2 docu. The SAP utility brdb6brt ( note 867914 ) may also provide some help.
Regards
Frank -
Dear Expert,
We tried backup verification using TSM script and get the result successfully. Now, we plan to perform backup verification using db2 command, our questions are:
1. Which command and option could be used that we can rely on?
2. Which the valid one to verify backup, using TSM or DB2 command?
Thanks in advance.
Kind Regards,
RudiHi,
I tried using command db2adutl as follows:
- db2adutl verify full taken at 20090405103108 database <dbname>, showed the following:
Warning: There are no file spaces created by DB2 on the ADSM server
Warning: No DB2 backup images found in ADSM for any alias.
- db2adutl query full db <dbname> nodename <nodename>, showed the same as above:
Warning: There are no file spaces created by DB2 on the ADSM server
Warning: No DB2 backup images found in ADSM for any alias.
Please advice.
Thanks and Regards,
Rudi -
Hi Gurus,
I have a source system which is ECC6 running on Windows Server 2008 & DB2 9.7 FP2 database. I want to build or copy the exact system to diffrent office. I have done a fulloffline backup on the server. The target system will be suselinux and same database which is DB9.7FP2.
So i have install a ECC6 system on the target system with same System ID,Hostname as the sourse system. . I am not sure what to do next. Please guide me how to restore the database using the full offline backup that i done on the sourse system.
Basically i am just doing a system copy but using the backup restore method.Hi,
Assuming you're performing system copy by using db2 backup/restore method.
If you would like to take a complete set of (online) backup image which you can restore, rollforward and bring the db into consistent state, you can use "INCLUDE LOGS" option of db2 backup command.
The backup image would include the range of log files required to restore and roll forward this image to some consistent point in time with this option.
On the other hand, you can specify a path to be searched for required logs during recovery. There's an option "OVERFLOW LOG PATH" for rollforward command.
For this issue u will get more information for below link
http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp
REgards,
K.Ramamoorthy -
Hi Experts,
Recently Quality refresh has been done, now I am scheduling online backup through DB13. But I am getting below error,
Job started
Step 001 started (program RSDBAJOB, variant &0000000001261, user ID BASISADM)
Execute logical command DB6_DBBACKUP On host GIL-devqas1
Parameters:PRD ONLINE TO /dev/rmt0 BUFFERS 0 BUFFERSIZE 0 PARALLELISM 0 INCLUDE LOGS
Job started
Step 001 started (program RSDBAJOB, variant &0000000001277, user ID BASISADM)
Execute logical command DB6_DBBACKUP On host GIL-devqas1
Parameters:QAS ONLINE TO /dev/rmt0 BUFFERS 0 BUFFERSIZE 0 PARALLELISM 0 INCLUDE LOGS
set connect partition: 0
Making database backup...
Database = PRD
Backup Mode = FULL
Backup Options= ONLINE
+ INCLUDE LOGS
Buffer size = AUTOMATIC
buffers = AUTOMATIC*
Parallelism = AUTOMATIC
numLocations = 1
location[0] = /dev/rmt0
util priority = 0
ERRORMESSAGE: Error -1013 in dmdb6bkp.c(1498):
SQL1013N The database alias name or database name "PRD" could not be
found.
External program terminated with exit code 2
DB6_DBBACKUP returned error status E
Job finished
set connect partition: 0
Making database backup...
Database = QAS
Backup Mode = FULL
Backup Options= ONLINE
+ INCLUDE LOGS
Buffer size = AUTOMATIC
buffers = AUTOMATIC*
Parallelism = AUTOMATIC
numLocations = 1
location[0] = /dev/rmt0
util priority = 0
ERRORMESSAGE: Error -901 in dmdb6bkp.c(1498):
SQL1013N The database alias name or database name "PRD" could not be found
Even db2diag.log file not contains any message, it is showing 1KB. As per this error message it is searching for PRD database but it is QA server. Please help me how to resolve this issue.
Thanks and Regards,
Sampath Kumar.SHi Siva,
Please find the result for that query (db2 list db directory)
GIL-devqas1:db2qas 1> db2 list db directory
System Database Directory
Number of entries in the directory = 1
Database 1 entry:
Database alias = QAS
Database name = QAS
Local database directory = /db2/QAS
Database release level = c.00
Comment =
Directory entry type = Indirect
Catalog database partition number = 0
Alternate server hostname =
Alternate server port number =
GIL-devqas1:db2qas 2>
Thanks & Regards,
Sampath -
hello,
I have a problem with the full online backup on a DB2 system
I get the fallowing error:
ERRORMESSAGE: Error -2048 in dmdb6bkp.c(1498):
SQL2048N An error occurred while accessing object "0". Reason code:
"6".
I cannot get any clue of the cause of the error from the log. I have also searched for SAP notes but did not find anything.
Can anyone help me in solving this issue?
Regards,
dalmiHello Dalmi,
as per the documentation on this error code:
http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/index.jsp?topic=/com.ibm.db2.luw.messages.sql.doc/doc/msql02048n.html
SQL2048N
An error occurred while accessing object object. Reason code: reason-code.
Explanation
An error occurred while accessing an object during the processing of a database utility. The following is a list of reason codes:
6
The object being accessed is a table space and either the table space is in such a state that the operation is not allowed or one or more containers of the table space is not available. (LIST TABLESPACES will list the current table space state.) Examples of such states are: quiesced, offline.
What is the output of db2 list tablespaces show detail
State 0x0000 should mean they are all normal and should be accessible.
If not, check the output of db2 list applications show detail
check if an application si trying to perform a backup of a tablespace that migth have set them to an offline state.
regards,
paul -
Hi All,
I am trying to schedule db2 oline backup through db13 (Database base backup Vendor Library) facing below error. Please advise on below issue.
05.05.2015
03:20:06
Backup_TSM:Parameter UTIL_IMPACT_PRIORITY has been set to "UTIL_IMPACT_PRIORITY 2"
05.05.2015
03:20:06
Backup_TSM:Parameter DEDUP_DEVICE has not been set
05.05.2015
03:20:06
Backup_TSM:Parameter OPTIONS has not been set
05.05.2015
03:20:06
Backup_TSM:Parameter NUMBER_SESSIONS has been set to " 1"
05.05.2015
03:20:06
Backup_TSM:System is deactivated in system configuration; nojob dispatching possible
05.05.2015
03:20:06
Exception CX_DB6_CON in program CL_DBA_JOB====================CP / CL_DBA_JOB====================CM00K at line Warning with retu
05.05.2015
03:20:06
Backup_TSM:Exception CX_DBA_JOB in class CL_DBA_JOB method IF_DBA_JOB~RUN line 11
05.05.2015
03:20:06
Backup_TSM: Kernel Error ID:
05.05.2015
03:20:06
Backup_TSM: WP ID: 12
05.05.2015
03:20:06
Backup_TSM: WP PID: 24051918
Regards,
RajHi Hope the below Url and stuff might help you. http://scn.sap.com/thread/3154248 Within TSM there is an "Options" file that has default parameters such as , SERVER NAME, COM/METHOD, which is TCPIP, TCPPORT, TCPSERVERADDRESS, NODENAME, PASSWORDACCESS , etc. When TSM runs, the first thing it does is read the options file, otherwise the reault is the dump you received. Your best bet is find the directory for TSM, the options file is in there, then add your system information accordingly. You can find sample options files out there to give you some guidance. Cheers, Sharma
-
DB2 backup excluding one table
Hello all,
We have AIX 5.3 and DB2 9.1 for our CRM 2007 server. There is a table which contains CVV number. Is it possible to take the backup by excluding that table. Are there any tools that would help in taking backup excluding the table containing CVV number.
Best Regards,
Ninada) You can encrypt the cvv column only - either using db2's encrypt function or encrypting the data before it hits the database.
b) If you have to exclude only CVV numbers, instead of dropping the entire table, you can consider setting the cvv value to null after exporting the data. after the backup completes, you can re-import the cvv data.
This approach is expensive and may take long time. In addition, you will not be able to insert new data into the table for the backup duration
c) You can consider setting up a nickname (reference to a remote table in a different database) for the entire table or the cvv column only. You need not take a backup of this database.
HTH -
Hi All,
We are trying to take backup of our Quality system form operating system to tape. But it is always giving below error:
SQL2031W Warning! Please mount the target or source media on device "/dev/rmt0"
If we tried to schedule it from DB13 then it gives below error:
ArchiveLog:Parameter error. Reason: "DBT2113N Device "/dev/rmt0" is a rewind device."
This is a new tape. As far as I know we don't need to initialize tape on AIX.
But if we are taking OS backup on same tape address and tape, it is successful.
Please find below the system information:
SID: GEQ
OS: AIX 6.1
Database: DB2 9.1 Fix pack 7
Tape address:/dev/rmt0
Please suggest.
Thanks
SunnyHi,
> Please ensure that the db2tapemgr program is executed as the user
> db2<db2sid> and not the <sid>adm user.
>
Yes, I am running with db2<sid> user only.
> Also to check what tape devices are available, you can perform the
> following as root:
>
>
> Type:
> smitty devices
> Select -> Tape Drive
> -> Change / Show Characteristics of
> a Tape Drive
> -> The tape device
>
rmt0 Available 02-00-02 IBM 3580 Ultrium Tape Drive (FCP) . So, tape device is available.
> Could you check firstly the tape device used
> in the ON option must be a non-rewind tape device?
>
I don't think it is a rewind type because OS backup is running fine on this tape device.
> If yes, please check the following notes and apply them if they match your release.
> Then rerun the backup via DB13.
>
> 1327732 DB6: Option is set incorrectly for tape archiving in DB13
> 1355260 DB6: Option is set incorrectly for tape archiving in DB13
Corrections involved in both of these notes is delivered in SAP_BASIS 701 SP5 and I am already on that. So, it does not match my case.
Thanks
Sunny -
Hi Experts,
Can anybody tell me how to take the backup and restoration of DB2 version 9.x what backup parameter i have to change for taking backup on TAPE or DISK.
ThanksHi kumarraju,
you just have to specify:
e.g.
backup db <dbsid> to /tmp
or
backup db <dbsid> to /dev/rmt0 or something
For details refer to the DB2 online doku at:
http://publib.boulder.ibm.com/infocenter/db2luw/v9/index.jsp?topic=/com.ibm.db2.udb.doc/welcome.htm
search for "backup database" and you will see the complete
syntax diagram of the backup command -
Hi Friends,
I´am very new in DB2. I would like to know some alternatives for the DB2 database backup.
Could be an option to make an offline backup of all the file systems related to db2 in order to restore consistently?
What could be the impact?
We can assume that DB2 is down.
Thanks in advance
Enrique SánchezHi,
As like other database, you should take offline, online and archive log backup regularly to maintain the consistency of your landscape. Offline backup depends upon whether system is production, quality etc. as during offline backup system will not be available so you can plan for every month or every 15 days..depends upon your business requirement.
Online backup and archive log backup should be scheduled daily.
E.g: if you have taken offline backup one month back and after that system crashed then you should restore with online backup and apply archive logs for point in time recovery.
Please check following book for backup on DB2:
[Db2 Admin Guide|http://maben.homeip.net/static/computers/sap/DB2/SAP%20on%20IBM%20DB2%20Universal%20database%20for%20UNIX%20and%20Windows%20Admin%20NW04.pdf]
Thanks
Sunny -
DB2 / Red Hat 5 : Backup to External Storage Failed
Dear gurus,
I've SAP ECC 6 running on DB2 9.7 FP2, RHEL 5.0
We can backup to internal disk, but when configuring backup to external storage (Maxtor Shared Storage II), there's this error.
I mount the external storage using cifs, with correct owner and permission (db2<sid> : db<sid>adm with 777 permission.)
The shared storage is: //192.168.1.8/mhp with mount point /mnt/mhp
When I backup using DB13 to /mnt/mhp, the file is created and the size continually grows constantly.
But when the backup is about to finish, the file then disappears, and DB13 returns "Database backup failed"
I see the db2diag.log, and here's the entry:
[db2diag.log|http://snipt.org/pYx/]
The message is not too clear for me.
Does anyone happen to come across the same problem as me?
Thanks for your help.
Best Regards,Dear gurus,
If it is plain file like copy / move command to the storage, it can be done successfully.
I can also 'touch filename1' there. But for DB13 or DB2 backup command, it failed.
Markus, there's no particular technical things. We just choose cifs.
I've tried NFS but it said things like "Connection Refused" when I tried to mount -a.
I've tried also in different server, and it actually give the same result. So I think it's not SAMBA.
May I know what you mean by mapping the user?
I can make shared folder in the maxtore webgui management, and create user to own that folder.
Thanks for your help.
Best Regards, -
Online DB2 database Copy via backup/restore
Hi Guru's
I am new in the world of DB2 (I am always working with Oracle)
I have to perform an online database copy of our SAP which is running on DB2, but I do not want to use the SAPinst method
I just want to perform it through the backup/restore method as I always do with oracle databases
Which procedure do I have to follow on my source and target SIDs
Regards
RichardHi Richard,
Follow the below step db2 nackup restore activity.
1). Perform full offline or online backup of source system
2). Go to cd /sapmnt/SSID/exe and run the below script
brdb6brt -bm RETRIEVE -es –replace SourceSID=TargetSID,db2SourceSID=db2TargetSID,/db2/SourceSID=/db2/TargetSID
3). Above Generate the script copy the Target System.
4). Offline PRD (Target System) Backup Images copy to Source Path (Any One Path)
5). Stop SAP System only DB2 must be Started.
6). Start the db2 backup redirect restored in Quality System
7). before run the script below activity must be finished.
Make Changes to the restore script
Go to script path
1). Replace Source SID (XXX) with Target SID (XXX)
2). Change the backup location
3). User (source db2sid) USING (Source db2sid Password)
USER db2xxx USING XXX(Password)
8). Restoring Database
Log in db2sid (db2sid) User
Go to backup & script Path
9). Run the below Script
db2 -tvf <script.scr> for exp. db2 -tvf xxx_NODE0000.scr
After successfully restore backup below command run
10). First Check Roll Forward Status
Open DB with the below command
db2 rollforward db <TargetSID> query status – check status of DB
db2 rollforward db <TargetSID> complete
11). Once the copy is complete we can check below parameter and make corrections as per your preprocessing
Db2 list tablespaces show detail (To check tablespaces)
parameter automatic storage & re-sized YES
Check the Archive log (LOGARCHMATH1) path
Log in db2sid & run the below command for change the db2 LOGARCHMATH1 Parameter value.
After successfully change the parameter restart the db2 database
12). Perform below step before the Start SAP System
13). Create SAP connects user using
PATH :- /usr/sap/SID/SYS/global
scdb6up create <connect user password> <sidadm password>
above command will update entry in /sapmnt/SID/global/dscdb6.conf
Regards,
Maybe you are looking for
-
RFC CHANGES NOT REFELECTING IN vc
Hi all in my application using BAPI, if we made any changes, it will not reflect in visual composer, could u please help me. regards sheethal
-
Update Contract Start and End dates via BAPI_SALESORDER_CREATEFROMDAT2
Hi Experts. We are successfully using BAPI_SALESORDER_CREATEFROMDAT2 to create sales order. Only problem is that the contract start and end date do not get updated. We are passing that in ORDER_HEADER_in-CT_VALID_F and ORDER_HEADER_IN-CT_VALID_T. Aft
-
Hi I am trying to make a template of a page I have done in Dreamweaver CS4 and keep getting this error message: There is an error on line 3 – unbalanced head tag. Has anybody got any ideas of how I solve this? Code below: <!DOCTYPE html PUBLIC "-//W3
-
Why do my videos stop playing when I change them from "Home Videos" to "Music Videos"?
I have a bunch of music videos that I loaded onto my iPad Mini but it loads them as "Home Videos". I went into the 'get info' and changed them to "Music Videos" and resynced the device. Now when I go to play a video it acts like it's going to play th
-
PSE8 adding narration to a slide show
The mic volume level is much too low. I have checked my mic on both Windows Live Messenger and Movie Maker and it is functioning correctly. Is this a known problem with PSE8