Query server name where a BLS tran is executed ?

Hi all,
is there a possibility to query the server name where a BLS transaction is executed from within the transaction?
Use: The transaction should be able to decide if called on a test server or in production. I am looking for a logic that lets the tran know without someone having to change transaction or local properties when deploying the tran to production.
Regards
Michael

Udayan,
imagine the following situation: a BLS collects data, creates a file and FTPs the file to a server. The test on the test xMII system was ok. Now you want to deploy the BLS to the xMII production server. However, the FTP target is different in Test and Production. How would you manage it?
I am looking for a solution where I do not have to change BLS properties before deploying. The tran should know if it runs in test or production environment. So my first idea was: check the server then you can decide if Test or Production.
Are there other ideas? My main goal is that I want a transaction which can run in both test and production environment without source change, and run differently depending on the environment.
Regards
Michael

Similar Messages

  • SQLAlwaysOn 2012-Query server name shows NODE name not Cluster name

    Hi guys,
    I just finished setting up my SQLAlwaysOnLab for our Development team. I'm having an issue understanding the AlwaysOn HA feature.... When I run  the "SELECT @@SERVERNAME AS 'Server
    Name'" The result show the local server name and not the ClusterName or the  Availabilty Group Listener name. We need it to show the actual Cluster name or AG Listner game. Our 2008 r2 2005 clustering we have a shared storage cluster
    and we setup the config services and application, so when i run a query in that environment it shows "NTS-PROD"(not the clustername). Which is what we want.. Thanks for any input at all! My dev config below:
    CLustername=ADM034SQLC050
    3 nodes in the cluster bellow: ADM034SQL051, ADM034SQL052, ADM034SQL053

    Hello,
    Edwin is correct, this is the expected and correct behavior as it's returning the current server that it is executing on.
    What you could do is create a function that could be executed to return the value you want inside of the databases involved in the AGs. That would give you what you want, but the built in functions are working correctly.
    Edit:
    I wanted to expand on what I wrote and qualify it a little more so that it adds some extra information and understanding.
    With a clustered instance, the servername will come back with the clustered instance name. This is because when using clustering, the resource for this is setup both at the SQL Server level (by choosing setup as a clustered instance) and at a windows level
    (resources in the cluster). In a cluster, each instance has a VCO (virtual computer object) created for it in AD and that is actually what is used, so servername comes back with the VCO as we would expect.
    This differs with AGs. AG instances are locally installed instances and they can be connected to without using a listener (in fact a listener isn't even needed for AGs). Listeners exist ONLY at the windows level as a resource, there is no VCO associated
    with a listener or any other AG resource. Each instance can be connected to just like you would any other stand alone instance. In this situation SERVERNAME returns the name of the server that it is currently on as there is nothing special about these servers.
    The clustering is only done at the windows layer and SQL Server installation are simply stand alone.
    Sean Gallardy | Blog |
    Twitter

  • Exchange 2013 - Outlook 2007 - Server name GUID

    Hi Guys.
    I am hoping someone can shine some light on something for me.
    Right now I have the following with roles.
    1 x Exchange 2010 - MBX & CAS
    1x Exchange 2013 - MBX
    1 x Exchange 2013 - CAS
    Mix of Outlook 2007 & 2010
    I migrated a user from Exchange 2010 over to Exchange 2013 and the process went fine. Email flow is working, OWA and Active Sync again working ok.
    However when we opened Outlook 2007 it displayed a message to say an Administrator had made changes and we needed to restart Outlook. No issues there.
    Outlook connected up fine and everything works. However when you look in the mail profile for the Exchange server name i see something like
    [email protected]
    Also Outlook Anywhere is ticked and when you untick it from the client and then open it again it comes back.
    Are the above items of migration?

    Hi,
    RPC is no longer a supported direct access protocol. This means that all Outlook connectivity must take place using RPC over HTTP (also known as Outlook Anywhere).
    Outlook clients no longer connect to a server FQDN as they have done in all previous versions of Exchange. Outlook uses Autodiscover to create a new connection point comprised of mailbox GUID, @ symbol, and the domain portion of the user’s primary SMTP
    address.
    To expand on this a little bit, I worked an issue with a new Exchange 2013 environment for 3 days before figuring out that you do NOT specify a server name where it asks for it in Outlook, you use the format mentioned above.  
    For reference, I received a very particular error from testconnectivity.microsoft.com that made no sense until I discovered the server name format.  If a test fails with a 404 HTTP Not Found error and an X-CasErrorCode of MailboxGuidWithDomainNotFound,
    this is most likely your problem.  Its very frustrating that Microsoft does not have it documented anywhere exactly what this error means, would have saved me a lot of time and energy.

  • How to get a server name through the load balancer

    Hi.
    I'd like to get the server name where is my application installed. There are some servers and clients access there throuth the load balancer. When I try to get it with request.getServerName(), I get the virtual address of the load balancer.
    Any suggestions?
    Thanks.

    Dear Sikindar;
    THanks for your cooperation, but I believe that these Tcodes will eb helpful if I know the table name, actually we don't know its name and that's what I'm asking about, how can I get the table name for the ABAPer?
    Appreciating your cooperation.
    Best Regards;
    Lobna

  • How to get orchestration instance server name

    I have two server where orchestration can run...I need to know the server name where my orchestration instance has run.
    How to get this information...

    When you have more than one BizTalk-processing server and if your orchestration is bound to host instance which exist in more than one server (generally for better resilience, the best practice
    is to have multiple instances of host in different servers), the idea of get the server name where Orchestration instance has run is INVALID.
    With the BizTalk features like scalability, resilience and persistence points an Orchestration instance could run in more than one server.
    For example due to persistence points, if that BizTalk server were to suffer a power outage, another BizTalk server could continue the orchestration from the checkpoint rather than having
    to start the orchestration from the beginning. Or during or during long-running process while waiting for a response, then message being consumed by an orchestration instance would be persisting the in-memory representation of an orchestration (to its last
    good state) and any associated messages in BizTalk MessageBox. So when the response comes back the rest of the part of orchestration could execute from other server instance. So an orchestration would not always run from one server.
    But if you have specific “Expression shape” which you may have been using for logging/tracing then you can get the server name which executed that particular “Expression shape” from an Orchestration
    instance (not the whole Orchestration instance). This is done using the standard .NET code to get the server name -
    System.Environment.MachineName
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • How to display report server name in oracle reports 9i.

    I need to do some validation based on report server name.Pl. suggest.

    How do you execute the call for a Report?
    URL?

  • Where do you put the  SMTP Server Name  ?

    I am trying to set up the email address of the SNMP.
    i can set up the Server SNMP Agents and the trap destinations, but can't find where to specifiy the SMTP Server Name i.e our company email address name [email protected]
    I looked in security realms can't find it.
    Any ideas

    Hi,
    Here is sample setup for AIX machine.
    SETUP:
    GC agent installed in AGENT_ORACLE_HOME
    RDBMS installed in RDBMS_ORACLE_HOME
    Database and listener up and running, monitored by Grid Control,
    this implies that the AGENT_ORACLE_HOME/sysman/emd/targets.xml contains the correct credentials for the database.
    The listener name given ion RDBMS_ORACLE_HOME/network/admin/listener.ora is identical to the name of that listener target in Grid Control.
    AGENT_ORACLE_HOME/network/admin/sqlnet.ora must exist.
    SETUP steps needed for operating system AIX:
    A. AIX is using its native snmp deamon pointing to the snmpdv3 deamon (this is the default on AIX5L):
    [hostname]/root> ls -l /usr/sbin/snmpd
    lrwxrwxrwx 1 root system 9 Jul 24 2009 /usr/sbin/snmpd@ -> snmpdv3ne*
    B. The script AGENT_ORACLE_HOME/network/snmp/peer/start_peer has needs to be corrected on AIX :
    1. the locations of "whoami" needs to be corrected from "/usr/ucb/whoami" to "/bin/whoami"
    2. the command starting the os snmp deamon must be changed to
    $SNMPD $SNMPD_OPTIONS -p $NEW_SNMPD_PORT >snmpd.out 2>&1 &
    Alternatively add two blocks for operating system AIX:
    elif [ "$uname" = "AIX" ] ; then
    USERID=`/bin/whoami`
    SNMPD=/usr/sbin/snmpd
    SNMPD_CONFIG=/etc/snmpdv3.conf
    SNMPD_OPTIONS=""
    BP="AIX"
    TRPCMD="exit 1"
    ENCAP_OPT="-s 1160"
    elif [ "$uname" = "AIX" ]
    then
    echo "Starting $SNMPD ..."
    echo "$SNMPD $SNMPD_OPTIONS -p $NEW_SNMPD_PORT >snmpd.out 2>&1 &"
    $SNMPD $SNMPD_OPTIONS -p $NEW_SNMPD_PORT >snmpd.out 2>&1 &
    Starting up emsubagent
    None of the following processes must be upp and running: snmpd, emsubagent, master_peer, encaps_peer
    The following ports must not be allocated: snmp, smux, 161, 1161, 199
    run as root:
    ORACLE_HOME= <full path to the AGENT_ORACLE_HOME>
    export ORACLE_HOME
    $ORACLE_HOME/network/snmp/peer/start_peer -a
    This must start the following processes as root: master_peer, encaps_peer, snmpd
    As agent ORACLE_HOME owner run
    AGENT_ORACLE_HOME/bin/emctl start subagent
    The snmp_*.ora files needs to be copied from AGENT_ORACLE_HOME/network/admin to RDBMS_ORACLE_HOME/network/admin
    Restart the listener, query the listener status
    "RDBMS_ORACLE_HOME/bin/lsnrctl status <listener_name>" must show: SNMP ON
    Regards,
    Kal

  • Is there a way to have your PS script Query the name of your local Mail Server?

    Hey Guys, 
      Really hoping someone can help me out here. I am currently working on a script that Automates the entire user creation process (AD account, Exchange Mailbox, UCM Soft phone). I want this script to be universal for all systems I have to work with.
    By this I mean that I can run the script on various systems (Different Domains) without ever having to modify the code. 
      I have run into a bit of a problem while trying to automate the PSSession component of my script. I would like to be able to run he script and it inserts the relevant Mail server name based on some sort of Lookup or query. I am currently circumventing
    the issue by having a text box pop up asking for the mail server name. It works, but its not really what I want for the end product. Its frustrating seeing as I have overcome similar issues for things like UPNs, AD Server, etc....
       I have though about having it pull from the DNS MX records, but there are a number of different records for different Mail servers.
      Any help would be awesome!

    Notice that this has drifted a whole long way from the original question.  I pointed out that it is easy with Exchange but if the servers are in different companies or are not part of an enterprise deployment then you need to look at the local AD and
    seek to the top. Any one mailbox wwil get you an exchange server to remote into and use the exchange shell to discover the network.
    ¯\_(ツ)_/¯
    Looking back over the thread, that may be my fault.  I mistook the comment about checking MX to mean he's just looking for a mail relay. 
    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

  • Where can i get the report server name in Reports 10g

    Where can i get my report server name in 10G ?

    Thanks ..
    When i opened the bat file :
    i did not find any report server name ...
    This is my file :-
    @echo off
    REM $Header: rwdiag.bat 13-may-2005.03:21:21 sunaraya Exp $
    REM
    REM rwdiag.bat
    REM
    REM Copyright (c) 2005, Oracle. All rights reserved.
    REM
    REM NAME
    REM rwdiag.bat - rw diagnostic tool
    REM
    REM DESCRIPTION
    REM Script to run the diagnostic tool used to locate servers / monitor packets on the network
    REM
    REM NOTES
    REM Usage: rwdiag.bat -find <server name> | -findAll [-conf <config file>] [-timeout <timeout in sec>]
    REM
    REM Usage: rwdiag.bat -monitor [-log <logfile>] [-conf <config file>]
    REM
    REM MODIFIED (MM/DD/YY)
    REM sunaraya 05/13/05 - Added rwrun.jar to the classpath for bug 4361664
    REM sunaraya 04/22/05 - Provided execute permission to the script for bug 4323789
    REM sunaraya 04/14/05 - sunaraya_bug-4221172
    REM sunaraya 04/14/05 - Creation
    REM
    set ORA_HOME=C:\ORANT
    if "%ORA_HOME%"=="" goto ERROR
    set CLASSPATH=%ORAHOME%\jlib\zrclient.jar;%ORA_HOME%\reports\jlib\rwrun.jar
    %ORA_HOME%\jdk\bin\java -DORACLE_HOME=%ORA_HOME% -classpath %_CLASSPATH% oracle.reports.utility.DiagServerLocator %*
    goto END
    :ERROR
    echo "ORACLE_HOME is not set"
    echo.
    :END

  • SQL server query without indicating server name

    I am writing a query  in SSIS and  utilize servername everytime  but it drags every time
    I am authorized to  work in Development area and can indicate deve  server
    But   Senior  officer ask me  not to use Server name  and when  package goes to  production   query  can execute without  indicate  server name any idea 
    thank you very much.
    Vijay
    Vijay Patel

    I think you're using linked server in your queries based on your description.
    While working in SSIS you dont need linked server. You'll just add connection manager to connect to your dev server and database and then use it for your tasks. Inside your query you will just reference objects using schemaname.objectname convention.
    You will make servername and database name configurable by adding them as configurations (parameters in SSIS 2012 if you use project deployment). Then you will be able to pass values for configurations from outside based on variety of options like through
    XML file, from SQLServer table, Environment variables etc
    see
    http://www.mssqltips.com/sqlservertip/1405/sql-server-integration-services-ssis-package-configuration/
    http://nexxtjump.com/2013/01/14/ssis-2012-configuration-guide-part-1-introduction/
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Where do i find the server name or URL?

    where do i find the server name or URL for my icloud account

    Why do you need this?
    Are you trying to setup your iCloud email on a non Apple Email client?
    If so:
    iCloud: Mail server settings for email clients - Apple Support

  • Where do I find server name to set up exchange email

    where do I find server name to set up exchange email

    Alos, see this -> iOS: Setting up Exchange ActiveSync - Apple Support

  • What is server name and where do i find it?

    Having trouble findung server name

    A server name is a computer name you have somewhere in your house.  What exactly is the problem??
    Say thanks by clicking the Kudos Thumbs Up to the right in the post.
    If my post resolved your problem, please mark it as an Accepted Solution ...
    I worked for HP but now I'm retired!

  • Where do I find Server Name?

    I just installed SQL Server 2008 R2 Express.  I started it; it's asking me for the server name.  There is actually no server name for this.  I am just using this to manipulate a few files that I'll receive via FTP each day.  I'm not really
    logging into a server, and I can't find the name of this computer.  All I have is the IP address.  This is a Windows XP machine (not sure if that makes any difference).  I looked for the instance name in the Registry; there was nothing.
    How can I login, or somehow create a server name?
    Thanks all!!
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

    I just installed SQL Server 2008 R2 Express.  I started it; it's asking me for the server name.  There is actually no server name for this.  I am just using this to manipulate a few files that I'll receive via FTP each day.  I'm not really
    logging into a server, and I can't find the name of this computer.  All I have is the IP address.  This is a Windows XP machine (not sure if that makes any difference).  I looked for the instance name in the Registry; there was nothing.
    How can I login, or somehow create a server name?
    Thanks all!!
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.
    May be this would have helped.
    http://sqlserver-help.com/2011/06/19/help-whats-my-sql-server-name/
    Balmukund Lakhani | Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
    This posting is provided "AS IS" with no warranties, and confers no rights.
    My Blog |
    Team Blog | @Twitter
    Author: SQL Server 2012 AlwaysOn -
    Paperback, Kindle

  • Error in Parallel query server

    Please help!
    SELECT SUM(DECODE(r.sexe,�M�,1,0)) H, SUM(DECODE(r.sexe,�F�,1,0))F, FLOOR(MONTHS_BETWEEN(TO_DATE(:p_date),r.date_naissance)/12) age
    FROM resource r
    GROUP BY FLOOR(MONTHS_BETWEEN(TO_DATE(:p_date), r.date_naissance)/12)
    This �select� worked on Oracle 7 but gives the following error messages on Oracle 8i:
    ORA-1281: Error signaled in parallel query server P_004.
    ORA-00979: Not a group by expression.
    Thanks.

    user10699277 wrote:
    I got the following error while import data.You are doing import with datapump or imp ?
    If so, look at the import log where ORA-01452 is mentioned, you should find the name of the table there for which ORA-01452 is raised.
    Hi All,
    ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys foundYou are trying to create unique index on the column where duplicate values exists.
    By the definition of unique index, that would be impossibe.
    So, either remove 'unique' from the create index syntax , or make sure there are no duplicate values in the coulumn on which you are creating unique index.
    Could you resolve it?No, that should be your responsibility.

Maybe you are looking for

  • IPhone 4 won't turn on or charge?

    I plugged in the phone and the apple logo comes up but then it goes off. I plugged it in the computer and iTunes doesn't load it. I tried holding down the sleep/home button down and it won't work.

  • How to save search in af:query across a session ?

    I am using af:query in advance mode. If suppose, I do a search and save it and reload the page. The saved search is lost. Can someone suggest a way of implementing it in a session , so that if I come back to same page , I can retrieve saved search.

  • LOV at create form page only

    Hi all, APEX 4.0 I have data entry form page with fields DEPTNO and EMPNO. These fields have parent LOV and cascading LOV respectively. I want these LOV to fire at "create" mode time for new rows only, and not when editing an existing row. Because wh

  • JSP- HTML- Microsoft Word or PDF

    Hello I have an application thats generates a text that are shown for the user in the Webbbrowser. I wonder if there is a way to generate a Word document or PDF from this HTML output that the user could download by clicking a link? Thanks for helping

  • Database issue? Client issue?

    very similar sql statements. if it returns less than 100 rows, it takes 1 second, which is acceptable. But when it returns 1000+ rows, it takes 10+ seconds, which is not acceptable. My question is, is it the database issue? or because of the network/