Can i change the temporary tablespace for schemas during the transactions??

In My Prod database some of the tablespaces assigned system as Temporary tablespace. I want to change the temporary tablespace for these schemas and the default temporary tablespace of the database.
Can I make this change while the users are accessing the database. Is there any impact If i make this change while the transactions are running.
Below is the change i want to do........
1. Change the users for SYSTEM to TEMP in the temporary tablespace by executing the following SQL
statements:
alter user SYSTEM temporary tablespace TEMP;
alter user SYS temporary tablespace TEMP;
alter user AD_MONITOR temporary tablespace TEMP;
alter use SI_INFORMTN_SCHEMA temporary tablespace TEMP;
alter user EM_MONITOR temporary tablespace TEMP;
alter user ORDPLUGINS temporary tablespace TEMP;
alter user TSMSYS temporary tablespace TEMP;
alter user XDB     temporary tablespace TEMP;
alter user SCOTT temporary tablespace TEMP;
alter user DBSNMP temporary tablespace TEMP;
alter user DIP     temporary tablespace TEMP;
alter user OUTLN temporary tablespace TEMP;
alter user ANONYMOUS temporary tablespace TEMP;
alter user ORDSYS temporary tablespace TEMP;
alter user MDDATA temporary tablespace TEMP;
2. Set the default temporary tablespace to TEMP by executing the following SQL statement:
alter DATABASE default temporary tablespace TEMP;

user11829256 wrote:
But if one transaction is using the old temporary tablespace and if i change the temporary tablespace of user will that transactions of that user fails which is using the old temp segment....It will continue to use the old one till the end of transaction.
Here a quick test (hopefully readable) :
-- session 1 as a dba user
SQL> grant create session to nga identified by nga;
Grant succeeded.
SQL> alter user nga temporary tablespace tmp;
User altered.
SQL> select temporary_tablespace from dba_users where username='NGA';
TEMPORARY_TABLESPACE
TMP
-- session 2 as NGA
SQL> insert into gtt
  2  select * from (select * from all_objects union all select * from all_objects union all select * from all_objects);
80559 rows created.
-- session 1 as a dba user
SQL> select tablespace from v$tempseg_usage where username='NGA';
TABLESPACE
TMP
SQL> alter user nga temporary tablespace pstemp;
User altered.
SQL> select tablespace from v$tempseg_usage where username='NGA';
TABLESPACE
TMP
SQL> select temporary_tablespace from dba_users where username='NGA';
TEMPORARY_TABLESPACE
PSTEMP
-- session 2 as NGA
80559 rows created.
SQL> roll;
Rollback complete.
-- session 1 as a dba user
SQL> select tablespace from v$tempseg_usage where username='NGA';
no rows selected
-- session 2 as NGA
SQL> insert into gtt
  2  select * from (select * from all_objects union all select * from all_objects union all select * from all_objects);
80559 rows created.
-- session 1 as a dba user
SQL> select tablespace from v$tempseg_usage where username='NGA';
TABLESPACE
PSTEMPNicolas.

Similar Messages

  • Change temporary tablespace for session

    hi.
    i wonder if it's possible to change temporary tablespace for session in the way other then `alter user <user> temporary tablespace <tbc>'?

    Hi,
    Temporary tablespace is set at database level and user level. It is not set at the session level.
    The below is an extract from Oracle Docs for 10gR2
    The DEFAULT TEMPORARY TABLESPACE clause of the CREATE DATABASE statement
    creates a default temporary tablespace for the database. Oracle Database assigns this
    tablespace as the temporary tablespace for users who are not explicitly assigned a
    temporary tablespace.
    You can explicitly assign a temporary tablespace or tablespace group to a user in the
    CREATE USER statement. However, if you do not do so, and if no default temporary
    tablespace has been specified for the database, then by default these users are assigned
    the SYSTEM tablespace as their temporary tablespace.You can specifically assign a temporary tablespace for the user but not for the session.
    regards,
    Vijayaraghavan K

  • I made a big mistake to change the setting of my Mac book pro to "me only". Now ofcourse It cannot open the login page, for how would the mac know it is me? How can I change the setting back to "everyone"?

    I made a big mistake to change the setting of my Mac book pro to "me only". Now ofcourse It cannot open the login page, for how would the mac know it is me? How can I change the setting back to "everyone"? I have back up in the past but the last month I have not. I really want to keep the data.
    So how can I go in and change the setting, It stays ofcourse at the apple screen with wheel. All info is there and the computer works fine, just cannot use it or have been able to log in.

    wjosten is spot on.  If you really want iCloud, then you will need to acquire a new or second hand MBP that can run Lion.
    Ciao.

  • How can I change my security questions for my Apple ID. I can't seem to get the questions correct at the moment

    How can I change my security questions for my Apple ID. I can't seem to get the questions correct at the moment

    The Best Alternatives for Security Questions and Rescue Mail
        a. Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
        b. Call Apple Support in your country: Customer Service: Contact Apple support.
        c. Rescue email address and how to reset Apple ID security questions.

  • Using temporary tablespace for sort in select statement without spacifying

    how can i use some particular temporary tablespace in select statement for sording without allocating any temporary tablespace to that user

    Try to set for the current session the in memory sorting space to 0 before running your query:
    SQL> alter session set sort_area_size = 0;The query should use the temporary tablespace.
    Message was edited by:
    Pierre Forstmann

  • Clear the temporary tablespace

    Dear All,
    I've created a database in 10G (10.2.0). But currently running with a space problem in temporary tablespace. My database in 365X24 hrs. in such situation how to clear the temporary tablespace by keeping the database open for future operation.

    Granting privileges to a role is not necessary either ETC however everybody grants privs. to a role and roles are granted to users. When you do not do that way, you will get confused.
    What i ment with necessary is this. I tried to describe it but you don't want to understand i guess.
    I am not feel offended but Paul M. is an Oracle ACE member and he can reply to me. He asked me the question and i answered.
    As you can see it from above, i posted that it's not necessary. What i want to say is an useful fact.

  • DEFAULT TABLESPACE and TEMPORARY TABLESPACE for eBusiness Suite database

    Hi:
    What is the
    DEFAULT TABLESPACE and TEMPORARY TABLESPACE
    for eBusiness Suite database.
    I want to create a new schema on the eBusiness Suite database.
    Please help

    DEFAULT TABLESPACE and TEMPORARY TABLESPACE
    for eBusiness Suite database.
    I want to create a new schema on the eBusiness Suite database.Create a new tablespace and temporary tablespace for your custom schema (you may use the existing temporary tablespace).
    Integrating Custom Applications with Oracle Applications Release 11i [ID 176852.1]
    Step By Step Guide to Creating a Custom Application in Applications 11i [ID 216589.1]
    Thanks,
    Hussein

  • How to find the temporary tablespace of the database?

    How to find the temporary tablespace of the database?

    noooo I don't want to try it myself without a GURU telling if it can be done.
    i'd rather spend an hour posting on the forum and waiting for a response then
    spend 30seconds logging in to my database and running an SQL query.

  • How can you change your security question for I tunes?

    How can you change your security question for I tunes?

    If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then the steps half-way down this page give you a reset link on your account : http://support.apple.com/kb/HT5312
    If you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then you will need to contact iTunes Support / Apple to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down the HT5312 link above to add a rescue email address for potential future use

  • HT4436 How can I change my Apple ID for icloud on my ipad to be same as on my iPhone?

    How can I change my Apple ID for icloud on my ipad to be the same as my Apple ID for icloud on my iPhone?

    Welcome to the Apple Community.
    Delete the account from the iPad, log in again using the ID you use on the phone.

  • How can I change my Apple ID for iCloud on iPhone 5 with iOS7?

    How can I change my Apple ID for iCloud on iPhone 5 with iOS7? When I updated to iOS7 it kept my old ID on some features and my new one on others. I was able to change my Apple ID on all apps except iCloud. I don't have the original email account I used when setting up my iPhone with the old Apple ID and I have no clue what the password was. It appears I first need to turn off "Find my iPhone" which requires the old Apple ID, then I can delete the iCloud account. I want to use my current Apple ID to be able to use the "Find my iPhone" feature in iOS7. I hope someone can help!!

    GmaL2 wrote:
    That doesn't help. It's an old email that doesn't work anymore. Please read the entire post. iOS7 won't let you delete iCloud unless you have the password for the old/inactive email/Apple ID.
    You never mentioned that you didn't have access to that email.  There are some specific steps you can perform to retrieve the old Apple ID password.

  • How can i import tables from a different schema into the existing relational model... to add these tables in the existing model? plss help

    how can i import tables from a different schema into the existing relational model... to add these tables in the existing relational/logical model? plss help
    note; I already have the relational/logical model ready from one schema... and I need to add few more tables to this relational/logical model
    can I import the same way as I did previously??
    but even if I do the same how can I add it in the model?? as the logical model has already been engineered..
    please help ...
    thanks

    Hi,
    Before you start, you should probably take a backup copy of your design (the .dmd file and associated folder), in case the update does not work out as you had hoped.
    You need to use Import > Data Dictionary again, to start the Data Dictionary Import Wizard.
    In step 1 use a suitable database connection that can access the relevant table definitions.
    In step 2 select the schema (or schemas) to import.  The "Import to" field in the lower left part of the main panel allows you to select which existing Relational Model to import into (or to specify that a new Relational Model is to be created).
    In step 3 select the tables to import.  (Note that if there are an Foreign Key constraints between the new tables and any tables you had previously imported, you should also include the previous tables, otherwise the Foreign Key constraints will not be imported.)
    After the import itself has completed, the "Compare Models" dialog is displayed.  This shows the differences between the model being imported and the previous state of the model, and allows you to select which changes are to be applied.
    Just selecting the Merge button should apply all the additions and changes in the new import.
    Having updated your Relational Model, you can then update your Logical Model.  To do this you repeat the "Engineer to Logical Model".  This displays the "Engineer to Logical Model" dialog, which shows the changes which will be applied to the Logical Model, and allows you to select which changes are to be applied.
    Just selecting the Engineer button should apply all the additions and changes.
    I hope this helps you achieve what you want.
    David

  • Can I change a new battery for my MacBook Pro 15' Retina? How?

    Can I change a new battery for my MacBook Pro 15' Retina? How?

    Hi!
    About a month ago, my MBPr 15", mid 2012 (Model Identifier10,1) showed, at first, Battery Service warning and on the next day X over the battery icon with Battery Not Available message in the status. MBP would run only and while the charger was plugged in, plug led would be always green, when connected. Battery test third party sw would not detect the battery, any longer. 
    Replacing upper case with battery/keyboard/trackpad, as per Apple,  in my country was too expensive, over 1000 USD, did't make any sense to me, so I've chosen DIY option (https://www.youtube.com/watch?v=pLhHSIej9fs) with all necessary precautions like tools, ESD protection grounded pad in place and ordered "new" replacement battery from Hong Kong on Ebay (http://www.ebay.com/itm/400699766989?_trksid=p2057872.m2749.l2649&ssPageName=STR K%3AMEBIDX%3AIT).
    Yesterday I came in new packing/sealed, I installed it, plugged the power cable on, plug led would turn green and then orange, I thought it's ok, but once system booted, I saw again X over battery icon and "Battery Not Available". I checked all the hints on internet, tried several times SMC and EPRON resets, no success. I filed complaint to Ebay supplier, he replied that battery undergone test prior the shipment, but ready for return and refund.
    So, I can make another try and buy the battery from Ebay but what if the problem is with my logic board? From one hand charger plug led lights orange when connected to MBP, on another hand System doesn't see the battery at all: No battery in the System info/Hardware/Power. it works absolutely fine when plugged-in to charger. I ran extended AHT (over pressed "D" key while powering on) twice with No Problem in return. So, my question is does it ultimately mean that Logic Board and power circuits are all fine and the whole thing is about "new bad" battery? I there any way to entirely test Logic board and narrow down problem origin?
    Thank you for attention in advance,
    Nurlan

  • TS2446 Can i change my security questions if i forgot the answers ?

    can i change my security questions if i forgot the answers ?

    Call Apple Care for your country and the 1st tier agent should be able to assist you or transfer your call to the Account Security team.

  • HT5621 i can't change my apple id for Icloud on my Iphone

    I can't change my apple ID for Icloud on my Iphone

    Hello Ernst220,
    Thank you for the details of the issue you are experiencing when attempting to change your Apple ID.  I recommend the following articles for an issue like this:
    iCloud: "Incorrect Apple ID or Password" alert when setting up iCloud after upgrading to iOS 7
    http://support.apple.com/kb/TS5207
    iOS 7: If you're asked for the password to your previous Apple ID when signing out of iCloud
    http://support.apple.com/kb/TS5223
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

Maybe you are looking for

  • Loading versions 4.3 & 4.2SP2, error message: "not a valid Win32 app"

    Hello, I've been trying to install two versions of BDS, and both download fine, but upon clicking on the icon to install, I get the error message: "(name of app) is not a valid Win32 application".....does anyone know what the heck this means and how

  • Locate a message in XI Monitor

    Hi Folks, I have the following scenario in the XI:  SAP R/3(RFC Sender)-> XI -> WEB(SOAP RECEIVER). In this scenario, are directed some notes of service for the WEB.  When I access the monitor of messages of the XI, I visualize a series of messages. 

  • Data transfer across 2 different views in web dynpro ABAP

    hi all, can anyone please help me on how to transfer data across 2 different views in wd ABAP. i have made a view-1 and using another view-2 as a component which is displayed in the tab in view-1. i am required to fetch a value from the view-1's inpu

  • DES Decryption using a decrypt id

    I have a decrypt id from the vendor from whom i get the data encrypted in DES. So i wanna how i can use that decrypt id and decrypt the encrypted data. Hope someone has already worked on this and hoping for a quick reply.. Thanks, Ravi

  • HT1338 can I update OS X 10.5.8 to Mountain Lion?

    C Is it possible to update my 24" imac opperating system to the latest operating system? I'm running OS x 10.5.8. Can I upgrade to Mountain Lion?