dbTalk Databases Forums  

Interactive sql(gui) locks the table/view

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss Interactive sql(gui) locks the table/view in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
knazare@bmc.com
 
Posts: n/a

Default Interactive sql(gui) locks the table/view - 08-18-2009 , 01:35 AM






Hi,

Our product creates one table each every day to store data
for a specific day. The tables created have identical
columns. Whenever a new table is created, a view is created
that includes all the underlying tables. If the view is
queried from the interactive sql (dbisqlg)(select * from
eg_event_view) and the client is kept open accidentally or
unintentionally, we're unable to delete the view and create
fresh view that includes new table created. The view
deletion call just gets hung in the JDBC.

Is there a way by which in interactive sql some options can
be set so that, it does not created shared locks on the
tables/views that are queried.

Thanks,
Krishna

Reply With Quote
  #2  
Old   
Chris Irie [Sybase]
 
Posts: n/a

Default Re: Interactive sql(gui) locks the table/view - 08-18-2009 , 08:45 AM






Hi Krishna,

DBISQL 11.0.0 includes an option to automatically release table locks. To
enable it, open the Options window, click "SQL Anywhere" in the left pane,
then check the "Automatically release database locks" box in the right pane.

-- Chris Irie
Sybase iAnywhere

<knazare (AT) bmc (DOT) com> wrote

Quote:
Hi,

Our product creates one table each every day to store data
for a specific day. The tables created have identical
columns. Whenever a new table is created, a view is created
that includes all the underlying tables. If the view is
queried from the interactive sql (dbisqlg)(select * from
eg_event_view) and the client is kept open accidentally or
unintentionally, we're unable to delete the view and create
fresh view that includes new table created. The view
deletion call just gets hung in the JDBC.

Is there a way by which in interactive sql some options can
be set so that, it does not created shared locks on the
tables/views that are queried.

Thanks,
Krishna

Reply With Quote
  #3  
Old   
knazare@bmc.com
 
Posts: n/a

Default Re: Interactive sql(gui) locks the table/view - 08-19-2009 , 12:11 AM



Hi Chris,

Thank You for the information. We're using 9.0.2 version. Is
there a fix available on 9.0.2 version that addresses this
issue?

Regards,
Krishna

Quote:
Hi Krishna,

DBISQL 11.0.0 includes an option to automatically release
table locks. To enable it, open the Options window,
click "SQL Anywhere" in the left pane, then check the
"Automatically release database locks" box in the right
pane.

-- Chris Irie
Sybase iAnywhere

knazare (AT) bmc (DOT) com> wrote in message
news:4a8a4ba0.16ee.1681692777 (AT) sybase (DOT) com...
Hi,

Our product creates one table each every day to store
data for a specific day. The tables created have
identical columns. Whenever a new table is created, a
view is created that includes all the underlying tables.
If the view is queried from the interactive sql
(dbisqlg)(select * from eg_event_view) and the client is
kept open accidentally or unintentionally, we're unable
to delete the view and create fresh view that includes
new table created. The view deletion call just gets hung
in the JDBC.
Is there a way by which in interactive sql some options
can be set so that, it does not created shared locks on
the tables/views that are queried.

Thanks,
Krishna


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.