Daily Archives: August 5, 2009

Oracle: HOW TO ALTER THE SPFILE TO INCLUDE CONTROL FILES

alter system set control_files=’path.ctl’,'path.ctl’ scope=spfile; Original post blogged on b2evolution.

Posted in Uncategorized | Leave a comment

Oracle: HOW TO GET INFORMATION REGARDING TABLESPACE

desc dba_tablespaces or desc v$tablespace; Original post blogged on b2evolution.

Posted in Uncategorized | Leave a comment

Oracle: HOW TO GET TEMPFILE INFORMATION

desc dba_temp_files or desc v$tempfile; Original post blogged on b2evolution.

Posted in Uncategorized | Leave a comment

Oracle: HOW TO CHECK THE SPACE IN TABLESPACE

select tablespace_name,sum(bytes/1024/1024/1024) from dba_free_space group by tablespace_name Original post blogged on b2evolution.

Posted in Uncategorized | Leave a comment

Oracle: HOW TO RESIZE THE DATAFILE

alter database datafile ‘c:\—–.dbf’ resize 1024m; Original post blogged on b2evolution.

Posted in Uncategorized | Leave a comment

Oracle: HOW TO CREATE TEMPORARY TABLE SAPCE

create temporary tablesapce tempfile ‘c:\——.dbf’ size 200m; Original post blogged on b2evolution.

Posted in Uncategorized | Leave a comment

Oracle: HOW TO CREATE TABLESAPCE

create tablespace datafile ‘c:\—–.dbf’ size 200m; Original post blogged on b2evolution.

Posted in Uncategorized | Leave a comment

Oracle: TO CHECK THE USERS IN A PARTICULAR SCHEMA

select username,default_tablespace from dba_users; Original post blogged on b2evolution.

Posted in Uncategorized | Leave a comment

Oracle: How to ADD DATAFILE INTO A TABLE SPACE

alter tablespace add datafile ‘PATH’ size 200m; Original post blogged on b2evolution.

Posted in Uncategorized | Leave a comment

Oracle: How to Export / Import Database Schema

1. EXPORT: exp system@test owner=test123 file=d:\oracle\user.dmp log=d:\oracle\userdump.log rows=y statistics=none feedback=100 indexes=y consistent=y compress=n; (for individual tables=table1,table2,…..) 2. IMPORT: imp system@test fromuser=test123 touser=test123 file=d:\oracle\user.dmp log=d:\oracle\user11.log ignore=y rows=y indexes=y feedback=100; Original post blogged on b2evolution.

Posted in Uncategorized | Leave a comment