Autoextend user tablespace or add datafile
Hello,
My USERS tablespace had problem today when loading a file using sqlldr. It stopped loading halfway through the file.
The allocated is set to 1900 mb and the used was at 1850. I only have 1 datafile for users tablespace. I have autoextensible to YES.
Why did it not extend the tablespace when I should still have 2gb free??
I dropped a couple unused user tables and it reduced the used amount, then I was able reran the sqlldr load and it completed.
Should I create a new datafile
ALTER TABLESPACE USERS ADD DATAFILE ‘/usr/lib/oracle/xe/oradata/XE/users01.dbf’ SIZE 2000M AUTOEXTEND OFF;
or increase the allocation
ALTER DATABASE DATAFILE ‘/usr/lib/oracle/xe/oradata/XE/users.dbf’ RESIZE 3000M;
Thanks for the help...
Why did it not extend the tablespace when I should still have 2gb free??
Might be maxsize was defined at the time of tablespace creation
For example
SQL> select DBMS_METADATA.GET_DDL('TABLESPACE', 'USERS') from dual;
DBMS_METADATA.GET_DDL('TABLESPACE','USERS')
CREATE TABLESPACE "USERS" DATAFILE
'C:\ORACLE\ORACLEXE\ORADATA\XE\USERS.DBF' SIZE 104857600
AUTOEXTEND ON NEXT 10485760[b] MAXSIZE 5120M
LOGGING ONLINE PERMANENT BLOCKSIZE 8192
EXTENT MANAGEMENT LOCAL AUTOALLOCATE SEGMENT SPACE MANAGEMENT AUTO
Should I create a new datafile
ALTER TABLESPACE USERS ADD DATAFILE
‘/usr/lib/oracle/xe/oradata/XE/users01.dbf’ SIZE
2000M AUTOEXTEND OFF;
or increase the allocation
ALTER DATABASE DATAFILE
‘/usr/lib/oracle/xe/oradata/XE/users.dbf’ RESIZE
3000M; It is good idea to add new file and having multiple file with same size.
Also in future if needed you can relocate datafile to reduce I/O contention.
Similar Messages
-
Error: add datafile to an tablespace
I have a 10g database in Sun machine.
I issued the following command and got this error. What the problem:
SQL> l
1 alter TABLESPACE "TEST" add DATAFILE
2 '/local/ORACLE/product/10.2.0/oradata/orcl/test_02.dbf' SIZE 10m
3* EXTENT MANAGEMENT LOCAL UNIFORM SIZE 40960 SEGMENT SPACE MANAGEMENT AUTO
SQL> /
EXTENT MANAGEMENT LOCAL UNIFORM SIZE 40960 SEGMENT SPACE MANAGEMENT AUTO
ERROR at line 3:
ORA-00933: SQL command not properly ended
However, if I issue the following commanc, it went through
1 alter TABLESPACE "TEST" add DATAFILE
2* '/local/ORACLE/product/10.2.0/oradata/orcl/test_02.dbf' SIZE 10m
SQL> /
SQL>
Any help will be appraciated!I believe that is the syntax for add datafile nothing else can be done other than this.
ADD TEMPFILE 'filespec' SIZE int K
[ AUTOEXTEND ON [NEXT int K | M]
[MAXSIZE {UNLIMITED|int K|int M}] ]
SS -
Dynamic alter tablespace statement to add datafiles
Hi Gurus,
I need a PL/SQL stored procedure which will accept a datafile name as parameter and dynamically create and execute "alter tablespace" command to add this passed datafile dynamically.
Thanks
Amitava.See this demo : 11.2.0.1 Windows
Before running this demo, I logged into SYS account and said :
grant create tablespace to scott;
grant select on dba_tablespaces to scott;
grant select on dba_data_files to scott;
grant alter tablespace to scott;
even scott user is having DBA role. Then I login as scott user and :
set serveroutput on;
create or replace procedure create_tbs(tbs_name in varchar2, filename in varchar2) as
rt dba_tablespaces%rowtype;
str_tbs varchar2(500);
v_tbs varchar2(100);
begin
str_tbs := 'create tablespace ' || tbs_name || ' datafile '''||filename|| ''' size 1m' ;
dbms_output.put_line(str_tbs);
select * into rt from dba_tablespaces where tablespace_name=upper(tbs_name);
dbms_output.put_line('tablespace exists');
exception
when no_data_found then
execute immediate str_tbs;
dbms_output.put_line('tablespace was created');
end;
select tablespace_name from dba_tablespaces;
TABLESPACE_NAME
SYSTEM
SYSAUX
UNDOTBS1
TEMP
USERS
EXAMPLE
PERFSTAT
7 rows selected.
SQL> exec create_tbs('TESTTBS','c:\data\test.dbf');
create tablespace TESTTBS datafile 'c:\data\test.dbf' size 1m
tablespace was created
PL/SQL procedure successfully completed.
SQL> exec create_tbs('SYSAUX','c:\data\test.dbf');
create tablespace SYSAUX datafile 'c:\data\test.dbf' size 1m
tablespace exists
PL/SQL procedure successfully completed.
SQL> drop tablespace testtbs including contents and datafiles;
Tablespace dropped.
SQL>Now I am going to create add datafile procedure, which is your question :
column file_name for a50;
column tablespace_name for a20;
select file_name,tablespace_name from dba_data_files;
FILE_NAME TABLESPACE_NAME
E:\APP\SERVERROOM\ORADATA\ORCL\USERS01.DBF USERS
E:\APP\SERVERROOM\ORADATA\ORCL\UNDOTBS01.DBF UNDOTBS1
E:\APP\SERVERROOM\ORADATA\ORCL\SYSAUX01.DBF SYSAUX
E:\APP\SERVERROOM\ORADATA\ORCL\SYSTEM01.DBF SYSTEM
E:\APP\SERVERROOM\ORADATA\ORCL\EXAMPLE01.DBF EXAMPLE
E:\APP\SERVERROOM\ORADATA\ORCL\PERFSTAT PERFSTAT
6 rows selected.
create or replace procedure alter_tbs(tbs_name in varchar2, filename in varchar2) as
rt dba_data_files%rowtype;
str_tbs varchar2(500);
v_tbs varchar2(100);
begin
str_tbs := 'alter tablespace ' || tbs_name || ' add datafile '''||filename|| ''' size 10m' ;
dbms_output.put_line(str_tbs);
select * into rt from dba_data_files where tablespace_name=upper(tbs_name) and file_name=upper(filename);
dbms_output.put_line('Datafile already exists.');
exception
when no_data_found then
execute immediate str_tbs;
dbms_output.put_line('Datafile added.');
end;
SQL> exec alter_tbs('users','E:\APP\SERVERROOM\ORADATA\ORCL\USERS01A.DBF');
alter tablespace users add datafile 'E:\APP\SERVERROOM\ORADATA\ORCL\USERS01A.DBF' size 10m
Datafile added.
PL/SQL procedure successfully completed.
SQL> column file_name for a50;
SQL> column tablespace_name for a20;
SQL> select file_name,tablespace_name from dba_data_files;
FILE_NAME TABLESPACE_NAME
E:\APP\SERVERROOM\ORADATA\ORCL\USERS01.DBF USERS
E:\APP\SERVERROOM\ORADATA\ORCL\UNDOTBS01.DBF UNDOTBS1
E:\APP\SERVERROOM\ORADATA\ORCL\SYSAUX01.DBF SYSAUX
E:\APP\SERVERROOM\ORADATA\ORCL\SYSTEM01.DBF SYSTEM
E:\APP\SERVERROOM\ORADATA\ORCL\EXAMPLE01.DBF EXAMPLE
E:\APP\SERVERROOM\ORADATA\ORCL\PERFSTAT PERFSTAT
E:\APP\SERVERROOM\ORADATA\ORCL\USERS01A.DBF USERS
7 rows selected.
SQL> alter tablespace users drop datafile 'E:\APP\SERVERROOM\ORADATA\ORCL\USERS01A.DBF';
Tablespace altered.
SQL> select file_name,tablespace_name from dba_data_files;
FILE_NAME TABLESPACE_NAME
E:\APP\SERVERROOM\ORADATA\ORCL\USERS01.DBF USERS
E:\APP\SERVERROOM\ORADATA\ORCL\UNDOTBS01.DBF UNDOTBS1
E:\APP\SERVERROOM\ORADATA\ORCL\SYSAUX01.DBF SYSAUX
E:\APP\SERVERROOM\ORADATA\ORCL\SYSTEM01.DBF SYSTEM
E:\APP\SERVERROOM\ORADATA\ORCL\EXAMPLE01.DBF EXAMPLE
E:\APP\SERVERROOM\ORADATA\ORCL\PERFSTAT PERFSTAT
6 rows selected.
SQL>Similar thread : Create a procedure to dynamically add a tablespace
Regards
Girish Sharma -
Alter tablespace add datafile taking too much time
Hi All,
DB Version :10.2.0.1
OS Version: Windows Server 2003 32 Bit
When i am trying to add datafile into tablespace it takes lot of time approx 8 hours.but earlier it take approx 40 to 60 mins
When i check Alert log file i got the message:
ORA-604 signalled during: alter tablespace crbt add datafile
I check there is sufficent space in Disk as i need to add Datafile of 30G.
Syntax i am using is
ALTER TABLESPACE TEST
ADD DATAFILE 'C:\TEST02.DBF' SIZE 30G
Can anyone tell me exactly the reason for the same
Thanks in advanceHi Aman,
The space is added sometime but most of the time i am getting this error
SQL> ALTER TABLESPACE IN_OCT2011
2 ADD DATAFILE 'E:\CAT\IN_OCT04.DBF' SIZE 30G REUSE;
ALTER TABLESPACE IN_OCT2011
ERROR at line 1:
ORA-19502: write error on file "E:\CAT\IN_OCT04.DBF", blockno 11008
(blocksize=8192)
ORA-27072: File I/O error
OSD-04008: WriteFile() failure, unable to write to file
O/S-Error: (OS 33) The process cannot access the file because another process
has locked a portion of the file.
Kindly help over the same
Edited by: Vikas Kohli on Nov 5, 2011 8:38 PM -
Hi All,
In my database I have users tablespace and its datafile is users01.dbf. File size is 24.5 GB, but used data is 1.2 GB. I got this information from OEM, see below image:
https://picasaweb.google.com/100555146235257804098/Oracle_a1#5759303022195932370
How can I free the unused 23GB space?
Just to let you know about my background knowledge, I am an OBI report developer.
Thanks!Just in case if this also helps.
I got a query to find the free space from
SELECT /* + RULE */ df.tablespace_name "Tablespace",
df.bytes / (1024 * 1024) "Size (MB)",
SUM(fs.bytes) / (1024 * 1024) "Free (MB)",
Nvl(Round(SUM(fs.bytes) * 100 / df.bytes),1) "% Free",
Round((df.bytes - SUM(fs.bytes)) * 100 / df.bytes) "% Used"
FROM dba_free_space fs,
(SELECT tablespace_name,SUM(bytes) bytes
FROM dba_data_files
GROUP BY tablespace_name) df
WHERE fs.tablespace_name (+) = df.tablespace_name
GROUP BY df.tablespace_name,df.bytes
UNION ALL
SELECT /* + RULE */ df.tablespace_name tspace,
fs.bytes / (1024 * 1024),
SUM(df.bytes_free) / (1024 * 1024),
Nvl(Round((SUM(fs.bytes) - df.bytes_used) * 100 / fs.bytes), 1),
Round((SUM(fs.bytes) - df.bytes_free) * 100 / fs.bytes)
FROM dba_temp_files fs,
(SELECT tablespace_name,bytes_free,bytes_used
FROM v$temp_space_header
GROUP BY tablespace_name,bytes_free,bytes_used) df
WHERE fs.tablespace_name (+) = df.tablespace_name
GROUP BY df.tablespace_name,fs.bytes,df.bytes_free,df.bytes_used
ORDER BY 4 DESC;
Results are:
TABLESPACE SIZE(MB) FREE(MB) %FREE %USED
USERS 24544.1875 23344.25 95 5
UNDOTBS1 965 878.25 91 9
EXAMPLE 100 21.6875 22 78
SYSAUX 828.8125 48.1875 6 94
SYSTEM 760 6.3125 1 99
TEMP 1315 0 0 100
thanks for your time let me know if you need any other information. -
Add datafile in a network drive
Hi,
I mapped in my NT machine a network disk, but when I try to create a datafile there, the next error message appear.
ALTER TABLESPACE CRM_DATA ADD DATAFILE 'h:\database\crm\dbs\CRM_TAB_5.DBF' SIZE 6000M
ORA-01119: error in creating database file 'h:\database\crm\dbs\CRM_TAB_5.DBF'
ORA-27040: skgfrcre: create error, unable to create file OSD-04002: unable to open file
O/S-Error: (OS 5) Access is denied.
Somebody know if I need to do something before for Oracle identified this network drive like a other local disk? Can I create datafiles in a network disk?
Thanks.
nullThe architecture of Windows is due to this problem. Keep in mind that YOU do have this share available but the Oracle process has not. You yourself are the connecting user of the share and this share is availbale to you and not to the Oracle process. Oracle itselfs runs in the background (and not on your console) with another user (default Windows internal user: SYSTEM) and you cannot get this share available for this user. The previous reply (run the Oracle service using another DOMAIN user) will help.
-
Add Datafile in Logical Standby Database
Hi,
I have add one datafile in our primary RAC DB. We had logical standby database with file management is equal to manual. Both the primary RAC and logical standby db have the different storage structure. When the archive applied on the logical standby database its throws the error " error in creating datafile 'path'";
Would appreciate if come to know the steps to add the datafile in this kind of environment. and how can i overcome from this problem now except skip transaction for that ddl.
Thanks in advance.
DewanWhen the archive applied on the logical standby database its throws the error " error in creating datafile 'path'";Can you post the error message with the number.
From Manual..
8.3.1.2 Adding a Tablespace and a Datafile When STANDBY_FILE_MANAGEMENT Is Set to MANUAL
The following example shows the steps required to add a new datafile to the primary and standby database when the STANDBY_FILE_MANAGEMENT initialization parameter is set to MANUAL. You must set the STANDBY_FILE_MANAGEMENT initialization parameter to MANUAL when the standby datafiles reside on raw devices.
Add a new tablespace to the primary database:
SQL> CREATE TABLESPACE new_ts DATAFILE '/disk1/oracle/oradata/payroll/t_db2.dbf'
2> SIZE 1m AUTOEXTEND ON MAXSIZE UNLIMITED;
Verify the new datafile was added to the primary database:
SQL> SELECT NAME FROM V$DATAFILE;
NAME
/disk1/oracle/oradata/payroll/t_db1.dbf
/disk1/oracle/oradata/payroll/t_db2.dbf
Perform the following steps to copy the tablespace to a remote standby location:
Place the new tablespace offline:
SQL> ALTER TABLESPACE new_ts OFFLINE;
Copy the new tablespace to a local temporary location using an operating system utility copy command. Copying the files to a temporary location will reduce the amount of time the tablespace must remain offline. The following example copies the tablespace using the UNIX cp command:
% cp /disk1/oracle/oradata/payroll/t_db2.dbf
/disk1/oracle/oradata/payroll/s2t_db2.dbf
Place the new tablespace back online:
SQL> ALTER TABLESPACE new_ts ONLINE;
Copy the local copy of the tablespace to a remote standby location using an operating system utility command. The following example uses the UNIX rcp command:
%rcp /disk1/oracle/oradata/payroll/s2t_db2.dbf standby_location
Archive the current online redo log file on the primary database so it will get transmitted to the standby database:
SQL> ALTER SYSTEM ARCHIVE LOG CURRENT;
Use the following query to make sure that Redo Apply is running. If the MRP or MRP0 process is returned, Redo Apply is being performed.
SQL> SELECT PROCESS, STATUS FROM V$MANAGED_STANDBY;
Verify the datafile was added to the standby database after the archived redo log file was applied to the standby database:
SQL> SELECT NAME FROM V$DATAFILE;
NAME
/disk1/oracle/oradata/payroll/s2t_db1.dbf
/disk1/oracle/oradata/payroll/s2t_db2.dbf -
Hi,
Can anybody let me know how to add datafile using ASM
DB- ORACLE 10.2
OS-RHELSQL> select name from v$asm_diskgroup;
NAME
DATA1
DATA
Above we are having two asm diskgorup
SQL> alter tablespace users add datafile ‘+data1′ size 5M;
Tablespace altered.
SQL> select name from v$datafile;
NAME
+DATA1/nonasmtoasm/datafile/system.259.721108803
+DATA1/nonasmtoasm/datafile/undotbs1.261.721108865
+DATA1/nonasmtoasm/datafile/sysaux.260.721108841
+DATA1/nonasmtoasm/datafile/users.262.721108873
+DATA1/nonasmtoasm/datafile/users.269.721187971 -
Hello,
I have a database set up with a separate disk volume for users.dbf.
I also create an additional tablespace in a different disk volume by
create tablespace test_users datafile '/opt/vxfs/temp10/test_users.dbf' size 128K autoextend on next 8K ;
"test_users" tablespace is dedicated for the test table. I run some queries on the test table.
As expected majority of the physical IO transactions are in the volume that holds the "test_users.dbf". But what confuses me is the few physical IO happening on "users.dbf" volume. Although the number of IO blocks transferred is less in users.dbf, compared to test_users.dbf, it is significantly high.
Note: No other table is queried that could be using users.dbf. Actually there is no other table that I created in the database.
system details : HPUX ,oracle11G
Any explanation for physical IO activity in users.dbf or some references would be great.
TIA,
NanjappanSeems like you are not factoring two caches into your equation.
There is an Oracle db buffer cache sitting between SQL + PL/SQL and the objects in the USERS tablespace.
There is a Unix file system cache sitting between Oracle accessing the physical datafile and the o/s kernel fs driver performing actual physical I/O on that file and that fs volume. -
Can I add datafile bigger then 2GB
Hi all,
Can I add datafile bigger then 2GB (on the raw device) to the tablespace ?
I get err:
ORA-01119 : error in creating database file '/opt/DISK/data02'
ORA-27042 : not enought space on raw partition to fullfill request
Aditional information : 1
And
partition has size 4096543 kB
when I use partition with size 2GB it is Ok.
Is it limitation by Linux ?
I have linux 7.1
and oracle 8.1.7
What can I do ?
thanks
nullIf you want to use raw devices with linux you have to use the utility 'raw' to map the device. You could also use the Logical Volume Manager (or both)
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Martin Silar ([email protected]):
I do not know where it is my problem.
I wont to create datafile on raw disk and
I wont to need raw disk with 4GB size, becose
I can not create more logic devices on my SCSI disk then 15 logic partition. Disk have 39GB.
I have problem with add raw datafile to tablespace.
Have you sambody idea ?
thanks Martin<HR></BLOCKQUOTE>
null -
System tablespace Vs User Tablespace
I'm running oracle 8i at Win2000 Server.
I have a database which have two SYSTEM tablepspaces and One User tablespace. Both SYSTEM Tablepspaces are near to FULL. Right now , The database performance is very poor. I can't understand why my SYSTEM tablespaces are growing fastly instead of User Tablepspace.You cannot have multiple SYSTEM tablespaces... Do you mean that you have multiple datafiles associated with your SYSTEM tablespace?
Unless you assign users a default tablespace, objects that they create without specifying a tablespace will be placed in the SYSTEM tablespace, which is a bad thing. You probably have user objects in your SYSTEM tablespace.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
Add datafile or increase the size?
Hi, I have this question. When is recomendable to add a datafile on the tablespace and when is recomendable to increase the size of the datafile on the tablespace?
Thanks!What i feel is
if you dont have free space in the file system then adding datafile to another filesystem is the only option.In this case we cannot increase the datafilesize.
NO free space in filesystem---add datafile in another filsystem
else increase data file size.
increasing the datafile increases the time in recovery incase if datafile is crashed.
Datawarehouse Db suits big tablespaxces.
Correct me if i am wrong -
Hey to all
I want to drop USER tablespace wid data file but as we know many oracle users Scott OE data reside in users. How can I protect their data. One method which I read on net to export and import once again is quite cumbersome I run this query
SELECT
owner
, segment_name
, segment_type
FROM
dba_segments
WHERE
tablespace_name='USERS'
it give me two user OE and SCOTT. How can I protect their data before drop the user tablespaceHi..
As you said direct load takes place, then the rows which are inserted are always inserted above the HWM.So the datafile size size kept on increasing.
i read about segment advisor i run the advisor it shrink the segment but users tablespace size on OS still 200 GB could anyone tell why??You would have run alter table <table_name> shrink space; -- This statement will procede in two steps:
- The first step makes the segment compact by moving rows further down to free blocks at the beginning of the segment.
- The second step adjusts the high watermark. For this Oracle needs an exclusive table lock,but for a very short moment only.
The HWM goes below, and table are now more well organized.This command doesn't resize the datafile at the OS level.So, the datafile sizes will remain the same.One thing which you can do is resize(decrease) the datafile.
MINIMUM DATAFILE SIZE
COLUMN block_size NEW_VALUE v_block_size
SELECT TO_NUMBER(value) AS block_size
FROM v$parameter
WHERE name = 'db_block_size';
COLUMN tablespace_name FORMAT A20
COLUMN file_name FORMAT A50
COLUMN current_bytes FORMAT 999999999999999
COLUMN shrink_by_bytes FORMAT 999999999999999
COLUMN resize_to_bytes FORMAT 999999999999999
SET VERIFY OFF
SET LINESIZE 200
SELECT a.tablespace_name,
a.file_name,
a.bytes/1024/1024 AS current_MB,
(a.bytes - b.resize_to)/1024/1024 AS shrink_by_MB,
b.resize_to/1024/1024 AS resize_to_MB
FROM dba_data_files a,
(SELECT file_id, MAX((block_id+blocks-1)*&v_block_size) AS resize_to
FROM dba_extents
GROUP by file_id) b
WHERE a.file_id = b.file_id
ORDER BY a.tablespace_name, a.file_name;Edited by: Anand... on Feb 17, 2009 12:01 PM -
Unable to drop USERS tablespace.
Hi All,
I am trying to drop USERS tablespace and facing below error.
PLATFORM:
OS: Linux Ubuntu 9.04 LTS
SQL> select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
PROBLEM:
SQL> drop tablespace users including contents and datafiles cascade constraints;
drop tablespace users including contents and datafiles cascade constraints
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-24005: must use DBMS_AQADM.DROP_QUEUE_TABLE to drop queue tables
When I see, dba_queue_tables...
SQL> select owner, queue_table, object_type from dba_queue_tables;
OWNER QUEUE_TABLE OBJECT_TYPE
SYS ALERT_QT SYS.ALERT_TYPE
SYS AQ$_MEM_MC
SYS AQ_EVENT_TABLE SYS.AQ$_EVENT_MESSAGE
SYS AQ_SRVNTFN_TABLE SYS.AQ$_SRVNTFN_MESSAGE
SYS KUPC$DATAPUMP_QUETAB SYS.KUPC$_MESSAGE
SYS SCHEDULER$_EVENT_QTAB SYS.SCHEDULER$_EVENT_INFO
SYS SCHEDULER$_JOBQTAB SYS.ANYDATA
SYS SYS$SERVICE_METRICS_TAB SYS.SYS$RLBTYP
SYSMAN MGMT_NOTIFY_QTABLE SYSMAN.MGMT_NOTIFY_NOTIFICATION
SYSTEM DEF$_AQCALL
SYSTEM DEF$_AQERROR
11 rows selected.
Also, there are no tables in USERS tablespace now, as I've moved all to other tablespace.
SQL> select count(*) from dba_tables where tablespace_name='USERS';
COUNT(*)
0
USERS tablespace is not permanent tablespace as I've changed it to some other, still the problem.
SQL> select property_name, property_value from database_properties where PROPERTY_NAME = 'DEFAULT_PERMANENT_TABLESPACE'
PROPERTY_NAME PROPERTY_VALUE
DEFAULT_PERMANENT_TABLESPACE DEV
Can you please help me drop the USERS tablespace.Thanks Hemant,
I queried as below.
SQL> select count(*) from dba_segments where tablespace_name='USERS';
COUNT(*)
7
SQL> SELECT owner, segment_name, segment_type from dba_segments where tablespace_name='USERS';
OWNER SEGMENT_NAME
SEGMENT_TYPE
IX SYS_IOT_TOP_62384
INDEX
IX SYS_IOT_TOP_62386
INDEX
IX SYS_IOT_TOP_62390
INDEX
IX SYS_IOT_TOP_62392
INDEX
IX SYS_IOT_TOP_62395
INDEX
IX SYS_IOT_TOP_62397
INDEX
IX SYS_IOT_TOP_62401
INDEX
7 rows selected.
SQL> drop user ix cascade;
drop user ix cascade
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-24005: must use DBMS_AQADM.DROP_QUEUE_TABLE to drop queue tables
Then connected as 'IX' user.
IX@devdb> exec sys.DBMS_AQADM.DROP_QUEUE_TABLE(queue_table=>'SYS_IOT_TOP_62384',force => TRUE);
BEGIN sys.DBMS_AQADM.DROP_QUEUE_TABLE(queue_table=>'SYS_IOT_TOP_62384',force => TRUE); END;
ERROR at line 1:
ORA-24002: QUEUE_TABLE IX.SYS_IOT_TOP_62384 does not exist
ORA-06512: at "SYS.DBMS_AQADM_SYS", line 4084
ORA-06512: at "SYS.DBMS_AQADM", line 197
ORA-06512: at line 1
IX@devdb> alter index SYS_IOT_TOP_62384 rebuild tablespace dev;
alter index SYS_IOT_TOP_62384 rebuild tablespace dev
ERROR at line 1:
ORA-28650: Primary index on an IOT cannot be rebuilt
IX@devdb> SELECT INDEX_TYPE,TABLE_NAME,TABLESPACE_NAME,STATUS FROM USER_INDEXES;
INDEX_TYPE TABLE_NAME TABLESPACE_NAME STATUS
LOB STREAMS_QUEUE_TABLE DEV VALID
NORMAL ORDERS_QUEUETABLE DEV VALID
NORMAL STREAMS_QUEUE_TABLE DEV VALID
NORMAL AQ$_ORDERS_QUEUETABLE_S DEV VALID
NORMAL AQ$_STREAMS_QUEUE_TABLE_C DEV VALID
NORMAL AQ$_STREAMS_QUEUE_TABLE_S DEV VALID
LOB STREAMS_QUEUE_TABLE DEV VALID
LOB ORDERS_QUEUETABLE DEV VALID
IOT - TOP AQ$_STREAMS_QUEUE_TABLE_T USERS VALID
IOT - TOP AQ$_STREAMS_QUEUE_TABLE_I USERS VALID
IOT - TOP AQ$_STREAMS_QUEUE_TABLE_H USERS VALID
IOT - TOP AQ$_STREAMS_QUEUE_TABLE_C USERS VALID
IOT - TOP AQ$_ORDERS_QUEUETABLE_T USERS VALID
IOT - TOP AQ$_ORDERS_QUEUETABLE_I USERS VALID
IOT - TOP AQ$_ORDERS_QUEUETABLE_H USERS VALID
15 rows selected.
IX@devdb> alter table AQ$_STREAMS_QUEUE_TABLE_T move tablespace dev;
alter table AQ$_STREAMS_QUEUE_TABLE_T move tablespace dev
ERROR at line 1:
ORA-08108: may not build or rebuild this type of index online -
Error when dropping a user/tablespace
Hi
I am trying to drop user/tablespaces, but I got the following error
SQL> drop user SM92 cascade;
drop user SM92 cascade
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-00942: table or view does not exist
Currently this user has not tables or view, the statement select * from all_tables where owner='SM92' return no row
ANyone knows why I can't drop this user? What should I check?
Thanks
LiHi, probably the user has dependency with other schemas, please review the Note:361576.1 into metalink site.
Good luck.
Regards.
Maybe you are looking for
-
Hi, Video chat application is missing in my playbook. I checked my OS... it is Blackberry OS 1.0.8. How to download ? any one knows?
-
The following is an issue copied from BBCi forum. The fault is being increasing reported by other IPad users. Although the post is by another (TUCKER), I, and others have an identical problem. It occurs to me that the fault may not be a BBCi Player i
-
Help! I have some problems with SB Live
My previous sound card was "creative vibra 28". I replaced it with a SB li've! 5.. I am very pleased with the sound card plus and an Altec Lansing 5. speaker. Audio songs, Gaming is just great. But I am facing serious problem with MIDI sound. I am ge
-
Html:select doesnt set the form property if there is no option tag
Hello, I have a select box that I am dynamically populating through ajax. I have it populated in the create screen. I save the form elements saved. I am able to get the data on a detail screen when i do a bean:write But when i try to see the selected
-
Burn downloaded videos and replay on different computer?
I am a sailor currently serving over in the Persian Gulf. I am also missing all of my TV shows while over here. I have been deployed since September 13th, so that is the latest version of iTunes I have. Does anybody know if it is possible to have som