First, We connect to the node that the database is running with ssh.
We see a list of backup jobs with the following command.
1 |
crontab –l |
Then we load the database’s profile.
The following command deletes the nohup file holding the last running job’s log. (to not see the history of the old job jobs)
1 |
rm -rf nohup.out |
You can run the job with the following command.
When a job runs, a nohup file is created.
Because we terminated it with &, the job will continue to work even when our session is closed.
In the script below you should write the directory where your backup scripts are located in the section /u01/script.
1 |
nohup /u01/script/db_full_backup.sh& |
You can read the nohup file with the following command.
1 |
tail -100f nohup.out |
The following command lists the running rman sessions.
1 |
ps -ef | grep rman |
In the path specified in the job with the following parameter, you can find the log file for the job.
1 |
export LOG=${TOOLHOME}/log |
And you can read this log file as follows.
1 |
Tail -100f /u01/script/log/tmplog.17123 |