Defining Second destination of Archive log list (merged) [message #315622] |
Tue, 22 April 2008 04:08 |
MIFI
Messages: 256 Registered: February 2008 Location: U.K.
|
Senior Member |
|
|
I want to define second destination for archive log for backup storage.
when i see archive log list it is showing me
following
Database log mode Archive Mode
Automatic archival Enabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 185
Next log sequence to archive 189
Current log sequence 189
What are the steps for defining second destination when
Log_archive_dest_1 to Log_archive_dest_10 has no value
[Updated on: Tue, 22 April 2008 04:42] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
Re: Defining Second destination of Archive log list [message #315676 is a reply to message #315672] |
Tue, 22 April 2008 06:36 |
MIFI
Messages: 256 Registered: February 2008 Location: U.K.
|
Senior Member |
|
|
SQL> show parameter db_recovery_file_dest
NAME TYPE VALUE
----------------------------- ----------- ------------------------------
db_recovery_file_dest string /home/u01/app/oracle/product/1
0.2.0/db_1/flash_recovery_area
db_recovery_file_dest_size big integer 15G
|
|
|
|
Re: Defining Second destination of Archive log list [message #315681 is a reply to message #315677] |
Tue, 22 April 2008 06:54 |
MIFI
Messages: 256 Registered: February 2008 Location: U.K.
|
Senior Member |
|
|
When i use log_archive_dest_2
Original Archive destination is changed from flash recovery area to location of log_archive_dest_2
And i have switch the log file too
What should i do now
Archive log list showing following
Database log mode Archive Mode
Automatic archival Enabled
Archive destination /home/archive-logs
Oldest online log sequence 187
Next log sequence to archive 190
Current log sequence 191
|
|
|
|
|
|
Re: Defining Second destination of Archive log list [message #315700 is a reply to message #315698] |
Tue, 22 April 2008 08:16 |
MIFI
Messages: 256 Registered: February 2008 Location: U.K.
|
Senior Member |
|
|
DEST_ID DEST_NAME STATUS BINDING NNAMESPACE
1 LOG_ARCHIVE_DEST_1 INACTIVE OPTIONAL SYSTEM PRIMARY ARCH INACTIVE
2 LOG_ARCHIVE_DEST_2 ERROR OPTIONAL SYSTEM PRIMARY ARCH ACTIVE /home/archive-logs
3 LOG_ARCHIVE_DEST_3 INACTIVE OPTIONAL SYSTEM PRIMARY ARCH INACTIVE
4 LOG_ARCHIVE_DEST_4 INACTIVE OPTIONAL SYSTEM PRIMARY ARCH INACTIVE
5 LOG_ARCHIVE_DEST_5 INACTIVE OPTIONAL SYSTEM PRIMARY ARCH INACTIVE
6 LOG_ARCHIVE_DEST_6 INACTIVE OPTIONAL SYSTEM PRIMARY ARCH INACTIVE
7 LOG_ARCHIVE_DEST_7 INACTIVE OPTIONAL SYSTEM PRIMARY ARCH INACTIVE
8 LOG_ARCHIVE_DEST_8 INACTIVE OPTIONAL SYSTEM PRIMARY ARCH INACTIVE
9 LOG_ARCHIVE_DEST_9 INACTIVE OPTIONAL SYSTEM PRIMARY ARCH INACTIVE
10 LOG_ARCHIVE_DEST_10 VALID OPTIONAL SYSTEM PRIMARY ARCH ACTIVE USE_DB_RECOVERY_FILE_DEST
|
|
|
|
Re: Defining Second destination of Archive log list [message #315710 is a reply to message #315705] |
Tue, 22 April 2008 09:01 |
MIFI
Messages: 256 Registered: February 2008 Location: U.K.
|
Senior Member |
|
|
i have both path for archive log in place one is flash recovery area where archive log are to be written and another path which in my other server.
I have created a folder in my test database and map this folder in Production database but i am doing alter system switch logfile, it only create archive on the first destination and not creating any file on second destination and giving error
ORA-19504: failed to create file ""
|
|
|
|
|
|
|
|
|
Re: Defining Second destination of Archive log list [message #315732 is a reply to message #315730] |
Tue, 22 April 2008 10:21 |
MIFI
Messages: 256 Registered: February 2008 Location: U.K.
|
Senior Member |
|
|
in Testdb which i am mounting on production following is the result of cat fstab
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/sda2 / ext3 defaults,errors=remount-ro 0 1
/dev/sda9 /home xfs defaults 0 2
/dev/sda8 /tmp ext3 defaults 0 2
/dev/sda7 /usr ext3 defaults 0 2
/dev/sda5 /var ext3 defaults 0 2
/dev/sda6 none swap sw 0 0
/dev/hda /media/cdrom0 udf,iso9660 user,noauto 0 0
|
|
|
|
Re: Defining Second destination of Archive log list [message #315747 is a reply to message #315739] |
Tue, 22 April 2008 10:51 |
MIFI
Messages: 256 Registered: February 2008 Location: U.K.
|
Senior Member |
|
|
following is the output and i triedmanullay and create directory remotely
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync) hostname2(ro,sync)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt)
# /srv/nfs4/homes gss/krb5i(rw,sync)
#
/home/db90-logs db90(rw,sync)
|
|
|
|
Re: Defining Second destination of Archive log list [message #315759 is a reply to message #315753] |
Tue, 22 April 2008 11:13 |
MIFI
Messages: 256 Registered: February 2008 Location: U.K.
|
Senior Member |
|
|
Yes i can successfully create directory from production by using mapped folder
1 LOG_ARCHIVE_DEST_1 INACTIVE OPTIONAL SYSTEM PRIMARY ARCH INACTIVE
2 LOG_ARCHIVE_DEST_2 ERROR OPTIONAL SYSTEM PRIMARY ARCH ACTIVE /home/archive-logs
3 LOG_ARCHIVE_DEST_3 INACTIVE OPTIONAL SYSTEM PRIMARY ARCH INACTIVE
4 LOG_ARCHIVE_DEST_4 INACTIVE OPTIONAL SYSTEM PRIMARY ARCH INACTIVE
5 LOG_ARCHIVE_DEST_5 INACTIVE OPTIONAL SYSTEM PRIMARY ARCH INACTIVE
6 LOG_ARCHIVE_DEST_6 INACTIVE OPTIONAL SYSTEM PRIMARY ARCH INACTIVE
7 LOG_ARCHIVE_DEST_7 INACTIVE OPTIONAL SYSTEM PRIMARY ARCH INACTIVE
8 LOG_ARCHIVE_DEST_8 INACTIVE OPTIONAL SYSTEM PRIMARY ARCH INACTIVE
9 LOG_ARCHIVE_DEST_9 INACTIVE OPTIONAL SYSTEM PRIMARY ARCH INACTIVE
10 LOG_ARCHIVE_DEST_10 VALID OPTIONAL SYSTEM PRIMARY ARCH ACTIVE USE_DB_RECOVERY_FILE_DEST
|
|
|
|
Re: Defining Second destination of Archive log list [message #315911 is a reply to message #315762] |
Wed, 23 April 2008 03:22 |
MIFI
Messages: 256 Registered: February 2008 Location: U.K.
|
Senior Member |
|
|
Yes well said
File created by the name of test.txt
Now one file is created with dbf extension but second file is not created, following is the error in alert log file
and folder structure
folder and its file
drwxr-xr-x 11 root root 139 2008-04-21 17:50 ..
-rw-r----- 1 oracle oinstall 159744 2008-04-23 11:35 1_200_645895824.dbf
drwxrwxr-x 2 oracle oinstall 32 2008-04-23 11:39 .
Alert log error
Wed Apr 23 11:35:39 2008
Beginning log switch checkpoint up to RBA [0xc9.2.10], SCN: 9714818
Thread 1 advanced to log sequence 201
Current log# 6 seq# 201 mem# 0: /home/u01/app/oracle/product/10.2.0/db_1/oradata/db0/redo6.log
Current log# 6 seq# 201 mem# 1: /home/u01/app/oracle/product/10.2.0/db_1/oradata/db0/redo62
Wed Apr 23 11:35:42 2008
Errors in file /home/u01/app/oracle/product/10.2.0/db_1/admin/db0/bdump/demeter_arc0_27244.trc:
ORA-19504: Message 19504 not found; No message file for product=RDBMS, facility=ORA; arguments: [/home/archive-logs/1_200_645895824.dbf]
ORA-27086: Message 27086 not found; No message file for product=RDBMS, facility=ORA
Linux-x86_64 Error: 5: Input/output error
Additional information: 9
Additional information: 5
Wed Apr 23 11:35:42 2008
ARC0: Error 19504 Creating archive log file to '/home/archive-logs/1_200_645895824.dbf'
Wed Apr 23 11:40:16 2008
Completed checkpoint up to RBA [0xc9.2.10], SCN: 9714818
[Updated on: Wed, 23 April 2008 05:46] Report message to a moderator
|
|
|
Checking size of mounted drive for archive log [message #316018 is a reply to message #315622] |
Wed, 23 April 2008 09:02 |
MIFI
Messages: 256 Registered: February 2008 Location: U.K.
|
Senior Member |
|
|
hi,
Could i check the size limitation for mounted drive in linux, i am creating archive log and whenever there is a specific size the error does not let it create more archive log files on second destination which is on mounted drive
|
|
|
|
|
|
|
Re: Checking size of mounted drive for archive log [message #316034 is a reply to message #316033] |
Wed, 23 April 2008 09:29 |
MIFI
Messages: 256 Registered: February 2008 Location: U.K.
|
Senior Member |
|
|
free space is 180G, files are not greater than 50m, but i want to find out the the directory which is mapped might have restriction and at the time of mounting configuration, we may need to provide size, other wise it may have very small size
|
|
|
Re: Checking size of mounted drive for archive log [message #316044 is a reply to message #316034] |
Wed, 23 April 2008 10:08 |
MIFI
Messages: 256 Registered: February 2008 Location: U.K.
|
Senior Member |
|
|
which mount configuration you will use for mount directory for archive log
Binaries
Linux (32bit, 64bit, Itanium) - rw,bg,hard,nointr,rsize=32768, wsize=32768,tcp,vers=3,timeo=600,actime=0
OCR/Voting
Linux (32bit, 64bit, Itanium) - rw,bg,hard,nointr,rsize=32768,wsize=32768,tcp,noac,vers=3,timeo=600
Datafiles
Linux (32bit, 64bit, Itanium) - rw,bg,hard,nointr,rsize=32768,wsize=32768,tcp,actimeo=0,vers=3,timeo=600
|
|
|
|
|