Now there is a table (MT) with at least million data every day, and we plan to build a partition table in the form of monthly partitions. When partitioning, "Let Oracle run faster 2" said p21:
SQL>alter system set db_create_file_dest='F:\oradata\orclyxkj\tbs_test_t_mt_2012';
SQL>create tablespace ts_mt_2012_1 datafile size 50M autoextend on;
The first sentence means to set a data file storage path for Oracle to automatically create a file under this p
Label: 1. Check the location of the table space on the physical disk, and pay attention to the login using SYSDBA's account. SELECT Tablespace_name,
file_id ,
file_name ,
round / (1024x768*0) total_space
from dba_data_files
ORDER by 2. The table space that needs to be expanded is Dw_stg_tbs, the current file allocation sequence number is DW_STG_TBS20.DBF, So in the next file to add the name starting from 21, we add 20 files at a time, the script is as follows. The initial allocatio
1. First query free space
select tablespace_name,file_id,block_id,bytes,blocks from dba_free_space;
2. Add Oracle tablespace
First, query the data file name, size, and path information. The statement is as follows:
select tablespace_name,file_id,bytes,file_name from dba_data_files;
3. The statement for modifying the file size is as follows:
Alter database datafile the path of the data file to be added, that is, the path 'resize 800 m;
4. Create an oracle tablespaceView code
Create tablespa
normal or immediate.RECOVER DATABASE--Database can now is opened normally.ALTER DATABASE OPEN;--Commands to add tempfiles to temporary tablespaces.--Online Tempfiles has complete space information.--Other tempfiles may require adjustment.ALTER tablespace TEMP ADD tempfile ' +data01/yndss/tempfile/temp.264.954170377 'SIZE 20480M Reuse autoextend on NEXT 655360 MAXSIZE 131071M;ALTER tablespace TEMP01 ADD tempfile ' +data01/yndss/tempfile/temp01.272.954
Oracle partition, index, test (1) ----- insert only this time. See how to insert Fast Preparation
SQL code -- data file alter system set db_create_file_dest = 'd: \ toby \ oracle \ data; -- tablespace create tablespace ts_sales_200901 datafile size 5 M autoextend on; create tablespace upload datafile size 5 M autoextend on; create tablespace ts_sales_200903 datafile size 5 M
1. Create tablespace test: Create a tablespace named test. The size of test is 8 m, the automatic growth step is 5 m, and the maximum space is 10 m.
Create tablespace test datafile '/home/APP/Oracle/oradata/Oracle8i/test01.dbf' size 8 m autoextend on next 5 m maxsize 10 m;
2. Create tablespace sales: Create a tablespace named sales. The sales size is 800 m, and the automatic growth step is 50 M. There is no maximum space limit.Create tablespace sales
After a long time to learn to create an Oracle tablespace, so share with you, after reading this article you certainly have a lot of gains, hope this article can teach you more things.1. Query the free space first
Select Tablespace_name,file_id,block_id,bytes,blocks from Dba_free_space;
2. Increase the Oracle table spaceFirst, query the data file name, size and path information, the following statement:
Select Tablespace_name,file_id,bytes,file_name from Dba_data_files;
=jdbc:oracle:thin: @xx. xx.xx:000:zzzz databaseuser=xxx Databasepassword=xxx 3.4 Steps: 1, you can parse: databaseconnectionurl=jdbc:oracle:thin:@: @xx. Xx.xx:000:zzzz is the data source, will: @ Xx.xx.xx/zzzz to the data source; Enter the username and password so you can connect to the database.SQL for Oracle Import. dmp Files: The first step:--Create table space and index files, adjust according to project configuration CREATE tablespace "DATA01" LOGGING datafile ' D:\ORADATA\DATA011.dbf ' SIZ
, round (sum (Bytes/(1024*1024 ))) free from dba_free_space group by tablespace_name) fwhere. tablespace_name = f. tablespace_nameand. tablespace_name = u. tablespace_name;
2. Create a tablespaceJava code
SQL> Create tablespace testspace
Datafile'D:/oracletest/test001.dbf'Size 10 m autoextend on next 5 m maxsize Unlimited
Extent management local;
SQL> Create tablespace testspace datafile 'd:/oracletest/test001.dbf 'size 10 m
After a long period of learning to create Oracle Tablespace, so share with you, after reading this article you certainly have a lot of harvest, hope this article can teach you more things.
1, first query the free space
Copy Code code as follows:
Select Tablespace_name,file_id,block_id,bytes,blocks from Dba_free_space;
2, increase the Oracle table space
First, query the data file name, size and path information, the following statement:
Copy Code code as follows:
.271.978829205+DGSYSTEM/kyeupdb/datafile/sysaux.272.978829265+DGSYSTEM/kyeupdb/datafile/undotbs1.273.978829323+DGSYSTEM/kyeupdb/datafile/users.275.978829391+DGSYSTEM/kyeupdb/datafile/ts_example.277.978855421+DGSYSTEM/kyeupdb/datafile/kye01.dbf6 rows selected.
Create a table space for a single data file
SQL> select tablespace_name from dba_tablespaces;TABLESPACE_NAME------------------------------SYSTEMSYSAUXUNDOTBS1TEMPUSERSTS_EXAMPLEKYE_TBS017 rows selected.SQL> create tablespace k
create a general tablespace and create a rollback segment on it. However, for users, system management is much better than their own management.
If you need to manage it yourself, see the instructions for rollback segment management.
When no rollback table space is specified for the system, the system uses a system rollback segment for transaction management.
//
2, Tablespace_name
Indicates the name of the tablespace.
//
3, DataFile DATEFILE_SPEC1
Indicates what spatial file the
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 tablespace to first query the data file name, size, and path information. The statement is as foll
$process;--View Background process:SELECT * from v$bgprocess WHERE paddr --View all the table spaces;Sql> Select Tablespace_name from Dba_data_files order by Tablespace_name;--View the name and size of the table space:Sql> Select T.tablespace_name, round (SUM (bytes/(1024*1024)), 0) ts_sizeFrom Dba_tablespaces T, dba_data_files d where t.tablespace_name = D.tablespace_nameGroup BY T.tablespace_name;--The syntax for creating a tablespace is:CREATE tablespace Tablespacenamedatafile ' filename ' [S
Dba_tablespaces T, dba_data_files d where t.tablespace_name = D.tablespace_nameGroup BY T.tablespace_name; --The syntax for creating table spaces is:CREATE tablespace Tablespacenamedatafile ' filename ' [SIZE integer [k| M]][Autoextend [off| On]];--Create a tablespace with multiple data files:sql> Create Tablespace SALESDataFile ' d:/sales/sales_data01.dbf ' size 10m autoextend on next 10m maxsize 100m,' d
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.