Quantcast
Channel: Oracle DBA Tips and Techniques » Unix
Browsing all 4 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

List and remove all files older than 30 days

    find /u01/local/logs -mtime +30 -exec ls -l {} \; find /u01/local/logs -mtime +30 -exec rm {} \;  

View Article



Image may be NSFW.
Clik here to view.

Unix – remove file with unseen characters

This works on AIX – Please test on other systems. If a file name is vague and can’t be removed. Ex – a file name has some hidden characters which prevents it’s removal as the name is not recognized by...

View Article

Image may be NSFW.
Clik here to view.

Add color to the Unix PS1 prompt

This has been tested on an AIX box - To customize the colour of the message on login by updating the profile called on login for a user into a unix machine update the profile with the following -...

View Article

Image may be NSFW.
Clik here to view.

Unix – tar and gzip commands

tar and compress a bunch of datafiles and then untar and uncompress them cd /u02/oradata/test- (area of database files ) Now tar and compress and copy the files to backup area – /u02/oradata/test_bkup...

View Article
Browsing all 4 articles
Browse latest View live




Latest Images