How to set database credentials to form?

Hi All,
I'm newbie em Forms. I'm facing a situation and I don't know how to solve it. I run a forms application in a giver browser and I'm always asked to type database credentials in order to connect to this database. In development time there's no problem, however, general users cannot have database user and password to be able to access the form.
Is there any way to set database credentials (user, password, database) in order to user not being asked to provide these info ?
thanks a lot

Hi,
Plz configure formsweb.cfg file in order to achieve this. Set the parameter 'userid=<YourDatabaseCredential>'.
e.g. userid=scott/tiger@orcl
thanks & best regards,
Qasim Javaid Malik

Similar Messages

  • How to install database 10g and forms&reports developer 10g?

    hi
    how to install database 10g and forms & reports developer 10g on windows xp 32 bit? and which one is to install first? how to connect them together? where can i find complete guide

    Gul wrote:
    hi
    how to install database 10g and forms & reports developer 10g on windows xp 32 bit? and which one is to install first? how to connect them together? where can i find complete guideThis link will help you http://tahiti.oracle.com/

  • How to set database location for stored procedure

    Post Author: Pavel
    CA Forum: Data Connectivity and SQL
    I've already found out that setting location is not only my problem, but I can't understand the correct decision. We using CR to create reports, accessing the data in MSSQL by ODBC.
    Previously (up to version 8) I set location directly, editing the "Table" field in "Set Location" form. Command after report creation was:
    Proc(DBNAME.dbo.PROCEDURE_NAME;1)
    I erased "DBNAME.dbo.", so the correct command was
    Proc(PROCEDURE_NAME;1)
    After that, the report can run on any database name, any ODBC datasource with any owner name of procedure.
    Now we had to upgdate to CR 11 Developer Edition.
    Here I can't erase database location. But when I change database location to ODBC datasource for another database, the properties of stored procedure "Catalog" and "Owner" remain the same as they initiated when report was created! So, when report runs, it call
    exec OLD_DB_NAME.dbo.PROCEURE_NAME;1 ....
    So, the report doesn't work on customer database, because it has different name.
    How can I erase any database location in the report?We run reports using API from Gupta Team Developer applications, may be it is possible to set database location by API before running report?
    Plese help, any tips are usefull.

    Post Author: Pavel
    CA Forum: Data Connectivity and SQL
    When I set location to another database (i.e. another ODBC datasource) by clicking Update button, "Catalog" property is not changing! It remains unaltered. I had to remove procedure from report and then add procedure from another database, so there was a lot of formatting fileds after that.
    This is not a right decision. I didn't solved current problem, I only temporary patched it.
    The correct desision is to set location programmatically from application.But function PEGetNthTableLocation returns empty strings in CR11, or I incorectly declared this function (from CR8.5):
    BOOL CRPE_API PEGetNthTableLocation ( short printJob,  //handle to print job short tableN,  //number of table struct PETableLocation FAR *location     //structure pointer);typedef struct PETableLocation {    WORD StructSize;    char Location &#91;PE_TABLE_LOCATION_LEN&#93;; //256    char SubLocation&#91;PE_TABLE_LOCATION_LEN&#93;; //256    char ConnectBuffer&#91;PE_CONNECTION_BUFFER_LEN&#93;; //512} PETableLocation;

  • HOW-TO specify database credentials in LDAP user

    Hi:
    I want to know how can i specify oracle database credentials (oracle database usernname) that one specific user will use to connect to the database for instance when using Oracle Forms.
    I saw in OID some "tags" like orcluserv1, etc... is this ? how can i do it ?
    For instance i want that:
    LDAP user Database user
    user00001 dbuserA
    user00002 dbuserA
    user00003 dbuserA
    user00004 dbuserB
    user00005 dbuserB
    So ldap user00001 will connect to the database with dbuserA ..
    Thanks in advance,
    Ricardo

    Hi Ashish:
    I've succesfully created an user with OIDDAS and assign it a "resource acess information" of type OracleDB.
    So, when creating this user i specified the username in db that this user will use to access database. Until now, it's all perfect. But, where's this information is stored ?
    I've access OID Manager and see that user is create in the Entry Management, but the DB information is not stored in any of the properties of this user.
    This is a problem, because I want to make an APP that will use DBMS_LDAP pack to create user dynamically, so I have to know what attributes/classes/properties that user needs for assign it to a specific DB user.
    Can you help ?
    Thanks The information is stored in an Oracle Specific container called 'cn=oracleContext' in the default subscriber.
    You can use the DBMS_LDAP_UTL package (shipped in iAS 902) to query these Resource Access Descriptors. Directly
    storing these from PL/SQL is not presently supported. OIDDAS is the only interface through which you can get this done.

  • How to set connection between oracle forms and DB?

    I have installed win xp,
    oracle database 10g in c drive ,
    oracle forms and reports 10g in d drive ,
    how do i set the connection between forms and DB ?
    i know its an old question but i am very new to this !
    thanks in advance.

    You didn't mention the versions or whether you are using Developer Suite or Application Server. I guess it really doesn't matter in this case, but please provide complete information in the future.
    In order to connect the F/R home to a db you will need to make the appropriate configuration entries in tnsnames.ora found in the F/R home (\NETWORK\ADMIN). The entry you add will be similar to the one found in the tnsnames.ora for the db which is found in a similar directory in the db home. The entry will look something like this:
    ORCL =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = myMachine)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = myMachine)
      )

  • How to set Database Logon Info, if allowDatabaseLogonPrompting="false"

    Hey,
    Here is the Version Details -
    Crystal report X1 R1
    Sql Server 2005
    Tomcat 5.5.27
    Question -
    I am using jsf viewer to dispaly report in my web project. We don't want to prompt for database logon information before showing the report to teh front user. I have seen few sample jsp code which creates the crystalreportviewer object and set the connectioninfo details and calls the processhttprequest method to render the report. I have tried the same approach and it works for us.
    But our requirement is to just use the jsf tags. Is there a way to pass the database credentials to the jsp without prompting for Logon Information or using the java code to populate the connectioninfo in crystalreportviewer instance.
    Here is the jsp file -
    <%@ taglib uri="/crystal-tags-reportviewer.tld" prefix="crviewer" %>
    <crviewer:viewer displayGroupTree="false" viewerName="CrystalViewer"
    reportSourceType="reportingComponent"
    displayGroupTree="false"       
            displayToolbarExportButton="true"
            displayToolbarPrintButton="true"
            displayToolbarRefreshButton="true"
            displayToolbarToggleTreeButton="false"
            displayToolbarCrystalLogo="true"
    top="100"
    left="200"
    reportSourceVar="#{Report.reportSource}"
    isOwnPage="true"
    displayGroupTree="false"
    allowDatabaseLogonPrompting="false">
    <crviewer:report reportName="Report.rpt">
         <crviewer:partsViewer viewerName="CrystalViewer"
              reportSourceType="reportingComponent"
              title="Fill to Fill Report"
              numberOfRecords="10"
              showHeadings="true"
              showPageNavigationLinks="true"
              allowParameterPrompting="false"
              reportSourceVar="#{Report.reportSource}"/>
    </crviewer:report>
    </crviewer:viewer>
    I am trying to run this and it shows an error page with information Database Login Error.
    I have created the report using JDBC/JNDI database connection with trusted authentication = false.
    The Sql Server 2005 error log shows -
    Error: 18456, Severity: 14, State: 5.
    Logon       Login failed for user ''. [CLIENT: <named pipe>]
    Any help will really be appreciated.
    Thanks
    Bonyshree

    Yes within the report designer i am able to refresh the report and open and close the report without getting prompted. I am not changing any database properties at runtime and using the jar files which come with CR Release 2.
    All i am doing is to export the report in pdf format. Here is the code :
    ReportExportControl exportControl = new ReportExportControl();
    ExportOptions exportOptions = new ExportOptions();
    PDFExportFormatOptions  pdfOptions = new PDFExportFormatOptions();
    exportOptions.setExportFormatType(ReportExportFormat.PDF);                 
    exportOptions.setFormatOptions(pdfOptions);     
    exportControl.setExportOptions(exportOptions);
    exportControl.setExportAsAttachment(false);     
    exportControl.setReportSource(this.wrapper.getReportSource());
    exportControl.setName(this.wrapper.getReportName());
    exportControl.setEnableLogonPrompt(false);
    //Pass Fields object to ReportExportControl
    exportControl.setParameterFields(this.wrapper.getFields());
    //Export only works if i pass the connections object with connectioninfo object populated with username and password.
    //We want to run the report using trusted authentication i.e. we don't want to pass username and password.
    exportControl.setDatabaseLogonInfos(connections);               
    if(to_refresh)
      exportControl.refresh();
    If i don't provide the connectioninfo object with proper username and password to run the report inside the java class, it try's to logon to database using username = 'userid'. I think it picks it from the JDBC Connection String created while creating database connection for the report in the designer.
    Here is the jdbc connection string for the JDBC/JNDI connection created inside the report designer:
    !net.sourceforge.jtds.jdbc.Driver!jdbc:jtds:sqlserver://localhost:1433/customer;namedPipe=true!user=!password=.
    Is there a way to get pass this problem??? Is there a way to force the connection from the java class to use trusted authetication??? Can we change the connection string to replace the userid with empty string to force trusted authetication???
    Any help will be really appreciated.
    Regards
    Bonyshree

  • How to complie database link in forms 6i

    Dear All,
    how can i compile database link in forms 6i ??
    Mujtaba

    follow the below step to connect database from 6i forms.
    Open C:\orant\net80\admin\tnsnames.ora in notepad as below.
    ORCL =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = servername)(PORT = 1521))
        (CONNECT_DATA = (SID = ORCL))
      )look orcl as above in host put your servername or IP address where database installed . restart the pc and connect with scott/tiger@orcl.
    Hope it helps.
    Regards
    Moazam

  • How to set special payment advise form for payment advise.

    Hello,
    i would like to set special sap script form payment advise for particular payment method (not only for company code) but print program calls every time only one payment advise form from tcode OBZ1  - table T042B (not from OBZ4 - table T042E).
    Can be payment advise form dependent on payment method?
    Is it possible at all.
    thanks

    OK

  • How to set database information runtime with delphi 2007 vcl11

    hi
    i'm trying to set database information runtime. I'm using mssql express 2005 and doing the following to set database information at runtime.
    for x  := 1 to crpe1.Tables.Count do
    begin
      crpe1.LogOnInfo.Items[x].ServerName := server.text;
      crpe1.logoninfo.items[x].DatabaseName := database.text;
      crpe1.logoninfo.items[x].UserID:=username.text;
      crpe1.logoninfo.items[x].Password := pass.text;
    end;
    is above code correct to set the database information?
    Thanks in advance,
    Parv

    hi all,
    i resolved it somehow. thanks.
    Parv

  • How to set the notifications structure form a form in IDM 8.0.0.5

    Hi,
    we are using Identity Manager 8.0.0.5 and we are trying to set the notifications structure which is evaluated in the Create User and Update User workflow from within our Tabbed User Form and from a ActivveSync Form.
    We had no success in either case so far.
    Any ideas on how to do this?
    What we want to achieve is send additional notifications if certain attribute conditions are met.
    Thans for any answer.
    Ugato

    A text frame in text is an anchored or inline item, so you either have to set the leading of the parent character or use the anchored options of the frames.
    Dave

  • How to set password in the form, request is coming from SPML with no pwd

    Hi ,
    Im using SPML request to create and modify users? I have 2 problems
    1) Does anyone know, how to customize the form to call 2 different workflow depending on the request meaning, if SPML request is ADD, then it should call Create User workflow, and SPML request is MOD then it should call Update User workflow.
    Right now, i don't know who to do it and currently it is working for create users only.
    2) Im not getting password field from SPML request, so i have to set password with value 'password' in the form. Can i do that and How?
    Appriciate any response

    Hi,
    According to your post, I know you want to add a custom field to Task form. When vale is Yes, send the email to the assigned person. When the value is No, item update and user can approve the task without the email sending out.
    Doubt you have already create an approval workflow which associated with Task list in SharePoint Designer.
    1. To add new fields to Task Form, click New button in Task Form Fields section. Name the “Send the email or not” of choose type. See the below image:
    Then, save and publish the workflow to make it effect. You can visit the following article for details:
    Updating List Item with Task Form Custom Field in SharePoint Approval 2010 Workflow
    http://blogs.msdn.com/b/kishore/archive/2012/01/15/updating-list-item-with-task-form-custom-field-in-sharepoint-approval-2010-workflow.aspx
    2. In SharePoint Designer, create another workflow which associated with Task list.
    a. Click workflows > List Workflow and choose Task list.
    b. Add the condition, if the current item: “Send the email or not” is equals to yes. Then, add the action “Send an email”.
    c. Publish the workflow.
    Thanks.
    Tracy Cai
    TechNet Community Support

  • How to set DEBUG_FLAG = Y everytime form Print Statement ARXSUPST is opened

    Hi,
    Navigation: (R) AR Manager -> Print Documents -> Statements -> This opens Print Statement form.
    Goto Help -> Diagnostics -> Examine -> Block = SUPST_BLK, Field = DEBUG_FLAG; here the default value is N. I want to set the default value to Y
    Please let me know how to achieve this.
    Thank you.
    Manoj

    Hi,
    I could set DEBUG_FLAG to Y using Form Personalization follows:
    Trigger Event: WHEN-NEW-BLOCK-INSTANCE
    Context: my username
    Under Actions:
    Type: Property
    Object Type: Item
    Target Object: SUPST_BLK.DEBUG_FLAG
    Property Name: Value
    Value: Y
    Thanks
    Manoj

  • How to set database location in the crystal report X1 from the Source code.

    Dear All,
    I am using Crystal report X1 for report generation.Now I am setting the database location manually in the crystal report. How can I Set the database location from the Source code.
    Awaiting for your reply.
    Thanks in advance.
    Regards,
    Rahaneef T

    Here's a routine that also searches for subreports to set the log on info. Simply remove that aprt to set the main report logon info:
    IDatabaseTablePtr pTable;
    //get first table
    pTable = m_Report->Database->Tables->GetItem(1) ;
    long lTableCount = m_Report->Database->Tables->Count;
    for( long lTable=1; lTable<=lTableCount; lTable++ )
         pTable = m_Report->Database->Tables->GetItem(lTable);
         pTable->ConnectionProperties->DeleteAll();
         pTable->ConnectionProperties->Add("DSN", "Name of your DSN");
         pTable->ConnectionProperties->Add("Database", "Demo");
         pTable->ConnectionProperties->Add("Password", "sa");
         pTable->ConnectionProperties->Add("User ID", "1Oem2000");
    // Log on the tables of the subreports.
    long lSectionCount = m_Report->Sections->Count;
    for( long lSection=1; lSection<=lSectionCount; lSection++ )
         ISectionPtr pSection = m_Report->Sections->Item[lSection];
         long lSubreportCount = pSection->ReportObjects->Count;
         for( long lSubreport=1; lSubreport<=lSubreportCount; lSubreport++ )
              IReportObjectPtr pSubreportObject = pSection->ReportObjects->Item[lSubreport];
              CRObjectKind crObjectKind;
              pSubreportObject->get_Kind(&crObjectKind);
              if( crObjectKind == crSubreportObject )
                   ISubreportObjectPtr SubReportPtr = pSubreportObject;
                   IReportPtr pSubReport = SubReportPtr->OpenSubreport();
                   long lTableCount = pSubReport->Database->Tables->Count;
                   for( long lTable=1; lTable<=lTableCount; lTable++ )
                        pTable = m_Report->Database->Tables->GetItem(lTable);
                        pTable->ConnectionProperties->DeleteAll();
                        //pTable->ConnectionProperties->Add("DSN", "dwcb12003");
                        pTable->ConnectionProperties->Add("Database", "CrystalEport_DB");
                        pTable->ConnectionProperties->Add("Password", "sa");
                        pTable->ConnectionProperties->Add("User ID", "1Oem2000");
    If that doesn't work you need to tell us what is the error you are getting and paste in the code you are using.

  • EM on Windoze - How to set OS credentials

    OS: Windoze 2003 64 bit
    Oracle: 11.2.0.1
    Background:
    Expertize on Windoze: novice
    When I establish remote connection, I enter 'oracle' as userid, the password and select local machine...no problemo there.
    Now I am trying to set the OS 'preferred credentials' in order to schedule/submit jobs on that server, but all I get is "ERROR: Invalid username and/or password".
    I tried:
    orarcle + password
    {servername}\orarcle + password
    \\\{servername}\orarcle + password
    Nothing works!
    Is there something I need the Windoze admins to "turn on" or what?
    Thanks for your insight/links/ideas/jokes or any relevant info.
    :p

    4.3.12 Setting Credentials for the Job System to Work with Enterprise Manager
    Windows systems require that you set the correct credentials for the Jobs system to work properly in Enterprise Manager. By default, the Management Agent service is installed as a LocalSystem user. When submitting jobs, such as stopping or starting the database, the user submitting the job must have the Log on as a batch job privilege enabled.
    Perform the following steps to establish that privilege for any operating system user who needs to submit an Enterprise Manager job.
    1.     Start the Local Security Policy tool:
    o     Windows 2000: From the Start menu, select Control Panel, Administrative Tools, then Local Security Policy.
    o     Windows 2003: From the Start menu, select Administrative Tools, then Local Security Policy.
    o     Windows XP: From the Start menu, select Control Panel, Administrative Tools, then Local Security Policy.
    o     Windows Vista: From the Start menu, select Programs, Administrative Tools, then Local Security Policy.
    2.     Under the Security Settings list, expand the list to Local Policies.
    3.     Under Local Policies, double-click User Rights Assignment.
    4.     Under Policy, search for the Log on as a batch job policy.
    If the Management Agent service is installed as any other user (that is, not LocalSystem), then, in addition to granting the Log on as a batch job privilege, you must grant the "Windows service" user the following three privileges:
    o     Act as part of the operating system
    o     Adjust memory quotas for a process (This setting is named Increase memory quotas on Windows 2000.)
    o     Replace a process level token
    5.     With each policy, perform the following steps:
    a.     Double-click the policy name.
    b.     In the Properties dialog box, click Add User or Group.
    c.     In the Select Users or Groups dialog box, enter the name of the user (for example, jsmith, administrator, and so on.)
    Note:
    On Windows Vista, the name of the dialog box is Select Users, Computers, or Groups.
    d.     Click Check Names to check that you have entered the name correctly.
    e.     Click OK.
    6.     Click OK to exit the Properties dialog box, then exit Local Security Settings and Administrative Tools.
    7.     Restart your computer.
    If a user exists locally and at the domain level, Windows gives the local user precedence. To use the domain user, qualify the user name with the domain name. For example, to use the user joe in the ACCOUNTS domain specify the user name as ACCOUNTS\joe.

  • How to diplay database elements using form variables

    please tell me how to display inserted database items using a
    form field (like a text box) to display selected records using this
    form field

    jessyarai,
    > please tell me how to display inserted database items
    using a form field (like a text box) to display selected records
    using this form field
    Start by generating some pages using the Wizards for
    Master/Detail
    pages, Insert page, etc. with your database. Then switch to
    Code View to
    see the code that is generated. That's how I learned it :)
    Hope this helps,
    Randy

Maybe you are looking for

  • Lag on key press (key event)

    Hello, I am currently working on a simple game in Java. I've used Java's Key_Pressed in Key Event to control a ship moving back and forth with the up and down keys. I've noticed that when a key is pressed there is a short pause before the ship actual

  • How to set scrollPolicy in table

    In the documentation in appendix D in the developers guide [http://docs.oracle.com/cd/E35521_01/web.111230/e16181/ap_tablet.htm#BABCEBJJ] which says : Table By default, when rendered on tablet devices, tables display a footer that allows the user to

  • Songs ending early on iphone

    Hello, Need some help.  Seen similar posts to mine with different circumstances so i thought i would just start a new thread. Iphone 4, updated to latest software, iTunes updated to latest as well.  Songs play fine in iTunes.  so far, approximately 1

  • ZFS and updates/patches

    I read that patch 119254-49 SunOS 5.10: Install and Patch Utilities Patch fixes the zones on zfs problem. Is that so? I can't find anything in the patch description that confirms the fix. Thanks

  • Runtime.exec work in windows but not in solaris??

    hi all, can someone tell me why the following code work in windows platform but doesnt work in solaris?The program tries to ping 127.0.0.1 and the output is correct in windows, but when i try it in solaris, it produces the following exception : Inter