Database Technology

Sharing DBA experience to all -- Oracle,MS SQL, DB2 , Netezza DBA,postgreSQL,AWS Redshift,MySQL,oracle SAP,Snowflake,MongoDB

Wednesday, November 13, 2013

script to do full restore on Netezza database

›
2013-08-02 12:55:09.428218 PDT Info: NZ-00022: --- program 'restoresvr' (4080) starting on host 'nsdwt03' ... --- 2013-08-0...

script to check standby sync status with primary oracle database?

›
SET PAGESIZE 124 COL DB_NAME FORMAT A8 COL HOSTNAME FORMAT A12 COL LOG_ARCHIVED FORMAT 999999 COL LOG_APPLIED FORMAT 999999 COL LOG_GA...

script to identify the corrupted block name in oracle database?

›
select segment_name,segment_type,owner from sys.dba_extents where file_id=180 and (133571) between block_id and block_id + blocks -1;

script to list fragmented tables on oracle database schema?

›
select owner,table_name,round((blocks*8192),2)/1024/1024 "size (MB)" , round((num_rows*avg_row_len/1024/1024),2) "actual_dat...

script to compile all invalid object on oracle database?

›
select 'alter view man.'||object_name||' compile;' from dba_objects where owner='man' and status='INVALID' ...

scrip to list top 10 hottest object in oracle database

›
col owner  format a20 trunc col object_name format a30 col touches  format 9,999,999 select * from (  select count(*)  , sum(tch) TOUCHES  ...

script to find who is using UNDO tablespace in oracle?

›
SELECT TO_CHAR(s.sid)||','||TO_CHAR(s.serial#) sid_serial,            NVL(s.username, 'None') orauser,            s.program...

script to find who is using temp tablespace in oracle?

›
SELECT b.tablespace,            ROUND(((b.blocks*p.value)/1024/1024),2)||'M' "SIZE",            a.sid||','||a.ser...

script to find lon running queries on oracle database?

›
select sid, message || '(' || time_remaining || ')' "Long Ops" from v$session_longops where time_remaining > 6...

important views in oracle database

›
Object related dba_tables, dba_views dba_packages dba_synonyms dba_functions dba_sequences dba_triggers roles related dba_roles ...
‹
›
Home
View web version

Eager to Learn about DB's & Share to others

alter-database.blogspot.com
I am a Database Lead Consultant within the oracle group of company and currently I am working for an Food company in India. I have total 14+ years of IT experience on Database, MSSQL, Oracle, DB2,PostgreSQ,IBM Netezza and aws Redshift Database Administration. I worked on most of the database falavours with AIX, HP-UX, SUSE Linux as well as Windows server platform. I am Oracle certified Professional 10g,11g and certified RAC expert,Oracle Cloud architect associate.(OCI) I have been involved in different Database implementation, upgrade and support projects. I am having extensive understanding of oracle and othe RDBS solutions, in-depth knowledge and vision of SAP software, ability to adopt innovative strategies to have the best possible solution. I am a key player in my current team. I can handle any Database project single handedly. I have worked with different customers across the globe including USA,UK,middle East, Denmark, Mexico, Canada Indonesia, India, china,Singapore and Japan.
View my complete profile
Powered by Blogger.