Bazen hedef veritabanının ne zaman açıldığını,açıldığı zamanı, açık olup olmadığını kontrol etmemiz gerekebilir. Veri ambarları sisteminde ETL sürecinde verilerin çekiceleceği database'lerin durumunu bu şekilde kontrol edebiliriz. Aslında şu anda aklıma somut örnekler gelmiyor ama bir şekilde ikinci bir database'den veri çekiyor yada veri gönderiyor iseniz bu bilgiye ihtiyaç duyabilirsiniz.
Şu şekilde bir kullanım yaptım. Hedef database'de (SID) kendim için bir user oluşturuyorum, daha sonra bu user için v$instance erişim yetkisi veriyorum.
grant select on v$instance to scott;
ORA-02030: sadece sabit tablolardan/görünümlerden seçebilir
bu hatadann kurtulmak için yapmamız gereken çok basit oracle görünümün adında ufak bir değişiklik yapıyoruz.
grant select on v_$instance to scott;
Daha sonra SCOTT kullancısı ile bağlanıyorum ve instance durumuna bakıyorum.
SELECT STARTUP_TIME,INSTANCE_NAME FROM V$INSTANCE
Kendi database'imde bu buradaki zamanı yada statu'yü kontrol ederek kendi işlerimi yapıyorum.
v_$instance yetkisini geri almak için
revoke select on v_$instance from scott
Subscribe to:
Post Comments (Atom)
5 comments:
Good day, sun shines!
There have been times of hardship when I didn't know about opportunities of getting high yields on investments. I was a dump and downright pessimistic person.
I have never thought that there weren't any need in large starting capital.
Now, I'm happy and lucky , I started to get real income.
It's all about how to select a correct partner who uses your funds in a right way - that is incorporate it in real deals, and shares the income with me.
You may ask, if there are such firms? I have to answer the truth, YES, there are. Please get to know about one of them:
http://theinvestblog.com [url=http://theinvestblog.com]Online Investment Blog[/url]
Ben almanyadan sevgi, gercekten cok guzel bir blog, eger twitter veya facebook sayfasi varsa hemen
ekliycegim.
What i don't realize is actually how you're no longer actually a lot more smartly-likeԁ than you
mаy bе right now. You're very intelligent. You already know therefore significantly when it comes to this matter, produced me personally believe it from so many various angles. Its like men and women don't seem to be involved unless it's one thing to accomplish with Lady gaga! Your personal stuffs outstanding. Always maintain it up!
Also visit my homepage ... wedding photographer prices
Hey there would you mind letting me know which web host you're utilizing? I've
loaded your blog in 3 completely different web browsers and I must say this blog loads
a lot quicker then most. Can you recommend a good internet
hosting provider at a honest price? Cheers, I appreciate it!
Feel free to visit my website literati word finder
Do you have any video of that? I'd like to find out some
additional information.
Visit my website - garcinia cambogia extract reviews 2014 - ,
Post a Comment