Unknown tables belonging to tablespace flow_3432
Hi all,
when I issue
select * from user_tables
from the Sql processor page in the online htmldb environment, besides my tables, I get a dozen of tables named like 'BIN$4caPjO...', belonging to tablespace flow_3432.
Apparently I can freely drop them, however I am not sure of their origin as I am quite sure that demo tables had "normal" names like "demo_orders".
These objects however do not appear in the "tables" page of the object browser so I am wondering if they are just leftovers of demo applications I deleted or what else.
Bye,
Flavio
I just realized that these objects are the internal names of the objects kept in the recycle bin.
Bye,
Flavio
Similar Messages
-
Question about Full Table Scans and Tablespaces
Good evening (or morning),
I'm reading the Oracle Concepts (I'm new to Oracle) and it seems that, based on the way that Oracle allocates and manages storage the following premise would be true:
Premise: A table that is often accessed using a full table scan (for whatever reasons) would best reside in its own dedicated tablespace.
The main reason I came to this conclusion is that when doing a full table scan, Oracle does multiblock I/O, likely reading one extent at a time. If the Tablespace's datafile(s) only contain data for a single table then a serial read will not have to skip over segments that contain data for other tables (as would be the case if the tablespace is shared with other tables). The performance improvement is probably small but, it would seem that there is one nonetheless.
I'd like to have the thoughts of experienced DBAs regarding the above premise.
Thank you for your contribution,
John.Good morning :) Aman,
>
A little correction! A segment(be it a table,index, cluster, temporary) , would stay always in its own tablespace. Segments can't span tablespaces!
>
Fortunately, I understood that from the beginning :)
You mentioned fragmentation, I understand that too. As rows get deleted small holes start existing in the segment and those holes are not easily reusable because of their limited size.
What I am referring to is different though.
Let's consider a tablespace that is the home of 2 or more tables, the tablespace in turn is represented by one or more OS datafiles, in that case the situation will be as shown in the following diagram (not a very good diagram but... best I can do here ;) ):
Tablespace TablespaceWithManyTables
(segment 1 contents)
TableA Extent 1
TableA Block 1
TableA Block 2
Fragmentation may happen in these blocks or
even across blocks because Oracle allows rows
to span blocks
TableA Block n
End of TableA Extent 1
more extents here all for TableA
(end of segment 1 contents)
(segment 2 contents)
TableZ Extent 5
blocks here
End of TableZ Extent 5
more extents here, all for tableZ
(end of segment 2 contents)
and so on
(more segments belonging to various tables)
end of Tablespace TablespaceWithManyTablesOn the other hand, if the tablespace hosts only one table, the layout will be:
Tablespace TablespaceExclusiveForTableA
(segment 1 contents)
TableA Extent 1
TableA Block 1
TableA Block 2
Fragmentation may happen in these blocks or
even across blocks because Oracle allows rows
to span blocks
TableA Block n
End of TableA Extent 1
another extent for TableA
(end of segment 1 contents)
(segment 2 contents)
TableA Extent 5
blocks here
End of TableA Extent 5
more extents for TableA
(end of segment 2 contents)
and so on
(more segments belonging to TableA)
end of Tablespace TablespaceExclusiveForTableAThe fragmentation you mentioned takes place in both cases. In the first case, regardless of fragmentation, some segments don't belong to the table that is being serially scanned, therefore they have to be skipped over at the OS level. In the second case, since all the extents belong to the same table, they can be read serially at the OS level. I realize that in that case the segments may not be read in the "right" sequence but they don't have to because they can be served to the client app in sequence.
It is because of this that, I thought that if a particular table is mostly read serially, there might be a performance benefit (and also less work for Oracle) to dedicate a tablespace to it.
I can't wait to see what you think of this :)
John. -
Which table belong to which table
Wanted to know which table belongs to which tablespace or datafile.
example table name - ABC
Facing problem ORA-01653: unable to extend table ABC but no tablespace is mentionedRicha wrote:
Wanted to know which table belongs to which tablespace or datafile.
example table name - ABC
Facing problem ORA-01653: unable to extend table ABC but no tablespace is mentionedSELECT TABLESPACE_NAME FROM USER_TABLES WHERE TABLE_NAME = 'ABC'; -
ORA-1653: unable to extend table ABC in tablespace APPS_TS_TX_DATA
Facing problem
ORA-1653: unable to extend table ABC in tablespace APPS_TS_TX_DATA
Searched many forums but no particular updatePl do not post duplicates - Which table belong to which table
-
How to move table from one tablespace to other tablespace?
how to move table from one tablespace to other tablespace?
887274 wrote:
how to move table from one tablespace to other tablespace?
alter table <table_name> move tablespace <new_tablespace_name>;
Rebuild the indexes; alter index <index_name> rebuild <new_tablespace_name> online;Example;:
SQL> create table ttt( ID NUMBER PRimary key);
Table created.
SQL> insert into ttt values (1);
1 row created.
SQL> commit;
Commit complete.
SQL> select index_name, status from dba_indexes where table_name='TTT';
INDEX_NAME STATUS
SYS_C0010863 VALID
SQL> alter table ttt move tablespace users;
Table altered.
SQL> select index_name, status from dba_indexes where table_name='TTT';
INDEX_NAME STATUS
SYS_C0010863 UNUSABLE
SQL> alter index SYS_C0010863 rebuild tablespace users online;
Index altered.
SQL> select index_name, status from dba_indexes where table_name='TTT';
INDEX_NAME STATUS
SYS_C0010863 VALID
SQL> -
How will check the space taken by a single table in a tablespace ?
How will check the space taken by a single table in a tablespace ?
dba_segments is giving the same values even if I truncate the table?
Pls replyI need to know how can we find out the size of the table in the tablespace.use user_segments (bytes) column.
How much bytes it has taken ?value from user_segments, bytes column
If u delete records will the space be used for another table in same tablespace?No, it keep the space in the same table for future usage.
How can we free that space ?truncate or drop the table and reduce the size from tablespace, if you want to reclaim the space from the tablespace, OS level.
Jaffar -
Problem in Creating a table with Default Tablespace
Hi All,
1) Can anybody plz tell me the syntax to move a table from one tablespace to another.
2) Also, plz tell me the Syntax of when creating a table specifying the tablespace name also.
Regards1) Alter table <table_name> move tablespace <tablespace_name>
2) example of create table is given below
CREATE TABLE emp123
( employee_id NUMBER(6)
TABLESPACE <tablespace_name>
STORAGE (INITIAL 600
NEXT 600
MINEXTENTS 2
MAXEXTENTS 100 );
Read following doc for more details
http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14200/toc.htm
Cheer,
Virag -
Unknown table--- BIN$q9sxdXaDQgWvL8DWKxQFbw==$0
I found the following unknown table in my scott/tiger instance.this table is named as
BIN$q9sxdXaDQgWvL8DWKxQFbw==$0
i am unable to run desc command or drop command on this table
looking for some help regarding this
thanks and regardsHi,
Oracle introduce the concept of Recyclebin in 10g,whenever u drop the tables from schema then it automatically move to recyclebin and its names has changes with bin+some uq identifier,now in 10g ,after droping the tables from schema u can easily recover it by issuing one command.
and if u want to be purge this table then use
PURGE TABLE BIN$q9sxdXaDQgWvL8DWKxQFbw==$0;
http://download-uk.oracle.com/docs/cd/B14117_01/server.101/b10739/tables.htm#sthref2018
Kuljeet -
How to relocate table in new tablespace in Oracle 8i
Hi all
I would like to know how to relocate table from one tablespace to another tablespace in Oracle 8i. Currently, I create new table without data in new tablespace and then load data from old table in old tablespace. However, I think it is not efficient at all. Could anyone kindly advise any method to proceed it
ThanksNick has pointed out the best way to relocate a table. With the alter table move command you do not have to worry about FK or any other kind of constraints, table triggers, or grants. They all remain in place. You just need to rebuild the indexes as Nick pointed out.
There were some restrictions on the types of tables that could be moved with alter table move when the command first was introduced. I think LOB columns were unsupported at first. The old exp/imp had to be used for those cases.
HTH -- Mark D Powell -- -
SQLError: [-4004] (at 30) Unknown table name:DBPROCEDURES
Hi Guys,
1) I conducted a homogenous liveCache Copy from TPC System TSP to TSQ
2) Now when attempting to start liveCache in TSQ, I encountered the following error when starting liveCache:
/sapdb/data/wrk/LCQ/lcinit.log
START ****************************
liveCache LCQ (restart)
Tue Oct 30 16:20:53 SST 2007
installation path: /sapdb/LCQ/db
operating system : HP-UX
OK State OFFLINE
starting LCQ into ADMIN
OK
OK DBMServer 7.5.0 Build 021-123-084-954
starting LCQ into ONLINE
OK
creating liveCache application procedures
ERR
-24964,ERR_EXECUTE: error in program execution
1024,/sapdb/LCQ/db/bin/x_python /sapdb/LCQ/db/env/lapps.py -R /sapdb/LCQ/db -d L
CQ -u SUPERDBA,*
Installing APPS
Traceback----
File "/sapdb/LCQ/db/env/installib.py", line 378, in connectAndInstall
installRoutine (session, options)
File "/sapdb/LCQ/db/env/lapps.py", line 48, in install
"APPS"
File "/sapdb/LCQ/db/env/installib.py", line 163, in include
install (session, options)
File "/sapdb/LCQ/db/env/APPS.py", line 78, in install
delPackages = getExistingPackages (options.db, sapuser[0], sapuser[1])
File "/sapdb/LCQ/db/env/APPS.py", line 187, in getExistingPackages
return getExistingPackagesExecSQL (dbname, username, password)
File "/sapdb/LCQ/db/env/APPS.py", line 194, in getExistingPackagesExecSQL
cursor = session.sql (
Error----
sql.SQLError: sql.SQLError: [-4004] (at 30) Unknown table name:DBPROCEDURES
ERROR : liveCache LCQ not restarted (see /sapdb/data/wrk/LCQ/lcinit.log)
Tue Oct 30 16:21:14 SST 2007
END *****************************
Can anyone advice? Thanks.
Regards,
SimonHi Simon,
did you load the system tables after you performed the system copy?
Regards,
Melanie -
Moving table from one tablespace to another
Hi,
I want to move several tables from one tablespace to another as I know I need to rebuild indexes(as indexes are invalid after this) what I want to know is that constraints needs to recreate again after table movement, Thanks.what I want to know is that constraints needs to recreate again after table movementNo you don't need do that.
-
How to import partitioned tables in different tablespace
Hi everyone,
I try to import the partitioned tables in different tablespace.
Consider the following situation:
I have a dump file which is created by using "Export" utility. Some data are in partitioned tables, some of them are in non-partitioned tables. Also, all tables are located in "MYTBS" tablesapce. I try to import all data from this dump file to another database. I didn't get error messages when importing the data from non-partitioned tables. However, I got error message when importing the data from partitioned tables. The error message is: tablespace 'MYTBS' does not exist.
I just want to how I can solve this problem other than create 'MYTBS' tablespace for my new database.
Thanks in advance.
AngelHi,
I got the following error message:
IMP-00017: following statement failed with ORACLE error 959:
"CREATE TABLE "FACILITYCONNECTION",....., "CONNECTIONTYPE" "
"NUMBER(1, 0) NOT NULL ENABLE) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 25"
"5 PARALLEL ( DEGREE DEFAULT INSTANCES 1) NOLOGGING STORAGE( PCTINCREASE 0) "
"TABLESPACE "MYTBS" PARTITION BY RANGE ("CONNECTIONTYPE" ) (PARTITION "
""EXT" VALUES LESS THAN (1) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 S"
"TORAGE(INITIAL 65536) TABLESPACE "MYTBS" NOLOGGING, PARTITION "FAC" VA"
"LUES LESS THAN (2) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE(I"
"NITIAL 65536) TABLESPACE "MYTBS" NOLOGGING )"
IMP-00003: ORACLE error 959 encountered
ORA-00959: tablespace 'MYTBS' does not exist
Thanks.
Angel -
Moving partioned tables to different tablespaces in oracle 11g.
Dear All,
I need to move the partitioned table to different tablespace. I moved all the partitions individually and also the index.
however i have a issue now, when i check the view user_tables or dba_tables, i see null tablespaces correspomding to the table in the tablespace_name column.
how can i see the tablespace name in these views.Even thouh Sb has given you the correct answer, I am just showing you below cut and paste sqlplus screen of 11.2.0.1 :
test1@ORCL> create table t (x number)
2 partition by list (x)
3 (partition p1 values (10),
4 partition p2 values (20));
Table created.
test1@ORCL> select table_name,tablespace_name from user_tables;
TABLE_NAME TABLESPACE_NAME
T
1 row selected.
---Means tablespace_name.user_tables is always null for partition table(s).
---Ok, then how do I see the tablespace name?
test1@ORCL> select table_name, partition_name,tablespace_name
2 from user_tab_partitions
3 where table_name = 'T';
TABLE_NAME PARTITION_NAME TABLESPACE_NAME
T P1 USERS
T P2 USERS
2 rows selected.
test1@ORCL> ALTER TABLE T MOVE PARTITION P1 TABLESPACE EXAMPLE;
Table altered.
test1@ORCL> select table_name, partition_name,tablespace_name
2 from user_tab_partitions
3 where table_name = 'T';
TABLE_NAME PARTITION_NAME TABLESPACE_NAME
T P1 EXAMPLE
T P2 USERS
2 rows selected.
test1@ORCL> select table_name,tablespace_name from user_tables;
TABLE_NAME TABLESPACE_NAME
T
1 row selected.Just for your information please.
Regards
Girish Sharma -
TIPS(22) : EXPORTING TABLES BASED ON TABLESPACE NAME
제품 : ORACLE SERVER
작성날짜 : 1996-11-12
TIPS(22) : Exporting tables based on Tablespace name
====================================================
This script allows the user to enter the tablespace name and creates a list
of tables in exp format. Additional choices allow the export of over-extended
tables or tables over a certain size.
rem list.sql
rem Give list of tables depending on parameters
set termout on linesize 75 pagesize 0 verify off feedback off
clear buffer
clear columns
prompt
prompt This script will create list.out, which can be used
prompt to give export tables parameter file
prompt
accept Segment_Name Prompt 'Enter Seg Name : '
accept owner Prompt 'Enter Seg Owner : '
accept tsname prompt 'Enter TableSpace Name : '
accept min_extents Prompt 'Enter Minimum num of exts : '
accept min_size Prompt 'Enter Minimum seg size(M) : '
prompt
accept expchoice Prompt 'Is this list for exports ? : '
col srt noprint
SPOOL list.out
-- start bit
select 0 srt, decode(upper('&expchoice'),'Y','tables=(','')
from dual
union
-- data bit without end segment
select 1 srt, segment_name||decode(upper('&expchoice'),'Y',',','')
from dba_segments
where segment_type = 'TABLE'
and segment_name like upper('&&Segment_Name%')
and owner like upper('&&owner%')
and tablespace_name like upper('&&tsname%')
and extents >= (&&min_extents + 0)
and bytes >= (&&min_size + 0) * (1024*1024)
minus
-- remove last one (with ',' after the name)
select 1 srt, max(segment_name)||decode(upper('&expchoice'),'Y',',','')
from dba_segments
where segment_type = 'TABLE'
and segment_name like upper('&&Segment_Name%')
and owner like upper('&&owner%')
and tablespace_name like upper('&&tsname%')
and extents >= (&&min_extents + 0)
and bytes >= (&&min_size + 0) * (1024*1024)
union
-- data bit with end segment
select 3 srt, max(segment_name)||decode(upper('&expchoice'),'Y',')','')
from dba_segments
where segment_type = 'TABLE'
and segment_name like upper('&&Segment_Name%')
and owner like upper('&&owner%')
and tablespace_name like upper('&&tsname%')
and extents >= (&&min_extents + 0)
and bytes >= (&&min_size + 0) * (1024*1024)
order by 1,2
spool off
set heading on
****************************************************************Hi,
You will have to use dynamic sql to create your second cursor.
DECLARE
v_sql_query VARCHAR2(400);
TYPE cur_typ IS REF CURSOR;
c1 cur_typ;
mYRec MyTable%rowtype;
BEGIN
v_sql_query := 'select * from MyTable';
OPEN c1 FOR v_sql_query;
LOOP
FETCH c1 INTO mYRec;
EXIT WHEN c1%NOTFOUND;
EXIT WHEN c1%NOTFOUND IS NULL;
/*processing here*/
END LOOP;
CLOSE c1;
END;
Regards -
Can we create a table in temp tablespace?
Hi Support ,
I have confused about on point that Can we create a table in temp tablespace.
thanksI so not think the question is so bad except that it was as suggested something you can determine for yourself in 20 seconds:
> /
create table mark (fld1 number) tablespace tmp
ERROR at line 1:
ORA-02195: Attempt to create PERMANENT object in a TEMPORARY tablespace
Other database products allow users to create tables in the temporary tables such as SQL Server. I just tested using SQL Server 2008 R2 and I could create a table in TEMPDB.
SQL Server also creates temporary tables, create table #table_name, in TEMPDB. You can see these objects while in use.
IMHO -- Mark D Powell --
Maybe you are looking for
-
I tried to set up my wi fi but i typed in the wrong password, how can i change it?
My ipad prompted me to enter the password for my wifi network but of course i typed in the wrong one... now it is not giving me an option to retype it in for this wifi network it just opens pop up screen that says "unable to connect" my other ipad
-
How do you insert live web pages in keynote?
How do you insert live web pages in keynote?
-
How to specify custom table name for subclasses in Kodo 3?
I'm migrating our codes from Kodo 2.5.x to version 3. In Kodo 2.x, specifying the class/subclass table name uses the extension like this "@jdo.extension vendor-name="kodo" key="table" value="DyeStuffs"" when using XDoclet to generate the .jdo metadat
-
Time is taking more than usual in running a report???
hello expert, i have a report who run successfully in a usually normal time, but from few day it is taking more time than usual. i did not made any changes in code, every thing is same. please suggest me to tune report performance?? thanks yash
-
FileInputStream.read returning negative values
I'm trying to read binary data from a file and convert it to decimal. If I use a hex editor, through one section, I'll see the values as they actually are. Using read() on a FileInputStream object seems to randomly create negative values which are so