Oracle 조사 연구 상용 DML

--  oracle    ,     ,  
select INSTANCE_NAME,HOST_NAME,VERSION from v$instance;
--  oracle       ,  ,      
select * from v$version

--           ,  props$
select * from nls_database_parameters;
select userenv('language') from dual;
--        ,  v$parameter
select * from nls_instance_parameters
--     
select * from nls_session_parameters


--      
select name from v$database

--            
select tablespace_name from dba_tablespaces;
--            
select tablespace_name,owner,sum(bytes)/1024/1024 from dba_segments group by tablespace_name,owner;


--             
select tablespace_name,sum(bytes)/1024/1024 from dba_free_space group by tablespace_name; 
--         
select tablespace_name,sum(bytes)/1024/1024 from dba_data_files group by tablespace_name; 


--       ,           
select username,default_tablespace,temporary_tablespace from dba_users;
--          ,          
select username,default_tablespace,temporary_tablespace from dba_users where account_status='OPEN';


--           DDL  
SELECT DBMS_METADATA.GET_DDL('TABLE',u.table_name) FROM USER_TABLES u;

--                 
select * from user_part_key_columns;
--      ,   (  TEST  )
select table_name,owner from all_part_tables where owner='TEST';
--         ,    ,    ,         (      TEST2)
select table_owner,table_name,partition_name,tablespace_name from all_tab_partitions where table_name ='TEST2';


--              (   TEST    TEST2 )
select column_name,data_type from all_tab_cols where table_name='TEST2'and owner='TEST';



--      
select t.*,i.index_type from user_ind_columns t,user_indexes i where t.index_name = i.index_name and t.table_name='TEST';
--      
select cu.* from user_cons_columns cu, user_constraints au where cu.constraint_name = au.constraint_name and au.constraint_type = 'P' AND cu.table_name = 'TEST';


--      
select log_mode from v$database; 
--        supplemental logging  
select supplemental_log_data_min from v$database;
--       force logging   
select force_logging from v$database;


좋은 웹페이지 즐겨찾기