How to get Database name/IP address of the database server from forms10g

Hi everybody,
How do I get the database instance name and IP address of the database server?
I am using Foms 10g and the database server is Oracle 10g.
Sukanta

Dear...........
Plz use this code
select SYS_CONTEXT('USERENV', 'IP_ADDRESS', 15) ipaddr from dual;
SELECT utl_inaddr.get_host_address IP ,UTL_INADDR.get_host_name NAME FROM dual;
select SYS_CONTEXT('USERENV', 'HOST') HELLO from dual;
select SYS_CONTEXT('USERENV', 'TERMINAL') HELLO from dual;
select SYS_CONTEXT('USERENV', 'OS_USER') HELLO from dual;
SELECT SYS_CONTEXT ('USERENV', 'SESSION_USER') FROM DUAL;
SELECT SYS_CONTEXT ('USERENV', 'DB_UNIQUE_NAME') FROM DUAL;
thx.

Similar Messages

  • How to get class name of a object in run time, from its accessible context.

    Hi,
    I need to get the class name of a java object in run-time, given the AccessibleContext of that object.
    I gone through the AccessibleContext api documentation. but there is not way to get the class name for a java object using its AccessibleContext object.
    Do any one have any idea how to get the class name of an java object, given its accessible object Accessible.
    Thanks
    Timberlake

    816311 wrote:
    Please try to provide a solution for my requirement and avoid evaluating a requirement.
    I am a curious guyit's great to be curious. however, in this situation, the requirement makes no sense in the given context. so, in an effort to be helpful, the people on this forum are asking you the reason behind the requirement. the reason we do this is because we have experience answering questions on this forum and, more often than not, requirements which don't make sense are the result of misunderstandings or confusion on the part of the person making the requirement. if we can figure out why you want to do what you want to do, we may be able to point you in a direction which makes more sense.

  • How to capture user name and date in the database

    How to capture the person name who edits the application and the date of edit in the database...
    Pallavi

    Hi
    There are substitution strings you can use for this purpose.
    1.APP_USER ------is the current user running the application
    2.SYSDATE --------represents the current date on the database server
    APP_USER Syntax
    Bind variable------ :APP_USER
    PL/SQL------- V('APP_USER')
    Substitution string---------- &APP_USER.
    SYSDATE_YYYYMMDD Syntax
    Bind variable------- :SYSDATE_YYYYMMDD
    Direct PL/SQL------- APEX_APPLICATION.G_SYSDATE (DATE DATATYPE)
    PL/SQL-------- V('SYSDATE_YYYYMMDD')
    Your application will be based on a table with primary key column. You create a 'before update trigger' on that table and add columns 'UPDATED_ON' and 'UPDATED_BY' to that table. Add the following to that trigger:
    :NEW.UPDATED_ON := SYSDATE;
    SELECT V('APP_USER') INTO :NEW.UPDATED_BY FROM DUAL;
    -Priyanka

  • How to get undo datafile number without opening the database ?

    I cannot open the database because the my undotbs01.dbf file is corrupted :
    SQL> connect sys/... as sysdba
    Connected to an idle instance.
    SQL> startup mount;
    ORACLE instance started.
    SQL> alter database open;
    alter database open
    ERROR at line 1:
    ORA-01092: ORACLE instance terminated. Disconnection forced
    Process ID: 6627
    Session ID: 170 Serial number: 5
    SQL>
    I tryed several solutions but I failed. So I want to use RMAN :
    set newname for datafile X to '/location/undotbs01.dbf';
    But how can I get X which is the file number for my undo tablespace ? I cannot call
    SELECT tablespace_name,file_id,file_name FROM dba_data_files;
    because my database cannot be opened.

    hi,
    hi have this problem and i cannot solve it, the customer has not backup data base
    can you help me ?
    thanks
    can you send me the note you are talking about ?
    thanks
    regards
    I cannot open the database because the my undotbs01.dbf file is corrupted :
    SQL> connect sys/... as sysdba
    Connected to an idle instance.
    SQL> startup mount;
    ORACLE instance started.
    SQL> alter database open;
    alter database open
    ERROR at line 1:
    ORA-01092: ORACLE instance terminated. Disconnection forced
    SQL>

  • How to get event name in runtime in the method ?

    i  found that there is a &_WORKITEM.OBJECTTYPE.EVENTS.NAME& element in thw workflow contained. then i do a binding from this element to another element with the same type as &_WORKITEM.OBJECTTYPE.EVENTS.NAME&.
       then in the method i use swc_get_element container 'NAME'  name.
      to get the event name in runtime.
      but when i test it in SWUE, it gives error.  If i remove this statement, it is oK
    ANY advice?

    Hello Gang,
    _WORKITEM is a workitem object
    OBJECTTYPE is its type (WORKINGWI for dialog steps)
    EVENTS is a multiline attribute (all events for this type of object: processed, created and deleted in our case /events of WORKINGWI/)
    I don't think that is what you need.
    You got an error, cause you link a multiline element to a single one.
    If you need an access to the TRIGGERING event name, the best is to bind an event name when it is triggered (or e.g. check an event name in the check FM if it is sufficient for your requirement).
    Regards,
    Michal

  • How to get people with gmail address to see stationery sent from a Thunderbird email

    I got Thunderbird email so I could use stationery and I am LOVING it --- unlimited stationery for the rest of my life unless they take it out like Microsoft did with Windows. When I send emails with stationery from my Thunderbird email address to anyone with a Windows Live Mail address, the stationery comes through fine but if I send to someone with a gmail address, no stationery comes through at all. I have a gmail address myself and have been trying to figure it out. I can't find anywhere to click on the received email in gmail to show the stationery. Does anyone have any experience with this and know if it can be done?
    Most of the people I know seem to have gmail addresses and I would like to use stationery when I email them but don't know how they can see it.
    Thanks if anyone can help.

    Me again... send me a mail to the gmail address in my profile here.

  • How to get column names as value in the target table ?

    Hello All,
    I want your help to solve my problem. Any suggestions are welcomed.
    Problem - I have source data in Microsoft Excel in following format,
    Ids q12 q13 q14
    10001 1 1 2
    10002 2 4 1
    In my target table , which is in Oracle i want data in following format,
    IDs Question Answer
    10001 q12 1
    10001 q13 1
    10001 q14 2
    10002 q12 2
    10002 q13 4
    10002 q14 1
    In table i have q12, q13, q14 as column names, Now i want to fill q12, q13,
    q14 as values of one of the column ( Question ) in my target table.
    Note - I don't want to hard code the values ... is there any way i achieve this?
    Thanks in Advance.
    AC

    1. Create a staging table with 4 columns. Ids,q12,q13 and q14
    2. Create a main table in the format you want ie., Ids, question and answer
    3. Load the Excel after converting into CSV using SQLLDR into the staging table.
    4. Then move the data from staging to main as below
    insert into main(ids,question,answer)
    (select ids,'q12',q12 from table1
    union all
    select ids,'q13',q13 from table1
    union all
    select ids,'q14',q14 from table1)There might be someother easier way to achieve this. But i dont think you can use SQLLDR to load the data denormalized like you have mentioned. But you can write a procedure which reads the file using UTL_FILE and insert into the table.
    Message was edited by:
    Mohana Kumari

  • How to get list of roles decleared in the portal server 8.1

    Hi,
    I want to retrieve list of all the user security roles decleared in a portal application
    programatically.
    Can anyone help me in this?
    Thanx
    Manish

    See http://edocs.bea.com/wlp/docs81/javadoc/index.html
    and com.bea.p13n.entitlements.management.RolePolicyManager.
    Pass EntitlementConstants.P13N_ROLE_POLICY_POOL
    for the aResourceId. (Note javadoc return value is wrong).
    public static String[] listRolesForResource(String anEntAppName,
    String aWebAppName,
    String aResourceId)-Phil"Manish
    R" <[email protected]> wrote in message
    news:3f4b7336$[email protected]..
    >
    Hi,
    I want to retrieve list of all the user security roles decleared in aportal application
    programatically.
    Can anyone help me in this?
    Thanx
    Manish

  • How to get IP-Address of the database

    Hi,
    I need to get the IP address of the database (MSSQL7.0) , that connects to my application . There are two ways to be connected: via DSN(jdbc:odbc:dsnName) or directly (jdbc:odbc:host:port). How can I get (both cases) the IP address of server I connected to.
    Cheers

    Hi,
    You could try connecting and then typing netstat -a at the DOS command prompt. This should show all open connections etc.
    best,
    kev

  • How to get service name and listening host to connect to oracle DB server?

    I have successfully installed oracle db client 10g release 2 on my winXP. But when I tried to use Net Congiguration Assistance to connect to oracle db server. I do not know what is the "service name" and listening "host" I supporse to enter. Where can I get the names?
    PLEASE HELP! THANKS!

    machine name or IP = machine name or IP address of the database server
    To know the service name do the following on the server :
    $ lsnrctl services
    LSNRCTL for Linux: Version 10.1.0.3.0 - Production on 30-DEC-2005 00:24:28
    Copyright (c) 1991, 2004, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:0 refused:0
             LOCAL SERVER
    Service "test10" has 1 instance(s).
      Instance "test10", status READY, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:0 refused:0 state:ready
             LOCAL SERVER
    The command completed successfully
    $The service name is test10 in my case. Of course you have to use yours.

  • How To Get Attribute Names for a Particular VO

    Hi ,
    How To Get Attribute Names Of a Vo where I can Set Viewattributname To the Table RN Columns Where I am Adding Extra Columns Based on Some Condn..
    So wen i am creating new Column to existing Table RN and we Need to add Attribute Name Also...Rt..
    And How To get RelationShip Between Database Column Name and Java Vo Attribute Name
    Ex: PlanId is the Java VO Attribute Name for the Database Column PLAN_ID
    In The Same way Hw We Get the Relation ship for All other columns In the Controller Cllass ..
    Can Any One Reply as It is urgent Req...
    Thanks ,,
    Jithen

    Instead of using the VO attribute names to set and get values, best to go to the VO definition, click on Java, and generate the View Row Class with the accessors.
    In the class where you're trying to set attributes, instead of a Row class, use the View Row class of your VO (eg ViewObjectName's class would be ViewObjectNameRowImpl), and when retrieving a row from the VO, cast the row to the previously mentioned View Row Class.
    At that point you can use the View Row Class's methods that would perform sets and gets of each column.
    To get attribute names, I don't know off the top of my head, but there might be a method mentioned in the Javadoc for the ViewRowImpl or ViewObject or ViewObjectDefinition classes to get the attribute/column mapping, or perhaps you can somehow read the XML definition of the VO which has that mapping.
    Assuming business components were built automatically and no attribute names were overridden, intuitively the attribute name is a camelcase version of the column name, removing understores and capitalizing the character following the removed underscore - but that's not a fool proof approach. Just a general observation.
    Hope this helps.
    Edited by: user6631964 on Sep 16, 2010 12:31 PM

  • How to change the default password file's name and path when the database created?

    how to change the default password file's name and path when the database created?
    null

    Usage: orapwd file=<fname> password=<password> entries=<users>
    where
    file - name of password file (mand),
    password - password for SYS and INTERNAL (mand),
    entries - maximum number of distinct DBA and OPERs (opt),
    There are no spaces around the equal-to (=) character.

  • How to get column names for a specific view in the scheme?

    how to get column names for a specific view in the scheme?
    TIA
    Don't have DD on the wall anymore....

    or this?
    SQL> select text from ALL_VIEWS
      2  where VIEW_NAME
      3  ='EMP_VIEW';
    TEXT
    SELECT empno,ename FROM EMP
    WHERE empno=10

  • How to get Variable name in output (Report Writer/Painter)

    Hello Experts,
    We have maintained one Repot by using Report Writer, this is the report for Cost center (periodic report), input fields are Fiscal year, Period and Cost Center. In out put system will display the selected cost center balances for individual cost element.
    Output: Excel format: in first sheet it will display balance of the total cost centers selected and from second sheet it will display individual cost center balances.
    My requirement is in the output system is displaying sheet name as CC1,CC2,CC3.......CC50, but my user want to display this as Cost Center 1, Cost Center 2, Cost Center 3...... like this. we have maintained variable name as Cost center 1, cost center 2....., but why system is displaying as CC1,CC2,.... .
    Please help me how to get the full description as sheet name in excel.
    Thanks ......Sudheer

    Hello Everybody,
    Please help me how to get variable name in Report Painter outout ( Excel format ).
    Thanks

  • HT5312 I forgot the Security question in my email account, How to get a rescue email address?.

    I forgot the Security question in my email account, How to get a rescue email address?.

    You can go to the phone number for your country from http://support.apple.com/kb/HE57 and ask to speak with Account Security, or you can go to the ExpressLane at https://expresslane.apple.com and then iTunes, then iTunes Store, then Password and Security Questions and fill out the form.

Maybe you are looking for

  • QEMU host-only networking using tap devices

    I'm trying to setup host-only networking on my QEMU VM running Arch (actually, the Archiso; there is no Arch installation present yet). A short summary: What I want connect to the host from the guest system connect to the guest from the host system u

  • LT movie viewer does not update from consecutive renders

    Working on a project I created an intro with LT using some of the Live Fonts. I did a "Render Movie..." to see the results. Noticed I had a spelling error so I went back and changed the typo, saved, and then did "Render Movie.." again. When it displa

  • Container crashes from time to time

    Hi there I'm running JDK 1.3.1, Tomcat 4.0.1, Borland JBuilder 6 latest update with fitting Borland Enterprise Server. The VisiBroker Smart Agent is running. So I start my container containing a few EJBs. The I start my WebApp, consuming the EJBs. I

  • Enter Sql Statement is causing the Oracle SQL editor to freeze

    I find Oracle SQL Developer's editor keep on freezing as I am writing sql statement on the editor. Is there an option to turn off the freeze. If there is an option to turn off. Does it affect the sql editor not to automatically show objects on select

  • CR 10.2 not workin in Windows 2008 server 64bit

    Hi everybody, I've tried install CR10.2 on a Windows 2008 server 64bit but that doesn't work. After riding this interresting link : [wiki.sdn.sap.com|https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=56787567] I see this version is not suppo