ORA-12054 while trying to create materialized view with sysdate
ORA-12054: cannot set the ON COMMIT refresh attribute for the materialized view.
Regarding to Oracle Documentation there is some restriction should be considered while trying to create materialized view Check Here or here.
But there is always workaround,
1- i create dummy table contain 1 row with 1 column only contains sysdate.
2- create Job that this sysdata on daily basis.
3- call this column in where condition of materialized view.
Problem solved.
Thanks
Osama
2015 Brief, The last Post of the year
2015 is almost done and the doors will be closed soon, and start the new year 2016 within 5 days only, I would like to thank everyone here , Family , Friends and my blog readers who keep me motivated always to write new articles when i can, and special thanks to my mother.
i learnt a lot of things this years, sadness moment gives me experience and the happiness teach me and show me who is my real friends, i met new people around the worlds make new friends, discuss different topics with people, one of the biggest achievement for me this year to be Oracle ACE Director a dream come true, when i remember this moment i also remember my friends who nominate me because without them it will not be possible Gurcan Orhan, Heli Helskyaho, Jeff Smith , Tim Hall, kamran agayev, Iloon Ellen-Wolff, Kai Yu, and Tariq Farooq , and i would like to take this opportunity to thanks Oracle ACE program who make it real for me and for the biggest effort they provide it to us.
So let me summarize the 2015 :-
- The first Oracle ACE Director in the Middle-east.
- Director and CEO for Jordan Amman Oracle User Group.
- Speaker in JAOUG.
- Speaker in OTN MENA Tour.
- Speaker in Bulgarian Group – Summer.
- Speaker in Bulgarian Group – Winter.
- Speaker in Oracle Open World 2015.
- Organizing the first event Of JAOUG.
- Working on my 2nd book.
- Wrote more than 10 articles for different International magazine.
- attend my 2nd Oracle open world as speaker and first time as Oracle ACE Director.
- Speaker in the last conference of the year in UK.
- Implement one of the biggest oracle engineer system project : Exalytics, Exalogic and Exadata.
Import hangs On index level.
so this what i did to make the import faster ( which i completed it as well ) :-
- Change database to no archive mode.
- increase sga_target temporary.
- use parallel command depend on cpu core.
- Use commit=N with import parameters.
- you can exclude indexes by exclude=indexes but i don’t prefer this at all.
- increase db_cache_size.
BGOUG Autumn Conference – Extraordinary trip
since there is no direct flight to Bulgaria then i should landed in Frankfurt first then to Sofia as most of you know i don’t like early flight despite i am waking all the night working or replying some emails but it’s something i don’t like to do 🙂 anyway my flight was at 3:00 am from Jordan i did boarding thing and visa & security Check after 6 hours i landed in Germany,drink coffee in the airport and ran to my next flight Sofia.
When i landed in Sofia it was 1:30 pm exactly, so like any other airport i should pass by immigration officer & this is what happened :-
Me :- Hi, Good afternoon.
officer : Hi, your passport please.
Me ; Sure.
Officer “Scan the visa” and the System start rining.
Me: is there something wrong.
Officer: mmmm come with me please.
Me “in my mind” did i do anything bad before i came here.
Officer : Your visa valid from tomorrow.
Me: Kidding right ? So what ?
Officer : you have to wait till 12:00 am then you access to Sofia.
Me : it’s almost 12 hours man.
Officer : it’s Ok you can go upstairs and have some drink and food if you want.
Me : Sure, i am gonna have more than this.
So i wait in the airport and during this i sent an email to Milena to inform her that i will not be available till 12:00 am and told her what is happened to me.
I would like to thanks all of them actually Milena, Heli and Gurcan these guys was checking on me :).
Wait my story not end here, When i went out of security check now i have to start search of my luggage which i found it in Lost & found Department for more information about this part contact me 🙂
anyway the conference was really good i had two presentation about middleware with live demo, i don’t know why the live demo before the presentation working fine but during the presentation it stop working for stupid reasons but live demo is always challenge
everything was well organized and conference was really amazing.
Safe Trip my friends 🙂 and meet you soon Inchallah.
Cheers
Osama
Weblogic 12cR2 installation On Linux 6.7
This document will show you how to install weblogic 12cR2 on linux 6.7
The link for the document here
Cheers
osama
Oracle Open World 2015 review
anyway we landed after 13 hours of flying and we met the great Tim Hall the great oracle guy i am sure this man is helping a lot of DBA with his amazing blog. so we took the shuttle “tim, Gurcan, Arup,cary , simon and me”.
Oracle Open World 2015 –> 12c is calling
the session called : More Than Another 12 on Oracle Database 12c [UGF3190]
and 12 of the best Oracle ACE director will present and speak about oracle 12c if you will be there come and join us let’s talk 🙂
The Speakers :-
Jonathan Lewis Less well-known enhancements of the 12c Optimizer
Julian Dontcheff Oracle Database 12c In-Memory Advisor
Gurcan Orhan Adapting DB 12C In-Memory to ODI 12c
Osama Mustafa How to plugin a non-CDB database to a Container Database (CDB)
Bjoern Rost How ASM has reached maturity in 12c
Alex Nuijten Security Enhancements in PL/SQL or “JSON in the database”
Brendan Tierney Running R in the Database using Oracle R Enterprise
Douwe Pieter van den Bos Maximum security architecture
Christian Antognini Real-time Monitoring of Composite Database Operations
Martin Widlake 12C – Clustered Data aware TABLE_CACHED_BLOCKS
Heli Helskyaho Design your 12c Databases using Oracle SQL Dev Data Modeler
Oded Raz Oracle 12c Privileges Analysis
Error : Cannot export Display Linux
But sometimes you are using this application and try to run the GUI on your desktop or laptop it’s working like you excepted, one simple solution to solve it.
I am using as ssh client Putty, before put the server ip from putty left panel
- Connection > SSH > X11
- Check X11 forwarding: [x] Enable X11 forwarding
- Add to the “X display location” field: localhost:0.0
ORA-01502 index or partition of such index is in unusable state
sqlplus /as sysdba
select owner,index_name,table_name,status from dba_indexes where index_name=’index_name’;
OWNER INDEX_NAME TABLE_NAME STATUS
—– ———- ———- ——
owner index_name table_name INVALIDalter index ndex_name rebuild;
Try again
Cheers
Osama






