Opserver icon indicating copy to clipboard operation
Opserver copied to clipboard

Amazon RDS: 'active'

Open win32nipuh opened this issue 9 years ago • 5 comments

The problem is that Amazon RDS does not allow to create objects in master database.

Oh no!

sp_WhoIsActive was not found or was not accessible on this SQL instance.
Please visit Adam Machanic's site to grab the latest copy.

win32nipuh avatar Mar 10 '16 14:03 win32nipuh

I'm not sure this is worth solving, it depends if it's possible first.

If you install sp_WhoIsActive in your database, does it work? If Amazon RDS is this limiting, it's likely that the procedure can't even access the system-level information it needs to function either.

NickCraver avatar Mar 12 '16 12:03 NickCraver

I have created sp_WhoIsActive in my database, then ran it:

EXEC sp_WhoIsActive 
    @show_sleeping_spids = 2, 
    @show_system_spids = 1, 
    @show_own_spid = 1

It seems it works ok, it displays processes in my db, master db.

win32nipuh avatar Mar 14 '16 10:03 win32nipuh

I've put sp_whoIsActive in a different database to master. Once I changed the Initial catalog in the connection in SQLSettings.json to point at that database instead of master, it seems to work OK. I haven't done extensive testing, just poked about a bit, but happy so far. This could be an option for you.

VictoriaD avatar Mar 14 '16 16:03 VictoriaD

@win32nipuh can you confirm this as an option? When I get to much needed (tons of) documentation, I can include some pointers there.

NickCraver avatar Apr 02 '16 23:04 NickCraver

Ok. Can I do anything to help to solve this issue? Btw, in my app I try to detect where it is connected: RDS or normal SQL Server. Depending on it the app has different behavior.

win32nipuh avatar Apr 03 '16 06:04 win32nipuh