The Target Principle Name is Incorrect

The Advanced Page cannot be opened because of following error: The Target Principle Name is incorrect.
I have a 3 sites Site A (HeadOffice contains Two DCs), Site B (contains One DC), Site B (contains One DC).
While trying to joining a Domain from machine at Site B and C when I try to join a domain from NetBIOS name it fails and when try it with Domain FQDN it passes.
Site B and C has some support engineers who were previously able to join the domain but now they are unable to jaoin domain as well.
When I try to add user to local admin group of their machines and I logon to my domain admin ID I am getting below error.
If anyone could help me how I start troubleshooting or is there any way if I create new fresh DC(ADC) on those sites,
Please Note All the fsmo are on one DC at Site A and domain consist of single forest single domain model. 
SYED WASIL UDDIN Infrastructure Consultant/System Engineer Premier Systems (Pvt.) Ltd.

Fixing Replication DNS Lookup Problems (Event IDs 1925, 2087, 2088)
Fixing Replication Security Problems
Fixing Replication Connectivity Problems (Event ID 1925)
Regards,
Biswajit
MCTS, MCP 2003,MCSA 2003, MCSA:M 2003, CCNA, Enterprise Admin, ITIL F 2011
Blog:
  Script Gallary:
  LinkedIn:
Note: Disclaimer: This posting is provided & with no warranties or guarantees and confers no rights..

Similar Messages

  • Replication issues: Operations Master shows ERROR and attempting to connect to server shares gets "the target account name is incorrect"

    I think this should be easily resolved, but I need some guidance.
    I have a client with 2 Server 2003 R2 x64 DCs: BORIS & NATASHA. Last year I upgraded both of them from x86 to x64 one at a time, allowing replication to occur between the upgrades. BORIS is the FSMO roles holder as it is currently the production server,
    while NATASHA is a backup DC. One thing that puzzles me though is that if I look at the NS record in DNS on the SOA tab, it says NATASHA is the Primary server.
    While doing some routine maintenance I noticed an error in the File Replication Service events about a 'Tombstone' situation (Event ID 2042). I looked at article cc757610 in the Technet Library and opted for remedy #3 as I did not want to demote NATASHA
    and I got confused looking at the help about using "repadmin /removelingeringobjects". I have no idea how to determine which DC has the good copy of the directory.
    Now, in running "repadmin /showrepl" I get
    "DC=CPA,DC=local
        Default-First-Site-Name\BORIS via RPC
            DC object GUID: 0267a090-1890-40e2-9a15-ea928cabd425
            Last attempt @ 2012-12-27 08:28:55 failed, result -2146893022 (0x80090322):
                The target principal name is incorrect.
            1179 consecutive failure(s).        Last success @ 2012-12-21 23:30:15." <-- THIS IS WEIRD SINCE THIS IS THE DATE THAT I DISCOVERED THE TOMBSTONE EVENT AND MADE THE REGISTRY CHANGE
    (I THINK).
    When I try to look at the FSMO roles on NATASHA, it shows ERROR for RID, PDC & Infrastructure and says "The current Operations Master is offline. The role cannot be transferred." The other issue I'm having is that client PCs are intermittently having
    trouble reconnecting to necessary server shares.
    TIA
    Wayne S. CompTIA A+ CompTIA Network+ Microsoft MCP

    Hello Sandesh,
    I spent a lot of time trying to understand using NETDOM to reset machine account passwords (don't understand it yet), but I see that you're saying that won't work anyway.
    I'm not really sure how to tell which DC is the broken one, but I'm assuming it's BORIS since that's the one users are unable to connect to. Since it is the FSMO role holder and GC I want to make sure I understand the steps correctly:
    1.Use dcpromo to forcefully demote BORIS
    2.Do metadata cleanup on NATASHA (using ntdsutil?)
    3.Promote BORIS again to DC
    Should I leave NATASHA as the FSMO role holder and GC? BORIS is the better (more resources/faster processor) machine and it's the file server. Or should the better machine be the FSMO role holder and GC as well as the file server. NATASHA is meant to be
    a backup in case BORIS dies.
    Thanks,
    Wayne S. CompTIA A+ CompTIA Network+ Microsoft MCP www.InfoTek831.com
    Hi,
    The step you are performing is correct but you also need to seize the FSMO role on other DC if BORIS is FSMO role holder and configure authorative time server role.You can later move the famo role to  BORIS server the choice is your however if you are
    moveing the role then you need configure authorative time server on BORIS server.
    Configuring the time service on the PDC Emulator FSMO role holder
    http://msmvps.com/blogs/acefekay/archive/2009/09/18/configuring-the-windows-time-service-for-windows-server.aspx
    Domain Replication has exceeded the tombstone lifetime
    http://pmeijden.wordpress.com/2011/01/12/domain-replication-has-exceeded-the-tombstone-lifetime/
    Forcefull removal of DC:
    http://support.microsoft.com/kb/332199
    How to transfer or seize FSMO roles
    http://sandeshdubey.wordpress.com/2011/10/07/how-to-transfer-or-seize-fsmo-roles/
    Metadata Cleanup of a Domain controller
    http://sandeshdubey.wordpress.com/2011/10/12/metadata-cleanup-of-a-domain-controller/
    Once both server is online check the health of DC by running dcdiag /q and repadmin /replsum.Ensure that DNS/GC role is configured on both DC's
    Hope this helps
    Best Regards,
    Sandesh Dubey.
    MCSE|MCSA:Messaging|MCTS|MCITP:Enterprise Adminitrator |
    My Blog
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • Authentication failed. (Microsoft.AnalysisServices.AdomdClient). The target principal name is incorrect (Microsoft.AnalysisServices.AdomdClient)

    Hi Experts,
    We had a task to  migrate SQL Server all the components to another server, the migration went well and had no issues at all. but We can login to SSAS service locally wihtout any issues. when we are connecting the analysis services from the other machines(servers)
    it is givng the below error.
    Authentication failed. (Microsoft.AnalysisServices.AdomdClient)
    The target principal name is incorrect (Microsoft.AnalysisServices.AdomdClient)
    1) it is a stand alone server
    2) it is connecting to default instance but not to a named instance
    3) SPN's were set correctly. Double checked with the tool(MS Kerberos configuration Tool).
    4) The SQL server analysis start account has domain admin privileges.
    5) we can connect to Database services from the other machine remotely.
    6) none of the analysis services are  connecting.
    Thank you in advance.

    Hi Ramu,
    According to your description, you migrated SQL Server to another server, everything works fine except that cannot connect to SSAS remotely with the error, right?
    Authentication failed. (Microsoft.AnalysisServices.AdomdClient)
    The target principal name is incorrect (Microsoft.AnalysisServices.AdomdClient)
    Based on my research, this issue is caused by that the SPN for account that run the Analysis Services is corrupt. You said that the SPN were set correctly, however the error message indicate that the problem is related to SPN. So in your scenario, you can
    delete the SPN under the service account, and register SPN for Analysis Services instance. Please refer to the link below to see the details.
    http://msdn.microsoft.com/en-IN/library/dn194200.aspx
    Besides, here is a blog which describe the similar issue.
    http://www.wolfsoftwaresystems.com/code/sql/the-target-principal-name-is-incorrect-microsoft-analysisservices-adomdclient/
    Regards,
    Charlie Liao
    TechNet Community Support

  • Demote Server and Remove AD DS Role fails with "the target principal name is incorrect"

    Hi all, 
    I am attempting to demote a domain controller so i can remove the AD DS role and have the server just its own workstation.
    This domain controller has never replicated the domain and DS services were/are not working.  We didnt discover this until the other domain controller died and has since been rebuilt with a brand new domain.  The old domain no longer exists whatsoever.
    So as said, I'm trying to demote this server, there is no domain to tidy up afterwards.  However even with force removal option I'm getting the DFS Replication error: "the target principal name is incorrect".  I do not exactly require
    it do this myself, there is nothing to replicate anymore, i just need the DC demoted or role completely removed.  There are no other DC's to transfer FSMO's or anything like that as its to be completely stand-alone.
    Does anyone have any ideas how this role can be forcibly removed other than using the " force removal option " in ADDS config wizard?  
    Any help will be gratefully appreciated.
    Thanks in advance
    Phill

    Hi Phill,
    You can try to use Ntdsutil.exe to perform metadata cleanup.
    If this doesn’t work, then I agree with Ed that you would need to reinstall the machine.
    More information for you:
    Clean Up Server Metadata
    http://technet.microsoft.com/en-us/library/cc816907(v=WS.10).aspx#bkmk_commandline
    Best Regards,
    Amy

  • Target principal name is incorrect - cannot generate SSPI context

    First off, yes, I've looked at numerous articles on this subject and haven't yet found someone with a similar situation and none of the resolutions I've found seem applicable.
    My situation:  Server 2008R2 Enterprise with SQL 2012 Standard.  I have two instances running on this server, DEV and TEST.  I do not have a default (unnamed) instance.  This is one of the differences between my situation and every other
    article I've looked at.  I AM able to connect remotely to the DEV instance, but the TEST instance give me the SSPI error.  To take it a step further, the SQL services aren't running under domain credentials; they're running under local credentials. 
    These two issues don't match anything I've found on the subject so far.
    I ran "setspn -L" against the server's machine account (since the SQL services are local, not domain) and here's what I got:
    MSSQLSvc/[server FQDN]:49592
    MSSQLSvc/[server FQDN]:TEST
    MSSQLSvc/[server FQDN]:49487
    MSSQLSvc/[server FQDN]:DEV
    WSMAN/[server]
    WSMAN/[server FQDN]
    TERMSERV/[server FQDN]
    TERMSERV/[server]
    RestrictedKrbHost/[server]
    HOST/[server]
    RestrictedKrbHost/[server FQDN]
    HOST/[server FQDN]
    The server is of course a domain member, and we only have a single domain, so there's no cross-domain/forest stuff going on.
    Remotely, SA authentication works against both instances.  Locally, both SA and Windows authentication work against both instances.  Remotely, Windows authentication works against the DEV instance, but not against the TEST instance, returning the
    error "The target principal name is incorrect.  Cannot generate SSPI context."
    Both database have identical settings in the SQL Config Mgr (Shared Memory and TCP/IP enabled).  Both instances are set to allow remote logon.
    The security for the various services:
    SQL Server (DEV) = NT Service\MSSQL$DEV
    SQL Server (TEST) = NT Service\MSSQL$TEST
    SQL Server Agent (DEV) = NT Service\SQLAgent$DEV
    SQL Server Agent (TEST) = NT Service\SQLAgent$TEST
    SQL Server Browser = Local Service
    On both instances, the query "exec xp_readerrorlog 0,1,'could not register the Service Principal Name',Null" comes back with two entries from when the system was installed, saying it was unable to register the SPN.  That makes sense, because
    SQL isn't running with domain credentials, although the SPNs ARE apparently in AD (see above).
    On both instances, the query "select net_transport, auth_scheme from sys.dm_exec_connections where session_id=@@spid" returns the same thing - "shared memory", "NTLM".  Basically, I can find no configuration difference
    between the two instances.
    Anyone got any ideas?

    Hi Todd,
    According to your description, we need to make sure the typed server name is right, and verify if your windows account is valid when you connect to the test instance remotely by using Windows authentication. You can refer to the following steps for checking
    the login name.
    1.Log in the test instance remotely by using sa authentication.
    2. Enter the security and check if the windows account is valid.
    In addition, there is more details about how to troubleshoot the "Cannot generate SSPI context" error message, you can review the article.
    http://support.microsoft.com/kb/811889
    Thanks,
    Sofiya Li
    If you have any feedback on our support, please click here.
    Sofiya Li
    TechNet Community Support

  • AD Replication error 5: Access is denied or 2146893022: target principal name is incorrect

    Hello,
    I have DC1(fsmo role holder) and DC2 which were replicating.  I ran windows update on DC1 and rebooted which it had not done in months.  When it came back up  I could run repadmin /showrepl successfully on DC1.  However when running on
    DC2 I get the "2146893022: target principal name is incorrect" message.
    I understand you can run the "netdom resetpwd /s:server /ud:<var style="box-sizing:border-box;margin:0px;padding:0px;color:#333333;font-family:'Segoe
    UI regular', 'Segoe UI', Arial, Tahoma, sans-serif;font-size:13px;font-weight:bold;line-height:16px;">mydomain</var>\administrator
    /pd:*"  command but I am unsure:
    1.  Where would I run this command
    2. Which server goes in th"/s:server"?  Would it be the DC1 or the DC2?

    How would this look with information below and what DC would I run it from?
    netdom resetpwd /s:<var style="color:#333333;font-family:'Segoe UI', Arial, Verdana, Tahoma, sans-serif;font-size:13px;font-weight:bold;line-height:normal;">server</var> /ud:<var
    style="color:#333333;font-family:'Segoe UI', Arial, Verdana, Tahoma, sans-serif;font-size:13px;font-weight:bold;line-height:normal;">domain</var>\<var
    style="color:#333333;font-family:'Segoe UI', Arial, Verdana, Tahoma, sans-serif;font-size:13px;font-weight:bold;line-height:normal;">User </var>/pd:*
     Source DC FF-INFRA1 was requested for a manual security error check.
     Diagnosing...
              Authoritative attribute pwdLastSet on FF-INFRA1 (writeable)
                 usnLocalChange = 5860902
                 LastOriginatingDsa = FF-INFRA1
                 usnOriginatingChange = 5860902
                 timeLastOriginatingChange = 2014-12-08 20:44:05
                 VersionLastOriginatingChange = 12
              Out-of-date attribute pwdLastSet on SERVER2 (writeable)
                 usnLocalChange = 8992092
                 LastOriginatingDsa = FF-INFRA1
                 usnOriginatingChange = 5163496
                 timeLastOriginatingChange = 2014-11-08 15:43:39
                 VersionLastOriginatingChange = 11
           Unable to verify the convergence of this machine account
           (CN=FF-INFRA1,OU=Domain Controllers,DC=COPHT,DC=local) on these
           DC's (DC=COPHT,DC=local,☺).  Does the machine account password
           need resetting? Are the SPN's in sync?
           [FF-INFRA1] Unable to diagnose problem for this source.  See any
           errors reported in attempting tests.
        Authoritative attribute pwdLastSet on FF-INFRA1 (writeable)
           usnLocalChange = 5860902
           LastOriginatingDsa = FF-INFRA1
           usnOriginatingChange = 5860902
           timeLastOriginatingChange = 2014-12-08 20:44:05
           VersionLastOriginatingChange = 12
        Out-of-date attribute pwdLastSet on SERVER2 (writeable)
           usnLocalChange = 8992092
           LastOriginatingDsa = FF-INFRA1
           usnOriginatingChange = 5163496
           timeLastOriginatingChange = 2014-11-08 15:43:39
           VersionLastOriginatingChange = 11
     Unable to verify the convergence of this machine account
     (CN=FF-INFRA1,OU=Domain Controllers,DC=COPHT,DC=local) on these DC's
     (DC=COPHT,DC=local,☺).  Does the machine account password need
     resetting?
     ......................... FF-INFRA1 failed test CheckSecurityError

  • TNS-01150: The address of the specified listener name is incorrect  TNS-011

    Hi Gurus,
    Good day!
    I would like to seek your expertise on how to resolve the errors below:
    TNS-01150: The address of the specified listener name is incorrect
    TNS-01153: Failed to process string: (ADDRESS=(COMMUNITY=sap.world)(PROTOCOL=TCP)(Host=155.125.167.74)(Port=1521))
    Here's my listener.ora configuration:
    LISTENER =
    (ADDRESS_LIST =
    (ADDRESS =
    (COMMUNITY = SAP.WORLD)
    (PROTOCOL = TCP)
    (HOST = 155.125.167.74)
    (PORT = 1521)
    STARTUP_WAIT_TIME_LISTENER = 0
    CONNECT_TIMEOUT_LISTENER = 0
    TRACE_LEVEL_LISTENER = OFF
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = L50)
    (ORACLE_HOME = /oracle/L50/102_64)
    Appreciate your help.
    Cheers,
    Virgilio

    SQL NET files has own stream format:
    bash-2.05$ cat listener.ora
    # listener.ora Network Configuration File: /u01/app/ora10g/product/10.2.0/Db_1/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    LISTENER10G =
      (DESCRIPTION_LIST =
            (DESCRIPTION =
            (ADDRESS_LIST =
            (ADDRESS = (PROTOCOL = TCP)(HOST = MYHOST)(PORT = 1523))
            (ADDRESS = (PROTOCOL = IPC)(KEY = extproc32))
      )But if I change format as below:
    LISTENER10G =
      (DESCRIPTION_LIST =
            (DESCRIPTION =
    (ADDRESS_LIST =
            (ADDRESS = (PROTOCOL = TCP)(HOST = MYHOST)(PORT = 1523))
            (ADDRESS = (PROTOCOL = IPC)(KEY = extproc32))
      )bash-2.05$ lsnrctl start LISTENER10g
    LSNRCTL for Solaris: Version 10.2.0.4.0 - Production on 02-APR-2010 14:46:28
    Copyright (c) 1991, 2007, Oracle. All rights reserved.
    Starting /u01/app/ora10g/product/10.2.0/Db_1/bin/tnslsnr: please wait...
    TNSLSNR for Solaris: Version 10.2.0.4.0 - Production
    System parameter file is /u01/app/ora10g/product/10.2.0/Db_1/network/admin/listener.ora
    Log messages written to /u01/app/ora10g/product/10.2.0/Db_1/network/log/listener10g.log
    TNS-01150: The address of the specified listener name is incorrect
    Listener failed to start. See the error message(s) above...
    Back to orijinal format again everyhing is OK.

  • How to find out the Target Component name and Target view name

    Hi All Expert,
                      I want to know ,how to find out the target component and target view in WEB UI,when i click on a field which shows as a hyper link in WEB UI .At GUI level ,i know the how it will work.Any way to find out the component name and view name which is show the details of that field at GUI level .IF you go to transaction CRMD_ORDER then open the service contract id .then goto the item level value .there is 1 service data tab is available at item level.there is two button is available.first one is available time and second one is response time .if i click on any button then one popup is open which is shows the details of that button.I dont know how to find out the component name and view name from GUI level.
    Thanks in Advance....
    Vishwas Sahu

    Hi Vishwa,
                 The control would be something like this for navigation in Get_p_xxx method u mention as link and u mention a event name which gets triggered on the click of this hyperlink. So your GET_P_XXX method would have the following code:
    CASE iv_property.
        WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
          rv_value = cl_bsp_dlc_view_descriptor=>field_type_event_link.
        WHEN if_bsp_wd_model_setter_getter=>fp_onclick.
          rv_value = 'EXAMPLE'.
    Now you have to create a method as EH_ONEXAMPLE at your IMPL class and within which you would give an outbound plug method. Within the outbound plug the target data would be filled in the collection and window outbound plug would be triggered.
    This is a huge topic and  i have just mentioned you basic things.
    Regards,
    Bharathy.

  • How to typecast an object, if the target class name is stored in a str var

    Hi,
    I have a method, in which i will receive an object as an attribute. I need to typecast it to another class, and that class name is stored in a string variable.
    public void printContent(Object obj)
    /* Here i have a variable strClassName - in which a class name is stored.
    I need to create a variable for that class and type cast the object obj into that class. */
    Please kindly help me to find out a way to do this.
    Thanks in advance

    Typecasting does one thing: it enables you to store an object in a reference variable of the target type (if it is of a type which is allowed to be in that variable). It doesn't alter the object in any way.
    Therefore it simply isn't meaningful to talk about typecasting to a type name known only at run time. The whole point of typecasting is to tell the compiler to treat a reference as being of a specified type.
    I don't know what you're trying to do but I think you should probably be looking at the reflection api, getting field an method information from the object's Class object.

  • Error SOURCE IS the same as the target Task name Clear Cube Data

    Hi,
    When I am trying to use the Clear Package I am getting an error -
    "Source is the same as the Target"
    Any help with how to resolve this ?
    thx

    Hi,
    Please check if the Clear DM package is linked with the Process chain for Clearing the Data.
    We usually get the error you are mentioning in Copy Function when we have same source and Destination members.
    Hope this helps,
    Regards,
    G.Vijaya Kumar

  • How to get the target file name from an URL?

    Hi there,
    I am trying to download data from an URL and save the content in a file that have the same name as the file on the server. In some way, what I want to do is pretty similar to what you can do when you do a right click on a link in Internet Explorer (or any other web browser) and choose "save target as".
    If the URL is a direct link to the file (for example: http://java.sun.com/images/e8_java_logo_red.jpg ), I do not have any problem:
    URL url = new URL("http://java.sun.com/images/e8_java_logo_red.jpg");
    System.out.println("Opening connection to " + url + "...");
    // Copy resource to local file                   
    InputStream is = url.openStream();
    FileOutputStream fos=null;
    String fileName = null;
    StringTokenizer st=new StringTokenizer(url.getFile(), "/");
    while (st.hasMoreTokens())
                    fileName=st.nextToken();
    System.out.println("The file name will be: " + fileName);
    File localFile= new File(System.getProperty("user.dir"), fileName);
    fos = new FileOutputStream(localFile);
    try {
        byte[] buf = new byte[1024];
        int i = 0;
        while ((i = is.read(buf)) != -1) {
            fos.write(buf, 0, i);
    } catch (Throwable e) {
        e.printStackTrace();
    } finally {
        if (is != null)
            is.close();
        if (fos != null)
            fos.close();
    }Everything is fine, the file name I get is "e8_java_logo_red.jpg", which is what I expect to get.
    However, if the URL is an indirect link to the file (for example: http://javadl.sun.com/webapps/download/AutoDL?BundleId=37719 , which link to a file named JavaSetup6u18-rv.exe ), the similar code return AutoDL?BundleId=37719 as file name, when I would like to have JavaSetup6u18-rv.exe .
    URL url = new URL("http://javadl.sun.com/webapps/download/AutoDL?BundleId=37719");
    System.out.println("Opening connection to " + url + "...");
    // Copy resource to local file                   
    InputStream is = url.openStream();
    FileOutputStream fos=null;
    String fileName = null;
    StringTokenizer st=new StringTokenizer(url.getFile(), "/");
    while (st.hasMoreTokens())
                    fileName=st.nextToken();
    System.out.println("The file name will be: " + fileName);
    File localFile= new File(System.getProperty("user.dir"), fileName);
    fos = new FileOutputStream(localFile);
    try {
        byte[] buf = new byte[1024];
        int i = 0;
        while ((i = is.read(buf)) != -1) {
            fos.write(buf, 0, i);
    } catch (Throwable e) {
        e.printStackTrace();
    } finally {
        if (is != null)
            is.close();
        if (fos != null)
            fos.close();
    }Do you know how I can do that.
    Thanks for your help
    // JB
    Edited by: jb-from-sydney on Feb 9, 2010 10:37 PM

    Thanks for your answer.
    By following your idea, I found out that one of the header ( content-disposition ) can contain the name to be used if the file is downloaded. Here is the full code that allow you to download locally a file on the Internet:
          * Download locally a file from a given URL.
          * @param url - the url.
          * @param destinationFolder - The destination folder.
          * @return the file
          * @throws IOException Signals that an I/O exception has occurred.
         public static final File downloadFile(URL url, File destinationFolder) throws IOException {
              URLConnection urlC = url.openConnection();
              InputStream is = urlC.getInputStream();
              FileOutputStream fos = null;
              String fileName = getFileName(urlC);
              destinationFolder.mkdirs();
              File localFile = new File(destinationFolder, fileName);
              fos = new FileOutputStream(localFile);
              try {
                   byte[] buf = new byte[1024];
                   int i = 0;
                   while ((i = is.read(buf)) != -1) {
                        fos.write(buf, 0, i);
              } finally {
                   if (is != null)
                        is.close();
                   if (fos != null)
                        fos.close();
              return localFile;
          * Returns the file name associated to an url connection.<br />
          * The result is not a path but just a file name.
          * @param urlC - the url connection
          * @return the file name
          * @throws IOException Signals that an I/O exception has occurred.
         private static final String getFileName(URLConnection urlC) throws IOException {
              String fileName = null;
              String contentDisposition = urlC.getHeaderField("content-disposition");
              if (contentDisposition != null) {
                   fileName = extractFileNameFromContentDisposition(contentDisposition);
              // if the file name cannot be extracted from the content-disposition
              // header, using the url.getFilename() method
              if (fileName == null) {
                   StringTokenizer st = new StringTokenizer(urlC.getURL().getFile(), "/");
                   while (st.hasMoreTokens())
                        fileName = st.nextToken();
              return fileName;
          * Extract the file name from the content disposition header.
          * <p>
          * See <a
          * href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html">http:
          * //www.w3.org/Protocols/rfc2616/rfc2616-sec19.html</a> for detailled
          * information regarding the headers in HTML.
          * @param contentDisposition - the content-disposition header. Cannot be
          *            <code>null>/code>.
          * @return the file name, or <code>null</code> if the content-disposition
          *         header does not contain the filename attribute.
         private static final String extractFileNameFromContentDisposition(
                   String contentDisposition) {
              String[] attributes = contentDisposition.split(";");
              for (String a : attributes) {
                   if (a.toLowerCase().contains("filename")) {
                        // The attribute is the file name. The filename is between
                        // quotes.
                        return a.substring(a.indexOf('\"') + 1, a.lastIndexOf('\"'));
              // not found
              return null;
         }

  • TNS-01150: The address of the specified listener name is incorrect

    hi
    I am trying to connect to sql server using oracle.
    using http://www.dbasupport.com/oracle/ora10g/connection02.shtml
    this link.
    but i am getting this error like
    C:\Documents and Settings\umesh>lsnrctl start listener1
    LSNRCTL for 32-bit Windows: Version 10.1.0.2.0 - Production on 20-MAR-2008 05:58:09
    Copyright (c) 1991, 2004, Oracle.  All rights reserved.
    Starting tnslsnr: please wait...
    TNSLSNR for 32-bit Windows: Version 10.1.0.2.0 - Production
    System parameter file is E:\oracle\product\10.1.0\Db_1\network\admin\listener.ora
    Log messages written to E:\oracle\product\10.1.0\Db_1\network\log\listener1.log
    Error listening on: (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.103)(PORT=1522))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
      TNS-00515: Connect failed because target host or object does not exist
       32-bit Windows Error: 49: Unknown error
    Listener failed to start. See the error message(s) above...
    my entries in initdata.ora
    are like
    # This is a sample agent init file that contains the HS parameters that are
    # needed for an OLEDB Agent.
    # HS init parameters
    HS_FDS_CONNECT_INFO =data
    HS_FDS_TRACE_LEVEL =off
    # Environment variables required for the non-Oracle system
    #set <envvar>=<value>
    my entries in listener.ora file is
    LISTENER1 =
    (ADDRESS_LIST=
          (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.103)(PORT=1522))
         (ADDRESS=(PROTOCOL=ipc)(KEY=PNPKEY))
    SID_LIST_LISTENER1=
      (SID_LIST=
          (SID_DESC=
             (SID_NAME=data)
             (ORACLE_HOME = E:\oracle\product\10.1.0\Db_1)
             (PROGRAM=hsodbc)
    my entries in tnsname.ora.ora file is
    data =
      (DESCRIPTION=
        (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.103)(PORT=1522))
        (CONNECT_DATA=(SID = data))
        (HS=OK)
    )as give in the documentation in the link every thing work fine.
    except when i start the listener.
    thanks.

    As usual, you probably followed this algorithm
    1) gets an error
    2) doesn't read error
    3) copy of error screen
    4) visit this forum
    5) paste of error screen
    Where the first two errror messages should be descriptive.
    They are so descriptive, this is conclusive proof you didn't read them.
    I'll repeat them here
    Error listening on: (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.103)(PORT=1522))
    TNS-12545: Connect failed because target host or object does not exist
    Questions:
    Did you try to ping 192.168.1.103?
    If so, what was the result?
    Did you try to telnet into port 1522?
    If not so: why did you post this without makint any effort yourself?
    Sybrand Bakker
    Senior Oracle DBA

  • Group Policy Infrastructure Failed : The target name is incorrect

    Hi,
    I am currently facing issues regarding Group Policy, users are unable to change the password.
    When i run gpupdate /force on servers, the user policy and computer policy are successful but when i run the same on any client i receive error as per below,
    " C:\Windows\system32>gpupdate /force
    Updating Policy...
    User policy could not be updated successfully. The following errors were encountered:
    The processing of Group Policy failed. Windows attempted to read the file \\mydomain.com\SysVol\mydomain.com\Poli
    cies\{5C07D38D-C488-4E32-9871-AA99DAB86898}\gpt.ini from a domain controller and was not successful. Grou
    p Policy settings may not be applied until this event is resolved. This issue may be transient and could
    be caused by one or more of the following:
    a) Name Resolution/Network Connectivity to the current domain controller.
    b) File Replication Service Latency (a file created on another domain controller has not replicated to th
    e current domain controller).
    c) The Distributed File System (DFS) client has been disabled.
    Computer Policy update has completed successfully.
    To diagnose the failure, review the event log or run GPRESULT /H GPReport.html from the command line to a
    ccess information about Group Policy results."
    Below is the result of GPRESULT /H GPReport.html.
    Component Status
    Component Name Status
    Last Process Time
    Group Policy Infrastructure Failed
    9/8/2014 1:56:58 PM
    Group Policy Infrastructure failed due to the error listed below.
    Logon Failure: The target account name is incorrect. 
    Note: Due to the GP Core failure, none of the other Group Policy components processed their policy. Consequently, status information for the other components is not available.
    Additional information may have been logged. Review the Policy Events tab in the console or the application event log for events between 9/8/2014 1:56:48 PM and 9/8/2014 1:56:58 PM.
    Any idea on how to solve this problem ? thanks.

    Hi Calin,
    1). yes the dns resolution is working fine in our environment
    2). the GPO object and its folder was deleted and doesnt exist anymore.
    3). IPconfig/all result as per below from client
    C:\Users\arslan>ipconfig /all
    Windows IP Configuration
       Host Name . . . . . . . . . . . . : ITMGMTPC
       Primary Dns Suffix  . . . . . . . : mydomain.com
       Node Type . . . . . . . . . . . . : Hybrid
       IP Routing Enabled. . . . . . . . : No
       WINS Proxy Enabled. . . . . . . . : No
       DNS Suffix Search List. . . . . . : mydomain.com
    Ethernet adapter Local Area Connection:
       Connection-specific DNS Suffix  . : mydomain.com
       Description . . . . . . . . . . . : Intel(R) 82579LM Gigabit Network Connection
       Physical Address. . . . . . . . . : XXXXXX
       DHCP Enabled. . . . . . . . . . . : Yes
       Autoconfiguration Enabled . . . . : Yes
       IPv4 Address. . . . . . . . . . . : 192.168.200.49(Preferred)
       Subnet Mask . . . . . . . . . . . : 255.255.255.0
       Lease Obtained. . . . . . . . . . : Wednesday, September 10, 2014 8:50:36 AM
       Lease Expires . . . . . . . . . . : Thursday, September 18, 2014 8:50:36 AM
       Default Gateway . . . . . . . . . : XXXXXX
       DHCP Server . . . . . . . . . . . : XXXXXX
       DNS Servers . . . . . . . . . . . : 192.168.200.1
                                           192.168.240.2
       Primary WINS Server . . . . . . . : 192.168.200.1
       NetBIOS over Tcpip. . . . . . . . : Enabled
    3). IPconfig/all result as per below from server
    C:\Users\Administrator>ipconfig /all
    Windows IP Configuration
       Host Name . . . . . . . . . . . . : hopdc
       Primary Dns Suffix  . . . . . . . : mydomain.com
       Node Type . . . . . . . . . . . . : Hybrid
       IP Routing Enabled. . . . . . . . : No
       WINS Proxy Enabled. . . . . . . . : No
       DNS Suffix Search List. . . . . . : mydomain.com
    Ethernet adapter Local Area Connection 2:
       Connection-specific DNS Suffix  . :
       Description . . . . . . . . . . . : Broadcom BCM5708C NetXtreme II GigE (NDIS
     VBD Client)
       Physical Address. . . . . . . . . : XXXXXX
       DHCP Enabled. . . . . . . . . . . : No
       Autoconfiguration Enabled . . . . : Yes
       IPv4 Address. . . . . . . . . . . : 192.168.200.1(Preferred)
       Subnet Mask . . . . . . . . . . . : 255.255.255.0
       Default Gateway . . . . . . . . . : XXXXXX
       DNS Servers . . . . . . . . . . . : 192.168.200.1
                                           192.168.240.2
       NetBIOS over Tcpip. . . . . . . . : Enabled
    4. please find below findings,
    C:\Users\arslan>nltest /dsgetsite
    HO1
    The command completed successfully
    C:\Users\arslan>nltest /dsgetdc:domain
    Getting DC name failed: Status = 1355 0x54b ERROR_NO_SUCH_DOMAIN

  • Getting the Source File name Info into Target Message

    Hi all,
    I want to get the Source file name Info into Target message of one of the fields.
    i followed Michal BLOG /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    Requirement :
    1) I am able to get the Target file name as same as the source file name when i check the ASMA in Sender & Receiver Adapter , with out any UDF...............this thing is OK
    2) I took One field extra in the target structure Like "FileName" & I mapped it Like
                              Constant(" " )--UDF-----FileName
    I Checked the Option ASMA in Both Sender & Receiver Adapters
    Here iam getting the Target File name as same as Source file name + Source File name Info in the Target Field " FileName".
    I Dont want to get the Target File name as same as Source file name. I want like Out.xml as Target file name.
    If i de-select the Option ASMA in Adapters means it is showing " null" value in the target field "FileName".
    Please Provide the Solution for this
    Regards
    Bopanna

    Hi All,
    Iam able to do this by checking the Option ASMA in only sender adapter itself
    Regards
    Bopanna

  • File name in the target file field

    Hi,
    In this below particular blog we are creating the UDF and assigning the output of UDF to a filed in the target file structure.
    /people/sravya.talanki2/blog/2006/12/20/accessing-system-parameters-in-mapping-runtime
    And even we are entering the target file name manually in the UDF. Whatever the filename that we enter in the UDF that will also be displayed as the target file name. To do this even we are selecting the adapter specific attributes.
    Please correct if my understanding is wrong.
    thanks
    kumar

    Hi Kumar,
    <i>Whatever the filename that we enter in the UDF that will also be displayed as the target file name</i>
    Yes
    <i>To do this even we are selecting the adapter specific attributes.</i>
    "We could be" instead of "we are". If u want to access sender metadata, u should use ASMA.
    Check this out
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70c89607-e4d9-2910-7280-f6746e964516
    <i>[Reward if useful :)]</i>
    Regards,
    Prateek

Maybe you are looking for

  • Replacement case for my early 2011 17" macbook Pro

    Where is the best place to buy just the case for my laptop?? I checked out all of the websites I could but only found expensive full replacements.  I need just the skeleton because it is just cosmetic issues. 

  • User exit/BADI for Deleting the Empty Handling unit

    Hi All, Can anyone give me the suitable User exit/BADI for the below scenario. While creating the TO (Transfer order) for a delivery using the transaction code LT12, the system will automatically generate HU (Handling unit) number. If the materials a

  • Data Transfer Process filter: how to view the filter values?

    Hi, does anyone know how to view (and download) the values of a filter of data transfer processes? I want to compare the filtervalues of data transfer processes from productive system with development system. Normally the DTP's are created in a devel

  • Free 1-year warranty, when purchased from reseller?

    Sorry that I wasn't sure of a better place to put this question: Does my new MacBook Pro include a free 1-year warranty, even if I bought it from a reseller (Best Buy)?

  • ALE STATUS

    Hi Expert,                 I'm getting status code 51 (application document not posted).what could be the posible error.                sending material master using message type MATMAS  and transaction bd10. please help me out.