Unable to understand these linux commands

Hello

I'm new on Linux environment.

Could someone please suggest these orders meaning. These commands are executed when running oracle DB cloning.

* 1.) echo "HOTBACKUP since... $(date"+ %Y%-%m-d % H: % m: %S"))" > > /backup/logs/hotbackup.log 2 > & 1 *.
* $ORACLE_HOME/bin/sqlplus/nolog @ /backup/hot/hotbackup.sql > > /backup/logs/hotbackup.log 2 > & 1 *.



* 2.) echo EI "hot for the remote copy backup file recovery $ (date + % H:%M:%S')\n d % - %m %Y ' > > vi 2 > & 1 *.









Thanks and greetings
MZ

Published by: MZ_AppsDBA on Sep 25, 2012 06:53

Published by: MZ_AppsDBA on Sep 25, 2012 06:53

Please always include the version of Oracle and Linux then to ask questions.

Orders means that you must update your cloning procedures.

You should probably avoid using files that have the same names as shell commands. The > vi redirects (create or add) the output of echo in a file named vi and the 2 > & 1 redirects error on stdout output. If you were a file named vi with executable privileges and your current directory in the path or to have some interesting aliasing, you could be the victim of a bad joke when you try to edit a file.

Tags: Database

Similar Questions

  • Unable to understand the output...

    Hi gurus

    I was reading a little code and unable to understand a single line, can someone guide me to understand this line.

    Code example

    Set serveroutput on

    DECLARE

    n number;

    BEGIN

    n: = 2 * 33.

    dbms_output.put_line (n);

    end;

    Result

    8589934592


    Now, I would like to know how the calculation performed for n: = 2 * 33 in the background so it become 8589934592 result. Thanks in advance.

    One of these curiosities PL/SQL in SQL vs. In PL/SQL * is same as it is built based on POWER. 2 * 33 is identical to POWER (2.33). It is documented in the Precedence of the operators:

    Table 2-3. precedence of operators

    Operator Operation

    **

    Exponentiation

    SY.

  • Unable to understand the code output

    Hi all

    I was reading one of the codes and unable to understand its outcome, I'm really grateful if someone guide me to understand. Thanks in advance.

    Code example

    create or replace package Mp_pkg

    IS

    P_nn TYPE TABLE IS NUMBER

    INDEX BY VARCHAR2 (10);

    END;

    ----------------

    DECLARE

    l_numbers Mp_pkg.p_nn;

    Start

    FOR indx IN 1... 50

    loop

    (indx) l_numbers: = indx;

    END loop;

    dbms_output.put_line (l_numbers. (Last);

    END;

    ----------

    Result

    9

    -----------

    According to my understanding, result should be 50 because the last value of l_number is 50...

    Please guide...


    Hello

    As John said, the VARCHAR2 '9 ' (or any string '9') is longer than the string of 50', for the same reason that the string 'Z' is longer than the string "THE".

    What do we mean when we say this string x is greater than string y?  We mean that

    1. The 1 x chraracter comes after the 1st character of y (in sort order), or, if these characters are equal
    2. x has a 2nd character, but is not, or, if both are more than 1 character
    3. The substring SUBSTR (x, 2) > SUBSTR (y, 2)

    What (if any) strings mean is not serious, so

    • '9' is greater than '50',
    • 'zero' is greater than 'a '.
    • 'small' is greater than 'big '.
    • 'MIN' is greater than 'MAX '.
    • 'yesterday' is greater than 'tomorrow', and
    • "1 January 1900' is superior to" December 31, 2015 ".

    According to rule 1 Correction: rule 3 is the reason why 'MIN' is greater than 'MAX '; the others are all due to rule 1

  • Unable to open these files. Your Internet security settings prevented one or more files being opened.

    OS: Windows 7 Ultimate 32 bit with UAC disabled

    Hello

    I turned on my computer this morning and all of a sudden all _ broke loose. Everytime I try and open an exe file I get a security alert box Windows telling me that:

    "Unable to open these files. Your Internet security settings prevented one or more current files opening. »

    I read through every thread I can find on the subject, and none of the "answers" worked for me.

    I tried the common next 'solutions' with no luck:

    (1) right click on the exe, click Properties
    Click the Unlock button
    Click OK

    (2) adding exe to the control panel > Windows Defender > Tools > Options > excluded file types

    (3) start / Control Panel / Internet Options.
    (Displays control panel Internet Options)
    Click the security"" tab.
    Click "Local Intranet".
    Drag the slider to "Low".
    Click the 'Sites '.
    Click on the button "Advanced".
    Enter the IP address of the NAS / SMB / CIFS / some server and click "add".
    Click "close".

    (4) delete the registry key - HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes\{EF87B4CB-F2CE-4785-8658-4CA6C63E38C6}\TopViews\{00000000-0000-0000-0000-000000000000}

    (5) create a profile admin completely. -This one was interesting, when I logged on the account there was no aero theme - he went immediately to the essential.

    So any ideas?

    I had not mentioned in my HKCU registry entry. I solved the problem by resetting all my settings IE. If something in Internet Explorer is the cause.  In fact, which fixed the problem for every user profile on the machine.

  • Pop Security Windows said ups 'unable to open these files. "

    Original title: Pop ups Windows security

    I use Windows 7 and I constantly get a message saying Windows security:

    "Unable to open these files."

    "Your internet security settings prevented one or more files being opened."

    'C:\PROGRA~2\Java\JRE18-1.0_6\bin\ssvagent.exe '.

    I don't know how to stop this message, I would appreciate it if you would help me.

    This error seems to be a very old mistake of Java associated with Vista.  I don't know why you should get it now with Windows 7.

    Start by going here to ensure that you have the latest version of Java and have removed all previous versions--> http://java.com/en/download/installed8.jsp

    If this does not help, remove all versions of Java--> http://java.com/en/download/faq/remove_olderversions.xml

    Restart the computer and then download and install the latest version.

  • Need to understand what this command is

    I need to understand what this command does, it was on a router that I just picked up and I am familiar with this part of the order.

    IP nat inside source static tcp 192.168.5.201 mail_192.168.7 25 203.161.81.22 25-extensible route map

    I ask is because the customer has a scanner that sends scanned document via smtp to an off-site mail server which, in turn, sends mail to the user.  Before that, they used an internal e-mail server (. 201). What is mail users can go out and reach their destination.  However, any scanned mail does not work and I'm trying to understand why.  The scanner has an internal ip address, which is 192.168.5.25, the 192.168.5.201 is a mail server that was running and this command seems to be allow e-mail from the mail server (. 201) to send mail to another location through VPN tunnel to our other offices. What I'm trying to understand is the order indicating that the mail de.201 can go to the 192.168.7 network via the 203.161.81.22 port road 25.  If this is true who will stop mail from other devices out via 203.161.81.22 on port 25

    Hello jonl711

    As you know, do the NAT ports on a Cisco router, add a line for each of them, such as:

    IP nat inside source static tcp 192.168.5,201 25 X.X.X.X 25 - card expandable route

    Here we ¨nating¨ port 25 to the machine 192.168.5.201 in our network, where XXXX is the our public ip address.

    That said, here I explain what each command

    access-list 112 refuse host ip 192.168.5.201 192.168.1.0 0.0.0.255

    access-list 112 refuse host ip 192.168.5.201 192.168.7.0 0.0.0.255

    access ip-list 112 allow a whole

    --> Here you can create an access list who deny ip 192.168.5.201 go to 192.168.1.0 and 192.168.7.0

    mail_192.168.7 allowed 10 route map

    corresponds to the IP 112

    --> Here you create a ¨rule¨ to match the access list you created.

    IP nat inside source static tcp 192.168.5.201 mail_192.168.7 25 203.161.81.22 25-extensible route map

    --> and here you are mapping the IP 192.168.5.201 with port 25 (SMTP) that go outside with the IP 203.161.81.22 with port 25 (SMTP) and get a match with the road map

    Best regards and have a nice day

    Johnnatan Rodriguez Miranda

    If this answer is satisfactory to you, please mark it as response.

    Thank you

  • We are unable to process these data. Try again later or use a different browser

    I tried to buy creativ-cloud for 2 days now and this is the error I get when I try to buy it' we are unable to process these data. "Try again later or use a different browser.

    I found the problem, I chose the wrong month for obtaining the diploma for my subscription thank anyway for the help

  • Ed on the Linux command line

    Dear all,

    I tried to use the ed command to open an editor to update my sql Linux instructions. Please can someone tell me how I can implement it in the Linux command line.

    Thanks in advance,

    Ash

    How can I open the vi under Linux to do the same thing at sqlprompt please?

    Try

    $ export EDITOR=vi
    $ sqlplus /
    

    You can add this line (export EDITOR = vi) to the profile of the user of your operating system.

  • Confirmation of these CLI commands...

    Given that I have no development environment, and I only have switches production, is - anyone can confirm the function of these commands?

    I have VLAN 10, 20, and 30 defined operation:

    config said-> "vlan 10,20,30.

    I want to * add * 40 and 50.   Is a supercargo command another, or is it a true ADD?

    If I run it, "vlan 40,50" will be the config now say, 'vlan 10,20,30,40,50"or will my order supercargo what existed, where now the config looks like,"vlan 40,50? (where the existing VLANs will disappear)?

    **************************************************

    Second: Same question with the addition of VLAN to a port channel.

    My current config has VLAN 10, 20 and 30 on a port channel:

    config-> vlan allowed switchport General add 10,20,30

    If I add 40 to 50, it is a true ADD, or made an order existing supercargo?   When I run it, 'switchport general allowed vlan add 40,50' resulting?

    config->

    "vlan allowed switchport General add 10,20,30,40,50" (an ADD-ON)

    or

    "vlan allowed switchport General add 40,50" (a supercargo)

    If the config would say then that you question, "vlan 40,50", "vlan 10,20,30,40,50".» The commands add the VLAN to the config. They do not replace the VLAN already configured.

    When you issue, 'switchport general allowed vlan add 40,50' ' switchport general allowed vlan add 10,20,30,40,50"sera the result."

  • Unable to connect my Linux Machine database

    Dear all,

    Hope you will be fine.

    I'm having a problem to connect to PL / SQL Developer with my database available on the Oracle Linux virtual machine.

    I have a windows 7 installed on my PC, I have installed a virtual machine and install oracle 11g on this machine. I have a database named orcl on this and I am trying to connect to the database with my windows machine. I assigned ip appropriate to both computer and created under the setting mentioned in my tnsnames.ora file. But when I go to connect it shows error ORA-12203: TNS: unable to connect to the destination. Please guide me where I am doing wrong so I'll do it properly.

    ORCL_11G =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS =

    (COMMUNITY = tcp.world)

    (PROTOCOL = TCP)

    (Host = 192.168.0.100)

    (Port = 1521)

    )

    )

    (CONNECT_DATA = (SID = orcl)

    )

    )

    Kind regards

    Atif Zafar

    Thank you all for your help. I solved this problem by mentioning the HOST in listener.ora and tnsnames.ora files. In fact, I have to assign the static IP address of my Linux machine and unfortunately not to mention the IP address in my two files. It is show HOST = localhost this is why it is forbidden to connect with the other machine. Now I connected successfully and it works fine now.

    You mention linux machine IP here.

    ORCL =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS =

    (COMMUNITY = tcp.world)

    (PROTOCOL = TCP)

    (Host =192.168.0.100)

    (Port = 1521)

    )

    )

    (CONNECT_DATA = (SID = orcl)

    )

  • New Macbook pro with new Lightroom 5 CC will not import pictures.  Can't read.  Lightroom on the phone people are unable to understand.

    I could not import new images into Lightroom 5 on a brand new Macbook Pro.  Lightroom 4 works fine, but the new Creative Cloud Lightroom 5 says that the images are unreadable.  The folks at Adobe have yet to be able to understand by phone and I find myself waiting for too long.  The images will be important in IPhoto so no problem. All are of the FIRST.

    You must check in the Finder using get info (command-I). Make sure that the destination you set in Lightroom has permission to write to you. Also check that the destination is really in the right place and not trying to write to a folder root on your main hard drive or something like double.

  • Unable to understand the result of the loop


    Hi all

    I got the tracking code:

    Code

    Set serveroutput ON

    DECLARE
    TYPE IS VARRAY months_array (12) STRING (3 CHAR);
    MONTHS months_array: = months_array ('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec');
    BEGIN
    < < list_month > >
    FOR month number IN REVERSE 6.12
    LOOP
    dbms_output.put_line (' number month = ' | number month |) "Items =' | MONTH (MONTHNO));
    CONTINUE list_month
    WHEN number month < 9;
    END LOOP;
    END;

    Code output

    number months = 12 = Dec

    number month = 11 = Nov

    number months = 10 items = Oct

    number month = 9 elements = Sep

    number month = 8 = August

    number month = 7 cells = Jul

    number months = 6 items = Jun

    My question is if you notice the code condition which is CONTINUE list_month number months WHEN < 9 means loop must be output if number month < 9 and according to code loop starting with number months = 12 so system should display the 1st line of output that is number months = 12 elements = Dec , then exit because the loop exit condition is true that is list_month MORE WHEN number month < 9. Please, help me to understand the output.

    Hi Muzz,

    try something like this

    BEGIN
      FOR monthno IN REVERSE 6..12
      LOOP
        exit when monthno < 9;
        dbms_output.put_line('monthno= '||monthno||' Elements='||MONTH(monthno));
      END LOOP;
    END;
    

    concerning

    Kay

  • Unable to understand the Plan to explain

    Hi gurus

    I'm trying to understand some basics of explain plan and get a hard time, I was reading the book tuning performance and incapable of understanding explain plan for the following query:

    Example query

    EXPLAIN PLAN FOR

    SELECT *.

    WCP

    WHERE THERE IS NOT (SELECT 0

    OF THE Department

    WHERE dept.dname = 'SALES' AND dept.deptno = emp.deptno)

    AND NOT EXISTS (SELECT 0

    Bonus OF

    WHERE bonus.ename = emp.ename);

    -------------------

    Select * from table (dbms_xplan.display);

    ---------------

    Output

    Hash value of plan: 734347697

    -----------------------------------------------------------------------------

    | ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time |

    -----------------------------------------------------------------------------

    |   0 | SELECT STATEMENT |       |     5.   290.     7 (15) | 00:00:01 |

    |*  1 |  HASH ANTI JOIN |       |     5.   290.     7 (15) | 00:00:01 |

    |*  2 |   HASH ANTI JOIN |       |     5.   255.     5 (20) | 00:00:01 |

    |   3.    TABLE ACCESS FULL | EMP |    14.   532.     2 (0) | 00:00:01 |

    |*  4 |    TABLE ACCESS FULL | DEPT |     1.    13.     2 (0) | 00:00:01 |

    |   5.   TABLE ACCESS FULL | BONUS |     1.     7.     2 (0) | 00:00:01 |

    -----------------------------------------------------------------------------

    Information of predicates (identified by the operation identity card):

    ---------------------------------------------------

    1 - access("BONUS".") ENAME "=" EMP ". ("' ENAME ')

    2 - access("DEPT".") DEPTNO "=" EMP ". ("' DEPTNO ')

    4 - filter("DEPT".") DNAME "= 'SALES')

    -------------------------

    Grateful if someone help out me. Thank you

    In addition, I really appreciate if someone proposes a simple tutorial to explain plan. Thanks again

    Concerning

    Shu

    Hi Shuumail,

    Here is the tutorial http://allthingsoracle.com/execution-plans-part-1-finding-plans/

  • Understanding of RMAN command file

    Hi, please can someone put me right as I am confused with RMAN concept. (using 11.2, AIX, no catalogue)

    Backup database more newspapers to archive and my DB is saved. I also have autobackup controlfile on. Ive done many restorations of test in this way when the data files are missing or needs to get back to a point in time.

    As a test, I renamed all my files from control and then did a restore. I then restore the control file which I am starting from the automatic backup location. However if there is no autobackup then what? Where can I get my control record of?

    Of the "backup database" command not actually backup control files? I always thought that a backup has been incomplete if the control files were not backup up.

    Please can someone clarify this?

    Thank you very much

    Adam

    However if there is no autobackup then what? Where can I get my control record of?

    That's what I do all my backups: don't configure CONTROLFILE AUTOBACKUP ON, and I always explicitly backup backups of database/archivelogs after controlfile (BACKUP CURRENT CONTROLFILE): in this way, I always know what controlfile to restore.

    DATABASE BACKUP command includes the backup controlfile anyway, but I prefer my name so that I can immediately identify the backup controlfile.

  • Unable to understand the original clause


    Hi gurus

    I tried to understand what follows where the clause, but still facing problem to understand that and I really appreciate if someone explain it to me step by step and in detail. Thanks in advance:

    Where Clause

    NOT the CASE (min_age = min_min_age

    OR (min_age - 1, rule_id, status_code)

    IN (SELECT max_age, rule_id, status_code

    OF got_analytics

    )

    )

    Concerning

    Shu

    not ( -- simple
      min_age = min_min_age  -- simple
      or -- simple
      (min_age-1, rule_id, status_cod) in (select max_age,rule_id,status_cod from analytics) -- complex
    )
    

    Description for COMPLEX line

    The triplicate (min_age-1, rule_id, status_code)

    must match one of the Geometry produced by:

      (select
          max_age,rule_id,status_code -- your triplicate
        from analytics)
    

    You'll have to check that my logic, but I think that the 'complex' line can be re-written as a clause EXISTS

    EXISTS ( select null
             from analytics A
             where A.max_age = X.min_age - 1
               and A.rule_id = X.rule_id
               and A.status_code = X.status_code )
    

    MK

Maybe you are looking for

  • iTunes does not recognize my iphone after 6 put 12.3.3 to level

    I am unable to see my iphone to sync after the update to itunes to 12.3.3. I use Windows 10, and I went through all the steps here - If iTunes does not your iPad, iPhone or iPod - Apple Support . Anyone has addressed this issue successfully? I have u

  • Remember me

    Hi all- My computer has just crossed a virus removal major by HP and IE remote assistance has been reloaded. Sites that I had on my now non-existent Favorites bar do not remember who I am automatically anymore. I have to log in each time. I used just

  • How can I repair file DBX corrupted outlook express.

    2 GB of data is available canned Inbox.dbx, but because of the corrupt header files dbx or any other problem, I'm not able to see the mails. Kindly help.

  • Attempt to send as a picture of Windows Live Gallery opens Outlook, I like to use gmail

    Photos of Gmail Whenever I want to send a picture from Windows Live Gallery, he still goes to Outlook. My email account is with gmail. How can I get the photo to access gmail?

  • HP Envy printer 4500: Hp 60 &amp; 61 toner cartridges

    I had a 4400 HP all-in-one printer.  It uses a toner HP 60 cartridge.  I just bought a HP Envy 4500 all-in-one printer.  It uses a toner HP 61 cartridge.  Are they interchangeable?  I have several cartridges of HP #60 new official I want to use the H