Files older than 30 days are deleted.Find the top 20 biggest files recursively from this directory.The following scripts shows two methods for performing an action for each file in a directory.The following scripts shows a method for performing an action for each line in a file.An alias is a named shortcut for a longer command using the following format.For example, if you require sudo access for a specific command, you might want to include this as an alias so you don't have to remember to type it.Remove DOS style CR/LF characters (^M) from UNIX files using.The newly created tempfile should have the ^M character removed.The following scripts shows how a number of commands can be run as the "oracle" user the "root" user.This is often necessary where CRON jobs are run from the root user rather than the oracle user.In order to save space on the filesystem you may wish to compress files such as archived redo logs. This normally give a word count, but the "-l" flag alteres it If both "interval" and "count" are omitted, the command will report the values from the 10 minute samples taken since the machine was last restarted.Here is an example of the output from a CPU report.You may be required to use passwords in scripts calling Oracle tools, like SQL*Plus, Export/Import and RMAN etc. For every execution of the EXPLAIN PLAN command, Oracle Lite outputs a single line of the EXPLAIN COMMAND followed by one or more lines of the execution plan.

to give a line count.The Bash shell allows you to check for the presence of a file using the "[ -e filepath ]" comparison. The service command is used to stop, start, restart and check the status of a specified service.Use the following command to get the status of all services.To fully restart a service (a separate stop then start) use the following command.The auto-start toggles for services are also available using a text-based tool initiated from the command line using the setup command.

Oracle Recovery Manager (RMAN) can validate the database using the BACKUP VALIDATE command. First you can use the "crontab -l > filename" option to list the contents and pipe this to a file. Remember, you are acting as an XStation, not the server itself, so this variable must be set as follows.You will now be able to access the X server, just as you could before the user switch.The following ".profile" settings rely on the default shell for the user being set to the Korn shell (/bin/ksh).The backspace key can be configured by adding the following entry.The command line history can be accessed using the [Esc][k] by adding the following entry.Auto completion of paths using a double strike of the [Esc] key can be configured by adding the following entry. you can use the For other OS environments there ORACLE_HOME is not

2 ora1024  dba  0 Mar 23 19:31 cwd -> RMAN> BACKUP VALIDATE DATABASE ARCHIVELOG ALL; The process outputs the same information you would see during a backup, but no backup is created. (In his solution Jason creates a file called /bin/cronrun with the following contents.This script returns TRUE (0) only on the node which is the CFS serving cluster_root.All cluster wide jobs should have a crontab entry on each node of the cluster like.Although the cron jobs fire on all nodes, the "/bin/cronrun &&" part of the entry prevents the script from There are also external commands that show the current you need an alternative approach to the standard cron job. The directory object is only a pointer to a physical directory, creating it does not actually create the physical directory on the file system of the database server.Existing directories can be queried using the ALL_DIRECTORIES view. Over time I've been adding more Linux-related entries.The "ls" command lists all files and directories in the specified directory. File Permissions. If "count" is omitted, the sampling will continue indefinitely. If you need a job to fire once per cluster, rather than once per node

oracle> which sqlplus. the publisher for only $34.95.