ORA-00265: Instance recovery required cannot set ARCHIVELOG mode
June 3rd, 2016, posted in Oracle QueriesToday, I came across the “ORA-00265: instance recovery required, cannot set ARCHIVELOG mode” while
converting database into archive log mode.
This error usually caused when database crashed unfortunately or we shutdown database with the help of database shutdown command as: shutdown abort, startup force mount or shutdown abort. These types of command will required instance recovery in next startup. In short it need clean database startup.
SQL> alter database archivelog;
alter database archivelog
*
ERROR at line 1:
ORA-00265: instance recovery required, cannot set ARCHIVELOG mode
Reason :
ORA-00265: instance recovery required, cannot set ARCHIVELOG mode
*Cause: The database either crashed or was shutdown with the ABORT
option. Media recovery cannot be enabled because the online
logs may not be sufficient to recover the current datafiles.
*Action: Open the database and then enter the SHUTDOWN command with the
NORMAL or IMMEDIATE option.
Solution: SQL> select status from v$instance;
STATUS ———————————— MOUNTED
SQL> alter database open; Database altered.
SQL> shutdown immediate;
Database closed. Database dismounted. ORACLE instance shut down.
SQL> startup mount;
ORACLE instance started.
Total System Global Area 293601280 bytes Fixed Size 1248600 bytes Variable Size 88081064 bytes Database Buffers 197132288 bytes Redo Buffers 7139328 bytes Database mounted.
SQL> alter database archivelog;
Database altered.
SQL> alter database open;
Database altered.
If Finding Nemo Were An Anime With Humans
June 1st, 2016, posted in ANiMALS, COMiCS, DAtEs iN a YeARFind Fiber Host Bus Adapter (Fiber HBA) WWN On Solaris UNIX
May 31st, 2016, posted in SolarisSOLARIS: Finding Fiber HBA WWN
fcinfo hba-port
prtpicl -v -c scsi-fcp
Here is sample output (I have two HBAs installed)
# fcinfo hba-port
HBA Port WWN: 210000e08b91ab98
OS Device Name: /dev/cfg/c4
Manufacturer: QLogic Corp.
Model: 375-3294-01
Firmware Version: 4.2.2
FCode/BIOS Version: BIOS: 1.4; fcode: 1.11; EFI: 1.0;
Type: N-port
State: online
Supported Speeds: 1Gb 2Gb 4Gb
Current Speed: 4Gb
Node WWN: 200000e08b91ab98
HBA Port WWN: 210100e08bb1ab98
OS Device Name: /dev/cfg/c5
Manufacturer: QLogic Corp.
Model: 375-3294-01
Firmware Version: 4.2.2
FCode/BIOS Version: BIOS: 1.4; fcode: 1.11; EFI: 1.0;
Type: N-port
State: online
Supported Speeds: 1Gb 2Gb 4Gb
Current Speed: 4Gb
Node WWN: 200100e08bb1ab98
#
# prtpicl -v -c scsi-fcp
SUNW,qlc (scsi-fcp, 8600000614)
:_fru_parent (8600000d18H)
...
...
:node-wwn 20 00 00 e0 8b 91 ab 98
:port-wwn 21 00 00 e0 8b 91 ab 98
:model QLA2462
:manufacturer QLGC
:version QLA2462 Host Adapter Driver(SPARC): 1.11 10/03/05
...
...
:devfs-path /pci@1f,700000/pci@0,2/SUNW,qlc@1
:driver-name qlc
:binding-name pci1077,2422
...
...
:node-wwn 20 01 00 e0 8b b1 ab 98
:port-wwn 21 01 00 e0 8b b1 ab 98
:model QLA2462
:manufacturer QLGC
:version QLA2462 Host Adapter Driver(SPARC): 1.11 10/03/05
...
...
:devfs-path /pci@1f,700000/pci@0,2/SUNW,qlc@1,1
:driver-name qlc
:binding-name pci1077,2422
...
...
#
Other Useful Commands
Sponsored Links
And just for a bonus, other useful Solaris commands for machine discovery
grep [string] /var/sadm/install/contents : similar to “locate” on linux, this is a list of everything installed by package manager)
prtconf -V : machine discovery
prtconf -v : machine discovery
prstat similar to “top”
psrinfo : machine discovery
showrev -p : patches
pkginfo : software packages
prtdiag : more machine discovery



