![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, How does a use efficiently move a table between tablespaces, given that the user doesn't have shell access to the server hosting the database? Is there some built-in routine that the user can execute? - Such as a function with the following parameters: admin_move_table( schemaname, tablename, destination_tablespace ) |
|
http://kovica.blogspot.com| -----------------------------~-~-~-~-~-~-~-~-~-~- In A World Without Fences Who Needs Gates? | Experience Linux. | -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~- |
#3
| |||
| |||
|
|
Hello, How does a use efficiently move a table between tablespaces, given that the user doesn't have shell access to the server hosting the database? Is there some built-in routine that the user can execute? - Such as a function with the following parameters: admin_move_table( schemaname, tablename, destination_tablespace ) |
|
http://kovica.blogspot.com| -----------------------------~-~-~-~-~-~-~-~-~-~- In A World Without Fences Who Needs Gates? | Experience Linux. | -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~- |
#4
| |||
| |||
|
|
Hello, How does a use efficiently move a table between tablespaces, given that the user doesn't have shell access to the server hosting the database? Is there some built-in routine that the user can execute? - Such as a function with the following parameters: admin_move_table( schemaname, tablename, destination_tablespace ) There is no such thing in DB2 for LUW. |
#5
| |||
| |||
|
|
Hello, How does a use efficiently move a table between tablespaces, given that the user doesn't have shell access to the server hosting the database? Is there some built-in routine that the user can execute? - Such as a function with the following parameters: admin_move_table( schemaname, tablename, destination_tablespace ) There is no such thing in DB2 for LUW. |
#6
| |||
| |||
|
|
admin_move_table( schemaname, tablename, destination_tablespace ) There is no such thing in DB2 for LUW. |
|
The easiest way is to do a CREATE TABLE LIKE followed by a LOAD from CURSOR, a DROP and finally a RENAME TABLE. |
#7
| |||
| |||
|
|
admin_move_table( schemaname, tablename, destination_tablespace ) There is no such thing in DB2 for LUW. |
|
The easiest way is to do a CREATE TABLE LIKE followed by a LOAD from CURSOR, a DROP and finally a RENAME TABLE. |
#8
| |||
| |||
|
|
Yes, that's also what I told the user to do. However, this will mean losing indexes, constraints, permissions, and triggers as far as I can see. You can check out the article Kovi pointed to. |
#9
| |||
| |||
|
|
Yes, that's also what I told the user to do. However, this will mean losing indexes, constraints, permissions, and triggers as far as I can see. You can check out the article Kovi pointed to. |
#10
| |||
| |||
|
|
Troels Arvin wrote: Yes, that's also what I told the user to do. However, this will mean losing indexes, constraints, permissions, and triggers as far as I can see. You can check out the article Kovi pointed to. It deals with these guys. Cheers Serge -- Serge Rielau DB2 Solutions Development IBM Toronto Lab |
![]() |
| Thread Tools | |
| Display Modes | |
| |