keyword must be added.
Do not use the atuoallocate parameter when creating local temporary tablespace management. The system creates the uniform management mode by default.
5. Delete Oracle tablespace
DROP TABLESPACE FESCO INCLUDING CONTENTS AND DATAFILES CASCADE CONSTRAINTS;
6. add data files to the
MySQL: Error: Tablespace for table 'database'. 'temp ''exists. Please DISCARD the tablespace before IMPORT. Solution: createtablespace
Today, when I operate mysql database tables on navicat, I suddenly fail to respond. Then restart the mysql service. Then start the service and check the table. If a table card is missing, add a new table. An error is reported:
Error: Tab
View two common SQL statements used by the tablespace and two SQL statements used by the tablespace
1. view the tablespace size:
SELECT tablespace_name, SUM (bytes)/1024/1024 total FROM DBA_FREE_SPACE group by tablespace_name order by 2 DESC;
SQL> SELECT tablespace_name, SUM (bytes)/1024/1024 | 'mb' total FROM DBA_FREE_SPACE GROUP BY tablespace_name ORDER BY 2
Select
T1.name,
T2.name
From
V $ tablespace T1,
V $ datafile T2
Where
T1.ts # = t2.ts #
Order ByT1.name
These two views store the tablespace information, and the other is the data file information. The tablespace must correspond to at least one data file on the disk.
Let's compare the descriptions of the two
allocation and recovery of temporary space, the temporary tablespace can only be automatically allocated in the create temporary tablespace test07tempfile 'f: \ app \ oraclezq \ oradata \ orcl \ TEST07.dbf 'size 20 M;
3. Create an undo table
-- Create an undo tablespace test08create undo tablespace test08datafile 'f:
View the relationship between the user and the default tablespace.Select username, default_tablespace from dba_users;
1. view the table structure: DESC table name
2. view the table of the current user:
SelectTable_nameFromUser_tables;
3. view the table names of all users:
SelectTable_nameFromAll_tables;
4. View All table names (including system tables)
SelectTable_nameFromAll_tables;
5. View All Tables:
Select*FromTab/dba_tables/dba_objects/CAT;
The following describes how to query
changed from read-only to read/write (corresponding to case 2 described above)
SQL> alter tablespace tbs1 read write;
3. demonstrate how to recover from a read/write tablespace to a read-only tablespace with only backup of the read/write tablespace (corresponding to case 3 described above)
SQL> SELECT FILE #,
/oradata/hd02ntlf/comment 'size 500 m autoextend on retention noguarantee; the default value is NOGUARANTEE-add the file alter tablespace undotbs1 add datafile '/u01/oracle/undo01.dbf' size 500 m autoextend on for the Undo tablespace; alter tablespace undotbs1 add datafile '+ DATA_MIDG' size 500 m autoextend on; query and change whether the undo
tablespace TS_IMAGEDATA
LOGGING
DATAFILE 'e: "ORACLE" ORADATA "data_01.dbf' SIZE 2000 M REUSE
AUTOEXTEND ON
NEXT 51200 k maxsize 3900 M,
'E: "ORACLE" ORADATA "XL" data_02.dbf' SIZE 2000 M REUSE
AUTOEXTEND ON
NEXT 51200 k maxsize 3900 M,
'E: "ORACLE" ORADATA "XL" data_03.dbf' SIZE 2000 M REUSE
AUTOEXTEND ON
NEXT 51200 k maxsize 3900 M,
'E: "ORACLE" ORADATA "XL" data_04.dbf' SIZE 2000 M REUSE
AUTOEXTEND ON
NEXT 51200 k maxsize 3900 M
EXTENT MANAGEMENT
original undo tablespace undotbs1, But I found my tragedy. The deletion error is returned:
SQL> DROP TABLESPACE UNDOTBS1 INCLUDING CONTENTS AND DATAFILES;Create undo tablespace UNDOTBS1 DATAFILE '/soft/oracle/oradata/sitjf/undotbs01.dbf' SIZE 1g autoextend off;Drop
. BASE 2
DEFAULT_TEMP_TABLESPACE TEMP1
DEFAULT_PERMANENT_TABLESPACE USERS4. Delete the original temp temporary tablespace. Delete a data file in a temporary tablespace:SQL> alter database tempfile '/u01/app/oracle/oradata/orcl/temp02.dbf' drop;Delete temporary tablespace (delete permanently ):SQL> drop
temporary tablespace temp02;
5. Check the default temporary tablespace of the current database.
SQL> select * from database_properties
Where property_name = 'default _ TEMP_TABLESPACE ';
6. before deleting the temp temporary tablespace, kill the SQL statement that runs in the temp temporary tablespace. Such SQL st
STANDBY_FILE_MANAGEMENT parameter is set to MANUAL or AUTO:
Drop the tablespace from the primary database:
1. delete a tablespace from the master databaseSQL> drop tablespace tbs_4; SQL> ALTER SYSTEM SWITCH LOGFILE;
Make sure that Redo Apply is running (so that the change
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.