CRT2013 Support Flashcards

0
Q

List the 3 steps to check valuation failures

A
  1. Which parcel in a batch is failing?
    SELECT * FROM dbo.NormalizedParcelTaskStatus
    JOIN dbo.parcel on ParcelID
    WHERE P.BELID and NP.ValuationSuccessfulFlag = F
  2. Check parcel lifecycle
    SELECT * FROM dbo.ParcelStep WHERE ParcelID
  3. Check failing parcel history
    SELECT * FROM dbo.NormalizedParcelTaskStatusHistory WHERE ParcelID
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
1
Q

How to check the simulation override due to market data

A
  1. Check which subtask failing
    SELECT * FROM dbo.NormalizdParcelTaskStatus WHERE ParcelID = XX
  2. Simulation overriden?
    SELECT * FROM dbo.ParcelValMsg WHERE ParcelID = XX
  3. Market Data used?
    SELECT * FROM dbo.ParcelValMsg
    JOIN dboValMsgRisk ON ValMsgID
    WHERE PV.SubTaskIndex = 3, 4, 5 AND ParcelID
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How to get the baseline parcel count

A

SELECT PAR.BatchRunID, P.BatchExecutionLogId, P.ParcelID
FROM Core..Parcel JOIN Core..ParcelAutoRun
WHERE P.BusDate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How to get the subtask info for baseline

A

SELECT PAR.BatchRunIDm P.BatchExecutionLogID, NPTS. SubTaskIndex
FROM Core..Parel
JOIN Core..ParcelAutoRun ON ParcelID
JOIN Core..NormalizedParcelTaskStatus ON ParcelID
WHERE P.BusDate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How to get business date & pre date automatically

A

DECLARE @busdate DATETIME
DECLARE @predate DATETIME
SET @busdate = SELECT busdate from Core..BusDate
SET @predate = SELECT MAX(busdate) from Parcel WHERE BusDate < @busdate
SELECT CONVERT(VARCHAR, @predate, 112) AS [PRE DATE]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How to check a table existence and delete it

A

IF Object_Id(‘TempDB..#tablename’) IS NULL
BEGIN
DROP TABLE #tablename
END

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How to check the isCommitted message in Repube

A

SELECT * FROM SecDervisFeeds.Seahawk.Message

WHERE IsCommitted AND BatchExecutionLogID

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How to get batch related info for each COB run

A

SELECT * FROM BatchConfig..BatchExecutionLog

WHERE BusinessDate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How to check active parcels grouped by farm

A

SELECT * FROM BatchConfig.BatchExecutionLog
JOIN Parcel ON BatchExecutionLogID
JOIN Static.System.MachineGroup ON P.AllocatedSystemEnvironmentID
WHERE P.BatchExecutionLogID and P.StatusID = 2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How to check for parcels with no allocated environment

A

SELECT * FROM dbo.Parcel
JOIN dbo.ParcelStatus ON ParcelID
WHERE BusDate, P.StateID = 2, P.AutomatedRunFlag = 1,
P.AllocatedSystemEnvID = NULL

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How to check inconsistent baseline parcels based on names between 2 run IDs

A

SELECT PC.CpartyID, COUNT(PC.CpartyID)
FROM dbo.Parcel JOIN dbo.ParcelCparty ON ParcelID
WHERE BatchExecutionLogID

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

how to kill seahawk batch

A

Batchexecute.exe /env DCRM_LIVE1 /ID 8029 /logid 506323 /kill

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

how to kill seahawk batch

A

Batchexecute.exe /env DCRM_LIVE1 /ID 8029 /logid 506323 /kill

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

how to monitor tempdb

A

DBCC SQLPERF(LOGSPACE)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

how to rebuild indexes and update statistics

A

ALTER INDEX ALL ON SecDervisFeed.Seahawk.MarketData REBUILD

UPDATE STATISTICS SecDerivFeeds.Seahawk.MarketData

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

how to find directories which have exceeded 50M

A

DIRUSE.EXE /* /M /Q:50M c:\

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

how to search for a text in commandline

A

find /I “oracle error” <filename></filename>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

List out the machine name for LIVE1, PROD2, SD DB

A
LIVE1 = LDNPCM05099V05A
PROD2 = LDNPCM05241V05A
OWL = LDNPCM05880V05A
17
Q

how to find more details on a SPID

A

dbcc inputbuffer(SPID)

18
Q

how to check for open transactions

A

For all databases:
SELECT * FROM sysprocesses WHERE open_tran = 1
For current db:
DBCC OPENTRAN

19
Q

List the tables to locate official curves and b-curves

A

[BCurves]

SELECT COUNT(*) FROM CreditSpread.RT.DefaultSpreadCurve
WHERE LoadDate = (SELECT BusDate FROM Core.dbo.BusDate)

[Official Curves]

SELECT COUNT(*) FROM CreditSpread.dbo.CreditSpreadCurve
WHERE CurveDate = (SELECT BusDate FROM Core.dbo.BusDate)
20
Q

How to stop, query, start up, stop a particular machine using fm.py

A
To stop:
   fm.py LIVE1 -S
To startup 
   fm.py LIVE1 -s
To query:
   fm.py -i 
To stop a machne:
   fm.py LIVE1 -m ldnpsmXXX -S
21
Q

how to enable controllers

A

fm.py LIVE1 -e SeahawkController -m ldnpsmXXX ldnpsmYYY

22
Q

how to the credit spread curve built for a name

A

EXEC CreditSpread.GetCreditSpreadCurve
@loadDate = YYYYMMDD,
@CpartyID = XXX
@pin_CreditCurveCategoryID = 2

23
Machine name for FAT controller
Ldnpsm020006306
23
SQL 2008 CRT DB
Ldnpcm05069v05a\ DCRM_MAIN_LIVE
24
Machine name for ETS
\\ldnpsm028853\EnterpriseTradeStore
25
Flat file for Market POD - no of files and what are they
11 files - 2 sets of CVA and FVA for Weekly, Daily and All, plus BCurves, credit curves and it's definition, leader follower
26
What are the flat files for ABSA?
6 files for Liquid and Illiquid with each set of FVA contingent, FVA non contingent and FC CVA
27
What are the mars feeds?
Mars 5300 and 5305 in //dcrmfeedlive1/feeds/data dcsenrtb_seahawk_d_yyyymmdd (dc sensitivity RTB) dcrmpvbp_seahawk_d_yyyymmdd (dc rm pvbp)
28
Machine name for dcrmfeedlive1
Ldnpsm020010449 ( 2001 0449 )
29
While construct in SQL
``` While 1 = 1 Begin Delete top (1000) from TableName If @@rowcount < 1 break; End ```
30
Update stats command
Update statistics Tablename
31
Index rebuild command
Alter index [IndexName] on [TableName] reorganize with ( lob_compaction = on )
32
What happened when CVA straddle is zero, below 20k and greater than 20k.
When CVA straddle = zero, name is placed in inactive portfolio and run in new name When CVA straddle less than 20k, the name runs in 100 batch When CVA straddle greater than 20k, the name runs in low batch
33
How to calculate CVA straddle?
Abs (( 2 x unilateral CVA) - Bilateral CVA
34
Name the 2 table names used as a start when querying SecDerivFeeds
SecDerivFeeds.Seahawk.Message Join core.batchconfig.BatchExecutionLog On BatchExecutionLogID
35
Name the 2 tables in SecDerivFeeds to find out CVA
SDF.seahawk.PDSMetrics and PDSMetricsTenor | Where PSDM.batchdate, PSDM.dirty = 0, PSDM,PDSMetricstype = CVA, PSDM.PDSMetricssubtype = bilateral
36
Name the 2 tables in SDF to check if we got market data issue
SDF.seahawk.marketdata join SDF.seahawk.marketdatatenor on marketdataid Where md.dataobjectid = 'yield curve/usd\bma'
37
How to find out which feeds were used by a particular FeedSet
Exec Core.ets.getTradeFeedCutoff @timestamp = '2013-05-25T18:36:17',
40
Which table stores trade activity summary
Billing.TradeaActivitySummary
41
Which 3 tables stores the trade exclusion, whatif change and break clauses
For trade exclusion - Core.cpartyexcludedtradehistsory (deldatetime, cpartyid) For whatif changes - Core.cpartyseahawktradehistory (eventdatetime, cpartyid) For break clauses - Core.cpartybreakclausetradehistory (eventdatetime, cpartyid)
42
Which table store the daily snapshot of netting data
Core.Netting