Dynamic Server Name

How can i get the server name dynamically?
Currently we are using CL_WD_UTILITIES=>CONSTRUCT_WD_URL to get the URL but his method returns a URL different from our Portal URL.
Do we need to configure any settings?

We want to generate the foll url dynamically
http://usnappprtl70.ABC.one.net:50000/webdynpro/dispatcher/local/uploadandsearch/UploadApp?soNumber=345
I guess this url is not of any webDynpro Component. 'UploadApp'  refers to Upload Documents which is a page  visible in KM.
I hope i m clear with requirement.
Can anyone help ?

Similar Messages

  • Dynamic Host Name -- Roadrunner

    I have a linux box that I would like to install Oracle 8i on for development purposes. I use this PC from home connecting to the internet using Roadrunner.
    The problem comes in that Roadrunner assigns me a dynamic server name/address each time I log on. Will this be a problem with the Oracle install? Can I assign a server name like 'localhost' or something to get around this problem?
    Also, the install docs require two mount points. Forgive me, I'm fairly new to Linux and totally new to Oracle. Can I just create a couple of directories here for the Oracle apps and data. I just rebuilt my Linux box to give me an Oracle-sized swap and I'd prefer not reinstalling again to create my mount points.
    Thanks!
    Marcus
    null

    Well, to answer my own questions...and maybe yours.
    Apparently the Linux hostname doesn't matter to Oracle. I've logged in with two hostnames and Oracle is quite happy to run under any hostname. With Sybase I had to specify a hostname and 'localhost' was suggested to get around the dynamic naming with dhcp.
    And second, the mount points are not necessary to the installation. You just need to specify $ORACLE_HOME in accord with the instructions. Oracle apparently just needs a place to install the software and create the databases. This, I'm sure, is not optimal, but it does work.
    Frankly, I'm just happy to have it running after fiddling around for three days.
    BTW, I'm running Linux-Mandrake 7.0 (stock kernel) and created a swap partition of 3 times my physical memory (128MB).
    Marcus
    null

  • How to change recordset bahaviour to accept dynamic column names in the where clause

    Hi
    im using php-mysql and i make a recordset and i want to make the column names in the where clause to be dynamic like
    "select id,name from mytable where $tablename-$myvar";
    but when i do this my i break the recordset and it disappear
    and when i use variables from advanced recordset it only dynamic for the value of the column not for the column name
    and when i write the column name to dynamic as above by hand it truns a red exclamation mark on the server behaviour panel
    so i think the only way is to change the recordset behaviour is it? if so How to make it accept dynamic column names?
    thanks in advance.

    As bregent has already explained to you, customizing the recordset code will result in Dreamweaver no longer recognizing the server behavior. This isn't a problem, but it does mean that you need to lay out your dynamic text with the Bindings panel before making any changes. Once you have changed the recordset code, the Bindings panel will no longer recognize the recordset fields.
    Using a variable to choose a column name is quite simple, but you need to take some security measures to ensure that the value passed through the query string isn't attempting SQL injection. An effective way of doing this is to create an array of acceptable column names, and check that the value matches.
    // create array of acceptable values
    $valid = array('column_name1', 'column_name2', 'column_name3');
    // if the query string contains an acceptable column name, use it
    if (isset($_GET['colname']) && in_array($_GET['colname'], $valid)) {
      $col = $GET['colname'];
    } else {
      // set a default value if the submitted one was invalid
      $col = 'column_name1'
    You can then use $col directly in the SQL query.

  • SQL Server Express 2014 - Server Name

    Hi Guys,
    I just now installed the free edition of SQL Server 2014 (Management Studio only edition).
    During installation I was not allowed to provide an instance name. Post installation when I am trying to connect the server using the management  studio it fails consistently.
    I have tried using LocalDB, (local), SQLExpress and all other combinations (machine\LocalDB) etc.
    When I open the SQL Config Manager there "SQL Server Services" has no entries.
    Can someone help me in getting the server name to connect to?
    Regards,
    HTH, Krishnan

    Hey Dan,
    I am not facing a different kind of challenge. I am trying to connect to this instance using a different product. I tried the following:
    - Provided the same instance name as Mgmt Studio
    - Tried using both Windows / SQL Authentication
    When I did a netstat, it does not show that 1433 is listening. The SQL Configuration Manager has 2 sections:
    1. SQL Native Client 11.0 Config - Here the TCP/IP is listening to 1433
    2. SQL Server Network Configuration -> Protocols for SQL Express - TCP / IP -> Dynamic Ports -> 49819
    Netstat is showing some data for 49819. However my other product is still not able to pick up SQL Server :(
    HTH, Krishnan

  • Problem with Dynamic Table Name

    Hello all,
    I am having trouble using a dynamic table name. I have the following code.....
    declare l_cur sys_refcursor;
    l_ID int;
    l_tableName varchar(30);
    BEGIN
    open l_cur for
    select hkc.ColumnID, mapping from &HKAPPDB_Schema_Name..doctablemapping ddm
    inner join &HKDB_Schema_Name..HKColumns hkc on hkc.doctablemappingid = ddm.id
    where ddm.id > 0;
    LOOP
         FETCH l_cur into l_ID, l_tableName;
         EXIT WHEN l_cur%notfound;
         -- update missing VerbID in DocumentDocMapping table
         UPDATE &HKAPPDB_Schema_Name..IndexedDocument
         SET VerbID = (SELECT t.VerbID
                             FROM (SELECT DocRef, VerbID, DateUpdated
                                  FROM &HKAPPDB_Schema_Name..l_tableName dd        - this is where the dynamic table name is used
                                  WHERE dd.VerbID is not NULL))
         WHERE HKColumnID = l_ID AND VerbID is NULL;
    END loop;
    end;
    /When I try to execute this i get an error
    ORA-00942: table or view does not exist
    What am I doing wrong?
    Regards,
    Toby

    redeye wrote:
    I only started about 6 weeks ago, with no tutorials and learning it on the fly; Same here.. only my introduction was to a 12 node Oracle OPS cluster all those years ago.. and required a whole new mind set after using SQL-Server extensively. But it was fun. Still is. :-)
    but thats what you get when a company throws you in at the deep end with a ridiculous time constraint to migrate a whole MSSQL DB.Migrating SQL-Server to Oracle is not a simple thing. A lot of best practices in SQL-Server are absolutely worse practices in Oracle - they are that different. Simple example is lock escalation - an issue in SQL-Server. In Oracle, the concept of a lock being escalated into a page lock simply does not exist.
    In terms of getting the migration done as quickly and painlessly as possible I try to reuse all the logic as it appears in the MSSQL code - in this case it was using dynamic table names. I do not doubt that i am probably shooting myself in the foot in the long run.....As long as you do not splatter too much blood on us here.. not a problem :D
    Seriously though - just keep in mind that what works in SQL-Server may not work as well (or even at all) in Oracle. So do not hesitate to refactor (from design to code to SQL) mercilessly when you think it is warranted.

  • Passing Dynamic File Name to ODI nterface for processing to another system

    Hi,
    I need help regarding passing a Dynamically Name changing fixed length Flat File in ODI Interface. This interface is built for taking the Flat File as Input and process it to SQL Server by applying Data Mapping and transformations... The input Flat File Name is sequence generated for eg: OEORD1123.txt and next file will be OEORD1124.txt and it sits in Oracle Conc tier. How to pass the latest file name to ODI interface for processing
    Regards,
    Anil..

    Hi Guys...
    I would like to suggest a way.
    a) create a single interface with dynamic resouce name (a ODI variable) with a filter to the month column like:
    month_column = '#vCountMonth'
    b) in the refresh tab of a first variable (I named "vMonth"), use the following query: (varialbe should be alphanumeric, "not persistent")
    select to_char(to_date('#vCountMonth','MM'),'month') from dual
    c) create one more ODI variable (I named "vCountMonth"), alphanumeric, not persistent and at its refresh tab write:
    select lpad(to_char(#vCountMonth + 1), 2, '0') from dual
    d) now just create a package, drag and drop the objects in the following order:
    d.1) vCountMonth in set mode and set = 0 (zero)
    d.2) vCountMonth in refresh mode
    d.3) vMonth in refresh mode
    d.4) the interface
    d.5) vCountMonth in evaluate mode, evaluating "= 12"
    ==> if NO (KO, red line) link the KO line to d.2 step
    ==> a OK line is not necessary unless you have others steps after finish the evaluating
    Make any sense? That is a single loop to have the interface developed only one time.
    Please, remember to check each thread reply as Useful or Correct if they are useful to you...

  • Dynamic queue name with JMS Queue XML?

    Hi,
    Is it possible to use dynamic queue name with JMS Queue XML?
    I tried using a variable in the JNDI URL, and supply the value in a package. I specified the following in the JNDI URL in the Topology:
    e.g.
    <JMS_RESOURCE>?d=<DTD_FILE>&s=<SCHEMA>&JMS_DESTINATION=#PROJECT_NAME.dest_var
    I declared and set the variable in a package, then tried to load data from the above data server to database. But executing this package gave me the following error:
    7000 : null : java.sql.SQLException: javax.jms.JMSException: Cannot find the target in JNDI (#PROJECT_NAME.dest_var)
    java.sql.SQLException: javax.jms.JMSException: Cannot find the target in JNDI (#PROJECT_NAME.dest_var)
         at com.sunopsis.jdbc.driver.bg.executeQuery(bg.java)
         at com.sunopsis.jdbc.driver.bh.executeQuery(bh.java)
         at com.sunopsis.jdbc.driver.l.f(l.java)
         at com.sunopsis.jdbc.driver.l.executeUpdate(l.java)
         at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execSrcOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlC.treatTaskTrt(SnpSessTaskSqlC.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.g.y(g.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    Am I doing it wrongly?
    Thanks!

    hi,
    as it's not in Adapter-Specific Message Properties
    http://help.sap.com/saphelp_nw04/helpdata/en/10/b1b4c8575a6e47954ad63438d303e4/content.htm
    looks like you cannot do it with jms adapter in standard
    use proxy or your own adapter instead
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • How to handle Dynamic File Name

    Hello All,
    I have a  requirement, I have to download a file from application server to my ABAP program which will be executed in the background. The problem is the file name is a dynamic file name with timestamp on it. So how do I read the file from the application server. I know there are certain function modules but I don't think so that they can work in background.
    So If anyone has worked on it before your reply would be helpful.
    Thanks and Regards,
    Sushil

    Hi,
    Use this funcation module this will return you the list of files in a directory...
    It will work even in back group processing also..
    SUBST_GET_FILE_LIST
    or if it is unix environ ment.
    data: begin of t_tabl occurs 0,
    line(132),
    end of t_tabl,
    data: lc_command(100) type c.
    Get all the file name falling under specified directory...
    lc_command(3) = 'ls '.
    lc_command+3(45) = p_dir. " Directory of file path
    call 'SYSTEM' id 'COMMAND' field lc_command
    id 'TAB' field t_tabl-sys.
    Check any files exits in the directory.......................
    if t_tabl[] is initial.
    message e006 with 'No files exist in the specified directory ' p_dir.
    endif.
    here you will have all the file names in t_tab1 you can sort by name and will get the latest file in order..
    Thanks
    Mahesh
    Message was edited by:
            I Can Solve It

  • Dynamic host name in action link

    Hi All,
    Is there a way to create the dynamic host name in the url in the action link for dashboard? I have tried to use the repository variable to store the hostname from the server in the navigate to webpage. However, the action link is showing the error when I tried to place repository variable in the navigation to webpage in action link. We do not want to manually change the hostname for each migration .
    @{biServer.variables['hostname']}:7001\analytics
    Thanks,
    Sushil

    Thanks Srini,
    I was trying to use the variable value in url of the Action link ( Navigation to webpage). The variable value works inside the report or go url .
    Regards,
    Sushil

  • 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

  • Log4j - dynamic file name

    Hi
    I hava some servers that use log4j to log in shared folder.
    i want that every server will create his own log file with his host name.
    I'm using log4j.xml to configure the appender and I want to use variable to create dynamic file name.
    Could it passible?
    Here is my appender:
         <appender name="traceFile" class="org.apache.log4j.RollingFileAppender">
              <param name="file" value="C:/temp/traceLog.log" />
              <param name="MaxFileSize" value="1000KB" />
              <!-- Keep one backup file -->
              <param name="MaxBackupIndex" value="10" />
              <layout class="org.apache.log4j.PatternLayout">
                   <param name="ConversionPattern" value="%d %p %t %m%n" />
              </layout>
         </appender>
    tnx Yaniv

    yaniv1977 wrote:
    Hi
    I hava some servers that use log4j to log in shared folder.
    i want that every server will create his own log file with his host name.
    I'm using log4j.xml to configure the appender and I want to use variable to create dynamic file name.
    Could it passible?
    And what happens to your distributed enterprise system when that shared folder is not available?

  • Imbed Server Name within HTML href

    My application is generating an email as a alert to an administrator to take some action.  I do not want to hard code the server name into the HTML href statement as depicted below
       -- Include link to HIR Admin page
       l_body_html :=
             l_body_html
          || '<a href="http://edwprd.dhhs.state.nh.us:7777/pls/oitp/f?p=222:469">Admin Items</a>';
    I have been able to stuff the current url into a hidden item via an on load dynamic action using this javascript
    <script type="text/JavaScript">
    $s('P481_URL', window.location.href);
    </script>
    I then transform that hidden item in a pl/sql anonymous block process using this code and set local variable
    SELECT
    SUBSTR ( :p481_url,
    1,
    INSTR ( :p481_url,
    1,
    3))
    || '469'
      INTO v_sql
      FROM DUAL;
    Which yields this string into the variable v_url
    http://vmdhhsdworad:7777/pls/oitd/f?p=103:469
    Is it possible to include that local variable into the href attribute?
    Jeff

    APEX_UTIL.HOST_URL
    Example
    The following example demonstrates how to use the HOST_URL function to return the URL, including the script name, to the current Application Express instance.
    declare
        l_host_url      varchar2(4000);
        l_url           varchar2(4000);
        l_application   varchar2(30) := 'f?p=100:1';
        l_email_body    varchar2(32000);
    begin
        l_host_url := apex_util.host_url('SCRIPT');
        l_url := l_host_url||l_application;
        l_email_body := 'The URL to the application is: '||l_url;
    end;

  • How to Retrieve Server Name for creating connection pool during startup!

    Hi All,
    I am going thru the edocs documentation of weblogic for creating the connection pool and the datasource dynamically. The URL I referred to was as under
    http://edocs.bea.com/wls/docs81/jdbc/programming.html
    There is a sample given in the above-mentioned URL. The Server MBean is created by passing the server name.
    The code below mentioned was have placed in my dblib.java
    svrAdminMBean = (ServerMBean)adminMBeanHome.getAdminMBean("myserver", "Server");
    I am creating the connection pool from the servlet by invoking the dblib.java
    I cannot hard-code the server name in the dblib.java since the same code was shared across multiple servlets.
    Each Servlet will create its own connection pool during application server startup.
    Is there a way to retrieve the server name in which the dblib.java is invoked.
    Any pointers to info source will be REALLY appreciated.
    Many Thanks in Advance,
    C R Baradwaj

    You can get it from the Java system property weblogic.Name, i.e. System.getProperty("weblogic.Name");
    Cheers
    Feargal

  • Need to overcome unique server name restriction (6.1)

    Hello,
    We need to have managed servers with same name to run on a given machine.
    e.g. we have a server name - myserver.
    We would like to run servers all having name myserver on our test machine. But
    weblogic documentation tells taht all servers in a weblogic installation must
    have unique names even across domains.
    How can we overcome this restriction?
    Can having different weblogic_home solve this problem.
    Or any other way?
    Why this restriction?
    Regards
    Mohit

    Hi,
    As the article mentioned: When you choose the Switch Independent mode, you also can choose the:
    Address Hash and Hyper-V Port and Dynamic algorithm.
    When you choose the Hyper-V Port and Dynamic algorithm, you must use the Sum of Queues then you need set the non-overlapping processor set, you must to configure
    each NIC in your team to use the different processors. As an example, if you have 16 CPUs and 2 NICs in your team, one correct configuration would be to assign CPUs 2-7 to the first NIC and CPUs 8-15 to the second NIC.
    More information:
    Windows Server 2012 NIC Teaming (LBFO) Deployment and Management
    http://www.microsoft.com/en-us/download/confirmation.aspx?id=30160
    Hope this helps.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Dynamic file name from input payload (RFC 2 flat file)

    Hi,
    I have an RFC to flat file scenario. The output flat file has not an XML structure, it's just a plain text file generated with abap mapping.
    In my source interface (RFC), I have a field called <FILENAME>, I want to use the value of that field to create the target file using dynamic file name. But if  in variable substitution I use payload:ZRFC_NAME,1,FILENAME,1 It doesn't work because the dynamic variable substitution try to access to output payload, not the source one...
    What can I do?

    Hi Marshal,
           You can add a extra node to your target strucutre like
    FileName- Node
    --FileName - Element.
    do the mapping from the field filename of RFC to FileName field in u r target strucure. And use this  field path at Refrence in variable subtituion.
    In the Content converison add the Name & Values as below
    FileName.fileldNames -- FileName
    FileName.fieldFixedLengths -- 0
    FileName.fixedLengthTooShortHandling -- Cut
    So the extra field in u r target structure would not populate in u r target text file.
    Cheers
    Veera

Maybe you are looking for