How to connect a database using coding in the shutter button in forms

Oracle forms6i

Hai All

Y at - it a possiblity to connect using the coding of data bases.

For example, when we open a form and we use some button and write some coding and when we run a small will appear and give us the user name, login name and database name.

It is possible it when we create a button and this button we write our database name, the login ID and the user coding and when we exe it will connect to internal database Pls tell me...


Concerning

Srikkanth.M

Use the LOGIN procedure

PROCEDURE LOGON
  (username  VARCHAR2,
   password  VARCHAR2); 

logon('scott','tiger@orcl');

Mr.Srikkanth.M if you do not close your old questions do not answer your question each time... so please remember if you think that the response of the person is useful or appropriate mark it accordingly

Thanks :)

Bangoura
[My Oracle Blog | http://baigsorcl.blogspot.com/]

Tags: Oracle Development

Similar Questions

  • How to connect two databases on two servers

    How to connect two databases on two servers. For example
    a serevr is in India and another in Australia.
    The following example is correct or not

    Select A.ID, B.Name [10.50.17.87] .HR. EMP A, [192.168.100.125] .HR. TRANS B
    Where A.ID = B.ID

    You must use a database for this link. The syntax is defined in the reference SQL here: http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/statements_5005.htm#SQLRF01205

  • How to connect two databases to a single listener

    Hello

    How to connect two databases to a listener.is it is possible or not

    Hello

    Yes, you can record a single listener to respond to several databases. There are several ways to do it and the best way that I would suggest for you is the use of "Network Setup Wizard" or "netca", which is a graphical interface that allows you to meet your requirement. Otherwise, you can hardcode in your listener.ora file located in the 'ORACLE_HOME/network/admin/listener.ora '.

    Example is as follows

    Listener.ora

    SCREW =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = lab01) (PORT = 1521))
    )
    )

    SID_LIST_VIS =
    (SID_LIST =
    -1 database configuration
    *(SID_DESC =*)
    * (ORACLE_HOME = /u01/app/oracle/product/11.1.0/db_1)*
    * (SID_NAME = DB1) *.
    *)*
    -Database Setup 2
    *(SID_DESC =*)
    * (ORACLE_HOME = /u01/app/oracle/product/11.1.0/db_1)*
    * (SID_NAME = DB2). *
    *)*
    )

    Then restart your listener.

    Kind regards
    Asif Muhammad

  • How to connect sql database to esxi to save all data from the virtual machine

    How to connect sql database to esxi to save all data from the virtual machine

    Please provide steps

    In simple terms, you cannot connect ESXi to SQL. Connect a vCenter SQL (Windows only).

    If you want to save all the data that is contained in your virtual machines, I suggest a backup solution.

    Suhas

  • I lost my msn icon after the upgrade to windows 7. How I connect msn plsu? What is the web address?

    I lost my msn icon after the upgrade to windows 7. How I connect msn plsu? What is the web address?

    Hello

    I suggest you to contact MSN customer support for assistance.

    Here is the link for "how to contact MSN Support.

    http://support.Microsoft.com/kb/940784

    I hope that helps!

  • Re: Font book. I chose "restore standard fonts" by mistake. How to get back on my choice. The Cancel button is grayed out so I can't cancel it. Any suggestions? Thank you!

    Re: Font book.

    I chose "restore standard fonts" by mistake. How to get back on my selection. The Cancel button is grayed out so I can't cancel it. Any suggestions? Thanks in advance!

    If you click on 'Restore the standard fonts', fonts that are not included in the OS X systems is placed in a "fonts folder (deleted) next to the fonts folder.

    / Library/Fonts

  • How to create a database using Labview7.1, as library management system?

    I want to use labview7.1 to create a database as the system.but management library I don't know how to do it.could you show me how to make it happen?

    To run database queries, OR sell the database connectivity Kit. However, given that your version of LabVIEW is no longer supported, I don't know if you could buy it. Your other option is to use LabSQL. Two of them are based on ADO. The Toolbox mask some SQL commands low level but you can find plenty of tutorials SQL and should be able to get updated quickly enough. LabSQL is what I use in my LabVIEW applications.

    The effective creation of a database is usually done in the database environment itself (for example, you use Access to create a Jet database). It is not really related to LabVIEW at all and appropriate database design is a long topic. If you know the system database that you want to use, someone might be able to point to specific aid.

  • Connection to database using Flex

    How to connect to the database like sql server using flex?

    Clarification: XML is not the only format you can use. For more information about your options and a quick overview of the data access server side through Flex, see http://help.adobe.com/en_US/flex/accessingdata/WSbde04e3d3e6474c46c45e7b4120d413dc14-8000. html

  • Unable to connect local database using net service name

    Hello all;


    FYI: This question has been posted in high availability. Now, it has been deleted from there.


    I'm trying to connect my local database using authentication remote.

    but make a mistake. Client & server are on the same server.


    SQL > conn u1/u1@primdb

    ERROR: ORA-12545: Connect failed because target host or object does not exist


    SQL > conn / as sysdba

    Connected.


    SQL > show parameter db_name;

    VALUE OF TYPE NAME

    ------------------------------------ ----------- ------------------------------

    db_name chain primary


    SQL > show parameter service_name.

    VALUE OF TYPE NAME

    ------------------------------------ ----------- ------------------------------

    service name string mydb


    SQL > show parameter db_domain;

    VALUE OF TYPE NAME

    ------------------------------------ ----------- ------------------------------

    db_domain string primary.com


    SQL > show parameter global_name;

    VALUE OF TYPE NAME

    ------------------------------------ ----------- ------------------------------

    global_names boolean FALSE


    SQL > select * from global_name;

    GLOBAL_NAME

    --------------------------------------------------------------------------------

    PRIMARY

    [oracle@localhost admin] $ lsnrctl start

    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on January 18, 2014 16:32:08

    Copyright (c) 1991, 2005, Oracle.  All rights reserved.

    From /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr: Please wait...

    TNSLSNR for Linux: Version 10.2.0.1.0 - Production

    System settings file is /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora

    Log messages written to /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log

    Error listening on: (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=oel5.linuxserver) (PORT = 1521)))

    TNS-12545: Connect failed because target host or object does not exist

    AMT-12560: TNS:protocol adapter error

    TNS-00515: Connect failed because target host or object does not exist

    Listening port could start. See the above error messages...


    -----------------------------------------------------------------------------------


    My listener.ora file content:

    SID_LIST_LISTENER =

    (SID_LIST =

    (SID_DESC =

    (SID_NAME = primary)

    (ORACLE_HOME = u01/app/oracle/product/10.2.0/db_1)

    (GLOBAL_DBNAME = mydb.primary.com)

    )

    )

    LISTENER =

    (DESCRIPTION_LIST =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = oel5.linuxserver) (PORT = 1521))

    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC0))

    -----------------------------------------------------------------

    My tnsnames.ora content

    primdb =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = TCP)(HOST= oel5.linuxserver) (PORT = 1521))

    )

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = mydb)

    )

    )

    --------------------------------

    $ tnsping primdb


    AMT Ping utility for Linux: Version 10.2.0.1.0 - Production on January 18, 2014 16:40:55

    Copyright (c) 1997, 2005, Oracle.  All rights reserved.

    Use settings files:

    TNSNAMES adapter used to resolve the alias

    Try to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (HOST = oel5.linuxserver)(PORT=1521))) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = mydb)))

    TNS-12545: Connect failed because target host or object does not exist

    Thanks in advance...


    SERVICE_NAME =? in tnsnames.ora file should MATCH what is reported by the listener EXACTLY (like one from below)

    > Service 'mydb.primary.com' has 1 instance (s).

    Instance of 'primary', State LOAN, has 1 operation for this service...

    Managers:

    "DEDICATED" set up: 0 denied: 0 status: ready

    LOCAL SERVER

    > Service 'primary.primary.com' has 1 instance (s).

    Instance of 'primary', State LOAN, has 1 operation for this service...

    Managers:

    "DEDICATED" set up: 0 denied: 0 status: ready

    LOCAL SERVER

    > Service 'primary_XPT.primary.com' has 1 instance (s).

  • Unable to connect target database using dbclient

    Hi all

    I installed database 11.2.0.2 successfully on linux machine.other machine is windows machine, I installed in CUSTOMER DB 11.2.0.2 by using db client unable to connect target database.


    Database version: 11.2.0.2(64 bit)

    Windows database: 11.2.0.2(32bit)


    Thank you
    GS

    I installed database 11.2.0.2 successfully on linux machine.other machine is windows machine, I installed in CUSTOMER DB 11.2.0.2 by using db client unable to connect target database.

    Set up Listener on the server?

    Can you tnsping from windows to linux machine?

  • How to connect a WebCam using pages web aspdotnet

    I want to connect images of Web cam on the Web page using dot net for vidio chat server.

    Hey Ashok,

    Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums. Appropriate in the TechNet forums. Please post your question in the TechNet forums.

    You can follow the link below to ask your question:

    http://social.technet.Microsoft.com/forums/en-us/winservergen/threads

    I hope that helps!

  • How to connect 2 Dell U2415 monitor on the docking station in combination with a Dell Latitude E7450 processor and controller

    Hi guys

    hope you can help me out here. I plan to buy some E7450 processor and controller of Dell's Latitude for our company with a docking station and some Dell Ultra Sharp 24 monitor - U2415. Aims to use the E7450 processor and controller with the dockinstation and connect 2 monitors U2415 of Dell. the issue here is. What type of cable do I need? should I buy 2 normal display port cables? It resolution things to work with this combination?

    Here the link of the monitor

    http://Accessories.AP.Dell.com/SNA/ProductDetail.aspx?c=HK&CS=hkdhs1&l=en&s=DHS&SKU=391-BBUW&redirect=1

    here some specifications of the dell Notebook printer

    Fix. You can also ask users on the laptop Video board on the platforms they use.

  • How to import xsd and use it in the transformation for mapping

    I built a xsd and you want to use the xsd to the development in BPEL Process.I imported. But I can't figure out how to proceed further. Anyone can suggest me how to import xsd and use it as it must be defined in wsdl using the law. Is it possible, we can use xsd?

    in the left lower structure window, the tree you can import patterns.
    When completed the scheme will get an element import in your wsdl file, so no manual work not needed for that.

    After that you can simply use it to create variables based on it

  • Problems with cloning a database using copies of the image

    I use Oracle 10.2.0.4 on a 64-bit RHEL 4 Linux configuration.

    The problem that I am trying to solve is to copy the database to production on a local machine for development and quality assurance. I tried to include as much detail as possible.

    The environment:

    I have a production system that replicates physical expectations.
    We take incremental backups on the database of relief, which are applied to copies of the image, every night. We use a recovery catalog.
    Archive logs and a backup control files are stored in the same directory as the copies of the image.

    The process:

    We copied all files in this directory of backup on the local computer.
    At this point, I tried several methods to recover the database:

    1 clone:
    -J' copied the initialization file of the main machine to the local computer. I modified the creation of paths and memory settings.
    -J' did a trace of the control file and copied to the local computer.
    -After making the necessary adjustments to creative writing, I created the new control file
    -J' I then issued:
    recover database using backup controlfile until cancel;
    -After receiving the following:
    ORA-00279: change 313748229 generated at 09/14/2008 00:30:55 needed for thread 1
    ORA-00289: suggestion :
    /u02/app/oracle/flash_recovery_area/SWD1ORACLE1/archivelog/2008_09_18/o1_mf_1_22304_%u_.arc
    ORA-00280: change 313748229 for thread 1 is in sequence #22304
    Specify log: {=suggested | filename | AUTO | CANCEL} 
    -I then entered CANCEL
    -A my next message: {codeORA-01547: WARNING: RECOVER succeeded but OPEN RESETLOGS would get below error}
    ORA-01194: file 4 recovery needs more match
    ORA-01110: data file 4:
    ' / u02/app/oracle/oradata/datatrak/ora_df664390338_s1145_s1.
    ORA-01112: media recovery not started {code}
    -Out of pure hope and prayer, I have published:
    alter database open resetlogs;
    -Made me the following error:
    ERROR at line 1:
    ORA-01194: file 4 needs more recovery to be consistent
    ORA-01110: data file 4:
    '/u02/app/oracle/oradata/datatrak/ora_df664390338_s1145_s1'
    Then, I moved to the possibility 2: RMAN

    2 RMAN restore:
    -J' first tried
    run { allocate channel ch1 device type disk; restore database; }
    -He gave me the following:
    allocated channel: ch1
    channel ch1: sid=1643 devtype=DISK
    Starting restore at 18-SEP-08
    released channel: ch1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 09/18/2008 13:24:27
    RMAN-06026: some targets not found - aborting restore
    RMAN-06023: no backup or copy of datafile 7 found to restore
    RMAN-06023: no backup or copy of datafile 6 found to restore
    RMAN-06023: no backup or copy of datafile 5 found to restore
    RMAN-06023: no backup or copy of datafile 4 found to restore
    RMAN-06023: no backup or copy of datafile 3 found to restore
    RMAN-06023: no backup or copy of datafile 2 found to restore
    RMAN-06023: no backup or copy of datafile 1 found to restore
    - Then I started cross-checking files:
    -datafile 1:
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=1643 devtype=DISK
    -datafile 2 on:
    using channel ORA_DISK_1
    -J' I then issued:
    list incarnation of database;
    -Which gave me:
    List of Database Incarnations
    DB Key  Inc Key DB Name  DB ID            STATUS  Reset SCN  Reset Time
    ------- ------- -------- ---------------- --- ---------- ----------
    1       1       DATATRAK 3742967129       CURRENT 18136361   26-NOV-07
    -J' tried these two
    restore datafile 1;
    restore datafile '/u02/app/oracle/oradata/datatrak/ora_df664390339_s1151_s 1'
    which gave me the same results:
    Starting restore at 18-SEP-08
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=1643 devtype=DISK
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 09/18/2008 13:49:08
    RMAN-06026: some targets not found - aborting restore
    RMAN-06023: no backup or copy of datafile 1 found to restore
    -J' then went back at the beginning and tried to restore the controlfile instead of using the newly created controlfile
    -J' wrote:
    restore controlfile from '/u02/app/oracle/oradata/datatrak/cf_D-DATATRAK_i d-3742967129_i6jqcmaq';
    -Which gave me:
    Starting restore at 18-SEP-08
    using channel ORA_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 09/18/2008 14:02:26
    RMAN-06172: no autobackup found or specified handle is not a valid copy or piece
    -After learning that we use autobackup to save our controlfile, now, I am faced with the proverbial wall.

    Excerpt from data pump and duplicate RMAN are possibilities, but we really want to do those.

    Any help on this issue would be greatly appreciated.

    For completeness, the initialization
    aq_tm_processes = 0
    audit_file_dest = /u02/app/oracle/product/10.2.0/db_1/admin/datatrak/adump
    background_dump_dest = /u02/app/oracle/product/10.2.0/db_1/admin/datatrak/bdump
    core_dump_dest = /u02/app/oracle/product/10.2.0/db_1/admin/datatrak/cdump
    db_file_multiblock_read_count = 16
    db_unique_name = SWD1ORACLE1
    disk_asynch_io = TRUE
    dispatchers = '(PROTOCOL=TCP) (SERVICE=datatrakXDB)'
    event = '10235 trace name context forever, level 2'
    filesystemio_options = ASYNCH
    job_queue_processes = 10
    nls_length_semantics = BYTE
    plsql_code_type = INTERPRETED
    plsql_native_library_dir = /u01/app/oracle/ncomplibs/
    plsql_native_library_subdir_count = 150
    recyclebin = OFF
    resource_manager_plan = ''
    service_names = SWD1ORACLE1
    session_cached_cursors = 400
    session_max_open_files = 20
    sga_max_size = 4000M
    smtp_out_server = swd1oracle1
    standby_file_management = AUTO
    streams_pool_size = 50M
    undo_retention = 900
    user_dump_dest = /u02/app/oracle/product/10.2.0/db_1/admin/datatrak/udump
    compatible = 10.2.0.1.0
    control_files = ('/u02/app/oracle/product/10.2.0/db_1/dbs/cf_D-DATATRAK_id-3742967129_i6jqcmaq')
    db_block_size = 8192
    db_create_file_dest = '/u02/app/oracle/oradata/datatrak'
    db_domain = ''
    db_name = datatrak
    db_recovery_file_dest = '/u02/app/oracle/flash_recovery_area'
    db_recovery_file_dest_size = 150G
    log_archive_dest_1 = 'LOCATION=USE_DB_RECOVERY_FILE_DEST VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=DATATRAK'
    log_archive_dest_state_1 = ENABLE
    open_cursors = 6000
    pga_aggregate_target = 250M
    processes = 1500
    remote_login_passwordfile = EXCLUSIVE
    sessions = 1655
    sga_target = 4000M
    undo_management = AUTO
    undo_tablespace = UNDOTBS1
    And the creation of control file:
    CREATE CONTROLFILE REUSE DATABASE "DATATRAK" RESETLOGS NOARCHIVELOG MAXLOGFILES 16 MAXLOGMEMBERS 3 MAXDATAFILES 100 MAXINSTANCES 8 MAXLOGHISTORY 2336 LOGFILE GROUP 1 ( '/u02/app/oracle/oradata/datatrak/redo01.log' ) SIZE 50M, GROUP 2 ( '/u02/app/oracle/oradata/datatrak/redo02.log' ) SIZE 50M DATAFILE '/u02/app/oracle/oradata/datatrak/ora_df664390339_s1151_s1', '/u02/app/oracle/oradata/datatrak/ora_df664390338_s1149_s1', '/u02/app/oracle/oradata/datatrak/ora_df664390339_s1150_s1', '/u02/app/oracle/oradata/datatrak/ora_df664390338_s1145_s1', '/u02/app/oracle/oradata/datatrak/ora_df664390338_s1146_s1', '/u02/app/oracle/oradata/datatrak/ora_df664390338_s1147_s1', '/u02/app/oracle/oradata/datatrak/ora_df664390338_s1148_s1' CHARACTER SET WE8ISO8859P1;
    Sincerely,
    Derek

    Hello

    Now try:

    recover database using backup controlfile until cancel and when the message asking an archive appears, enter the good patch and name and press on enter, repeat it until the last archive you have, then enter Cancel.

    See you soon,.

    Francisco Munoz Alvarez
    http://www.oraclenz.com

  • HP Officejet 5746 e-all-in-one: HOW to connect android phone randomly to print the data of the phone?

    I have Macbook & Office XP connected to the printer (HP Officejet 5746 e-all-in-one printer) necessary to connect Random cell phones to print the data.  All directions?  TIA Doc

    You need a wireless setup to print from Android phones.

    Please see this link for mobile printing options available:

    http://www.HP.com/go/mobileprinting/

    WyreNut

Maybe you are looking for