How to NOT monitor SQL database on specific servers only
I have a test server with SCOM agent installed. I am using it for Lync watcher node to monitor Lync using SCOM. On this server there is a local SQL Express database. SCOM has MP for SQLs and alerts me about this SQL express database on test server that there
is buffer cache hit ratio too low or page life expectancy too low.
How to disable these SQL monitors for only this test server?
I am wondering whether using this cmdlet "Remove-SCOMDisabledClassInstance" I will not remove
any other SQL 2012 monitoring on another servers in my environment?
I also found this blog post
http://www.systemcentercentral.com/how-to-remove-objects-from-monitoring-remove-scomdisabledclassinstance/
where there is slightly different method, they propose to choose "SQL server 2012 installation seed"
rather than "SQL Server 2012 DB Engine"
They also suggest to use "Override the Object Discovery" rather than "Disable
the Object Discovery". What is the best approach?
Similar Messages
-
Monitor SQL Database mirroring using powershell script
I am trying use the below powershell script to monitor SQL Database mirroring. The motive here is to determine if there are databases which are in "Disconnected" or "Suspended" mode.
I am running the script on the Principal Server:
$returnStateOK = 0
$returnStateWarning = 1
$returnStateCritical = 2
$returnStateUnknown = 3
$NagiosStatus = ""
# Load SMO extension
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.Smo") | Out-Null;
# Servers to check
$sqlservers = @("$env:computername");
foreach($server in $sqlservers)
$srv = New-Object "Microsoft.SqlServer.Management.Smo.Server" $server;
# Get mirrored databases
$databases = $srv.Databases | Where-Object {$_.IsMirroringEnabled -eq $true -and $_.MirroringStatus -eq "Suspended" -or $_.MirroringStatus -eq "Synchronizing" -or $_.MirroringStatus -eq "Disconnected"
-or $_.MirroringStatus -eq "None" -and $_.Name -ne "Master" -and $_.Name -ne "model" -and $_.Name -ne "msdb" -and $_.Name -ne "tempdb"};
if ($databases -ne $null)
$databases | Select-Object -Property Name, MirroringStatus | Format-Table -AutoSize;
exit $returnStateCritical
} Else {
Write-Host "All Databaes are Mirrored"
exit $returnStateOK
I have Suspended few databases for testing purpose but when I run the above script the output says "All Databaes are Mirrored"
If I make changes to $database and use it below i.e. I am changing the AND operator to OR after "$_.IsMirroringEnabled -eq $true"
$databases = $srv.Databases | Where-Object {$_.IsMirroringEnabled -eq $true -or $_.MirroringStatus -eq "Suspended" -or $_.MirroringStatus -eq "Synchronizing" -or $_.MirroringStatus
-eq "Disconnected" -or $_.MirroringStatus -eq "None" -and $_.Name -ne "Master" -and $_.Name -ne "model" -and $_.Name -ne "msdb" -and $_.Name -ne "tempdb"};
I get the below output:
Name
MirroringStatus
DB1
Synchronized
DB2
Synchronized
DB3 Synchronized
DB4
Suspended
DB5 Suspended
DB6
Suspended
DB7
Synchronized
DB8
Synchronized
I only want the databases which are Suspended or Disconnected to be listed.I only want the databases which are Suspended or Disconnected to be listed.
Hi raul-133,
Based on your description, to list the databases which are Suspended or Disconnected ,I recommend you execute the following Transact-SQL statements in SQL Server firstly. If you can get the expected results from this query, then use the SQL Server query
in powershell script. For more details, please review this similar blog:
Monitor database mirroring.
Use master
go
select d.name, m.mirroring_state_desc
from sys.database_mirroring m,
sys.databases d
where m.database_id = d.database_id and (m.mirroring_state in (0,1))
For more details about mirroring state, you can review this article:
sys.database_mirroring (Transact-SQL).
Thanks,
Lydia Zhang -
How to access the sql database in applet?
How to access the sql database in applet?
Please help me.import java.applet.*;
import java.awl.*;
import java.sql.*;
//other packages
public class jdb extends Applet
Connection con;
Statement stmt;
String name="drvijay";
String phoneno="9842088860";
public void init(){}
pubilc void stop(){}
public void destroy(){}
public void start()
call();
public void call()
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn=DriverManager.getConnection("Jdbc:Odbc:emp","sa","");
stmt=conn.createStatement();
stmt.executeUpdate("insert into empdetails(name,phoneno) values ('"+name + "',''"+ phoneno +"' )" );
}catch(SQLException e)
System.out.println("error"+e);
System.exit(0);
//<applet code="jdb" height="200" width="200"> </applet>
u this jdbc statement in any of the method..
*/ -
Intermittant (not constant) SQL database ShareWebDb login failed events 3760 and 2424
My Sharepoint 3.0 services that were bundled with SBS 2008 appear to be working fine. Companyweb, etc, all work w/o issue, so I don't want to take violent action, but these errors seem to be accellerating so I would love to know if there is a known
solution.
I typically receive the following (these are in reverse time order, latest at the top, just as they appear in the event log):
Error Event ID: 3760 SQL Database 'ShareWebDb' on SQL Server instance 'np:\\.\pipe\MSSQL$Microsoft##SSEE\sql\query' not found. Additional error information from SQL Server is included below. Cannot open database "ShareWebDb" requested
by the login. The login failed. Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.
one second earlier:Error Event ID: 2424 The update cannot be started because the content sources cannot be accessed. Fix the errors and try the update again. Context: Application 'Search', Catalog 'index file
on the search server Search'
Information Event ID: 18456 No description, here is the Details:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider
Name="MSSQL$MICROSOFT##SSEE" />
<EventID Qualifiers="49152">18456</EventID>
<Level>0</Level>
<Task>4</Task>
<Keywords>0x90000000000000</Keywords>
<TimeCreated
SystemTime="2010-11-12T18:35:06.000Z" />
<EventRecordID>491461</EventRecordID>
<Channel>Application</Channel>
<Computer>myserver.mydomain.local</Computer>
<Security
UserID="S-1-5-20" />
</System>
<EventData>
<Data>NT AUTHORITY\NETWORK SERVICE</Data>
<Data>[CLIENT: <named pipe>]</Data>
<Binary>184800000E000000170000005000450054003300310030005C004D004900430052004F0053004F00460054002300230053005300450045000000070000006D00610073007400650072000000</Binary>
</EventData>
</Event>
Two seconds earlier
Information Event ID 17137 No description, here is the Details:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider
Name="MSSQL$MICROSOFT##SSEE" />
<EventID Qualifiers="16384">17137</EventID>
<Level>4</Level>
<Task>2</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated
SystemTime="2010-11-12T18:35:04.000Z" />
<EventRecordID>491460</EventRecordID>
<Channel>Application</Channel>
<Computer>mysever.mydomain.local</Computer>
<Security
UserID="S-1-5-20" />
</System>
<EventData>
<Data>ShareWebDb</Data>
<Binary>F14200000A000000170000005000450054003300310030005C004D004900430052004F0053004F00460054002300230053005300450045000000070000006D00610073007400650072000000</Binary>
</EventData>
</Event>
I get more 3760 errors than 2424's. However, the
2424's do seem to usually correspond to a 3760 18456 17137 occurance and the
3760 are always preceeded by 18456 17137. I was getting one or two sets a day, lately that has increased to 5 or 10.
I've done a lot of
web research on Sharepoint Errors 3760 and
2424 and I see a number of people are experiencing the the same issue. Most of what I've come across for solutions do not apply, since errors are intermittent, not chronic and my public remote URL has already been added
to BackConnectionHostNames as per:
http://blogs.technet.com/b/sbs/archive/2009/08/05/sharepoint-services-3-search-event-errors-after-an-sbs-2008-update-rollup.aspx
I installed the SQL Server Management Studio Express so I could try to track down the permissions on this database. I see the SQL server instance, MYSERVER\Microsoft##ssee, and it shows as running, but when I try to connect to it I get the following
error: "A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote
connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) (Microsoft SQL Server, Error: -1)" I'm assuming that is because I don't have access permission for that internal database.
I don't see any errors in the event log related to failed logins or any errors at all from the SQL server, but there are the time matching informational entries right before the error events and lots of other 17137's and 2803's from MSSQL$Microsoft##sseeThank you Kevin, that does seem to match my symptoms and I have made the change suggested. Just incase that page becomes unreachable by others, here is the part of the page that applies to this:
Issue:
=========
Receive event error 3760 and 6398 on SBS 2008
Cause:
==========
Issue was caused by incorrect Auto Close option for ShareWebDb database
Solution:
==========
1. On the SBS 2008 server, click Start -> All Programs -> Microsoft SQL Server 2005, right click SQL Server Management Studio Express and choose run as administrator.
NOTE: You must run it as administrator to perform steps below.
2. In the Server Name box, type \\.\pipe\MSSQL$Microsoft##SSEE\sql\query, click connect.
3. Expand Database node and right click the ShareWebDb then choose properties.
4. Click Options in the left pane, in the right pane, please check whether the Auto Close option is set to True, if so, please change it to False. -
How to create an SQL Database using LabVIEW??
Hi all,
I have been using LabVIEW for quite a long time but now I am doing something which I am totally new to. I have a VI which gives out a table as output. What I am trying to do is, I want to create an SQL databse and save this table in the database and I want to pass the value of this table to the SQL Database once in every 24 hours. As I dont have any knowledge of My SQL I am totally stuck.
Can anyone help me by telling me how to do this.?? An example code will be well appreciated.
Regards,
Nitz..Hi Nitzz,
what have you done and where do you have problems? Did you make a search here in the forum?
http://forums.ni.com/t5/forums/searchpage/tab/message?q=create+database#message-list
Mike -
SCOM to NOT monitor certain database instances
SCOM version: 2012 R2 RU3
Our SQL guys have gone out and purchased SpotLight and want to use it as the primary for monitoring and alerting on SQL at the database and instance level on "select" servers. So instead of SCOM monitoring, lets say all 6 databases on a SQL
server, it monitors 3 and Foglight monitors the remaining 3.
I see where I have the ability to start maintenance mode on select databases and need to know if this is the preferred practice? If not what are my options.
Any responses appreciated.Phil, hi!
It depends on what you'd like to achieve. In case that you want to stop monitoring them temporarily than maintenance mode on DB level is a good way.
If you'd like to stop monitoring persistent and don't need the objects discovered you could disable the db discovery by override and run the following cmdletmin the Operations Manager shell:
Remove-SCOMDisabledClassInstance
Cheers,
Patrick
Please remember to click “Mark as Answer” on the post that helped you.
Patrick Seidl (System Center and Private Cloud)
Website: http://www.syliance.com
Blog: http://www.systemcenterrocks.com -
How to query a sql database table from webdynpro?
Hi All,
Can someone tell me the steps involved in accessing a sql server database table and retrieving the record set from a webdynpro application.
Thanks in advance.
Best regards,
DivyaHello Divya,
I would recommend you to read "Java Persistence" section in Development manual describing various options for database integration http://help.sap.com/saphelp_nw04/helpdata/en/61/fdbc3d16f39e33e10000000a11405a/frameset.htm
Tutorials
http://help.sap.com/saphelp_nw04/helpdata/en/46/ddc4705e911f43a611840d8decb5f6/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/91/9c2226df76f64fa7783dcaa4534395/frameset.htm
Web serices
http://help.sap.com/saphelp_nw04/helpdata/en/d6/f9bc3d52f39d33e10000000a11405a/frameset.htm
EJB
http://help.sap.com/saphelp_nw04/helpdata/en/19/f9bc3d8af79633e10000000a11405a/frameset.htm
Best regards, Maksim Rashchynski. -
How can I force a database trigger to fire only if there is an update not when insert
Hi
Could you help me please. I have a data base trigger that need
to fire only when there is an update in some columns in a table
But the trigger is firing eventhough they only do an insert.
here is the begining of the trigger.
create or replace trigger alpha_HZ_LOCATIONS_AUR
after update of address1,address2,city,state
,postal_code,county,province,country,attribute20
on hz_locations
for each row
DECLARE
v_cust_account_id hz_cust_acct_sites_all.cust_account_id%type;
v_cust_acct_site_id hz_cust_acct_sites_all.cust_acct_site_id%
type;
v_org_id hz_cust_acct_sites_all.org_id%type;
-- cursor; all sites for this customer address
cursor sc is
select
s.site_use_id site_use_id
,s.attribute15 frk_addr_number
from
ra_site_uses_all s
where s.address_id = v_cust_acct_site_id
and s.site_use_code in ('BILL_TO','SHIP_TO');
rowcnt number;
v_system_code varchar2(15);
v_ora_cust_num varchar2(30);
v_frk_cust_num varchar2(15);
v_insert_update_flag varchar2(1);
BEGIN
v_insert_update_flag := 'U';
-- get cust_acct_site_id (address_id)
begin
select acct_site.cust_account_id,
acct_site.cust_acct_site_id, acct_site.org_id
into v_cust_account_id, v_cust_acct_site_id, v_org_id
from
hz_party_sites party_site
,hz_cust_acct_sites_all acct_site
where acct_site.party_site_id = party_site.party_site_id
and party_site.location_id = :new.location_id;
Thank you much
alphaThanks for the response. My trigger is firing when I update the
table trough a form. Also when the uses go into the oracle apps
and create a new customer they get an error saying
ora-01403 no data found
ora-06512 at'the trigger name' and gives line number
ora-04088 error during execution of trigger.
Note: and I looked trigger it's really ok.
If you can please help -
How to make a SQL database connection with a java code in netbeans?
can somebody helpthrough an example
raghu0007 wrote:
can somebody helpthrough an exampleNetbeans is just an IDE.
Anyway the JDBC tutorial may be found here http://java.sun.com/docs/books/tutorial/jdbc/index.html
If you have a specific question please ask it. -
How can I distribute an app for specific customers only
I have developed an app that our customers can take to a remote site, input data at the site, then return to the office and upload their data to software that they purchased from us. This app would be useless to anybody that does not have our software.
We could put it in the App Store but anybody could download it (not that it would do them any good). We would like to have an easy way for our customers to obtain the app (like the Store), but not just make it available to anybody. It is
free to our customers since they already have a license for our software.
I am aware of the enterprise sideloading option but that seems problematic as well and your own documentation says to use the store if you are deploying to users outside your company: "Enterprise
apps usually fall into one of two categories: apps you deploy to users outside of your company (including customers and business partners), and apps you deploy only to users within your company. If
you want to make your app available to people outside of your company, your best option is to list the app in the Windows Store. "
In addition, with enterprise sideloading, there seems to be some sort of licensing requirement and you have to purchase 100 of them? Why is there a licensing fee if you can upload your app to the store and customers can get it for free? Our customers
are not going to want to purchase 100 licenses since they only need a handful and we are not going to provide them either. So, back to the Windows Store.
There should be some sort of Store option that maybe requires a password to access and download the app, plus provides a category that is actually suitable for enterprise apps (the categories in the store are very limited and none seem applicable).
Anyhow, I'm hoping you can help clear this up for us.
Thank you,
Karen HealeyHi Juan,
Please see the link below mentioned for Adobe Story Plus.
https://creative.adobe.com/products/story-plus?promoid=KLXKW
Let me know if you need any assistance.
Thanks!
Eshant -
How to connect and query the sql database in mobile application
Hello,
Can any one say how to connect the sql database from the j2me application.
I have got some info that only through servlet or jsp only we can connect the database and from their we should get the info or query in mobile application.
Is it true? and can i have any sample codes or white paper or guildlines.
It would be more useful form my project.
Thanks in advance.
regards,
saraHi David,
According to your description, when you add Windows Azure Mobile Services to a Window Phone 8 app, then store app data in the new mobile service. I recommend you post the related question on the Windows Azure Mobile Services Forums at
http://social.msdn.microsoft.com/Forums/en-US/home?forum=azuremobile .It is appropriate and more experts will assist you.
In addition, there are the details about creating a Windows Phone app connected to your mobile service.
http://www.windowsazure.com/en-us/develop/mobile/tutorials/get-started-wp8/
http://www.windowsazure.com/en-us/develop/mobile/tutorials/get-started-with-data-wp8/
Thanks,
Sofiya Li
Sofiya Li
TechNet Community Support -
Upload the sql database to host and manage it
hello
i have window 8.1
sql server express 2014
visual studio 2013 express
i have built a database and i am ready to copy it to the host.
not in vs or in sql.s i have found the.. connect to remote server..
i have looked on google >> its say use the
SQL Server Configuration Manager that is under the Client Tools Connectivity installation..
or search your pc for "SQLServerManager11.msc"
but i got none!!!
not the SQLServerManager11.msc
not
the Client Tools Connectivity
not the SQL Server
Configuration Manager
and i dont know how to upload the sql database to the host and manage it...thank you for replying
my installation where sql server express with advanced tools..
i have to say that the normal installation didnt work for me.. using the my_downloader_installer.exe, the akamia NetSession interface run into some error - file use by another process... and restarting the pc didnt solve the issue...
i found an alternative way to install
on http://www.microsoft.com/en-in/download/details.aspx?id=42299
and download the SQLEXPRADV_x86_ENU.exe that supposed to
be with the tools
(but could not found the tools).. so i have tried to install the SQLManagementStudio_x86_ENU.exe
>> only the tools...
but i got that error
TITLE: SQL Server 2014 Setup
There are validation errors on this page. Click OK to close this dialog box. Review errors at the bottom of the setup page, then provide valid parameters or click Help for more information.
BUTTONS:
OK
and the information page lide me to no where.. >> so general info about different installation packages..
but:
i do think i do have that SQL Server Configuration Manager
cause when i run the
USE master;
GO
EXEC sp_helpserver ;
USE master;
EXEC sp_serveroption 'Y-PC\SQLEXPRESS', 'collation compatible', 'true';
i got
name network_name status id collation_name connect_timeout query_timeout
Y-PC\SQLEXPRESS Y-PC\SQLEXPRESS rpc,rpc out,collation compatible,use remote collation 0 NULL
0 0 -
SQL database and SharePoint integration
I am looking for material on how to work with sql databases and sharepoint.
Is it possible to use an SQL database, with foreign key relations, in a sharepoint list?
What I am looking to is as follows:
Have 2 tables in SQL Server, with a reference from one, to another.
Have the ability to input and edit both tables from a sharepoint online external list.
SQL Table 1:
Id code
name
SQL Table 2:
Arrival Date
lot #
idCode
idCode references Table 1 id Code
Sharepoint List A
List of Table 1
Sharepoint List B
List of table 2, with the ability to add its to it, that will reference table 1.
I can not find any material or other ares focusing on this subject. You assistance would be appreciated.
BrandonWhat you're after is an External List. There are some details (and much of the configuration is on links in this page) here: http://technet.microsoft.com/en-us/library/jj683119(v=office.15).aspx
Trevor Seward
Follow or contact me at...
  
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs. -
Managed Server can not connect to Database
I have a WebLogic cluster with three managed Server on 3 different machines.
ManagedServer_1, ManagedServer_2, ManagedServer_3 (on Machine 3)
Firstly, everything is ok. But when we changed some configuration on Firewall and make the WebLogic cluster could not connect to database. 3 servers change status from Running to Warning. Then, we undo all the changes to the Firewall configuration. 3 Servers could connect to Database again but still in warning state.
It is strange that when I tried to restart ManagedServer_3. That server could not be up normally. It went to Admin state and all the datasources and connection pool could not be created. I tried to restart the machine 3 and start the server but it still failed to make server running normally.
( I made the test connecting to Database from Machine 3, everything is okie, I can got data from database, port 1521 opened )
Has anyone got the same problem and how to fix it? Is that the problem with the admin server?JDBC DataSources/Connection pools are all at Domain Level. All we do is just target the datasources to AdminServer and Entire cluster (this will take care of all managed servers in the cluster). From Weblogic Console, TEST the data sources for any firewall issues. If this works from console, check from where you are accessing the Console like within the Firewall, that can access the database server. Even though the actual application is deployed only on cluster, still I would recommend targetting the datasources to both AdminServer and Cluster.
Ravi Jegga -
Do you guys know how can I query SQL database select records and input them to XSL file?
Let me know this is urgent.Is there an efficient way of doing this, rather than
hardcoding all the less than,greater than lines?Sounds like you need to read this:
http://java.sun.com/webservices/docs/1.1/tutorial/doc/index.html
Maybe you are looking for
-
Monitoring WCI 10.3.0 & UCM 10.1.3.5 using OEM 11g R1
As part of the Service Monitoring for our OFM-OUCM environment, we have implemented OEM 11g R1. Our Dev/Test/UAT/Prod environment is comprised of SOA 10.1.3.5, WCI 10.3, UCM 10.1.3.5, multiple DB instances 10.2.0.3/10.2.0.4, IDM 10.1.4.0.1. We are ab
-
2.0 software on original iPhone - Nightmare
Any of you having any or all of these same problems now that you have 2.0 software? 1) Getting a text message, clicking "Reply" and watching it sit, blank, on the screen, indefinitely, because it simply never loads the texts now? 2) Getting a text me
-
My wireless router is working perfectly fine. I have tried turning it on and turning it off but the red lights dont leave and I can't access the internet. what can I do to fix this issue?
-
I just upgraded to Numbers 3.0 but can´t open files of Numbers 9, help...!!!!!! Can someone please help me, because those files in Numbers 9 version, are for my work and now I can´t open them
-
How much is it to fix cracked macbook pro retina display in UK?
I stepped on the corner of my macbook pro 13" retina display and the screen has cracked and there is a black square in the corner where the screen is broken. I was wondering from others who have had the same experience how much is it to have the scre