Server name in Parameter

I am writing SSIS PACKAGE  and there is Development, Production and UA server
Since I am developing package  in Development(Dev) area  and everytime  I have to change  the  server name for example Select * from [Servername].[Database name]. [tablename]  everytime  performing this query  in different
environment I like to use  Variable or parameter any idea? or How can I write  stpre proc with this?
Vijay Patel

The stored procedure should become
Select * from <schema>.[tablename];
But where you use the server and database names is in the Source Connection Manager which happen to expose the connection string as one of its parameters.
See here next for more help: http://blogs.msdn.com/b/meer_alam/archive/2014/08/11/ssis-data-source-connection-information-parameterization-with-environment-variable.aspx or
http://blogs.msdn.com/b/mattm/archive/2011/07/22/parameterized-connection-managers.aspx
PS: he above assumes you are on SSIS 2012
Arthur
MyBlog
Twitter

Similar Messages

  • Get local server name at runtime

    Hi all,
    I am looking for a function module or a system parameter that can give me the current server name that my ABAP program runs on.
    I need to export the returned server name to parameter
    TARGETSERVER of function module 'JOB_CLOSE'.
    Thanks for your time,
    Eyal.
    Message was edited by: Eyal Alsheikh
    Message was edited by: Eyal Alsheikh

    Hi Eyal
    You can make use of following FMs
    1. <b>"FIND_DB_APPLICATION_SERVER"</b> gives the server name via the export parameter <b>"SERVERNAME"</b> .
    2. <b>"TH_GET_ACTIVE_SERVER"</b> gives the server name via the export parameter <b>"SERVER"</b> .
    3. <b>"RFC_GET_LOCAL_SERVERS"</b> will give a list containing some info about servers, then you can use the FM <b>"TH_USER_INFO"</b> to get user's host address from the exporting parameter <b>"HOSTADDR"</b>. Then you can look-up the list you retrieved by the first FM where the first four characters at the field <b>"HOSTADR"</b> is the same with the user's. The server name is contained at the field <b>"NAME"</b> of the same row.
    <i>As another thing, let me introduce you SDN forums pointing system: If you find a post helpful about solving your question, you can assign points to the post. You can do this by clicking the yellow star icon at the header of each post. You can assign;
    - one 10 points (solved)
    - two 6 points (very helpful answer)
    - many 2 points (helpful answer)</i>
    Kind regards...
    *--Serdar

  • Can a report parameter set the Database server name

    I know what my databases and tables are named, and that the connection will be an OLE DB connection to Microsoft SQL Server.  However, I don't know the names of the servers on which databases will be installed.  Would it be possbile to prompt for the server name and have Crystal create the connection based on that?
    This is for Crystal Reports Developer XI.

    Hi Levin,
    We can select database from database expert.
    While selecting database you have to find it out on which server your database exist.
    I donu2019t think there is any option to  prompt for the server name and have Crystal create the connection based on that.
    Regards,
    Shweta

  • Report server name issue

    Dear All,
    I am stucking with the following problem,
    I have deployed my ERP apllication (developed in oracle forms & reports 10g) on oracle apllication server 10g forms & report services. my apllication server has two LAN card. out of two one has been configured with statis IP for web access. but while running report from parameter form i am taking report url from table. table contain report server name as my local server name.
    My problem is,
    If i am accessing erp from web using static ip and running report then server name is not recognized
    because it is my local server name coming from table. so for that every time i need to change report url & replace server name with statis ip in browser addr for web users.
    Please guide me what should i do to resolve this issue.
    Your reply would be greatly apprecited.
    Thanks

    If "Credentials supplied by the user running the report" is selected, when the report is run, the user will be prompted to provide credentials.  They would need to provide credentials that have the appropriate permissions (e.g., read, execute) to the
    database.  This prevents the double hop.
    If "Credentials stored securely in the report server" is selected, you have to enter the username and password of a user (or service account) that has the appropriate permissions (e.g., read, execute) to the database. When the report is run, SSRS will use
    these stored credentials each time to authenticate to the database engine and query the data.  Users running the report are not prompted to provide credentials.  With this option you can use an Active Directory or SQL Server account.
    In order to access/run the report, a user will need to authenticate to SSRS.  There are options here as well. You can provide them the link to the report manager and they can authenticate, navigate to, and run the report.  You can also provide
    direct links to reports that users click in a document or application.  At this point the user is typically still prompted to authenticate to SSRS.  You can also programmatically call the report using API's and essentially build a proxy that authenticates
    to SSRS and open the report.
    Not sure if that answers your question.

  • How Can i specify multiple server names in rwservlet.properties  file?

    How Can i specify multiple server names in rwservlet.properties file without clustering?
    I am using oracle 10g Application server. we have 3 servers Repsvr1, RepSvr2 and RepSvr3. Now i need to configure rwservlet.properties file to point to these servers based on any running report. i got 3 keymap files with reports info.
    Sample entry in the key map file is:
    key1: server=Repsvr1 userid=xxx/yyy@dbname report=D:\Web\path1\path2\reports\Report1.rdf destype=cache desformat=PDF %*
    key2: server=Repsvr2 userid=xxx/yyy@dbname report=D:\Web\path1\path3\reports\Report2.rdf destype=cache desformat=PDF %*
    rwservlet.properties file letting me to enter only one servername. Even though i merged all 3 keymap files into 1, still i have the server name issue. If i leave the server to the default name still i am getting the below error.
    REP-51002: Bind to Reports Server Repsvr1 failed. However, i know the default rep_<servername> would be used incase we dont have SERVER=<value> parameter in the rwservlet.properties file.
    If i specify the servername in the rwservlet.properties file then only Repsvr1 reports are working fine and other 2 server reports are giving the same error like
    REP-51002: Bind to Reports Server <<Server Name>> failed.
    how can i configure the info which will work all 3 reports. 2 Port servers are invoking using oracle forms and report server is invoking using ASP pages.
    If i specify Server name & Key map file in rwservlet.properties one at a time, all the reports are working without any error, whenever i am trying to integrate all 3 to workable i am getting binding error. if i exclude the server from rwservlet.properties still i am getting the same error.

    My RELOAD_KEYMAP setting is YES only.As i said If i specify Server name & Key map file in rwservlet.properties one at a time, all the reports are working without any error.
    keymap file entries
    key1: server=Repsvr1 userid=xxx/yyy@dbname report=D:\Web\path1\path2\reports\Report1.rdf destype=cache desformat=PDF %*
    key2: server=Repsvr2 userid=xxx/yyy@dbname report=D:\Web\path1\path3\reports\Report2.rdf destype=cache desformat=PDF %*
    If i use http://server.domain:port/reports/rwservlet? cmdkey = key1 should bring the report from Repsvr1 and http://server.domain:port/reports/rwservlet? cmdkey = key2 should bring the report from Repsvr2, but i am getting an error from Repsvr2 saying that REP-51002: Bind to Reports Server repsvr2 failed.
    Only Servername Repsvr1 is in rwservlet.properties file. Now what is the best option to by pass the server from rwservlet.properties file and should be from keymap file. if i comment server name in rwservlet.properties file still i am getting REP-51002: Bind to Reports Server <<Server Name>> failed error for both keys.

  • Report server name in rwservlet.properties file

    Hi all,
    I dont want to hard code the report server name while calling report from the form...
    I have used....
         vrep := RUN_REPORT_OBJECT(myreport1);
    /* Checking for Report Server is started or not, if not throw an exception else proceed */
         if vrep = vrep||'_0'then
         raise form_trigger_failure;
    end if;
         vjob_id := substr(vrep,length(vc_reportserver)+2,length(vrep));
         vrep_status := REPORT_OBJECT_STATUS(vrep);
    where vc_reportserver is assigned a value of my report server name...
    If I edit rwservlet.properties file and give
    server=<my rep server name>,
    How can i read this value from the form ? Any help please?
    I know there is a way to do in formsweb and default.env. But I want to know the way how to used in rwservlet.properties file and use it in the form.
    Kindly help
    Priya

    Thanks Francois for your reply.
    You can pass this value in the formsweb.cfg file (otherparams=)So, in forms I have to create a parameter matching with the one what I have mentioned in otherparams. right?
    you can read it from a database parameter's table (solution I prefer).So, just storing the report server name in database and fetch like
    select --- from tablename! Is it so?
    And apart from this, may I know why you prefer this method?
    And why not rwservlet.properties??
    Regards
    Priya

  • Please help ! "Oracle Reports Server CGI - Reports Server name is not specified."

    Hello Gurus,
    I have an html form that allows putting in a parameter. Upon
    submit the form, it'll pass a string URL with the parameter to a
    new browser.
    My url: http://localhost/servlet/oracle.reports.rwcgi.RWServlet?
    diary&14252
    I also used keymap looks like this
    diary: report=Diary.rdf server=servername desformat=pdf
    destype=cache userid=id/psswd@db myoid=%1 %*
    But I get an Error: The requested URL was not found, or cannot
    be served at this time. Oracle Reports Server CGI - Reports
    Server name is not specified.
    However, if I move the cursor to the end of the same url (or put
    a space at the end) and hit Enter, then the report is
    displayed. I guess there must be something wrong with my
    configuration. Please help. I appreciated any inputs from you.
    Thanks in advance.
    Ashley

    I found the solution to my problem. It was nothing to do with
    the cgicmd.dat keymap file, but the html form itself. It's
    confused between the url arguments and form arguments from the
    submit button. So, what I did was open a new window with all
    arguments instead of using the submit function.
    Regards,
    Ashley

  • Error showing in listener while giving tnsping application server name

    iam trying to connect application server with database server.......while giving tnsping from database server as tnsping application_server_name
    its showing error as
    $ tnsping 10.92.5.8
    TNS Ping Utility for IBM/AIX RISC System/6000: Version 10.2.0.1.0 - Production on 09-FEB-2007 06:18:05
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    Used HOSTNAME adapter to resolve the alias
    Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=10.92.5.8))(ADDRESS=(PROTOCOL=TCP)(HOST=10.92.5.8)(PORT=1521)))
    TNS-12541: TNS:no listener
    but i have set the listener in databse server.
    thsi is my listener.ora
    LISTENER =
    (ADDRESS_LIST=
    (ADDRESS=(PROTOCOL=tcp)(HOST=application server name)(PORT=1521))
    (ADDRESS=(PROTOCOL=ipc)(KEY=PNPKEY)))
    SID_LIST_LISTENER=
    (SID_LIST=
    (SID_DESC=
    (GLOBAL_DBNAME=RBTT)
    (SID_NAME=RBTT)
    (ORACLE_HOME=home path of database server)
    if iam connecting sqlplus there in application server and giving username and password
    its showing error as .......
    Enter user-name: xmluser
    Enter password:
    ERROR:
    Enter user-name: xmluser
    Enter password:
    ERROR:
    ORA-12545: Connect failed because target host or object does not exist
    thanks in advance
    R.Ratheesh

    hi,
    I have changed the listener hostname....before changing the host name also tnsoping database server name works fine....
    i am posting the tnsnames.ora of databse server
    RBTT =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS=(PROTOCOL=TCP) (HOST=application server_name) (PORT = 1521))
    (CONNECT_DATA =
    (SERVER=DEDICATED)
    (SERVICE_NAME = RBTT)
    tnsnames.ora for application server
    RBTT =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS=(PROTOCOL=TCP) (HOST=database server name) (PORT = 1521))
    (CONNECT_DATA =
    (SERVER=DEDICATED)
    (SERVICE_NAME = RBTT)
    is this is the right one..
    and regarding this connectivity between two servers tnsnames.ora and listener.ora plays a vital role....should i have to make any changes in sqlnet.ora in both application server and database server...should i have to copy sqlnet.ora,listener.ora in application server...and what has to be set in both???
    I have changed sqlnet.ora in database server in names.directory_path=tnsnames.ora
    thanks in advance,
    R.Ratheesh

  • How to change report server name in 80 forms at once????????

    Hi All
    i am migrating my application 9i to 10g.
    i have 80+ report parameter forms in my application. now i need to change the report server name in following two locations.
    1. Report Server Property of Report Object
    2. RP2RROREPORTSERVER Parameter property under Parameters node in object navigator.
    HOW CAN I CHANGE IT AT ONCE?
    Regards,

    there is property search option, but it shows only file name only.
    i downloaded jform but its not working error is "Could not find the main class. Program will exit!!

  • Finding Report Server Name

    Hi All,
    I am calling reports from the forms for that I have hard code the report server name in my code.
    Is there is any alternative to set the report server name dynamically at run time, means how to find the report server name and pass that into as a parameter in my code.
    Regards,
    Ashutosh

    Thanks Andreas ......... report server name is getting now.
    I have one more problem ......... i m using webutil.pll in forms 10g
    in that i am using client_host function ........ to run the host command on local machine to delete or copy a file.
    On when-button-pressed trigger writing below code :
    CLIENT_HOST('CMD /C DEL C:\TEMP.TXT');
    Its giving an error message : ORA-06503 & PL/SQL function return without value.
    Could you please help me out ....... as i am new to forms 10g
    Thanks in advance for your assistance.
    Regards
    Ashutosh

  • How to get report Server Name and Environment ID in Report

    How to print report Server Name and Environment ID in Report 10G.(Through in package or others)
    I'm also using Oracle Application Server 10G.

    Hi,
    Server and envid are the parameters passed along with Reports URL call.
    These variables value can be traped in Report by defining SERVER , ENVID named user parameters.
    Once trapped, can be printed on Report.
    Just ensure that these users parameters are not exposed to Parameter page, otherwise user may end up changing it.
    Thanks

  • Server Name and Client Name

    Hi Experts,
    Need a Function Module which can give me the current Server Name and Client name .
    Please help me out.
    Thanks
    Chandan

    Hi,
    Check out :
    1. "FIND_DB_APPLICATION_SERVER" gives the server name via the export parameter "SERVERNAME" .
    2. "TH_GET_ACTIVE_SERVER" gives the server name via the export parameter "SERVER" .
    3. "RFC_GET_LOCAL_SERVERS" will give a list containing some info about servers, then you can use the FM "TH_USER_INFO" to get user's host address from the exporting parameter "HOSTADDR". Then you can look-up the list you retrieved by the first FM where the first four characters at the field "HOSTADR" is the same with the user's. The server name is contained at the field "NAME" of the same row.
    4. sy-sysid might also be usefull
    5. Try this too:
    CALL 'C_SAPGPARAM'
    ID 'NAME' FIELD 'rdisp/myname'
    ID 'VALUE' FIELD ev_server_name.
    where ev_server_name is function module export parameter of type BTCTGTSRVR-SRVNAME.
    Hope it helps
    Best Regards
    Sumana

  • Report server name (unix)

    i've forms and reports running on iAS under win2000.
    now i'd like to transfer them to tru64 unix.
    normal forms (without reports calls) work fine. but the reportsserver on unix has a different name than the one on windows.
    - can i change the reports server name on unix?
    - or what else do i have to do with the forms to find the reports server?

    Hi,
    If it is Reports Server 6i then you can define a tnsnames alias that is the same as the name used on Windows.
    Reports Server 9i and above need unique names in the whole network, which means that you can't have the same name twice.
    As a best practice I recommend passing teh Reports Server name as a Forms user parameter when starting the application instead of hard coding the name.
    parameter in Forms : reports_server
    entry in formsweb.cfg: otherparams=reports_server=repsrv
    usage in Forms: set_report_object_property(handle_id,REPORT_SERVER,:parameter.reports_server
    Frank

  • Documentation for changing Server name

    Hi,
    I'm looking for documentation for changing server name. Ex. from prod1.domainname.com to prod2.domainname.com. We only change the server name, not the server itself.
    Does someone know where I can find it?
    Thanks
    André

    On the server side you need to edit two files:
    1. ORACLE_HOME/network/admin/listener.ora
    depending on the protocols you are accepting connections on, you need to change the value for HOST = <new server name goes here>
    2. ORACLE_HOME/dbs/init<SID>.ora
    You probably haven't specified this parameter, but if you did specify a value for LOCAL_LISTENER, then change it accordingly.
    On the client and server side you need to edit one file
    1. ORACLE_HOME/network/admin/tnsnames.ora
    Find the service names that refer to the databases that live on the server whose name was changed. If TCP is the protocol being used to connect to these databases, then change the HOST = <new server name goes here> accordingly.

  • Aliasing Essbase Server Name using SmartViewProviders.xml

    So I have successfully configured an 11.1.2.3 environment using the new SmartViewProviders.xml functionality, with one minor issue.
    My hope was that I could use one .xml file to contain all connection info (dev,test,prod). I wanted to achieve this by editing the Server name parameter in the XML file.
    e.g.
    -<res_GetProvisionedDataSources> \
    -<Product displayVersion="11.1.2.3" name="APS-11.1.2" id="APS"> <Server name="Essbase - Test" context="http://servername:13080/aps/SmartView"/> </Product>
    -<Product displayVersion="11.1.2.3" name="HFM-11.1.2" id="HFM"> <Server name="HFM - Test" context="http://servername:19000/hfmadf/../hfmofficeprovider/HFMOfficeProvider.aspx"/> </Product> -<Product displayVersion="11.1.2.3" name="HP-11.1.2" id="HP"> <Server name="Planning - Test" context="http://servername:19000/HyperionPlanning/SmartView"/> </Product></res_GetProvisionedDataSources>
    When a user connects via SV, the servername property is returned in the drop down e.g. Planning-Test. This works for HFM and Planning, but NOT for Essbase. Essbase always returns Oracle® Essbase. Does anyone know how to change that? I assume it must be getting it from APS, but I do not see a clear place to change the reference.
    Any help appreciated,

    have a look at this blog post and also the comments and hope that should help
    http://www.orahyplabs.com/2013/11/smart-view-shared-connection-in-xml.html
    HTH
    Amarnath
    ORACLE | Essbase

Maybe you are looking for