Empty TABLESPACE_NAME in DBA_TABLES
In what situations will the TABLESPACE_NAME field in the DBA_TABLES be empty for a non IOT table?
Regards,
Charles Theophilus
A partitioned table simply doesn't have a tablespace ...
Tablespaces then are "attributed" to partitions or to subpartitions and this information can be seen in DBA_TAB_PARTITIONS
Similar Messages
-
Drop empty tablespaces after OATM in 11.5.9
Hi All,
In 11.5.9 we don't have the option of "Generate script to drop empty tablespaces". Could you suggest a best way to generate this in 11.5.9?
ThanksHussein,
Could you please confirm the steps for moving the below objects from APPLSYSD after OATM
SQL> select segment_name, segment_type from dba_segments
where tablespace_name ='APPLSYSD'; 2
SEGMENT_NAME
SEGMENT_TYPE
SYS_IL0002020632C00006$$
LOBINDEX
SYS_LOB0002020632C00006$$
LOBSEGMENT
SQL>
SQL> select OWNER, TABLE_NAME, COLUMN_NAME, SEGMENT_NAME from dba_lobs where SEGMENT_NAME like '%SYS_LOB0002020632C00006$$%';
OWNER TABLE_NAME
COLUMN_NAME
SEGMENT_NAME
APPLSYS AQ$_WF_CONTROL_D
RSUBS
SYS_LOB0002020632C00006$$
SQL>
SQL> select OWNER, TABLE_NAME, COLUMN_NAME, SEGMENT_NAME from dba_lobs where INDEX_NAME like '%SYS_IL0002020632C00006$$%';
OWNER TABLE_NAME
COLUMN_NAME
SEGMENT_NAME
APPLSYS AQ$_WF_CONTROL_D
RSUBS
SYS_LOB0002020632C00006$$
SQL>
SQL> select OWNER, TABLESPACE_NAME from dba_tables where TABLE_NAME like '%AQ$_WF_CONTROL_D%';
OWNER TABLESPACE_NAME
APPLSYS
SQL>
alter table AQ$_WF_CONTROL_D move tablespace APPLSYSD
lob(RSUBS) store as SYS_LOB0002020632C00006$$(tablespace APPS_TS_QUEUES);
Thanks -
Query join dba_objects and dba_tables
dear all.
i want to get : list of owners, tablespace_name where the table was created, table_name and the date created column of that table_name in tablespaces t1,t2,t3"
i try to do the script with dba_tables and dba_objects but it shows a lot of records. and the object_id exist only in dba_objects but not in dba_tables.
my query was:
select t.owner, o.created, o.object_name,
t.table_name, t.tablespace_name
from dba_tables t
--,dba_objects o
where
--(o.object_type='TABLE' and o.object_name=t.table_name)
--and
t.tablespace_name in ('t1','t2)
please could you help me??
thanksDo you want that?
select o.owner,t.tablespace_name,t.table_name,o.created from
dba_objects o,
dba_tables t
where o.owner =t.owner and o.object_name=t.table_name
and t.tablespace_name in ('T1','T2','T3') -
When I transport tables from mssql2000 to oracle9i, using
the export tool provided by mssql, I got a problem:
Firstly, I can not select data from the exported table:
the tables are exported successfully, but I can not select them in Oracle! It just reported "the table or view does not exist". Which in fact is not true. Because I can find it by
SELECT owner,table_name,tablespace_name FROM dba_tables where owner='TSKY';
OWNER TABLE_NAME TABLESP
TSKY PFSBFG TSKY
TSKY company TSKY
Among the tables listed, I can select from 'pfsbfg' (created locally), but I can not select from 'company' (imported from mssql). The other fields of the two tables in the dba_tables are all the same.
Secondly, I can display data of the company table using Oracle Enterprise Manager, with all data exported displayed correctly.
How can it be?! I am totally confused!
The same also happened when I successfully transported data from mssql2000 to oracle9i, using transparent gateway. This time, the transported data can be selected using SELECT * FROM company, but can not select any single column of the company table, with error "no such column"!
Any suggestions?OK, so you're connecting to SQL Server with the transparent gateway via a database link? Are you copying tables across the database link (materialized views?) and selecting from the materialized views or are you selecting data from the remote SQL Server database? Are you doing
select * from d_table@dblinkToSQLServer
or
select * from d_table
If the latter, how did you create d_table locally?
My guess is that the columns of the table may have been created case-sensitively too. You could try putting quotes around the column names as well. Can you post the SQL that was used to create d_table?
Justin -
Native SQL Execution- Dump Table Does Not Exists in DB
Hi Experts,
we have created a table in the Oracle Database DBTAB by logging into oracle directly.
Now I need to insert records in this table from ABAP report by using EXEC- ENDEXEC block.
But I am getting a dump saying-- "Table doesnot exists in the Database" alothough table has been created.
EXEC SQL.
INSERT INTO DBTAB@ifsap
(A,
B,
C,
D)
VALUES
(:a,
:b,
:c,
:d)
ENDEXEC.
I have tried table name as DBTAB as well as DBTAB@ifsapc also but the same error is coming.
Could you suggest?
Thanks
DepeshHello Depesh,
please let's start at the beginning again.
> we have created a table in the Oracle Database DBTAB by logging into oracle directly
In which schema was the table DBTAB created?
Was this table created in the same oracle database on which the SAP system is running?
> I have tried table name as DBTAB as well as DBTAB@ifsapc also but the same error is coming.
Again .. in which schema was the table created?
If you don't know the answers of the questions from above .. please run the following query and post the output:
shell> sqlplus / as sysdba
SQL> SELECT OWNER, TABLESPACE_NAME FROM DBA_TABLES WHERE TABLE_NAME = 'DBTAB';
Regards
Stefan
P.S.: By the way .. if you purchase the oracle license by SAP ... please keep sapnote #581312 (Point 3 and solution) in your mind. -
Creation of new table with attributes of another ??
how can i create a new table which has the same attributes as another ? Please note that the records/tuples in the already existing table shouldn't be copied into the new table.
Illustration:
Table Employee_Details with attributes/fields Name and IDno is present.
A new table Supervisor should have the same attributes/fields Name and IDno.
But the data in Employee_Details table shouldn't be copied into this table (Supervisor).
Can anyone write a query in SQL that does the same i.e. use the attributes of another table during the creation of a new one?
Also can anyone explain why the following query is erroneous ?
sql> create table supervisor as (desc employee_details);
Thanks for your help!create table new_table as select * from old_table
where 0=1;This statement doesn't create the new_table in the same tablespace than old_table... to take for example only the tablespace, but that's right for storage clause too.
Assuming TITI is my old table, and TOTO my new table :
SQL> show user
USER is "H89UCBAC"
SQL> select default_tablespace from dba_users where username='H89UCBAC';
DEFAULT_TABLESPACE
PSDEFAULT
SQL> create table titi(coltiti number) tablespace tools;
Table created.
SQL> create table toto as select * from titi;
Table created.
SQL> ed
Wrote file afiedt.buf
1* select table_name,tablespace_name from dba_tables where table_name in ('TITI','TOTO')
SQL> /
TABLE_NAME TABLESPACE_NAME
TOTO PSDEFAULT
TITI TOOLS
SQL> 1* select replace(dbms_metadata.get_ddl('TABLE','TITI'),'TITI','TOTO') from dual
SQL> /
REPLACE(DBMS_METADATA.GET_DDL('TABLE','TITI'),'TITI','TOTO')
CREATE TABLE "H89UCBAC"."TOTO"
( "COLTOTO" NUMBER
) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 65536 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "TOOLS"
SQL> drop table toto;
Table dropped.
SQL> CREATE TABLE "H89UCBAC"."TOTO"
2 ( "COLTOTO" NUMBER
3 ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
4 STORAGE(INITIAL 65536 NEXT 65536 MINEXTENTS 1 MAXEXTENTS 2147483645
5 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
6 TABLESPACE "TOOLS"
7 /
Table created.
SQL> select table_name,tablespace_name from dba_tables where table_name in ('TITI','TOTO');
TABLE_NAME TABLESPACE_NAME
TITI TOOLS
TOTO TOOLS
SQL> HTH,
Nicolas.
Message was edited by:
N. Gasparotto -
SEVERAL USER BELONG TO THE TABLESPACE I WANT TO EXPORT
I WANT TO ONLY WEED OUT THE TABLESSPACE AND THE TABLES BELONGING TO ONE USER.
THE USER ALSO WANT SOME OF THE TABLES WITH ALL THE DATA IN THEM AND SOME OF THE TABLES WITH NO DATA IN THEM
I TRIED ALL OPTIONS
WITH DATA_ONLY, METADATA_ONLY ON BOTH THE IMPORT AND EXPORT AND HAVE ISSUES
HAVE TRIED EXPORTING AND IT GIVES ME ALL THE TABLES AND A SIZE TO INDICATE IT WORKS BUT ON IMPORT KAZOOM-HELL BREAKS LOOSE. JUNIOR DBA NEED HELP
SQL> select owner, table_name, tablespace_name from dba_tables where tablespace_name='USER_SEG';
ORAPROBE OSP_ACCOUNTS USER_SEG
PATSY TRAPP USER_SEG
PATSY TRAPPO USER_SEG
PATSY TRAUDIT USER_SEG
PATSY TRCOURSE USER_SEG
PATSY TRCOURSEO USER_SEG
PATSY TRDESC USER_SEG
PATSY TREMPDATA USER_SEG
PATSY TRFEE USER_SEG
PATSY TRNOTES USER_SEG
PATSY TROPTION USER_SEG
PATSY TRPART USER_SEG
PATSY TRPARTO USER_SEG
PATSY TRPART_OLD USER_SEG
PATSY TRPERCENT USER_SEG
PATSY TRSCHOOL USER_SEG
PATSY TRSUPER USER_SEG
PATSY TRTRANS USER_SEG
PATSY TRUSERPW USER_SEG
PATSY TRUSRDAT USER_SEG
PATSY TRVARDAT USER_SEG
PATSY TRVERIFY USER_SEG
PATSY TRAPPO_RESET USER_SEG
PATSY TRAPP_RESET USER_SEG
PATSY TRCOURSEO_RESET USER_SEG
PATSY TRCOURSE_RESET USER_SEG
PATSY TRPARTO_RESET USER_SEG
PATSY TRPART_RESET USER_SEG
PATSY TRTRANS_RESET USER_SEG
PATSY TRVERIFY_RESET USER_SEG
MAFANY TRVERIFY USER_SEG
MAFANY TRPART USER_SEG
MAFANY TRPARTO USER_SEG
MAFANY TRAPP USER_SEG
MAFANY TRAPPO USER_SEG
MAFANY TRCOURSE USER_SEG
MAFANY TRCOURSEO USER_SEG
MAFANY TRTRANS USER_SEG
JULIE R_REPOSITORY_LOG USER_SEG
JULIE R_VERSION USER_SEG
JULIE R_DATABASE_TYPE USER_SEG
JULIE R_DATABASE_CONTYPE USER_SEG
JULIE R_NOTE USER_SEG
JULIE R_DATABASE USER_SEG
JULIE R_DATABASE_ATTRIBUTE USER_SEG
JULIE R_DIRECTORY USER_SEG
JULIE R_TRANSFORMATION USER_SEG
JULIE R_TRANS_ATTRIBUTE USER_SEG
JULIE R_DEPENDENCY USER_SEG
JULIE R_PARTITION_SCHEMA USER_SEG
JULIE R_PARTITION USER_SEG
JULIE R_TRANS_PARTITION_SCHEMA USER_SEG
JULIE R_CLUSTER USER_SEG
JULIE R_SLAVE USER_SEG
JULIE R_CLUSTER_SLAVE USER_SEG
JULIE R_TRANS_SLAVE USER_SEG
JULIE R_TRANS_CLUSTER USER_SEG
JULIE R_TRANS_HOP USER_SEG
JULIE R_TRANS_STEP_CONDITION USER_SEG
JULIE R_CONDITION USER_SEG
JULIE R_VALUE USER_SEG
JULIE R_STEP_TYPE USER_SEG
JULIE R_STEP USER_SEG
JULIE R_STEP_ATTRIBUTE USER_SEG
JULIE R_STEP_DATABASE USER_SEG
JULIE R_TRANS_NOTE USER_SEG
JULIE R_LOGLEVEL USER_SEG
JULIE R_LOG USER_SEG
JULIE R_JOB USER_SEG
JULIE R_JOBENTRY_TYPE USER_SEG
JULIE R_JOBENTRY USER_SEG
JULIE R_JOBENTRY_COPY USER_SEG
JULIE R_JOBENTRY_ATTRIBUTE USER_SEG
JULIE R_JOB_HOP USER_SEG
JULIE R_JOB_NOTE USER_SEG
JULIE R_PROFILE USER_SEG
JULIE R_USER USER_SEG
JULIE R_PERMISSION USER_SEG
JULIE R_PROFILE_PERMISSION USER_SEG
MAFANY2 TRAPP USER_SEG
MAFANY2 TRAPPO USER_SEG
MAFANY2 TRCOURSE USER_SEG
MAFANY2 TRCOURSEO USER_SEG
MAFANY2 TRPART USER_SEG
MAFANY2 TRPARTO USER_SEG
MAFANY2 TRTRANS USER_SEG
MAFANY2 TRVERIFY USER_SEG
MAFANY BIN$ZY3M1IuZyq3gQBCs+AAMzQ==$0 USER_SEG
MAFANY BIN$ZY3M1Iuhyq3gQBCs+AAMzQ==$0 USER_SEG
MAFANY MYUSERS USER_SEG
I ONLY WANT THE TATBLES FROM PATSY AND WANT TO MOVE IT TO ANOTHER DATABASE FOR HER TO USE AND WANT TO KEEP THE SAME TABLESPACE NAME
THE TABLES BELOW SHOULD ALSO HAVE JUST THE METADATA AND NOT THE DATA
PATSY TRAPP USER_SEG
PATSY TRAPPO USER_SEG
PATSY TRAUDIT USER_SEG
PATSY TRCOURSE USER_SEG
PATSY TRCOURSEO USER_SEG
PATSY TRDESC USER_SEG
PATSY TREMPDATA USER_SEG
PATSY TRFEE USER_SEG
PATSY TRNOTES USER_SEG
PATSY TROPTION USER_SEG
PATSY TRPART USER_SEG
PATSY TRPARTO USER_SEG
PATSY TRPART_OLD USER_SEG
PATSY TRPERCENT USER_SEG
PATSY TRSCHOOL USER_SEG
PATSY TRSUPER USER_SEG
PATSY TRTRANS USER_SEG
PATSY TRUSERPW USER_SEG
PATSY TRUSRDAT USER_SEG
THE FOLLOWING WILL OR ARE SUPPOSED TO HAVE ALL THE DATA
PATSY TRVERIFY USER_SEG
PATSY TRAPPO_RESET USER_SEG
PATSY TRAPP_RESET USER_SEG
PATSY TRCOURSEO_RESET USER_SEG
PATSY TRCOURSE_RESET USER_SEG
PATSY TRPARTO_RESET USER_SEG
PATSY TRPART_RESET USER_SEG
PATSY TRTRANS_RESET USER_SEG
PATSY TRVERIFY_RESET USER_SEG
HAVE TRIED ALL THE FOLLOWING AND LATER GOT STUCK IN MY LIL EFFORT TO DOCUMENT AS I GO ALONG:
USING DATA PUMP TO EXPORT DATA
First:
Create a directory object or use one that already exists.
I created a directory object: grant
CREATE DIRECTORY "DATA_PUMP_DIR" AS '/home/oracle/my_dump_dir'
Grant read, write on directory DATA_PUMP_DIR to user;
Where user will be the user such as sys, public, oracle etc.
For example to create a directory object named expdp_dir located at /u01/backup/exports enter the following sql statement:
SQL> create directory expdp_dir as '/u01/backup/exports'
then grant read and write permissions to the users who will be performing the data pump export and import.
SQL> grant read,write on directory dpexp_dir to system, user1, user2, user3;
http://wiki.oracle.com/page/Data+Pump+Export+(expdp)+and+Data+Pump+Import(impdp)?t=anon
To view directory objects that already exist
- use EM: under Administration tab to schema section and select Directory Objects
- DESC the views: ALL_DIRECTORIES, DBA_DIRECTORIES
select * from all_directories;
select * from dba_directories;
export schema using expdb
expdp system/SCHMOE DUMPFILE=patsy_schema.dmp
DIRECTORY=DATA_PUMP_DIR SCHEMAS = PATSY
expdp system/PASS DUMPFILE=METADATA_ONLY_schema.dmp DIRECTORY=DATA_PUMP_DIR TABLESPACES = USER_SEG CONTENT=METADATA_ONLY
expdp system/PASS DUMPFILE=data_only_schema.dmp DIRECTORY=DATA_PUMP_DIR TABLES=PATSY.TRVERIFY,PATSY.TRAPPO_RESET,PATSY.TRAPP_RESET,PATSY.TRCOURSEO_RESET, PATSY.TRCOURSE_RESET,PATSY.TRPARTO_RESET,PATSY.TRPART_RESET,PATSY.TRTRANS_RESET,PATSY.TRVERIFY_RESET CONTENT=DATA_ONLYyou are correct all the patsy tables reside in the tablespace USER_SEG that are in a diffrent database and i want to move them to a new database-same version 10g. i have created a user named patsy there also. the tablespace does not exist in the target i want to move it to-same thing with the objects and indexes-they don't exists in the target.
so how can i move the schema and tablespace with all the tables and keeping the tablespace name and same username patsy that i created to import into.
tried again and get some errrors: this is beter than last time and that because i remap_tablespace:USER_SEG:USERS
BUT I WANT TO HAVE THE TABLESPACE IN TARGET CALLED USER_SEG TOO. DO I HAVE TO CREATE IT OR ?
[oracle@server1 ~]$ impdp system/blue99 remap_schema=patsy:test REMAP_TABLESPACE=USER_SEG:USERS directory=DATA_PUMP_DIR dumpfile=patsy.dmp logfile=patsy.log
Import: Release 10.1.0.3.0 - Production on Wednesday, 08 April, 2009 11:10
Copyright (c) 2003, Oracle. All rights reserved.
Connected to: Oracle Database 10g Release 10.1.0.3.0 - Production
Master table "SYSTEM"."SYS_IMPORT_FULL_03" successfully loaded/unloaded
Starting "SYSTEM"."SYS_IMPORT_FULL_03": system/******** remap_schema=patsy:test REMAP_TABLESPACE=USER_SEG:USERS directory=DATA_PUMP_DIR dumpfile=patsy.dmp logfile=patsy.log
Processing object type TABLE_EXPORT/TABLE/TABLE
Processing object type TABLE_EXPORT/TABLE/TBL_TABLE_DATA/TABLE/TABLE_DATA
. . imported "TEST"."TRTRANS" 10.37 MB 93036 rows
. . imported "TEST"."TRAPP" 2.376 MB 54124 rows
. . imported "TEST"."TRAUDIT" 1.857 MB 28153 rows
. . imported "TEST"."TRPART_OLD" 1.426 MB 7183 rows
. . imported "TEST"."TRSCHOOL" 476.8 KB 5279 rows
. . imported "TEST"."TRAPPO" 412.3 KB 9424 rows
. . imported "TEST"."TRUSERPW" 123.8 KB 3268 rows
. . imported "TEST"."TRVERIFY_RESET" 58.02 KB 183 rows
. . imported "TEST"."TRUSRDAT" 54.73 KB 661 rows
. . imported "TEST"."TRNOTES" 51.5 KB 588 rows
. . imported "TEST"."TRCOURSE" 49.85 KB 243 rows
. . imported "TEST"."TRCOURSE_RESET" 47.60 KB 225 rows
. . imported "TEST"."TRPART" 39.37 KB 63 rows
. . imported "TEST"."TRPART_RESET" 37.37 KB 53 rows
. . imported "TEST"."TRTRANS_RESET" 38.94 KB 196 rows
. . imported "TEST"."TRCOURSEO" 30.93 KB 51 rows
. . imported "TEST"."TRCOURSEO_RESET" 28.63 KB 36 rows
. . imported "TEST"."TRPERCENT" 33.72 KB 1044 rows
. . imported "TEST"."TROPTION" 30.10 KB 433 rows
. . imported "TEST"."TRPARTO" 24.78 KB 29 rows
. . imported "TEST"."TRPARTO_RESET" 24.78 KB 29 rows
. . imported "TEST"."TRVERIFY" 20.97 KB 30 rows
. . imported "TEST"."TRVARDAT" 14.13 KB 44 rows
. . imported "TEST"."TRAPP_RESET" 14.17 KB 122 rows
. . imported "TEST"."TRDESC" 9.843 KB 90 rows
. . imported "TEST"."TRAPPO_RESET" 8.921 KB 29 rows
. . imported "TEST"."TRSUPER" 6.117 KB 10 rows
. . imported "TEST"."TREMPDATA" 0 KB 0 rows
. . imported "TEST"."TRFEE" 0 KB 0 rows
Processing object type TABLE_EXPORT/TABLE/GRANT/TBL_OWNER_OBJGRANT/OBJECT_GRANT
Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
ORA-39083: Object type INDEX failed to create with error:
ORA-00959: tablespace 'INDEX1_SEG' does not exist
Failing sql is:
CREATE UNIQUE INDEX "TEST"."TRPART_11" ON "TEST"."TRPART" ("TRPCPID", "TRPSSN") PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 32768 NEXT 131072 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "INDEX1_SEG" PARALLEL 1
ORA-39083: Object type INDEX failed to create with error:
ORA-00959: tablespace 'INDEX1_SEG' does not exist
Failing sql is:
CREATE INDEX "TEST"."TRPART_I2" ON "TEST"."TRPART" ("TRPLAST") PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 131072 NEXT 131072 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "INDEX1_SEG" PARALLEL 1
ORA-39083: Object type INDEX failed to create with error:
ORA-00959: tablespace 'INDEX1_SEG' does not exist
Failing sql is:
CREATE INDEX "TEST"."TRPART_I3" ON "TEST"."TRPART" ("TRPEMAIL") PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 131072 NEXT 131072 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "INDEX1_SEG" PARALLEL 1
ORA-39083: Object type INDEX failed to create with error:
ORA-00959: tablespace 'INDEX1_SEG' does not exist
Failing sql is:
CREATE INDEX "TEST"."TRPART_I4" ON "TEST"."TRPART" ("TRPPASSWORD") PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 131072 NEXT 131072 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "INDEX1_SEG" PARALLEL 1
Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
ORA-39083: Object type INDEX_STATISTICS failed to create with error:
ORA-20000: INDEX "BILLZ"."TRCOURSE_I1" does not exist or insufficient privileges
Failing sql is:
BEGIN DBMS_STATS.SET_INDEX_STATS('"BILLZ"', '"TRCOURSE_I1"', NULL, NULL, NULL, 232, 2, 232, 1, 1, 7, 2, 2, NULL, FALSE, NULL, NULL, NULL); END;
ORA-39083: Object type INDEX_STATISTICS failed to create with error:
ORA-20000: INDEX "BILLZ"."TRTRANS_I1" does not exist or insufficient privileges
Failing sql is:
BEGIN DBMS_STATS.SET_INDEX_STATS('"BILLZ"', '"TRTRANS_I1"', NULL, NULL, NULL, 93032, 445, 93032, 1, 1, 54063, 2, 2, NULL, FALSE, NULL, NULL, NULL); END;
ORA-39083: Object type INDEX_STATISTICS failed to create with error:
ORA-20000: INDEX "DANQ"."TRAPP_I1" does not exist or insufficient privileges
Failing sql is:
BEGIN DBMS_STATS.SET_INDEX_STATS('"DANQ"', '"TRAPP_I1"', NULL, NULL, NULL, 54159, 184, 54159, 1, 1, 4597, 1, 2, NULL, FALSE, NULL, NULL, NULL); END;
ORA-39083: Object type INDEX_STATISTICS failed to create with error:
ORA-20000: INDEX "DANQ"."TRAPP_I2" does not exist or insufficient privileges
Failing sql is:
BEGIN DBMS_STATS.SET_INDEX_STATS('"DANQ"', '"TRAPP_I2"', NULL, NULL, NULL, 54159, 182, 17617, 1, 2, 48776, 1, 2, NULL, FALSE, NULL, NULL, NULL); END;
ORA-39083: Object type INDEX_STATISTICS failed to create with error:
ORA-20000: INDEX "JULIE"."TRAPPO_I1" does not exist or insufficient privileges
Failing sql is:
BEGIN DBMS_STATS.SET_INDEX_STATS('"JULIE"', '"TRAPPO_I1"', NULL, NULL, NULL, 9280, 29, 9280, 1, 1, 166, 1, 2, NULL, FALSE, NULL, NULL, NULL); END;
ORA-39083: Object type INDEX_STATISTICS failed to create with error:
ORA-20000: INDEX "JULIE"."TRAPPO_I2" does not exist or insufficient privileges
Failing sql is:
BEGIN DBMS_STATS.SET_INDEX_STATS('"JULIE"', '"TRAPPO_I2"', NULL, NULL, NULL, 9280, 28, 4062, 1, 2, 8401, 1, 2, NULL, FALSE, NULL, NULL, NULL); END;
ORA-39083: Object type INDEX_STATISTICS failed to create with error:
ORA-20000: INDEX "JULIE"."TRCOURSEO_I1" does not exist or insufficient privileges
Failing sql is:
BEGIN DBMS_STATS.SET_INDEX_STATS('"JULIE"', '"TRCOURSEO_I1"', NULL, NULL, NULL, 49, 2, 49, 1, 1, 8, 1, 2, NULL, FALSE, NULL, NULL, NULL); END;
ORA-39083: Object type INDEX_STATISTICS failed to create with error:
ORA-20000: INDEX "JULIE"."TREMPDATA_I1" does not exist or insufficient privileges
Failing sql is:
BEGIN DBMS_STATS.SET_INDEX_STATS('"JULIE"', '"TREMPDATA_I1"', NULL, NULL, NULL, 0, 0, 0, 0, 0, 0, 0, 2, NULL, FALSE, NULL, NULL, NULL); END;
ORA-39083: Object type INDEX_STATISTICS failed to create with error:
ORA-20000: INDEX "DANQ"."TROPTION_I1" does not exist or insufficient privileges
Failing sql is:
BEGIN DBMS_STATS.SET_INDEX_STATS('"DANQ"', '"TROPTION_I1"', NULL, NULL, NULL, 433, 3, 433, 1, 1, 187, 1, 2, NULL, FALSE, NULL, NULL, NULL); END;
ORA-39112: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"TEST"."TRPART_11" creation failed
ORA-39112: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"TEST"."TRPART_I2" creation failed
ORA-39112: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"TEST"."TRPART_I3" creation failed
ORA-39112: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"TEST"."TRPART_I4" creation failed
ORA-39083: Object type INDEX_STATISTICS failed to create with error:
ORA-20000: INDEX "DANQ"."TRPART_I5" does not exist or insufficient privileges
Failing sql is:
BEGIN DBMS_STATS.SET_INDEX_STATS('"DANQ"', '"TRPART_I5"', NULL, NULL, NULL, 19, 1, 19, 1, 1, 10, 1, 2, NULL, FALSE, NULL, NULL, NULL); END;
ORA-39083: Object type INDEX_STATISTICS failed to create with error:
ORA-20000: INDEX "JULIE"."TRPARTO_I1" does not exist or insufficient privileges
Failing sql is:
BEGIN DBMS_STATS.SET_INDEX_STATS('"JULIE"', '"TRPARTO_I1"', NULL, NULL, NULL, 29, 1, 29, 1, 1, 1, 1, 2, NULL, FALSE, NULL, NULL, NULL); END;
ORA-39083: Object type INDEX_STATISTICS failed to create with error:
ORA-20000: INDEX "JULIE"."TRPARTO_I2" does not exist or insufficient privileges
Failing sql is:
BEGIN DBMS_STATS.SET_INDEX_STATS('"JULIE"', '"TRPARTO_I2"', NULL, NULL, NULL, 29, 14, 26, 1, 1, 1, 1, 2, NULL, FALSE, NULL, NULL, NULL); END;
ORA-39083: Object type INDEX_STATISTICS failed to create with error:
ORA-20000: INDEX "JULIE"."TRPART_I2" does not exist or insufficient privileges
Failing sql is:
BEGIN DBMS_STATS.SET_INDEX_STATS('"JULIE"', '"TRPART_I2"', NULL, NULL, NULL, 7180, 19, 4776, 1, 1, 7048, 1, 2, NULL, FALSE, NULL, NULL, NULL); END;
ORA-39083: Object type INDEX_STATISTICS failed to create with error:
ORA-20000: INDEX "JULIE"."TRPART_I3" does not exist or insufficient privileges
Failing sql is:
BEGIN DBMS_STATS.SET_INDEX_STATS('"JULIE"', '"TRPART_I3"', NULL, NULL, NULL, 2904, 15, 2884, 1, 1, 2879, 1, 2, NULL, FALSE, NULL, NULL, NULL); END;
ORA-39083: Object type INDEX_STATISTICS failed to create with error:
ORA-20000: INDEX "JULIE"."TRPART_I4" does not exist or insufficient privileges
Failing sql is:
BEGIN DBMS_STATS.SET_INDEX_STATS('"JULIE"', '"TRPART_I4"', NULL, NULL, NULL, 363, 1, 362, 1, 1, 359, 0, 2, NULL, FALSE, NULL, NULL, NULL); END;
ORA-39083: Object type INDEX_STATISTICS failed to create with error:
ORA-20000: INDEX "JULIE"."TRPART_I5" does not exist or insufficient privileges
Failing sql is:
BEGIN DBMS_STATS.SET_INDEX_STATS('"JULIE"', '"TRPART_I5"', NULL, NULL, NULL, 363, 1, 363, 1, 1, 353, 0, 2, NULL, FALSE, NULL, NULL, NULL); END;
ORA-39083: Object type INDEX_STATISTICS failed to create with error:
ORA-20000: INDEX "DANQ"."TRPART_11" does not exist or insufficient privileges
Failing sql is:
BEGIN DBMS_STATS.SET_INDEX_STATS('"DANQ"', '"TRPART_11"', NULL, NULL, NULL, 7183, 29, 7183, 1, 1, 6698, 1, 2, NULL, FALSE, NULL, NULL, NULL); END;
ORA-39083: Object type INDEX_STATISTICS failed to create with error:
ORA-20000: INDEX "DANQ"."TRPERCENT_I1" does not exist or insufficient privileges
Failing sql is:
BEGIN DBMS_STATS.SET_INDEX_STATS('"DANQ"', '"TRPERCENT_I1"', NULL, NULL, NULL, 1043, 5, 1043, 1, 1, 99, 1, 2, NULL, FALSE, NULL, NULL, NULL); END;
ORA-39083: Object type INDEX_STATISTICS failed to create with error:
ORA-20000: INDEX "DANQ"."TRSCHOOL_I1" does not exist or insufficient privileges
Failing sql is:
BEGIN DBMS_STATS.SET_INDEX_STATS('"DANQ"', '"TRSCHOOL_I1"', NULL, NULL, NULL, 5279, 27, 5279, 1, 1, 4819, 1, 2, NULL, FALSE, NULL, NULL, NULL); END;
ORA-39083: Object type INDEX_STATISTICS failed to create with error:
ORA-20000: INDEX "JULIE"."TRVERIFY_I2" does not exist or insufficient privileges
Failing sql is:
BEGIN DBMS_STATS.SET_INDEX_STATS('"JULIE"', '"TRVERIFY_I2"', NULL, NULL, NULL, 30, 7, 7, 1, 1, 1, 2, 2, NULL, FALSE, NULL, NULL, NULL); END;
ORA-39083: Object type INDEX_STATISTICS failed to create with error:
ORA-20000: INDEX "STU"."TRVERIFY_I1" does not exist or insufficient privileges
Failing sql is:
BEGIN DBMS_STATS.SET_INDEX_STATS('"STU"', '"TRVERIFY_I1"', NULL, NULL, NULL, 30, 12, 30, 1, 1, 1, 2, 2, NULL, FALSE, NULL, NULL, NULL); END;
Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Job "SYSTEM"."SYS_IMPORT_FULL_03" completed with 29 error(s) at 11:17 -
KIMYONG : basic Export / Attachment issues 가이드
Purpose
======
이 문서는 Support Analayst / DBA에게 Export /Attachments issues 발생시
조치할수 있는 기본적인 Troubleshooting Guide를 소개하고자 합니다.
Explanations
======
Export Analysis
Turn on export debug,
Go to Help -> Diagnostics -> Examine
Set Block = GLOBAL
Set Field = FND_EXPORT_DEBUG
Set Value = TRUE
Then export and observe the messages that are generated during the export process
Important Parameters.
set serveroutput on
declare
plsql_agent varchar2(200);
web_server varchar2(200);
dad varchar2(200);
gfm_agent varchar2(200);
protocol varchar2(200);
database_id varchar2(200);
jsp_agent varchar2(200);
check_enabled varchar2(200) ;
begin
plsql_agent := fnd_web_config.plsql_agent ;
dbms_output.put_line('PL SQL Agent ->'||plsql_agent);
web_server :=fnd_web_config.web_server ;
dbms_output.put_line('Web Server ->'||web_server);
dad := fnd_web_config.dad ;
dbms_output.put_line('DAD ->'||dad);
gfm_agent := fnd_web_config.gfm_agent ;
dbms_output.put_line('GFM Agent ->'||gfm_agent);
protocol := fnd_web_config.protocol ;
dbms_output.put_line('Protocol ->'||protocol);
database_id := fnd_web_config.database_id ;
dbms_output.put_line('Database Id ->'||database_id);
jsp_agent := fnd_web_config.jsp_agent ;
dbms_output.put_line('JSP Agent ->'||jsp_agent);
check_enabled := fnd_web_config.check_enabled('FND_GFM.GET') ;
dbms_output.put_line('FND_GFM.GET ->'||check_enabled);
end ;
Examining SQL Trace for the sequence of events that happen in the Export process
SQL >alter session set events '10046 trace name context forever, level 12';
Then run the following block of pl/sql code
set serveroutput on
declare
db_file number;
mime_type varchar2(255) :='text/plain' ;
out_string varchar2(32767) :='Just some plain text that is stored' ;
web_server_prefix varchar2(500);
url varchar2(500);
begin
db_file :=fnd_gfm.file_create(content_type =>mime_type,program_name=>'export');
fnd_gfm.file_write_line(db_file,out_string);
db_file :=fnd_gfm.file_close(db_file);
url:=fnd_gfm.construct_download_url(fnd_web_config.gfm_agent,db_file,TRUE);
dbms_output.put_line(url);
end;
Exit the sql plus session and study the sql trace file as being there in USER_DUMP_DEST
$ ls -lrt
Refer to Note # 282806.1 Performance Tuning Approach for Oracle(8.1.6 - 9.2.0.5) on
UNIX for more information on how to obtain sql tracing .
Example of download URL :-
http://finance.sriratu:8001/pls/SR/fndgfm/fnd_gfm.get/776537528/202595/fnd_gfm.tsv
http://aoltest2.idc.oracle.com:8000/pls/VIS/fndgfm/fnd_gfm.get/820067633/298941/Screen_shots.doc
Example of Upload Attachment URL:
http://aoltest2.idc.oracle.com:8000/pls/VIS/OracleSSWA.Execute?
E=%7B!2DAF44968EBBEC83211B5D5F27F58334FBFB2B90E38AD205&P=%7B!BEFD8114A932C86A1548EC73FFCF6EADB4F7826B217EDCE92719B62BDA9FF0AF193DC7BC64A2C60AFC5123B50C8C78F9E6807695ED9A7FE7AE87F8E49E80807223756706B3FC777F645FA5A07C7A467B
http://aoltest2.idc.oracle.com:8000/pls/VIS/OracleSSWA.Execute?
E=%7B!2DAF44968EBBEC83211B5D5F27F58334FBFB2B90E38AD205&P=%7B!BEFD8114A932C86A5525987DB9C8D9785657497306AAE1FD25D1CC352ADF38DFD69C21355096CBC38D285B083D24F261701F5F278E199044D603A5A8B1D588292099782AC4AF3D97E23B95936809D280
To check the row being created in the table FND_LOBS during Export or Attachment
SQL>create table fnd_lobs_bak as
select file_id,file_name from fnd_lobs ;
SQL>select * from fnd_lobs
where file_id not in
(select file_id from fnd_lobs_bak );
SQL>select * from fnd_lobs
where to_char(upload_date,'DD/MM/YYYY')=to_char(sysdate,'DD/MM/YYYY')
Analysis on an Attachment
Help -> Diagnostics -> Examine
Block : DOCUMENT_HEADER
Field : ATTACHED_DOCUMENT_ID
Note down <Value>
SQL>select document_id
from fnd_attached_documents
where attached_document_id=<Value>;
SQL>select media_id
from fnd_documents_tl
where document_id=<document_id>;
SQL>select *
from fnd_lobs
where file_id=<media_id>;
SQL>select *
from fnd_documents_short_text
where media_id=<media_id>;
from fnd_documents_long_text
where media_id=<media_id>;
SQL>select *
from fnd_documents_long_raw
where media_id=<media_id>;
FND_LOBS stores information about all LOBs managed by the Generic File Manager (GFM).
Each row includes the file identifier, name, content-type, and actual data. Each row also
includes the dates the file was uploaded and will expire, the associated program name and
tag, and the language and Oracle characterset.
The file data, which is a binary LOB, is stored exactly as it is uploaded from a client browser,
which means that no translation work is required during a download to make it HTTP compliant.
Therefore uploads from non-browser sources will have to prepare the contents
appropriately (for instance, separating lines with CRLF).
The program_name and program_tag may be used by clients of the GFM for any purpose,
such as striping, partitioning, or purging the table if the program is de-installed.
They are otherwise strictly informative.
These columns and the expiration date are properly set when the
procedure FND_GFM.CONFIRM_UPLOAD is called. If not called, the column
expiration_date remains set, and will eventually be purged by the procedure
FND_GFM.PURGE_EXPIRED.
FND_DOCUMENTS_LONG_RAW stores images and OLE
Objects, such as Word Documents and Excel
spreadsheets, in the database. If the user elects
to link an OLE Object to the document, this table
stores the information necessary for Oracle Forms
to activate the OLE server, and it saves a
bit-mapped image of the OLE server's contents.
If the user does not elect to link an OLE Object,
the entire document will be stored in this table.
FND_DOCUMENTS_LONG_TEXT stores information about
long text documents.
FND_DOCUMENTS_SHORT_TEXT stores information about
short text documents.
To know which Forms provide Attachment feature
SQL>select *
from fnd_attachment_functions
where function_name like '%FND_%';
Examining FND_LOBS tablespace
SQL>select tablespace_name
from dba_tables
where table_name='FND_LOBS';
SQL>select *
from fnd_profile_options_tl
where profile_option_name='FND_EXPORT_MIME_TYPE';
SQL>select a.tablespace_name TABLESPACE_NAME , a.bytes TOTAL_BYTES,
sum(b.bytes) FREE_BYTES , count(*) EXTENTS
from dba_data_files a, dba_free_space b
where a.file_id = b.file_id AND A.TABLESPACE_NAME=<TABLESPACE_NAME>
group by a.tablespace_name, a.bytes
order by a.tablespace_name ;
Examing Profile Option value
SQL>select *
from fnd_profile_options_tl
where profile_option_name='FND_EXPORT_MIME_TYPE' ;
SQL>select b.profile_option_name,level_id,profile_option_value
from fnd_profile_option_values a, fnd_profile_options b
where a.application_id=b.application_id
and a.profile_option_id=b.profile_option_id
and b.profile_option_name in ('FND_EXPORT_MIME_TYPE') ;
Procedure FND_GFM.GET ANALYSIS
http://aoltest2.idc.oracle.com:8000/pls/VIS/fndgfm/fnd_gfm.get/560074272/298951/fnd_gfm.doc
access
SQL>select substr('/560074272/298951/fnd_gfm.doc',instr('/560074272/298951/fnd_gfm.doc','/',1)+1,instr('/560074272/298951/fnd_gfm.doc','/',2)-2) access from dual ;
560074272
file_id
SQL>select substr('/560074272/298951/fnd_gfm.doc',instr('/560074272/298951/fnd_gfm.doc','/',2)+1,(instr('/560074272/298951/fnd_gfm.doc','/',-1)-instr('/560074272/298951/fnd_gfm.doc','/',2)-1)) from dual ;
298951
Profile Options being referenced in the package FND_GFM
FND_EXPORT_MIME_TYPE
FND_NATIVE_CLIENT_ENCODING
Lookup Type Being used in the package FND_GFM
SQL>select tag,lookup_code,meaning
from fnd_lookup_values_vl
where lookup_type='FND_ISO_CHARACTER_SET_MAP';
Reference
========
Note 338651.1 -
Tablespace Reorganisation in Oracle 10g Database
Dear All,
I'm planning of doing a carrying out a Tablespace Reorganisation of the schema tablespace on the production server. I need your views regarding the process to be taken and tuning that is required before carrying out such an activity. For your information, the size of the tablespace is around 3TB. Also, since it is the production server, we can't have an outage for more than 24hrs. Hence, I would like some help from all of you in order to carry out this activity successfully in the time frame.
Regarding the process :
I have some ideas about how to do the tablespace reorganisation in oracle 10g. But, if I carry out the activity my way, its going it to take atleast 3-4 days to complete (which won't be acceptable).
Areas of concern :
1) Steps to perform the tablespace reorganisation in Oracle 10g DB.
2) Size of the temporary tablespace before starting the Reorg.
3) Any further suggestions / recomendations regarding tuning up of Oracle Parameters for enhancement of speed and acuracy of the activity.
System Specifications :
SAP - BI 7.0 (SAP NetWeaver 2004s)
DB - Oracle 10.2.0.2.0, DBSL Patch Level - 158
OS - AIX 5.3
Looking forward to some good and prompt suggestions from all of you !!
Please provide your valuable inputs.
NOTE :: We have successfully performed the reorganization in the rest of the landscape on the same schema tablespace without any issues.
Thanks and Regards,
Deoraj Alok.It is quite an old thread, but let me put in my view points, which could help others.
1. The Size of PSAPTEMP and PSAPUNDO tablespace should be 1.5*largest Table Size.
2. Another Important thing is , if the time is in an issue, what you can do is to reorg. only top 50 largest tables where maximum space is being wasted. Folowing is the query to determine the TOP 50 tables which has the highest WASTED size.
SELECT * FROM
(SELECT
SUBSTR(TABLE_NAME, 1, 21) TABLE_NAME,
NUM_ROWS,
AVG_ROW_LEN ROWLEN,
BLOCKS,
+ROUND((AVG_ROW_LEN + 1) * NUM_ROWS / 1000000, 0) NET_MB,+
+ROUND(BLOCKS * (8000 - 23 * INI_TRANS) *+
(1 - PCT_FREE / 100) / 1000000, 0) GROSS_MB,
ROUND((BLOCKS * (8000 - 23 * INI_TRANS) * (1 - PCT_FREE / 100) -
+(AVG_ROW_LEN + 1) * NUM_ROWS) / 1000000) "WASTED_MB",+
Tablespace_Name
FROM DBA_TABLES
WHERE
NUM_ROWS IS NOT NULL AND
OWNER LIKE 'SAP%' AND
PARTITIONED = 'NO' AND
(IOT_TYPE != 'IOT' OR IOT_TYPE IS NULL)
ORDER BY 7 DESC)
WHERE ROWNUM <=50;
I am sure that, only these 50 tables will reduce the maximum space and you can ignore rest of the tables.
3. Even you can find out all the Tables which are having LONG and LONG RAW fields by using this query
Select Distinct TABLE_NAME From dba_tab_cols Where Owner='SAPYSP' and (DATA_TYPE='LONG' OR DATA_TYPE='LONG RAW');
Now, from the results of this query you can see how many Tables are present in the Top 50 Tables. There will be a few only and you can export/import these few tables in offline mode.
4. After reorg, fi you want to claim the free disk space also, it would not be that easy because of the high water mark present in datafiles but you can try with
Alter datafile <datafile id> resize <Size>M
5. If free disk space is the first priority the you need to create another Table space (which should have size as big as it can have all the tables) and you re-organize in this new tablespace. After Reorg, drop the old tablespace and rename the new Table space with the old one (Rename Tablespace Command will work only in Oracle 10g).
I hope this information helps all those who are going to do reorg in their respective projects. However, You can further put your question if in doubt and I will try to answer them. -
Hi,
I am trying to move a table from one tablespace to another. I was wondering if there is any way to verify the table rows using md5 hash or some other algorithm!! I can easily count the number of rows in a table before and after the move, but that does not prove the data is right.
Thanks
KapilHi,
If you use the following command, you will not have any problem with data integrity :
alter table table_name move tablespace tablespace_name;Example :
SQL> create table toto(t number);
Table created.
SQL> select tablespace_name from dba_tables where table_name = 'TOTO';
TABLESPACE_NAME
PSDEFAULT
SQL> alter table toto move tablespace tools;
Table altered.
SQL> select tablespace_name from dba_tables where table_name = 'TOTO';
TABLESPACE_NAME
TOOLS
SQL> Nicolas. -
TIP 01: Default User Tablespace in 10g by Joel Pèrez
Hi OTN Readers!
Everyday I get connection on Internet and one of the first issues that
I do is to open the OTN main page to look for any new article or any
new news about the Oracle Technology. After I open the main page of
OTN Forums and I check what answers I can write to help some people
to work with the Oracle Technology and I decide to begin to write some
threads to help DBAs and Developers to learn the new features of 10g.
I hope you can take advantage of them which will be published here in
this forum. For any comment you can write to me directly to : [email protected]
Please do not replay this thread, if you have any question related to
this I recommend you to open a new post. Thanks!
The tip of this thread is: DEFAULT USER TABLESPACE
Joel Pérez
http://otn.oracle.com/expertsStep 9: At the step 5 We changed the default tablespace of the database but there is an
important detail that We have to realize. That detail is the following : when you change
the default tablespace of the database. The users were using it are move to store its objects
in the new default tablespace but the objects that were stored in the original tablespace
remain there. Let's go to look at it:
Here We are connected to the database as system user
SQL> show user
USER is "SYSTEM"Let's go to get connection as new_user user in order to create a table
SQL> conn new_user/new_user@base1
Connected.
Creating a table in the schema NEW_USER
SQL> create table t1_new_user(c1 number);
Table created.As you can see that table is stored in the default tablespace assigned to the user new_user
SQL> select TABLE_NAME, TABLESPACE_NAME from dba_tables
2 where owner='NEW_USER';
TABLE_NAME TABLESPACE_NAME
T1_NEW_USER USERS1Now, We are going to perform the change at the database level regarding the default tablespace
SQL> alter database default tablespace TEST;
Database altered.Now, Let's go to see where the object is stored
SQL> select TABLE_NAME, TABLESPACE_NAME from dba_tables
2 where owner='NEW_USER';
TABLE_NAME TABLESPACE_NAME
T1_NEW_USER USERS1The object remain in the original tablespace assigned to the user new_user.
Here We can realize that the change was successful but the table still remain in the original
tablespace. You will have to move manually the objects to a new default tablespace.
SQL> select USERNAME, DEFAULT_TABLESPACE from dba_users
2 where username='NEW_USER';
USERNAME DEFAULT_TABLESPACE
NEW_USER TESTJoel Pérez
http://otn.oracle.com/experts -
Recovering partial datas by RMAN
Hi,
I have 8i DB and RMAN. I backup all DB by RMAN. I delete the rows in a table of a tablespace. then I recover tablespace like this :
Run {
2> sql "alter tablespace MY_TBS offline";
3> allocate channel t1 type disk;
4> restore tablespace MY_TBS;
5> recover tablespace MY_TBS;
6> sql "alter tablespace MY_TBS online";
7> }
But the data are not in :
SQL> select * from my_table;
no rows selected.
1-is it normal ?
2-how can I recover the deleted datas.
Many thanks.absoloutly sur.
SQL> select tablespace_name from dba_tables where table_name=mytable
TABLESPACE_NAME
MY_TBS
Thank you. -
ORA-00064: object is too large to allocate on this O/S
Hi,
I got this problem while trying to insert a record (25 fields) from Oracle 10g and I have no idea what to do..
Can anyone give me an insight here?
Thanks a lot in advance
teoI can't tell you that cause I don't know where to look for it, if you could elaborate on this.. Given that you know the owner and name of the table you were trying to insert a record into ...
SELECT tablespace_name, initial_extent, next_extent
FROM dba_tablespaces
WHERE tablespace_name = ( SELECT tablespace_name FROM dba_tables
WHERE owner = '&owner'
AND table_name = '&table_name')
/will give you the TABLESPACE_NAME which you can then feed into
SELECT file_name, bytes, maxbytes, autoextensible, increment_by
FROM dba_data_files
WHERE tablespace_name = '&ts_n'
/ Cheers, APC
Message was edited by:
APC -
Hi All,
As per the Manual check list for database upgrade it is saying that AUD$ tables should have SYSTEM as their default Tablespace
Ensure that the aud$ is in the system tablespace when auditing is enabled.
SQL> select tablespace_name from dba_tables where table_name='AUD$';
but it my case it is different
SQL> select tablespace_name from dba_tables where table_name='AUD$';
TABLESPACE_NAME
AUD_TB
Is it required to change the tablespace to system tablespace before upgrade or can I continue with the AUD_TB itself ?
KKuser12061936 wrote:
Hi Nicolas,
Sorry for not giving the version and db information. My db is running in windows 2000 SP4 and version is 9.2.0.6 and it is having standby as well using dataguard.Then, please, read the note in the link I gave earlier.
Nicolas. -
I am trying to get the owner of a created table test but it shows no rows selected, as my table is having 8 rows already. please see below and assist me where I am wrong.
SQL> select * from test;
FLAT_MEMBERS_ID FIRST_NAME LAST_NAME AGE
1 Himanshu Gupta 24
2 Tarun Goyal 26
3 Vipul Jain 27
4 Sourabh Singh 26
5 Vidya Pandey 24
6 Ankit Bhardwaj 25
7 Shahnawaz Ahmed 26
8 Yogesh singh 24
8 rows selected.
SQL> select owner, table_name, tablespace_name from dba_tables where table_name='test';
no rows selectedUnless you are using case-sensitive identifiers, object names are stored in upper case in the data dictionary.
select owner, table_name, tablespace_name
from dba_tables
where table_name='TEST';Justin
Maybe you are looking for
-
CD and DVD Drives no longer visible in "my computer"
After loading the i-pod software, the CD and DVD drives are no longer visible in My Computer. They say they are present but not accessible. Can any one shed any light on this subject Thanks Nick
-
Hi Guys, I found CF 'ARCHIV_CREATE_DIALOG_META' is useful for massive photo upload.I tried tat,but getting an error(file_open_error) eventhough valid file exists. And also, -What should be the name of photo? i kept as (emp no).jpg , - Do we need to
-
In Service Orders - Adding addition status in User Status Profile
Hi Guyds, I have a question. Customer have a requirement where, in repair process when they receive the defective device (equipment) thru return delivery they want to put the device in contamination. And once the contamination is done they want to st
-
Hello all! I need your help! I have soon a deadline in Java Programming and I have to get the data from the MySQL Database into the jtable. The data has to be editable, so I need a TableModel, which extends AbstractTableModel. There is a perfect exam
-
Automatic Startup and Shutdown Database (LINUX REDHAT)
Dear Experts, I am facing problem after sucessfully installed oracle that the Linux is not starting oracle services at booting and does not shutting down oracle while shutdown or restart the linux Machine, please let me know further process regarding