gertvangaever
Technical User
Hello!
I have a Oracle 9.0.1 Database which is not in Archive log mode now. I'm trying to put it into archive log mode with automatic archive logging enabled.
I shut the database down, and then I took a backup of all the database files.
After this I changed the initoldap.ora file, which is in $ORACLE_HOME/dbs. There is a link that points to /oldap_data/admin/oldap/pfile/initoldap.ora.
So in fact I changed that last file!
I added the following lines (the variabeles where not included before!)
LOG_ARCHIVE_START=TRUE
LOG_ARCHIVE_DEST=/orahome/9.0.1/dbs/arch
LOG_ARCHIVE_FORMAT=arch%s.arc
When I restart the database, and I enter 'archive log list', I get the following:
SQL> archive log list
Database log mode Archive Mode
Automatic archival Disabled
Archive destination /orahome/9.0.1/dbs/arch
Oldest online log sequence 0
Next log sequence to archive 1
Current log sequence 1
So Automatic Archival is disabled ?!
First I thought it had something to do with the initoldap.ora file. But when I try
'startup pfile=/oldap_data/admin/oldap/pfile/initoldap.ora'
The result is that the automatic archival is ENABLED!
So it seems the default startup initfile is NOT $ORACLE_HOME/dbs (which points to
/oldap_data/admin/oldap/pfile/initoldap.ora)
I thought $ORACLE_HOME/dbs was ALWAYS the directory to read the init file from?!
Or had this changed is r9?
Tnx
Gert
I have a Oracle 9.0.1 Database which is not in Archive log mode now. I'm trying to put it into archive log mode with automatic archive logging enabled.
I shut the database down, and then I took a backup of all the database files.
After this I changed the initoldap.ora file, which is in $ORACLE_HOME/dbs. There is a link that points to /oldap_data/admin/oldap/pfile/initoldap.ora.
So in fact I changed that last file!
I added the following lines (the variabeles where not included before!)
LOG_ARCHIVE_START=TRUE
LOG_ARCHIVE_DEST=/orahome/9.0.1/dbs/arch
LOG_ARCHIVE_FORMAT=arch%s.arc
When I restart the database, and I enter 'archive log list', I get the following:
SQL> archive log list
Database log mode Archive Mode
Automatic archival Disabled
Archive destination /orahome/9.0.1/dbs/arch
Oldest online log sequence 0
Next log sequence to archive 1
Current log sequence 1
So Automatic Archival is disabled ?!
First I thought it had something to do with the initoldap.ora file. But when I try
'startup pfile=/oldap_data/admin/oldap/pfile/initoldap.ora'
The result is that the automatic archival is ENABLED!
So it seems the default startup initfile is NOT $ORACLE_HOME/dbs (which points to
/oldap_data/admin/oldap/pfile/initoldap.ora)
I thought $ORACLE_HOME/dbs was ALWAYS the directory to read the init file from?!
Or had this changed is r9?
Tnx
Gert