Siebel生成新数据库时Generate New Database,不到2分钟就报错SBL-GDB-00004: Error in Main function,日志中还报Disk Full的错误信息,
详细如下:
SQLProfiling Statement 4 0000000d540461c1:0 2014-09-0115:26:35 *********************************End 10 Worst Performing Queries *********************************
SQLTraceAll SQLTraceAll 4 0000000d540461c1:0 2014-09-0115:26:35 (SQLFreeEnv) Env Handle:143746616, Time: 0.002ms
Trace TracingInfo 3 0000000d540461c1:0 2014-09-0115:26:35 odbcconnect failed - retryin 10 seconds
SQLTraceAll SQLTraceAll 4 0000000d540461c1:0 2014-09-0115:26:45 (SQLAllocEnv) Env Handle:143746616, Time: 0.111ms
SQLTraceAll SQLTraceAll 4 0000000d540461c1:0 2014-09-0115:26:45 (SQLAllocConnect) EnvHandle: 143746616, Conn Handle: 142005168, Time: 0.004ms
SQLConnectOptions Allocate Connection 4 0000000d540461c1:0 2014-09-0115:26:45 (SQLAllocConnect) ConnHandle: 142005168, Time: 0.004ms
SQLTraceAll SQLTraceAll 4 0000000d540461c1:0 2014-09-0115:26:45 (SQLConnect) Conn Handle:142005168, Time: 0.005s
DBCLog DBCLogError 1 0000000d540461c1:0 2014-09-0115:26:45 [Sybase][ODBCDriver][Adaptive Server Anywhere]Disk full 'Fatal error: disk full/app/siebel/sia811/siebsrvr/dbtempl/siebel.dbf' -- transaction rolled back
GenericLog GenericError 1 0000000d540461c1:0 2014-09-0115:26:45 SQL Message, S1000: [SiebelDatabase][ODBC Driver][Adaptive Server Anywhere]Disk full 'Fatal error: diskfull /app/siebel/sia811/siebsrvr/dbtempl/siebel.dbf' -- transaction rolled back
DBCLog DBCLogError 1 0000000d540461c1:0 2014-09-0115:26:45 [Sybase][ODBC Driver]Invalidconnection string attribute
GenericLog GenericError 1 0000000d540461c1:0 2014-09-0115:26:45 SQL Message, 01S00: [SiebelDatabase][ODBC Driver]Invalid connection string attribute
DBCLog DBCLogError 1 0000000d540461c1:0 2014-09-01 15:26:45 [Sybase][ODBC Driver]Invalid connection string attribute
GenericLog GenericError 1 0000000d540461c1:0 2014-09-0115:26:45 SQL Message, 01S00: [SiebelDatabase][ODBC Driver]Invalid connection string attribute
SQLTraceAll SQLTraceAll 4 0000000d540461c1:0 2014-09-0115:26:45 (SQLDisconnect) Conn Handle: 142005168,Time: 0.003ms
SQLConnectOptions Disconnect 4 0000000d540461c1:0 2014-09-0115:26:45 (SQLDisconnect) Conn Handle:142005168, Time: 0.003ms
SQLTraceAll SQLTraceAll 4 0000000d540461c1:0 2014-09-0115:26:45 (SQLFreeConnect) ConnHandle: 142005168, Time: 0.201s
SQLConnectOptions Free Connection 4 0000000d540461c1:0 2014-09-01 15:26:45 (SQLFreeConnect)Conn Handle: 142005168, Time: 0.201s
Trace TracingInfo 3 0000000d540461c1:0 2014-09-0115:26:45 odbcconnect failed - retryin 10 seconds
GenericLog GenericError 1 0000000d540461c1:0 2014-09-0115:26:55 Error creating SQL Anywheredatabase template file (UTLOdbcConnect DBA/siebelmobiledb).
GenericLog GenericError 1 0000000d540461c1:0 2014-09-0115:26:56 Error in MainFunction(CreateDbTemplateFile)
GenericLog GenericError 1 0000000d540461c1:0 2014-09-0115:26:56 (gennewdb.cpp (610) err=524292sys=2) SBL-GDB-00004: Error in Main function.
GenericLog GenericError 1 0000000d540461c1:0 2014-09-0115:26:56 (smisched.cpp (911)err=524292 sys=0) SBL-GDB-00004: Error in Main function.
如果运行Generate New Database任务时报错SBL-GDB-00004: Error inMain function
日志中还有如下错误:
][ODBCDriver][Adaptive Server Anywhere]Disk full 'Fatal error: disk full /app/siebel/sia811/siebsrvr/dbtempl/siebel.dbf'
分析解决:
/app/siebel/sia811/siebsrvr/docking/DBXTRACT
发现这个目录下文件权限有点问题,只有写权限,没有读权限
于是通过chmod 命令把读权限加上,再尝试运行Generate New Database任务,这下恢复正常了。
真的很狗血,之前尝试很多support上提供的解决方法都不行,表面看起来解决方法与报错信息没任何关联性,但问题就是通过改权限解决了。
job跑完后查看生成的文件权限是755,之前文件权限是只能写,看来真是这个目录下文件权限不对造成创建任务失败。
/app/siebel/sia811/siebsrvr/docking/DBXTRACT
drwxr-xr-x 3 siebel oinstall 4096 Sep 2 17:41 121291440602848
drwxr-xr-x 3 siebel oinstall 4096 Jun 23 15:18 242731440602848