Showing Host string at form

I would like to show host string at form (login Screen), Please suggest. (forms 6i)
Thanks
Ahon
Edited by: [email protected] on Oct 13, 2009 6:32 AM
Edited by: [email protected] on Oct 13, 2009 6:37 AM

Hi,
You can do something like this.
DECLARE
v_connect_string varchar2(40) := GET_APPLICATION_PROPERTY(CONNECT_STRING);
BEGIN
IF v_connect_string = '<YOUR_TEST_DATABASE_INSTANCE_NAME>' THEN
  :<YOUR_BLOCK>.<YOUR_ITEM> := 'You are connected to test instance';
ELSE
  :<YOUR_BLOCK>.<YOUR_ITEM> := 'You are connected to production instance';
END IF;
END;You can put this code in your WHEN-NEW-FORM-INSTANCE trigger. Change the instance name and block.item name according to your need.
-Arun

Similar Messages

  • Where I have to give the host string name of oracle server in WSAD?

    hi,
    I setup the oracle in my WSAD.But,Its giving below error.
    [3/16/06 13:25:41:332 SGT] 3e75fec4 WsServer A WSVR0001I: Server server1 open for e-business
    [3/16/06 13:25:42:535 SGT] 68bb7ec6 WebGroup I SRVE0180I: [Sample] [Sample] [Servlet.LOG]: ResultData: init
    [3/16/06 13:25:42:551 SGT] 68bb7ec6 SystemOut O the connection started
    [3/16/06 13:25:42:551 SGT] 68bb7ec6 SystemOut O no connection
    [3/16/06 13:25:43:535 SGT] 68bb7ec6 ConnectionFac I J2CA0122I: Resource reference jdbc/MyDataSource could not be located, so default values of the following are used: [Resource-ref settings]
         res-auth: 1 (APPLICATION)
         res-isolation-level: 0 (TRANSACTION_NONE)
         res-sharing-scope: true (SHAREABLE)
         res-resolution-control: 999 (undefined)
    [Other attributes]
    isCMP1_x: false (not CMP1.x)
    isJMS: false (not JMS)
    [3/16/06 13:25:44:285 SGT] 68bb7ec6 FreePool E J2CA0046E: Method createManagedConnctionWithMCWrapper caught an exception during creation of the ManagedConnection for resource jdbc/MyDataSource, throwing ResourceAllocationException. Original exception: com.ibm.ws.exception.WsException: DSRA8100E: Unable to get a PooledConnection from the DataSource.
         at com.ibm.ws.rsadapter.exceptions.DataStoreAdapterException.<init>(DataStoreAdapterException.java:244)
         at com.ibm.ws.rsadapter.exceptions.Dat
    [3/16/06 13:25:44:426 SGT] 68bb7ec6 SystemErr R      at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPhysicalConnection(OracleConnectionPoolDataSource.java:109)
    [3/16/06 13:25:44:426 SGT] 68bb7ec6 SystemErr R      at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection(OracleConnectionPoolDataSource.java:77)
    [3/16/06 13:25:44:426 SGT] 68bb7ec6 SystemErr R [3/16/06 13:25:44:426 SGT] 68bb7ec6 SystemOut O Error on find the database() : java.sql.SQLException: Listener refused the connection with the following error:
    ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
    The Connection descriptor used by the client was:
    SGGSGPTP31DT197.code1.emi.philips.com:1521:CESS
         at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection(OracleConnectionPoolDataSource.java:59)
    [3/16/06 13:25:44:426 SGT] 68bb7ec6 SystemErr R      at com.ibm.ws.rsadapter.DSConfigurationHelper$1.run(DSConfigurationHelper.java:759)
    [3/16/
    But,I given correct URL.The URL I given is
    jdbc:oracle:thin:@sggsgptp31dt197.code1.emi.philips.com:1521:CESS
    sggsgptp31dt197.code1.emi.philips.com -- this is my host machine.
    I think the problem with host string.
    actually when we are trying to enter into the oracle sql,it asking the username,password and host string.I mentioned the username and password in variables tab.I don't know where I have to mention the host string name.
    Please any one help on this.
    Thank you,
    D.Nagireddy.

    I would say that, since the OP has so little info, there are no policies in use.  It there were then this question would never be asked the way it is being asked.
    I had a client call with a letter from their insurance company; an accountant with malpractice insurance.  THey asked the same question inmuch the same way.  "What computer can you users access?"  The question should be more like
    "Do you have a policy that restricts access to computers and do you audit for compliance?"
    I have had other clients whose insurance asked the question in that way.  It produces a better view of what should be happening and how to show compliance.
    I recommend that companies being asked these questions by their legal departments or insurance companies should contract with a god computer security consultant to assist with answering these very tricky questions.  Of course if it is just you boss's
    curiosity  then you may need to discuss his requirements with him in more depth.
    ¯\_(ツ)_/¯

  • Host String

    I've installed Oracle Forms 6i includingSQL Plus 8.0 on Win2000 server. no problem with user name and password but no Host string seems to work. Error message ORA-12203: TNS unable to connect.
    Any ideas what I should be using as the host string?
    Thanks

    Hi All ,
    thanks for u'r help I appreciate it,now i could install my orcale 9i properly,but now i have one more problem,after installing oracle,iam not able to install Microsoft visual studio,i got a setup error,that it can't create DCOM user account,have any one encountered such kind of problem,i've browsed the microsoft site,i could find that there would a problem installing Visual Studio when orcale is already installled,but couldn't resolve the problem.do i need to again uninstall oracle 9i???

  • [b]Listener problem while configuring host string through NET config[/b]

    Hi,
    I am unable to create host string through Net config. While testing with userid/password, the test does not succeed.
    The host string configured is known as PROCESS.
    Net config error message while testing the connection is as follows:
    "Connecting...ORA-12541: TNS:no listener
    The test did not succeed.
    Some of the information you provided may be incorrect.
    Press back to review the information provided for net service
    name, or Change Login to change username."
    Upon checking the status of listener from command prompt it gives following status:
    LSNRCTL> status
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC0)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 9.2.0.1.0 - Produc
    tion
    Start Date 08-JAN-2003 16:25:08
    Uptime 0 days 16 hr. 9 min. 33 sec
    Trace Level off
    Security OFF
    SNMP OFF
    Listener Parameter File C:\orant\network\admin\listener.ora
    Listener Log File C:\orant\network\log\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc)))
    Long postings are being truncated to ~1 kB at this time.

    Did you check that the DB is up ? If not, then check it and, eventually, start it up.
    If yes, then open a DOS window, set your ORACLE_SID, connect to Sqlplus as sysdba and type :
    SQL> show parameter service
    what is the result ?

  • Oracle Host String.

    I Installed oracle on my machine after my installation I forgot my 'host name' . I am able to login without host name . But I need this host name for cognos installtion.I gone through the net and and I alter my Host string to 'orcl' but I am Unable login.
    It's shows TNS Listner Error.
    And I have one more question also
    what is the diff b/w SID and Host string.
    Thanks,
    Mohana Krishana K
    Edited by: user12275872 on Mar 1, 2010 9:52 PM

    Hi,
    Host is the address of the server.
    Please check your tnsnames.ora file in your oracle_home->network->admin folder.
    there you will find something as
    HOST =Twinkle

  • What to Enter in Username,Password and Host String in SQL Plus 8.0??

    I downloaded Oracle Forms,Reports 6i.Along with it I got SQL Plus 8.0.Following
    are not working
    Username:scott
    Password:tiger
    Host String:Empty
    or
    Username :system
    Password:manager
    Host String:Empty
    I want to Know what to enter for Username,password and Host String.If i want to look in the TNSNAMES.ORS Plz Tell What to look for in it.

    Developer 6i is a client software, not database server. Ask the dba of the database, you are trying to connect, for valid userids/passwords/hoststrings.
    Werner

  • Asking for host string

    Hi,
    I have downloaded the Oracle 9i personal edition on a Windows98 system. When I am trying to run the sqlplus.exe file, it asks me for User ID,Passww, Host string. What host string am I supposed to give? Its a standalone application that I want to run Oracle 9i as. Please guide me.
    Thank you.
    Srikanth Turaga
    So that we may better diagnose DOWNLOAD problems, please provide the following information.
    - Server name
    - Filename
    - Date/Time
    - Browser + Version
    - O/S + Version
    - Error Msg

    SQL*Plus Issue:
    Right-click on the SQL*Plus short-cut that give you TNS error and see which executable it points to. Most probably this is the one in you newly installed Dev Suite directory.
    Next, Check the contents of TNSNAMES.ora file in the following directory:
    C:\DevSuiteHome_1\NETWORK\ADMIN
    (whichever drive/disk you installed Dev Suite in).
    This file must contain TNS entry of the database you intend to connect to using Dev Suite applications (Forms, Reports, SQL*Plus, etc).

  • Default host string?

    What's the default host string for oracle 8i personal edition?

    I'm not sure. You might want to read:
    http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/network.920/a96580/gettings.htm#483215
    That'll show you how to enter/edit your client to connect to databases. You might also want to post this question to the Products > Databases > General forum for a better answer.
    Alison

  • Host string and new users

    Hi, I've just installed DevSuiteHome1, OraDb10g_home1, and Oracle Developer Suite - DevSuiteHome1 and will be creating forms for an assignment. I've managed to log in to SQL*Plus with: "/ as sysdba" and successfully created a new user with a password and created a table "student", what privileges should I give this user (currently DBA) to allow them to access simple forms?.
    When I log in to SQL*Plus I get in without entering a "Host String", do I need this? What is a Host String?
    Also, though I don't need the database name just yet, I'd like to know how to find it!
    Thanks for reading, I'm grateful for any help.
    Will.

    The more formal way of reading that is
    sqlplus user/password@service-information
    where service-information is somehow translated into a combination of 3 pieces of information
    1) how to find the host or computer where the database resides
    2) which port the listener is monitoring
    3) which service (commonly mistaken as database) to which the listener should provide a connection
    (A database, when 'running', has a default service that matches the database name.)
    If you are logged on the the same machine as the database, you can bypass the network and the listener by setting the ORACLE_SID and implying the 3 pieces of information.
    If you are remote, there are several ways of getting the 3 pieces. The most common is to use the TNSNAMES.ORA to translate the service-information alias into the needed information. The translation could also be stored in an LDAP database Using InstantClient you have added variations, such as 'supply the host name and assume the listener is monitoring port 1521 for one and only one database', or supplying the whole translation manually.

  • "Host String" to check install

    Do I enter the SID into the host string to test install?
    On my server (Oracle 8i for Netware) in tnsnames.ora, I have a service variable and a SID. On my client (Oracle 8i for NT),in tnsnames.ora, I have a service variable and a
    Service Name variable.
    TIA. I am very new to this.

    The ability to detect the jre at the update level, as well as the ability to install a specific version are only present if the DT plugins are installed.
    These plugins only exist for windows and are only part of the 6u10 (1.6.0_10) versions of java.
    The javascript you show uses an undefined minimumVersion variable.
    also note, you cannot use the wildcard '1.5.0*' in the call to isWebStartInstalled (which takes minimumVersion arg)
    if fixed, this code would still not work as you want, since clients with 1.6.0 or later would sail straight thru and launch.
    I suggest replacing isWebStartInstalled() with deployJava.versionCheck('1.5.0*') .
    then on systems with the plugin installed, if no 1.5.0* version is installed, the latest 1.5.0_XX will be installed before launching the app.
    (assuming the app has also <j2se version=1.5/> or equiv.)
    on systems w/o plugins installed, the latest version of java will be installed, and it will be up to javaws auto download to get 1.5.0* version.
    this could still have problems, especially on platforms not supporting the plugins (non-windows) , since code keeps checking for '1.5.0*', and installing only latest, so you would want to wrap install with something to prevent repeated attempts to install:
    if (deployJava.versionCheck('1.6.0+') && !deployJava.isPluginInstalled()) {
    ---- don't do any install here - ---
    /Andy

  • HOW CAN I GET USERNAME,PASSWORD,HOST STRING?

    I have installed oracle 9i personal edition, when i tried to open sql plus, i was asked to fill username,password and host string. When i type anything it shows error message ora-12154.Is anyone can help me? Thanks

    The error you gave can appear for lots of reasons.
    You don't give any information about how the install
    went - did you check the logs for errors? Have you
    shut the machine down since you did the install?
    Are you actually running SQL*Plus on the same machine
    as the database? Is your database running? Can you
    connect using "/ as sysdba"? What hints that even
    a simple google search gives did you try?
    -- CJ

  • How can I add my Host String in the Registry?

    Hi everybody,
    I know there's a way to add the Host String in the Registry, but I don't remember how to do it? Can anyone please help me. I want to do this because every time I log in I just want to type the username and password and not the Host String because is a little bit long for me and the users when they open a form to type data.
    Help me please!

    Dear User,
    Instead of Using Registery Side ,
    you should use log-on trigger. This is form level trigger.
    logon('username','passard@hoststring').
    if would go for registry then You have change in registry for each user while the above solution does not need
    such changes.
    Thanks and Regards
    Manish Tiwari

  • How can I get the Voiceover Keyboard shortcuts to show up in a form in which I can copy

    I have low vision & have been trying to learn to use Voiceover on both my iPhone & my Mac mini for months. Very frustrating.
    1. How can I get the Voiceover keyboard shortcut commans to show up in a form in which I can copy & paste them into a pages document so I can print it out & use for quick reference?? The one that shows up when I press VO +HH won't let me copy & paste it, & it won't show up in the Help section no matter what subject I enter. The help topics shown do not correlate with the topics I'm entering. why is that??
    2. Please make the cursor able to be wider, like in the software program Zoomtext, that I used when I had a PC. The razor-thin cursor (in this text box!) in Pages is impossible for me to see.
    Thank you for any help you can provide.

    http://www.applevis.com/guides/voiceover-keyboard-shortcuts-mac-os-x
    You should be able to copy them from there.

  • How can I get a date picker or wheel to show up in the form to make filling in a form with a lot of

    how can I get a date picker or wheel to show up in the form to make filling in a form with a lot of dates more easy?

    There is no built-in date picker available for forms created in Acrobat. There are some third-party solutions involving JavaScript (either a large collection of fields or a custom dialog) though. Also, text fields with date formatting will use a wheel type date picker on Android/iOS devices with Adobe Reader.

  • Host command in forms 10g

    hi all
    i am using host command in forms 10g. but it is not executing .
    is there any distinct syntax or pre-requirement for executing this command
    kindly help
    thanks

    i am using the following code create a text file in root directory.
    the textfile should contain the list of folders,files present in the root directory.
    XCMD:=NULL;
    XCMD:='CD\' ;
         CLIENT_HOST('CMD /C' || XCMD);
    XCMD:='dir >C:foldnm.txt' ;
         CLIENT_HOST('CMD /C '|| XCMD);
    but the file is creating in the specific users directory. ie.
    \ documents and settings\username\desktop
    kindly help

Maybe you are looking for

  • Issue with file upload to Microsoft One Drive

    Hi, My uploaded file(25.6MB, 44 seconds long) from Adobe Premier Elements 9  will not play on Microsoft One Drive(MOD), Is anyone else have problems using MOD? I created  the file  I uploaded on my  new HP Envy Computer(x64 proccessor with 8 gig of R

  • How do I stop Firefox from updating Internet Explorer with my bookmarks?

    I upgraded Mozilla Firefox recently and must have agreed to merge bookmarks. All my bookmarks now appear in Internet Explorer also. Any changes affect explorer. I can't figure out how to stop. I can disable on the explorer end but not Firefox.

  • Newbie here, seeking help re. Broadband usage.

    I'm only 11 days into Dec and the monitor tells me I've used 30gb of my 40gb allowance! Does BT provide itemised daily analysis of my BB usage as I'd like to see where I'm using this?  The monitor on the BT website just seems to give the cumulative f

  • SAP WebAS Supportability - cannot run Web Service

    Hi Experts, I found in the supported platform document, boe_xi_30_supported_platforms_windows.pdf. It states that SAP Web Application Server 7 ...  Not supported for Web Services. Does this mean we cannot use Xcelius with Query as a web service on th

  • My podcast image is not showing up in itunes

    I am using feedburner for my podcast. I can see in my feed the <itunes:image href="the url of my image"/> But the image is not showing in itunes? I just added the image last week, and it is a 1400x1400 pixel jpg.