-
Recent Posts
Archives
Categories
- ASM
- Configuration
- Database administration
- Database Corruption
- Database Locks
- Database Migration
- EBS
- Exadata
- Linux commands for DBA
- Materialized view
- Ocfs2
- Oracle Application server
- Oracle backup & recovery
- Oracle DataGaurd
- Oracle fusion Middleware
- Oracle RAC
- Performance and Tuning
- rman
- scripts
- SQL Server
- statistics
- Uncategorized
Meta
Author Archives: Sher khan
ORA-01113: file 1 needs media recovery
After Database restore SQL> ALTER DATABASE OPEN RESETLOGS;ALTER DATABASE OPEN RESETLOGS*ERROR at line 1:ORA-01113: file 1 needs media recoveryORA-01110: data file 1: ‘C:\ORACLEXE\APP\ORACLE\ORADATA\XE\SYSTEM.DBF’ SQL> RECOVER DATABASE UNTIL CANCEL USING BACKUP CONTROLFILE;ORA-00279: change 5578888 generated at 11/28/2023 07:56:27 needed for thread … Continue reading
Posted in Uncategorized
Leave a comment
Chnage the Path for the mdf and ldf file while Creating a SQL Database
To change the default path for mdf and ldf files in SQL ServerUSE [master] GO EXEC xp_instance_regwrite N’HKEY_LOCAL_MACHINE’, N’Software\Microsoft\MSSQLServer\MSSQLServer’, N’DefaultData’, REG_SZ, N’F:\Data\DB05′ GO EXEC xp_instance_regwrite N’HKEY_LOCAL_MACHINE’, N’Software\Microsoft\MSSQLServer\MSSQLServer’, N’DefaultLog’, REG_SZ, N’F:\Data\DB05′ GO
Posted in SQL Server, Uncategorized
Leave a comment