Ps command , DB credentials visible on command line.

Guys,
In one of my shell scripts, I connect to the database as below:
sqlplus -s /nolog <<EOF >> ${LOG_FILE}
CONN ${DB_CONNECT}
I would assume that my database connect credentials will not be visible in the command line , when someone executes command below, during the execution of my shell script.
ps -ef | grep "sqlplus"
However, the ps listing makes the credentials visible..Thoughts please..
Thanks!!!
-Bhagat

Bugs wrote:
sqlplus -s /nolog <<EOF >> ${LOG_FILE}
CONN ${DB_CONNECT}
I would assume that my database connect credentials will not be visible in the command line , when someone executes command below, during the execution of my shell script.
ps -ef | grep "sqlplus"
However, the ps listing makes the credentials visible..Thoughts please..Not really relevant to either the SQL or PL/SQL server languages. Please post Unix/Linux questions in a more appropriate forum.
Operating system and version?
The ps command shows the command line. With the above example, your authentication string is not on the command line. Instead you redirect STDIN and the connect command with the username and password are read from standard input. As it is not on the command line, I fail to see why ps would show this.
I think you are misdiagnosing the problem - seeing another sqlplus process that actually specify the username and password on the command line and mistaking it for your sqlplus process.

Similar Messages

  • Report script command equivalent for @relative calculation command

    HI ,
    We have a calculation script which has a fix statement like below :
         FIX( Grade, "w/o LO", "Line Options", AtLaunch, @DESCENDANTS("470.92"), @DESCENDANTS("Price Item"), @RELATIVE("Total Region", 0) )
    We are trying to make a reportscript which gives us the format of the set of database being calculated.
    So we are tranforming the above calc script commands into equivalent report script commands. We are struck with the @Relative command.
    Can somebody tell us what is the equivalent report script command for @Relative calculation script function.
    Regards
    OKU

    There's no direct analogue, but you can use the <LINK command along with <DESCENDANTS and <LEV to get pretty close. See: http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/rwriter/link.htm
    JExport (if pre 9.3) or DATAEXPORT (if 9.3 or greater) may also be options and will in fact allow @RELATIVE to be used.
    Regards,
    Cameron Lackpour

  • Terminal won't accept command. Keeps "Restoring" previous command

    Hi,
    I am on OSX 10.9.5 and I have a mysterious problem with Terminal restoring old commands after I insert a new command, so I can't get it to accept the new command.
    A greyed out line appears in the Terminal window saying [Restored] as in the attached pic. (I have blurred my ID details in the pic).
    I have also tried to restore it to defaults in Preferences, but it won't do that either. I just get [Restored] again.
    Has anyone got any ideas what is making it do this please?
    Just for background, I had originally entered the command line:
    defaults write com.apple.mail AddressesIncludeNameOnPasteboard -bool false
    and I am trying to change it back by entering the command line:
    defaults write com.apple.mail AddressesIncludeNameOnPasteboard -bool true
    But as I say, it won't accept it. It just restores the previous command, and it won't restore defaults either.
    Thanks
    Sarah

    do you have any of the following files?
    .bash_profile
    .bash_login
    .bashrc
    .profile
    If so, then it is possible this message is coming from a shell initialization file.
    Because these files begin with a period, the Finder will not display them so you are going to have to use the Terminal " ls -a " command.
    Terminal -> Shell -> New Command... ->    /bin/ls -l .bash_profile .bash_login .profile .bashrc
    These files DO NOT exist by default, so you may see things like
    -ls: .bash_login: No such file or directory
    -ls: .profile: No such file or directory
    That is perfectly OK.
    But if you see:
    -rw-r--r--  1 me  staff  32776 Feb  6 14:10 .bash_profile
    -rw-r--r--  1 me  staff  63633 Feb  4 15:04 .bashrc
    Then you have one of the files, and it is possible that the contents of that shell initialization script are affecting the behavior inside the Terminal.

  • Command confusion - aaa authorization config-commands

    I created a new Shell Command Authorization Set within ACS to only allow a port to be configured for a voice VLAN.
      >> Shell Command Authorization Sets
          Name: Restricted_Voice
          Description: Configure port voice vlan only.
          Unmatched Commands: Deny
          Add: enable
          Add: configure / permit terminal <cr>
          Add: interface / permit Gi*
          Add: interface / permit Fa*
          Add: switchport / permit voice vlan *
    My switch configuration has the following aaa authorization related lines:
         aaa authorization commands 1 default group tacacs+ if-authenticated
         aaa authorization commands 15 default group tacacs+ if-authenticated
    When I tested the Shell Set, I noticed that all (config) mode commands were allowed (ie description, hostname). It was only after I added "aaa authorization config-commands" to the switch configuration did my Shell Set began working as I expected it to be.
    I went and read up the command reference for "aaa authorization config-commands" in
    http://www.cisco.com/en/US/docs/ios/11_3/security/command/reference/sr_auth.html#wp3587.
    My comprehension of the command is that by just issuing ' aaa authorization commands 15 ....' this command encompasses the checking of config mode commands and that I did not need to add the stand-alone "aaa authorization config-commands" statement. But clearly, from my testing, I needed the extra statement.
    It looks like I resolved my issue and need to add the new statement to all my switches, I'm wondering if someone can help clarify the usage guidelines for me.  I'm I one of the few or only one that misinterpreted these "aaa authorization" commands?

    Hi Axa,
    I have a similar setup and have full Exec Level permissions using only aaa authorization commands level method
    The below is taken from cisco.com and explains that you should not require the
    aaa authorization config-commands unless you have at some point used the no aaa authorization config-commands command to prevent configuration commands from the Exec User
    This in essense is a hidden configured default i.e.you switch on auth for config-commands automatically when you use the aaa authorization commands level method command!
    From Cisco.com (I have underlined the key points)
    aaa authorization config-commands
    To disable AAA configuration command authorization in the EXEC mode, use the no form of the aaa authorization config-commands global configuration command. Use the standard form of this command to reestablish the default created when the aaa authorization commands level method1 command was issued.
    aaa authorization config-commands
    no aaa authorization config-commands
    Syntax Description
    This command has no arguments or keywords.
    Defaults
    After the aaa authorization commands level method has been issued, this command is enabled by default—meaning that all configuration commands in the EXEC mode will be authorized.
    Usage Guidelines
    If aaa authorization commands level method is enabled, all commands, including configuration commands, are authorized by AAA using the method specified. Because there are configuration commands that are identical to some EXEC-level commands, there can be some confusion in the authorization process. Using no aaa authorization config-commands stops the network access server from attempting configuration command authorization.
    After the no form of this command has been entered, AAA authorization of configuration commands is completely disabled. Care should be taken before entering the no form of this command because it potentially reduces the amount of administrative control on configuration commands.
    Use the aaa authorization config-commands command if, after using the no form of this command, you need to reestablish the default set by the aaa authorization commands level method command.
    Examples
    The following example specifies that TACACS+ authorization is run for level 15 commands and that AAA authorization of configuration commands is disabled:
    aaa new-model
    aaa authorization command 15 tacacs+ none
    no aaa authorization config-commands

  • Does MAC OS have a "route add" command similar to a DOS command?

    Does MAC OS have a "route add" command similar to a DOS command?
    I know that with DOS, you can type "route add 192.168.x.x MASK 255.255.x.x 192.168.x.x" to add a route on your PC,but does MAS OS X(10.4.9) have something similar to it? I have a network printer that my winXP can access but my MAC cannot. I was unable to ping it from both wINXP and MAC. But after I added the route to my winXP I was able to ping and print to it. I do not know if I can do the same to my MAC. Does anyone know what the command is?
    Thank you in advance.

    Yes, and Welcome! ...
    http://www.osxfaq.com/man/8/route.ws
    And to make it permanent...
    http://www.osxfaq.com/tips/kluskens/index.ws

  • Command sequencing for a javascript command

    Hi SDN community,
    I am trying to execute a link in a web page that requires a command sequence.
    The second command CMD_2 is a javascript function.
                      href="<SAP_BW_URL ITEM='GR_' MULTI='X' HIDDEN='X' CMD_1='ITEM=GR_01&MULTI=X&HIDDEN=' CMD_2='javascript:change_report1();' ">
    however, the function change_report1 does not seem to execute.
    Is this possible, or do you have any working examples.
    Thank you.
    Simon

    Hi Simon,
    Are this script is defined within an anchor tag like:
    <a <YOUR_SCRIPT_CODE_HERE> />
    Or else within which tag did you declare the script...

  • Running shell commands in pre-post session commands

    Hi Nikita: It depends on what kind of OS your Secure Agent is running on. If you're running your Secure Agent on Windows, you can enter DOS commands into these fields which may include SQL scripts using batch files. Similarly, if you're running your Secure Agent on Linux you can enter shell commands which may include SQL scripts using shell scripts. You should be able to find some examples of these commands from other Informatica Cloud users by searching the Community. Hope this helps,Josh

    Hi all,I am new to informatica, can anyone please explain me how should i run shell commands in pre/post session commands?and what type of shell scripting is usually needed for the informatica jobs? Thank you

  • Créer ou dupliquer une commande ou une instance de commande

    Bonjour,
    Je cherche à créer dynamiquement des commandes booléennes.
    Dans un cas, je peux avoir besoin de 50 boutons, le cas suivant de seulement 10.
    La solution basique consisterait à créer manuellement 200 boutons, les nommer individuellement et n'utiliser que ceux dont j'ai besoin à chaque exécution.
    Pas très optimisé... je préfererai créer dynamiquement le nombre de boutons dont j'ai besoin.
    Est-il possible de créer une instance de commande, ou de dupliquer une commande, peut-être à partir d'un modèle en CTL, je ne sais pas.
    J'écarte de suite les possibilités de manipuler des tableaux de boutons, dans le sens où je ne m'intéresse pas seulement à la valeur de la commande mais aussi à ses propriétés individuelles (son texte booléen, sa couleur, sa taille, sa position...)
    Créer une instance de VI, pas de problèmes, créer une instance de commande dans un VI....pas trouvé
    Merci de vos infos à tous,
    Aurélien
    ARDPI
    Certified LabVIEW Developper

    Bonjour,
    Je sais que ce message date de l'année 2012 mais j'ai presque le même problème et en cherchant sur le forum je me suis tombé sur cet exemple qui est la solution pour mon problème.
    Je reviens ici pour poster ce commentaire car en intégrant cet exemple dans mon code, le graphe (dans mon cas le graphe et un sous vi de pilotage d'un équipement où j'ai ajouter la boucle while que j'ai trouvé dans le code du contrôle de l'exemple) que je voulais bien afficher s'affiche mais avec quelques problèmes:
         - si je veux déplacer le graphe, je peux le déplacer juste pour une seule foi , quand je fais exit (dans mon cas quand je fais je ferme juste la fenêtre mais le vi continue à s'exécuter) et je rouvre la fenêtre je peux plus la déplacer. Ceci pourrait être due à quoi???
         - Si je déplace mon graphe, je peut le mettre en dehors de mon vi principale, alors que moi je veux bien que ça soit limité comme dans l'exemple.
    Merci pour votre réponse ça va m'aider beaucoups

  • Ma télécommande de l'apple Tv commande mon Imac et c'est ingérable. Comment stopper cela? merci de votre aide

    Ma télécommande de l'apple Tv commande mon Imac et c'est ingérable. Comment stopper cela? merci de votre aide

    Il vous faut deconnecter l'infrarouge sur votre mac:
    preference systeme>securité/confidentialité > avancé> cliquer "desactiver infrarouge"

  • Folder created in Windows Explorer not visible in Command Line as SYSTEM user

    Hello everyone,
    We have an odd behavior with an application installation, which I cannot make much sense of.
    We are trying to deploy an application on Windows 8.1 Enterprise x64 which tries to access
    C:\windows\system32\config\systemprofile\Desktop during installation.
    This folder does not exist by default in a Windows 8.1 installation. Hence we am creating this folder using a VBS script manually. The VBS script also launches the application EXE. The setup itself runs under the SYSTEM account (in order to be deployed using
    SCCM).
    When the install script is launched, we can see in the Windows Explorer that the "Desktop" folder is created in the systemprofile directory. However, to the setup running under the system account, this folder is not visible.
    I have verified this by running a command line prompt under the SYSTEM user and navigating to
    C:\windows\system32\config\systemprofile\. Using the "dir" command does not show you a "Desktop" folder under the EXACT same path.
    When we create the Desktop folder from this command prompt, the application installs just fine.
    What are we missing? Any inputs are highly appreciated.

    Hi,
    Might this need to quit the command prompt after the folder creation, then reload it to continue the installation of the software?
    Best regards
    Michael Shao
    TechNet Community Support

  • BOX command does not print vertical/horizontal lines in SAP Script

    Dear all,
    in sap script we are using the BOX command to draw some boxes. DUring the print preview, all the boxes look
    just fine including horizontal and vertial lines. But, when we print the output, I get the output minus
    the vertical lines and some horizontal lines.
    Regards,
    rukku
    Edited by: Rukmangada Reddy Ramala on Mar 23, 2010 2:23 PM

    Hi rukku,
    Which device type are you using?
    Please have a look at SAP notes:
    77976, 19807 and 183948.
    Regards,
    David

  • Assessing Command 'Analyze Source Files' via Command Line when running TestSTand Deployment Utility

    Our Software Configuration Manager is running the TestStand Command Line Deployment Build Tool (Ref: https://decibel.ni.com/content/docs/DOC-38947).
            When he builds the application,  the code will not be at the same location it was in development. 
    If you are Manually running the TestStand Deployment Utility, This is not a problem because everything is relative in the workspace.   Simply go to the Distributed Files Tab (of TestSTand Deployment Utility) and hit the, "Analyze Source Files" button.  This finds the required files and apparently creates an updated hard path to be used during the build (probably in the *.tsd).
    PROBLEM:  We auto-run the Command Line Deployment Build Tool (Command Line), and we do not have access to the, 'Analyze Source Files' command.
                As a result, our build consist of many warnings and the output is missing many files (the location of the files have not been updated).
    If we could access the 'Analyze Source Files' Command via command line, that would fix the issue. 
    FYI:  We use an automatic builder called Quick Build as our builder.
    Attachments:
    TestSTand Deployment Utility-Distributed Files Tab.PNG ‏76 KB

    Unfortunately it looks like Analyze Source Files does not have a command equivalent for the command line based on this article and attached PDF:
    https://decibel.ni.com/content/docs/DOC-38947
    That may be a good post for the TestStand Idea Exchange for consideration in future versions of TestStand.
    Michael K.

  • Why color code css using powershell command is not visible in email ?

    Hello,
    I am applying color code for disabled status in PS script as  written below :
    $ReportData = Get-SPServiceInstance | Select Server,TypeName,Status,NeedsUpgrade | ConvertTo-Html -Fragment
    $DisabledStatus='<td>Disabled</td>'
    $DisabledColorStyle='<td style="background-color:red !important;color:white !important" >Disabled</td>'
    $ReportData = $ReportData -replace $DisabledStatus,$DisabledColorStyle
    ConvertTo-Html -Body "<font color = blue><H4><B>Report </B></H4></font>$ReportData" -Title "Test Report" -CssUri C:\style.CSS | Out-File "E:\Reports\TestReport.html"
    This report shows perfect on system where report file is located at E:\Reports\TestReport.html location as below :
    However , when I send this report via email using following command
    $Report = Get-Content "E:\Reports\TestReport.html"
    Send-MailMessage -To $To -SmtpServer $SMTP -From $From -Subject $Subject -BodyAsHtml "$Report"
    I dont see disabled as red color in email , while table's style is working which is stored at C:\style.CSS
    Would you please let me know the reason behind same ?
    Thanks and Regards,
    Dipti
    Dipti Chhatrapati

    Hi Dipti,
    I‘m writing to check if the suggestions were helpful, if you have any questions, please feel free to let me know.
    If you have any feedback on our support, please click here.
    Best Regards,
    Anna
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • How do i install new commands to use at the command line

    i want to use macports but get the message command not found

    Information on installin MacPorts can be found here.
    There appear to be a package specific to Mountain Lion

  • Typed input on log ins, search commands are barely visible - not crisp black print. How do I fix?

    I have a Windows 7 HP desk top - rather new and functioning well. My email is free from AOL - Internet connection is AT&T. In logging on to the email account it is the typical user name/password process. When I now click on email log in or other log ins - the log in data entry space caret is barely visible and the typing I enter is barely visible, but when the entry data is correct my log in is accepted. And in all my Bookmarks only the icons are visible until I rest my mouse pointer on the icon. Some time (don't know how much time) before I noticed the problem I was browsing through the display and personalization sections under the control panel. I made no lasting display changes but did review some alternative before deciding not to change anything. Perhaps it is a simple change in the font color that needs attention - but I haven't been able to figure out how to do that in what I see in the Firefox Tool Bars . My name is Russ Pierson, Phone ''deleted by a moderator''

    First thing...you made a mistake
    import javax.swing.JScrollPane;
    import javax.swing.JScrollBar;
    import javax.swing.*;When you import javax.swing.*; You automatically
    import JScrollPane & JScrollBar class, there's no
    need for you to re import again...
    That is not always a mistake. There are cases where it makes sense to do both (i.e., to import both '*' and a specific class name from that package at the same time). I believe the common example is:
    import java.awt.*;
    import java.util.*;
    import java.util.List;Now you can use "List" as a short name for "java.util.List", but must use "java.awt.List" in full for "java.awt.List" objects. If you just did:
    import java.awt.*;
    import java.util.*;Then you couldn't use List as a short name for anything--because it is ambiguous. You'd have to use both "java.awt.List" and "java.util.List" spelled out in full.
    Or, if you did:
    import java.awt.*;
    import java.util.*;
    import java.awt.List; // NOTE CHANGEThen "List" is short for "java.awt.List", and you must use "java.util.List" in full for "java.awt.List" objects.

Maybe you are looking for

  • Using Photoshop Elements as external editor with Aperture 3: What are issues with requiring 8-bit image?

    While I would do most of my photo edits with Aperture there may be times I would like to do special effects that a PSE might offer with layers.  I am considering purchasing PSE 10 and was concerned with having to lose information by saving as an 8-bi

  • Will Skype EVER allow me to decide who see's me on...

    I don't hold up much hope, and if the recent UI abomination is an example of Skype listening to it's users the chances are practically zero. I work online, I'm a 3d product visualization artist, clients are needy and painful with bleating and constan

  • New Solaris 10 install, negative free space

    I just installed Solaris 10 from a Sun DVD over an old linux install. The install process created two UFS partitions with 0 unallocated space (I did everything the default), and everything seemed fine. The system boots correctly, and the filesystems

  • Problems connecting to i5 DB

    Hi I am just trying out the new IDE and trying to connect to an i5 I run. I have read the instructions but cannot get the connection to work... I enter the following url jdbc:sun:db2://shield1:446;databaseName=S1026EBB with the relevant userid and pa

  • Full Stop/Period turned into circle

    I can't enter a full stop/period into text.  One day "double space bar" produced a small circle instead of ".". I cannot insert via symbol keyboard or via "double space bar". My messages look wrong and I cannot enter email addresses as can't produce