Entering ON-Archive Commands Manually
Use
Although SAP recommends that you use the
SAP scripts and the
DBA Planning Calendar – which means you do not need to enter
ON-Archive
commands manually – this section is provided in case you decide not to use these tools with your Informix database.
Prerequisites
Read the Informix documentation carefully because
ON-Archive is a complex tool.Procedure
Method of interaction |
How to interact |
From the operating system command line |
Enter your command, for example: $ onarchive 'archive/dbspaceset=*/level=0/vset=dbtap' |
From the ON-Archive command line |
$ onarchive Then you see the ON-Archive command-line prompt:Onarchive> Onarchive> archive/dbspaceset=*/level=0 |
Using the menu interface |
You can access the menu interface
$ onarchive menu Onarchive> menu |
To define an archive or backup you have to create a request. The system enters the request in the
ON-Archive catalog with a unique identification number.After creating the request, you have to explicitly execute it. You can execute a request immediately, or you can leave it in the catalog to be executed at a later time. You can also use
onautovop (the virtual operator) to start the command in unattended mode.$ onarchive 'archive/dbspaceset=*/level=0/vset=dbtap/immediate'
You can also enter
immediate on the onarchive command line, for example:Onarchive> archive/dbspaceset=*/level=0/vset=dbtap/immediate
You can also define
immediate as a default in the oper_deflt.arc file. This documentation uses this convention. If you use the /immediate qualifier as a default or enter it on the command line as part of an ON-Archive command, the command is executed immediately. Refer to Editing the File oper_deflt.arc for ON-Archive.You can use the same approach with the qualifier
/autovop to execute the command in unattended mode. You can enter it either as a default (not recommended) or on the command line when required.
The following Informix programs are used with
Program |
Purpose |
onarchive |
Works interactively with ON-Archive (as long as the database is available) |
ondatartr |
Performs off-line functions (for example, to restore a database that is down) |
onautovop |
Performs unattended operations |
oncatlgr |
Communicates between ON-Archive and the database |
See also:
Informix documentation
at http://www.informix.com