Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Database \ Create and modify Oracle temporary table space     - iptables using summary (Linux)

- Use Nginx as a load balancer (Server)

- PostgreSQL transaction model introduction (Database)

- PHP interview questions of design patterns (Programming)

- Ubuntu 14.04 set auto sleep time (Linux)

- shell script: LVS start simple script (Server)

- Cross server / client backup command: rsync use (Server)

- MySQL import large amounts of data (Database)

- Fedora 20, Fedora 19, CentOS 6 and RHEL6 users how to install Wine 1.7.15 (Linux)

- Use Spring cache and ehcache (Programming)

- To achieve a two-way static NAT stateless available modules on Linux (Linux)

- On the design of Oracle database backup (Database)

- Ubuntu Learning Advanced article - to teach you to further enhance system security (Linux)

- How to update the Linux kernel to improve system performance (Linux)

- redis configuration in detail (English) (Database)

- Sleuth Kit: used to analyze a disk image and restore files open source forensics tools (Linux)

- Compare several ways to transfer files between Linux hosts (Linux)

- CentOS x86 64bit upgrade to 2.7 Python2.6 (Linux)

- Top command: the Task Manager under linux (Linux)

- How to create a secure and easy to remember password (Linux)

 
         
  Create and modify Oracle temporary table space
     
  Add Date : 2018-11-21      
         
         
         
  Table space is a temporary disk space used primarily to store a user execute order by interim statements lamp sort data generated or aggregated. By default, all users are using temp as the default temporary table space. But allows the use of other temporary tablespace as the default temporary table space, which needs to be specified when creating the user.

Create a temporary table space is required to use temprary keyword and the corresponding temporary table space is a temporary file, specified by the tempfile keyword, that is, the temporary table space is no longer used in the data file, but with temporary files.

As follows:
SQL> create temporary tablespace mytemp tempfile 'f: \ Oracledata \ mytemp.dbf' size 5m autoextend on next 2m maxsize 20m;

Table space has been created.
At this point in the directory f oracledata disk files can be found mytemp.dbf
SQL> select tablespace_name, status from dba_tablespaces;

TABLESPACE_NAME STATUS
------------------------------ ---------
SYSTEM ONLINE
SYSAUX ONLINE
UNDOTBS1 ONLINE
TEMP ONLINE
USERS ONLINE
TEMPGROUP ONLINE
TEMPGROUP02 ONLINE
MYBIGSPACE ONLINE
BLOCKSPACE ONLINE
INSPUR ONLINE
TESTSPACE ONLINE
TEST ONLINE

MYTEMP ONLINE

Line 12 has been selected.

In this case we can find MYTEMP table space table space.

Modify the temporary table space
After you create a temporary table space, you can modify the table space. Since the temporary file does not store temporary data during operation permanent data storage sorting knowledge generated, and create after the operation, the data stored in the temporary files deleted by the user in the system, so under normal circumstances do not need to adjust the temporary table space. But when multiple users, especially the art of war, and the operation is more complicated, may be insufficient temporary table space occur. In this case, the administrator can add temporary data files to increase the temporary table space.
If you need to increase or decrease the temporary file, you can use the add tempfile clause.
If you need to modify the size of the temporary file, you can use the resize keyword.
You can also change the temporary status of offline or online.

SQL> select file #, status, name from v $ tempfile;


    FILE # STATUS NAME
-------------------------------------------------- ---------------------------------------------
        1 ONLINE D: \ ORACLE \ ORADATA \ ORACLE12C \ TEMP01.DBF
        2 ONLINE D: \ ORACLE \ ORADATA \ ORACLE12C \ PDBSEED \ PDBSEED_TEMP012015-01-03_05-20-33-PM.DBF
        3 ONLINE D: \ ORACLE \ ORADATA \ ORACLE12C \ PDBORCL \ PDBORCL_TEMP012015-01-03_05-44-35-PM.DBF
        4 ONLINE F: \ ORACLEDATA \ MYTEMP.DBF
        6 ONLINE F: \ ORACLEDATA \ TEMPGROUP01.DBF
        7 ONLINE F: \ ORACLEDATA \ TEMPGROUP02.DBF


Selected 6 rows.

SQL> alter tablespace mytemp add tempfile 'f: \ oracledata \ mytemp2.dbf' size 10m;

Table space has changed.

SQL> select file #, status, name from v $ tempfile;


    FILE # STATUS NAME
-------------------------------------------------- --------------------------------------------
        1 ONLINE D: \ ORACLE \ ORADATA \ ORACLE12C \ TEMP01.DBF
        2 ONLINE D: \ ORACLE \ ORADATA \ ORACLE12C \ PDBSEED \ PDBSEED_TEMP012015-01-03_05-20-33-PM.DBF
        3 ONLINE D: \ ORACLE \ ORADATA \ ORACLE12C \ PDBORCL \ PDBORCL_TEMP012015-01-03_05-44-35-PM.DBF
        4 ONLINE F: \ ORACLEDATA \ MYTEMP.DBF
        5 ONLINE F: \ ORACLEDATA \ MYTEMP2.DBF
        6 ONLINE F: \ ORACLEDATA \ TEMPGROUP01.DBF
        7 ONLINE F: \ ORACLEDATA \ TEMPGROUP02.DBF

As indicated above, f disk oracledata folder created under a file mytemp2.dbf
     
         
         
         
  More:      
 
- Oracle Enterprise Linux 64-bit install apache-tomcat-7.0.53 step (Server)
- Java transient keyword (Programming)
- Use GNU / Linux broadcasting of television programs (Linux)
- Linux file and directory permissions settings (Linux)
- CentOS 6.5 start ActiveMQ being given to solve (Server)
- VirtualBox CentOS is configured as a local disk mirroring software source (Linux)
- Laravel 4 Expansion Pack (Server)
- OpenSUSE / Linux network configuration (Linux)
- File sharing and fork function (Programming)
- Oracle DataGuard principles and basic configuration (Database)
- Repair after installing Ubuntu no boot device error (Linux)
- Advanced Search Oracle study notes (Database)
- Inherent limitations of Linux systems network security (Linux)
- Why do I prefer Git (Linux)
- Btrfs file system repair techniques (Linux)
- Xshell key authentication mechanism using a remote login Linux (Linux)
- Get and Post requests Comments (Linux)
- Hadoop + Zookeeper NameNode achieve high availability (Server)
- Linux daemon (Linux)
- How to install Git client in Ubuntu (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.