- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Moving temp datafile in Oracle
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2002 08:30 PM
тАО10-17-2002 08:30 PM
I wanted to move my total oracle 8i database from one mount point to other. But I am able to rename all my datafiles,controlfiles,and log files after doing the below
1. Shutdown the database & Instance.
2. Started the instance and only mounted the database.
3.Moved all the files to new location.
4.Proceessed the "Alter database rename file 'oldname' to 'newname'" to all files.
But the problem starts when I try to rename temp datafile. The oracle manual also says we cannot rename a temp datafile.
Can someone help me how to rename the temp data file.
Thanks,
suki
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2002 08:43 PM
тАО10-17-2002 08:43 PM
Re: Moving temp datafile in Oracle
2.copy all the datafiles from teh old mount point to the new mount point.
3.startup mount (mount the database)
4.alter database rename file 'old file path' to 'new file path'
5.alter database open
Note:Copy of the database files should be after the full instance shutdown and before the mounting of the instance.
Revert.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2002 08:47 PM
тАО10-17-2002 08:47 PM
SolutionI would recommend the following steps:
==============================
SQL> alter database tempfile '/V90164/temp02.dbf' drop;
Database altered.
SQL> alter tablespace USER_TEMP_1 add tempfile '/V90164/temp03.dbf' size 2M;
Tablespace altered.
$ rm /V90164/temp02.dbf
==============================
i.e. Drop the tempfile and add a new one to the tablespace. Then remove the OS file.
Hope this helps!
Regards
Yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2002 09:06 PM
тАО10-17-2002 09:06 PM
Re: Moving temp datafile in Oracle
you may also consider the following alternative:
alter database backup controlfile to trace
shutdown
move the files
edit the generated CREATE CONTROLFILE statement (found in the user dump
destination) and change the filenames
use the generated script you just edited to startup the database.
Hope this helps too!
Regards
Yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2002 09:21 PM
тАО10-17-2002 09:21 PM
Re: Moving temp datafile in Oracle
That's true, a temp datafile cannot be renamed. And Yogeeraj's suggestion of dropping the tablespace and recreating it in a new location is a good one.
But, if this temp datafile is also the temporary tablespace for your users, Oracle will not allow you to drop it until you have re-assigned a temporary tablespace for your users. To find out which is your users' temporary tablespace:
select username, temporary_tablespace from dba_tables;
If the tablespace you wish to drop is also the temporary tablespace for your users, then:
1. create a new temp tablespace where you want it to reside.
2. allocate your users to this tablespace,
alter user
3. drop the old temp tablespace in Oracle and then physically remove the file.
It's all good fun...enjoy!
Barbara
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2002 09:47 PM
тАО10-17-2002 09:47 PM
Re: Moving temp datafile in Oracle
Yes you can drop and re-create the temp datafile
I think this workaround should work
bring the temp tablespace offline
alter tablespace temp offline;
alter tablespace temp rename datafile 'old path'
to 'new path'
this should work .
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2002 09:51 PM
тАО10-17-2002 09:51 PM
Re: Moving temp datafile in Oracle
The script to modify users temporary tablespaces can be generated by running the following SQL command:
=============================
select 'alter user '||username||' temporary tablespace other_temp;'
from dba_users
where temporary_tablespace='TEMP';
=============================
hope this helps!
Regards
Yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2002 10:00 PM
тАО10-17-2002 10:00 PM
Re: Moving temp datafile in Oracle
//*
If that is temp datafile
Yes you can drop and re-create the temp datafile
I think this workaround should work
bring the temp tablespace offline
alter tablespace temp offline;
alter tablespace temp rename datafile 'old path'
to 'new path'
*//
If it is a temporary managed tablespace then you should go with Yogeeraj's first response.
However creating a new temp tablespace and moving users from the existing one should be a safer one.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2002 10:12 PM
тАО10-17-2002 10:12 PM
Re: Moving temp datafile in Oracle
Sorry for the previous posting as temporary managed.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2002 11:52 PM
тАО10-17-2002 11:52 PM
Re: Moving temp datafile in Oracle
Yogeeraj gave the correct procedure. As he said I dropped the temp datafile and recreated it.
But I am facing another problem with the listener.
In my system there were four instances of oracle running with the shared executables.Now I have moved one of the instance datafiles and copied the oracle binaries also separately rather than the shared one. I was stuck up with the listener.I have attached my listener.ora file. Can someone help me how to configure for my separate instance without disturbing the other running instances.
Thanks,
suki.
_______________________________________________
My existing listener file:-
LISTENERDSDI =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS=(PROTOCOL=TCP)(HOST=abc.info.com)(PORT=1521))
)
)
)
SID_LIST_LISTENERDSDI =
(SID_LIST =
(SID_DESC =
(SID_NAME = ABC1)
(ORACLE_HOME = /opt/oracle_817)
)
(SID_DESC =
(SID_NAME = ABC2)
(ORACLE_HOME = /opt/oracle_817)
)
(SID_DESC =
(SID_NAME = ABC3)
(ORACLE_HOME = /opt/oracle_817)
)
(SID_DESC =
(SID_NAME = ABC4)
(ORACLE_HOME = /opt/oracle_817)
)
)
-----------------------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2002 11:55 PM
тАО10-17-2002 11:55 PM
Re: Moving temp datafile in Oracle
Why is the need?
Revert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-18-2002 12:20 AM
тАО10-18-2002 12:20 AM
Re: Moving temp datafile in Oracle
I have copied the /opt/oracle_817 into a different directory for the newly moved instance. But earlier all the 4 instances where using the same /opt/oracle_817 Oracle_Home Directory.
Now the home directory is different for the moved database.
Thanks,
suki.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-18-2002 12:58 AM
тАО10-18-2002 12:58 AM
Re: Moving temp datafile in Oracle
There is no need to move the Oracle_home.Oracle_home is the home directory for the Oracle application and it is common for all the instances.
YOu listener.ora file looks great.
If you are adding another instance then
LISTENERDSDI =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS=(PROTOCOL=TCP)(HOST=abc.info.com)(PORT=1521))
)
)
)
SID_LIST_LISTENERDSDI =
(SID_LIST =
(SID_DESC =
(SID_NAME = ABC1)
(ORACLE_HOME = /opt/oracle_817)
)
(SID_DESC =
(SID_NAME = ABC2)
(ORACLE_HOME = /opt/oracle_817)
)
(SID_DESC =
(SID_NAME = ABC3)
(ORACLE_HOME = /opt/oracle_817)
)
(SID_DESC =
(SID_NAME = ABC4)
(ORACLE_HOME = /opt/oracle_817)
)
(SID_DESC =
(SID_NAME = xxx)
(ORACLE_HOME = /opt/oracle_817)
)
)
Revert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-18-2002 01:24 AM
тАО10-18-2002 01:24 AM
Re: Moving temp datafile in Oracle
I need to configure each instance as a separate package in a cluster environment.So what I want to keep different Oracle_Home directories.
Thanks,
Suki.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-18-2002 01:46 AM
тАО10-18-2002 01:46 AM
Re: Moving temp datafile in Oracle
With relinking the binaries it will work but OraInstaller will not work correctly on this "new installation" because in the OraInventory the former installation path is hard coded in binary files.
The correct way to separate installations is a new install of oracle binaries.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x1b13237a4bc6d611abdb0090277a778c,00.html
Chris