UNIX scripting with id and password in clear text

Hi
I have a shell script to connect and do several PLSQL.
how can the script doing it without the ID password in cleartext?
i.e.
#!/bin/sh
conn id/password ....

If you create an operating system authenticated user, you connect to the database without a password, i.e.
sqlplus / is sufficient (assuming the script is running as the appropriate operating system user). Tom Kyte talks about this here
http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:1477204811604
There are examples of using DBMS_SCHEDULER to invoke operating system scripts on Tim Hall's site
http://www.oracle-base.com/articles/10g/Scheduler10g.php
Justin

Similar Messages

  • Copying files from local computer to a remote server which is not in Domain and with username and password?

    "I have one workstation with static IP, Wants to create batch file to log in to this,using user name and password, copy back up files from that workstation to my desktop with batch file, please help
    I am currently using batch file for back up for domain servers with robocopy commands in batch file  but one of the workstation is not in domain and has static ip , also it has username and password,
    Wants to create batch file on my desktop to log in this server---with username and password,, copy files from particular folder and paste it on my desktop in particular folder or auto create that folder,
    please help, "
    P Dave

    JRV,
    I can understand that, 1stly I am not a scripting guy, I know very very basic of this,
    2ndly, I need help , I am not asking anyone here to write code for me, I have already wrote that but its not doing which its suppose to do,
    check below screen shot, after running suggested script, it has mapped drive ,
    now I do not want to do that, I want just files to copy from that machine to my machine, and want script which I can run from any PC,
    Tried with UNC PATH as well, but not making any difference, its keep mapping that server drive to my computer
    P Dave
    JRV,
    I can understand that, 1stly I am not a scripting guy, I know very very basic of this,
    2ndly, I need help , I am not asking anyone here to write code for me, I have already wrote that but its not doing which its suppose to do,
    check below screen shot, after running suggested script, it has mapped drive ,
    now I do not want to do that, I want just files to copy from that machine to my machine, and want script which I can run from any PC,
    Tried with UNC PATH as well, but not making any difference, its keep mapping that server drive to my computer
    P Dave
    Bill - he still sees that "connection" although it isn't mapped it is attached temporarily.
    P - Log off and log back on and the attached connection will be gone.  It is temporary.   Again - knowing the basics of WIndows would let you know this.
    We have given you all of the answers that are possible.  There is no other way unless you have installed things like PowerShell and PowerShell remoting or an FTP server.
    If you do use a drive it can be just as easily deleted after you have finished the copy.
    Again: "NET USE /?" will tell you all of the options.
    Saying you know nothing is not an excuse for not thinking or looking more deeply into the suggestions made by those trying to help you.  This is not a MIcrosoft support forum or help desk.  It is a forum for admiinistrative scripting and assumes
    that those coming here are technically trained or experienced in the basics of Windows technology.
    ¯\_(ツ)_/¯

  • Using url with username and password in URL class

    Hi,
    I'm writting an applet in which I use getAppletContext().showDocument with an URL.
    The problem is that I'm using URLs with username and password (http://user:[email protected]/page) and it isn't working because the browser is getting the URL http://user/page.
    Is this a bug in the URL class? Or in the showDocument method?
    Is there any way to make this work?
    Thanks for any help,
    Pedro Prospero Luis ([email protected])

    I'm not sure whether this is supported behaviour. I've had this syntax fail to work in the Netscape address bar so I can't recommend it as an approach for authentication.
    If you want to authenticate the user before redirecting to the page, though, you could try creating a connection to another page on the same server and sending the authorization information then. Your browser may then be successfully authenticated.
    See http://www.javaworld.com/javatips/jw-javatip47.html for information on this.
    You might not need to read back the page from the server, just connect to it. Might work.

  • HT201365 hello sir i purchase second hand iphone4s now my iphone ask for activation with id and password i contact with previous owner and use that id and password but that also not work what i do ola help me

    hello sir i purchase second hand iphone4s now my iphone ask for activation with id and password i contact with previous owner and use that id and password but that also not work what i do ola help me i try all other method restore ' upgrade etc but none work plz say what i do if u find some solution tham msg me on [email protected]

    First, we're not Apple here (Apple does not participate in this forum).  We're only users like you.
    The previous owner has not given you the correct ID and password for you to use.
    If the iphone has iOS version 7, then read through the following...
    http://support.apple.com/kb/HT5818

  • Hello sir i purchase second hand iphone4s now my iphone ask for activation with id and password i contact with previous owner and use that id and password but that also not work what i do ola help me i try all other method restore ' upgrade

    hello sir i purchase second hand iphone4s now my iphone ask for activation with id and password i contact with previous owner and use that id and password but that also not work what i do ola help me i try all other method restore ' upgrade etc but none work plz say what i do if u find some solution tham msg me on
    iPhone 4S

    oenkz33 wrote:
    this does not help at all for the second owner, after making the first owner id with careless, sorry for my english ...
    Careless? Possible, but unlikely. Most likely the phone was stolen from the first owner. It would be a VERY careless iPhone owner who did not erase their personal information from a phone before selling it, and to do that it is necessary to disable Activation Lock. In most places in the world knowingly using stolen property is a crime, so the fact that the phone doesn't work may be the least of one's risks.

  • Conference link with login and password included

    Hi,
    I have been trying to find a way to make Adobe Connect send meeting invitation e-mails with login and password included in the link - unfortunately to no avail.
    Does anyone know, if it's at all possible to do it and if so, how it's done?
    I'm still on a trial version, but I've been assured, that it shoudn't be a problem.
    Thanks in advance for any hints!
    Kamil

    OK, I played with it and here is how I got it to work:
    Appending the URL:
    The URL would need to be appended with /?login=username&password=password. The "api/xml?action=" string was incorrect. I verified that this does work.
    The full URL would look similar to this: http://realeyesconnect.adobeconnect.com/bestroomever/?login=myusername&password=drowssap
    The login can also be done programmatically.You would need to do the following steps to get the log-in to be automatic.
    Log the individual into the server:http://YourServerURL/api/xml?action=login&login=username&password=password
    Should return a value of OK
    Get the BREEZESESSION cookie for the user:
    http://YourServerURL/api/xml?action=common-infoShould show a value similar to this:<cookie>na3breezr59qzu2pp2qy4zdm</cookie>
    Log the user in to the room with the cookie:http://YourServerURL/RoomLink/?session=na3breezr59qzu2pp2qy3zdm
    Guest names can also be added to the url link. These options are described here: http://help.adobe.com/en_US/connect/9.0/webservices/WS5b3ccc516d4fbf351e63e3d11a171dd2d4-7 ff4_SP1.html

  • Adobe DONT support Adobe Viewer App because it is free... it is still developed by Adobe though. Anyway I log on to Adobe OK on my iMac with ID and password but when I click Adobe Viewer app on my iPad it asks for my Adobe ID and password and when I enter

    See above ...I can log on to Adobe on my iPad with ID and password but when I try to click on Adobe Viewer App on my iPad I am asked to Sign In with my Adobe ID and password...when I enter exactly as I did on my iMac I get Authentication Failed?? Any one have this issue?

    The Cloud forum is not about using individual programs
    The Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • Send Email for manager of the user with Login and Password the user.

    Hello everyone,
    I need to send an email to the manager of the user with login and password when it is created in AD.
    I already have a mail server configured in the IT Resource. It has some component of the IDM that solve this issue?
    Anyone you help me with the next steps?
    Thank you.

    Thank you for your attention.
    It did not work, I did another test to send email notifying you when the User change password.
    The following error message appears in oim_server1-diagnostic.log:
    [2011-08-08T19:21:30.865-03:00] [oim_server1] [NOTIFICATION] [] [oracle.iam.passwordmgmt.impl] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 88a924181f586e03:-25ab9c82:131aa884464:-8000-0000000000008862,0] [APP: oim#11.1.1.3.0] Resetting password
    [2011-08-08T19:21:30.936-03:00] [oim_server1] [NOTIFICATION] [IAM-0080013] [oracle.iam.platform.kernel.impl] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 88a924181f586e03:-25ab9c82:131aa884464:-8000-0000000000008862,0] [APP: oim#11.1.1.3.0] Kernel executing default validation with process id, event id, entity and operation 59,612.0.User.RESET_PASSWORD
    [2011-08-08T19:21:31.155-03:00] [oim_server1] [NOTIFICATION] [IAM-3050013] [oracle.iam.identity.usermgmt.impl] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 88a924181f586e03:-25ab9c82:131aa884464:-8000-0000000000008862,0] [APP: oim#11.1.1.3.0] Searching for users with the specified criteria.
    [2011-08-08T19:21:32.018-03:00] [oim_server1] [WARNING] [] [oracle.iam.passwordmgmt.impl] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 88a924181f586e03:-25ab9c82:131aa884464:-8000-0000000000008862,0] [APP: oim#11.1.1.3.0] Sending Reset Password Notification is not successful
    [2011-08-08T19:21:32.639-03:00] [oim_server1] [NOTIFICATION] [IAM-0080046] [oracle.iam.platform.kernel.impl] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 88a924181f586e03:-25ab9c82:131aa884464:-8000-0000000000008862,0] [APP: oim#11.1.1.3.0] Completed orchestration with action result - oracle.iam.platform.kernel.vo.EventResult@4fe0d018
    [2011-08-08T19:21:32.642-03:00] [oim_server1] [NOTIFICATION] [IAM-0080011] [oracle.iam.platform.kernel.impl] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: oiminternal] [ecid: 88a924181f586e03:-25ab9c82:131aa884464:-8000-0000000000008862,0] [APP: oim#11.1.1.3.0] Orchestration process with id 59,612 started running in a new thread.
    Edited by: Piza on 08/08/2011 15:24
    Edited by: Piza on 08/08/2011 15:26

  • Sign in with username and password every time I want to check emails on my PC using iCloud?

    Signing in with username and password every time I want to check emails on my PC using iCloud
    Having convinced my parents to get rid of their old AOL account and sign up for iCloud to sync their new iPhone with their old PC running Windows 7, I thought I was on to a winner. All working OK but is there any other way to get into emails besides going on iCloud website and signing in with name and password everytime? Can it be set up as a Mail account directly like on a Mac? Or using Outlook or Entourage? Help! I'm not a PC person!!
    ELF

    If they have Win 7 or 8, and Outlook 2007 or newer then you can.
    Just download the iCloud Control Panel for Windows. Install and select the services you want (Mail Contacts and Calendars will appear in Outlook)

  • TS2446 Can sign in to accts with ID and password   When I try to ed out. app I'd disabled comes up. I've tried every thing suggested help

    Can sign in to accts with ID and password   When I try to install app Id disabled comes up. I've tried every thing suggested help

    What id shows in Settings > iTunes & App Store ? If it's the old one then tap on it and log out of it and then log in with the updated version

  • Can't access a school web site that I've used for years-can't log in with user and password. All other bookmarks are fine-tried several things including re-install-Other browsers are O.K.

    I have an iMac-have used Firefox exclusively for years. I can't access a school web site-can't get past the log in with user ID and password. Screen stays at log in screen. Tried clearing history-tried uninstall and re-install. All other web sites/bookmarks work fine. Thanks in advance.

    Try clearing the cache and deleting cookies for the site, this can sometimes resolve problems accessing sites that used to work. See [[how to clear the cache]] and [[deleting cookies]] for details.

  • Unix Scripting with screen saver

    I have been trying commands from every version of Unix. I cannot find a way to start screen saver from Darwin. I am frustrated. Furthermore, is there a way someone can inform me how to connect to a bluetooth phone using a Mac Address. Similar to "hcitool scan" but for Darwin. So, I am looking for two things from a response from this post. 1) What is the alternative command for "hcitool scan" in Darwin and 2) How do I start my screen saver in Unix?
    Thank you all!

    Wonderful! thank you very much. I will absolutely look into the Mac OS X Technologies forum. Big help!
    I understand freeBSD and Darwin are not entirely equivalent. However, I checked out a book on Unix at the library. That book mentioned a few different versions of Unix including freeBSD. I basically used the book for it's commands and figured out which commands worked in Darwin. That took sometime but it is a long process. Now I am just using the manual pages with the command "man".
    To answer your question, the cocoa application is not for me because I want to learn to program. I saw on YouTube I could program a script easily so I started.
    I've been learning with computers and electronics since I was a young lad (approximately sixth grade for computers and electronics second grade). I learned quickly how much fun these two disciplines could be. In high school my parents pressured me to go into programming but I refused for little reason. Now I recently bought an Apple, after a exploring it a little I found I could download XCode for free. I tried programming in Objective C but my friend advised, "you should learn to program something more simple." so, I tried basic on my TI-86 calculator then I got bored with that and started with Unix. So, here I am learning to code in Unix because of pragmatism (meaning whatever is useful). I have a friend who once knew how to code who is guiding me in my experience. I am hoping to be a computational mathematics major at UCSC. Just waiting for a reply so I am programming to get some skill before I get to my school. I love this stuff!

  • Mismatch found in username and password means clear input componet as well.

    hi jdev experts,
    Using 11.1.1.5.0 - adfbc stack.
    my requirement is to simple.
    while hitting the button the username and password doesnt match with db means it throw the error. at the same time
    compoenets should clear the value. where should i handle this .
    am get confused where should i handle to reset the input component ....
    beans code.
        public String cb2_action() {
            String returnStr="error";
            if(p_user == null || p_password == null ){
                FacesContext ctx = FacesContext.getCurrentInstance();
                FacesMessage fm =
                    new FacesMessage(FacesMessage.SEVERITY_ERROR, "Invalid UserName/Password!", "");
                ctx.addMessage(null, fm);
                return null; 
            else{
            BindingContainer bindings = getBindings();
            OperationBinding operationBinding = bindings.getOperationBinding("checkLogin");
            operationBinding.execute();
            Object result = operationBinding.execute();
            if (!operationBinding.getErrors().isEmpty()) {
            returnStr= "success";
            System.out.println("returnStr : " + returnStr);
            return returnStr;
    amimpl code.
        public String checkLogin(String p_user, String p_password) {
            System.out.println("Parameter Username :" + p_user +
                               "Parameter  Password :" + p_password);
            ApplUsersVOImpl vo = (ApplUsersVOImpl)this.getApplUsers1();
            /*set the bind variable value*/
            vo.setNamedWhereClauseParam("p_user", p_user);
            System.out.println("Am Implementation Username :" + p_user);
            vo.setNamedWhereClauseParam("p_password", p_password);
            System.out.println("Am Implementation Password :" + p_password);
            vo.executeQuery();
           int rowCount = (int)vo.getEstimatedRowCount();
            System.out.println("rowCount :" + rowCount);
            try {
        catch (Exception e) {
                System.out.println("Exception in check login" + e.getStackTrace());
            if (rowCount == 0) {
                throw new JboException("Invalid UserName/Password!");
            return "Welcome" + "User" + p_user.toUpperCase();
        }can any point me.
    little more info am not using adf security.

    naveeth
    thanks for pointing. but it does't works for me.
        public String cb2_action() {
            String returnStr="error";
            if(p_user == null || p_password == null ){
                FacesContext ctx = FacesContext.getCurrentInstance();
                FacesMessage fm =
                    new FacesMessage(FacesMessage.SEVERITY_ERROR, "Invalid UserName/Password!", "");
                ctx.addMessage(null, fm);
                return null; 
            else{
            System.out.println("User Logged Succefully");
            BindingContainer bindings = getBindings();
            System.out.println ("Before Login to Bean");
            OperationBinding operationBinding = bindings.getOperationBinding("checkLogin");
            System.out.println ("After Login to Bean");
            operationBinding.execute();
            Object result = operationBinding.execute();
            if (!operationBinding.getErrors().isEmpty()) {
            returnStr= "success";
            } else {
                System.out.println("try to reset value"); // it is not going for else part and it is not also printing
                it1.resetValue();
                AdfFacesContext.getCurrentInstance().addPartialTarget(it1);
                it2.resetValue();
                AdfFacesContext.getCurrentInstance().addPartialTarget(it2);
            System.out.println("returnStr : " + returnStr);
            return returnStr;
    login popup code in  homepage.jspx
       <af:popup binding="#{HomePage.p1}" id="p1">
                  <af:dialog title = "xxxx Login" binding="#{HomePage.d2}"
                             contentWidth="220"
    contentHeight="100" id="d2"  modal="true" type="none">
                    <af:spacer width="100" height="30" id="s11"/>
                    <af:activeImage source="/Images/index.gif" id="ai3"/>
                    <af:panelGroupLayout id="pgl16" halign="center"
                                         layout="vertical">
                      <af:spacer width="2" height="10" id="s14"/>
                      <af:inputText label="UserName"  id="it1"
                                            value="#{HomePage.p_user}"
                                    binding="#{HomePage.it1}"/>
                      <af:spacer  height="2" id="s13"/>
                      <af:inputText label="Password"  id="it2"
                                            value="#{HomePage.p_password}"
                                            secret="true"
                                            binding="#{HomePage.it2}"/>
                                            </af:panelGroupLayout>
                    <af:spacer width="10" height="5" id="s2"/>
                    <af:panelGroupLayout id="pgl4" layout="horizontal">
                    <af:toolbar id="t1">
                     <af:spacer width="70" height="5" id="s1"/>
                    <af:commandToolbarButton text="Login"
                                             id="ctb2"
                                             action="#{HomePage.cb2_action}"/>
                        <af:spacer width="10" height="10" id="s12"/>
                        <af:commandToolbarButton text="Exit"
                                                 id="ctb3"
                                                 action="#{HomePage.cb1_action2}"/>
                      </af:toolbar>
                                                   </af:panelGroupLayout>
                  </af:dialog>
                          </af:popup> will you point me where am going wrong.?
    Edited by: ADF7 on Apr 6, 2012 9:39 AM
    Edited by: ADF7 on Apr 6, 2012 9:40 AM

  • Triggering UNIX script with IDOC creation?

    Hello group,
    I create an IDOC when a delivery goods-issue is being posted (IDOC via outputcondition).
    The name of the IDOC file is being created by a function module to add a timestamp to the filename. So every IDOC has a unique name!
    Now what I need to do is to call a UNIX file right when the IDOC has been created.
    Furthermore, I need to pass the name of the IDOC as parameter to that UNIX script.
    Any ideas how this can be accomplished?
    Thank you in advance,
    Dirk

    Hi!
    Like windows, unix has also its scheduler. Unfortunately I don't remember how could you do this, but on a unix forum, people in 5 mins will tell you that...
    We are using jobs, and our job log is full with jobs, but it do not disturbs anyone. Not disturbing, because mostly only the problematics jobs are needed, and you can select the jobs with their statuses.
    Regards
    Tamá

  • Configure a Cisco router with Username and Password.

    Hello Guys,
    Am quite new in cisco and i need to configure an 891 cisco router,can someone please show me step by step configuration commands for configuring Username and Secret Password.I would like the router to ask for "Username"and " Password" anytime i want to login the router through telnet.I also want to know if i have to erase the default configurations on the router first, before i start the configuration,and how it should be done in other not to loose the router whiles working on it.Thanks for your usual quick responds.
    Regards,
    Eben.

    Hello Eben,
    Peter has suggested to use SSH because of the fact that telnet data is sent in clear text, so someone with the right tools could easily find your password and your device could/would be compromised. It is security best practice. SSH is encrypted.
    Technically speaking you do not need to change the hostname / domain name. But majority of Cisco documentation follow this method.
    In case you are interested on how to do this without change... see below.
    Router(config)#
    Router(config)#crypto key generate rsa modulus 1024
    % Please define a hostname other than Router.
    Router(config)#crypto key generate rsa modulus 1024 label CISCO
    The name for the keys will be: CISCO
    % The key modulus size is 1024 bits
    % Generating 1024 bit RSA keys, keys will be non-exportable...[OK]
    Router(config)#
    *Jul 11 13:27:51.431: %SSH-5-ENABLED: SSH 1.99 has been enabled
    Router(config)#
    The normal cases just as shown in Cisco documentation, the parser (without a label on the crypto key) would force us to change the hostname, create a domain name. I think the domain name is there to put a label on the keys.
    Router(config)#crypto key generate rsa general-keys modulus 1024
    % Please define a hostname other than Router.
    Router(config)#crypto key generate rsa
    % Please define a hostname other than Router.
    Router(config)#hos
    Router(config)#hostname ISR
    lexnetISR(config)#crypto key generate rsa general-keys modulus 1024
    % Please define a domain-name first.
    ISR(config)#ip domain name net.com
    ISR(config)#exit
    ISR(config)#crypto key generate rsa general-keys modulus 1024
    The name for the keys will be: ISR.net.com
    % The key modulus size is 1024 bits
    % Generating 1024 bit RSA keys, keys will be non-exportable...[OK]

Maybe you are looking for

  • Is there a calendar which can be shared by multiple IPads in the same business?

    Is there a recommended calendar which can be used by multiple employees on their respective IPADS when we go offsite to set up in house appointments?We want to use one central calendar, so we don't overlap times and dates in the same office? Please h

  • Dump in include LSKBHF06 of  SAPLSKBH program while creating dynamic internal table.

    Hello Guys, We are facing a issue and expecting a support to resolve it. Brief Info about the issue: We have developed a code which downloads some specific information from database tables from client's system in excel file. For that we have used bel

  • Upgrading from iPhone 3G to iPhone 4

    Two quick questions: 1. If the iPhone 4 has a micro sim slot, how did I get my phone numbers off my old sim onto my iPhone 4? 2. Is there any way to backup my application files? For example I am up to level 25 on F.A.S.T. and don't want to lose my ga

  • Encryprtion process hangs

    HI I tried to encrypt my Razr Maxx running Android 4.1.2 OS so I can add my corporate email account. I had the screen unlock pin set.  After I start the encryption, I got the message " preparing to encrypt files on your phone".  It hung at this point

  • Java user replication

    In identity management, Abap system has been set up as the source . But some user id's have not replicated to Java system. When tried manually, it comes up with an error " An error occurred in the persistence. The original message (possibly not trans