Sunday, June 5, 2011

what other tools exists to capture database level data

Both SQL Server and Windows offer a lot of data to help troubleshoot and monitor overall usage and performance for your SQL Server databases. Within SQL Server there are several DBCC commands as well as a lot newly exposed data from the Dynamic Management Views in SQL Server 2005.

One way of monitoring your individual database usage is to view the data from the dbo.sysprocesses table or sys.sysprocesses in SQL 2005. This data is also exposed by either using the GUI tools or by running sp_who2. From this you can tell who is currently connected to each database and the activity that is occurring, but it is not very easy to create a baseline or a trend from this data. Another approach is to run a server side trace or use Profiler to capture the data. This may be helpful, but this may give you too much information as well as still having the need to extract the data to figure out what is going on within each database. So what other tools exists to capture database level data?

Solution
Most DBAs and developers probably use Profiler, trace, review query plans, run sp_who2, run DBCCs, etc... to capture data to figure out what is currently running on the database server. These tools are great, but don't give you the entire picture in an easy to use way.

Another tool that all DBAs and developers should use is Performance Monitor. This OS level tool provides great insight into Windows counters, but also into specific SQL Server counters. There are hundreds of counters that are exposed within this tool and there are several that are specific to SQL Server.

To launch Performance Monitor, click Start, Run... and type in "perfmon" and the following should open. This application can also be found under the Administrative Tools.

To add a counter, click on the + icon or use Ctrl + I and the following will open.
Most of the counters are server specific and do not give you insight into each individual database, but the following list of counters are at the database level, so this means you can collect this data for each database that is on the server as well as an overall count for all databases.
READ MORE - what other tools exists to capture database level data

To setup dual monitors in Ubuntu

 
To setup dual monitors in Ubuntu, we need to modify the file called xorg.conf inside of /etc/X11

1. After finished installing Ubuntu, go to your Terminal Window in Applications-Accessories-Terminal, then type the following:

sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf-old


This is to backup the original setting in case we need to reset the display.

2. Edit the xorg.conf by typing the following in the Terminal:

sudo gedit /etc/X11/xorg.conf

Make sure “glx” is under module section, if not replaced “nv” with “glx”

3. Edit Screen setting by insert these codes under the Screen

Option “RenderAccel” “true”

Option “TwinView”


Option “MetaModes” “1280×1024 1280×1024″ <—YOUR ACTUAL LCD’S RESOLUTIONS

Option “TwinViewOrientation” “RightOf”

You can use “LeftOf” or “BelowOf” if you’d like to

Save xorg.conf, and close it.

Now logout of your section. When you log back in, you should have your twinview working.

Troublshooting: If you cannot access login screen after restart/logout, enter username/password at command line, then type the following to restore your display:

sudo cp /etc/X11/xorg.conf-old /etc/X11/xorg.conf

Restart your system, your login screen should be back.
READ MORE - To setup dual monitors in Ubuntu

Oracle database consists of a collection

An Oracle database consists of a collection of data managed by an Oracle database management system. You can download Oracle Database XE server for Debian, Mandriva, Novell, Red Hat and Ubuntu Linux distributions. First you need to get databases up and running in order to use Oracle. The Oracle database has had a reputation among new Linux users as difficult to install on Linux systems. Now Oracle Corporation has packaged recent versions for several popular Linux distributions in an attempt to minimize installation challenges beyond the level of technical expertise required to install a database server.

Make sure you have enough disk space and memory

If you have less than 1GB memory run the following commands to create swap space:
$ sudo dd if=/dev/zero of=/swpfs1 bs=1M count=1000
$ sudo mkswap /swpfs1
$ sudo swapon /swpfs1
Debian / Ubuntu Oracle installation

First modify /etc/apt/sources.list file:
$ sudo vi /etc/apt/sources.list

Append following line:
deb http://oss.oracle.com/debian unstable main non-free

Save and close the file. Next import GPG key:
$ wget http://oss.oracle.com/el4/RPM-GPG-KEY-oracle -O- | sudo apt-key add -

Update package database:
$ sudo apt-get update

Finally install Oracle:
$ sudo apt-get install oracle-xe

Output:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-2.6.20-15-generic linux-headers-2.6.20-15
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libaio
The following NEW packages will be installed:
libaio oracle-xe
0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
Need to get 221MB/221MB of archives.
After unpacking 405MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://oss.oracle.com unstable/non-free oracle-xe 10.2.0.1-1.1 [221MB]
....
....
Post-install configuration

You must configure Oracle TCP/IP port and other parameters. Simply type the following command:
$ sudo /etc/init.d/oracle-xe configure

Output:
Oracle Database 10g Express Edition Configuration
-------------------------------------------------
This will configure on-boot properties of Oracle Database 10g Express
Edition. The following questions will determine whether the database should
be starting upon system boot, the ports it will use, and the passwords that
will be used for database accounts. Press to accept the defaults.
Ctrl-C will abort.

Specify the HTTP port that will be used for Oracle Application Express [8080]: [Enter key]

Specify a port that will be used for the database listener [1521]:[Enter key]

Specify a password to be used for database accounts. Note that the same
password will be used for SYS and SYSTEM. Oracle recommends the use of
different passwords for each database account. This can be done after
initial configuration:secret
Confirm the password:secret

Do you want Oracle Database 10g Express Edition to be started on boot (y/n) [y]:y

Starting Oracle Net Listener...Done
Configuring Database...Done
Starting Oracle Database 10g Express Edition Instance...Done
Installation Completed Successfully.
To access the Database Home Page go to "http://127.0.0.1:8080/apex"

To access the Database Home Page go to http://127.0.0.1:8080/apex. Open a web browser and type url (you need to use username "system" and password setup earlier)
READ MORE - Oracle database consists of a collection

Friday, May 27, 2011

A Relational Database Management System (RDBMS)

A Relational Database Management System (RDBMS) is a Database Management System (DBMS) that is based on the relational model. Most database systems today are based on this type of system.

A database is a vital system for any organisation that stores mission critical information. The continual failure of a company's database system can only lead to the demise of the organisation - companies cannot do business without a working database system.

To provide an insight into the quality of software that is available, we have compiled a list of 10 open source RDBMS. Hopefully, there will be something of interest here for anyone who wants to store data in an efficient way.

There are many excellent database systems that are closed source free to download applications. Worthy of particular note are DB2 (a real heavyweight by IBM), Oracle Database 11g (developed by Oracle Corporation), MaxDB (capable of running terabyte-range data in continuous operation) and Berkeley DB (a high-performance embedded database).

Now, let's explore the 10 open source RDBMS at hand. For each title we have compiled its own portal page, a full description with an in-depth analysis of its features, together with links to relevant resources and reviews.
READ MORE - A Relational Database Management System (RDBMS)

The DCL identifies


The DCL identifies two levels of technical priorities for Linux in the data center: Priority One Capabilities are considered the most important for data center readiness for Linux, while Priority Two Capabilities are those intended to stimulate thought and discussion.

Beyond general priorities of importance, the DCL working group examines Linux enterprise capabilities in the traditional functional areas:
Scalability
Performance
Reliability, availability, serviceability (RAS)
Manageability
Clusters
Security
Usability
Standards
The standards category references specifications controlled outside DCL. This category includes only capabilities with standards related to adopting Linux in data centers.

At this stage, the OSDL DCL investigation is focused on enterprise-level usage models. The technical discussions center around data center issues such as security, storage networking, and file system performance. Because the objective of the DCL is to accelerate the maturation of Linux as an enterprise operating system, investigation of the other features on this list concentrates on server functionality and data center administration needs. Clearly, most of the features on this list are equally important to all who develop, use, or administer the system. But these nonserver-related issues are addressed in other OSDL initiatives such as the Desktop Linux working group.

In the latter half of 2004 the DCL Working Group will move on to its second objective: documenting the requirements necessary to advance Linux further in the data center, and recommending technical approaches to meet those requirements.
Call for Participation


The mission of the Data Center Linux (DCL) Working Group is to provide a forum for industry leaders to accelerate adoption and deployment of Linux in data centers.

The working group has completed its first pass at identifying Linux capabilities in the data center, and has developed a prioritized list of capabilities needed. The Data Center Linux Technical Capabilities v1.0 document is available for public review on the OSDL Web site. We encourage any interested person to review it and provide input. Together we can all help Linux become the enterprise operating system of choice.
READ MORE - The DCL identifies

Monday, May 16, 2011

Creating a DNS Server, Web Server and Database Server Using Linux Fedora 8

Creating a DNS Server, Web Server and Database Server Using Linux Fedora 8

DNS server and LAMP using Fedora Linux I have ever actually write in my previous article, about DNS Server Linux, Linux Web Server. With the aim of helping fellow who just happened to switch to Linux and using Linux Fedora 8, it helps me write this article. This guide is for the case as follows:

Creating a DNS server for the domain linuxer.local

Creating a virtual DNS servers for domains fxekobudi.local, sarolangun.local

Creating a Web server for the domain linuxer.local, fxekobudi.local, and sarolangun.local

Creating a server using a MySQL database to be used by open source applications (WordPress, Joomla, and Drupal) locally on the domain site builder that I mentioned above.


Before you start stepping into the configuration of DNS and LAMP (Linux-Apache-MySQL-PHP), the following is the configuration on the laptop that I use:


Loopback IP: 127.0.0.1

NIC IP Address: 192.168.0.44

Netmask: 255,255,255,192 (/ 26)


Package BIND: bind-9.5.0-18.a7, bind-libs-9.5.0-18.a7, bind-utils-9.5.0-18.a7, bind-chroot-9.5.0-18.a7

Package APACHE: httpd-2.2.6-3 httpd-tools-2.2.6-3, system-config-httpd-1.4.4-1, httpd-manual-2.2.6-3

MySQL Package: mysql-libs-5.0.45-4.fc8, mysql-5.0.45-4.fc8, mysql-server-5.0.45-4.fc8

PHP Package: php-common-5.2.4-3 php-5.2.4-3 php-gd-5.2.4-3 php-cli-5.2.4-3 php-mysql-5.2.4-3


All packages are already included in Fedora 8 installer DVD, so if you have not installed, please install using the DVD media or can also use the repository of Fedora 8. To check whether already installed or not, use the command: $ rpm-qa | grep [package name]
READ MORE - Creating a DNS Server, Web Server and Database Server Using Linux Fedora 8

Open Source Databases

Open Source Databases
Even as Linux has garnered support by all of the major commercial database vendors, the freely available open source databases have grown in sophistication and features. Below follows a partial list of some of the more popular of these.

Please Note, in addition to the listings below, many of the commercial database vendors have free "personal edition" or "single user" policies that allow their products to be used free of charge at home or in non-commercial applications. The goal of these policies to allow users to evaluate their software free-of-charge, and to allow developers to port their applications without making a large financial investment.


SQLite Embeddable SQL Database Engine (New Listing!)
SQLite Embeddable SQL Database Engine is a C library that implements an entire SQL server. This allows application programmers to embed an SQL server directly into thier application. Note that this is not a client library, and it cannot be used to contact an SQL server.
Implements most of the SQL 92 dialect.
Small footprint; 25K lines of code.
Sources in the public domain; no license.

McKoi SQL Database
The McKoi SQL Database is written entirely in Java. Supports transactions, referential integrity, triggers, indexes, Java-specific enhancements. Supports multi-threaded, multi-client operation; embedable. Released under the GPL license. This is probably the most advanced open-source pure-Java database out there.

SAP DB
The SAP DB is the liberation, under the GPL/LGPL license, of the SAP AG database. This is a major enterprise-class database.

HypersonicSQL
hsql is a small, (100KB) fast, embeddable relational DB written entirely in Java. Supports only a subset of the SQL standard. A 'stable' version now available. Modified BSD license.

PostgreSQL
PostgreSQL is a powerful and complete SQL implementation that rivals commercial databases such as Oracle. This database (along with MySQL) is the leading GPL'ed database system for the GNU/Linux & BSD platforms. Commercial support is available from a company formed by the leading Postgres developers.
Fully Transactional, with full ACID (Atomicity, Consistency, Isolation and Durability) properties. Seven different levels of locking for consistent queries and updates.
Tremendous performance improvements in Version 7.0
Support for Triggers
Support for user defined data types.
Support for stored procedures. These can be defined in a variety of ways, including an internal language, or very generally as a shared library, written in any language, linked into the Postgres server.
On-Line Backups
Multiple index type (b-tree, hash, etc.)
Commercial ODBC drivers from OpenLink
Non-commercial ODBC drivers
The Postgres HOWTO provides an extensive reference for a large number of Postgres facts and tools.

MySQL
MySQL from MySQL AB is, with Postgres, one of the most popular GPL'ed databases for the GNU/Linux and BSD platforms.
Commercial sales, support and training is available from NuSphere. They also do contract programming and infrastructure enhancements and feature additions for MySQL.
Commercial support from AbriaSoft.
Rudimentary support for table locking recently added.
Complex but powerful user access control mechanism.
Multi-threaded for parallel queries
Includes ODBC, Perl, C, Java, Tcl, Python API's

InterBase
The InterBase SQL server from InterBase Corp. is the well-known InterBase database released under an open source (MPL) license. In case you are wondering why you haven't heard of InterBase before, note that they were recently spun off from Inprise, which is, of course, the new name for Borland.

CQL++
Machine Independent Software offers the CQL++ DBMS. Originally developed originally as a full-featured commercial software product, it is currently available under several licenses, including the GNU GPL. (The free version is under GPL, non-free, non-GPL versions are available at reasonable cost.) The feature list mentions the following:

Transaction support, including commit, rollback, nested transactions, logging, failure recovery.
ANSI 1989 Level 2 SQL and ODBC Level 1 API support
ISAM or B-tree access
Unlimited number of cursors
BLOB (Binary Large Object) Support
Optimistic concurrency control with shared read locks.
Preprocessor for embedding SQL in C++

Gadfly
Gadfly is a small, portable database system written entirely in python and specifically intended for python programmers. Database files are portable from Win95 to Linux. Source code freely available, and is commercially supported by Chordate Systems.

GigaBASE and FastDB
GigaBASE (US Mirror) and FastDB (US Mirror) are memory & file-based databases with an SQL-like query language. Because they compile into an application, they avoid most of the DB management problems of client-server. BSD-like license.

GNU SQL
GNU SQL from Russia ... project development seems to have stalled in 1998.
READ MORE - Open Source Databases
 
THANK YOU FOR VISITING