Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 677
  • Last Modified:

ORacle 9i table backup

How can I a backup tables which are big, that is more than 125 GB?
I tried using the exp utility without any success.
Can somebody give me steps to do this and the imp steps too..
Note: The export has to be from a 9i database and import will be done in 11g database.

Thanks@
0
D-pk
Asked:
D-pk
  • 4
  • 3
4 Solutions
 
slightwv (䄆 Netminder) Commented:
Why did exp fail?  export file to large?

What OS?
0
 
D-pkAuthor Commented:
These were the errors I got..


EXP-00002: error in writing to export file
EXP-00002: error in writing to export file
EXP-00000: Export terminated unsuccessfully

I am able to do smaller tables, but the tables which 125GB, it gives me the above errors.
OS is Linux. (I gave uname -a, if that is correct)

Thanks@
0
 
slightwv (䄆 Netminder) Commented:
You need to set up a large file filesystem:
http://en.wikipedia.org/wiki/Large_file_support

or
Create a named pipe, export using it then split the output:

http://www.linuxjournal.com/article/2156
http://linux.about.com/library/cmd/blcmdl1_split.htm

try the following (I don't have access to fully test this):

mkfifo pipe


then: exp file=pipe tables=(largetable)

from another window:
split –bytes=1000m pipe myExpPiece
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
slightwv (䄆 Netminder) Commented:
Before you do all that:  Check the obvious and see if you have enough free space in the filesystem...
0
 
D-pkAuthor Commented:
what if I export the dump in to my local PC (Windows XP), does the windows system has that restriction?

exp USERID=usr/pwd TABLES=big_table_125gb  FILE=C:\TABLES_DUMPS\big_table_125gb.dmp

I tried this but its still trying to create it in the unix server itself...
Lets say if I try in the command prompt..
For ex:
exp USERID=usrname/pwd@198.2.34.122 TABLES=big_table_125gb FILE=C:\TABLES_DUMPS\big_table_125gb.dmp
it gives me errors like:

EXP-00056: ORACLE error 12514 encountered
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptor
EXP-00000: Export terminated unsuccessfully

Do I have to give any port numbers or any other parameters to work?

Thanks@
0
 
slightwv (䄆 Netminder) Commented:
>>does the windows system has that restriction?

It shouldn't but you have network lag time built into the time.

>>ORA-12514: TNS:listener does not currently know of service requested in connect
descriptor

You need to use a database alias from your tnsnames.ora file.  If you don't know how to configure your client, it will need to be a separate question.
0
 
gopiseraCommented:
Adding to above

Add the tns entry  in your oracle home of windows and then try using with that tns entry

<addressname> =
 (DESCRIPTION =
   (ADDRESS_LIST =
     (ADDRESS = (PROTOCOL = TCP)(Host = <hostname>)(Port = <port>))
   )
 (CONNECT_DATA =
   (SERVICE_NAME = <sid>)
 )
)

exp USERID=usr/pwd@<addressname>   TABLES=big_table_125gb  FILE=C:\TABLES_DUMPS\big_table_125gb.dmp


Make sure that the exp  profile is set to 11.  Since,  You are importing into a 11g database.  :)


0
 
D-pkAuthor Commented:
Thanks
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now