.ora-code.com

Links
Home
Oracle DBA Forum
Frequent Oracle Errors
TNS:could not resolve the connect identifier specified
Backtrace message unwound by exceptions
invalid identifier
PL/SQL compilation error
internal error
missing expression
table or view does not exist
end-of-file on communication channel
TNS:listener unknown in connect descriptor
insufficient privileges
PL/SQL: numeric or value error string
TNS:protocol adapter error
ORACLE not available
target host or object does not exist
invalid number
unable to allocate string bytes of shared memory
resource busy and acquire with NOWAIT specified
error occurred at recursive SQL level string
ORACLE initialization or shutdown in progress
archiver error. Connect internal only, until freed
snapshot too old
unable to extend temp segment by string in tablespace
Credential retrieval failed
missing or invalid option
invalid username/password; logon denied
unable to create INITIAL extent for segment
out of process memory when trying to allocate string bytes
shared memory realm does not exist
cannot insert NULL
TNS:unable to connect to destination
remote database not found'>ora-02019
exception encountered: core dump
inconsistent datatypes
no data found
TNS:operation timed out
PL/SQL: could not find program
existing state of packages has been discarded
maximum number of processes exceeded
error signaled in parallel query server
ORACLE instance terminated. Disconnection forced
TNS:packet writer failure
see ORA-12699
missing right parenthesis
name is already used by an existing object
cannot identify/lock data file
invalid file operation
quoted string not properly terminated
How NOT to EXPort a specific table when FULL=Y?

How NOT to EXPort a specific table when FULL=Y?

2005-05-23       - By Marquez, Chris
Reply:     1     2     3     4     5     6     7     8  

This seems to work, but the situation has to be right...I have the big table
ONLY in this tablspace.
EXPort OFFLINE TABLESPACE Test;

SQL> select TABLESPACE_NAME, STATUS from dba_tablespaces where TABLESPACE_NAME=
'SCOTT_BLOB01';
TABLESPACE_NAME                STATUS
-- ---- ---- ---- ---- ---- -- -- ------
SCOTT_BLOB01                    ONLINE


SQL>  alter tablespace SCOTT_BLOB01 offline;
Tablespace altered.


SQL> select TABLESPACE_NAME, STATUS from dba_tablespaces where TABLESPACE_NAME=
'SCOTT_BLOB01';
TABLESPACE_NAME                STATUS
-- ---- ---- ---- ---- ---- -- -- ------
SCOTT_BLOB01                    OFFLINE

SQL>


exp USERID=/ PARFILE=ts_offline_test.par

FILE=ts_offline_test.dmp
LOG=ts_offline_test.log
CONSTRAINTS=Y
GRANTS=N
INDEXES=N
TRIGGERS=N
ROWS=Y
STATISTICS=ESTIMATE
BUFFER=26214400
COMPRESS=N
CONSISTENT=Y
DIRECT=Y
TABLES=SCOTT.IMAGE, SCOTT.ENV


/> exp USERID=/ PARFILE=ts_offline_test.par

Export: Release 9.2.0.3.0 - Production on Mon May 23 18:23:42 2005

Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.


Connected to: Oracle9i Enterprise Edition Release 9.2.0.3.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.3.0 - Production
Export done in US7ASCII character set and AL16UTF16 NCHAR character set
server uses WE8ISO8859P1 character set (possible charset conversion)
Note: grants on tables/views/sequences/roles will not be exported
Note: indexes on tables will not be exported

About to export specified tables via Direct Path ...
Current user changed to SCOTT
Table IMAGE will be exported in conventional path.
. . exporting table                    IMAGE
EXP-00056: ORACLE error 376 encountered
ORA-00376 (See ORA-00376.ora-code.com): file 15 cannot be read at this time
ORA-01110 (See ORA-01110.ora-code.com): data file 15: '/oracle/data/orcl3/d04/SCOTT_blob01_03.dbf'
. . exporting table                            ENV          6 rows exported
EXP-00091: Exporting questionable statistics.
Export terminated successfully with warnings.







-- --Original Message-- --
From: oracle-l-bounce@(protected) on behalf of Reardon, Bruce (CALBBAY)
Sent: Mon 5/23/2005 6:33 PM
To: oracle-l@(protected)
Subject: How NOT to EXPort a specific table when FULL=Y?

We use a method for updating our test instance whilst excluding the =
biggest few tables.

It probably isn't supported by Oracle and make sure you test it and =
understand the gotchas - eg you don't get the table but you do get the =
views based on the table which will be invalid - so you need to recreate =
the table & indexes and then recompile everything (or pre-create the =
table).

Anyway, create a custom version of catexp.sql (ie =
?\rdbms\admin\catexp.sql).
--    Update views exu81obj + exu81tabs - add o$.name NOT IN ('x','y')
--   View exu8usr would need altering if wanted to exclude a particular =
user.

Note that I got the original idea from Nov 2002 Oracle-L postings by =
Arup Nanda + Kirti Deshpande - subject "export in full mode but exclude =
particular user".

Then have a script that does the export
run your custom catexp-nobig.sql
run export
run standard catexp.sql

Obviously don't do this at the same time someone else (scheduled job?) =
is trying to do a normal export (eg full) that involves those tables.

HTH,
Bruce Reardon

-- --Original Message-- --
From: oracle-l-bounce@(protected)
[mailto:oracle-l-bounce@(protected)]On Behalf Of Marquez, Chris
Sent: Tuesday, 24 May 2005 7:59 AM
To: oracle-l@(protected)
Subject: How NOT to EXPort a specific table when FULL=3DY?


Have a HUGE table that I do NOT want to EXPort,=20
but other that I would like *everything* else...FULL=3DY.

Any ideas?

Thanks in advance,

Chris Marquez
Oracle DBA


--
http://www.freelists.org/webpage/oracle-l


NOTICE
This e-mail and any attachments are private and confidential and may =
contain privileged information. If you are not an authorised recipient, =
the copying or distribution of this e-mail and any attachments is =
prohibited and you must not read, print or act in reliance on this =
e-mail or attachments.
This notice should not be removed.
--
http://www.freelists.org/webpage/oracle-l




--
http://www.freelists.org/webpage/oracle-l