16.20 - 例: SHOWWHERE出力のファイル システム情報テーブルの挿入(オプション'M') - Teradata Vantage NewSQL Engine

Teradata Vantage™ SQL演算子およびユーザー定義関数

prodname
Teradata Database
Teradata Vantage NewSQL Engine
vrm_release
16.20
category
プログラミング リファレンス
管理
featnum
B035-1210-162K-JPN

データを中形式出力のターゲット テーブルに挿入する場合:

exec dbc.populatefsysinfotable('Call_Logs', 'Daily_Log','showwhere','m','Call_Logs','showw_m');

SELECT * from Call_Logs.showw_m;

                       TheDate  15/01/28
					   TheTime  01:03:12.160000
	  			DataBaseName  Call_Logs
                	 TableName  Daily_Log
					   TableID  0000130B0000
					TableIDTAI       0
						 Vproc   0
						 Drive  -1
					   LrgCyls       2
					   SmlCyls       0
					   MapName
					 TableType  PERM
						        Grade
					  GradePct      .00
						   VHCyls        0
					   HotCyls        0
					  WarmCyls        0
					  ColdCyls        2
					 CylsinSSD        0
TemperaturesMature  Y
					   TheDate  15/01/28
					   TheTime  01:03:12.160000
		 		 DataBaseName  Call_Logs
					 TableName  Daily_Log
					   TableID  0000130B0000
					TableIDTAI       0
						        Vproc   2
						        Drive  -1
					   LrgCyls       3
					   SmlCyls       0
					   MapName
					 TableType  PERM
						        Grade
					  GradePct      .00
						   VHCyls        0
					   HotCyls        0
					  WarmCyls        0
					  ColdCyls        3
					 CylsinSSD        0
TemperaturesMature  Y
					   TheDate  15/01/28
					   TheTime  01:03:12.160000
		 		 DataBaseName  Call_Logs
					 TableName  Daily_Log
					   TableID  0000130B0000
					TableIDTAI       0
						        Vproc   1
						        Drive  -1
					   LrgCyls       2
					   SmlCyls       0
					   MapName
					 TableType  PERM
						        Grade
					  GradePct      .00
						   VHCyls        0
					   HotCyls        0
					  WarmCyls        0
					  ColdCyls        2
					 CylsinSSD        0
TemperaturesMature  Y
					   TheDate  15/01/28
					   TheTime  01:03:12.160000
		 		 DataBaseName  Call_Logs
      			   TableName  Daily_Log
					   TableID  0000130B0000
					TableIDTAI       0
						        Vproc   3
						        Drive  -1
					   LrgCyls       3
					   SmlCyls       0
					   MapName
					 TableType  PERM
						 Grade
					  GradePct      .00
						   VHCyls        0
					   HotCyls        0
					  WarmCyls        0
					  ColdCyls        3
					 CylsinSSD        0
			TemperaturesMature  Y

データを中形式の画面に挿入する場合:

exec dbc.populatefsysinfotable('Call_Logs','Daily_Log','showwhere','m','','');
 *** Warning: 3212 The stored procedure returned one or more result sets.

                           Date  15/01/28
						   Time  09:04:14
						DB Name  Call_Logs
					   Tbl Name  Daily_Log
							TID  0000130B0000
						TID_TAI       0
						  Vproc       0
						  Drive      -1
					   Lrg Cyls    2
					   Sml Cyls
					   MapName
					  TableType  PERM
						  Grade
					   Grade(%)
						VH Cyls
					   Hot Cyls
					  Warm Cyls
					  Cold Cyls    2
					Cyls in SSD
			Temperatures Mature  Y
						   Date  15/01/28
						   Time  09:04:14
						DB Name  Call_Logs
					   Tbl Name  Daily_Log
							TID  0000130B0000
						TID_TAI       0
						  Vproc       1
						  Drive      -1
					   Lrg Cyls    2
					   Sml Cyls
					   MapName
					  TableType  PERM
						  Grade
					   Grade(%)
						VH Cyls
					   Hot Cyls
					  Warm Cyls
					  Cold Cyls    2
					Cyls in SSD
			Temperatures Mature  Y
						   Date  15/01/28
						   Time  09:04:14
						DB Name  Call_Logs
					   Tbl Name  Daily_Log
							TID  0000130B0000
						TID_TAI       0
						  Vproc       2
						  Drive      -1
					   Lrg Cyls    3
					   Sml Cyls
					   MapName
					  TableType  PERM
						  Grade
					   Grade(%)
						VH Cyls
					   Hot Cyls
					  Warm Cyls
					  Cold Cyls     3
					Cyls in SSD
			Temperatures Mature  Y
						   Date  15/01/28
						   Time  09:04:14
						DB Name  Call_Logs
					   Tbl Name  Daily_Log
							TID  0000130B0000
						TID_TAI       0
						  Vproc       3
						  Drive      -1
					   Lrg Cyls    3
					   Sml Cyls
					   MapName
					  TableType  PERM
						  Grade
					   Grade(%)
						VH Cyls
					   Hot Cyls
					  Warm Cyls
					  Cold Cyls    3
					Cyls in SSD
			Temperatures Mature  Y