Moving ORACLE_HOME , Datafiles, controlfiles,redo log file locations
Version: 10.2.0.1.0
One of our test DB's software location(ORACLE_HOME) was wrongly installed in /home/oracle. We have been using this for an year now. Now we are thinking of moving the ORACLE_HOME to a new location /u02. Because of another disk maintenance activity, we have to move all datafiles , redo log files, control files, tempfiles to a different location as well.
This database is not in ARCHIVELOG mode(luckily).
If i do a fresh installation of 10.2.0.1.0 in /u02, i cannot use the old installation's system01.dbf, sysaux01.dbf,undotbs01.dbf files for this fresh installation. Right?
How do i go about doing this whole move thing?
This database is not in ARCHIVELOG mode(luckily).
Why?
If i do a fresh installation of 10.2.0.1.0 in /u02, i cannot use the old installation's system01.dbf, sysaux01.dbf,undotbs01.dbf files for this fresh installation. Right?
No.
Issue ALTER DATABASE BACKUP CONTROLFILE TO TRACE. Then Shutdown the database. Copy all the files including the trace generated. Change the control_files parameter from init<SID>.ora file. Copy this to new home. Also tailor the backup trace file for change in location of logfiles,datafiles. Then
$export ORACLE_SID=<SID>
$sqlplus /nolog
SQL>conn sys as sysdba
password:<Enter>
SQL>startup nomount pfile=NEW_HOME/dbs/init<SID>.ora
SQL>@location_of_trace_file_generated/tracefilename.trc
Add temporary tablespace and make it default temporary tablespace for the database.
Your database will be up and running.
Regards.
Edited by: orant575 on Jul 10, 2009 4:37 PM
Similar Messages
-
If i change the permssion of these file to 640, will this break any thing?
what are the suggested permission of Oracle files and directories?here i am doing to secure my DBs Just doing research that it dont break any thing
These are the permission i am going to change in my DBs , any suggestion?
chmod 750 /u02/oradata/sid_name
Chmod 640 (Datafile,UNDO,TEMP Tablespace, Controlfile, Redo Log Files, Archivelogs)
chmod 644 (alert Logs, init.ora files, config.ora files)
Chmod 640 $ORACLE_HOME/rdbms/admin/utlpwdmg.sql
Verify umask = 022 - type "umask" - should return 022; if not, modify in .profile
Verify all files are readable--run the following:
select file_name, status from dba_data_files where status != 'AVAILABLE'--should return 0 rows
SUN - ls -al /var/opt/oracle/oratab = should be owner=oracle group=dba
IF NOT, OPEN SR TO UNIX TEAM TO CHANGE
Verify oraInst.loc - look at /u01/app/oracle/security/*.info - setting A271-
/var/opt/oracle/oraInst.loc - owned by oracle:dba
*IF NOT, OPEN SR TO UNIX TEAM TO CHANGE
Verify ownership of $ORACLE_HOME/network/admin/listener.ora,$ORACLE_HOME/network/admin/tnsnames.ora
= oracle:dba
*IF NOT, OPEN SR TO UNIX TEAM TO CHANGE
Verification:
1. run gsd331 scan and verify fixed--
execute /u01/app/oracle/security/orashc -m -a *output will go to [email protected]
BACKOUT:
Change permission back to 755 -
Best RAID configuration for storing Datafiles and Redo log files
Database version:10gR2
OS version: Solaris
Whis is the best RAID level for storing Datafiles and Redo log files?Oracle recommends SAME - Stripe And Mirror Everything.
In the RAC Starter Kit documentation, they specifically recommend not using RAID5 for things like voting disk and so on.
SAN vendors otoh claims that their RAID5 implementations are as fast as RAID10. They do have these massive memory caches...
But I would rather err on the safer side. I usually insist on RAID10 - and for those databases that I do not have a vested interest in (other than as a DBA), and owners, developers and management accept RAID5, I put the lead pipe away and do not insist on having it my way. :-) -
How to change the redo log file location.... ?
I want all my redo log files to be created in \u10 instead of current /u01?
How to do it? NOARCHIVELOG mode database on Oracle 10g R2.
Thank you,
SmirhHi..
I want all my redo log files to be created in \u10 instead of current /u01?I think it should be /u10 :)...
Anand
Edited by: Anand... on Nov 5, 2009 5:32 AM Removed the misinformation about downtime -
Problem in creating database -Missing Redo log file
I am try to create a new database using DBCA .While creating a database it shows the error oracle instance terminated.Force Disconnected.
My alert log file is
Errors in file /u01/app/oracle/diag/rdbms/oracl/oracl/trace/oracl_ora_5424.trc:
ORA-00313: open failed for members of log group 1 of thread 1
ORA-00312: online log 1 thread 1: '/u01/app/oracle/oradata/oracl/redo01.log'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
Wed Nov 06 10:07:27 2013
Errors in file /u01/app/oracle/diag/rdbms/oracl/oracl/trace/oracl_ora_5424.trc:
ORA-00313: open failed for members of log group 2 of thread 1
ORA-00312: online log 2 thread 1: '/u01/app/oracle/oradata/oracl/redo02.log'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
Errors in file /u01/app/oracle/diag/rdbms/oracl/oracl/trace/oracl_ora_5424.trc:
ORA-00313: open failed for members of log group 3 of thread 1
ORA-00312: online log 3 thread 1: '/u01/app/oracle/oradata/oracl/redo03.log'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
Wed Nov 06 10:07:38 2013
Setting recovery target incarnation to 2
Wed Nov 06 10:07:38 2013
Assigning activation ID 1876274518 (0x6fd5ad56)
Thread 1 opened at log sequence 1
Current log# 1 seq# 1 mem# 0: /u01/app/oracle/oradata/oracl/redo01.log
Successful open of redo thread 1
Wed Nov 06 10:07:38 2013
MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
Wed Nov 06 10:07:38 2013
SMON: enabling cache recovery
Errors in file /u01/app/oracle/diag/rdbms/oracl/oracl/trace/oracl_ora_5424.trc (incident=1345):
ORA-00600: internal error code, arguments: [kpotcgah-7], [12534], [ORA-12534: TNS:operation not supported
Incident details in: /u01/app/oracle/diag/rdbms/oracl/oracl/incident/incdir_1345/oracl_ora_5424_i1345.trc
Wed Nov 06 10:07:46 2013
Trace dumping is performing id=[cdmp_20131106100746]
Errors in file /u01/app/oracle/diag/rdbms/oracl/oracl/trace/oracl_ora_5424.trc:
ORA-00600: internal error code, arguments: [kpotcgah-7], [12534], [ORA-12534: TNS:operation not supported
Error 600 happened during db open, shutting down database
USER (ospid: 5424): terminating the instance due to error 600
Instance terminated by USER, pid = 5424
ORA-1092 signalled during: alter database "oracl" open resetlogs...
ORA-1092 : opiodr aborting process unknown ospid (5424_47935551851664)
Wed Nov 06 10:07:47 2013
ORA-1092 : opitsk aborting process
251,1 95%>I am try to create a new database using DBCA
>Please help me to resolve this issue.My redo log file was missing
DROP and recreate the database. It is a *new* database without any data.
Check what datafile locations and redo log file locations you specify when creating the new database. Check if you have permissions and enough disk space.
Hemant K Chitale -
Moving the online redo log files to different location
We just installed few more drives into our sandbox system and I want to move the online redo log files for better performance. We've got the SAPARCH directory moved to a different location.
Does anyone know how/where I can change the parameters so redo log files are pointed at different drives? It's not in the <b>init<SID>.ora</b> file...
Regards,
SumitHi Sumit,
The following link contains information about moving the redo logs:
http://www.stanford.edu/dept/itss/docs/oracle/9i/server.920/a96521/onlineredo.htm
Best regards,
Alwin -
Db restore non archive mode lost redo log file..restore from controlfile tr
i have a db 11g I had taken non archive backup but failed to take redo log files backup...
so while i restored the db ... after formatting the machine ..the oracle instance wont start.
I create a controlfile trace but when i run it i get errors.
since i dont have the older log files.. how do i get around with this issue
Thanks
Following is the sample of control file trace ..Note i cannot create the redo log file
since db wont be mounted at most it shall be in nonmount mode
and below is my created controlfile ....
CREATE CONTROLFILE REUSE DATABASE "XE" NORESETLOGS NOARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 100
MAXINSTANCES 8
MAXLOGHISTORY 292
LOGFILE
GROUP 1
'C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_1_80L7C259_.LOG'
SIZE 50M BLOCKSIZE 512,
GROUP 2
'C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_2_80L7C375_.LOG'
SIZE 50M BLOCKSIZE 512
-- STANDBY LOGFILE
DATAFILE
'C:\ORACLEXE\APP\ORACLE\ORADATA\XE\SYSTEM.DBF',
'C:\ORACLEXE\APP\ORACLE\ORADATA\XE\UNDOTBS1.DBF',
'C:\ORACLEXE\APP\ORACLE\ORADATA\XE\SYSAUX.DBF',
'C:\ORACLEXE\APP\ORACLE\ORADATA\XE\USERS.DBF'
CHARACTER SET AL32UTF8
I dont have these 2 files ..what do i do to get around this situation
'C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_1_80L7C259_.LOG'
SIZE 50M BLOCKSIZE 512,
GROUP 2
'C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_2_80L7C375_.LOG'
SIZE 50M BLOCKSIZE 512
-- STANDBY LOGFILE
DATAFILE
Edited by: zycoz100 on Feb 27, 2013 10:57 PMIf you have a cold backup (database shutdown properly) without the redo logs, change this :
CREATE CONTROLFILE REUSE DATABASE "XE" NORESETLOGS NOARCHIVELOGto
CREATE CONTROLFILE REUSE DATABASE "XE" RESETLOGS NOARCHIVELOGYou have to change the NORESETLOGS to RESETLOGS for Oracle to recreate the online redo logs.
Hemant K Chitale -
Need to understand when redo log files content is wrote to datafiles
Hi all
I have a question about the time when redo log files are wrote to the datafiles
supposing that the database is in NOARCHIVELOG mode, and all redo log files are filled, the official oracle database documentation says that: *a filled redo log file is available
after the changes recorded in it have been written to the datafiles* witch mean that we just need to have all the redo log files filled to "*commit*" changes to the database
Thanks for help
Edited by: rachid on Sep 26, 2012 5:05 PMrachid wrote:
the official oracle database documentation says that: a filled redo log file is available after the changes recorded in it have been written to the datafiles It helps if you include a URL to the page where you found this quote (if you were using the online html manuals).
The wording is poor and should be modified to something like:
<blockquote>
+"a filled online redo log file is available for re-use after all the data blocks that have been changed by change vectors recorded in the log file have been written to the data files"+
</blockquote>
Remember if a data block that is NOT an undo block has been changed by a transaction, then an UNDO block has been changed at the same time, and both change vectors will be in the redo log file. The redo log file cannot, therefore, be re-used until the data block and the associated UNDO block have been written to disc. The change to the data block can thus be rolled back (uncommitted changes can be written to data files) because the UNDO is also available on disc if needed.
If you find the manuals too fragmented to follow you may find that my book, Oracle Core, offers a narrative description that is easier to comprehend.
Regards
Jonathan Lewis
http://jonathanlewis.wordpress.com
Author: <b><em>Oracle Core</em></b> -
Changing names of datafiles, tempfiles and redo log files
DB version:10g Release 2
Can i use
ALTER DATABASE RENAME FILE ...command to rename datafiles, tempfiles and redo log files?ScottsTiger wrote:
DB version:10g Release 2
Can i use
ALTER DATABASE RENAME FILE ...command to rename datafiles, tempfiles and redo log files?Why not check the Fine Manual found at tahiti.oracle.com?
Please note that when you use this command, you are doing nothing to the actual files on the OS. You are simply changing the db's knowledge of them, as stored in the control file. -
Hi All,
I got a scenario in which my current redo log file is lost:
Do I need to:
1)Clear log file group
(or)
2)I should perform incomplete recovery.
What are the steps I should follow to recover this current redo log file?
1)*If it is inactive* I can make use of
ALTER DATABASE CLEAR LOGFILE UNARCHIVED GROUP 2;
which will drop and recreate the log file.To recover from loss of an active online log group in NOARCHIVELOG mode:
If the media failure is temporary, then correct the problem so that the database can reuse the group when required.
Restore the database from a consistent, whole database backup (datafiles and control files) as described in "Restoring Datafiles Before Performing Incomplete Recovery". For example, enter:
% cp /disk2/backup/*.dbf $ORACLE_HOME/oradata/trgt/
Mount the database:
STARTUP MOUNT
Because online redo logs are not backed up, you cannot restore them with the datafiles and control files. In order to allow the database to reset the online redo logs, you must first mimic incomplete recovery:
RECOVER DATABASE UNTIL CANCEL
CANCEL
Open the database using the RESETLOGS option:
ALTER DATABASE OPEN RESETLOGS;
Shut down the database consistently. For example, enter:
SHUTDOWN IMMEDIATE
Make a whole database backup.
To recover from loss of an active online redo log group in ARCHIVELOG mode:
If the media failure is temporary, then correct the problem so that the database can reuse the group when required. If the media failure is not temporary, then use the following procedure.
Begin incomplete media recovery, recovering up through the log before the damaged log.
Ensure that the current name of the lost redo log can be used for a newly created file. If not, then rename the members of the damaged online redo log group to a new location. For example, enter:
ALTER DATABASE RENAME FILE "?/oradata/trgt/redo01.log" TO "/tmp/redo01.log";
ALTER DATABASE RENAME FILE "?/oradata/trgt/redo01.log" TO "/tmp/redo02.log";
Open the database using the RESETLOGS option:
ALTER DATABASE OPEN RESETLOGS;
My question is when the redo log file is current. What steps we should follow?
Best regards,
Rafi.
http://rafioracledba.blogspot.com/
2)If it is active then I can make use of below steps:Rafi (Oracle DBA) wrote:
Hi Asif,
This link I have seen by refering to previous post.I just have a slight doubt in mind.
1)Do I need to make use of statement:
Alter database clear unarchived log file group#;
(or)
Only if your group is current(or you are not able to drop it) and is not archived then you should use above query.
We should perform incomplete recovery for this.If we have to perform incomplete recovery what are the steps I should follow?
I doubt you should be performing incomplete recovery for this.
Eg:Let us say my group 1 is dropped it has only one member and it is in active state.How to recover database?Can I get the steps?
You would not be able to drop it if it is in active state, did you meant it is corrupted? If yes then you can use below query
Alter database clear [unarchived] LOGFILE GROUP #;>
Best regards,
Rafi
http://rafioracledba.blogspot.com/
Make sure to backup your database after above activity.
Regards
Anurag -
Is it possible to use Archive Redo log file
Hi friends,
My database is runing in archive log mode.I had taken cold backup on Sunday but i am taking archive log file daily evening.
Wednesday my database crash that means i lost all control file,redo log file,datafile etc.
I have archived log file backup till Tuesday Night and other files like control file,datafile etc of Sunday .
1)Is it possible to recover database till tuesday if yes HOW to use archive log file.
(See SCN no of control file and datafiles is same ,if we use RECOVER DATABASE command oracle shows that media recovery is not requide.)
we don't have current control file we had lost in media crash.
nullDear friend
In this scenario
you lost the contorl file
1>If you have old copy of Contorl file,
which has the current structure of the
database and all the archive files then
you can recover the database with
Ponint in time recovery (Using Backup Controlfile)
suresh -
i have redo log files in location in /U01 location. now the disk is crashed ........
wht will happen to db, and since the disk is crashed i will create a new mount point /u02
please tell me the steps for solution.
how to resolve ituser8941653 wrote:
i have redo log files in location in /U01 location. now the disk is crashed ........
wht will happen to db, and since the disk is crashed i will create a new mount point /u02
please tell me the steps for solution.
how to resolve itOnline logfiles still available? missing or corrupted?
Other files control and datafiles available?
Did you restore your database files to new */u02* mount point? -
What is a redo log file? can anyone explain in simple terms
I am confused between redo log file and physical datafile can anyone explain in simple terms
Thank u
Regards,
VijaySee Overview of Physical Database Structures
-
Restore in noarchivelog mode ( redo log files have been dropped )
1, A full backup taken using RMAN is available on disk.
2, The current control files were NOT damaged and do not need to be restored.
3, All data files are damaged .
4, The database is in NOARCHIVELOG mode.
I restore database :
1. RMAN> STARTUP MOUNT
2. RMAN> RESTORE DATABASE;
3. RMAN> recover database;
in this step , I got the information about needing redo log files ; but the redo log
files have been dropped , what should i do ?
else
I want to know there is the command 'recover database using backup control file'
in rman or not ?
TksPossibly loss of data (because information in online redo logs is lost):
recover database until cancel;
(cancel immediately)
alter database open resetlogs; (to build a new set of redo logs)
It's not necessary to use a backup controlfile here. -
Online redo log files being removed physically
Grid Infra version: 11.2.0.4
RDBMS Version: 11.2.0.4
Although this is a RAC DB, this is not a RAC-specific question. Hence posting it here.
Few months back, I remember issuing a command similair to below (DROP LOGFILE GROUP ...) and the redo log files were still physically present in the diskgroup.
If I remember correctly, the file is not deleted physical so that we can use the REUSE functionality (ALTER DATABASE ADD LOGFILE MEMBER '+REDO/orcl/onlinelog/redo1b.log' reuse to group 11; ) ie. you can use the REUSE command to add the logfile of the same name which is physically present in OS Filesystem/Diksgroup to redo log group.
But today, after I issued the below command, I checked the diskgroup location from ASMCMD
SQL> alter database drop logfile group 31;
Database altered.
From ASMCMD, I can that the file has disappeared physically. Is this a new feature with 11.2.0.4 or am I missing something here ?
ASMCMD> ls +DATA/msblprd/onlinelog/group_31.548.833154995
ASMCMD-8002: entry 'group_31.548.833154995' does not exist in directory '+DATA/msblprd/onlinelog/'Just to add to what Aman has said.
It is a bad practice not to let OMF decide the placement of Online redo logs because of this issue especially when you use ASM.
Executing rm command in Linux/Unix is easy but Dropping ASM aliases in the disk group can be a hassle.
This is documented.
"When a redo log member is dropped from the database, the operating system file is not deleted from disk. Rather, the control files of the associated database are updated to drop the member from the database structure. After dropping a redo log file, ensure that the drop completed successfully, and then use the appropriate operating system command to delete the dropped redo log file."
http://docs.oracle.com/cd/E11882_01/server.112/e25494/onlineredo.htm#ADMIN11324
BTW . You don't even need to set db_create_online_log_dest_n to enable OMF for ORLs.
SQL> show parameter log_dest
NAME TYPE VALUE
db_create_online_log_dest_1 string
db_create_online_log_dest_2 string
db_create_online_log_dest_3 string
db_create_online_log_dest_4 string
db_create_online_log_dest_5 string
SQL> show parameter db_create_file_dest
NAME TYPE VALUE
db_create_file_dest string +MBL_DATA
alter database add logfile thread 4
group 31 ('+MBL_DATA','+MBL_FRA') size 4096M,
group 32 ('+MBL_DATA','+MBL_FRA') size 4096M,
group 33 ('+MBL_DATA','+MBL_FRA') size 4096M,
group 34 ('+MBL_DATA','+MBL_FRA') size 4096M ;
Database altered.
And redo logs will be neatly placed as shown below
INST GROUP# MEMBER STATUS ARC
4 31 +MBL_DATA/bsblprd/onlinelog/group_31.276.832605441 UNUSED YES
+MBL_FRA/bsblprd/onlinelog/group_31.297.832605445 UNUSED YES
32 +MBL_DATA/bsblprd/onlinelog/group_32.547.832605451 UNUSED YES
+MBL_FRA/bsblprd/onlinelog/group_32.372.832605457 UNUSED YES
33 +MBL_DATA/bsblprd/onlinelog/group_33.548.832605463 UNUSED YES
+MBL_FRA/bsblprd/onlinelog/group_33.284.832605469 UNUSED YES
34 +MBL_DATA/bsblprd/onlinelog/group_34.549.832605475 UNUSED YES
+MBL_FRA/bsblprd/onlinelog/group_34.359.832605481 UNUSED YES
Maybe you are looking for
-
Does "Run VI" invoke node work on strict references to REENTRANT VIs?
I am using LV 6.02 on Windows 2000. I am trying to use the "Run VI" invoke node method with a reference to a Reentrant VI, with no success. (It works when VI is not reentrant. Perhaps there is a reason this cannot work. But if not, I wonder if there
-
System fan not working properly
i have a hp 15 notebook 15-r004ne laptop and when i turn it on, it states the fan is not working correctly, then shuts down after 15 seconds or continues to windows if you press enter. I dont know what to do now please i need help . Answers will be
-
I was given an ipad mini for Christmas. It has twice frozen completely up. It is also not backing up or syncing with my other devices. The prompt on the screen states: icloud backup this ipad hasn't been backed up in 15 weeks. Backups happen when
-
How to make a Plain HTTP-Request
Hi folks, is it posible to post somthing like this with cl_http_client. POST /hapld/tos/kdwhapltos HTTP/1.1 Host: www.pld-certify.ups.com Content-type: multipart/mixed; boundary=BOUNDARY Content-length: 1038 --BOUNDARY Content-type: application/x-www
-
Converting iPhone Movies to a Windows Viewable Format?
I have a couple of videos that I recorded on my iPhone 4S (iOS 6.0.1) that I would like to share with family members who are Windows users (7 or XP). The iPhone created them in ".mov" format. What is the best way to convert these to a format that w