Professional Documents
Culture Documents
Informatica Backups: Getting Started
Informatica Backups: Getting Started
Getting Started
Using the PowerCenter command pmrep to backup repository contents is a
relatively simple task. First you connect to the repository and then execute the
"backup" function of the pmrep command.
Here are a few suggestions to make your backup script more functional:
Use the PowerCenter repository name and system date as part of the backup
file's name
Schedule the backup to run nightly
Delete or archive old backups
Using Repository Name and System Date As The Back File Name
pmrep backup function's syntax:
pmrep backup -o file_name.rep
In its simplest form the only option you have to supply the backup function is the
file name for the backup (it is a good idea to include the .rep extension in the file
name). If you do not specify a path in the file name, the output defaults to
folder:
\server\infa_shared\Backup
Location:
C:\Informatica\PowerCenter8.6.0\client\bin
Informatica Repository Backup
pmrep connect -r Repo name -n User_name -x Pass -h host -o Port
connect r dw_Training d Domain_user-6ca950f423 n
Administrator x Administrator
pmrep backup -o filename.rep
For maximum clarity in naming your backup files, combine the repository name
environment variable with a variable containing the date. This simple line of
script will create a variable containing the system date in year, month, day
format:
for /F "tokens=2-4 delims=/ " %%i in ('date /t') do set yyyymmdd=%%k_%%i_%
%j
When specifying a name for the backup file, combine your repository name
variable and date variable as shown in this example:
pmrep backup %INFA_REPOSITORY%_%yyyymmdd%.rep
Using an effective naming convention as the one I've demonstrated helps you
organize your backups and removes any guessing when a file is needed for
restoration.
To back up a repository:
1.
In the Navigator, select the Repository Service for the repository you want
to back up.
2.
In the Actions list, select Back Up Contents.
3.
Enter a repository user name and password.
The repository user must have the Admin Repository or Super User privilege to
perform backups.
4.
Enter a file name and description for the repository backup file.
Use an easily distinguishable name for the file. For example, if the name of the
repository is DEVELOPMENT, and the backup occurs on May 7, you might name
the file DEVELOPMENTMay07.rep. If you do not include the .rep extension, the
Repository Service appends that extension to the file name.
5.
If you use the same file name that you used for a previous backup file,
select whether or not to replace the existing file with the new backup file.
To overwrite an existing repository backup file, select Replace Existing File. If you
specify a file name that already exists in the repository backup directory and you
do not choose to replace the existing file, the Repository Service does not back
up the repository.
6.
Choose to skip or back up workflow and session logs, deployment group
history, and MX data. You might want to skip these operations to increase
performance when you restore the repository.
7.
Click OK.
The results of the backup operation appear in the activity log.
Viewing a List of Backup Files
You can view the backup files you create for a repository in the backup directory
where they are saved. You can also view a list of existing backup files in the
Administration Console.
To view the list of backup files:
1.
In the Navigator, select the Repository Service for a repository that has been
backed up.
2.
In the Actions list, select View Backup Files.
A list of the backup files appears.
Informatica
- HOW TO:
- HOW TO:
log folder
- HOW TO:
- Best Practices
Take repository backup on weekly basis
Retain multiple session and workflow log files in the session
Renaming Informatica Repository Name
The above batch program on Informatica server can be scheduled to run in night
on a daily basis.
HOW TO: Retain multiple session and workflow log files in the session log folder
You can set sessions to retain log files according to the following
options:
Session Runs. The Integration Service creates a designated number of session log
files. Configure the number of session logs in the Save Session Log for These
Runs option. The Integration Service does not archive binary logs.
Session Time Stamp. The Integration Service creates a log for all sessions,
appending a time stamp to each log. When you save a session log by time
stamp, the Integration Service archives the binary logs and text log files.
To retain multiple session and workflow log files in the session log
folder edit the default session configuration as follows:
1.
Open the Workflow Manager.
2.
Select Tasks > Session Configuration > Edit Please enable
JavaScript to view this page content properly.
3.
Click the Properties tab.
4.
For Save Session log by select Session runs or Session timestamp
from the list
5.
Optional. If you selected Session runs in step 4, enter a numeric
value for the Save session log for these runs attribute:
Note:
These settings will take effect for new sessions you create.
For old existing sessions you will get the Revert option.
If you click on Revert, then it will take your modified configuration file
settings.
4.
Open the Workflow Manager.
5.
Select Tasks > Session Configuration > Edit.
6.
Select the Properties tab.
7.
Use of variable $PMSessionLogCount set in the Administration
Console:
When you run pmcmd in command line mode, you enter connection information
such as domain name, Integration Service name, user name and password in
each command. For example, to start the workflow wf_SalesAvg infolder
SalesEast, The user, seller3, with the password jackson sends the request to
start the workflow.
syntax:
pmcmd startworkflow -sv MyIntService -d MyDomain -u seller3 -p jackson -f
SalesEast wf_SalesAvg
Command Line Mode:
1. At the command prompt, switch to the directory where the pmcmd executable
is located.
By default, the PowerCenter installer installs pmcmd in the \server\bin directory.
2. Enter pmcmd followed by the command name and its required options and
arguments:
pmcmd command_name [-option1] argument_1 [-option2] argument_2...
Interactive Mode :
1. At the command prompt, switch to the directory where the pmcmd executable
is located. By default, the PowerCenter installer installs pmcmd in the \server\bin
directory.
2. At the command prompt, type pmcmd.This starts pmcmd in interactive mode
and displays the pmcmd> prompt. You do not have to type pmcmd before each
command in interactive mode.
3. Enter connection information for the domain and Integration Service.
For example:
connect -sv MyIntService -d MyDomain -u seller3 -p jackson
fi
# Get service properties
pmcmd getserviceproperties -sv testService -d testDomain
if [ "$?" != 0 ]; then
# handle error
echo "Could not get service properties"
exit
fi
# Get task details for session task "s_testSessionTask" of workflow
# "wf_test_workflow" in folder "testFolder"
pmcmd gettaskdetails -sv testService -d testDomain -u Administrator -p
adminPass -folder testFolder workflow wf_test_workflow s_testSessionTask
if [ "$?" != 0 ]; then
# handle error
echo "Could not get details for task s_testSessionTask"
exit
fi
Schedule Workflow
Instruct the Integration Service to schedule a workflow. Use this command to
reschedule a workflow that has been removed from the schedule.
The ScheduleWorkflow command uses the following syntax in the command line
mode:
pmcmd ScheduleWorkflow
<<-service|-sv> service [<-domain|-d> domain] [<-timeout|-t> timeout]>
<<-user|-u> username|<-uservar|-uv> userEnvVar>
<<-password|-p> password|<-passwordvar|-pv> passwordEnvVar>
[<<-usersecuritydomain|-usd> usersecuritydomain|<-usersecuritydomainvar|usdv>
userSecuritydomainEnvVar>]
[<-folder|-f> folder]
workflow