
It has been a long time,I wrote nothing in my Blog, really I m a lazy Bloger :D.
Today, I feel I want to do it ,but I have no precise idea about what I can write,let's make a choice:mmmm why not write about my new work task:yes I was recently assigned as the DBA of our work's beautiful Databases(hhhh) running with the strong RDBMS Oracle (Really, I m asking myself if Oracle was a man who will it be? :D),anyway like I spend too much time with Oracle since I became the DBA ,from more than 2 months ago, I would like to share with myself first (hhhh), through this blog, this new experience.
Two months ago I knew a little about ORACLE Administration. the first task I was asked to do as DBA was to install ORACLE 10gR2 in a SUN SOLARIS station, wawww :'( it has been a long time i didn't use any UNIX Commmad, but after some minutes i began to remember all what I needed :D : ls,cat,chmod,chown,grep,cd,date,... and all the family of UNIX commands :),installing Oracle was an amazing task for me :D.
The second task was harder than the first :D, like the purpose of the database, I installed, was to provide a Data warehouse which allows users to run their reports and Business Intelligence applications, I needed to make an appropriate replication between our two databases, I choose materialized views to make this,materialized views were very helpful.
But doing technical things isn't enough for a DBA, you must also help everyone who use the database to have the right access and use appropriately the database, so it took to me so many time to help them switch their TNS NAMES toward the new database and success to run their reports over this database .
After that it was necessary to get feedback from users about the database performance, apparently everyone was suffering from poor performance :D, it was a normal result because no tuning was doing yet to the database.
The first task of tuning was to create appropriate indexes over materialized views, this helped so much to improve performances but it was not enough because bottlenecks remained to occur so many times, a resizing of the redo log files and a tuning over the SGA had luckily get everything nice :).
To achieve these tasks , I used a lot of documents but essentially the book ORACLE 10g the Complete Reference, I think it's a very good book ;a must have of every DBA (hhh), I used also the official documentation from ORACLE and when I needed a seriously help I didn't hesitate to contact ORACLE support through metalink.
Finally,just for pleasure I want to publish one of my worksheets (hhh) and here it's:
desc mv_capabilities_table
select * from mv_capabilities_table
create materialized view MV_SALES_S4
build immediate
refresh fast
on DEMAND
as
select product,sum(quantity),count(quantity),count(*) from sales group by product
start with sysdate next sysdate + 1/1440
select * from sales
select count(*),count(quantity),sum(quantity)from sales group by product
drop materialized view log on sales
create materialized view log on sales
with ROWID,sequence(ID,product,region,quantity)
including new values;
So do you feel any pleasure after reading it (HaHaHa).
oh, I forgot,I need to confirm this article insertion to myblog so:
SQL>commit;




