Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
  #1  
Old June 23rd, 2004, 02:26 AM
mariuz's Avatar
mariuz mariuz is offline
Bug Hunter
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Transylvania (Romania)
Posts: 273 mariuz User rank is Corporal (100 - 500 Reputation Level)mariuz User rank is Corporal (100 - 500 Reputation Level)mariuz User rank is Corporal (100 - 500 Reputation Level)mariuz User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 19 h 53 m 41 sec
Reputation Power: 8
Question backup / restore for noob

well i stated reading about backup/ restore on oracle and i'm a little confused ,
Anyone knows an article for beginners ?, All i want is to export database into a script (like in mysql) and then restore it on another server

Another question :
Does it work to make an backup from a remote server when connecting with a local client ?
__________________
My home page: http://www.firebirdsql.org and work place :http://www.reea.net

Reply With Quote
  #2  
Old June 23rd, 2004, 03:36 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,419 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 2 Weeks 15 h 8 m 24 sec
Reputation Power: 256
You'd better use Oracle's native tools, EXP and IMP, you can find plenty of references on web and Oracle's docs, but basically you can use exp like:
1. Prepare a parameters file (exp_param.dat), with something like:
Quote:
BUFFER=100000
FILE="c:\export_YOURDB_YOURSCHEMA.dmp"
LOG="c:\export_YOURDB_YOURSCHEMA.log"
FEEDBACK=10000
OWNER=('YOUR_OWNER')
GRANTS=y
COMPRESS=y


2. Prepare a batch file with the appropriate commands:
Quote:
exp userid=YOUR_USERNAME/YOUR_PASSWORD@YOUR_INSTANCE parfile=PATH_TO\exp_param.dat


This can be easily scheduled, or you can run it by hand (parameters can be given interactively, there is no need for a parameters file).
Restore is done with IMP in a similar way.

BTW: you can backup a remote database and restore to a remote server (both are not the fastest options).

Reply With Quote
  #3  
Old August 20th, 2004, 09:03 AM
mariuz's Avatar
mariuz mariuz is offline
Bug Hunter
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Transylvania (Romania)
Posts: 273 mariuz User rank is Corporal (100 - 500 Reputation Level)mariuz User rank is Corporal (100 - 500 Reputation Level)mariuz User rank is Corporal (100 - 500 Reputation Level)mariuz User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 19 h 53 m 41 sec
Reputation Power: 8
Thumbs up

Quote:
Originally Posted by pabloj
You'd better use Oracle's native tools, EXP and IMP, you can find plenty of references on web and Oracle's docs, but basically you can use exp like:
1. Prepare a parameters file (exp_param.dat), with something like:


2. Prepare a batch file with the appropriate commands:


This can be easily scheduled, or you can run it by hand (parameters can be given interactively, there is no need for a parameters file).
Restore is done with IMP in a similar way.

BTW: you can backup a remote database and restore to a remote server (both are not the fastest options).


Tank you i will try that

Reply With Quote
  #4  
Old August 25th, 2004, 09:27 AM
mariuz's Avatar
mariuz mariuz is offline
Bug Hunter
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Transylvania (Romania)
Posts: 273 mariuz User rank is Corporal (100 - 500 Reputation Level)mariuz User rank is Corporal (100 - 500 Reputation Level)mariuz User rank is Corporal (100 - 500 Reputation Level)mariuz User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 19 h 53 m 41 sec
Reputation Power: 8
Unhappy

got some problems when running with exp:


Quote:
product/9.2.0.1.0/bin/exp scoott/tiger file=expscott.dmp

Message 206 not found; No message file for product=RDBMS, facility=EXP: Release 9.2.0.4.0 - Production on Wed Aug 25 14:25:47 2004

Copyright (c) 1982, 2002, Oracl

Invalid format of Export utility name

Verify that ORACLE_HOME is properly set

Export terminated unsuccessfully


maybe i need to set oracle variables
Quote:
#!/sbin/sh
export ORACLE_SID=mysid
export ORACLE_HOME=...

Last edited by mariuz : August 25th, 2004 at 09:35 AM.

Reply With Quote
  #5  
Old September 14th, 2004, 07:21 AM
mariuz's Avatar
mariuz mariuz is offline
Bug Hunter
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Transylvania (Romania)
Posts: 273 mariuz User rank is Corporal (100 - 500 Reputation Level)mariuz User rank is Corporal (100 - 500 Reputation Level)mariuz User rank is Corporal (100 - 500 Reputation Level)mariuz User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 19 h 53 m 41 sec
Reputation Power: 8
Quote:
Originally Posted by mariuz
got some problems when running with exp:




maybe i need to set oracle variables


now that seems to be solved , i got another one

EXP-00056: ORACLE error 942 encountered
ORA-00942: table or view does not exist
EXP-00000: Export terminated unsuccessfully

a did a little search on google and found there only one solution

http://dock.db-training.com/pls/dart/p_discussions?p_discussion_id=4&p_thread_id=13

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > backup / restore for noob


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway