Skip to Main Content
  • Questions
  • Process to add temp tablesoaces in a Data Guard environment

Breadcrumb

Dev Live Dev Intro

This month we are celebrating Developers at AskTOM. We welcome Developers of all levels of experience to join us at our FREE Developer Live events coming in August. Just click on the left to register today! If you are brand new to Database Technology, then we also have got you covered. Just click on the right for your comprehensive FREE training program to kick start your Oracle Database Development journey!

Question and Answer

Connor McDonald

Thanks for the question.

Asked: April 19, 2017 - 4:22 am UTC

Answered by: Connor McDonald - Last updated: April 20, 2017 - 7:42 am UTC

Category: Database Administration - Version: 11.2.0.4

Viewed 1000+ times

You Asked

We have a physical Data Guard environment. When checking the standby, a new temporary tablesoaces was not added to the standby (but is on the primary). I understand why it's not being automatically created on the standby. However, what's the best process to add it to the standby?

Thank you

and we said...

Depends on what you want to do - if you are just checking to see if the standby can be opened (read only), and run a few sanity check queries, then you dont really need one.

If you plan on opening it read only for reports (or anything that might need to sort to disk), then the *definition* for the tablespace will already be there, so you can simply add a tempfile

ALTER TABLESPACE temp ADD TEMPFILE '...' SIZE 1000M REUSE;


and you rated our response

  (1 rating)

Is this answer out of date? If it is, please let us know via a Review

Reviews

April 19, 2017 - 11:13 am UTC

Reviewer: Kel Bell

We plan to perform a switchover.
Connor McDonald

Followup  

April 20, 2017 - 7:42 am UTC

Then yes, add a tempfile at that point.