Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Database \ Oracle table space rename and delete table space     - Linux Change ssh port and disable remote root login at (Linux)

- An example of troubleshooting of embedded Linux OpenWRT (Linux)

- Install DB2 V10 and Data Studio V3 under Linux (Ubuntu) environment (Database)

- Netcat Example (Linux)

- Oracle archive log full cause abnormal slow database performance (Database)

- How to upgrade the kernel to 3.13.7 on Ubuntu / Linux Mint (Linux)

- Btrfs file system repair techniques (Linux)

- Java in several ways of using MongoDB (Programming)

- linux remote control software (Linux)

- Docker deployment practices in Ubuntu (Server)

- Java implementation file encryption and decryption (Programming)

- CentOS 6.4 OpenNebula installation (Linux)

- Java development environment to build under Ubuntu (Linux)

- Linux command line under HTTP traffic sniffing tool: httpry (Linux)

- Oracle Client + PL SQL Developer enables remote access to the Oracle database (Database)

- Use source packages compiled and installed GCC5.1 in Mac OS X 10.10.3 (Linux)

- Debian Stable (Jessie 8.1) of normal.mod not found (Linux)

- Linux Network Programming - raw socket Example: sending a UDP packet (Programming)

- How to disable IPv6 in the CentOS 7 (Linux)

- Introduction Linux namespace (Linux)

 
         
  Oracle table space rename and delete table space
     
  Add Date : 2018-11-21      
         
         
         
  In case of need, you can modify the name of the table space. Modify the name of the table space will not affect the data table space. But can not modify the system table space system and sysaux name.
Rename table space syntax is as follows:
alter tablespace tablespace_name rename to new_tablespace_name;
note:
If the table space state is offline, you can not rename the table space.
Delete table space
Delete table space need to use drop tablespace statement, its syntax is as follows:
drop tablespace tablespace_name [including contents [and datafiles]]
The syntax follows:
including contents
It means to delete the table space at the same time, delete all database objects in the table space. If you have a database table space objects, you must use this option.
and datafiles
Means to delete the table space at the same time, remove the table space corresponding to the data file. If this option is not applicable, then delete the table space is merely removed from the data dictionary and the control file information about the table space, but does not delete the operating system with the corresponding table space data file.

SQL> select tablespace_name, status from dba_tablespaces;

TABLESPACE_NAME STATUS
------------------------------ ---------
SYSTEM ONLINE
SYSAUX ONLINE
UNDOTBS1 ONLINE
TEMP ONLINE
USERS ONLINE
MYTEMP ONLINE
TEMPGROUP ONLINE
TEMPGROUP02 ONLINE
MYBIGSPACE ONLINE
BLOCKSPACE ONLINE
INSPUR ONLINE
TESTSPACE ONLINE
TEST ONLINE
Line 13 has been selected.

SQL> alter tablespace mytemp rename to userspace;

Table space has changed.

SQL> select tablespace_name, status from dba_tablespaces;

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

Line 13 has been selected.

SQL> drop tablespace userspace
  2 including contents and datafiles;
Table space has been deleted.
     
         
         
         
  More:      
 
- Nodejs complete installation instructions for Express (Linux)
- To install Xen in Ubuntu 12.04 (Linux)
- HBase cluster installation and deployment (Server)
- Fast Learning Clojure (Programming)
- Usage sed some of the parameters (Linux)
- Sublime Text 3 shortcuts summary (Linux)
- Sudo and Root Account in Ubuntu related (Linux)
- Source code compiled by the installation program under Linux (Linux)
- Java implementation file encryption and decryption (Programming)
- Install DB2 V10 and Data Studio V3 under Linux (Ubuntu) environment (Database)
- Live Wallpaper for Linux release adds dynamic background (Linux)
- Git uses a small mind (Linux)
- Ceph distributed storage system is installed on a CentOS 7.1 (Server)
- SecureCRT session buffer size settings (Linux)
- Java precision four operations (Programming)
- rsync + inotify to achieve real-time synchronization (Server)
- GoldenGate update is missing (Database)
- Python Flask environment to build (Linux)
- Use Docker containers (Linux)
- Linux processes in memory and memory cgroup statistics (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.