Sponsored Content
Top Forums Shell Programming and Scripting Oracle Data BackUp with Help Of Perl Post 302690787 by parthmittal2007 on Thursday 23rd of August 2012 11:18:53 AM
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
 

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

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

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

7. 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

8. 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

9. 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
databaseintro(1grass)						Grass User's Manual					     databaseintro(1grass)

Database management in GRASS GIS
   Attribute management in general
       GRASS  can  be linked to one or many database management systems (DBMS).  The db.* set of commands provides basic SQL support for attribute
       management, while the v.db.* set of commands operates on the vector map (see Vector introduction).

   Available drivers
       Available drivers are listed in SQL support in GRASS GIS.

       Notes:
       The default DBF driver provides only very limited SQL support (as DBF is not an SQL DB) while the other DBMS backends (such as  PostgreSQL,
       MySQL etc) provide full SQL support since the SQL commands are sent directly to the DBMS.

   DB connection management
       The  current  database management settings are shown or modified with db.connect for current mapset. Available DBMI drivers are listed with
       db.drivers. Some DBMI backends require a user/password for driver/database to be set with  db.login.   In  order  to  test  a  driver,  run
       db.test.

   Attribute data import and export
       Attribute  data	can  be  imported  with  db.in.ogr from various formats and exported with db.out.ogr. To internally copy a a full table or
       selectively parts of it, use db.copy.

       Further conversion tools:

		     MDB Tools: Convert MS-Access data to SQL, DBF, etc.

		     Openoffice.org with SQL Databases

   SQL commands
       GRASS supports to main SQL operations, execution of an SQL statement (db.execute) and selection of data from a table (db.select).  See  the
       SQL help page for examples.

   Managing the default DBMI settings
       Per  default  vector  map attributes are stored in DBF table files. This default definition can be modified with db.connect. If an external
       DBMS is used, db.login may be required.

   Creating a database
       Specific commands are explained on the individual driver pages (these pages are only available if driver was  compiled  in  this  installa-
       tion):

		     DBF: see DBF page

		     SQLite: SQLite page

		     mySQL: meSQL pages

		     ODBC: ODBC page  (connect to Oracle, etc.)

		     PostgreSQL: PostgreSQL and PostGIS page

   Metadata
       All  columns  for  a  given  table  are listed with db.columns.	The command db.describe describes a table in detail. To list all available
       tables for a given database, run db.tables.

   Table maintenance
       To drop a column from a selected attribute table, use db.dropcol.  With db.droptable an attribute table can be deleted.

   Database Schema
       Currently schema support only works for PostgreSQL connections. Default schema can be set with db.connect. Note	that  the  default  schema
       will be used by all db.* modules.

       db.tables returns 'schema.table' if schemas are available in the database.

   Migrating to a different database engine
       To  migrate  a GRASS database table (or a GRASS vector map) to a different DBMI engine, the best solution is to create a new MAPSET, define
       the DBMI settings accordingly with db.login.  Then the table of interest can be copied over with db.copy from the  original  MAPSET.  Like-
       wise, a vector map including its table(s) are copied from the original MAPSET to the current MAPSET with g.copy.

   See also
		     Introduction to GRASS vector map processing

		     Introduction to GRASS raster map processing
       Main index - database index - full index

       (C) 2008-2011 GRASS Development Team

GRASS 6.4.2														     databaseintro(1grass)
All times are GMT -4. The time now is 06:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy