Set up export script and how to run it. Oracle 10gR2

Can someone help explain this script to a newbie. I need to write a script to export all data from our Oracle 10gR2 Tru64 Unix to another system. We need to test how long a 200GB tablespace export will take writing directly to nfs mount on SAN.
1. The only option we have is to use a NFS Mount to the new SAN. ( there is no space on our existing system)
2. What needs to be declared to describe the environment in both Oracle and/or in the script to make it run?
3. Do I need to tell Oracle where the export directory is? (NFS Mount).
4. how is exp run? Do dba run via a XXX.sh script or SQLPLUS XXX.sql script?
5. how can I check the progress....
I don't understand the set up of the oracle environment lines, can someone help me?
Here is a sample script I found on our system....
1 #!/bin/sh
2 # /usr/users/oracle/nfsoraexpt_linux.sh
3 # Export up the specified instance of the db tar it to an nfs mount point and log it
4
5 # Set up the oracle instance and environment
6
7 ORACLE_SID=pdsprod; export ORACLE_SID
8
9 ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1; export ORACLE_HOME
10 PATH=/usr/bin:/u01/app/oracle/product/10.2.0/db_1/bin:/apg/0800/mercator:/usr/users/oracle/bin:.; export PATH
11
12 # Do logging and export the instance
13 rm /nfs_dir/oraexpt.log
14 echo `date` >> /nfs_dir/oraexpt.log
15 exp user/password file='/nfs_dir/pdsprod.exp' log='/nfs_dir/pdsprodexp.log' full=y direct=y feedback=5000000
16 #exp user/password file='/nfs_dir/pdsprod.exp' log='/nfs_dir/pdsprodexp.log' tablespace='ENC_DS_DATA' direct=y feedback=5000000
17 cat /nfs_dir/pdsprodexp.log >> /nfs_dir/oraexpt.log; rm /nfs_dir/pdsprodexp.log
18
19 echo `date` >> /nfs_dir/oraexpt.log
20 cd /nfs_dir
21 # gzip -f pdsprod.exp
22 ls -al pdsprod.exp >> oraexpt.log
23 mail -r email email2 < /nfs_dir/oraexpt.log
24
Any help for this first time user would be appreciated. Thanks

First it sets some environment variables in the shell.
Then it removes a log file.
Then it uses an obsolete tool to export some data.
Then it displays the contents of the log file.
Then it changes the present working directory.
Then it lists the files in the directory.
Then, presumably, it emails a copy of the log file somewhere.
In 10gR2 I would suggest throwing it away and using a proper tool to do the job such as RMAN or DataPump.
Additionally find someone to teach you how to navigate and perform basic tasks in Linux. This may help.
http://www.psoug.org/reference/unix_vi.html
as might Arup Nanda's excellent tutorial here:
http://www.oracle.com/technology/pub/articles/advanced-linux-commands/part1.html

Similar Messages

  • What is java script and how do I enable it?

    What is java script and how do I enable it

    JavaScript is enabled by default for Adobe Reader for iOS, and I don't see that there's a way to disable it. It is currently used within a document to control the behavior of form fields, such as automatic formatting and calculations. Only a small subset of what's available in the desktop version is available in the mobile versions.

  • How to run an Oracle Script File

    Hi,
    Please anybody tell me how to run an Oracle script file (*.sql file) from Query template.
    In SQL*Plus we run a script file as @Script_file_name.sql
    how do we do it in Query Template.

    Dave,
    Please only post your question in one thread at a time....
    [SAP xMII synchronus commincation|SAP xMII synchronus commincation]
    Sam

  • How to run the oracle application cleint using static ip or domain please e

    How to run the oracle application cleint using static ip or domain please explain me.
    i am not able to run oracle forms in client machine how to run it please explain me
    Please give me detail regarding that
    any body please help me.
    my mail id::::: [email protected]

    You did not mention exactly which Forms version you are using so it will be difficult to offer specific help. However, you did mention Forms 9i. ALL "9i" releases were desupported long ago, so find software or documentation are becoming more difficult.
    Here is the Deployment Guide for Forms 10.1.2
    http://download.oracle.com/docs/cd/B19375_07/doc/frs/forms/B14032_03/toc.htm
    Here are some technical reference for Forms 9.0.x
    http://www.oracle.com/technology/products/forms/techlisting9i.html

  • Port 135 and 25913 and how to run Solaris Container Manager?

    What are these ports 135 and 25913 and how to I run Solaris Container Manager .
    thanks

    Hi Zeealee,
    zeealee wrote:
    What are these ports 135 and 25913 and how to I run Solaris Container Manager .I haven't heard of those ports being used with SunMC before, sorry (but maybe my memory is just bad). The features of Solaris Container Manager (SCM) have now almost been entirely superseded by [Oracle Enterprise Manager Ops Center|http://www.oracle.com/us/products/enterprise-manager/opscenter/index.html] (forum here), but if you're still looking to try SCM, the manual can be found here, and if you said "yes" to SCM when you installed your SunMC Server, then you should see it in your SunMC web interface:
    https://<sunmc_server>:6789 --> SunMC 4.0 --> Manage Solaris Container
    If you'd like a demo of how you perform Container/LDOM operations in Ops Center, let me know and I'll set it up.
    Regards,
    [email protected]

  • Openscript / script chaining / how to run all the scripts if one fails ?

    Hello,
    I have a problem using openscript and please I would like to know if there is a work around.
    here is what I am doing :
    with open script:
    1/ I am recording many differents scripts for the same app : one script = one functionnality
    2/ Then I am creating a script and I run all these previous script.
    The problem is :
    I get an error "Timeout occurred waiting for page to load." which is a normal error (the link is broken, the page is missing etc).
    I cannot recover, and main script stops. Although I would like others scripts also to be played back.
    I tried to set option ERR_RESPONSE_TIME_ERROR to Warn (instead of fail). But no way ! It fails !
    please could you tell me what I am missing ?
    thank you.
    Michael
    Edited by: user12252276 on 24 nov. 2009 01:38

    I dont have dependancies between scripts. I mean I did be careful : each script open and close properly the browser.
    Even by setting ALL parameters to Warn instead of fail, this does not help.
    Error : Timeout occurred waiting for page to load cannot be skipped this way.
    In my run I have 4 Runscript. 2nd fails with this error. 3 and 4 will not be (even) tried.
    Never mind. Try/Catch should be working :-) (I hope so)
    thanks.
    Michael.
    14:24:26,960 ERROR [IteratingVUser] Script ATHCASE. Error in section Run
    oracle.oats.scripting.modules.webdom.common.api.exception.PlaybackException: Timeout occurred waiting for page to load.
         at oracle.oats.scripting.modules.webdom.common.api.exception.PlaybackException.createWaitForPageTimeoutException(PlaybackException.java:46)
         at oracle.oats.scripting.modules.webdom.api.elements.DOMBrowser.handleWaitforPageException(DOMBrowser.java:152)
         at oracle.oats.scripting.modules.webdom.api.elements.DOMBrowser.waitForPage(DOMBrowser.java:110)
         at script.run(script.java:85)
         at oracle.oats.scripting.modules.basic.api.IteratingVUser.run(IteratingVUser.java:262)
         at oracle.oats.scripting.modules.basic.api.IteratingVUser.insertScriptRun(IteratingVUser.java:280)
         at oracle.oats.scripting.modules.basic.api.IteratingVUser.runScript(IteratingVUser.java:621)
         at oracle.oats.scripting.modules.basic.api.IteratingVUser.runScript(IteratingVUser.java:593)
         at oracle.oats.scripting.modules.basic.api.IteratingVUserScript.runScript(IteratingVUserScript.java:458)
         at script.run(script.java:24)
         at oracle.oats.scripting.modules.basic.api.IteratingVUser.run(IteratingVUser.java:262)
         at oracle.oats.scripting.modules.basic.api.internal.IteratingAgent.run(IteratingAgent.java:632)
         at java.lang.Thread.run(Thread.java:619)
    14:24:27,050 ERROR [1] Error in section Run at line (script.java:24). Timeout occurred waiting for page to load.
    oracle.oats.scripting.modules.webdom.common.api.exception.PlaybackException: Timeout occurred waiting for page to load.
         at oracle.oats.scripting.modules.webdom.common.api.exception.PlaybackException.createWaitForPageTimeoutException(PlaybackException.java:46)
         at oracle.oats.scripting.modules.webdom.api.elements.DOMBrowser.handleWaitforPageException(DOMBrowser.java:152)
         at oracle.oats.scripting.modules.webdom.api.elements.DOMBrowser.waitForPage(DOMBrowser.java:110)
         at script.run(script.java:85)
         at oracle.oats.scripting.modules.basic.api.IteratingVUser.run(IteratingVUser.java:262)
         at oracle.oats.scripting.modules.basic.api.IteratingVUser.insertScriptRun(IteratingVUser.java:280)
         at oracle.oats.scripting.modules.basic.api.IteratingVUser.runScript(IteratingVUser.java:621)
         at oracle.oats.scripting.modules.basic.api.IteratingVUser.runScript(IteratingVUser.java:593)
         at oracle.oats.scripting.modules.basic.api.IteratingVUserScript.runScript(IteratingVUserScript.java:458)
         at script.run(script.java:24)
         at oracle.oats.scripting.modules.basic.api.IteratingVUser.run(IteratingVUser.java:262)
         at oracle.oats.scripting.modules.basic.api.internal.IteratingAgent.run(IteratingAgent.java:632)
         at java.lang.Thread.run(Thread.java:619)
    14:24:27,050 ERROR [1] Iteration 1 failed at line (script.java:24). Timeout occurred waiting for page to load.
    oracle.oats.scripting.modules.webdom.common.api.exception.PlaybackException: Timeout occurred waiting for page to load.
         at oracle.oats.scripting.modules.webdom.common.api.exception.PlaybackException.createWaitForPageTimeoutException(PlaybackException.java:46)
         at oracle.oats.scripting.modules.webdom.api.elements.DOMBrowser.handleWaitforPageException(DOMBrowser.java:152)
         at oracle.oats.scripting.modules.webdom.api.elements.DOMBrowser.waitForPage(DOMBrowser.java:110)
         at script.run(script.java:85)
         at oracle.oats.scripting.modules.basic.api.IteratingVUser.run(IteratingVUser.java:262)
         at oracle.oats.scripting.modules.basic.api.IteratingVUser.insertScriptRun(IteratingVUser.java:280)
         at oracle.oats.scripting.modules.basic.api.IteratingVUser.runScript(IteratingVUser.java:621)
         at oracle.oats.scripting.modules.basic.api.IteratingVUser.runScript(IteratingVUser.java:593)
         at oracle.oats.scripting.modules.basic.api.IteratingVUserScript.runScript(IteratingVUserScript.java:458)
         at script.run(script.java:24)
         at oracle.oats.scripting.modules.basic.api.IteratingVUser.run(IteratingVUser.java:262)
         at oracle.oats.scripting.modules.basic.api.internal.IteratingAgent.run(IteratingAgent.java:632)
         at java.lang.Thread.run(Thread.java:619)
    14:24:27,390 INFO [1] Finished VU 1 for script repeat

  • Best way to port all Windows XP files, applicaitons and data form my PC over to iMac and how to run those Windows apps on Mac?ns on Mac?

    I have a Windows XP machine with apps, files and data.  I want to get all that over to my Mac, and also run those apps under Windows XP or even Windows 7 on my Mac.  Im wondering:
    1.  How best to get those files over to my Mac
    2.  How to run those apps and use my Windows based files/data on my Mac
    3.  How best to run Windows on my Mac....either partitiion my Mac's hard drive and boot up either Windows or MAC OS, or run some other program where I can easily switch back and forth form Windows to MAC OS, or perhaps get it all on an external hard drive, maybe partition that Windows/MAC OS and boot from that?
    Thanks!

    I agree you would benefit by using virtualizaiton software. Virtual Box is one alternative the commercial apps for doing virtualization are Parallels and VMWare Fusion which you also might be interested in for their support and updates.
    Also you may benefit by book marking and using:
    Mac 101 , Switch 101 & Find Out How Video tutorials
    For your MS Office apps then I'd STRONGLY recommend using the native Office For Mac versions, you can find these on Amazon for less than $100 and then you can run the apps natively rather than having to lean on MS Windows. Also for your Financial and Tax software you also may want to use OS X apps too, for example I used Quicken for over 20 years (PC mostly and some Mac) but switched to iBank. Also for tax software I have used Quicken's Turbo Tax, this also runs natively on OS X.
    In other words for your stated needs I don't see much reason to stay with MS Windows. You may have other considerations, if you do please state them, some may be real issues and some may be easily overcome.

  • How to download Personal Java and how to run the application

    Hi,
    From java.sun.com, which file has to be downloaded for develpoing the application in personal java.
    How to run an application in peraonal java?
    If you give me the steps it will be more helpful to me.
    I couldn't find the samples for personal java anywhere?
    If you give me links for basic samples with source code such as hello world and small games, it will be more helpful to me.
    All of my doubts are very basic one.
    Please help me.
    Thanks in advance.
    Regards,
    Nagaraj.

    Sun has a beta implementation available for download (http://developer.java.sun.com/developer/earlyAccess/personaljava/) which will allow you to run Personal Java on a MIPS/SH3/StrongARM or XScale device running WindowsCE 2.0 or greater. You can also download the Personal Java Emulation environment (http://java.sun.com/products/personaljava/pj-emulation.html) which will allow you to develop and run personal java applications in a Windows or Solaris environment.
    Most JDK1.1.8 compliant applications will run on Personal Java, so a Hello World program would look like the regular.
    public static void main(String[] args) {
    System.out.println("Hello World");
    System.exit(0);
    You can also purchase a full blown commercial implementation of Personal Java for PocketPC at handango.com. Do a search on Insignia Jeode for Dell. You can use this on any PocketPC/XScale pda.
    To run a Personal Java program on Pocket PC. Deploy your jar to the Device and create a shortcut similar to this:
    50#"\program files\Java\bin\pjava.exe" -setcwd "\program files\Java\pjtest" -classpath "\program files\Java\pjtest\pjtest.jar" -file "pjtest.testmain.class"
    The number is arbitrary, but the paths need to point to the directory where you installed Personal java and your jar/application respectively.

  • How set tha table boundry and how set table in panal

    hi master
    sir this is my table code
    import javax.swing.*;
    import java.awt.*;
    import java.util.*;
    public class fahimtable extends JApplet {
    String[] columnNames = {"First Name",
    "Last Name",
    "Sport",
    "# of Years",
    "Vegetarian"};
    Object[][] rdata = {
    {"Mary", "Campione",
    "Snowboarding", new Integer(5), new Boolean(false)},
    {"Alison", "Huml",
    "Rowing", new Integer(3), new Boolean(true)},
    {"Kathy", "Walrath",
    "Knitting", new Integer(2), new Boolean(false)},
    {"Sharon", "Zakhour",
    "Speed reading", new Integer(20), new Boolean(true)},
    {"Philip", "Milne",
    "Pool", new Integer(10), new Boolean(false)}
    /** Initializes the applet fahimtable */
    public void init() {
    JTable table = new JTable(rdata, columnNames);
    getContentPane().add(table.getTableHeader),BorderLayout.NORTH);
    getContentPane().add(table);
    initComponents();
    private void initComponents() {
    ==========
    sir this give me table but my need is the table in panal
    now table cover the all applet
    sir how set i table in panal and now i set tha table boundry and header
    please give me idea
    thank
    aamir

    Learn how to use the forum correctly. This is now your 6th posting on basically the same topic.
    Not once have you bothered to reply to an old posting to state whether the answer given was helpfull or not.
    You still haven't learned to use the "Code" formatting tags when posting code so the code retains its original formatting.
    Twice you've been given links to the Swing tutorial, but apparently you still haven't bothered to read it. There is a section on "How to Use Layout Mangers" that will help you postion your components. The tutorial is full of working examples.

  • How set tha table boundry and how set in panal

    hi master
    sir this is my table code
    import javax.swing.*;
    import java.awt.*;
    import java.util.*;
    public class fahimtable extends JApplet {
    String[] columnNames = {"First Name",
    "Last Name",
    "Sport",
    "# of Years",
    "Vegetarian"};
    Object[][] rdata = {
    {"Mary", "Campione",
    "Snowboarding", new Integer(5), new Boolean(false)},
    {"Alison", "Huml",
    "Rowing", new Integer(3), new Boolean(true)},
    {"Kathy", "Walrath",
    "Knitting", new Integer(2), new Boolean(false)},
    {"Sharon", "Zakhour",
    "Speed reading", new Integer(20), new Boolean(true)},
    {"Philip", "Milne",
    "Pool", new Integer(10), new Boolean(false)}
    /** Initializes the applet fahimtable */
    public void init() {
    JTable table = new JTable(rdata, columnNames);
    getContentPane().add(table.getTableHeader),BorderLayout.NORTH);
    getContentPane().add(table);
    initComponents();
    private void initComponents() {
    ==========
    sir this give me table but my need is the table in panal
    now table cover the all applet
    sir how set i table in panal and now i set tha table boundry and header
    please give me idea
    thank
    aamir

    Learn how to use the forum correctly. This is now your 6th posting on basically the same topic.
    Not once have you bothered to reply to an old posting to state whether the answer given was helpfull or not.
    You still haven't learned to use the "Code" formatting tags when posting code so the code retains its original formatting.
    Twice you've been given links to the Swing tutorial, but apparently you still haven't bothered to read it. There is a section on "How to Use Layout Mangers" that will help you postion your components. The tutorial is full of working examples.

  • WHERE IS RESIDE REPORT SERVER AND HOW  IT RUN(ESSENTIAL)

    Hi ,
    I am usering developer 9i but dont know where report server reside, how configure.
    And how report server start. cause i could not run report.
    if possible help me.
    thanks
    Mostafiz

    hi
    thanks for your information.
    but i could not registration on metalink. please tell how i do that
    to registration need SUPPORT IDENTIFIER AND COUNTRY.
    i am in bangladesh.
    how i get SUPPORT IDENTIFIER.
    please help
    thanks
    mostafiz

  • How to run custom Oracle report6i concurrent program in web forms

    I developed a custom report using oracle6i and registered into AOL and assigned to a request group. I can run this concurrent program from form based application works fine. How to run this concurrent request from web forms?
    What are the steps to follow to create a concurrent program link on web forms?
    I want run this request and pass parameters and output also in web forms...
    I'm a first time user of web forms, So kindly reply with detailed steps to define concurrent request in web forms for a custom report.
    Thanks in Advance
    Naveen
    [email protected]

    I hope ur requirement to do all the CP processing from Self-Service OAF pages. If so,
    browse thru Re: Start Concurrent from OA Framework page , Re: RE: Submitting concurrent request and getting the results back.
    and
    'Concurrent Processing: Request Submission and Monitoring' section in dev guide.
    Let us know if you face any issues in the implementation.
    - Senthil

  • How to run a Oracle 6i report in SunSolaris

    I have developed a Oracle 6i report in NT,
    but i am unable to run it in SunSolaris , under report6i server , any suggestions regarding this topic are welcome..
    Thank U in advance
    Amit

    The error that i am getting while running RWRUN60 on solaris is as follows:
    Initially when i type RWRUN60 at ias/6iserver/bin i am getting the following error.
    ld.so.1: ./rwrun60: fatal: libjava.so: open failed: No such file or directory
    KilledTo resolve this problem i have set the ORACLE_HOME path and then this problem was solved,But i am getting a new error after setting the path.
    The Error is
    Error: cannot initialize oracle Toolkit
    Any Suggestions to overcome this problem will be of great help.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by shay:
    you should be able to move the rdf file to solaris and run it.
    What problem do you encounter? whats the error message?<HR></BLOCKQUOTE>
    null

  • Why do i have a long running script and how to get rid of it ????

    My computor stalls with twc not responding due to long running script. Just rebooted  back to factory default.

    mrswalt wrote:
    It doesn't say what script. But when I go to shut down there is a window icon on screen BUT DOES NOT say which window.
    Plus just bought a hp deskjet 2540 printer that will not print. HP info person is of NO help.
    This will be hard since we have no scripts for myself or others to look at to backtrack where the problem is coming from?
    I am a Volunteer to help others on here-not a HP employee.
    Replies aren't online 24/7 because of Time Zone differences.
    Remember in this Day and Age of Computing the Internet is Knowledge at your fingertips if you choose understand it. -2015-

  • What is asant and how to run it

    Im studying j2ee now. Stuck in how to use jdbc within j2ee. I read the tutorial chapter 3/ Defining a Data Source in the J2EE Server.
    There is a sentence saying "2. Run asant create-jdbc-connection-pool_common. This asant task runs an asadmin command to create a JDBC connection pool named bookstore-pool".
    and then I look for what is asant. go to "About This Tutorial/Building the Examples " It says "In order to run the asant scripts, you must configure your environment and properties files as follows: "
    My question is : what is " <JAVA_HOME>/bin to the front of your path" and "Add <J2EE_HOME>/bin and <J2EE_HOME>/share/bin to the front ofAdd your path so that J2EE 1.4 Application Server scripts (asadmin, asant, deploytool, and wscompile) overrides other installations."
    And I still confused about the next steps.

    asant is a tool that automates the process of building the examples and performing some tasks to set up the application server and database.
    You need to add the directories cited in the tutorial to the front of your path environment variable so that when you run asant you get the correct version. See your operating system literature for information about how to modify environment variables.
    Here's some info on setting the path on Windows:
    http://java.sun.com/j2se/1.4.2/install-windows.html#Environment

Maybe you are looking for

  • Get Field Values from Table using Java api

    I am using the example java code "RetrieveLimitedRecords" that can be found at : https://help.sap.com/javadocs/MDM71/current/API/index.html The code give the expected result and retrieves the record count for the main table Now I want to get the valu

  • Error Updating Data using a Web Service from BPM

    Hi there, I'm trying to update data in an oracle database using a webservice created in DSP and get the following errors. It appears that BPM is unable to find a name, but I'm not sure what name this is referring to. The web service is straight forwa

  • Sorting Column - Case Insensitive but Lower should be first

    Hi all, Lets assume we have am EMployee table : create table Emp (Empname varchar2(20)); It has following records : Insert into EMP (EMPNAME) values ('A'); Insert into EMP (EMPNAME) values ('a'); Insert into EMP (EMPNAME) values ('b'); Insert into EM

  • An unknown error occurred (-1302)

    I upgraded to latest version of Itunes 7.6.0.29 and now when I open the program it has started giving me a message of: "An unknown error occurred (-1302)" Also, if I try to run diagnostics it crashes and closes the program. I am on Windows XP - what

  • CD-ROM not detected on notebook, but tested on another machine and works.

    I am checking my dad's laptop, a Compaq Presario F700 (F761US). It has a couple of problems, but the main one is that the DVD drive is not detected by Windows Vista Home Premium 32 bit. The BIOS doesn't seem to detect it either when I put a bootable