Exports (from shell script) without password given explicitly in the script

Hi all
I have Oracle 10g 2 on SLES 10 64-bit. I would like to export the database using shell scripts data pump. Is there a method to hide the password in the script file.

Currently to be done by the command:

expdp system/password@database...

If any user who see the script will know the Passover.

Concerning

Groxy

Hello

Have you thought about the feature ' Secure external password store "which was added in 10 gr 2? It uses the Oracle Wallet to store a database_alias with the name of user and password credentials in an encrypted format. You can then enter your order expdp like this:

expdp / @database_alias...

Take a look at the security of 10gr 2 Guide. There is a chapter on how to put in place.

John

Tags: Database

Similar Questions

  • INS-06003: failure of connectivity SSH without password for installation with the following

    Dear all,

    I am in the process of installing Oracle 11 g on Redhat Linux 2 grid Infrastructure.
    I have installed ssh on both RAC nodes and when I run

    SSH - p7547 racnode1 "date; hostname ".
    SSH - p7547 racnode2 "date; hostname ".

    I get the date and the hostname without error on both nodes.

    But during the installation of the grid, I get this error message:

    INS-06003: failure of connectivity SSH without password for installation with the following nodes: [racnode1, racnode2]

    My thought is that it is because of the port has changed 22: 7547 but where them specify this port in the configuration of the CARS?

    I also get this information in the Setup log:

    WARNING: Could not establish a SSH connectivity with node racnode1. Reason: java.net.ConnectException: connection refused

    Kindly help on that.

    Kind regards
    Imran

    misterimran wrote:
    Dear all,

    I am in the process of installing Oracle 11 g on Redhat Linux 2 grid Infrastructure.
    I have installed ssh on both RAC nodes and when I run

    SSH - p7547 racnode1 "date; hostname ".
    SSH - p7547 racnode2 "date; hostname ".

    I get the date and the hostname without error on both nodes.

    But during the installation of the grid, I get this error message:

    INS-06003: failure of connectivity SSH without password for installation with the following nodes: [racnode1, racnode2]

    My thought is that it is because of the port has changed 22: 7547 but where them specify this port in the configuration of the CARS?

    I also get this information in the Setup log:

    WARNING: Could not establish a SSH connectivity with node racnode1. Reason: java.net.ConnectException: connection refused

    Kindly help on that.

    Kind regards
    Imran

    You can have the file/etc/ssh/ssh_config, where the default port is set at 22. Replace with 7547 and try ssh racnode1 "date; hostname". If it works, then it contains the definition, you may need to perform.

    Kind regards
    Julien

  • export to shell script variable

    Hi all

    When I tried to export values of variables using shell script. Its exported values dies shell dies.
    oracle:/app/oracle # cat a.sh
    export ABC=hi
    oracle:/app/oracle # ./a.sh
    oracle:/app/oracle # echo $ABC
    ksh: ABC: parameter not set
    How to store these values in the current shell
    oracle:/app/oracle # cat a.sh
    export ABC=hi
    oracle:/app/oracle # . a.sh
    oracle:/app/oracle #  echo $ABC
    hi
    Problem I sthat, I can't use above method I provide parametrs to shell. I want to make the interactive script.

    select z in `ls`
     do
     echo $z
     break;
     done
     1) 1.txt
     2) a.sh
     3) admin
     #? 3
    admin
    Please suggest.

    Let me know if the issue is not clear.

    Thank you and best regards,
    Ajay

    How is it a question of Oracle? Have you tried to check the Unix Forum instead?

    Nicolas.

  • Feedback from shell script?

    I know that you can use app.system () in PS to run a shell script.  Is there a way to capture the information it is out?

    For example:

    Info var = app.system (' / Users/ypml/Desktop-name \"*.jpg\"'");

    Alert (info);

    Returns '0' instead of the list of the files that were found.  Any ideas how to get this information?

    Thank you!

    Use a redirect to save the output to a file. Then read the file info.

  • Why I can boot into safe mode with internet connection, use the operating system, etc., but can not open a normal session without password administrator; who got the disabled.

    OEM Vista Home Premium. Normal startup does not recognize the password. When you click User icon it says: "your account has been disabled. Please, see your system administrator"I looked in the mirror, but it did not help. Booted, press F8, went in safe mode with network connection. Everything seemed to be there. Surf the internet and then started to ask me why I don't have a password here when I did normal start-up. What is the password? Check "Microsoft Answers", but what I came out which was, I need to reinstall the OS, which I can't do it without a drive anyway.  I thought that I've used it before, I knew the password. This computer has been recently "reinstalled" internal folder 'restore '. Something must happen. A unknown password can be removed from safe mode? Ultimately how reinstall you a clean Vista when all you have is the key to product and no local or OEM support? What would be the difference between a password reset disk and the OS disk.  The two would probably be stored side by side. Not to mention that most of us Dummies want to just surf to buy, and if we can not surf, we cannot buy. Dummies help us get back on the internet, Microsoft. At least take care of this shot.

    Hi PAM,.

    In Safe Mode, try to activate the high administrator account http://www.howtogeek.com/howto/windows-vista/enable-the-hidden-administrator-account-on-windows-vista/.  Then log in using account and use it to solve problems with your normal administrator account login via control panel / user accounts / manage other accounts.  Find the one you want and make the appropriate changes to fix it.  If you can't, then you need to address as a corrupt account by using the following procedure:

    To fix this use http://windows.microsoft.com/en-AU/windows-vista/Fix-a-corrupted-user-profile.  If this is the only available administrator profile (you must be an administrator to solve this problem), activate the hidden administrator account (HAA) (i.e. what you did above, or you can do this by using these instructions instead: http://www.computerworld.com/s/article/9001970/How_to_access_the_true_Administrator_account_in_Windows_Vista?taxonomyId=17&pageNumber=1.)

    Once that is done, don't forget to disable the HAA to save it in case it is necessary once again and for safety reasons (since people often try to hack into systems using this account).  Do NOT use the HAA as your administrator account because if you lose the only administrator on the system account or it is damaged again, then you're watered.

    The fact that it says it is disabled gives me to think that you can use the guest or built-in Administrator account already (as normally, you cannot disable an account, but you can with these two which cannot be deleted and only disabled).

    The password reset disk is only good if created before that you need and only to restore a password, do not to activate a disabled account.  Another thing that goes beyond passwords here.

    A recovery disk allows you to do some advanced options of recovery by booting the disk, but it will help you restore the operating system (or help you with this problem either).

    An Installation of Vista genuinve disc (the operating system drive as you seem to be describing) is a disk that contains the operating system.  That, if it is the original disc supplied with the system and is exactly the same as the product OEM key that you must allow you to do a clean OS install (although I would be first backup you'll pretty much lost everything in the process).  The following should help: http://www.vistax64.com/tutorials/117366-clean-install-full-version-vista.html.

    If you have a factory Conditions or a recovery Partition restore disk, then these are alternatives to a clean install if you don't have this disc.  But the procedure varies according to the manufacturer, make and model of PC.  Most of the manufacturers will allow you to buy these records of restoration (for a fee) If you cannot do it with a recovery Partition cannot create diskettes from the recovery Partition or have no other option.  Visit the support site of the computer for information on this topic, available options, and related costs.

    If you cannot enable the built-in Administrator account and cannot access the system in normal mode with this or another administrator account, then I'm afraid a clean install or restore to factory conditions is your only option.

    I hope this helps.

    Good luck!

  • With Surface RT, the app store can be locked down to prevent children from making purchases without password?

    On the iPad, iTouch, etc, I can limit my child to make purchases (whether through the app store or App).  What is this feature exists on the Surface RT?  The same question could be asked for the Surface.

    Just create the user accounts for children and you won't have to worry. On iOS you this is impossible because it does support multiple user accounts. It is of Windows, use the power :D

  • A pdf file exported from InDesign, but displays various error messages when the same file is downloaded on the same laptop from the company's Web site

    Hello

    I'm having a problem with a pdf file created for my business. It exports without problems and displays correctly on my computer, but once it is transferred to the Web site and you download from here, pages randomly displayed not correctly, images and pieces of text go missing and different "internal error" messages pop up, such as:

    "An internal error has occurred."

    "There is an error on this page. Acrobat may not display the page correctly. Please contact the person who created the pdf document to correct the problem.

    "Failed to retrieve the embedded police"LICYDR + GaramondMT". Some characters may not display or print correctly.
    "Insufficient for an image.

    And when I close the pdf file it asks if I want to save even if I did not bring any changes to the document. It seems that everyone has problems with pages and receive different error messages. It is exported using the smallest file size preset in InDesign. Any idea what could be the cause? Any help would be greatly appreciated!


    Thank you

    Sarah

    One thing to check is if BINARY is used in the FTP client. If a client FTP ASCII is used, it may corrupt PDF files.

    Here's another thing to check yourself for you. Find the size in bytes of your original PDF. Now, look at the size of the uploaded file in bytes. Are they the same? If this is not the case, ask your colleague the size in bytes of the PDF file on the server. Is this the same as the original, or bad file?

  • Why do I receive an email from iCloud with my password Apple ID as the beneficiary

    ON my iCloud email account, I get all emails of more bizarre Apple Apple that showing my password ID as the beneficiary, but only on my iPad and iPhone, not my Mac!

    Are you sure that these emails are legitimate emails from Apple?

  • Calling shell script program SQL and passing parameters

    Hi guys,.
    Greetings from Toronto. Is it possible to move one or more strings as parameters to a sql from shell script program?

    Shell script
    # Accept system input parameters
    p_user_id=$1
    p_job_id=$2
     
    sqlplus.exe -s $p_user_id @$RD_PATH/rd_test.sql $p_user_id $p_job_id
    SQL program (rd_test.sql)
    -- Accept system input parameters
    define p_user_id = &1
    define p_job_id = &2
    
    -- Wondering if its possible to pass these 3 parameters from a shell script program.
    -- (1) rd_test-$p_job_id-3-1.lis
    -- (2) RD_PRINTER(rd_test,3)
    -- (3) t_data
    
    select
    t_data=''rd_test-'||'''$p_job_id'''||'-1-1.txt''
    t_data_dir=''.''
    ksh $RD_PATH/another_shell_prog.sh $p_user_id $p_job_id '||a.rd_value||' '
    ||b.rd_value||' rd_test-$p_job_id-3-1.lis $RD_PRINTER(rd_test,3) '||
    '$t_data $t_data_dir'||'
    exit_status=$?
    check_command'
    from rd_job_parameter b, rd_job_parameter a
    where a.job_id = &2
    and a.jp_module_id = 'RDTEST'
    and b.job_id = a.job_id
    and b.module_id = a.module_id
    /
    As always, this is not something I have to solve that minute. Any help would be appreciated
    and I will think of the problem.

    Thank you
    REDA

    Published by: Raj404261 on June 25, 2009 11:40

    Published by: Raj404261 on June 25, 2009 17:29

    OK, just a few pointers possible if you need to go the way of shell script.

    I suggest that you have a separate SQL script for each of your options, which retains the fairly well-defined lines and keeps the maintenance as simple as possible. Therefore, in your shell script, you can have something like:

    #!/bin/ksh
    # Accept system input parameters
    p_user_id=$1
    p_job_id=$2
    
    # Deduce which script you'll call here
    # using if statements, or even a case:
    
    if [[ p_job_id -eq 1 ]]
    then
      SQL_SCRIPT=sql_script1.sql
    else
      SQL_SCRIPT=sql_script2.sql
    fi
    
    # Or using case
    
    case $2
      in
        1)     SQL_SCRIPT=sql_script1.sql;
    
        2)     SQL_SCRIPT=sql_script2.sql;
    
        3)     SQL_SCRIPT=sql_script3.sql;
    
        *)     SQL_SCRIPT=sql_script4.sql;
    esac
    
    export ${SQL_SCRIPT}
    
    #If you need to query the database at all to deduce which script to cal
    #Then something like this:
    
    SCRIPT_VAR=`sqlplus -s username/password << EOF
    set heading off
    set feedback off
    set verify off
    SELECT * FROM DUAL;
    EOF`
    
    export {SCRIPT_VAR}
    
    SQL_SCRIPT=sql_script${SCRIPT_VAR}.sql
    
    # Then just call your script:
    sqlplus. -s $p_user_id/password @${SQL_SCRIPT}
    
  • 11 GR 2 grid Setup "SSH without password problem" on AIX 7.1

    Hello

    The installer was able to login SSH without password in configuration between the nodes, but when I tried to test it, and then I got the below error:

    [INS-06006] Connectivity SSH without password do not put in place between the following nodes: [ud1 UD2].

    I tried to install .ssh without password between node1 and node2. It worked.

    But when I tried to connect without a password with the Node1 node2 .ssh. It did not work. SSH asked a password.

    On node1, were among other id_rsa id_rsa.pub and identity and identity.pub. But on Node2, there was only identities and the identity.pub.

    any help will be greatly appreciated.

    Thank you

    When you configure the RAC, it is a mandatory task to configure connectivity without password SSH (Secure Shell) between the nodes. SSH connectivity configuration is essential among the nodes of a cluster because the YES program uses the ssh and scp commands internally during the installation stage to perform remote operations, in which it copies the software from local to other nodes.

    I suggest that you try once more configuration. I give below steps:

    (1), log in as the Oracle user on the first node in the cluster (in our example, it will be on the raclinux1) and execute the following sequence of commands:

    [orac1e@raclinux1]-$ mkdir ~/.ssh

    [orac1e@raclinux1]-$ chmod 700 ~/.ssh

    [orac1e@raclinux1]-$/usr/bin/ssh-keygen t rsa

    Generate the key pair public/private rsa.

    Enter file in which to save the key (/ home/oracle/.ssh/id_rsa):

    Enter the password (empty without password): enter same password again:

    Your identification has been recorded in /home/oracle/.ssh/id rsa.

    Your public key has been saved in home/oracle/.ssh/id_rsa.pub.

    The fingerprint of the key is: f0:89:ac:ba:83:31:c4:43:97:3e:9's: a5:60:c1:8e:e6 [email protected]

    (2) when the system asks you the location of the key, accept the default settings by pressing the Enter key. Once this configuration is done on the first node, repeat the same steps on the rest of the nodes (in our example, repeat the same step on the raclinux2 node).

    (3) now, switch back to the first node (raclinux1) and run the following command to add the authorization keys. After you add the authorization keys, copy the file authorized_keys to other nodes by using the scp command, and enter Yes when prompted.

    [orac1e@raclinux1]-$ cd ~/.ssh

    [orac1e@raclinux1]-$ cat id rsa.pub > authorized_keys]

    [orac1e@raclinux1]-$ scp raclinux2:/home/oracle/.ssh authorized_keys

    The authenticity of host ' raclinux2 (192.168.2.202) cannot be established.

    Of the key RSA is 52:13:31:e8: this: ec:47:b8:06:09:4 b: c9:aa:c5:35:81.

    Are you sure you want to continue connecting (yes/no)? Yes

    WARNING: Permanently added 'raclinux2, 192.168.2.202' (RSA) to the list of known hosts.

    Oracle@raclinux2's password:

    authorized keys 100% 406 0.4K8/s 00:00

    (4) now go back to the second node, (raclinux2) and run the following command:

    [orac1e@raclinux2]-$ cd ~/.ssh

    [orac1e@raclinux2]-$ cat id rsa.pub > authorized_keys]

    [orac1e@raclinux2]-$ scp raclinux1:/home/oracle/.ssh authorized_keys

    The authenticity of host ' raclinux2 (192.168.2.201) cannot be established.

    Of the key RSA is 52:13:31:e8: this: ec:47:b8:06:09:4 b: c9:aa:c5:35:81.

    Are you sure you want to continue connecting (yes/no)? Yes

    WARNING: Permanently added 'raclinux2, 192.168.2.201' (RSA) to the list of known hosts.

    Oracle@raclinux1's password:

    authorized keys 100% 406 0.4K8/s 00:00

    (5) after you add the authorization on the second node keys, copy the file to the other nodes using the command scp, as shown in the previous example and enter Yes when you are prompted.

    (6) after setting up the SSH installation successfully through all the nodes, we will perform the following test on each node, from the first node to connect without password between all nodes to follow the recommendations of the Oracle:

    SSH raclinux1 date

    SSH raclinux2 date

    SSH raclinux1-private date

    SSH raclinux2-private date

    SSH raclinux1 - sjh.com date

    SSH raclinux2 - sjh.com date

    -taking of Oracle 11g R1/R2 Real Application Clusters Essentials - Ben Prusinski, Syed Jaffer Hussain

  • Open the computer without password

    I read others remarks on opening computer without password and notice are the same. I had to to settings and change the password and the only option is to check for someone else to open without a password or another user to be opened with a password. I'm the only person using this computer, but just for fun because I have nothing else to do, obviously I check the possibility to open without a password. No change. I went to user accounts and the ability to open without a password is already disabled. I'm puzzled. I hope you can help. Thank you very much.

    Hello

    How to make so that Windows 8 connect you to a user automatically at startup account
    http://www.eightforums.com/tutorials/2894-log-user-account-automatically-Windows-8-startup.html

    See #5

    Or use this method:

    How to turn on or off course connect by using Ctrl + Alt + Del in Windows 8
    http://www.eightforums.com/tutorials/5761-secure-sign-CTRL-ALT-DELETE-enable-disable-Windows-8-a.html

    Others:

    How to automatically log on to Windows 8 [direct access]
    http://www.AddictiveTips.com/Windows-Tips/how-to-automatically-login-to-Windows-8-direct-logon/

    Windows 8, how to connect automatically
    http://www.gHacks.NET/2011/09/16/Windows-8-How-to-automatically-log-on/

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" experience :="" bicycle="" -="" mark="" twain="" said="" it="">

  • Export from InDesign to PDF and the PDF file last updated is greater than one month and not easily print on letter paper is PDF presets?

    Hello

    I export from InDesign to PDF page is larger in the PDF file, and others I exported. This is because of the present PDF? One of the project managers is not able to print on 8.5 "x 11", but the InDesign document presets are the same as before. I wish I could download PDFs to show, but the newly exported PDF is greater than the version I created a month ago. I created a PDF file and the newly updated PDF file is almost un.5 inch wider with the export presets even. Any thoughts?

    Sadira00123456789 wrote:

    One of the project managers is not able to print on 8.5 "x 11", but the InDesign document presets are the same as before.

    I suspect the project manager has his copy of Reader/Acrobat simply set to print full size, rather than "Worthy" (assuming that the size of InDesign pages is truly 8.5 x 11).

    .. the newly updated PDF file is almost un.5 inch wider with the same export presets.

    This has nothing to do with export presets. How did determine you this difference of half inch?

  • Windows 7 asked to "enter network password" when you access the window XP Machine

    Hi all

    I have one two PC with Windows XP Pro & the other with Windows 7 Pro. I've implemented a network & it seems to work but when I try to access my XP Machine from Windows 7 to ask me to enter the network password. I tried to enter my password to login & that did not work, I tried to disable the password for the xp machine and he asks again. What can I do to solve this problem. My xp machine I can access the pc windows 7 very well so I do not understand why this network password W7.

    Did some research on the net and here's what I did to solve the problem that has been produced

    Allowing access to the network without password

    To allow users to log on to their computer without password and then access the XP Professional machine without a password, you must make a change security policy:

    1. Go to Control Panel | Performance and Maintenance | Administrative Tools | Local security policy.
    2. Expand local policies | Security options.
    3. Double-click on accounts: limit local account passwords using empty for the connection to the console only, which is enabled by default. Disable this option and click OK.

    It stopped at the dialog box access network appearing when trying to access my windows xp machine 7!

  • Password Oracle symbol # does not not in shell script

    I have the shell script that exports the database schema. My Userid password export subscription contains #. Shell script is throwing error. If we have the password without this character, then it works fine. How do we use the password in shell script to perform this task?

    $ORACLE_HOME/bin/expdp system/test #test = userid parfile test.par dumpfile = test.dmp =

    I tried to use double-quotes and apostrophes for this password... but it still does not. any help is appreciated.

    Please post the contents of test.par.

    You can try to run before running EXPDP:

    drop table SYSTEM.EXP_DEVDB06;
    

    Edited by: P. Forstmann on 27 Jan. 2010 17:46

    Edited by: P. Forstmann on 27 Jan. 2010 17:47

  • ESXi 4.0 underperformance (one quarter) of the workload on Linux (shell scripting) - specific example given

    Hi everyone;

    Basics:

    Our vmware environment is vmware esxi 4.0 on an IBM x 3650, double quad-core processors, 32 GB RAM, 6 x 450 GB 15 k RPM WHAT drives (local). There is a single guest from vmware that is inactive except for this test. The guest is a RHEL 5.3 x86_64 only fully patched host. Best practice: current version of vmware tools is installed, vmxnet3 driver is used, the kernel startup params are notsc divisor = 10, all 6 discs are in a raid10 table, elevator is set to noop.

    The above, vmware environment with regard to performance, is facing a 5 year, IBM x 336, who has a copy of RHEL installed.

    Scenario:

    We have shell scripts which runs a software installation rather complicated. Without getting too inside, scripts to make a ton of calls of subroutines (e.g. VAR = $(écho $line | cut-f1-d:)). This script works horribly slow in the new vmware and vmware environment otherwise slow (less than 1/2 the speed, perhaps only 1/3 the speed) 5 year old physical server. Because the operation is an operation of 15 minutes in the best of times, it takes 30-60 minutes to complete, on a new server.

    As a test case, I made this script (yes I know 'let i = i + 1' would be faster, but do not reflect the actual workload.)

    #! / bin/sh

    I have = 0

    While------[$i - lt 1000]

    do

    I have = $(echo "$i + 1" | bc)

    fact

    I then run this script (which basically incriments I from 0 to 1000) and time. I the time using an external timer because I know that vmware can distort a bit sometimes. However, the results represent the picture. The script above takes about 8.5 seconds on the guest operating system and about 2.25 seconds on the physical host computer. Basically, it is considerably slower.

    I have read the 3 VI and vSphere 4 practices better performance... I read that potentially binary translation and VMware could cause a problem, or the fork then the/bin/sh is slow on vmware (some article strange re Zap?) ... but I'm curious to know if anyone has had similar experiences or recommendations? For the guys out there linux, RHEL and other suppliers, the above script gives also a second 8-10 response?

    For the people of vmware, y at - it something on bash (/ bin/sh) which makes it slow... especially on iterations () $ who call/bin/sh and more? I tried to replace the above $i = with 'I = i + 1' and it ends in less than a second and I tried to add a true/bin/in the mixture of execution, and he had a minimal impact on the speed (currently testing the forkO / exit() combo - and re - write this particular program/script I know is an option, do not write say to do)

    Any comments welcome, thank you

    MMU operations-hungry as fork/exec run a lot faster on processors AMD with IVR, that we support with ESX 3.5 and Intel processors with EFA, requiring vSphere.

    Scott

    More information on my blog of the communities and on Twitter:

    http://communities.VMware.com/blogs/Drummonds

    http://Twitter.com/Drummonds

Maybe you are looking for

  • Contrast and color change 10 seconds after the restart.

    Hi, I have a problem with my laptop Toshiba Satellite L300D, and every time that I reboot, and when restarting over my screen is all nice and dark and strong colors. After 10 seconds, he jumps and gets very bright. If it is too difficult to understan

  • Satellite M30-801: CPU only works with a 600 MhZ

    Hi people, I have a strange problem since my PC back to toshiba support (lcd problem, on assistance report i red that the pcb has been replaced): my CPU goes up to 600 MhZ. I tried to update the version of the bios from 1.20 to 1.70 successfully and

  • Sport clip do not order alphabetical new music added

    I have used the Sport Clip for a few months now and when you add new music by drag and drop on my albums new PC are in alphabetical order as expected. Now, all of a sudden new albums are added and remain at the bottom of the list instead of in alphab

  • HP2000-2201TU LAPTOP

    HOW TO INSTALL THE HD DISPLAY DRIVER, BECAUSE I DO NOT HAVE THIS DRIVER MY LEPTOP IS HP2000-2201... OS IS WINDOW7 64 BIT...

  • BlackBerry smartphones, I much ti problems sync my 9790 with Outlook...

    Hello, I have a lot of problems to synchronize my 9790 with Outlook. Schematically: 9790---> Outlook Outlook-/ /---> 9790. It is not bidirectional. Similarly, I checked an excessive battery consumption. I am very confused on this issue. My camera has