Fixing Fragmentation [message #110093] |
Thu, 03 March 2005 08:11 |
setudunya
Messages: 6 Registered: March 2005 Location: Botswana
|
Junior Member |
|
|
I was trying to fix fragmentation by doing the following steps.
1. making export of system
2.Dropeed all user tables and sequences
3. Import data from the last export
when Importing it failled saying object exisits and nothing happened to the system, what should I do to drop tables so that I can later create during import.I am running oracle 8i.
|
|
|
|
Re: Fixing Fragmentation [message #110112 is a reply to message #110097] |
Thu, 03 March 2005 09:49 |
setudunya
Messages: 6 Registered: March 2005 Location: Botswana
|
Junior Member |
|
|
The error message is not from The SYS objects its all the user tables, it fails to create any user tables from import because there weere not droped and the databse status is the same as before started the process.
|
|
|
|
Re: Fixing Fragmentation [message #110207 is a reply to message #110118] |
Fri, 04 March 2005 02:33 |
setudunya
Messages: 6 Registered: March 2005 Location: Botswana
|
Junior Member |
|
|
Thank you for your response, I think the whole procedure is okay, its only that I ran the commands when there were users in the machine, how do I make sure that no users are on the machine. I am suing Oracle 8i running on SunSolaries 5.8 platform.
|
|
|
|
|
Re: Fixing Fragmentation [message #110366 is a reply to message #110335] |
Mon, 07 March 2005 01:08 |
setudunya
Messages: 6 Registered: March 2005 Location: Botswana
|
Junior Member |
|
|
#*************************************************************************
# Script to import all its users from a full export file (compressed)
#*************************************************************************
#
# This is the compress filename without the .Z
filename=$1
userid=$2
rm -f $filename reorgimp.out
/etc/mknod $filename p
compress -dc $filename > $filename &
imp $userid file=$filename \
fromuser=stud,gen,person,place,asset,rpt,dbas,lib,finc,miss,card,kman,med, \
web,pcm,appl buffer=90960 commit=y \
>>reorgimp.out 2>&1
#
# Create public synonyms
#
sqlplus $userid \@createsynxx.sql
cat createsynxx.out >> reorgimp.out
|
|
|