Alibabacloud.com offers a wide variety of articles about oracle add datafile to tablespace, easily find your oracle add datafile to tablespace information here online.
The DBA needs to delete the data files that have been created, correct the errors, and recreate the database.
Creating using the Create undo tablespace clause
CREATE UNDO tablespace undotbs_02
DataFile '/u01/oracle/rbdb1/undo0201.dbf ' SIZE 2M reuse
Autoextend on;
2, Undo ta
Summary of Oracle's tablespaces, partitioned tables, and indexesKeywords: Oracle, table space, partition table, indexThe first time last week to do database testing encountered a lot of questions to summarize:Table Space:Oracle's UNDOTBS01.DBF file is too large to solve1. No automatic growth of undo TablespaceALTER DATABASE datafile ' FULL_PATH\UNDOTBS01.DBF ' autoextend off;2.--Create a new small space for
; alter tablespace app_data read only | write;
7. droping tablespaceSQL> drop tablespace app_data including contents;
8. enableing automatic extension of data filesSQL> alter tablespace app_data add datafile 'C: \ oracle \ ora
/oradata/auxi ')
(7) Copy the corresponding location of several data files and control files to the auxiliary library
cp/home/oracle/backup/system01.dbf/opt/oracle/oradata/auxi/
cp/home/oracle/backup/undotbs01.dbf/opt/oracle/oradata/auxi/
cp/home/oracle/backup/user01.dbf
tablespace app_data including contents;
8. enableing automatic extension of data filesSQL> alter tablespace app_data add datafile 'C:/Oracle/oradata/app_data01.dbf 'size 200 mSQL> autoextend on next 10 m maxsize 500 m;
9. Change the size fo data files manuallySQL> alter dat
2 tablespace
The maximum logical layer in Oracle disk management is the tablespace. The four tablespaces that must be created in Oracle11g are SYSTEM, SYSAUX, TEMP, and UNDOTBS1.
2 SYSTEM: stores data dictionaries, pl/SQL code, etc.
2 SYSAUX: stores data related to database options
2 TEMP: used for large sorting operations
2 UNDUTBS1: stores transaction informati
Create a tablespace in Oracle
1. Create a common tablespaceCreate tablespace oracle_tablespaceDatafile '/home/oracle/oradata/orcl/oracle_tablespace.dbf'Size 100 mAutoextend on next 10 M maxsize 200 MExtent management localUniform size 1 m;
2. Create an undo tablespaceCREATE undo ta
but also UNDO tablespaces to manage UNDO data. the planning and management of rollback segments are complex. All oracle databases have completely discarded 10 Gb of rollback segments. the UNDO tablespace is used to manage UNDO data.
1. view the system disk statusAIX:/> df-g (Linux: df-h)Filesystem GB blocks Free % Used Iused % Iused Mounted on/Dev/undolv 30.00 0.00 100% 9 1%/u01/app/u01/app/
. file_name from dba_data_files T;Select * from V $ datafile // Query the database data file and tablespace Information 18. Select T. Name, T. value from V $ parameter t where T. Name = 'db _ block_size'Show parameter db_block_size // Query the size of the data block db_block_size 19. Select T. tablespace_name, T. file_id, T. block_id, T. bytes, T. blocks from dba_free_space T; // Query the table space usag
Label:One is to add data files to the tablespace, and the following SQL statements are performed under the database administrator Sysman User:
create tablespace lzs datafile ' d:\ORACLE\PRODUCT\10.2.0\ oradata\orcl\lzs.dbf ' size 2048M;
Create
file.Use restore tablespace... to dump all data files in the tablespace.Run switch datafile to change the location and name of the data file in the control file.Use recover tablespace... to archive logs.Finally, use alter tablespace... online to bring the tablespace online.
Basic usage of creating, managing, and deleting ORACLE tablespace (code implementation), oracle table
1. Create a Permanent Table
-- Create a permanent tablespace TEST01 with a size of 50 MB. do not automatically expand the data file create tablespace TEST01loggingdatafile
Solution to the problem that oracle cannot log on to sqlplus after the tablespace file is deleted by mistake, oraclesqlplus
Background: Today I learned how to create a tablespace in the oracle database. So I rushed to create two tablespaces named/u01/test/my_01.dbf and/u01/test/my_02.dbf. Software: CentOS-6.7-x86_64,
) 5 . Create a temporary table space Before you create a user, you must first create a temporary tablespace and two tablespace for the database tablespace, otherwise the default tablespace is not good. Create temporary tablespace abc_temp tempfile '/home/
eucrmspace offline; Step 5: manually copy database files to the desired directory. Step 6: [before and after the operation, you can use SQL to query the changes in the database files used in the table space: select name from v $ datafile;] SQL> alter tablespace eucrmspace rename datafile 'C: \ oracle \ product \ 10.2.
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.