More like linux question

Hi,
I have two instances (say tst1 and tst2) under same oracle_home. I have to do a export on daily basis on tst2. So I wrote one exp.dat file and have a exp.sh script to run the export. But when I run the .sh file it waits for confirmation of ORACLE_SID. This is what I have in nohup.out
*./tst2_exp.sh: /etc/bashrc[38]: shopt: not found*
*./tst2_exp.sh: /etc/bashrc[47]: shopt: not found*
*ORACLE_SID = [tst2] ?*
How can I make it to run automatically. This is my .sh file
*#!/bin/ksh*
*. /home/oracle/.bash_profile*
export ORACLE_SID=tst2
export ORACLE_HOME=/app01/app/oracle/product/10.2.0/db_1
export PATH=$PATH:$ORACLE_HOME/bin
*. /usr/local/bin/oraenv*
datestamp=`date +%m-%d-%Y`
exp parfile=/app01/app/warehouse/export/tst2_exp_full.dat file=/app01/app/warehouse/export/tst2_full.dmp.$datestamp log=/app01/app/warehouse/log/tst2_full.log.$datestamp
gzip -f /app01/app/warehouse/export/tst2_full.dmp.$datestamp
Thanks,

The script file needs to read
#!/bin/ksh
. /home/oracle/.bash_profile
export ORACLE_SID=tst2
export ORAENV_ASK="NO"
. /usr/local/bin/oraenv
# oraenv sets ORACLE_HOME and PATH
export ORAENV_ASK=""
datestamp=`date +%m-%d-%Y`
exp parfile=/app01/app/warehouse/export/${ORACLE_SID}_exp_full.dat file=/app01/app/warehouse/export/${ORACLE_SID}_full.dmp.$datestamp log=/app01/app/warehouse/log/${ORACLE_SID}_full.log.$datestamp
gzip -f /app01/app/warehouse/export/${ORACLE_SID}_full.dmp.$datestamp
This code is portable, your code has everything hardcoded and needs to be maintained often.
You also can export to a pipe and compress on the fly.
Scripts demonstrating this fly all over the web,search for mknod orapipe
Sybrand Bakker
Senior Oracle DBA

Similar Messages

  • "More like this" box - Questions with correct answer symbol

    There is "more like this" box on right hand side of the discussion page. It shows the questions which are approximately same as currect question.
    There are some question which has correct answer symbol but when I open that question, there is no correct answer selected. How is it possible. Please explain.
    Example - https://discussions.apple.com/message/9902420#9902420
    There is correct answer symbol is shown for this question in "more like this" box but when I opened this box, there is no correct answer was selected.
    Even there was no helpful answer was selected. I could not understand this. Please explain.

    pavi --
    Did you read the last reply by the Original Poster?
    I did what you said and it did exactly what I wanted it to do. Thanks!

  • Event Monitor on Linux question

    We are currently running NSM 2.0. The engine is version 2.00.37 running on a NetWare 6.5 sp7 server. The two event servers are version 2.00.15 running on NetWare 6.5 sp7 servers. We are needing to decommission the two servers that are our current event servers and replace them with SLES. No plans are in place to upgrade the server running the NSM engine. I see from the documentation that we will need to upgrade NSM to 2.5 in order to run the event servers on SLES. The documentation states "installing the NSM Event Monitor for Linux requires OES2-SP1 or SLES 10 SP2." The directions then go on to state how to install on a OES2 box. Do you have to install the event monitors on OES2? Will the event monitors run on SLES 11?
    We already have 64 bit SLES 11 systems in the partition and would like to use these instead of installing more servers if possible. If we need to install OES2 servers, is it OK if they are virtual?

    I guess I am a little confused. We have SLES 11 boxes with eDirectory 8.8.5 sp4 installed. These servers also run LDAP and hold read/write replicas of the partition the users reside in. Why do I need to run OES2 to monitor eDirectory events?
    Originally Posted by NSRDevelopment
    The main purpose of the event monitor is to monitor edirectory replicas for events. If there are no replicas where you install event, it can be configured to monitor replicas on another server. The event monitor will probably run on SLES 11 (not officially supported), but you will have to configure it to monitor a server with edirectory replicas via LDAP, which requires OES 2 (SP 1 or SP 2.) There is no problem installing on a virtual server.
    NSM Support and Development
    >>> stephayers<[email protected]> 8/17/2010 4:29 PM >>>
    We are currently running NSM 2.0. The engine is version 2.00.37 running
    on a NetWare 6.5 sp7 server. The two event servers are version 2.00.15
    running on NetWare 6.5 sp7 servers. We are needing to decommission the
    two servers that are our current event servers and replace them with
    SLES. No plans are in place to upgrade the server running the NSM
    engine. I see from the documentation that we will need to upgrade NSM to
    2.5 in order to run the event servers on SLES. The documentation states
    "installing the NSM Event Monitor for Linux requires OES2-SP1 or SLES 10
    SP2." The directions then go on to state how to install on a OES2 box.
    Do you have to install the event monitors on OES2? Will the event
    monitors run on SLES 11?
    We already have 64 bit SLES 11 systems in the partition and would like
    to use these instead of installing more servers if possible. If we need
    to install OES2 servers, is it OK if they are virtual?
    stephayers
    stephayers's Profile: NOVELL FORUMS - View Profile: stephayers
    View this thread: Event Monitor on Linux question - NOVELL FORUMS

  • Isuggest that verizon becomes more like sprint...

    isnt it a new day when verizon got all its old customers for being soo good at service.... 
    in this economy youd think big brother V would be more like Sprint... 
    Customer Service
    Dial *611 from your cell phone
    (800) 922-0204
    Monday-Sunday 6am-11pm  
    Emergency Service Hours
    Monday-Sunday 11pm-6am
    HOW  {word filter avoidance} is this kinda of service... the pre paid customers get better customer service.... but us loyal users cant even {word filter avoidance} call when ever we want... 
    thats horrible... showing loyalty to them is not worth the effort... 
    and omg insurance is a whole different story... how the hell do i pay you!, monthly fees, taxes, service... and you cant even file my insurance... i was in the store on 86th steet in manhattan... and they told me they couldnt even mail out my phone when i went to them to get the new one connected... verizon has become an evil empire doing what they want... its too bad that so many people stick to them cause they dont know that they are basically getting ripped off... i been getting ripped off for years now. i have had verizon since 03?... and they used to be so nice... now they just a buncha suits who dont know crap about technology and just click preset programs behind a computer... whats the point of having such "classy" staff when they arent even mentally there... they dont even know WHY phones are hyped... why they CAN do and what they can do... its a shame to see this company that i brought alot of users to go to **bleep**... they need a new pr and customer service... to say the least.... 
    and verizon just stopped me from psoting their own link to thier web page ... for customer service agreement....
    hahahaha! that is the best... 
    If you change your device or receive a Service promotion, you may be required to change your Plan to one that we are currently offering at that time.
    thats great since when do that do this? i never heard of this! i know ex employees who get everything on there phone unlimited for 70 a month and out or control price... switch phones and STILL have thier plans... 
    We may change prices or any other term of your Service or this agreement at any time,but we'll provide notice first, including written notice if you have Postpay Service. If you use your Service after the change takes effect, that means you're accepting the change. If you're a Postpay customer and a change to your Plan or this agreement has a material adverse effect on you, you can cancel the line of Service that has been affected within 60 days of receiving the notice with no early termination fee.
    whats the point of having a contract with them... if they can do what they want...
    and that should be before they say anything to... before buying this phone with this promotional plan. verizon has the right to change that plan anytime. 
    You must pay all taxes, fees and surcharges set by federal, state and local governments. Please note that we may not always be able to notify you in advance of changes to these charges.
    its called bold font for a reason... send me a statement saying that this is WHY! in BOLD! duhhhhh.... 
    We're here to help. It's important that you notify us right away, so we can suspend your Service to keep someone else from using it. If you're a Postpay customer and your wireless device is used after the loss or theft but before you report it, and you want a credit for any charges for that usage, we're happy to review your account activity and any other information you'd like us to consider. Keep in mind that you may be held responsible for the charges if you delayed reporting the loss or theft without good reason, but you don't have to pay any charges you dispute while they are being investigated. If we haven't given you a courtesy suspension of recurring monthly charges during the past year, we'll give you one for 30 days or until you replace or recover your wireless device, whichever comes first.
    sooo... you will do all that... but you wont handle the insurance... claim the insurance... i really have to go to some one else... to get the phone that you have exclusively... wow... thats all i really have to say... 
    that im not going to pay you ever! you guys are a joke. and im going to sprint... maybe when you guys actually get better service... ill come back... but thanks again for NOTHING!

    Hello and thanks to the community for providing great help to our fellow member. Hi, frustratedfan. I've just finished reading your posting and I can see why you partially call yourself "frustrated". What I'm hoping is that the "fan" portion of your nickname was meant for Verizon Wireless. To me, that means you're still a fan of VZW, but you don't much like what you've seen lately. I really want to help you regain your confidence in us, but I really need your help understanding something. In the title you provided for this thread, you say that VZW should be more like Sprint. I certainly don't want to invalidate your opinion on that, but I think I missed out on what areas you feel that Sprint is superior to VZW. You mention the hours of availability that our Customer Service is available, but you don't state what Sprint's customer service hours are. You mention our insurance procedures, but you don't state how they differ from Sprint. You mention several sections of our Customer Agreement, but you don't state how Sprint's Customer Agreement is better. 
    Again, it is not my intention to invalidate your feelings on this. On the contrary, I want to support you! I want to see where one of our valued customers feels that we need to improve. 
    Until I hear back from you on those points, I would like to respond to those things that I can help you with: VZW policies. As you know, our Customer Service teams are available 17 out of each 24 hour day to discuss billing and service concerns. That's more than 2/3 of each day! Most other utilities can't say that! What we're also proud of My Verizon, which is available at all times. Just about any question you have about your bill or concern about your device can be addressed at www.verizonwireless.com! Don't have access to a computer? Try My Verizon Handset. Just want to check your minutes (dial #MIN) or check your data usage (dial #DATA) or make a payment (#PMT) or even know if you can get a discount off a new phone (#UPG)? All available 24 hours a day!! 
    I'm here to help with any concern you have, frustratedfan. If you prefer not to discuss this publicly, you can send me a personal message. Thanks!

  • Its not allowing to post more than 10 questions

    hi frds
    while im posting a questions in forum im getting message like you cant post more than 10 questions.
    why its showing please give me the solutions.
    regards
    soraj
    Moderator: you need also to close your messages which have been answered.

    Hello ,
    Please consider using a check table for the characteristic involved if you are working with large
    number of values assigned
    With a check table you have a possibility to work with a huge amount of values , also the performance should improve                          
    Please refer to the link
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/ec/62ae27416a11d1896d0000e8322d00/frameset.htm
    Section - Entering a Check Table 
    Hopefully the information helps
    Thanks
    Enda.

  • Javac - command not found (Linux question)

    Hi Im running openSUSE 10.2 and recently downloaded the jdk from sum.com
    I added the path of the executable files (home/jdk/bin) to my PATH environment variable, and the command 'java' works fine nomatter what the current directory, 'javac' however claims not to be found, as does appletviewer and many others.
    really cant figure this out, seeing as im sure the PATH variable has been set correctly
    sorry this is more of a linux question than java but i hoped someone on here might have had the same problem
    thanks

    use this command to check if javac is in path
    which javac if you have set the path correctly, then it should display the location of the javac otherwise it will display an error that no javac found in path..

  • Navigator transition animation more like android default background animation

    Hi,
    I'm building an mobile Air app for my tablet.
    This app has multiple screens and the user will be navigating through them a lot.
    I'm using the navigator push and pop views to accomodate this.
    this works perfectly with all the default animations.
    My problem is that i would like the animation to be more like the default android background animation.
    and by that i mean that one you drag your finger over the screen the next 'view' already comes into the viewing area a little bit (and your current view disappears a little).
    If you release your finger to early the view snaps back, if you swipe through you go to the next view.
    With the current navigator transition it's an 'all or nothing' swipe, if i swipe i get the next (or previous) view but i don't have the option to drag my screen a little bit to see the first part of the screen i want to navigate to.
    Does anyone know of a way to accomplish this with the navigator?
    Or am i forced to abandon the navigator and write this transition logic by myself?
    I hope i made myself clear, any help is much appreciated.
    with kind regards,
    Peter Bierman

    AIR does not currently have an API to read this particular Android setting. To answer your question, Flex view transitions are independent of the Android system settings.
    Jason San Jose
    Software Engineer, Flex Mobile

  • More Like This no more?

    For a while now, the "More Like This" section doesn't seem to be very helpul. Many posts (most for new questions) don't have any suggestions at all. This is especially strange as when you input the question in the search field, plenty of related discussions are found.
    For the minority that has suggestions listed, they don't seem to be very appropriate. Almost as if just a single word was picked from the question and that's what the suggestions were based on.
    The More Like This list used to be very useful in referring people to the right area and oft-discussed topics. What happened? Did Apple change the search logarithm that doesn't work, or are they in the process of transitioning to something better ,and this is just a temporary condition?

    I answered a post a few minutes ago illustrating exactly why 'more like this' will be a facility we shall miss.   And on another section I noticed a 'more like this' that was totally out of sync with the subject matter.
    There's no rhyme or reason to it and hopefully someone higher up will take notice.  
    One other benefit is that he who posts a question will then be presented with many pertinent and alternate viewpoints that can resolve the problem even when his original post has not been responded to.

  • More like this?  Bwhahaha.

    The "More Like This" on the right side need to be fine-tuned to only give useful posts. At the very least, posts that are recent and have solved answers should start the list.
    I keep seeing this post
    https://discussions.apple.com/message/8334632#8334632
    which is from 2008, is unsolved, and has no replies. It really shouldn't be at the top of the "More Like This" list for questions regarding moving itunes libraries.

    Notice that 3 out of the 5 items in the More Like This widget lead to topics in the Lounge which are not viewable by the vast majority of members.
    And, I see the same 5 links whether I'm logged in or not (which, I'm pretty sure, means that everyone sees them).
    When I am not logged in and click on those Lounge-bound links, I hit two login pages and one redirect loop error page. Who knows what logged in L1-5 members see when they try those links? Three redirect loop error pages? They certainly never get to see the Lounge topics....
    Beyond this, I've actually been surprised at how relevant most of the items in the More Like This widget have been.

  • Is it me? Or couldn't the "More Like This" links be improved?

    I already sent feedback to Apple on this.
    But I have noticed that links in the "More Like This" section isn't that useful as they are not completely and always related to the subject at hand. Don't you think it can be indexed a little better?
    I know it might be pointless even writing this, but I was wondering if it was just me or if anyone else has been running into this problem.

    I was responding to this from the  OP
    "SIM=Failure/Invalid SIM" huh? That's what shows up. Messed up programming.
    and explaining why that was in the more like this box.  Not all searches in any database turn up what we would like but it is a It is a valid hit for his question.
    As I wrote I was not defending the search here in fact one of my first posts way back when was asking about the lack of decent search. What  I was told then and what I tell posters now is to use Google and restrict the search to ASC. You'll get much better results.
    regards

  • Trying to create a text that is on fire or more like a hot branding iron

    Trying to create a text that is on fire or more like a hot branding iron

    Something like this?
    That was from a project I did a few months ago.  Sounds similar to what you want.  I did that in After Effects.
    Basically all I did was add a glow effect to the text and messed around with the glow parameters.  The black smoke is animated and moves on the actual video and is basically some pre keyed smoke footage that I had.  The smoke was originally gray but black looked cooler.
    I'd say it's pretty close to your hot branding iron thing.

  • Lr 3.4.1 screen crashes on load; reverts to previous screen or won't shut down--see "more like thli

    1.   Have successfully imported some images to Lr 3.4.1, but when I try to import the second batch of images from the same memory card by going thro the import steps, Lr either reverts to the previous screen (of the last set of images) or the whole screen goes blank, and the tabs can't be operated, and I can't close the application either.    What have I done wrong or what do I need to do to correct this problem?
    Message was edited by: Ron Bob 2.   Lr 3.4.1 crashes whern importing images from camera memory card;  3.   Can specify/name a new folder, but then it disappears;  4.   Then Lr freezes and reverts to previous image screen in Library;  5.  And then when I try to reload Lr by going to File/import images from camera, Lr freezes or goes to a single blue bar at top of screen (nothing else shows in Lr);  Nor can I then close Lr by ticking on the X, or by trying to exit under the file menu.  6. Am using Windows Vista (with latest updates),  Lr 3.4.1, AVG 2012.     Seems to be similar problem to others reported in the "More like this" section, but I am not using 'tethered captiure', although I AM TRYING TO IMPORT FILES FROM A CAMERA MEMORY CARD. NB  The heading for this complaint has been modified/edited.
    Message was edited by: Ron Bob
    6/9/11     Problem now seems to be resolved with the download and use of Lr 3.5!!   It seems to me that my original problems seem to be caused by the memory card and trying to download the second half of the images in a different folder???.

    For xfce4 shutdown and reboot you probably have to fix the Policykit.conf: http://bbs.archlinux.org/viewtopic.php? … 19#p496619
    I just got helped with this myself.
    If you use my /etc/PolicyKit/PolicyKit.conf make sure you use your own "login name"...... mine is "seventy3" so use your own "$USER" name like the HAL ArchWiki page says here: http://wiki.archlinux.org/index.php/HAL … utomounter
    Last edited by methuselah (2009-02-10 20:30:06)

  • Can we ask more than one question at a time in Quick Poll?

    Dear Experts,
    Can we have more than one question at a time in Quick Polling.
    The User has to answer more than one question in single poll.
    is that possible?
    Thanks in advance for your attention.
    Regards,
    Viswes.

    Hi Viswes,
    Through customize u can achieve ur requirement..
    Create two Quickpoll with different campaign name and start ongoing..
    Next create  iview for each quickpoll by using KM QuickPoll iView Template  enter the corresponding campaign name for the quickpoll iview.
    Next create one JspDynPage component in NWDS
    In that JSP file
    <iframe  src="Give the preview path of Quickpoll iView 1" align="left" >
    </iframe>
    <iframe  src="Give the preview path of Quickpoll iView2 " align="left" >
    </iframe>
    Now u create one iview for that JspDynPage component
    in that two Quickpoll question will display in one iView..
    Points are welcome if its helpful
    Regards
    Thillai

  • Why doesn't the "more like this" section offer suggestions anymore in the netflix app?

    In the netflix app there is an area labeled "More like this" and it usually show suggestions of other movies.  After the last ATV update, it just shows "More like this..." but it doesn't show any movie suggestions.  When I spoke with netflix, they said the problem was with Apple since they design the netflix app.

    I would also like to know why the suggestions are missing.  It seems to work when you select movies outside netflix.

  • With my iPod Touch I need to reboot the wi-fi about half the time when accessing wi-fi connected apps, more like 80 percent when using Viggle. Irritating.

    My iPod Touch has a quirky wi-fi connection. About half the time I need to go to settings and reboot the wi-fi to use apps like weather and mail, more like 80 percent with Viggle. It is irritating. Is it an iPod software problem? I don't have this problem with other platforms.

    Do you have this problem when connected to other networks?
    Try the following to rule out a software problem:                 
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on the router
    - Reset network settings: Settings>General>Reset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    If you ony have the problem with your network that indicates a problem with your router.

Maybe you are looking for

  • What do I do when my app store wont let me go back?

    I was just o  the App Store in the Featured folder when I clicked onto the App I liked. It took me to the page where I Could download it from my iPhone so  I downloaded it. When I went back to the page I was on it wouldn't let me go back to the Featu

  • How do I change the order of phone numbers in a contact?

    When I enter phone numbers for a contact on the iPhone, they seem to be stuck in the order they were entered. Is there any way to change the order using the phone interface? I sync with Yahoo Address Book. Will the order be preserved if I change the

  • How to search for CLOB item in Form?

    I create a table CREATE TABLE PHOTOS (PHOTO_ID VARCHAR2(15) NOT NULL, PHOTO_IMAGE BLOB, TEXT_DESCRIPTION CLOB, FILENAME VARCHAR2(50), FILE_SIZE NUMBER NOT NULL, ACCESS_RIGHT VARCHAR2(7) NOT NULL, CONSTRAINT CK_ACCESS_RIGHT CHECK (ACCESS_RIGHT IN ('PR

  • Saving MS Word document in HTML and importing

    The Word doc is over 4MB with linked TOC, text, and text boxes filled with text from mainframe applications. The text boxes are difficult to control - non-symetrical and, in some instances, overlapping. The text boxes are Fireworks gifs housed in a s

  • Substitute Item in Bills Of Material

    Hi Gurus, Does the MRP and WIP considers the substitute items in case the primary item is not in stock or less in number. If not then what is the utility of giving substitute item. If yes then please provide the setup steps. Is there any work around