Search
 
SCRIPT & CODE EXAMPLE
 

SQL

script to add datafile to tablespace

SELECT * FROM DBA_DATA_FILES WHERE TABLESPACE_NAME = 'my_tbs' ORDER BY FILE_NAME;

ALTER TABLESPACE my_tbs ADD DATAFILE '/path/to/my_file.dbf' 
	SIZE 100M AUTOEXTEND OFF;
-- Autoextend with max size:
ALTER TABLESPACE my_tbs ADD DATAFILE '/path/to/my_file.dbf' 
	SIZE 10G AUTOEXTEND ON NEXT 1G MAXSIZE 32000M;    
-- For TEMP tablespace:
ALTER TABLESPACE my_tbs ADD TEMPFILE '/path/to/my_file.dbf' 
	SIZE 100M AUTOEXTEND OFF;
Comment

PREVIOUS NEXT
Code Example
Sql :: oracle create datafile 
Sql :: sql delete multiple conditions 
Sql :: install mysql 8 linux 
Sql :: select all field names for a table mysql 
Sql :: combine two columns using sql query 
Sql :: add auto increment column mysql 
Sql :: get date from timestamp in mysql 
Sql :: sql server format datetime 
Sql :: get two decimal places in sql server 
Sql :: How to reset forgotten postgresql password 
Sql :: not operator in oracle 
Sql :: oracle sysdate 
Sql :: calculate age in sql 
Sql :: how to create table in sql 
Sql :: get row affected mysql 
Sql :: how to add unique key constraint in mysql 
Sql :: sql timestamp to date 
Sql :: sql query to search for a string in all columns 
Sql :: trim leading zeros in sql 
Sql :: pl sql ptint 
Sql :: copy data from one table column to another table column in sql 
Sql :: find duplicate keys in mysql 
Sql :: how to add where command in update comand with joins 
Sql :: duplicate table sql 
Sql :: update column data type postgres 
Sql :: MYSQL select last query 
Sql :: mac install mysql 
Sql :: postgres cast as decimal 
Sql :: rename database in sql 
Sql :: concatenate two strings in sql 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =