Unix/Linux file restoration by TSM:
Logon to server where file is locally stored (i.e. not where the file may be NFS
mounted)
User id must be the owner of the file. TSM backups files under the ‘true’ name. Linked files would be backed up the target file’s name
$
dsmc
To get a list of backups available, issue
tsm> q b -inactive -pitdate=04/01/2017 -subdir=yes /u02/app/EBSQA/
Note:
1. The result list is way too long to read
2. The result list is much short without '/' at the end.
(I do not know/understand why and what it reports)
tsm> q b -inactive -pitdate=04/01/2017 -subdir=yes /u02/app/EBSQA
To restore a folder, issue
tsm> restore –inactive –replace=no –pitdate=03/092017 -subdir=yes
/u02/app/EBSQA/ ‘
Total number of objects restored: 43,597
Total number of objects failed: 0
Total number of bytes transferred: 24.77 MB
Data transfer time: 1.96 sec
Network data transfer rate: 12,921.81 KB/sec
Aggregate data transfer rate: 48.57 KB/sec
Elapsed processing time: 00:08:42
tsm> quit
$ find /u02/app/EBSQA -type f | wc -l
659159
NOTES:
1. Below line also does a restoration
restore -subdir=yes -replace=no -pitdate=02/30/2017 /u02/app/EBSQA/apps/apps_st/appl/*
2. I saw this on a different server. Do not know why.
tsm> restore -inactive -replace=no -pitdate=03/09/2017 -subdir=yes /u02/app/EBSQA/
Total number of objects restored: 43,393
Total number of objects failed: 0
Total number of bytes transferred: 0 B
Data transfer time: 0.00 sec
Network data transfer rate: 0.00 KB/sec
Aggregate data transfer rate: 0.00 KB/sec
Elapsed processing time: 00:19:59
tsm>
3. If getting this error, there may be a permission problem. It does not mean the backup was not running.
$ dsmc
ANS1398E Initialization functions cannot open one of the Tivoli Storage Manager logs or a related file: /opt/tivoli/tsm/client/ba/bin/dsmerror.log. errno = 13, Permission denied
Monday, July 24, 2017
Tuesday, July 11, 2017
Send concurrent output to email by SMTP
When submit a R12.1.3 concurrent job, we can send the Output file to email directly by simply click on "Delivery Opts" => tab "Email" => Fill it with email info => Ok
Please note that the "From" field has to be an email address (it can be the same as "To:" field). Otherwise, it may fail with a generic error:
Beginning post-processing of request 32163793 on node CM_host_name at 11-JUL-2017 12:10:11.
Post-processing of request 32163793 failed at 11-JUL-2017 12:10:12 with the error message:
One or more post-processing actions failed. Consult the OPP service log for details.
Three configuration steps before the email will be delivered. Note this is not related to Workflow Mailer. When Mailer is down, concurrent job can still deliver Output to email box.
1. Test SMTP on concurrent node. If SMTP works on the node, it shall deliver an email to yourID@outlook_name.com mailbox. Below test was on RH Linux 6:
$ mail -v yourID@outlook_name.com
Subject: hi
Hello world
done
. <-- dot is very important
EOT
Mail Delivery Status Report will be mailed to <xxxxxx>.
2. Ask Linux Admin to confirm that port 25 is used for SMTP on the node
[root@CM_host_name ~]# lsof -i:25
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
master 6656 root 12u IPv4 18028 0t0 TCP localhost:smtp (LISTEN)
master 6656 root 13u IPv6 18029 0t0 TCP localhost:smtp (LISTEN)
[root@CM_host_name ~]# ps -ef|grep 6656
root 6656 1 0 May01 ? 00:00:12 /usr/libexec/postfix/master
postfix 6663 6656 0 May01 ? 00:00:02 qmgr -l -t fifo -u
postfix 87114 6656 0 09:32 ? 00:00:00 pickup -l -t fifo -u
3. Setup SMTP in EBS
a. As System Administrator responsibility, navigate to Profile => System
b. Query the %fnd%smtp% profiles
c. Set the following profile values
FND: SMTP Host (CM_host_name or IP)
FND: SMTP Port (port number, default 25)
Troubleshooting: Even after about 3 steps worked, the Output was still not delivered to email box. The errors in OPP files under $APPLCSF/log:
nested exception is:
java.net.ConnectException: Connection refused
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1213)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:311)
at javax.mail.Service.connect(Service.java:233)
at javax.mail.Service.connect(Service.java:134)
at javax.mail.Service.connect(Service.java:86)
at com.sun.mail.smtp.SMTPTransport.connect(SMTPTransport.java:144)
at oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequestHandler.submitReques(SMTPDeliveryRequestHandler.java:781)
at oracle.apps.xdo.delivery.AbstractDeliveryRequest.submi(AbstractDeliveryRequest.java:1270)
at oracle.apps.fnd.cp.opp.EmailDeliveryProcessor.deliver(EmailDeliveryProcessor.java:98)
at oracle.apps.fnd.cp.opp.DeliveryProcessor.process(DeliveryProcessor.java:91)
at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:176)
[6/16/17 12:41:39 PM] [253931:RT31303430] Completed post-processing actions for request 31303430.
It was fixed after Linux Admin replaced localhost in postfix configuration since EBS uses CM_host_name as mailserver.
/etc/postfix/main.cf
#change from localhost to all
inet_interfaces = all
#inet_interfaces = localhost
[root@CM_host_name ~]# lsof -i:25
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
master 6632 root 12u IPv4 197167 0t0 TCP *:smtp (LISTEN)
master 6632 root 13u IPv6 197168 0t0 TCP *:smtp (LISTEN)
Please note that the "From" field has to be an email address (it can be the same as "To:" field). Otherwise, it may fail with a generic error:
Beginning post-processing of request 32163793 on node CM_host_name at 11-JUL-2017 12:10:11.
Post-processing of request 32163793 failed at 11-JUL-2017 12:10:12 with the error message:
One or more post-processing actions failed. Consult the OPP service log for details.
Three configuration steps before the email will be delivered. Note this is not related to Workflow Mailer. When Mailer is down, concurrent job can still deliver Output to email box.
1. Test SMTP on concurrent node. If SMTP works on the node, it shall deliver an email to yourID@outlook_name.com mailbox. Below test was on RH Linux 6:
$ mail -v yourID@outlook_name.com
Subject: hi
Hello world
done
. <-- dot is very important
EOT
Mail Delivery Status Report will be mailed to <xxxxxx>.
2. Ask Linux Admin to confirm that port 25 is used for SMTP on the node
[root@CM_host_name ~]# lsof -i:25
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
master 6656 root 12u IPv4 18028 0t0 TCP localhost:smtp (LISTEN)
master 6656 root 13u IPv6 18029 0t0 TCP localhost:smtp (LISTEN)
[root@CM_host_name ~]# ps -ef|grep 6656
root 6656 1 0 May01 ? 00:00:12 /usr/libexec/postfix/master
postfix 6663 6656 0 May01 ? 00:00:02 qmgr -l -t fifo -u
postfix 87114 6656 0 09:32 ? 00:00:00 pickup -l -t fifo -u
3. Setup SMTP in EBS
a. As System Administrator responsibility, navigate to Profile => System
b. Query the %fnd%smtp% profiles
c. Set the following profile values
FND: SMTP Host (CM_host_name or IP)
FND: SMTP Port (port number, default 25)
Troubleshooting: Even after about 3 steps worked, the Output was still not delivered to email box. The errors in OPP files under $APPLCSF/log:
[6/16/17 12:41:39 PM]
[253931:RT31303430] Beginning email delivery
[6/16/17 12:41:39 PM]
[UNEXPECTED] [253931:RT31303430] javax.mail.MessagingException: Could not
connect to SMTP host: CM_host_name, port: 25;nested exception is:
java.net.ConnectException: Connection refused
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1213)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:311)
at javax.mail.Service.connect(Service.java:233)
at javax.mail.Service.connect(Service.java:134)
at javax.mail.Service.connect(Service.java:86)
at com.sun.mail.smtp.SMTPTransport.connect(SMTPTransport.java:144)
at oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequestHandler.submitReques(SMTPDeliveryRequestHandler.java:781)
at oracle.apps.xdo.delivery.AbstractDeliveryRequest.submi(AbstractDeliveryRequest.java:1270)
at oracle.apps.fnd.cp.opp.EmailDeliveryProcessor.deliver(EmailDeliveryProcessor.java:98)
at oracle.apps.fnd.cp.opp.DeliveryProcessor.process(DeliveryProcessor.java:91)
at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:176)
[6/16/17 12:41:39 PM] [253931:RT31303430] Completed post-processing actions for request 31303430.
It was fixed after Linux Admin replaced localhost in postfix configuration since EBS uses CM_host_name as mailserver.
/etc/postfix/main.cf
#change from localhost to all
inet_interfaces = all
#inet_interfaces = localhost
[root@CM_host_name ~]# lsof -i:25
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
master 6632 root 12u IPv4 197167 0t0 TCP *:smtp (LISTEN)
master 6632 root 13u IPv6 197168 0t0 TCP *:smtp (LISTEN)
Subscribe to:
Posts (Atom)