


all news and tips for database administrators and BI Architects
אני מעוניין להזין את הרישיון שקניתי ל- Sql server ולשדרג את הגרסה מגרסת ניסיון, מה עליי לעשות?
תשובה:
הפתרון למקרה הינו די פשוט, כל מה שעליך לעשות הינו להריץ את קובץ ההתקנה של ה- Sql server, תחת קטגוריית ה- maintenance עליך לבחור בפונקציית : edition upgrade.
ב- wizard שיפתח לך יהיה עלייך להזין את מספר הרישיון שברשותך ולאחר מספר קליקים גרסת ה- sql server שבשרתך תהפוך להיות חוקית!
בהצלחה!
שלום רב,
אני שמח להזמינכם לשולחן עגול ללקוחות הפיננסיים בנושא מערכות קריטיות מבוססות SQL.
המפגש מנוהל ע"י תחום SQL Server בוראסיטי, בשיתוף עם רועי פסטרנק שיציג גם BIG DATA ואת מכונת ה-FAST TRACK .
המפגש מתקיים ב-7.11 משעה 09:00 ועד 13:30.
סיפור לקוח יוצג ע"י שרון הריס, CTO, שיציג case study אודות אסותא ויתייחס בין היתר לארגון קריטי מבוסס מיקרוסופט, יכולות המוניטור, גרסאות הפרימיום ואמינות המידע.
מוזמנים מנהלי תשתיות וראשי צוותי DBA.
https://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032496844&culture=he-IL
תכנית ה-MVP's מאגדת את מומחי המחשוב הפעילים ביותר אשר הוכיחו מעורבות ממשית בקהילה מיקרוסופט מעניקה את תואר ה- MVP תוך הכרה ותודה לאלו המסייעים במצוינות יתרה לקהילת המחשוב בקבוצות הדיון. התכנית מאגדת מספר לא מבוטל של MVP's ברחבי העולם.
בישראל, מדובר בצוות מקומי נבחר אשר מתמחים בטכנולוגיות פיתוח ותשתיות ברמה הגבוהה ביותר.
שלום לכולם,
בכל פעם שאנחנו נתקלים בבעיה, אנחנו שואלים את עצמנו את השאלה : איפה לעזאזל קובץ ה-ALERT...
מתחלים לחפש במקום הרגיל ומגלים שם alert_log בגירסאת XML.
אז כידוע לכם, אורקל שינו את מיקום הalert_log בגרסה 11G .
כדי להקל עלינו ה-DBA's הם יצרו את ה-ADRCI שהוא מעין CLI הנותן לנו את האפשרות בין היתר גם לקרא את ה-ALERT ללא צורך לחפש אותו בנבכי ה-ORACLE_HOME
למעשה כדי לפתוח אותו כל מה שאנחנו צריכים זה לדאוג שה-ORACLE_HOME וה-PATH יהיו מוגדרים בפרמטרי הסביבה של המשתמש של אורקל .
ואז אנחנו קוראים ל-ADRCI :
[oracle@rac1 ~]$ adrci
ADRCI: Release 11.2.0.1.0 - Production on Mon Jul 25 06:51:45 2011
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
ADR base = "/oracle/app/oracle"
adrci>
עכשיו אנחנו מוכנים להתחיל לעבוד עם הכלי.
במידה ונרצה לראות את ה-alert log כמו שאנחנו מכירים אותו פשוט נבקש מהכלי להראות את ה-alert
adrci> show alert
פקודה זו תתיתן לנו את ה-alert בפורמט הישן והטוב.
במידה ונרצה לעשות מעקב אחרי הלוג (מה שפעם היה: tail –f alert
אפשר לבקש:
adrci> SHOW ALERT –TAIL -F
adrci> SHOW ALERT –TAIL
adrci> SHOW ALERT –TAIL 100
או כל אופציה מוכרת אחרת.
אבל הכוח האמיתי נמצא בפקודות חדשות,
למשל במידה ונרצה לראות רק את הבעיות שמתועדות בקובץ הלוג:
adrci> SHOW INCIDENT ADR Home = /u01/app/oracle/product/11.1.0/db_1/log/diag/rdbms/orclbi/orclbi:*****************************************************************************INCIDENT_ID PROBLEM_KEY CREATE_TIME----------------- ------------------------- ---------------------------------3808 ORA 603 2007-06-18 21:35:49.322161 -07:003807 ORA 600 [4137] 2007-06-18 21:35:47.862114 -07:003805 ORA 600 [4136] 2007-06-18 21:35:25.012579 -07:003804 ORA 1578 2007-06-18 21:35:08.483156 -07:004 rows fetched
ואפילו יותר מזה
במידה ונקנפג בעזרת הכלי יותר מ-HOMEPATH אחד (למשל אחד ל-DB ונוסף ל-GRID\LISTENER )
ואז נריץ את הפקודה לעי"ל נקבל שילוב של התוצאות משני המקומות(גם ה-alert וגם הלוג של ה-listener למשל) כך שנוכל ישר לבצע חיתוך של הנתונים לפי זמן התקלה שאנחנו מחפשים.
יש עוד המון אפשרויות לקונפיגורציה ונתונים שאפשר לקבל מהכלי
והכל אפשר למצא ב:
http://download.oracle.com/docs/cd/B28359_01/server.111/b28319/adrci.htm#BGBCFHCG
תהנו !!
Veracity Group
Support Team
Tel: +972-3-6142199
Fax: +972-73-7997788
www.veracity-group.com
tip@veracity-group.com
שלום רב,
שאלה:
יש לי מערכת לחישוב שעות עבודה המבוססת כמובן בסיס נתונים מסוג sql server :) .
בחברה שלנו מוגדר כי יום ראשון בשבוע הינו חצי יום עבודה ולכן על מנת לחשב שעות נוספות ליום עבודה ספציפי זה , אני צריך לחשב כמה ימי ראשון יש לי בין שני תאריכים.
כיצד ניתן לחשב ב - sql server כמה ימי ראשון לדוגמא יש לי בין שני תאריכים?
תשובה:
על מנת לחשב כמה ימי ראשון, ובכלל כמה "שמות" ימים יש לי בין שני תאריכים אני אקרא בהתחלה לפונקציות dateadd ו- datename על מנת לקבל את מספר היום -
datename(weekday,dateadd(day,number,@date1).
לאחר מכן, אני אעזר בטבלת המערכת master..spt_values אשר מכילה כ- 2500 פרמטרים על מנת לפענח את שם היום.
הפתרון הינו:
declare @date1 datetime, @date2 datetime
select
@date1='2011-07-01', @date2='2011-07-11'
select
sum(case when datename(weekday,dateadd(day,number,@date1))='sunday' then 1 else 0 end)
as sundays,
sum(case when datename(weekday,dateadd(day,number,@date1))='Monday' then 1 else 0 end)
as Monday,
sum(case when datename(weekday,dateadd(day,number,@date1))='Tuesday' then 1 else 0 end)
as Tuesday,
sum(case when datename(weekday,dateadd(day,number,@date1))='Wednesday' then 1 else 0 end)
as Wednesday,
sum(case when datename(weekday,dateadd(day,number,@date1))='Thursday' then 1 else 0 end)
as Thursday,
sum(case when datename(weekday,dateadd(day,number,@date1))='Friday' then 1 else 0 end)
as Friday,
sum(case when datename(weekday,dateadd(day,number,@date1))='Saturday' then 1 else 0 end)
as Saturday
from master..spt_values
where type='p' and dateadd(day,number,@date1)<=@date2
כמובן שאפשר עוד לייעל את השליפה. ובמידה ויש לכם רעיונות נוספים לפתרון הבעיה אשמח לשמוע!!
בהצלחה!
שלום רב,
לידיעתכם היום יצאה לדרך תוכנית המטרו של SQL Server Denali. התוכנית מיועדת למי שכבר יודע שהוא רוצה להיות באוויר עם פתרון מבוסס Denali תוך שישה חודשים מההשקה.
מי שיתקבל לתוכנית יקבל הטבות שונות כגון גישה לביטים ושיחות ועידה עם קבוצת המוצר. יש עדיפות למי שעושה שימוש בחידושים הרבים ביותר מתוך Denali.
פרטים נוספים על התוכנית:
Blog: http://blogs.msdn.com/b/rdoherty/archive/2011/04/04/announcing-metro-early-adoption-program-for-sql-server-code-name-denali.aspx C9: http://channel9.msdn.com/Blogs/rdoherty/Announcing-Metro-Early-Adoption-Program-for-SQL-Server-Code-Name-Denali
בהצלחה!
http://blogs.microsoft.co.il/blogs/itaib/archive/2011/04/05/sql-server-denali.aspx
בגרסאות ה- sql server הקודמות ניטרנו את השרת ובסיסי הנתונים על-ידי היכולות הבאות :
1. שאילתות DMV.
2. מערכות וכלי ניטור צד שלישי.
3. System monitor של מערכת הפעלה.
4. וכדומה.
בגרסת SQL Server 2008 R2 ישנו פתרון חדש בשם: DTA - Data Tier Applications
להבדיל מגרסאות קודמות שבהן ניטרנו את כל ה- instance , היכולת החדשה מאפשרת לנו לבחור את ה- DB הבודד או כמה הקשורים לאפליקציה אותה אנו נרצה לנטר. יכולת זו מאפשרת לנו , מנהלי הבסיסי הנתונים והאפליקציות לנטר ברמת היישום והאפליקציה את המשאבים השונים ( CPU , MEM, IO )
DTA הינה פתרון המכיל את כל האובייקטים במסד הנתונים ונותן לנו מנהלי בסיסי הנתונים והאפליקציות אפשרות לנטר אותם ברמות שונות.
ה- DTA מספק יחידה אחת עבור עריכה, פריסה וניהול של האובייקטים.
ה- DTA מאפשר לנו אינטגרציה הדוקה יותר של התפתחות והתקדמות הנתונים עם הפיתוח של קוד היישום.
בטיפים הבאים אנו נמשיך לעדכן אודות היכולות החדשות בגרסת ה- Sql server החדשה.
בהצלחה!
Veracity Group
Support Team
http://blogs.microsoft.co.il/blogs/itaib/archive/2011/03/29/dac-data-tier-applications.aspx
כיצד אפשר בגרסת 2008 לבחור את מאפייני ה- Generate script?
תשובה:
אכן בגרסת 2008 כאשר בוחרים את אופציית ה- Generate Script ה- wizard כולל בתוכו רק את בחירת האובייקטים הנדרשים ללא יכולת בחירת המאפיינים.
בגרסת manganese studio 2008 R2 אנו מגדירים את מאפייני ה- Generate Script בחלון ה- option .
בהצלחה!!
http://blogs.microsoft.co.il/blogs/itaib/archive/2011/03/15/generate-script-sql-server-2008-r2.aspx
לינק להורדת הכלי: http://www.red-gate.com/products/sql-development/sql-search/
Most of the databases with which I am familiar – still reside on rotating plates (A.K.A disks). Disks, physical disks, hard drives or whatever else you might call them – have been out there for many years, and they are one of the few products that haven’t really developed in a technological sense. Moore’s Law never really applied to disks. Only CPU power. Too bad… because when it comes to the amount of calculation a CPU can execute in a single second – we are making a great leap every 18 months, but when it comes to the amount of IO/sec we can process even when using a high-quality storage device – the mechanics that work underneath are still stuck somewhere in the late 80s or early 90s.
Recently, there is another new buzz catching everyone’s attention. This one is around SSD drives. Solid State Drives. SSDs are really good when what you want to do is to read a lot of data. They are especially good (in comparison to physical rotating disks) when you want to read a lot of data in small chunks – what is also called “Random IO”. I’ve had an opportunity to work with databases that reside on SSD drives or what are also called Flash devices. I’ve worked with databases stored on Flash drives, Flash cache, Oracle Exadata, and many other solutions. They all have one property in common: when the disk operates faster, the CPU tends to work harder to process the huge stream of data.
Up until now, physical disks have been the main bottleneck to performance improvement in most of the systems with which I have worked. But when you substitute the IO sub-system with an alternative that is capable of executing so-and-so many IO operations per second, instead of the disk being the bottleneck, instead this role goes to the CPU. I’ve seen this in real life.
Here is an example: I was working on a system with 4 Quad CPUs and SAN storage that was capable of processing 10,000 IO/sec tops. • When my disk capacity was 100% utilized, my average CPU utilization was ~40% on average, and it peaked at 70%. • When I replaced the storage system with an SSD that was capable of processing 100,000 IO/sec (ie 10 times faster than my old storage), I noticed that my CPU consumption was still ~40% on average, but it peaked at 100%! • Another thing that I noticed was that even though the SSD capacity is 100,000 IO/sec, it never went beyond a speed of 20,000 IO/sec (meaning that it was only 20% utilized). Why was that? Because now I don’t have enough CPU power to process this fast data stream… Now we all know what happens when a machine reaches 100% CPU utilization… it crashes, times out, hangs… And if someone runs a report on this machine, if before it would have jammed only the storage device, now it jams the machine’s CPU…
Now tell me something – if you have to choose from between these two options, which one would you prefer?
• working with a jammed, over-utilized storage device?
• Working with a jammed, over-utilized CPU?
I would choose the second option. Because even when my hard drive on my laptop is working hard, most of the applications that reside in my memory and consume only CPU are still working fine. But when my CPU is 100% utilized – the laptop is completely stuck. No processing ability, not to process IO, nor to carry out CPU calculations.
People told me “SSD is going to solve our performance problems”. Well… – no. It sure will speed up some of the things that you are doing. But it is not going to solve the other problem from which you probably suffer – that of QoS and SLA. As long as there are computers, performance bottlenecks will remain. If you make one component work faster without changing anything else, the bottleneck will simply move to one of the other components.
The only way you can avoid the bottleneck and guarantee QoS in this case is by controlling the amount of resources each and every transaction takes… whether the resources are CPU or IO. It doesn’t matter if your problem is CPU or IO – MoreVRP will allow you to safeguard your QoS and SLA. Until today there doesn’t seem to be an overall solution to eliminate the bottleneck… but by using MoreVRP, you can make sure that it doesn’t affect your most critical transactions. No matter if you are working with SSDs or good old physical disks.
Something to think about the next time you consider buying a new storage device.
Cheers.
http://www.more-resource.com/blog/?p=74