Dear Friends,
Pl. look into the following problem:
1) I have various databases on a Unix Box
2) By default the oracle_SId will be set to a database by name GTRN. Hence when I log on to Unix box my oracle_sid will be GTRN
3) I have another database UTL1
4) I have issued the following command to export a user's table, but i get the below mentioned error:
au19ora:GTRN> echo $ORACLE_SID
GTRN
au19ora:GTRN> exp bt/bt@utl1 tables=bt
Export: Release 7.3.3.5.0 - Production on Fri Nov 29 16:53:17 2002
Copyright (c) Oracle Corporation 1979, 1996. All rights reserved.
EXP-00008: ORACLE error 942 encountered
ORA-00942: table or view does not exist
EXP-00222:
System error message 2
EXP-00024: Export views not installed, please notify your DBA
EXP-00000: Export terminated unsuccessfully
5) But, when I change the environment using . oraenv and set to UTL1, the export runs through successfully. Can someone explain why I am getting an error in step 4 though I am using the Connect string
Since there are 2 oracle_homes on the box and GTRN being 7.3 and UTL! being 8.0.5.2.2 I changed my path to 8.0.5.2.2 Home directory's bin and ran the export again without chaging ORACLE_SID,since I am giving the hoststring. But I am getting the
following error:
au19ora:GTRN> exp bt/bt@utl1 tables=bt
Export: Release 8.0.5.2.2 - Production on Fri Nov 29 18:5:13 2002
(c) Copyright 1998 Oracle Corporation. All rights reserved.
Connected to: Oracle8 Enterprise Edition Release 8.0.5.2.2 - Production
With the Partitioning and Objects options
PL/SQL Release 8.0.5.2.1 - Production
Export done in US7ASCII character set
About to export specified tables via Conventional Path ...Memory fault(coredump)
There is ample space on the filesystem. As sai has mentioned it is always a good practice to export environment variables though we are using the connect string.
Bookmarks