Capturing Login /PW and Host String!

HI ALL!
I NEED UR HELP TO CODE HOW TO CAPTURE
LOGIN NAME/ PASSWORD AND HOST NAME IN FORMS.
I AM DEPLOYING THESE FORMS(V5.0) INTO INTRANET.
THANKS
VIJAY

If you need to capture them after the application has been initiated then :
DECLARE
u_name VARCHAR2(10);
pw VARCHAR2(15);
host_name VARCHAR2(15);
BEGIN
u_name := GET_APPLICATION_PROPERTY(USERNAME);
pw := GET_APPLICATION_PROPERTY(PASSWORD);
host_name := GET_APPLICATION_PROPERTY(OPERATING_SYSTEM);
END;
You can do this in the PRE-FORM or WHEN-NEW-FORM-INSTANCE trigger. If you need to access those variables at some time in the application , then I suggest that you use global variables or create 3 items on the null canvas and assign these values to them.

Similar Messages

  • Password and host string

    Hi,
    Im trying to get the Oracle 8i for 2000 to run correctly. I did a download. Problem is getting pass the password screen. The host string is giving me trouble. What should go there? Any place where the password and host string info are stored for later retrieval?
    thanks,
    Cindy

    If you installed the default database then you should type in system as the user and manager for the password and ORCL as the host string (these are the defaults).
    The hoststring names (database aliases) would be in the tnsnames.ora file uder your Oracle_Home/network/admin directory
    If you login as system or a user that has DBA privileges, you can change passwords as you see fit
    syntax:
    alter user identified by somepassword;

  • 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

  • DB Name and Host String

    Whats the difference between a host string and a database name? How can i find out the host string name?

    Hi!
    I'm giving you one link. please go through this. I hope that may solve your requirement -
    Setting Connect String as SQL Prompt .
    Regards.
    Satyaki De.

  • Script to find the list of Queries currently running in database with User Login Name and Host Name.

    Hai,
    How to find the list of queries currently running in the Database with User Login Information.
    Since my database application is running slow, to find the slow queries.

    Try the below query
    SELECT r.start_time [Start Time],r.session_id [SPID],
    DB_NAME(database_id) [Database],
    s.host_name,
    s.program_name,
    s.login_name,
    SUBSTRING(t.text,(r.statement_start_offset/2)+1,
    CASE WHEN statement_end_offset=-1 OR statement_end_offset=0
    THEN (DATALENGTH(t.Text)-r.statement_start_offset/2)+1
    ELSE (r.statement_end_offset-r.statement_start_offset)/2+1
    END) [Executing SQL],
    r.status,command,wait_type,wait_time,wait_resource,
    last_wait_type
    FROM sys.dm_exec_requests r
    OUTER APPLY sys.dm_exec_sql_text(sql_handle) t
    inner join sys.dm_exec_sessions s
    on s.session_id = r.session_id
    WHERE r.session_id !=@@SPID -- don't show this query
    AND r.session_id > 50 -- don't show system queries
    ORDER BY r.start_time
    Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

  • 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

  • Default SQLPlus host string

    I installed 9.0.1.1.1 on a Win2k PC with default setup using the Oracle Installer. Afterwards, I also installed the OEM on the same machine. For some reason, when I login to SQLPlus without specifying an Host String, SQLPLus always logins into the OEM instance, OEMREP. Does any one know where I can change the defaut Host String back to the original instance?

    You can argue that there is no such thing as a default username, password, and host string for Oracle.
    You can also potentially respond with instructions to try to log on as sysdba
    sqlplus /nolog
    connect / as sysdbaIf you are a member of the appropriate Oracle group you are now connected as user SYS. I do not consider this as a default user.
    You should create and grant appropriate privileges to application and DBA usernames.
    The default instance names for Oracle installed on Windows are XE for Express and ORCL for regular Oracle though this last can be changed.
    HTH -- Mark D Powell --

  • 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.
    ¯\_(ツ)_/¯

  • Connection string & host string

    Hello,
    What is difference between connection string and host string?
    Could someone please clarify it.
    Regards
    Krishna

    In tnsnames.ora file in host part whether we have to specify host name or host IP Address?
    ORION.SSAPL01=
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = [b]sagardomain.SSAPL01)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = orcl)
    or HOST = 10.15.1.111
    Message was edited by:
    KRKP

  • 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

  • Oracle 10g SQL plus username, password + Host string unkown

    Hi Friends
    I have just installed Oracle 10g in my computer. I could not use SQL plus because I dont know the exact username, password and host string to connect. Is there anybody to help me out. I am bit stressed for this.. Thanks by Hossain

    Do not reply to 5 year old posts. If you have a problem, start a post of your own, referencing the old one if necessary.
    Describe your problem explicitly, giving all relevant information.
    Please see Re: 2. How do I ask a question on the forums?

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

  • Capture login id of a user and based on that get other values

    I have worked on a module in which i developed some usecases
    Now its integrated with main module... where the user logs in through the main login page
    Now i need to capture that login id and use it in my usecases ... so that based on those login details i can get other values like user state, etc., which i can populate in the db through my vo whenever a transaction is done
    Can some one let me know how to proceed on this

    here are some handy codes that may help you.
    http://biemond.blogspot.com/2009/03/some-handy-code-for-backing-beans-adf.html

  • Oracle 8i Lite: logging to sql plus - uid, password, host string - whats that

    If i install "Oracle 8i Lite" (just locally, not networked). There are two important things : "Navigator", and "SQL Plus". If in navigator, I create a local database called "xxx" (tables under 'system' user). Then if i need to query - i go to SQL Plus. Fine, but how do we log in - what is the "host string" ?.
    The login needs, Userid, Password, Host String. In some docs, it said the userid, password for 'system' account is 'system, manager' respectively. Anyways, now the host string , i had read the 'host string' will be like "@databasename", so I think for me, it will be "@xxx"
    But the way, I'm understing, i cant log, and SQL Plus says something "TNS: could not resolve service name". Maybe i have to something with that tnsnames.ora file....?
    Incase, you could give ANY information, kindly inform.
    Thanks
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Mulyadi Kurniawan ([email protected]):
    Host string usually refers to the host string that is stored in your TNSNAMES.ORA file. You can open TNSNAMES.ORA with a text editor.
    If you get "TNS: could not resolve service name", it's either you have not start the database or your configuration in TNSNAMES.ORA is wrong.<HR></BLOCKQUOTE>
    hi,
    iam getting the same error(the TNS thing)can you be a bit more explaining regarding how to solve the problem.
    thanks
    null

  • Changing the Host String in Oracle 10.2.0.4

    Hi,
    Can you please let me know how to change the Host String from ORCL to "production".
    I login now using the details below,
    UN: system
    PWD: production
    Host String: orcl
    Any help would be highly appreciated.

    Pravin wrote:
    Hi,
    I tried it but doesnt seem to work. Anyhow, i created a new database with my requirements and thus issue got resolved.
    Maybe you should have provided a bit of detail to "doesn't seem to work".
    I hope you didn't build a whole new house just because you couldn't get the key fit the front door . . .
    Thanks for your response. Appreciate it.Edited by: EdStevens on Sep 27, 2010 3:43 PM

Maybe you are looking for

  • Creating a new user to synch ipod, ipad and iphone?

    Hi, Apologies if this has been covered before. I'm in the middle of moving from the UK to the US. My "real" computer is in transit and I won't have access to it for a few weeks. I'm traveling with an ipad, ipod touch and I've just picked up a us ipho

  • Z table updation

    i have to update some ztables through flat file. I created a report program for this. Before adding a record in the table i have to validate every field with a check table. Please suggest me regarding this Task. Thanks Srik

  • Is separate graphics card needed for Dreamweaver CS4?

    My PC (an HP Pavilion a1120n) meets the stated system requirements for Dreamweaver CS4, except that it has integrated graphics (max of 128MB) instead of a separate video card. I can easily upgrade to 4MB of RAM. Could anyone please tell me whether Dr

  • Problem while using struts 1.3.8

    Hi All, I have some problem while using struts 1.3.8 in my application. I am using OC4J 10.1.2.0.2, my simple coding is follows: <%@ page contentType="text/html;charset=utf-8"%> <%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles"%> <%@ tag

  • Running quickbooks on mac

    how do I transfer quickbooks from PC to Mac?