![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
While rebuilding ASA7 database, I am getting an error in the step, 'creating views.' Error is: "SQL Error:Table 'Tkt_VW' not found." But when I run select * from Tkt_VW in Interactive SQL, I get the result and message 'Estimated 946128 rows returned in query.' How can I troubleshoot it. |
#3
| |||
| |||
|
|
The error might be caused by a view that references another view, and the referenced view has not been created yet. In version 7 this could be solved using dbunload's -j option, e.g. "-j 2". In later versions, view dependencies were solved using another mechanism which made the -j option unnecessary. FWIW, version 7 is very old. The current SQL Anywhere version is 11. SQL Anywhere Developer Community: http://www.sybase.com/developer/libr...ere-techcorner SQL Anywhere Blog Center: http://www.sybase.com/sqlanyblogs Deepali wrote: While rebuilding ASA7 database, I am getting an error in the step, 'creating views.' Error is: "SQL Error:Table 'Tkt_VW' not found." But when I run select * from Tkt_VW in Interactive SQL, I get the result and message 'Estimated 946128 rows returned in query.' How can I troubleshoot it. |
#4
| ||||
| ||||
|
|
Jeff, I find this option when I use the Unload utility but I was using the Rebuild utility provided with ASA7. In rebuild utility, I didn't get an option of this kind wherein I can increase the no of view dependency. I only get the option whether to replace the db or create a new one, or reload into an existing one in Rebuild utility. |
|
How much should I increase the no. of max view dependency in Unload utility. |
|
I used the unload utility and set the no. to 10 and it generated the reload.sql file and unload folder. How can I rebuild using these. Is this the command I should execute in Interactive sql. dbisql -c "dbn= ;uid=DBA;pwd= " reload.sql |
|
I am not getting the previous error but another one while rebuilding. I have attached screen shots for the same. Please help.. |
#5
| |||
| |||
|
|
Hi Jeff, Thank you for replying.. Jeff, I find this option when I use the Unload utility but I was using the Rebuild utility provided with ASA7. In rebuild utility, I didn't get an option of this kind wherein I can increase the no of view dependency. I only get the option whether to replace the db or create a new one, or reload into an existing one in Rebuild utility. How much should I increase the no. of max view dependency in Unload utility. I used the unload utility and set the no. to 10 and it generated the reload.sql file and unload folder. How can I rebuild using these. Is this the command I should execute in Interactive sql. dbisql -c "dbn= ;uid=DBA;pwd= " reload.sql Also, if instead of using this command if I run Rebuild utility, it unloads the db again. Will these changed settings be considered or is it a fresh unload which automatically runs as part of the Rebuild and doesn't take the settings specified with unload utility. I am not getting the previous error but another one while rebuilding. I have attached screen shots for the same. Please help.. Thanks again... Deepali Hi Deepali, The solution is to increase the view dependency depth when unloading. (Either use "dbunload -j #", or increase the number of the "Maximum view dependency level" in Sybase Central's wizard when unloading - see the attached screenshot from v8.) Regards, Deepali wrote: If I create the view that is being referenced will that be a solution. -- Jeff Albion, Sybase iAnywhere iAnywhere Developer Community : http://www.sybase.com/developer/libr...ere-techcorner iAnywhere Documentation : http://www.ianywhere.com/developer/product_manuals SQL Anywhere Patches and EBFs : http://downloads.sybase.com/swd/summ...&timeframe =0 Report a Bug/Open a Case : http://case-express.sybase.com/cx/ [Attachment: scc-view-dependency.jpg] ------------------------------------------------------------------------ ------------------------------------------------------------------------ |
#6
| |||
| |||
|
#7
| ||||
| ||||
|
|
When I get the error for the view and click on Ok, rebuilding gets aborted and it roll backs.Also, if instead of using this command in cmd dbisql -c "dbn= ;uid=DBA;pwd= " reload.sql because its giving an error: dbisql not recognized as an internal or external command |
|
if I run Rebuild utility after Unload utility, it unloads the db again. Will the changed settings of max view dependency in unload utility be considered or is it a fresh unload which automatically runs as part of the Rebuild and doesn't take the settings specified with Unload utility. |
|
Regarding dbunload -c "UID=...;PWD=;...;ENG=RunningServer;DBN=RunningDat abase" -an mydatabase.db Does dbunload command only unload the db or reload it as well. Moreover since the db is running how can it be reloaded. |
|
When I ran this command, I got disk full error and unloading rolled back: dbunload -c "UID=;PWD=;ENG=geneva;DBN=geneva" -j 10 -an travel.db e:\dolphinbackup how can I change the directory for travel.db file as it is creating travel.db in C: drive and this drive doesn't have space to contain the .db file. |
#8
| |||
| |||
|
|
... dbisql -c "dbn= ;uid=DBA;pwd= " reload.sql ... |
#9
| |||
| |||
|
|
... dbisql -c "dbn= ;uid=DBA;pwd= " reload.sql ... IIRC with ASA7 the executable name for ISQL was dbisqlc.exe (C/C++-Version which I preferred), while the Java version went as dbisqlg.exe (never came to love that one though). HTH Reimer |
#10
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |