Voy a ser sincero. Las primeras bases de datos con las que trabaje fueron de Oracle. Desde la versión 8i en adelante.
Comencé a trabajar con SQL Server hace ya unos años, y lo primero que eche en falta eran las vistas dinámicas, no porque no existieran, sino porque no encontré una referencia rápida que me dijera, por ejemplo, que equivalente tenemos de la v$session.
Intentare, durante las próximas entregas, mostrar las diferencias entre estos dos grandes motores, y poder aportar toda la información necesaria para tener una “piedra rosetta”, y que el cambio de tecnología de un DBA desde Oracle a SQL Server sea lo menos traumático posible, que cosas podemos mantener, y que no podemos. Que existe, y que no.
En este caso, me basare en Oracle 10g R2 y SQL Server 2008 R2.
Sin más, comenzamos:
En esta ocasión, vamos a hablar de algunas de las vistas dinámicas que suelen usarse más de Oracle, y la opción mas parecida en SQL Server
Oracle Views
SQL Server equivalent
v$session
sys.sysprocesses
v$process
sys.dm_exec_connections
sys.dm_exec_sessions
sys.dm_exec_requests
v$session_wait
sys.dm_os_waiting_tasks
v$sql
Para estas vistas, tendremos que realizar alguna de las siguientes consultas:
v$sqltext
select * from sys.dm_exec_query_stats cross apply sys.dm_exec_sql_text(plan_handle)
v$sqlarea
Select * from sys.dm_exec_cached_plans CROSS APPLY sys.dm_exec_query_plan(plan_handle);
select * from sys.dm_exec_query_stats CROSS APPLY sys.dm_exec_query_plan(plan_handle) cross apply sys.dm_exec_sql_text(plan_handle)
v$lock
Algunos enlaces útiles:
Link de Oracle
http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_2088.htm#sthref2731
http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_2022.htm#sthref2643
http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_2094.htm#sthref2738
http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_2113.htm#sthref2757
http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_2132.htm#sthref2776
http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_2129.htm#sthref2773
http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_1147.htm#sthref2582
SQL Server view
Link de Microsoft
http://msdn.microsoft.com/es-es/library/ms179881.aspx
http://msdn.microsoft.com/es-es/library/ms181509.aspx
http://msdn.microsoft.com/es-es/library/ms176013.aspx
http://msdn.microsoft.com/es-es/library/ms177648.aspx
http://msdn.microsoft.com/es-es/library/ms188743.aspx
sys.dm_exec_query_stats
http://msdn.microsoft.com/en-us/library/ms189741.aspx
sys.dm_exec_sql_text
http://msdn.microsoft.com/en-us/library/ms181929.aspx
sys.dm_exec_query_plan
http://msdn.microsoft.com/en-us/library/ms189747.aspx
sys.dm_exec_cached_plans
http://msdn.microsoft.com/en-us/library/ms187404.aspx
Moisés Romero Senosiain – Microsoft Customer Support Services
1. ¿Esta soportada la instalación de Reporting Services en clúster?
Del siguiente artículo puedes ver que la instalación en clúster está soportada sólo para las bases de datos de SQL server (ReportServer y ReportServerTempDB) pero no para el servicio Web.
Hosting a Report Server Database in a SQL Server Failover Cluster http://msdn.microsoft.com/en-us/library/bb630402.aspx (en Español) Hospedar una base de datos del servidor de informes en un clúster de conmutación por error de SQL Server http://msdn.microsoft.com/es-es/library/bb630402.aspx SQL Server provides failover clustering support so that you can use multiple disks for one or more SQL Server instances. Failover clustering is supported only for the report server database; you cannot run the Report Server service as part of a failover cluster. To host a report server database on a SQL Server failover cluster, the cluster must already be installed and configured. You can then select the failover cluster as the server name when you create the report server database in the Database Setup page of the Reporting Services Configuration tool. Although the Report Server service cannot participate in a failover cluster, you can install Reporting Services on a computer that has a SQL Server failover cluster installed. The report server runs independently of the failover cluster. If you install a report server on a computer that is part of a SQL Server failover instance, you are not required to use the failover cluster for the report server database; you can use a different SQL Server instance to host the database.
Hosting a Report Server Database in a SQL Server Failover Cluster
http://msdn.microsoft.com/en-us/library/bb630402.aspx
(en Español)
Hospedar una base de datos del servidor de informes en un clúster de conmutación por error de SQL Server
http://msdn.microsoft.com/es-es/library/bb630402.aspx
SQL Server provides failover clustering support so that you can use multiple disks for one or more SQL Server instances. Failover clustering is supported only for the report server database; you cannot run the Report Server service as part of a failover cluster.
To host a report server database on a SQL Server failover cluster, the cluster must already be installed and configured. You can then select the failover cluster as the server name when you create the report server database in the Database Setup page of the Reporting Services Configuration tool.
Although the Report Server service cannot participate in a failover cluster, you can install Reporting Services on a computer that has a SQL Server failover cluster installed. The report server runs independently of the failover cluster. If you install a report server on a computer that is part of a SQL Server failover instance, you are not required to use the failover cluster for the report server database; you can use a different SQL Server instance to host the database.
2. Pasos a seguir para instalar Reporting Services con las bases de datos en clúster:
1. Primero instalamos Reporting Services en una máquina (diferente al clúster, o en un nodo del clúster si se prefiere) eligiendo la opción “Install but do not configure the server” durante las opciones de instalación del asistente.
2. Una vez terminada la instalación, habrá que configurar Reporting Services utilizando el “Reporting Services Configuration Manager”
Los siguientes artículos muestran los pasos a seguir para configurar las urls y la base de datos
How to: Configure a URL (Reporting Services Configuration) http://msdn.microsoft.com/en-us/library/bb630447.aspx How to: Create a Report Server Database (Reporting Services Configuration) http://msdn.microsoft.com/en-us/library/ms157300.aspx
How to: Configure a URL (Reporting Services Configuration)
http://msdn.microsoft.com/en-us/library/bb630447.aspx
How to: Create a Report Server Database (Reporting Services Configuration)
http://msdn.microsoft.com/en-us/library/ms157300.aspx
los enlaces en español son:
Cómo configurar una dirección URL (Configuración de Reporting Services) http://msdn.microsoft.com/es-es/library/bb630447.aspx Cómo crear una base de datos de servidor de informes (configuración de Reporting Services) http://msdn.microsoft.com/es-es/library/ms157300.aspx
Cómo configurar una dirección URL (Configuración de Reporting Services)
http://msdn.microsoft.com/es-es/library/bb630447.aspx
Cómo crear una base de datos de servidor de informes (configuración de Reporting Services)
http://msdn.microsoft.com/es-es/library/ms157300.aspx
Maria Esteban
Ingeniero de Soporte de Reporting Services