Oracle Data BackUp with Help Of Perl


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Oracle Data BackUp with Help Of Perl
# 1  
Old 08-23-2012
Oracle Data BackUp with Help Of Perl

Hi All
I am able to connect my oracle database with Perl and able to execute the queries.
There is one schema names master19 which contains 50 table.

I want to take backup of each table in and store at a given directory location in Perl

For example suppose if a table student is present in master19 schema the Perl should take the back up of the table student in form of insert queries and store it in a given directory with file name student.sql
= = = = = = = = = = = = = = = = = = = = ===
Its not any home work or assignment I am reducing my effort, Normally i do take the back up manually, Now I thought that i should try with Perl, This is new (database stuff) so i posted for some help.
I am equally searching and doing hand zone as well. So i request not to close this thread again


---------- Post updated at 10:18 AM ---------- Previous update was at 10:17 AM ----------

I refereed this website
Hot Backup Of Oracle Database With perl
# 2  
Old 08-23-2012
Quote:
Originally Posted by parthmittal2007
...For example suppose if a table student is present in master19 schema the Perl should take the back up of the table student in form of insert queries and store it in a given directory with file name student.sql
...
The easiest way to backup your database would be to export it. Check the help of the exp binary that is shipped with your Oracle client.

tyler_durden
# 3  
Old 08-24-2012
Is there any function to export the table in Perl
# 4  
Old 08-24-2012
Quote:
Originally Posted by parthmittal2007
I want to take backup of each table in and store at a given directory location in Perl
What have you tried so far and why/how did it fail?

Moderator's Comments:
Mod Comment Upon thread O/P posts this information any answer will be moderated!

@parmitthal2007: I don't care if you are wanting us to do your homework (many of my colleagues think this to be the case) or if you are just way out of your league.

It is possible to help someone over the net in understanding or straightening out some detail about his work. But neither is it possible to do your work for you, nor is it possible to teach you the job which you are clearly not qualified to fill from the bottom up. This is simply far beyond the scope of this forum.

For example i could explain to you how OSPF works and how it differs from RIP, but neither could i explain networking from the basics nor could i explain what problems these protocols are designed to overcome to someone completely ignorant about how data is transferred from one system to another. At least i can't do that here, over the net, in some forum-postings.

The books which deal with this topic occupy 30-40cm on my bookshelf and i had to read and understand them all to have my current knowledge. Teaching this amount of knowledge would need about equal space and i simple have not the time (or the commitment) to write such an amount of text here just for you.

You want to know that too? Read the same books as i did!

It is not lacking sympathy or personal aversion which keep us from helping you, but simply the limitations described above. We have only limited capacity and in order to do the best possible we have to protect ourselves from being used in excess (to avoid using the term "abused").

So the best help i can give you is: get some training in Perl as well as Oracle and then try to solve the problem again. Right now you are doomed to fail, regardless of how much we try to help you, but once you indeed got the necessary training we'll be here to fill out the last 2% - the details i spoke about above - of necessary knowledge.


bakunin
These 5 Users Gave Thanks to bakunin For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

I need perl script on cold backup in Oracle 10 g

Hi , I am new to Perl script.Can u please provide me perl scripts for the following: 1. Perl script on Cold backup in Oracle 10g 2.Perl script on Hot backup in Oracle 10g (0 Replies)
Discussion started by: Niharika Srivas
0 Replies

2. Shell Programming and Scripting

Oracle Data BackUp with Help Of Perl

Hi All I am able to connect my oracle database with Perl and able to execute the queries. There is one schema names master19 which contains 50 table. I want to take backup of each table in and store at a given directory location in Perl For example suppose if a table student is present in... (1 Reply)
Discussion started by: parthmittal2007
1 Replies

3. Shell Programming and Scripting

Cold backup oracle and Restore to new db

Hello All, I am very new to Linux i have assignment to take offline backup in linux and restore it to new database oracle 10g? Help me out any script of it and steps i will be very thankful Regards, Sameer (0 Replies)
Discussion started by: sameer_123
0 Replies

4. Shell Programming and Scripting

Help with sed in Oracle DB backup script.

I have a script like this .. #!/bin/ksh database=$(echo $@ | sed 's/.*-S \(*\).*/\1/') instance=$(grep "$database" /var/opt/oracle/oratab | awk -F : '{print $1}') command=$(echo $@ | sed 's/"$database"/"$instance"/') echo $command when I tried to execute the script like this ... ksh... (5 Replies)
Discussion started by: talashil
5 Replies

5. Shell Programming and Scripting

Perl connect to remote oracle db without local oracle installation

I want to use Perl to connect to a remote Oracle DB I have no oracle installation on my server (and dont plan on installing one) I am using solaris 9 on x86 server. Is this possible? I basically want to run some basic sql queries on the remote oracle db which I have access to using perl on my... (0 Replies)
Discussion started by: frustrated1
0 Replies

6. Shell Programming and Scripting

Get data from 3 differrnt oracle DB & then compare data

Hi All, I have a requirement to write a shell script for the following... we have 3 different database.... lets say A, B, C From these 3 DBs, i need to get data.. all have 3 different table...a,b, c A.a => Emp_code, count(*) B.b => emp_code, count(*) C.c => emp_code, copunt(*) Once get this... (4 Replies)
Discussion started by: Amit.Sagpariya
4 Replies

7. Shell Programming and Scripting

How to incrementally backup data & use most recent data

Hey, dunno if the title really explains this well; basically my problem is (and this is on a router which is why the flash issue)... I have some data I want to store (it's really irelevant, i'm just counting the lines per file, basically a simple counter). I could store this data in flash but... (0 Replies)
Discussion started by: pepsi_max2k
0 Replies

8. UNIX for Dummies Questions & Answers

Howto capture data from rs232port andpull data into oracle database-9i automatically

Hi, i willbe very much grateful to u if u help me out.. if i simply connect pbx machine to printer by serial port RS232 then we find this view: But i want to capture this data into database automatically when the pbx is running.The table in database will contain similar to this view inthe... (1 Reply)
Discussion started by: boss
1 Replies

9. Shell Programming and Scripting

Need help with oracle backup script

I have written a script to perfrom a cold backup on an oracle database. The script is failing everytime. Can anyone tell me what (stupid) error I am making. The output from the uname command follows Linux rayora 2.2.14-6.1.1smp #1 SMP Thu Apr 13 19:55:55 EDT 2000 i686 unknown The error... (8 Replies)
Discussion started by: beilstwh
8 Replies
Login or Register to Ask a Question