all news and tips for database administrators and BI Architects
יום רביעי, 31 ביולי 2019
יום שבת, 1 בדצמבר 2018
Move and manage your SQL Databases to Azure by Itai Binyamin
יום שני, 19 בנובמבר 2018
אני מגיע להתארח ב- Global Hebrew Virtual Group !
יום שני, 17 בנובמבר 2014
בסיס הנתונים שלך מתועד? או - למה זה טוב Extended Properties ?
יום שלישי, 22 באפריל 2014
אתם שרידים?
כמנהלי בסיסי הנתונים וה- BI בארגון אנו דואגים ביום יום לפיתוחים, שדרוגים, גרסאות חדשות וכמובן לימוד ושימוש ביכולות חדשות... אך עלינו תמיד לזכור להסתכל ולוודא גם נושאים אחרים שלאו דווקא קשורים ישירות למידע עצמו...
הפעם אני רוצה להסב את תשומת ליבכם לנושא אחר... שרידות !
יום ראשון, 9 בפברואר 2014
פרוייקט איחוד שרתים - האתגרים
כידוע פרוייקט איחוד שרתים בכלל ושרתי בסיסי נתונים sql server בפרט הינו פרוייקט אשר יכול לחסוך כסף רב לארגון שלנו.
להלן סיבות נפוצות לביצוע פרוייקט שכזה:
1. מעבר למבנה לוגי פשוט וריכוזי יותר לקלות הניהול
במאמר הבא אשר פורסם בבלוג של MORE VRP מתוארים 5 אתגרים אשר עומדים בפני מנהל ומבצעי פרוייקט שכזה:
http://www.morevrp.com/blog/2011/09/database-consolidation-%e2%80%93-top-5-things-you-must-consider/?utm_source=rss&utm_medium=rss&utm_campaign=database-consolidation-%25e2%2580%2593-top-5-things-you-must-consider
פורום בסיסי נתונים
רוצים להתייעץ עם DBA -ים בתחום?
רוצים להכיר את קהילת ה- DBA -ים בישראל?
אתם מוזמנים לפורום בסיסי נתונים באתר תפוז :
http://www.tapuz.co.il/forums2008/forumpage.aspx?forumid=193
יום רביעי, 1 בינואר 2014
Top 10 Tips for Optimizing SQL Server Performance
Read “Top Ten Tips for Optimizing SQL Server Performance”by SQL Server experts Patrick O'Keeffe and Richard Douglas, where they discuss 10 of the most important things you should know about SQL Server performance. Each item is a nugget of practical knowledge that you can immediately apply to your environment.With this valuable advice, you’ll be able to:
10. Facilitate comparisons of workload behavior with benchmarking.
9. Use performance counters to quickly get useful information about currently running operations.
8. Understand why changing server settings usually yields limited returns.
7. Identify performance bottlenecks quickly with DMVs.
6. Learn to use SQL Profiler and traces.
5. See why SANs are more than just I/O.
4. Prevent cursors and other bad T-SQL from returning to haunt applications.
3. Maximize plan reuse for better SQL Server caching.
2. Read the SQL Server buffer cache and how to minimize cache thrashing.
1. Master indexing by learning how indexes are used and how to counteract the characteristics of bad indexes.
https://software.dell.com/whitepaper/top-10-tips-for-optimizing-sql-server-performance821654/
יום חמישי, 11 ביולי 2013
מה יש לי?
בדוגמא הבאה ניתן להוריד פלטים של הכלי לאחר שהגדרתי לו לסרוק את הרשת ולחפש ולמפות שרתי Sql Server .
יום ראשון, 3 בפברואר 2013
SQL Server disaster-recovery
תוכנית DRP (ראשי תיבות של Disaster Recovery plan) הינה תוכנית "התאוששות מאסון" שצריכה להימצא בכל ארגון.
"אסון" לא חייב להיות משהו דרסטי כמו נפילת שרת database אלה גם יכול להיות להיות משהו שכיח יותר כמו מחיקת טבלה או רשומה בטבלה קריטית בטעות - תוכנית DRP צריכה לכלול התמודדות גם עם מקרים כאלה.
כידוע ישנם מספר פתרונות טכנולוגיים מובנים בחבילת SQL Server להעלאת השרידות השרת והמידע כגון: windowes cluster להעלאת שרידות מערכת ההפעלה והשרת עצמו, AlwaysOn גרסת SQL Server 2012 ועוד... וכמובן גיבויים קרים וחמים ברמת ה- SQL Server להעלאת זמינות המידע ומניעת איבוד המידע בזמן "אסון".
כמובן לשיטות הללו ישנם עוד פתרונות כגון: גיבויים ברמת מערך האחסון, הורדה לקלטות ועוד שיטות רבות ומגוונות.
הבעיה בכל השיטות והפתרונות הללו שלפעמים בזמן "אסון" אנחנו מנהלי בסיסי הנתונים לא יודעים על מה להסתמך וממה לגבות, האם לשחזר מהגיבוי הסטנדרטי? האם מקלטות וכו'... - וזה בעצם מטרת תוכנית ה- DRP - לעשות סדר במקרה של אסון ולחסוך בזמן ההשבתה.
בתוכנית אני מצפה שיהיה בין השאר טבלה עם פרטי הסיטואציה והפתרון.
לדוגמא: במקרה של מחיקת טבלה יש לשחזר גיבוי SQL Server עם גלגול גיבויים חמים בשם אחר ושחזור הטבלה שנמחקה או שימוש בכלי צד שלישי שיודעים לשחזר טבלה בודדת וכו'...
לאחרונה פורסם באתר http://www.sqlmag.com פוסטר מצויין בנושא: SQL Server Disaster Recovery Step by Step אשר יכול לעשות לנו סדר בזמן "אסון".
לשימושכם : http://www.sqlmag.com/whitepaper/sql-server/sql-server-disaster-recovery-step-step-145134
טיפ לסיום, למזלנו "אסונות" לא מתרחשים כל הזמן, ולכן אני ממליץ לכם על מנת לשמור על "כשירות מבצעית" מידי פעם לעשות ניסויי שחזור על מנת לבדוק שכל מערכות הגיבוי עובדות ותקינות.
שיהיה בהצלחה,
http://blogs.microsoft.co.il/blogs/itaib/archive/2013/02/03/sql-server-disaster-recovery.aspx
יום חמישי, 8 בנובמבר 2012
The Safest Way to Upgrade to SQL Server 2012
מתכננים לשדרג את פלטפורמת ה- SQL Server שלכם בקרוב?
רוצים להימנע מתקלות?
רוצים לדעת כיצד לתכנן את השדרוג כך שהוא יעבור בצורה מהירה ויעילה?
אני שמח להזמניכם להרצאה שלי במסגרת מפגשי ה- Israeli SQL Server User Group בנושא:
The Safest Way to Upgrade to SQL Server 2012
ההרצאה תתקיים ביום שני ה- 3 לדצמבר בשעה 17:30 בבית מייקרוסופט ברעננה.
לפרטים והרשמה:http://isug125.eventbrite.com/#
אשמח לראותכם.
יום חמישי, 29 בדצמבר 2011
SSRS - Graph With Dynamic Colurs



יום שלישי, 13 בספטמבר 2011
פרוייקט איחוד שרתים - האתגרים
כידוע פרוייקט איחוד שרתים בכלל ושרתי בסיסי נתונים sql server בפרט הינו פרוייקט אשר יכול לחסוך כסף רב לארגון שלנו.
להלן סיבות נפוצות לביצוע פרוייקט שכזה:
1. מעבר למבנה לוגי פשוט וריכוזי יותר לקלות הניהול
2. הקטנת כמות בסיסי הנתונים הקיימים - חלק נכבד מפרוייקט איחוד השרתים הינו שלב המיפוי, בשלב זה בדרך מוצאים בסיסי נתונים ישנים, כפולים אשר ניתן להסירם
3. מעבר לטכנולוגיה חדישה יותר ונתמכת
4. הורדת עלויות ניהול ותחזוקה של הסביבות
במאמר הבא אשר פורסם בבלוג של MORE VRP מתוארים 5 אתגרים אשר עומדים בפני מנהל ומבצעי פרוייקט שכזה:
http://www.morevrp.com/blog/2011/09/database-consolidation-%e2%80%93-top-5-things-you-must-consider/?utm_source=rss&utm_medium=rss&utm_campaign=database-consolidation-%25e2%2580%2593-top-5-things-you-must-consider
בהצלחה.
יום שני, 1 באוגוסט 2011
VeraciTip - Oracle - new features for oracle 11g alert log
שלום לכולם,
בכל פעם שאנחנו נתקלים בבעיה, אנחנו שואלים את עצמנו את השאלה : איפה לעזאזל קובץ ה-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
יום שלישי, 15 במרץ 2011
Generate Script ב- SQL Server 2008 R2
בגרסת ה- manganese studio 2005 באופציית ה- generate script היתה לנו את היכולת להחליט את המאפיינים של יצירת הסקריפט (לדוגמא: האם להוסיף בדיקת הימצאות האובייקט לפני היצירה?, האם לייצר סקירפט לייצר אינדקסים וכו'...) . ובגרסת management studio 2008 בחירת מאפיינים אלו נעלמה...

כיצד אפשר בגרסת 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
יום שישי, 18 בפברואר 2011
SQL Search
כידוע לכם ישנם מאות מוצרים משלימים ותומכים ל- sql server ולשאר פלטפורות ה- DB בכלל רובם כמובן עולים כסף...ולפעמים הרבה כסף..
לכן, הפעם ברצוני לסקור בפניכם כלי חינמי מצויין שאני אישית ולקוחותיי נעזרים בו רבות - SQL Search של חברת Red-Gate .
דרך אגב, לחברת redgate יש בין היתר עוד מוצר מצויין ולא יקר בשם : HyperBac.
לכלי הזה יתרונות רבים וסיקרתי אותו בעבר בבלוג:
http://itaibinyamin.blogspot.com/2009/08/hyperbac-db-hyperbac-online.html
ה-SQL Search הינו בעצם תוסף ל- SQL Server Management Studio אשר בעזרתו ניתן לחפש במהירות על-פי שם האובייקט (קטעי קוד, טבלאות , וכו'...) ולפי מילות מפתח שבתוך קטעי הקוד בבסיסי הנתונים השונים.
עוד יכולת מצויינת של הכלי הינו שכאשר לוחצים לחיצה כפולה על התוצאה המבוקשת - הכלי מביא אותנו ישירות לקטע הקוד המבוקש , ובכך בעצם אנו חוסכים זמן יקר בחיפוש ופתיחת הקובץ.


לינק להורדת הכלי: http://www.red-gate.com/products/sql-development/sql-search/
יום שני, 27 בדצמבר 2010
MoreVRP Keeps your SQL Server DB in Shape without Cramping your Business Users
We all know that the secret to staying healthy and fit depends on regular, routine exercise and good maintenance habits. The same is true for our database. But how can we ensure that our routine database workouts not interfere with or delay our business?
Throughout the work week different end-users interact with the database to conduct their urgent business activities. They insert new data and run numerous varied complex transactions using a variety of applications that combine and integrate data from different sources. Sales teams enter new customer and pricing data; engineering teams change product attributes and configurations. Logistics clerks repeatedly update the database with RFID devices that transmit loads of status information from the warehouse. Consuming this varied and heavy diet while running back and forth and at the same time concentrating on difficult calculations would give anyone indigestion, especially our MS SQL Server database, with its very sensitive stomach, special dietary requirements and lean frame….
So each week we invite our SQL Server database to the fitness center for a long workout. The DBA carefully goes through the checklist, executing index and stats maintenance procedures, checking for index fragmentation or duplication that are likely to tire the database and slow it down.
Usually the DBA carries out the weekly maintenance routine on the weekend when fewer end-users need the database active. Nevertheless, we all recall the times that the database hasn’t finished its maintenance workout on-time, causing many anxious end-users to congregate around the coffee machines on Monday morning waiting for the tired database to let them get their new work week started.
What can you do to empower your database to better mobilize its resources in order to carry out all the urgent business tasks you need to do in parallel to its time-consuming yet vital maintenance routines? More IT offers you the unique wonder drug that will revitalize your database – MoreVRP! Only MoreVRP, sometimes referred to as “APM on Steroids”, can get inside the database to reallocate its resources and prevent the loads that cause database indigestion, letting it concurrently execute end-user transactions while more slowly doing its maintenance routines without interrupting your business.
There are many vendors that offer a wealth of health check monitors that will measure how tired your database is, as well as sophisticated exercise machines that let your DBAs assign more and more routine exercises and training to keep your database fit.
Only MoreVRP gives your SQL Server db the resource management “muscle” you need to keep your business going strong! For more details, check out our solution on



