473,511 Members | 14,990 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

tablespace SYSTEM used by others user, not sys. Help!

hi,
i need advise and guidance from experts.
Today, I discovered about 1464 tables created in SYSTEM tablespace and
the owner is dev_user.

As, i read from ORACLE 101 DBA's it said :'System tablespace is a
tablespace user to stored objects belong to user SYS only. if, we do
not ensure this, the SYSTEM tablespace will :
• Tend to get very fragmented
• Have potentially severe contention against it and affect performance

we cannot alter SYSTEM tablespace offline, there is no way to rebuild
this tablespace without rebuilding the whole database and this can be
very time consuming.'

Then, wat should i do? please advise.
regards,
tracykim
Jul 19 '05 #1
7 12638
x
You should move all tables and rebuild all indexes to different tablespace.

something like:

alter table my_table move tablespace users;

alter index my_index rebuild tablespace users;

Use dba_tables and dba_indexes to find out which tables and indexes are in
system tablespace. You could use it like this:
select 'alter table ' || table_name || ' move tablespace users;'
from dba_tables
where tablespace_name='SYSTEM' and owner not in('SYS','SYSTEM')

Output of this query is a script which you should run to move all the
tables. Do the same for indexes.
Jul 19 '05 #2
"x" <x@x.hr> wrote in message news:<c9**********@ls219.htnet.hr>...
You should move all tables and rebuild all indexes to different tablespace.

something like:

alter table my_table move tablespace users;

alter index my_index rebuild tablespace users;

Use dba_tables and dba_indexes to find out which tables and indexes are in
system tablespace. You could use it like this:
select 'alter table ' || table_name || ' move tablespace users;'
from dba_tables
where tablespace_name='SYSTEM' and owner not in('SYS','SYSTEM')

Output of this query is a script which you should run to move all the
tables. Do the same for indexes.


I think the first step should be to alter the user dev_user to have a
default tablespace other than SYSTEM. If dev_user is not a DBA I
would then alter the user's quota/privilege depending on exactly how
this ID is to be used to prevent it from using SYSTEM. This will stop
any new non-SYS objects from being created in the SYSTEM tablespace.

Moving or dropping the objects is the next step, and depending on
object usage may take a while.

HTH -- Mark D Powell --
Jul 19 '05 #3
hi, guys,
tanz for the help. Just to make sure i run the rite script, here is
the sql, how i found out non-sys user created a tables in SYSTEM
tablespace. In fact, this dev_user have been assigened a default
tablespace which is dev_user Tablespace. I wonder, how can the table
created by them is in system schema? Pls let me know, if u have the
answer.

1 select owner, TABLESPACE_NAMe, table_name
2 from dba_tables
3 where TABLESPACE_NAMe='SYSTEM'
4 AND OWNER='DEV_USER'

SQL> /
OWNER TABLESPACE_NAME
TABLE_NAME
------------------------------ ------------------------------
--------------------------
DEV_USER SYSTEM
CES_DETAIL
DEV_USER SYSTEM CES_MAIN
DEV_USER SYSTEM
CHARGES_LOOKUP
DEV_USER SYSTEM
CHECK_AGING
DEV_USER SYSTEM
CHECK_CREDITOR







Ma*********@eds.com (Mark D Powell) wrote in message news:<26**************************@posting.google. com>...
"x" <x@x.hr> wrote in message news:<c9**********@ls219.htnet.hr>...
You should move all tables and rebuild all indexes to different tablespace.

something like:

alter table my_table move tablespace users;

alter index my_index rebuild tablespace users;

Use dba_tables and dba_indexes to find out which tables and indexes are in
system tablespace. You could use it like this:
select 'alter table ' || table_name || ' move tablespace users;'
from dba_tables
where tablespace_name='SYSTEM' and owner not in('SYS','SYSTEM')

Output of this query is a script which you should run to move all the
tables. Do the same for indexes.


I think the first step should be to alter the user dev_user to have a
default tablespace other than SYSTEM. If dev_user is not a DBA I
would then alter the user's quota/privilege depending on exactly how
this ID is to be used to prevent it from using SYSTEM. This will stop
any new non-SYS objects from being created in the SYSTEM tablespace.

Moving or dropping the objects is the next step, and depending on
object usage may take a while.

HTH -- Mark D Powell --

Jul 19 '05 #4
x
I wonder, how can the table
created by them is in system schema? Pls let me know, if u have the
answer.


create table my_table (x varchar2(1)) tablespace system

Easy as that. If your dev_user has right priviledges he can create table
where ever he wants.

Jul 19 '05 #5
hi, x
dev_user only have priviledge to create table under his own tablespace
which is dev_user only. he only granted the priviledge 'create table'
not 'create any table'
"x" <x@x.hr> wrote in message news:<c9**********@ls219.htnet.hr>...
I wonder, how can the table
created by them is in system schema? Pls let me know, if u have the
answer.


create table my_table (x varchar2(1)) tablespace system

Easy as that. If your dev_user has right priviledges he can create table
where ever he wants.

Jul 19 '05 #6
tracy wrote:
hi, x
dev_user only have priviledge to create table under his own tablespace
which is dev_user only. he only granted the priviledge 'create table'
not 'create any table'
"x" <x@x.hr> wrote in message news:<c9**********@ls219.htnet.hr>...
I wonder, how can the table
created by them is in system schema? Pls let me know, if u have the
answer.


create table my_table (x varchar2(1)) tablespace system

Easy as that. If your dev_user has right priviledges he can create table
where ever he wants.


Unless granted the resource role, which offers quota unlimited on
any tablespace. Unless you specifically do
alter user quota 0 on system;
your dev_user can still create objects in the system tablespace
--

Regards,
Frank van Bortel

Jul 19 '05 #7
Frank van Bortel <fv********@netscape.net> wrote in message news:<c9**********@news1.tilbu1.nb.home.nl>...
tracy wrote:
hi, x
dev_user only have priviledge to create table under his own tablespace
which is dev_user only. he only granted the priviledge 'create table'
not 'create any table'
"x" <x@x.hr> wrote in message news:<c9**********@ls219.htnet.hr>...
I wonder, how can the table
created by them is in system schema? Pls let me know, if u have the
answer.
create table my_table (x varchar2(1)) tablespace system

Easy as that. If your dev_user has right priviledges he can create table
where ever he wants.


Unless granted the resource role, which offers quota unlimited on
any tablespace. Unless you specifically do
alter user quota 0 on system;
your dev_user can still create objects in the system tablespace

Frank provided the information on how to lock the user out if it has
the resource role. Privileges should be aligned to what the ID has to
be able to do and no more.

Depending on the age of the objects it is also possible that they were
created before the default tablespace of the user was changed and were
never relocated.

Once you review and modify the privileges as necessary you still need
to clean up the system tablespace.

-- Mark D Powell --
Jul 19 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
6277
by: gecho | last post by:
New to oracle, but I'm coming from the sybase side. I took over one of our oracle production databases (1.5 Tb) while the regular dba is out. I got errors (unable to extend temp segment) for two...
1
5007
by: xixi | last post by:
There is one thing I don't understand, I have default tablespace userspace1 is database managed type, with total freepages 506048. another one called tmpxx is DMS type too, with 525120 free pages....
2
554
by: Bing Wu | last post by:
I have a user defined tablespace: Tablespace ID = 4 Name = DATASPACE Type = Database managed space...
4
13026
by: Ulrich Sprick | last post by:
Hi all, (DB2 V7.1 for WinNT) I am looking for a way to determine the free space in my tablespace (containers), but I can't find out. The tablespace in question is a system managed tablespace in...
13
3328
by: Jean-Marc Blaise | last post by:
Hi there, I would like to know the meaning of direct_writes in a tablespace snapshot on a tablespace that is: * SMS (db2empfa ON) * Only 1 table is accessed in INSERT - Z locked (Not logged...
2
28528
by: Kums | last post by:
What is the maximum permissible size of a database? Is there any limitation. What is the maximum # of tablespace's allowed in a database? Thanks for your response.
4
4627
by: Joachim Klassen | last post by:
DB2 V8.2 FP10 on Windows I tested the following HADR scenario: - a new tablespace on a new filesytem is created on the primary System - the replay on standby fails because of lacking permissions...
5
5245
by: denero_watz | last post by:
I got an error like this below. I already have a tablespace using 32K pagesize. The message below also says: "If such a table space already exists, eliminate one or more columns from the system...
7
189
by: tracy | last post by:
hi, i need advise and guidance from experts. Today, I discovered about 1464 tables created in SYSTEM tablespace and the owner is dev_user. As, i read from ORACLE 101 DBA's it said :'System...
0
7237
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7137
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7349
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7074
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7506
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5659
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5063
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3219
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3210
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.