"Server name " variable

Hi everyone..
Please help me to solve this issue.Sorry for asking this dumb question.
I was trying to find where the "CGI environment variables" are set in the middle tier.
select owa_util.get_cgi_env('SERVER_NAME') from dual --> apex1.company.com
From which configuration file in middle tier it is pulling this value "owa_util.get_cgi_env('SERVER_NAME')"?
How can i change it? we were using apache sever.
Thanks

Apache gets some info from the browser, and some from the Apache installation. Make a call to owa_util.print_cgi_env
to dump all the variables available in your environment.
See http://www.google.com/search?q=PlsqlCGIEnvironmentList for defining your own Apache modplsql variables.

Similar Messages

  • When Hard-coded server name and data base name are replaced with variables , execute process task does not produce the result

    Hi All,
    I am trying to load shape file into a sql spatial table. A execution process task is used to run the ogr2ogr.exe program.
    This is how the process tab looks like .
    Executable : C:\gdal_ogr2ogr\bin\gdal\apps\ogr2ogr.exe
    Argument :  -f MSSQLSpatial   MSSQL:server=SQL-ABC-DEV;database=MYSIMPLE_Dev;Trusted_Connection=True;\\mypath\files\shares\Data\www.mypage.htm\my_sample_file.shp
    Success value : 1
    For above settings, package runs fine. The spatial table is created in SQL server db. However when hard-coded SQL server name and database name are replaced with global variables , the spatial table is not created in the database. Yet the package runs fine.
    It does not throw any errors. (I am using another variable for full file path. It is not causing any errors though)
    " -f MSSQLSpatial   MSSQL:server="+@[$Project::SQLServerName]+";database="+ @[$Project::DatabaseName] +";Trusted_Connection=True;"+ @[User::Filepath] + "\\my_sample_file.shp"
    Both variables are string type. Can anyone tell me what I am doing wrong here please?
    I am running this in VS 2012.
    Thanks for your help in advance..
    shamen

    There should be a single space just after True:
    before
    " -f MSSQLSpatial   MSSQL:server="+@[$Project::SQLServerName]+";database="+ @[$Project::DatabaseName] +";Trusted_Connection=True;"+ @[User::Filepath] + "\\my_sample_file.shp"
    after keeping the space
    " -f MSSQLSpatial   MSSQL:server="+@[$Project::SQLServerName]+";database="+ @[$Project::DatabaseName] +";Trusted_Connection=True; "+ @[User::Filepath] + "\\my_sample_file.shp"
    Thanks
    shamen

  • How can I use Server level variables in a business model based report

    hi gems..
    I have declared one server level variable in the BI Analytics repository.
    Now I have made one business model based report.
    In one column I want to use that server level varible.
    I go to the formula tab of that column and then clicked on variable--> session --> put the name of the variable and click ok.
    But when i viewed the report, it is not showing the dates, rather it is showing the date format I chosed i.e DD-MMM-YYYY.
    please help..

    actually the previous problem got resolved...
    Now when I am trying to apply a filter on a particular column using that server variable, then it is showing that the varible has no value definition.
    I have clicked on the filter tab of that column-->add-->variables-->session variables-->then I put the name of the variable-->click OK.
    the following error is comming-
    Error Codes: YQCO4T56:OPR4ONWY:U9IM8TAC:OI2DL65P
    Odbc driver returned an error (SQLExecDirectW).
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 23005] The repository variable, Variable_name, has no value definition. (HY000)
    I have made that server variable from manage-->variables-->(right click) create new initialisation block-->gave the name and wrote the query and aslo gave the connection pool name and test that and it worked fine..

  • How can I capture Webi server name in a webi report after refresh.

    Hi Experts.
    My BOE clustered with two or more webi server, I want to capture the webi server name in the webi report after I refreshed this report. Is there any standard webi funtion I can use to show the server name or any variable in the universe I can use?

    Hi Bruce,
    May the following links lead you to the solution......
    [http://www.forumtopics.com/busobj/viewtopic.php?p=403480&sid=6cd088cfbf8cbffd78c17e0cbf280572|http://www.forumtopics.com/busobj/viewtopic.php?p=403480&sid=6cd088cfbf8cbffd78c17e0cbf280572]
    [http://www.forumtopics.com/busobj/viewtopic.php?p=601777&sid=d6123b363d6af6b3cf0aaa6cef6eb86b]
    Regards,
    ArunKG

  • 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

  • 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

  • How to get the report server name in Forms 10g.

    How to get the report server name in Forms 10g.
    I'm using the Application Server 10g 10.1.2.

    Hello,
    I do not think that you can get this value from anywhere. A solution is to put the Reports server name in an environment variable stored in the /forms/server/default.env file, then to query it at Forms runtime with the TOOL_ENV.Getvar() built-in.
    Francois

  • SSIS Expression to Server Name from a Connection String

    Hi,
    I have an SSIS variable which contains a connection string as follows; -
    User::strD​YNconnecti​on {Data Source=myServer;Init​ial Catalog=myDatabase;Provider​=SQLNCLI10​.1;Integra​ted Security=XXXX} String
    I need to get the server name from the above variable using an SSIS expression so I can pass the server name to another function.
    Thanks in advance,
    Kieran.
    Kieran Patrick Wood http://www.innovativebusinessintelligence.com http://uk.linkedin.com/in/kieranpatrickwood http://kieranwood.wordpress.com/

    Hi Kieran,
    This works fine when the Data source comes first in the connection string (which it usualy does). but when it doesn't,
    e.g.
    Init​ial Catalog=myDatabase;Data Source=myServer;Provider​=SQLNCLI10​.1;Integra​ted Security=XXXX}
    you will get 'myDatabase' as an answer
    I would add 'Data source =' in the find string (and adjust for length of this search string to add sufficient offset)
    e.g.
    SUBSTRING(RIGHT(@[User::strDYNconnection],LEN(@[User::strDYNconnection]) - 11 - FINDSTRING(@[User::strDYNconnection],"Data Source=",1)),1,FINDSTRING((RIGHT(@[User::strDYNconnection],LEN(@[User::strDYNconnection]) - 11 - FINDSTRING(@[User::strDYNconnection],"Data
    Source=",1))),";",1) - 1)
    Even this is not foolproof, when the Data source is the last element in the string and there is no ending ;
    e.g.
    Init​ial Catalog=myDatabase;Provider​=SQLNCLI10​.1;Integra​ted Security=XXXX;Data Source=myServer}
    the formula needs to be extended further with a ( ? : ) operator around the last operator to see if the last ";" was found or not.
    Jan D'Hondt - SQL server BI development

  • 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;

  • Setting a server wide variable at startup

    Anyone have a way to set a server wide variable (likely in
    the server scope) that gets set on server startup rather than in a
    specific page request via a cfset.
    What I would like to be able to do is set a variable external
    to any application that describes the servers role (ie.
    development, integration, staging, production) rather than
    hardcoding into the applications a test for server ip, name, etc.
    Thanks
    -Mike

    That's a new one. I can't think of anything internal to CF
    that would
    accomplish this.
    My first idea, assuming a windows world, you could do
    something in the
    services start that would call some resource that would set
    this for
    you. I have no idea how or know for sure this is possible.
    My second idea is what might be done in the Java
    underpinnings. Could
    something be done there.
    There are several xml files that are parsed at start up, but
    I have no
    idea how, if at all, extensible they are.

  • Openhub destnation type file - Problem of server name

    Hi All,
    I have created many Openhub destinations in BI 7.0 on my development BW server. I extract files to application server with the default path DIR_HOME which system automatically gives. As well, the server name is automatically given. It works successfully.
    Then I’ve transported in quality BW server all my Openhub destinations but the server name is still the development server name. I have got the following message after DTP execution: “Could not open file “/usr/sap/QMB/DVEBMGS00/work/Z0ABCINDT.CSV” on application server”
    Does a standard SAP variable exist to determine the current server of the execution?
    Please help.
    Thanks in advance.
    Arnaud

    Hi Nagesh,
    Yes I already tried the solution using Logical Path and it is working. But in my case it meens I had to create 150 logical files with one logical path and during the test integration phasing...
    <b>Anyway I've found the solution</b>: When you want to keep the default path DIR_HOME <b>you have to write in "Application Server" the variable "SYST-DATUM"</b> instead of "my_server_sys_name_dev". It is working even when I transport my openhub (of course even if your Application Server integration Name change "my_server_sys_name_qual" compare to "my_server_sys_name_dev").
    Arnaud Lambey

  • 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

  • Why does Reader 11 incorrectly set the DDE Server Name?

    It appears to me that the installer is setting the DDE Server name in the registry to 'AcroviewR10' instead of the 'AcroviewR11'.
    I confirmed by upgrading from Reader 9.5.x (DDE == Acroview) to Reader 11 (as of Oct 22, 2012) and the new value in the registry (XP and 7) was AcroviewR10.
    I know there was a similiar issue when Reader 10 was released. Is there any idea when an update might come out that will fix this? I hate having to give customer's .reg files to fix these issues.
    I understand that you are new to updating this variable every release, and so it isn't a part of your checklist yet, but it would be highly appreciated if you could remember that for version 12.

    I had this working using the registry lookup this week. During testing on various machines, I found a discrepancy between the registry dde name and the dde name that acrobat would respond to.  I finally just made an array of possible names and iterated through them.
    I'm harvesting the application name from HKEY_LOCAL_MACHINE \Software\Classes\acrobat\shell\open\ddeexec\application in the registry.
    Capitalization does not seem to matter but I'll include the exact caps from my tests.
    Today :
    Acrobat XI Pro (11.0.06) shows up in the registry as AcroViewA10 but it responds to acroviewa11.
    Acrobat XI Pro (11.0.0) shows up in the registry as AcroViewA10 but it responds to acroviewa11.
    Acrobat Reader XI (11.0.06) shows up in the registry as AcroView
    R10 but it responds to acroviewr11.
    Acrobat X Reader (10.1.9) shows up in registry as AcroViewR10 and responds to acroviewr10.
    Reader 9 (9.0.0) shows up in registry as AcroViewA10 and responds to acroview. (The registry may be skewed by having Acrobat XI Pro installed on this machine.)
    Reader 7 (7.1.0) shows up in registry as AcroView and responds to acroview.
    So, I'm just brute forcing through all 5 known combinations plus 2 for version 12 on the off chance that the naming doesn't break pattern again.
    #define maxnames 7
    DIMENSION acronames (maxnames )
    acronames(1) = "acroview"
    acronames(2) = "acroviewa11"
    acronames(3) = "acroviewr11"
    acronames(4) = "acroviewa10"
    acronames(5) = "acroviewr10"
    acronames(6) = "acroviewa12"
    acronames(7) = "acroviewr12"
    loop
         AcroChanNum = DDEINITIATE(acronames(namecounter ), "Control")
         namecounter = namecounter + 1
          blah blah
    until AcroChanNum >=0

  • Insert Portlet Server name for troubleshooting

    Hi,
    We have multiple gadget servers in a load balanced / failover setup. We are using Plumtree Load balancing. We would like to insert the server name or ip address into a hidden text field in the gadget for troubleshooting. Since we have a lot of gadgets already written, I would like to be able to do this on the web server. Additionally, we would also like to be able to identify which Web server is being used. This was straight forward in ASP, but I am not sure what the best way to do this in 5.03.
    Any suggestions would be appreciated.
    Thanks
    Rick

    Yeah, just use a Macro :>
    1) In the login script check the network address to determine the physical
    location.
    2) One the location is determined, map a drive or set an environment
    variable based upon this location.
    3) Reference that variable or drive letter in your app.
    Craig Wilson
    Novell Product Support Forum Sysop
    Master CNE, MCSE 2003, CCNA
    Editor - http://www.ithowto.com
    (Seeking Full-Time Expert? Drop me a note :> )
    "KeN Etter" <kle@_RemoveThis_msktd.com> wrote in message
    news:[email protected]..
    >I have two locations and I distribute apps locally at each location.
    > Right now I make two applications, associate each one to the correct
    > location, and specify the local server for each one. The only
    > difference between the apps is the source (local server). If I could
    > have a macro insert the correct server name, I could simplify and just
    > have one app. Any suggestions?
    >
    > Regards,
    > KeN
    >
    > Novell....it does a server good!

  • Finding the app server name

    Is there a way to find the app server name through peoplecode?
    The %appserver meta-html variable isn't available through peoplecode and looks like it only resolves when it is used as part of a page source (CNTL+J info page, for example). Our process server and app servers are different, and a user could be logged in through three different app servers. I'm hoping there is a way to get the equivalent of the %appserver meta-html sys variable.
    Thanks,
    Paul

    Hi
    Go to SAP Logon single click on your system and again single click at option change item..that will present at left side of your saplogon pad
    you will get all the information regarding that system on which you have clicke first.

Maybe you are looking for

  • How to report on balance sheet accounts using 0EC_PCA_3

    Hi Experts, How to report on balance sheet accounts using 0EC_PCA_3 Thanks nagini

  • How do I move photos from Time Machine backup to iPhoto in new Mac?

    A friend has been backing up his very old Mac with an external drive.  I find lots of pages about move/copy TO external drive but need to find a correct way to move them from the backup drive to iPhoto on the new Mac.

  • ECC 6.0 internal table dump

    Hi, I am passing a database table from selection screen(Eg T001) and build dynamic internal table and get the data from table and put into dynamic internal table. I am getting dump in below code. LOOP AT <dyn_table> INTO <dyn_wa>.    wa_result-line =

  • MySQL to Oracle Migration Issue - Unknown character set index for field.

    Hi, Looking for help..!!! Migrating mySQL - version 4 database to Oracle 10g using oracle migration work bench. It went well until the last step. But, during the data migration, OMWB has given the following error: +++++++++++ Unable to migrate data f

  • Secess amount is not populating

    dear users, when i try to capture the excise invoice using J1IEX, secess amount is not populated in the filed. its showing blank field and the rest fields like BED, AED, ECS  are populating with correct amounts.. could any one can give the possible s