SQLPLUS reprompt on bad password

If I issue CONN/CONNECT in a sqlplus script, is there any way to make it reprompt for a password until one has succesfully been entered?
The docs point out that by default, 'CONNECT does not reprompt for username or password if the initial connection does not succeed.'
I'm looking for the opposite as it makes no sense for my script to proceed without a succesful connect. I imagine this is a fairly common thing to want to do!
Rgds
Ben

if you use connect, than I would use whenever
SQL> whenever sqlerror exit failure
SQL> connect scott
Enter password:
ERROR:
ORA-01017: invalid username/password; logon denied
$ in sqlplus, you could use -L to avoid 3 passwords
$ sqlplus -L scott
SQL*Plus: Release 10.2.0.2.0 - Production on Tue Sep 26 11:25:44 2006
Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.
Enter password:
ERROR:
ORA-01017: invalid username/password; logon denied
SP2-0751: Unable to connect to Oracle.  Exiting SQL*Plus
" One big note of mines now ===>
never, never, never use a SELECT statement in your glogin.sql in Oracle 10g, because if the statement failed, after the connect, your session will be terminated in 10g !!!
Many use some select to set your prompt. Do not do that in 10g. Prefer using the predefined variables, for example I use
set sqlprompt "_user'@'_connect_identifier> "which is dynamic

Similar Messages

  • How do I resolve this problem: This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required

    When attempting to log in to the web site the following message is received. This web site works
    on other systems using Firefox.
    This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.
    Additionally, a 401 Authorization Required error was encountered while trying to use an ErrorDocument to handle the request.
    == URL of affected sites ==
    http://www.mdyc.org/members_only

    You may have saved a bad password so Firefox is entering that rather than giving you the option to try again. Go to Tools > Options > Security > Saved Passwords and delete the saved passwords for that site and then try logging in again.

  • "Logon failure: unknown user name or bad password" even with correct Credentials

    I have networked PCs before many times successfully, so this is not my first time trying to network PCs in a home environment. Though I’m wondering if Windows 8.1 is part of the problem. 
    I would have thought that for sure, until one of the new laptops running W8.1 would not connect to any of the other three PCs/Laptops running W8.1. Yet these other three W8.1 PCs/Laptops CAN connect to this laptop. Then it gets a little more interesting:
    this same laptop that couldn’t connect to those three W8.1 PCs/Laptops, CAN connect to a Windows 7 desktop, and a XP Laptop, and those two can also connect back to it without issue. It’s almost like my network is divided in half, and only half can talk to
    each other. But then when I thought it couldn’t get any more interesting, I realized the first three W8.1 PCs/Laptops can talk to the others, it’s just that the others (W8.1 Laptop, W7 Desktop, XP Laptop) can’t talk back to them without getting the error,
    "Logon failure: unknown user name or bad password” even though the username and password are 100% correct.
    I don’t fully understand this error, because on the surface, it’s just WRONG! 
    My username and password are correct, but it appears something somewhere is interfering or hijacking the authentication process. Three of the computers (laptops) are brand new, just purchased last week and setup this week. The HostPC is also fairly new,
    just purchased last month.
    I am not using a HomeGroup, and have removed all computers that were part of a HomeGroup. I have enabled file sharing and network discovery and enabled “Use user accounts and passwords to connect to other computers” on all PCs.
    I have DSL and am using the wireless modem provided by my ISP which has router functionality built into it. It is a Sagemcom Model: F@ST 1704N.
    All computers are connected wirelessly. Time is correct on all PCs. I cannot use Group Policy, since they're all Standard or Home edition. DHCP is enabled and all computers are on the same subnet, using the 192.168.254.x range of ip addresses.
    The six computers are as follows: (I figured this may make is easier to visualize the layout)
    HostPC: HP Desktop W8.1           
    PC Name: DrsBlend
    U/N: DrsBlend  p/w: 123456 (not showing my real password)
    PC1: HP Laptop W8.1
    PC Name: DrsBlend-1
    U/N: DrsBlend    P/W: 123456
    PC2: HP Laptop W8.1
    PC Name: DrsBlend-2
    U/N: DrsBlend    P/W: 123456
    PC3: HP Laptop W8.1
    PC Name: DrsBlend-3
    U/N: DrsBlend    P/W: 123456
    PC4: HP Desktop W7 SP1
    PC Name: DrsBlend-4
    U/N: DrsBlend    P/W: 123456
    PC5: Dell Laptop XP SP3
    PC Name: DrsBlend-5
    U/N: DrsBlend    P/W: 123456
    Every PC stated above has the same user name and password and is logged-in with the username, DrsBlend and the password 123456. The "Logon failure: unknown user name or bad password” happens when trying to access HostPC, PC1, or PC2 from PC3, PC4, or
    PC5.
    The HostPC can see and connect to all the PCs, but only PC1 and PC2 can talk back or access the HostPC. 
    It’s like the HostPC and PC1, and PC2 are in their own little clique, and can talk back and forth to each other. Those three PCs can also talk to PC3, PC4, and PC5 as well, but PC3, PC4, and PC5 cannot talk back to them (HostPC, PC1, PC2).
    Profile corruption? I would have entertained that thought, but the fact the first three PCs can access and talk to one another kind of defeats that idea, and the fact the PCs were just recently setup.
    Firewall? Disabled, and disabled TrendMicro with no change. With them on/off, the first three PCs can still talk to each other and the rest of the PCs.
    Anyone have any additional suggestions?

    Hi,
    How did you connect to other PCs? Do you use RDP to connect to other PCs? If so, check the version of the RDP, as I know, some low version RDP can't connect to higher Windows like 8.1.
    And could you please tell us the detailed information about how the six PCs connect to the home network?
    Can PC1, PC2, PC3 ping back to host PC, PC1 and PC2?
    You can also run command " rundll32.exe keymgr.dll, KRShowKeyMgr " view the credentials stored in your PC,check whether this issue is related with some old credentials stored in your system.
    Yolanda Zhu
    TechNet Community Support

  • My PC cannot find my Mac and also it ask for a password and I put it in and tell Logon failure:unknown user name or bad password

    I need some help on my MAC about them problem that I have and the question is: My PC cannot find my MAC and it ask a question  about putting in the password and I did it come back and said: Logon failure: unknown user name or bad password.
    Thank You
    Lumpy

    You have to explain a little more fully what you are trying to do and what protocol.  Whats your set up?

  • Why do I get "Unknown user name or bad password" on Windows 7 when trying to connect to an SMB share on my Mac?

    Before installing the update to 10.7.3 I could connect to an SMB share on my Mac from Windows 7 but I can't any longer. When I try I get the error "Unknown user name or bad password" on the Windows 7 system.
    When I try to connect using the "net use..." command I get the error: "System error 86 has occurred".
    Does anyone know how to resolve this? What really confuses me is that it was working fine until I installed the update to 10.7.3.

    Check the Wins Tab in the Advanced section of Network in system preferences.
    If you don't have the same workgroup name and the correct NetBIOS name showing up in the WINS tab you will get the Bad username or password.
    I know I deal with this everyday.
    There is something wrong with Lion and it does not automatically fill in those entries in the WINS tab.
    What I have to do on every reboot/startup is open System preferences go to Sharing and uncheck File Sharing then recheck it. That will fill in the WINS tab entries.

  • Unknown user name or bad password issue while creating AD accounts

    Hi All,
    While creating accounts on AD through IdM, I am getting below error. Sometimes I don't see this error while sometimes I do. What could be the actual reason ?
    com.waveset.util.WavesetException: Error opening object 'LDAP://cn=ut9778ug,ou=Employee USA,ou=Users,ou=CorpHQ,dc=corpz,dc=utcz,dc=com': ADsOpenObject(): 0X8007052E: , , Logon failure: unknown user name or bad password.
    Please help me out.
    Thanks,

    Hi,
    I just faced the same problem while provisionning account on AD through Sun Identity Manager Gateway. (I'm in Oracle Waveset 8 patch 6)
    When I test configuration on the configuration page of my AD resource, everything was ok, but when i tried to create / update account on AD, i had the same error. (when i forced a bad password for example, the test configuration was in error, so i know that was ok)
    I resolved the problem using IP address in "LDAP Server Name" instead of url or host name. I don't understand because 'ping' on url and test configuration on resource were ok.
    I hope it will be usefull for you
    Nicolas

  • FIM CM Logon failure: unknown user name or bad password. (Exception from HRESULT: 0x8007052E)

    Hi,
    I am trying to install FIM Certificate management 2010. I am not able to access the CM Web portal. Whenever I login it shows the following error
    Logon failure: unknown user name or bad password. (Exception from HRESULT: 0x8007052E)
    This is the CM Log
    1) Exception Information
    Exception Type: System.Runtime.InteropServices.COMException
    ErrorCode: -2147023570
    Message: Logon failure: unknown user name or bad password. (Exception from HRESULT: 0x8007052E)
    Data: System.Collections.ListDictionaryInternal
    TargetSite: Void ThrowExceptionForHRInternal(Int32, IntPtr)
    HelpLink: NULL
    Source: mscorlib
    StackTrace Information
       at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
       at Microsoft.Clm.Security.Principal.LoggedOnUser.Logon(String userName, String password)
    "2014-04-16 02:48:50.98 -07" "Microsoft.Clm.Security.Principal.RevertToSelfContext"
    "Microsoft.Clm.Security.Principal.RevertToSelfContext RevertIfImpersonating()"
    "PCEDOMAIN\Administrator" "PCEDOMAIN\clmWebPool"
    0x000014F8 0x00000004
    Reverting to the process identity
    "2014-04-16 02:48:50.99 -07" "Microsoft.Clm.BusinessLayer.UserIdentity"
    "Boolean get_IsAuthenticated()"
    "" "PCEDOMAIN\clmWebPool"
    0x000014F8 0x00000004
    Checking if PCEDOMAIN\Administrator is authenticated
    "2014-04-16 02:48:50.99 -07" "Microsoft.Clm.BusinessLayer.UserIdentity"
    "Boolean get_IsAuthenticated()"
    "" "PCEDOMAIN\clmWebPool"
    0x000014F8 0x00000004
    True (is authenticated) PCEDOMAIN\Administrator
    "2014-04-16 02:48:51.01 -07" "Microsoft.Clm.Web.GlobalASAX"
    "Boolean DoesResxFileExist(System.Globalization.CultureInfo)"
    "" "PCEDOMAIN\clmWebPool"
    0x000014F8 0x00000004
    DoesResxFileExist
    "2014-04-16 02:48:51.01 -07" "Microsoft.Clm.Web.GlobalASAX"
    "Boolean DoesResxFileExist(System.Globalization.CultureInfo)"
    "" "PCEDOMAIN\clmWebPool"
    0x000014F8 0x00000004
    Resx exists [C:\Program Files\Microsoft Forefront Identity Manager\2010\Certificate Management\web\App_GlobalResources\WebResources.en-US.resx] for culture: en-US? False
    "2014-04-16 02:48:51.01 -07" "Microsoft.Clm.Web.GlobalASAX"
    "Boolean DoesResxFileExist(System.Globalization.CultureInfo)"
    "" "PCEDOMAIN\clmWebPool"
    0x000014F8 0x00000004
    DoesResxFileExist
    "2014-04-16 02:48:51.01 -07" "Microsoft.Clm.Web.GlobalASAX"
    "Boolean DoesResxFileExist(System.Globalization.CultureInfo)"
    "" "PCEDOMAIN\clmWebPool"
    0x000014F8 0x00000004
    Resx exists [C:\Program Files\Microsoft Forefront Identity Manager\2010\Certificate Management\web\App_GlobalResources\WebResources.en.resx] for culture: en? True
    "2014-04-16 02:48:51.01 -07" "Microsoft.Clm.Web.GlobalASAX"
    "Void Application_BeginRequest(System.Object, System.EventArgs)"
    "" "PCEDOMAIN\clmWebPool"
    0x000014F8 0x00000004
    Web UiCulture: en-US. Web Culture: en-US
    "2014-04-16 02:48:51.01 -07" "Microsoft.Clm.Web.Authentication.CustomAuthenticationConfiguration"
    "Microsoft.Clm.Web.Authentication.FilteredApplication MapPathToApplication(System.String)"
    "" "PCEDOMAIN\clmWebPool"
    0x000014F8 0x00000004
    Mapping path: [error.aspx]
    "2014-04-16 02:48:51.01 -07" "Microsoft.Clm.Web.Authentication.CustomAuthenticationConfiguration"
    "Microsoft.Clm.Web.Authentication.FilteredApplication MapPathToApplication(System.String)"
    "" "PCEDOMAIN\clmWebPool"
    0x000014F8 0x00000004
    Path: [error.aspx] was not found in the configuration section.
    "2014-04-16 02:48:51.01 -07" "Microsoft.Clm.Web.Authentication.CustomAuthenticationModule"
    "Void OnAuthenticate(System.Object, System.EventArgs)"
    "" "PCEDOMAIN\clmWebPool"
    0x000014F8 0x00000004
    Path: [error.aspx], filtered: False
    "2014-04-16 02:48:51.01 -07" "Microsoft.Clm.Web.Authentication.CustomAuthenticationModule"
    "Void OnAuthenticate(System.Object, System.EventArgs)"
    "" "PCEDOMAIN\clmWebPool"
    0x000014F8 0x00000004
    Builtin Principal: System.Security.Principal.WindowsPrincipal, Identity: System.Security.Principal.WindowsIdentity
    "2014-04-16 02:48:51.01 -07" "Microsoft.Clm.Web.Authentication.CustomAuthenticationModule"
    "Void OnAuthenticate(System.Object, System.EventArgs)"
    "" "PCEDOMAIN\clmWebPool"
    0x000014F8 0x00000004
    Builtin Identity Details:
    Name: PCEDOMAIN\Administrator
     IsAuthenticated: True
     AuthenticationType: Negotiate
    "2014-04-16 02:48:51.01 -07" "Microsoft.Clm.BusinessLayer.UserIdentity"
    "Boolean get_IsAuthenticated()"
    "" "PCEDOMAIN\clmWebPool"
    0x000014F8 0x00000004
    Checking if PCEDOMAIN\Administrator is authenticated
    "2014-04-16 02:48:51.01 -07" "Microsoft.Clm.BusinessLayer.UserIdentity"
    "Boolean get_IsAuthenticated()"
    "" "PCEDOMAIN\clmWebPool"
    0x000014F8 0x00000004
    True (is authenticated) PCEDOMAIN\Administrator
    "2014-04-16 02:48:51.01 -07" "Microsoft.Clm.Web.Authentication.CustomAuthenticationModule"
    "Void OnAuthenticate(System.Object, System.EventArgs)"
    "" "PCEDOMAIN\clmWebPool"
    0x000014F8 0x00000004
    Custom Identity Details:
    Name: PCEDOMAIN\Administrator
     IsAuthenticated: True
     AuthenticationType: Negotiate
    Ticket: 
    "2014-04-16 02:48:51.01 -07" "Microsoft.Clm.BusinessLayer.UserIdentity"
    "Boolean get_IsAuthenticated()"
    "PCEDOMAIN\Administrator" "PCEDOMAIN\clmWebPool"
    0x000014F8 0x00000004
    Checking if PCEDOMAIN\Administrator is authenticated
    "2014-04-16 02:48:51.01 -07" "Microsoft.Clm.BusinessLayer.UserIdentity"
    "Boolean get_IsAuthenticated()"
    "PCEDOMAIN\Administrator" "PCEDOMAIN\clmWebPool"
    0x000014F8 0x00000004
    True (is authenticated) PCEDOMAIN\Administrator
    "2014-04-16 02:48:51.01 -07" "Microsoft.Clm.BusinessLayer.UserIdentity"
    "Boolean get_IsAuthenticated()"
    "PCEDOMAIN\Administrator" "PCEDOMAIN\clmWebPool"
    0x000014F8 0x00000004
    Checking if PCEDOMAIN\Administrator is authenticated
    "2014-04-16 02:48:51.01 -07" "Microsoft.Clm.BusinessLayer.UserIdentity"
    "Boolean get_IsAuthenticated()"
    "PCEDOMAIN\Administrator" "PCEDOMAIN\clmWebPool"
    0x000014F8 0x00000004
    True (is authenticated) PCEDOMAIN\Administrator
    "2014-04-16 02:48:51.01 -07" "Microsoft.Clm.BusinessLayer.UserIdentity"
    "Boolean get_IsAuthenticated()"
    "PCEDOMAIN\Administrator" "PCEDOMAIN\clmWebPool"
    0x000014F8 0x00000004
    Checking if PCEDOMAIN\Administrator is authenticated
    "2014-04-16 02:48:51.01 -07" "Microsoft.Clm.BusinessLayer.UserIdentity"
    "Boolean get_IsAuthenticated()"
    "PCEDOMAIN\Administrator" "PCEDOMAIN\clmWebPool"
    0x000014F8 0x00000004
    True (is authenticated) PCEDOMAIN\Administrator
    "2014-04-16 02:48:51.03 -07" "Microsoft.Clm.BusinessLayer.UserIdentity"
    "Boolean get_IsAuthenticated()"
    "PCEDOMAIN\Administrator" "PCEDOMAIN\clmWebPool"
    0x000014F8 0x00000004
    Checking if PCEDOMAIN\Administrator is authenticated
    "2014-04-16 02:48:51.03 -07" "Microsoft.Clm.BusinessLayer.UserIdentity"
    "Boolean get_IsAuthenticated()"
    "PCEDOMAIN\Administrator" "PCEDOMAIN\clmWebPool"
    0x000014F8 0x00000004
    True (is authenticated) PCEDOMAIN\Administrator
    Thanks

    On Wed, 16 Apr 2014 10:15:55 +0000, Priyesh92 wrote:
    I am trying to install FIM Certificate management 2010. I am not able to access the CM Web portal. Whenever I login it shows the following error
    Logon failure: unknown user name or bad password. (Exception from HRESULT: 0x8007052E)
    1. Make sure that you've got all of the required Kerberos delegation
    settings and SPNs setup correctly.
    2. Make sure that you've added the portal to Trusted Sites in IE and that
    you configure the security settings to for Trusted Sites to log on
    automatically.
    3. Make sure that you have the password for the CLMWebPool account set
    correctly.
    Paul Adare - FIM CM MVP
    But these are not inherent flaws in [NT]. They are the result of deliberate
    and well-thought-out efforts. -- M$ Spokesweenie

  • New-OfficeWebAppsFarm : Logon failure: unknown user name or bad password.

    Hi,
         Recently we bought windows server 2008 r2 from myhosting.com . I tried to install office web apps 2013 on this machine. I followed this URL(http://technet.microsoft.com/en-us/library/jj219455.aspx)
    to configure office web apps 2013 in the machine. After installed the office web apps 2013, I created the Office Web Apps 2013 Server farm in the machine using power shell command. 
    New-OfficeWebAppsFarm –InternalURL "http://vps1141344" –AllowHttp -EditingEnabled
    When I run the command on power shell I got the below error
    New-OfficeWebAppsFarm : Logon failure: unknown user name or bad password.
    At line:1 char:1
    + New-OfficeWebAppsFarm –InternalURL "http://vps1141344" –AllowHttp -EditingEnable ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [New-OfficeWebAppsFarm], AuthenticationException
        + FullyQualifiedErrorId : System.Security.Authentication.AuthenticationException,Microsoft.Off 
       ice.Web.Apps.Administration.NewFarmCommand
    Please help me some one to fix this issue.
    Thanks,
    Nattuthurai
    Nattuthurai.K

    hi, I encountered the same error with you,
    i resolved the issue with following steps:
    1. add you Office Web Apps server to domain;
    2. login  Office
    Web Apps server as domain user;
    3. run power shell as administrator;
    4. run shell command;
    5.success.
    白云谦逊的站在天之一禺,晨光给他带上了彩霞。。。

  • System Error: Logon failure: unknown user name or bad password

    Hello experts,
    my system NW2004s (SPS14.1) is producing a lot of the following error messages caused by the internal user Guest... The system user Guest has all the necessary rights using a service user.
    *getting mapped math - java.io.IOException: Logon failure: unknown user name or bad password*
    at java.io.WinNTFileSystem.canonicalize0(Native Method)
    at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:333)
    at java.io.File.getCanonicalPath(File.java:513)
    at com.sapportals.wcm.repository.util.file.StdFileImpl.getCanonicalPath(StdFileImpl.java:74)
    at com.sapportals.wcm.repository.util.file.StdFileImpl.getCanonicalFile(StdFileImpl.java:70)
    at com.sapportals.wcm.repository.manager.sfs.FSRepositoryManager.startUpImpl(FSRepositoryManager.java:141)
    at com.sapportals.wcm.repository.manager.AbstractRepositoryManager.start(AbstractRepositoryManager.java:538)
    at com.sapportals.wcm.crt.CrtThreadSafeComponentHandler.tryToStart(CrtThreadSafeComponentHandler.java:246)
    at com.sapportals.wcm.crt.CrtThreadSafeComponentHandler$1.run(CrtThreadSafeComponentHandler.java:252)
    at java.util.TimerThread.mainLoop(Timer.java:432)
    at java.util.TimerThread.run(Timer.java:382)
    I am not sure about the severity of the error. I can observe the error message almost every minute in the Log file and I have the impression that this message occours more often before the portal has more "problems" in general and is for a short time not accecible (it freezes and sometimes a java server restarts itself). I am asking myself if this error message could give a hint for the system crash we have had today. (a restart of the host was needed.)
    However I would like to know what causes the error message?
    It is a critical error message? It means can it cause a system crash? Or is it not important?
    What can I do to solve the problem?
    I appreciate your helful answers.
    Thanks in advance.
    Thomas

    I think the password for the proxy account needs to be changed (expired)
    Arthur My Blog

  • Windows Security Error! Logon failure: unknown user name or bad password

    We RANDOMLY can't access one of the computers in our company's network. It is now saying - Windows Security - Logon failure: unknown user name or bad password. It doesn't matter what I put in for a user name and pw it still doesn't work.
    Any help is much appreciated!

    To be added, if it is part of domain, is this computer had local account? If so, try to logon local account for test, If sucessfully, follow Cyber's suggestion remove PC from domain and rejoin it for test.
    If not, you can try to boot system into recovery mode and choose recovery computer for test.
    Press F8 at startup, then choose Recovery system.
    Roger Lu
    TechNet Community Support

  • EffectiveUserName Logon failure: unknown user name or bad password

    Hi
    I am trying to connect Sharepoint 2013 services (performancepoint , excel services) to SSAS 2012 using the EffectiveUserName.
    I was getting a error message regarding conencting the datasource and when checking profiler it was saying Logon failure: unknown user name or bad password.
    On the SSAS server i tried using EffectiveUserName in the additional Connection Parameters and it failed for the above reason. I also tried my username as well as the sharepoint service account
    the sharepoint service account and my username are both server admins.
    When I try using the EffectiveUserName in the additional Connection Parameters on another server I can connect with no problems.
    What seems to be the different with server where I am getting the error message?
    Regards

    Hi aivoryuk,
    According to your description, you get the "unknown user name or bad password" error when using EffectiveUserName in Connection parameter to connect Analysis Services. Right?
    In this scenario, if you use a connection string to create the data connection, and the connection string contains an effective user field, the EffectiveUserName feature will override the user-supplied effective user value with the system-supplied value.
    On this server, you may use a domain user to run the SSAS. So it will show the "unknown user name or bad password." However, on the other server, it may use system build-in account to run SSAS. Please refer to link below to check the steps for using
    Analysis Services EffectiveUserName in SharePoint Server 2013:
    https://technet.microsoft.com/en-us/library/jj219741(v=office.15).aspx
    If you have any question, please feel free to ask.
    Simon Hou
    TechNet Community Support
    Hi thanks for the link but it just shows how to set effective user name in sharepoint which I know how to do.
    In SSMS and when I connect to the SSAS server and I select options and then I go to the addional connection parameters tab i set Effectivename ="domain\username" on once server I get the error mesage but on the other I don't.
    I'm not clear from you explanation as to why this is?
    Regards

  • Logon failure: unknown user name or bad password.

    Hai,
    I am trying to move the file from application server to folder in non-sap server using DOS commands in a batch file.
    Commands in the batch file is below.
    E:
    cd E:\HSBC\HSBC_IN\
    for /f %%a IN ('dir /b *.xml') do (
    move %%a
    host name\HSBC\Temp
    exit;
    I have created a command in SM69(E:\HSBC\hsbc.bat) and trying to execute, it is properly executing in Development server and file is moving. Same is not executing in Quality server. Its giving an error as Logon failure: unknown user name or bad password. External program terminated with exit code 1. For that destination folder i have given permission for both Delelopment server and Quality server.
    Please help on this issue with high priority .
    <priority is downgraded>
    Thank you.
    Edited by: Suhas Saha on Sep 12, 2011 2:52 PM

    Hi,
    May be my suggestion is a stupid one but still you can just look into it if nothing works out.
    See the non-SAP server you are mentioning here, should also be same type I mean if  you are moving file from SAP-DEV then the non-SAP server also should be of type DEV, SAP-Quality to Non-SAP Quality etc
    Check this.

  • Logon failure: unknown user name or bad password... ?Authenticator class?

    I'm connecting to a MS Exchange server (internally) but I'm getting the following error:
    ........Non SSL........
    POP3: connecting to host "xxxx.xxx.com", port 110
    S: +OK Microsoft Exchange POP3 server version 5.5.2658.25 ready
    C: USER [email protected]
    S: +OK
    C: PASS
    S: -ERR Logon failure: unknown user name or bad password.
    C: QUIT
    S: +OK Microsoft Exchange POP3 server version 5.5.2658.25 signing off
    test2 :: javax.mail.AuthenticationFailedException: Logon failure: unknown user name or bad password.
    I can get my email using Outlook because I don't have to provide a password to connect. So I left it blank in my program but I still can't
    login. Does this mean that I need to use the authenticator class?
    Here's the code I'm using to connect:
    public class ListMailSubjectLines
         private static void ListMailSubjectsLines()
              try
                   Properties pop3Props = new Properties();     
                     Session session = null;
                     Store store = null;
                   pop3Props.put("mail.pop3.host","xxxx.xxx.com");
                   pop3Props.put("mail.user","[email protected]");
                   pop3Props.setProperty("mail.passwd","");
                   //     String host = "";
                   //     String username = "";
                   //     String password = "";
                     if((pop3Props.getProperty("mail.pop3.ssl") != null) && (pop3Props.getProperty("mail.pop3.ssl").equalsIgnoreCase("true")))
                        System.out.println("........SSL........");
                           String SSL_FACTORY = "javax.net.ssl.SSLSocketFactory";
                           pop3Props.setProperty("mail.pop3.socketFactory.class", SSL_FACTORY);
                           pop3Props.setProperty("mail.pop3.socketFactory.fallback", "false");
                           String portStr = ((pop3Props.getProperty("mail.pop3.port") != null) ? pop3Props.getProperty("mail.pop3.port") : "110");
                           pop3Props.setProperty("mail.pop3.port",  portStr);
                           pop3Props.setProperty("mail.pop3.socketFactory.port", portStr);
                           URLName url = new URLName("pop3://"+pop3Props.getProperty("mail.user")+":"+pop3Props.getProperty("mail.passwd")+"@"+pop3Props.getProperty("mail.host")+":"+pop3Props.getProperty("mail.pop3.port"));
                           session = Session.getInstance(pop3Props, null);
                           store = new POP3SSLStore(session, url);
                     else
                          System.out.println("........Non SSL........");
                           session = Session.getInstance(pop3Props, null);
                           store = session.getStore("pop3");
    session.setDebug(true);
                   store.connect(pop3Props.getProperty("mail.host"), pop3Props.getProperty("mail.user"), pop3Props.getProperty("mail.passwd"));
                     //store.connect(host, username, password);
                     Folder folder = store.getFolder("INBOX");
                     folder.open(Folder.READ_WRITE);
                     Message[] Msgs = folder.getMessages();
                     for(int i = 0; i < Msgs.length; i++)
                       System.out.println(Msgs.getSubject());
                   folder.close(true);
                   store.close();
                   System.out.println(Msgs[0].getSubject() + "test");
                   catch(NoSuchProviderException ec)
                        System.out.println("test1");
                   catch(MessagingException em)
                        System.out.println("\ntest2 :: " + em);
         public static void main( String args[] )
                   ListMailSubjectsLines();
    Thanks,
    ls6

    In case anyone wants to see the format and the final code here it is:
    Login name format:
    pop3Props.setProperty("mail.user","TEST_DOMAIN\\UserID\\mailboxID");
    Code
    import com.sun.mail.pop3.POP3SSLStore;
    import javax.mail.URLName;
    import javax.mail.Session;
    import javax.mail.Store;
    import javax.mail.Folder;
    import javax.mail.Message;
    import javax.mail.NoSuchProviderException;
    import javax.mail.MessagingException;
    import java.util.Properties;
    public class ListMailSubjectLines
         private static void ListMailSubjectsLines()
              try
              Properties pop3Props = new Properties();     
                Session session = null;
              Store store = null;                 
              pop3Props.put("mail.pop3.host","mailHOST");
              pop3Props.setProperty("mail.user","TEST_DOMAIN\\UserID\\mailboxID");
              pop3Props.setProperty("mail.passwd","passWord");               
                if((pop3Props.getProperty("mail.pop3.ssl") != null) && (pop3Props.getProperty("mail.pop3.ssl").equalsIgnoreCase("true")))
                   System.out.println("### SSL ###");
                      String SSL_FACTORY = "javax.net.ssl.SSLSocketFactory";
                      pop3Props.setProperty("mail.pop3.socketFactory.class", SSL_FACTORY);
                      pop3Props.setProperty("mail.pop3.socketFactory.fallback", "false");
                      String portStr = ((pop3Props.getProperty("mail.pop3.port") != null) ? pop3Props.getProperty("mail.pop3.port") : "110");
                      pop3Props.setProperty("mail.pop3.port",  portStr);
                      pop3Props.setProperty("mail.pop3.socketFactory.port", portStr);
                      URLName url = new URLName("pop3://"+pop3Props.getProperty("mail.user")+":"+pop3Props.getProperty("mail.passwd")+"@"+pop3Props.getProperty("mail.pop3.host")+":"+pop3Props.getProperty("mail.pop3.port"));
                      session = Session.getInstance(pop3Props, null);
                      store = new POP3SSLStore(session, url);
                else
                     System.out.println( "### Non SSL ###" );
                      session = Session.getInstance( pop3Props, null );
                      store = session.getStore( "pop3" );
    //System.out.println(session.getStore());
    session.setDebug( true );
                   store.connect(pop3Props.getProperty( "mail.host" ), pop3Props.getProperty("mail.user"), pop3Props.getProperty("mail.passwd"));
                   if( store.isConnected() )
                           System.out.println( "\nCONNECTED\n" );
                   Folder folder = store.getDefaultFolder();
                   folder = folder.getFolder( "INBOX" );
                   folder.open( Folder.READ_WRITE );
                   Message[] Msgs = folder.getMessages();
                   for( int i = 0; i < Msgs.length; i++ )
                                         System.out.println( Msgs.getSubject() );
                   folder.close( true );
                   store.close();
              Folder folder = store.getFolder( "INBOX" );
              //Folder folder = store.getDefaultFolder();
              //folder = folder.getFolder( "INBOX" );
              folder.open( Folder.READ_ONLY );
              Message[] Msgs = folder.getMessages();
              for( int i = 0; i < Msgs.length; i++ )
                   System.out.println( folder.getUnreadMessageCount() );
                   System.out.println( Msgs[i].getSubject() );
                   System.out.println( Msgs[i].getContentType() );
                   System.out.println( Msgs[i].getSize() );
              folder.close( true );
              store.close();
              catch(NoSuchProviderException nSPE)
                   System.err.print( "### Line[88] ### " );
                   System.err.println( nSPE );
              catch(MessagingException mE)
                   System.err.print( "### Line[93] ### " );
                   System.err.println( mE );
    public static void main( String args[] )
              ListMailSubjectsLines();

  • Detect Source of Bad Password from ADFS Server 2.0

    Hi Folks,
    I'm dealing with user who report AD account locked every 2-3 hour due to 5 times bad password. The security event log  show that source of bad password is ADFS Server (W2K8R2). We advise her to update password  in all active sync device and PC yet
    the account still locked. how can i identify source of bad password for every device authenticate to ADFS? i have been working with this issue for 4 month and still have't find way to identify the source of bad password. Thanks and appreciate your help and
    time.

    Hiya,
    You might be able to get a time indication in the ADFS logs first about a failed attempt due to wrong username or password. From that time indication, it would be easier to search firewall logs for additional details.

  • In sqlplus after a bad compile where does the show errors data exist?

    I am creating an automated deploy of code for project releases. In sqlplus I use the whenever command for sql errors but it doesn't catch bad compiles. When the process runs it runs as a dba user having the stored procs fully qualified causing the compile error not show in the user_errors but in all_errors. While experimenting I saw that another user could get a new record put into all_errors but my session when in sqlplus I still see the error from my compile from SHOW ERRORS. My question is where is the data from the show errors in my session stored and is it available for me to query so I can check for compile errors within sqlplus?
    Hope that was clear .
    Thanks,
    Ken

    In sqlplus ...You are in the wrong forum. This is for Oracle Forms.

Maybe you are looking for

  • Unable to log and capture HD from HVR-25J

    Hi Does anyone know why I am not able to capture 1080i50 material from HVR-25J to the FCP 5 running in MAC PRO 3.0GHZ. The setup i have in the HVR is: i link set to HDV (i link off). video out is 1080i50 i link is connected to fire wire in mac and i

  • Acrobat XI Stopped working after CC Updates

    RANT: It's happened 3 times now, and I'm getting fed up of the Adobe support - very disappointing. I don't think they know how to handle issues, and sometimes wonder if they even know the basic difference between hold and disconnect. Numerous times I

  • If i buy i pad with retina display from dubai and take to india..i would like to know about the international warranty.

    I WOULD LIKE TO KNOW ABT THE INTERNATIONAL WARRANTY OF 1 PAD 4. I RESIDE IN INDIA. AND WOULD LIKE TO KNOW ABT THE INTERNATIONAL WARRATY IF I BUY IPAD RETINA DISPLAY( SOON TO BE LAUNCHED ) FROM DUBAI

  • Importing multi channel audio

    Is there a way to import four individual monotracks as one audio clip with four channels? We recieved iso tracks from a four channel recorder and need to get the individual mono clips merged before we sync them with picture. In media composer there's

  • SLL error 61 in citrix

    When i start on my Imac in Safari a website Citrix is started to access my documents at work. When i do that the following error occures SSL Error 61 You have not chosen to trust "positiveSSL CA" The issuer of the servers security certificate. Error