Move index
Hello,
How can I move indexes from data tablesapce USERS to index tablespace IDX? Since there are hundreds of them, I need a easy way.
Thanks.
Run and spool:
select 'alter index '| |index_name| |' rebuild tablespace &NEW_INDEX_TS ;'
from all_indexes
where tablespace_name=upper('&OLD_INDEX_TD')
Then close the spool and execute the spooled file.
null
Similar Messages
-
Move index to a different tablespace using dbms_redefinition?
Hi all, I am trying to move indexes to new tablespaces. Can I use oracle built-in package DBMS_REDEFINITION for this? As far as I know dbms_redefinitoin only works for tables rebuilt online? I am running 10.2.0.5 on linux red hat, and the index sizes from 100MB to 10gb. Thank you in advance all.
Since one can seamlessly move an index from one tablespace to another by simply doing:
SQL> alter index <index_name> rebuild tablespace <tablespace_name>;even considering DBMS_REDEFINITION for this makes no sense at all.
If your boss has any further questions, show him the Oracle documentation:
http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_redefi.htm
Quote from that page:
"The DBMS_REDEFINITION package provides an interface to perform an *online redefinition of tables*."
(Emphasis added by me.)
Hope that helps,
-Mark -
Hi;
The senerio is i have one table in schema A, i want to move this table to schema B (yesterday i had this question answer). Now i move my table (in schema A) to schema B... Question is:
1. If i move table to schema B, should i move to table's index to schema B too? If answer NO, it can be couse any problem
2. If i move table to schema B how i can move its index too?
3. If one index created in schema A how i can move it schema B? Same way like questin 2?
Thanks a lot
Edited by: aaaaa on Oct 7, 2009 12:06 AMaaaaa wrote:
Thanks for quick replay;
In my case table is schema A and this tables's index is created Schema B, Should i move index to schema A? Is it neccessary?
Yes because 2 tables in 2 differents schemas are independant objects.
Index are only created automatically by Oracle at table creation if index are used by table constraints (primary key or unique).
The best way is index and table in same schema?Yes.
If i move index other schema should i give any grant?
No if the index is created in the table schema.
Thanks a lot -
How to move indexes to another tablespace through script
Hi Dear,
How i can move indexes to another tablespace through a script which just gets new tablespace name, owner name and move and rebuild indexes in one go.
Thank u for your prompt Help.
RegardsHi,
alter session set sort_area_size = 15000000;
spool index.sql
select 'alter index '||owner||'.'||index_name||' rebuild tablespace TARGET_TBS;'
from dba_indexes
where tablespace_name = 'INIT_TBS'
@index.sql
This script move and rebuild index from one tablespace INIT_TBS to an other tablespace TARGET_TBS
Hope this help you
Nicolas. -
Two flash movies index problem while in different div
hi,
i have created a page and i use peelawayad file which is in
flash. i was already using two div on home page which contains
flash movies. but now when i placed peelawayad flash movie on home
page. it appears on bottom of both div layers. i tired my best with
stylesheet. z-index and many other tricks which i know best. but
still not able to sucess. can someone help me to getride of this
issue. help would be appriciated. thanks
here is the current site link which has the flash movies
embeded.
http://www.visionetsystems.com/test/
for movies already in home page has following tags and
script.
<script type="text/javascript">
var FO = { movie:"visionet/visionetindexbuttn2.swf",
width:"764", height:"41", majorversion:"8", build:"0",
id:"flashmovie", menu:"0", flashvars:"rootPath=/"};
UFO.create(FO, "quicklinks01");
</script>
<div id="quicklinks01" style="z-index:4;"><img
src="images/visionetindexbuttn2.jpg" width="764" height="41"
border="0" usemap="#Map3"></div>
<script type="text/javascript">
var FO = { movie:"swf/vsi_technology.swf", width:"764",
height:"229", majorversion:"8", build:"0", id:"flashmovie",
menu:"0", flashvars:"rootPath=/"};
UFO.create(FO, "casestudy");
</script>
<div id="casestudy" style="z-index:3;"><img
src="images/vsihome.jpg" width="764" height="229" border="0"
usemap="#Map2"></div>
and peelaway ad has the following JS file which create the
peelawayad on right top corner.
Das Copyright dieses Scriptes liegt beim Autor.
Bitte die Lizenzbedingungen beachten, und ausgefüllt
zurücksenden.
var esel = new Object();
MODIFY TARGET URL
esel.ad_url = escape('
http://events.mortgagebankers.org/servicing2008/register');
// Change URL to be redirected to when clicking Peel Away Ad
END TARGET URL
esel.small_path = 'swf/esel_s.swf'; // Enter the URL of the
Peel Away Corner Flash
esel.small_image = escape('images/expo100.jpg'); // URL of
the Image behind the Peel
esel.big_path = 'swf/esel_b.swf'; // Enter the URL of the
Large Peel Away Corner
esel.big_image = escape('images/expo.jpg'); // URL of the Big
Image Behind the Peel
// Do NOT Change anything under this
line---------------FINISHED----STOP------------------------------------------------------ ----
esel.small_width = '100';
esel.small_height = '100';
esel.small_params = 'ico=' + esel.small_image;
esel.big_width = '650';
esel.big_height = '650';
esel.big_params = 'big=' + esel.big_image + '&ad_url=' +
esel.ad_url;
function sizeup987(){
document.getElementById('eselcornerBig').style.top = '0px';
document.getElementById('eselcornerSmall').style.t op =
'-1000px';
function sizedown987(){
document.getElementById("eselcornerSmall").style.t op =
"0px";
document.getElementById("eselcornerBig").style.top =
"-1000px";
esel.putObjects = function () {
document.write('<div id="eselcornerSmall"
style="position:absolute;width:'+ esel.small_width +'px;height:'+
esel.small_height +'px;z-index:5;right:0px;top:0px;">');
document.write('<object
classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write('codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"');
document.write(' id="eselcornerSmallObject"
width="'+esel.small_width+'" height="'+esel.small_height+'">');
document.write(' <param name="allowScriptAccess"
value="always"/> ');
document.write(' <param name="movie" value="'+
esel.small_path +'?'+ esel.small_params +'"/>');
document.write(' <param name="wmode" value="transparent"
/>');
document.write(' <param name="quality" value="high" />
document.write(' <param name="FlashVars"
value="'+esel.small_params+'"/>');
document.write('<embed src="'+ esel.small_path + '?' +
esel.small_params +'" name="eselcornerSmallObject"
wmode="transparent" quality="high" width="'+ esel.small_width +'"
height="'+ esel.small_height +'" flashvars="'+ esel.small_params
+'" allowscriptaccess="always" type="application/x-shockwave-flash"
pluginspage="
http://www.macromedia.com/go/getflashplayer"></embed>');
document.write('</object></div></script>');
document.write('<div id="eselcornerBig"
style="position:absolute;width:'+ esel.big_width +'px;height:'+
esel.big_height +'px;z-index:5;right:0px;top:0px;">');
document.write('<object
classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write('codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"');
document.write(' id="eselcornerBigObject" width="'+
esel.big_width +'" height="'+ esel.big_height +'">');
document.write(' <param name="allowScriptAccess"
value="always"/> ');
document.write(' <param name="movie" value="'+
esel.big_path +'?'+ esel.big_params +'"/>');
document.write(' <param name="wmode"
value="transparent"/>');
document.write(' <param name="quality" value="high" />
document.write(' <param name="FlashVars" value="'+
esel.big_params +'"/>');
document.write('<embed src="'+ esel.big_path + '?' +
esel.big_params +'" id="eselcornerBigEmbed"
name="eselcornerBigObject" wmode="transparent" quality="high"
width="'+ esel.big_width +'" height="'+ esel.big_height +'"
flashvars="'+ esel.big_params +'" swliveconnect="true"
allowscriptaccess="always" type="application/x-shockwave-flash"
pluginspage="
http://www.macromedia.com/go/getflashplayer"></embed>');
document.write('</object></div>');
setTimeout('document.getElementById("eselcornerBig
").style.top = "-1000px";',1000);
esel.putObjects();
i am also attaching all files in zip with this thread.
Source
Zip File
thanks
Shahid HussainHi users,
Thanks for reply.
Actually the problem is -
For portrait dimensions are -
width 20
height 30
for landscape , obviously it will be
width - 30
height - 20
Thus , for second page - table width is 20 while page width is 30 and so 10 cm space remains blank on right side of page
user says that right side should not be blank, rather you extend table width to whole page width.
thats where the problem is -
Move indexes to a different tablespace
What is the best and easiest method to move all indexes/constraints to a different tablespace. I have 2 tablespaces one for data and the other for the indexes. At present, I have all data and indexes all in one tablespace. I would like to separate the indexes to another tablespace(which is reserved specifically for the indexes)
ThanksYou do not move constraints.
You can use the command:
ALTER INDEX index_name REBUILD TABLESPACE new_tablespace; -
I want move indexes from one tablespace to other tablespace
i'd like to know how i get move the index from one tablespace to other tablespace.
Thank's
[]'s
Vitor - BrasilThank's for the answer, but i didn`t understand. May you explain better? I`m need to very much!! I want move the procedures from one tablesapce to other tablespace, because when i export the tables to one tablespace, the oracle export to other tablespace. I have to move the tables, but i dìdn`t get move the procedures!!
Thank's
[]'s
Vitor - Brasil -
Move Index problem,help!
My script as follow:
SQL> SELECT 'ALTER INDEX '||INDEX_NAME||' REBUILD TABLESPACE ABC_INDX;'
2 FROM DBA_INDEXES
3 WHERE OWNER='ABC';
ALTER INDEX PK_USER_ID REBUILD TABLESPACE ABC_INDX;
ALTER INDEX UK_ID REBUILD TABLESPACE ABC_INDX;
SQL>spo offThen I only leave :
ALTER INDEX PK_USER_ID REBUILD TABLESPACE ABC_INDX;
ALTER INDEX UK_ID REBUILD TABLESPACE ABC_INDX;
........in my scrip.
SQL>@abc.sql
ORA-01418:specified index does not exist
..........I issued command:sql>select index_name,status from dba_indexes where owner='ABC';all the index are valid there.
Many thanks!Hi, you have a mistake into sql statement, you must especify the index ower, please try with this
SELECT 'ALTER INDEX ' || OWNER || '.' || INDEX_NAME||' REBUILD TABLESPACE ABC_INDX;'2 FROM DBA_INDEXES3 WHERE OWNER='ABC';
Luck.
Have a good day.
Regards. -
Move index between two tablespaces
My oracle806 database have two tablespaces,
all indexes of my tables are in tablespace 'user_data',
now I want to transfer the indexes into another tablespace.Who can show me one script to finish the task?
tks in advanced.Hi,
The below should help
set pages 0
set lines 120
spool rebuild_index.sql
select 'alter index '||index_name||' rebuild tablespace <new_ts_name>;'
from user_indexes
where tablespace_name = 'USER_DATA';
spool off
@rebuild_index.sql
Regards,
Sunil -
Things to do after move tables and indexes to another tablespace
dear friends.
last night i move indexes and tables from tbs1 to tbs2.
I checked:
- valid objects, everything is ok.
- indexes and tables was move ok.
Anything else that i must to check ???
Pls, could you help me ???
Really thanks.
chijarthanks to answers my friends
is correct, i was moved tables: alter table <OWNER.TABLE> move tablespace <NEW TBS>; and my indx: ALTER INDEX <OWNER.INDEX> rebuild tablespace <NEW TBS>...
i wanted to know what things i must to do after i applied that movement.
I forgeted recollect statistics, but i recently do it, thanks to you.
So... its appears that i did it ok. !!!
Thanks
cesar. -
Hi Team,
Please tell me any difference b/w alter index <index> rebuild or alter index <index> rebuild move.
Is there any difference that more space will be released if I move index to diffrenet tablespace and move move back to orginal tablespace.
I know that if we use move option we can move index to different tablespace,
Regards,
jitEven if you would do lots of dml's, that's not certainly means that you need the rebuilding of the index. If your assertion is based on this that there would be some "holes" within the leaf blocks which wont be reused and would require a rebuild, it's wrong then since Oracle would take care of these things on its own. So again, what criteria, other than an OLTP db you used to conclude that you need rebuilding of indexes?
But I just wanted to know If I go for alter index rebuild or alter index rebuild move and move back the indexes, which option will be best for me mean by which option I can reclaim more space.Well, I am sorry to say but I think you really don't know very well both the commands. The commands don't differ in the space reclaim given by them but in the way they do the rebuild. Please read the documentation to know what both commands do and how? BTW, from where you picked the command alter index rebuild move since I am not sure that such command exists?
Aman.... -
Flash movie not loading in IE 8....??
Hi, ive made a flash site in Flash CS4 .The flash movie doesnt load either on my computer or on web server, but only in IE 8 ??, in all other browsers(FF,Safari,opera) it works????
Why does this happen?
This is the page http://www.fragojo-nekretnine.com/
and the code
<script language="JavaScript" type="text/javascript">
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0',
'width', '1280',
'height', '650',
'src', 'index',
'quality', 'high',
'pluginspage', 'http://www.adobe.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'index',
'bgcolor', '#242424',
'name', 'index',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'index',
'salign', ''
); //end AC code
</script>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="1280" height="650" id="index" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="index.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#242424" /> <embed src="index.swf" quality="high" bgcolor="#242424" width="1280" height="650" name="index" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
</object>
</noscript>
</body>
</html>
Please help!!!
Thankswww.micca.co.uk/1871productions/showreels.html
If you try any in IE8, they stop half way and do not give a smooth stream. I am wondering if I have to stream differently and not via the progressive download stream as I have??! -
Hello
I hope someone can guide me in the right direction. I am
producing a cd in Flash.
I want my flash files to play inside of a container/frame.
The container will be viewed as a red bar at the top and bottom of
the flash, containing my play, pause buttons etc. The flash movie
will play inside of the red bars.
Can the container be a separate object object as I want the
heading to be maintained in the container, so that heading changes
will be updated on the container extending the flash movie
lifespan.
I also want to add a preloader which is built into the
container to let users know that the next movie is loading.
Can the container be built in flash or would I have to use a
scripting language?
My flash files currently run as external movies - is this ok
or would they need to be internal?
Can anyone help?Hi Zvordauk!
You could easily accomplish your goal in LiveStage Professional... but since you are writing here with this question I will assume you don't have this program (LiveStage's parent company, TotallyHip, went down the tubes a few years ago).
Which leaves us with an HTML solution (you could use the browser to launch the QuickTime Player instead of playing on a web page). You begin with the default movie and then a list of movies plays as defined by the code structure.
The following is the code frame work:
QTNEXTn="<Filename> T<Target>" or GOTOn
QTNEXT is the command.
n is an index number for your movie.
Filename is the name/pathway for your movie. If you put all your movies into one folder it would make the naming scheme easier.
Target should be "myself" which replaces the current running movie with the next one on the list (as opposed to opening in a new window or the QT Player).
An example here: http://www.wdd3.info/Xper/Multi-Loader.html
Below shows the style of the code I used in an HTML Snippet in iWeb for the above example:
======
<embed src="First.mov" height="496" width="640"
QTNEXT1="<Second.mov> T<myself>"
QTNEXT2="<Third.mov> T<myself>"
QTNEXT3=GOTO0 >
Note the last line of code... instead of a movie file reference there is a GOTO command, in this case "0" (zero) - which plays the opening default movie (index of 0) again and creates an infinite loop - or it could be any movie (number) in the index - or have a third movie play instead, etc. 255 files is the limit that can be sequenced.
Of course you would want to wrap the above code in an object tag so Windows users could view it. -
Determining in which tablespace the indexes are imported to
Hello all,
Often, the tables are in one tablespace and the indexes of these tables are on another tablespace.
If we have a DMP file done on a schema-level. Is there a way to import this DMP by specifying in the IMP that the tables of the exported schema are to be placed in one Tablespace and the indexes of these table are to be put on another tablespace?
Thnx for the replies.
Good day,
SamBasically, when you do import, oracle try to look for the same tablespace as source to import tables. If not found, then it quits with errors.
If the ignore=y parameter is specified with import command and when there is no tablespace as source tbs in the target, oracle will try to import in the default tablespace of the user/schema.
However, there is no command that gives the flexibility to import table in one tablespace and index in another tablespace.
Why dont you create the same tablesspaces in Target database as in source database?
You can always move index to another tablespae after import.
Jaffar -
Disable content indexing for passive nodes
I have three node DAGs where one node is DR in another site.
Have noticed large amounts of traffic on my production network to DR and discovered it was indexing.
Is it best practice to disable the indexing service on passive nodes? In the event of DR you would lose search, and you would have to disable client experience checks. But other than that, I cannot a real downside. Can someone
confirm?
As an alternative is it possible to move indexing to my replication network?Hi RAY1357,
Great information from JasonApt.
We can disabled on a specific mailbox database by using EMS:
Set-MailboxDatabase <name> -IndexEnabled:$False.
To disable indexing completely on a mailbox server, we can just stop the "Microsoft Exchange Search Indexer" service.
Found a blog, it applied to Exchange 2007, just for your reference:
Exchange 2007 Search - Part 2: Content Indexing
http://blogs.technet.com/b/exchangesearch/archive/2010/07/02/exchange-2007-search-part-2-content-indexing.aspx
Hope it is helpful
Thanks
Mavis
Mavis Huang
TechNet Community Support
Maybe you are looking for
-
Need to convert the Varchar2 to decimal
Hi, I need to convert source sybase varchar2 record in to decimal record in Target DB2 table by using the function in Oracle data integrator. In my source table, column is defined as varchar2 (4) and in target table same column has defined as Decimal
-
II'm no longer able to copy photos from email to iPa stream. The Save menu does not come up Shen I press on the image like it did before.
-
File upload onComplete failing
I'm using the FileReference.browse method to allow users to uplodd an .mp3 to a script. I am using AS2, publishing to Flash8. I am looking for and logging events ... when I first created this the oncomplete returned success and the file uploaded fine
-
How to do Subsitution of Tables
I need to looking for every tables that have one column with the same name. (Select table_name from dba_tab_columns where column_name like 'ACCOUNTING') After, I need to looking for each one tables a value into that column. But my problem is how to d
-
J2SE file adapter checkModificationInterval
Hello, We're using a standalone J2SE sender file adapter. This adapter polls at a certain directory. (XML)Files are posted in this directory via ftp. When files that are polled become relatively large >2 MB it occurs that part of the file is already