This article illustrates the way Oracle deletes users and tablespaces under Linux. Share to everyone for your reference, specific as follows:
1. Delete a user
sql> conn/as sysdba
Connected.
sql> drop user userName cascade;
User has deleted
If the user cannot delete, and error:
ERROR at line 1:Ora-01940:cannot drop a user is currently connected
By viewing the user's progress, kill the user
If the Restore directory is not used, the current control file does not contain the old prototype records of the restored tablespace. When the current control file containing the tablespace is used for recovery, it cannot be used in the table
If the Restore directory is not used, the current control file does not contain the old prototype records of the restored tablesp
Introduction to tspitr (tablespace point-in-time recovery)
Tspitr is used to restore one or more tablespaces to a previous time point, while other tablespaces remain in the existing state.(1) tspitr (tablespace point-in-time recovery), only applicable to archivelog mode.(2) tspitr implementation method. We recommend that you use RMAN to restore the tablespace at
Basic Introduction to Oracle tablespace and oracle table
I. tablespace Basics
Tablespace is a logical structure used in Oracle to manage database data storage. The tables and indexes of each application are stored as one segment, and these segments are stored in the data file as the tablespace component. A
--View the use/remaining space of temporary filesSql> select * from V$temp_space_header;--View the temporary tablespace to which the Scott user belongsSql> Select Username, temporary_tablespace from dba_userswhere username= ' SCOTT '; --See which temporary files are currently availableSql> Select tablespace_name,file_name,bytes/1024/1024 total_m from Dba_temp_files;--Re-establish a temporary table spacesql> Create temporary
Database: Oracle11.2.0.3
Ora14401 error occurred when deleting the tablespace where the partition table is located:
SYS @ vimop01_ B> drop tablespaceUSER_TS_MONI_11B including contents and datafiles;
Drop tablespace USER_TS_MONI_11B including contents anddatafiles
*
ERROR at line 1:
ORA-14404: partitioned table contain
How should we manage the DB2 tablespace? This is a problem that many people have mentioned. Before solving this problem, let's take a look at what DB2 tablespace is:
DB2 tablespace
All data in the database is stored in many tablespaces. It can be considered that the tablespace is a child, and the database is its parent
1. Glossary and Tablespace: Provides the logical structure of the space used by the database. The physical structure is a data file. A Tablespace can contain multiple
1. Glossary and Tablespace: Provides the logical structure of the space used by the database. The physical structure is a data file. A Tablespace can con
Temporary tablespace is a special structure in the Oracle architecture. Generally, the database user only needs to set the corresponding Temporary tablespace (to the user) and temporary segment allocation
Temporary tablespace is a special structure in the Oracle architecture. Generally, the database user only needs to set the corresponding Temporary
In Oracle, I like Oracle tablespace very much. In my work, I also like to summarize the experience and lessons on Oracle tablespace. Let's talk about this in detail. Oracle tablespace is the basic method for data management. All user objects must be stored in the tablespace, that is, the user has the right to use the s
Js implements the drag-and-drop function for controlling files and obtaining drag-and-drop content. js drag-and-drop
When you drag a file to an element in the browser, js can listen to drag-and-drop events and process the drag-and-drop results. This article discusses some is
dbms_metadata.get_ddl (' tablespace ',' Mlog_norm_space ') from dual;
--4 confirm enough disk space to add a data fileSQL code
Alter tablespace mlog_norm_space
add datafile '/oracle/oms/oradata/mlog/mlog_norm_data001.dbf '
size 10M autoextend on MaxSize 20G
--5 verifying data files that have been addedSQL code
Select file_name,file_id,tablespace_name from Dba_data_fil
Learning Objectives
1. Describe the logical structure of the Oracle database2. Create a tablespace3. Change the tablespace size4. Allocate space for temporary segments5. Change the tablespace status6. Change the storage settings of the tablespace.
First, let's take a look at the oracle storage structure:
1. What are the logical structures of oracle databases?
1)
In linux, when oracle deletes a tablespace, an error occurs. Due to insufficient tablespace capacity, the tablespace capacity needs to be increased. Therefore, a new tablespace is created in the original tablespace and added to the original
Remove tablespace
drop tablespace POSP including CONTENTS and datafiles;
/divided into four steps/
/* 1th step: Create temporary table space * *
temporary tablespace posp_temp
tempfile ' F:\oracle\oracle-data\posp_temp.dbf '
size 50m
autoextend on
next 50m maxsize 20480m
extent management local;
/* 2nd s
Six minutes to learn how to create an Oracle tablespace. After a long time to learn how to create an Oracle tablespace, I would like to share it with you. After reading this article, you will certainly have a lot of GAINS. I hope this article will teach you more. Www.2cto.com 1. First query the idle space select tablespace_name, file_id, block_id, bytes, blocks from dba_free_space; 2. Add an Oracle
Modify Tablespace (Modify automatic extensibility of data files)When you create a table space, you can set the automatic extensibility of the data file. When you add a new data file to a tablespace, you alsoYou can set the automatic extensibility of new data files. For existing data files in the created tablespace, you can use theThe ALTER DATABASE statement modi
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.