Oracle, Web, Script, SQLserver, Tips & Trick

July 1, 2011

how to know oradata location / directory from cmd

Filed under: oracle,oracle:10g — sikathabis @ 11:31 pm
Tags: ,
How to know oracle data directory from cmd

select * from v$controlfile;

select * from v$tablespace;

select * from v$database;

select * from dba_tablespaces;

select distinct SEGMENT_TYPE from dba_segments;

select distinct CONTENTS from dba_tablespaces;

set pagesize 0 
set serveroutput off
spool _datadir_.txt 
select substr(file_name,1,instr(FILE_NAME,(select upper(VALUE)
from V$PARAMETER
where upper(name)='DB_UNIQUE_NAME'))-1)||(select upper(VALUE)
from V$PARAMETER
where upper(name)='DB_UNIQUE_NAME')||'\' LOKASI 
from dba_data_files where rownum=1;
spool off 
EXIT; 
select * from dba_data_files where rownum=1 and instr(file_name,'UNDO')>0;

select upper(VALUE)
from V$PARAMETER
where upper(name)='DB_UNIQUE_NAME'

select * from dba_data_files;

select * from dba_temp_files;

select NAME,VALUE from v$parameter where NAME ='control_files';

select * from v$CONTROLFILE_RECORD_SECTION

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

Teknologi Pendidikan

Just another WordPress.com weblog

KATAKAMI

Jurnalisme Yang Dapat Dipercaya

Tonk Kosonk Baonk Bunyinya

Penampungan Serapah Tanpa Sumpah

Qey050489's Blog

Ayo Bangkit sobat..!!!!!

B. S. Totoraharjo

Orang Bodoh Yang Tak Kunjung Pandai

culturekitchen foodlab

New Food and Art in Yogyakarta

Wahyu Catur Wibowo

Musafir Dunia Maya

SQL.... Still Learning

My Reference on SQL Server

neinframe

Street Photography is like a box of a chocolates, you're never know what you're gonna get - Thomas Leuthard -

Keluarga Andrivito

-- Andrivito's Journal --

DRK™

This site is about Latest NEWS, Articles, Videos, Books, Course, Presentations, Tips & Tricks related to I.T Pro's

Gaurav Saxena

|| तत् त्वम् असि ||

Be a good Moeslim

Menuju Pribadi Muslim Sejati yang Bertaqwa

TuanSUFI

Manajemen Sholat, renungan spiritual, Teknologi Informasi

Pelangi di khatulistiwa....

Mari berbagi kebaikan, pengalaman dan senyum denganku

angkasa13

Ceritanya saya, Pikirannya saya, Hatinya saya

sikathabis

sikathabis semua informasi disini

%d bloggers like this: