DB2:SQL1024N和ksh: 0403-057 Syntax error: `(' is not expected.報錯
現象:
TESTDB1:/#>su - db2inst3
$ db2 call “GET_DBSIZE_INFO(?,?,?,0)”
ksh: 0403-057 Syntax error: `(' is not expected.
$ exit
TESTDB1:/#>exit
解決方法:
TESTDB1:/#>su - db2inst3
$ db2 list db directory
System Database Directory
Number of entries in the directory = 1
Database 1 entry:
Database alias = TEST
Database name = TEST
Local database directory = /db2data/TEST
Database release level = d.00
Comment =
Directory entry type = Indirect
Catalog database partition number = 0
Alternate server hostname =
Alternate server port number =
$ db2 "call GET_DBSIZE_INFO(?,?,?,0)"
SQL1024N A database connection does not exist. SQLSTATE=08003
$ db2 connect to TEST ----------------問題就在於統計資料庫的時候,應該首先連線資料庫,不要被細節打敗!
Database Connection Information
Database server = DB2/AIX64 9.7.7
SQL authorization ID = DB2INST3
Local database alias = TEST
$ db2 "call GET_DBSIZE_INFO(?,?,?,0)"
Value of output parameters
--------------------------
Parameter Name : SNAPSHOTTIMESTAMP
Parameter Value : 2014-05-22-16.02.28.993761
Parameter Name : DATABASESIZE --------------資料庫已使用大小
Parameter Value : 515252224
Parameter Name : DATABASECAPACITY --------------資料庫總容量
Parameter Value : 10114924544
Return Status = 0
$
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/20802110/viewspace-1168848/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle安裝報錯syntax errorOracleError
- shell 指令碼報錯^M: syntax error near unexpected token指令碼Error
- DB2:ksh: db2: not found.DB2
- eclipse 引入外部js檔案報Syntax error on token 錯解決方案EclipseJSError
- 執行遷移檔案報錯: Syntax error or access violation: 1166 ...Error
- 如何解決"Parse error: syntax error"Error
- Syntax error, unrecognized expression: li[value=]ErrorZedExpress
- syntax error near unexpected token `Error
- exp tables sh: Syntax error: `(' is not expectedError
- 【shell 】syntax error in conditional expressionErrorExpress
- Solaris syntax error: unexpected end of fileError
- vipca報錯 Error 0PCAError
- CentOS7使用exp/imp時報錯:bash: syntax error near unexpected token `(CentOSError
- [報錯:字元太長] SQLSTATE [42000]: Syntax error or access violation: 1071 Specified key was t oo long;字元SQLError
- ERROR 1045 (28000): ProxySQL Error: 報錯ErrorSQL
- MYSQL SOURCE報錯 ERROR: ASCIIMySqlErrorASCII
- 帝國CMS提示parse error syntax error的解決方法Error
- 錯誤內容:You have an error in your SQL syntax; check the manual that corresponds to your MySQL serverErrorMySqlServer
- `jsonb` 報錯 `invalid input syntax for type timestamp with time zone ““JSON
- line 10:syntax error: unexpected end of fileError
- 如何解決"You have an error in your SQL syntax"ErrorSQL
- mysql報錯ERROR 1093MySqlError
- 【Redis】slaveof 報錯 Background transfer errorRedisError
- struts2報Error filterStart錯ErrorFilter
- 網站報錯:“Database Server Error”網站DatabaseServerError
- Laravel 8使用 佇列任務出現 「 syntax error, unexpected ')' 」錯誤解決Laravel佇列Error
- Linux 5中出現的-bash: syntax error near unexpected token `('錯誤LinuxError
- PbootCMS 升級後網站打不開,解析錯誤 Parse error: syntax error, unexpected ‘:’, expecting ‘{’怎麼辦boot網站Error
- aix6.1安裝oracle10.2.0.5報錯BEFORE CONTINUING:JAVA KSHAIOracleUIJava
- Springboot中配置動態sql查詢出現的錯誤syntax error, expect ‘)‘Spring BootSQLError
- 配置NDK syntax error: unexpected end of file 解決Error
- Ubuntu 系統 apt 報錯:relocation errorUbuntuAPTError
- pip install scrapy報錯:error: UnableError
- MySQL報錯 Error_code: 1045MySqlError
- 反序列 unserialize(): Error 報錯問題Error
- ORACLE dump kshOracle
- KSH 學習
- MySQL 報錯MySQL server syntax to use near 'OPTION SQL_SELECT_LIMIT=DEFAULT'MySqlServerMIT