Oracle-forms+Microsoft SQL Server7

I am working with Oracle Forms/Report6i to work against Microsoft SQL Server 7.
How to set a SQLSERVER role to a give user dynamically from oracle form or report.
Also please mail me if anyone is using oracle forms/report extensively against SQL Server.
Any help is most welcome at [email protected]

This forum is meant for discussions about OTN content/site and services.
Questions about Oracle products and technologies will NOT be answered in this forum. Please post your product or technology related questions in the appropriate product or technology forums, which are monitored by Oracle product managers.
Product forums:
http://forums.oracle.com/forums/index.jsp?cat=9
Technology forums:
http://forums.oracle.com/forums/index.jsp?cat=10
As a general guideline, please first search the forum to see if your question is already answered. You will find answers for the most frequently asked questions by simply searching the forum. This will help you to find the answer right away and will save time for all of us.

Similar Messages

  • Oracle forms to SQL SERVER

    Hi
    I have to connect oracle forms to sql server, as per documentation, I created a ODBC string for SQL SERVER, In connect dialog box for oracle forms I entered username, password and @ODBC_string:Database_Name in connect.
    I am not able to connect. Please help me.
    Avinash

    Perhaps your question is more suitable for the Forms forum:
    Forms
    There's APEX as well: http://www.oracle.com/technology/products/database/application_express/html/apex_for_forms.html

  • Connect oracle forms to sql server 2000

    Kindly tell me what kinds of scripts i have to install in SQL Server.

    Hi,
    You have 2 major options:
    1. Use Generic Connectivity with your Oracle 9i database running on Solaris. However it requires a proper ODBC-Driver to be installed on Solaris capable of connecting to Microsoft SQL Server
    MetaLink DocID: 245549.1 - How to setup Generic Connectivity - HSODBC - on SUN Solaris
    Remark: Oracle 9i has been de-supported, should you run into new bugs they wouldn't be fixed by Oracle
    2. Install and use the Database Gateway for ODBC 11g on the same machine which hosts the SQL Server database. Usage of this gateway is included in the Oracle database license. DG4ODBC also requires an ODBC-Driver but this one is mostly already present.
    Another option would be to install the Database Gateway for MS SQL Server (DG4MSQL) 11g on the same machine which hosts the SQL Server database. However this gateway requires an additional license. The big advantage of this gateway over DG4ODBC is that it supports the two phase commit protocol (distributed updates) and calling of SQL Server stored procedures. Also the dataype mapping is better compared to DG4ODBC.
    One thing though; in order for you Oracle 9i database to cooperate with one of the 11g gateways a patch for bug 5965763 on top of 9.2.0.8.0 is required. See also MetaLink DocID: 457808.1 for more details.
    I hope this get you going.
    Regards,
    Ed

  • Interfacing Oracle with Microsoft SQL?

    Hi,
    My workplace uses Microsoft SQL server and I'm trying to encourage our IT department to install 10g express so we can make use of Application Express.
    One problem is that the Apex application would need to access data stored in the Microsoft SQL server (there is no chance of converting it to an Oracle database anytime soon).
    Are there any popular solutions for interfacing the two databases?
    We would be looking at perhaps 100-500 queries on the Microsoft database per day, nothing very demanding.
    Regards,
    David

    hinpong:
    Thank you for the suggestion, I am open to other ideas. I am not sure what other tools are out there that will meet my needs.
    Our IT department has written applications with Visual Studio and Ajax but is unable to maintain or fully debug them. They are not thrilled with the prospect of me writing a program that interfaces direclty with their database but a separate database and the web-based development environment of Apex is a possibility.
    We have been planning on not linking the two databases at all but if our IT department were able to handle something such as setting up a script to replicate the data on a daily basis, perhaps we could get the link regardless.
    We need to retrieve a part number, given a part name, from the MSSQL database, nothing more. This would only need to be retrieved when new records are being created.
    What other tools would you recommend given this scenario?
    The database will have about 30 fields, less than 100 queries per day, and up to 5 new records per day. It is not very demanding at all, in my opinion, and I wouldn't have a problem even writing something with php/mysql if that were an option but it is not.
    Regards,
    David

  • Oracle forms 9i/10g connecting SQL Server

    I am currently working on a Project with Oracle Forms 9i at front end and Microsoft
    SQL server at back end. Could Any one please recommand me the steps to connect
    Oracle 9i application with SQL Server database.
    Thanks in Advance...
    M. Aamer Javaid
    Oracle Certified DBA
    [email protected]

    Follwoing is the soluton which I got from orafaq forum:
    <<<<<
    I'd go for an ODBC on the database server, using HSODBC. It worked quite well on a data warehouse project using OWB. I fail to see why it wouldn't work for Forms.
    MHE
    >>>>>
    Now I'm fully in a confused and frustrated state. Each person is saying different solutions for the problem. One person is saying to connect using ODBC driver while other is saying to connect JDBC driver. Actually which driver should I configure? Also no one is giving a clear picture for the problem.
    How can I get a detailed solution for this problem (with screen shots) which include step by step procedure to configure a driver?
    So, I would be pleased if you could please guide me with step by step procedure to get connected with Oracle Forms using SQL Server?
    Or atleast some reference site where I can find the same.
    Thanks.

  • Oracle forms 9i/10g connecting SQL Server 2000

    Could anyone please guide me in detail to connect Oracle Forms 9i/10g with MS SQL Server database?
    To connect with Oracle Database, we need to copy and paste the tnsnames.ora file from the Oracle Database folder to the Oracle Forms folder.
    But how do i connect with other databases like SQL Server, MS Access, and so on?
    Thanks in advance.

    Follwoing is the soluton which I got from orafaq forum:
    <<<<<
    I'd go for an ODBC on the database server, using HSODBC. It worked quite well on a data warehouse project using OWB. I fail to see why it wouldn't work for Forms.
    MHE
    >>>>>
    Now I'm fully in a confused and frustrated state. Each person is saying different solutions for the problem. One person is saying to connect using ODBC driver while other is saying to connect JDBC driver. Actually which driver should I configure? Also no one is giving a clear picture for the problem.
    How can I get a detailed solution for this problem (with screen shots) which include step by step procedure to configure a driver?
    So, I would be pleased if you could please guide me with step by step procedure to get connected with Oracle Forms using SQL Server?
    Or atleast some reference site where I can find the same.
    Thanks.

  • Forms pl/sql in oracle adf

    hi how can i re use this oracle forms pl/sql
    {PROCEDURE perform_logon IS
    error_message varchar2(100);
    usr_id integer;
    fail_cnt integer;
    fail_limit integer;
    pwd sms_users.pwd%type;
    pwd_dt date;
    pwd_dt_period integer;
    sysdt date;
    msg_lvl varchar2(20) := :system.message_level;
    cursor usr is
      select id,pwd_change_dt,sysdate,pwd,login_failure_count
      from sms_users
      where user_id = :logon.usr_id
    --  and   pwd     = sms_secure.crypt('USR',id,:logon.pwd)
    BEGIN
    set_clnt_details;
      if :logon.usr_id is null then
            error_message := 'User id must be specified';
         sms_code.error_message('SMS-'||to_char(0000001)||': '||error_message,'', 'E', 'SMS');
      end if;
      if :logon.pwd is null then
            error_message := 'Password must be specified';
         sms_code.error_message('SMS-'||to_char(0000002)||': '||error_message,'', 'E', 'SMS');
      end if;
      pwd_dt_period := sms_global.ref_code('SMS','PWD_PERIOD',30,1);
      fail_limit    := sms_global.ref_code('SMS','PWD_FAIL_LIMIT',3,1);
      open usr;
      fetch usr into  usr_id,pwd_dt,sysdt,pwd,fail_cnt;
      if usr%NOTFOUND then
         close usr;
                 sms_alog.record(:global.clnt_user    
                         ,:global.clnt_host_name ||':'||:global.clnt_ip_addr
                         ,'Logon'
                         ,:logon.usr_id
                         ,'Not SMS User'
                         ,:logon.usr_id
                         ,'sms0000');
            error_message := 'Logon to SMS Denied';
         sms_code.error_message('SMS-'||to_char(0000003)||': '||error_message,'', 'E', 'SMS');
      end if;
      close usr;
      if fail_cnt > fail_limit then
                       sms_alog.record(:global.clnt_user    
                         ,:global.clnt_host_name ||':'||:global.clnt_ip_addr
                         ,'Logon - PWD'
                         ,:logon.usr_id ||':'||fail_cnt||':'||fail_limit
                         ,'Password retry limit exceeded'
                         ,:logon.usr_id
                         ,'sms0000');
            error_message := 'Password error limit have been exceeded contact the Administrator';
         sms_code.error_message('SMS-'||to_char(0000014)||': '||error_message,'', 'E', 'SMS');
      end if;       
      if pwd <> sms_secure.crypt('USR',usr_id,:logon.pwd) then
       sms_global.set_user_id(:logon.usr_id);
            update sms_users
              set login_failure_count = nvl(login_failure_count,0) + 1
              where id = usr_id
              :system.message_level := 15;
                          sms_alog.record(:global.clnt_user    
                         ,:global.clnt_host_name ||':'||:global.clnt_ip_addr
                         ,'Logon - PWD Error'
                         ,:logon.usr_id ||':'||:logon.pwd
                         ,'Wrong user Password'
                         ,:logon.usr_id
                         ,'sms0000');
              commit;
              :system.message_level := msg_lvl;
            error_message := 'Logon to SMS Denied';
         sms_code.error_message('SMS-'||to_char(0000003)||': '||error_message,'', 'E', 'SMS');
      else
           if fail_cnt > 0 then
            update sms_users
              set login_failure_count = 0
              where id = usr_id
                          sms_alog.record(:global.clnt_user    
                         ,:global.clnt_host_name ||':'||:global.clnt_ip_addr
                         ,'Logon - PWD Correct'
                         ,:logon.usr_id
                         ,'Reset Failed count'
                         ,:logon.usr_id
                         ,'sms0000');
              :system.message_level := 15;
              commit;
              :system.message_level := msg_lvl;
        end if;            
                          sms_alog.record(:global.clnt_user    
                         ,:global.clnt_host_name ||':'||:global.clnt_ip_addr
                         ,'Logon - PWD Correct'
                         ,:logon.usr_id
                         ,'Success'
                         ,:logon.usr_id
                         ,'sms0000');
      end if; 
      if trunc(pwd_dt + pwd_dt_period) < sysdt then
            login_pwd_title;
         hide_an_item('logon.new_pwd1',1);
         hide_an_item('logon.new_pwd2',1);
                               sms_alog.record(:global.clnt_user    
                         ,:global.clnt_host_name ||':'||:global.clnt_ip_addr
                         ,'Logon - PWD Expired'
                         ,:logon.usr_id
                         ,'Password use Expired'
                         ,:logon.usr_id
                         ,'sms0000');
            error_message := 'Password Expired. Please change password.';
         sms_code.error_message('SMS-'||to_char(0000004)||': '||error_message,'', 'E', 'SMS');
      end if;       
       sms_global.set_user_id(:logon.usr_id);
       :global.User := :logon.usr_id;
       validate_usr_profiles (:logon.usr_id);
    END;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi.
    you can call procedures or functions without problems, and thus reuse
    see the doc http://docs.oracle.com/cd/E24382_01/web.1112/e16182/bcadvgen.htm#sm0297

  • Connecting Oracle forms 10g to SQL 2000?

    Hi,
    Can someone please help me connect oracle forms to sql 2000. I have searched online with no luck; however, I know oracle can use ODBC.
    thanks,

    See
    http://www.oracle.com/technology/products/forms/pdf/275201.pdf

  • How to be a Forms & PL/SQL Expert?

    Hi Experts, I am very new to Oracle Forms and PL/SQL. I have been doing development in Forms (mostly in 10g but I also in 6i) and PL/SQL for little over 2 years.
    My problem is, I don't know much about how to progress up the ladder to be an Oracle Forms & PL/SQL expert.
    My other big problem is trying to find out how to keep pace with the latest development in Forms and PL/SQL.
    For example, my manager asked me how to print a file in a client printer. I could not give him a solution at once. Only after couple of hours of searching did I find the solution using WebUtil.
    Another instance a manger asked me how to encrypt data in Oracle forms. Again I had to do an extensive search on the web.
    Can an "expert" give a solution at once, without going to the web?
    Another time I was asked to do a performance tuning and could not do it since I have not done before. I tried to follow the method found in this site using a personal DB in my machine but could not simulate a situation.
    How do you keep track of latest developments?
    Are their any sites to go to?
    Is there a routine you can follow?
    Do you have to do R&D regularly? How often?
    How many hours of reading web-sites (on Forms, PL/SQL stuff) should you do for a week?
    How do YOU experts do it?
    You advice would be greatly appreciated.

    First of all I don't consider myself an expert, so my advice here might be flawed as they are based on my experiences ;)
    Can an "expert" give a solution at once, without going to the web?Frankly I hardly know how to write a file using text_io or utl_file, or use some other somewhat regular-use supplied packages without looking them up in the documentation. Well I somehow know, but the code will most certainly throw compile errors. This is due to the fact that the entire oracle documentation is huge, and there are version dependend manuals, and I never liked memorizing things I could easily look up. It just doesn't make sense to memorize entire documentations when you can look them up. So even for basics I go to the web...
    For example, my manager asked me how to print a file in a client printer. I could not give him a solution at once. Only after couple of hours of searching did I find the solution using WebUtil. So in the end you found a solution yourself didn't you?
    Another instance a manger asked me how to encrypt data in Oracle forms. Again I had to do an extensive search on the web.I am around forms a few years, and I don't know an ad-hoc answer to that. I might have a clue, but for a advice I'd have to try and most certainly consult google.
    Another time I was asked to do a performance tuning and could not do it since I have not done before. I tried to follow the method found in this site using a personal DB in my machine but could not simulate a situation. And you know at least where to start now even if you didn't solve the problem, don't you?
    When I started programming C/C++ in school we had a teacher who I consider a C-Guru. Sometimes the answer to how would I implement X? was I don't know exactly yet, but let me do some research and I'll show you. Needless to say that we certainly got our answers. The same guy taught Java with the opening phrase I don't know much about Java, but it is Object-Oriented, the Syntax is C like,and the documentation is quite extensive. He explained things better to us then others who asserted knowing Java.
    IMHO curiosity and being keen to experiment are much more valuable then the ability to memorize manuals and APIs. You might solve your problems with your actual knowledge today, but tomorrow there are new challenges which require new knowledge to be accumulated.
    If you face a problem don't hesitate to get your hands dirty. If a program doesn't do what it's supposed to do fire up the debugger, look at diagnostic infos and see why it fails instead crying about that you don't know why. If you need to learn a new language install the compiler, and write code until it compiles and does what you want it to do. If you need to work with the new asdf server enterprise edition install it, turn it upside down, blow it's config into pieces until it stops working and maybe get it running after that.
    Everything else boils down to showing an active interest in the things you do. There is no formula saying "spend X hours a week on asktom and eventually become a database expert". I regularly (can't say how often) visit asktom because I like reading the questions there. I don't do it because I must or want to become an expert someday, it is simple curiosity.
    As for places to look this is answered easily: the key source for informations on new products is the vendors homepage. It's OTN for oracle, MSDN for microsoft, ubuntu.com for ubuntu, and what ever else. Technical articles etc. about the products are at least listed there.
    Of course in software development there is (at least) one rule which always applies:
    always write code as if the person who will maintain your code is a maniac serial killer that knows where you live
    cheers

  • OLE Controls in Oracle Forms 6

    Env: Oracle 8xi, Forms 6, Attachmate Infoconnect OCX, Windows 2000
    Hey All,
    I am looking for general information on using Oracle Forms PL*SQL Library
    for OLE2 to access and utilize a 3rd party Ole Control. I have a short-term
    gig doing this and with the exception of how to utilize the properties and
    methods of a 3rd Party OCX, I am a fish out of water when it comes to Oracle
    development. I can embedded and utilize the control in VB and VC++ with no
    problems but I need some help on how to embedded an OCX into an Oracle Form
    and instantiate and use it through PL*SQL and the Oracle OLE2 Library. There
    is no documentation on how to do this with Oracle from Attachmate. According
    to Oracle you can use a 32 bit OCX in an Oracle form. I just need
    a little help on how to do it.Any code snippets, book reccommedations, sites, or advice as to where to
    look would be helpful.
    Additionally, I am looking for anyone who has specific experience in using
    Attachemate's Infoconnect OCX. Any info you could share would be
    appreciated. Thanks for any help you can provide!
    Vince
    null

    Hi,
    Thanks for your info. I tried that. But i could not complete. It gives me compilation errors.
    If you have any sample apps. can u forward it to me?
    Balaji

  • Accessing Microsoft SQL Server Data by using Oracle Forms 9i

    I am currently working on a Project with Oracle Forms 9i at front end and Microsoft
    SQL server at back end. Could Any one please recommand me the STEPS to connect Oracle forms 9i application with SQL Server database.
    Thanks in Advance...
    M. Aamer Javaid
    Oracle Certified DBA
    [email protected]

    1). Is this functionality be added to Forms 10g or later products or it is obsoleted.
    There are no plans to add OCA functionality.
    2). Steps to connect Forms 9i natively by using Java Importer.
    You will need to write some Java to connect to your source, perform the operations you want to do, and return that data to Forms. Doing this, though, means that you may lose the transaction management functionality that Forms provides for you.
    I cannot tell you what Java to write. It depends on your source and what you want to achieve. As for how to use the Java Importer, this is in the Forms documentation and there are papers on the Forms page on OTN.
    3). Any third party product that can conenct the both products natively.
    I don't know of any.
    Regards,
    Robin.

  • How to connect to SQL server 2000 with Oracle Form

    Hi,
    I'm looking for the document of how to connect "SQL Server 2000" with Oracle Form 6i. Anyone knows that?

    Shay or other knowledgeable folks,
    Is there a way to utilize the wizard for "Business Tier > ADF Business Components > Business Components from Tables" for SQL Server 2000, 2005 or 2008. I can successfully execute sql via java programmatically or import a table from SQL Server with "Business Tier > ADF Business Components > Entity Object" wizard, but the Business Components from Tables simply doesn't see any tables under any schema. Without the "Business Components from Tables", i don't get the referential constraints imported into the application and to code all those from scratch is just not as elegant. So far i have only utilized the sql server jdbc driver from Microsoft (versions, 1.1, 1.2 and 2.0). Is there an alternative client that i need to use to enable selecting tables from that "Business Components from Tables" wizard. Is this a limitation of SQL Server, the jdbc driver or the wizard itself? Did anybody else experience the same issues? I am using Jdeveloper 11.1.1.0.1 against SQL Server 2005 (currently)
    Thanks,
    Andy

  • Forms talking to Microsoft SQL Server

    I have a form that is based on an Oracle database. DML is handled by forms and the oracle database.
    I have on field that takes a ticket number. When this field is filled out I want to connect to a Microsoft SQL Server and make sure that the ticket number references a real ticket.
    In the validation trigger, how do I connect to a microsoft sql server, run a sql statement, test the results?

    Here I give you a Oracle sample to access ACCESS DB by OCI, hope this will help you to SQL SERVER.
    How to query an MS Access database using an OCA ODBC connection?
    Note: This article makes reference to directories relevant to Forms 6i
    Solution Description
    ====================
    1. Attach the oca.pll, located in the %ORACLE_HOME%/oca60/plsqllib directory,
    to the desired fmb.
    For this directory to appear the Oracle Open Client Adapter Component
    needs to be installed from the base Developer 6i R2 cd.
    2. Write a program unit similar to the following:
    FUNCTION get_access RETURN pls_integer IS
    connection pls_integer;
    cursor1 pls_integer;
    stmt varchar2(1000);
    n pls_integer;
    BEGIN
    stmt := 'select count(*) from emp';
    connection := oca.dbconnect('scott/tiger@odbc:msa');
    message(to_char(connection));
    cursor1 := oca.execute(connection,stmt);
    loop
    begin
    oca.fetch_row(connection,cursor1);
    oca.coldata(connection,cursor1,1,n);
    message(to_char(n)||' record(s)');
    exception
    when no_data_found then
    message('NO MORE ROWS');
    exit;
    end;
    end loop;
    oca.close(connection,cursor1);
    oca.disconnect(connection);
    return n;
    exception
    when oca.connection_error then
    message('OCA-Connection error');
    when oca.cursor_error then
    message('OCA-Cursor error');
    when others then
    message('Other Error');
    end;
    References:
    %ORACLE_HOME%\tools\doc60\us\oca_info.pdf
    "Using Oracle Forms Developer, Oracle Reports Developer and the Oracle Open
    Client Adapter to Access ODBC Data Sources

  • Connect Oracle Forms 6i with Sql server

    Plz tell how to connect oracle Developer 6i with Microsoft Sql Server 2005.
    thanks

    Ghulam Yassen wrote:
    Plz tell how to connect oracle Developer 6i with Microsoft Sql Server 2005.
    thanksOracle Forms is best used against an Oracle database... so why on Earth would you want to use it against SQL Server?
    Aside from that, Oracle Forms is old technology... you'd be better using Oracle Application Express (Apex) for producing web based apps.
    If you must do things against an SQL Server database, you would need to set up heterogenous services connectivity (HS) and treat the SQL Server database as an external database.
    http://docs.oracle.com/cd/E11882_01/server.112/e25494/ds_concepts001.htm#ADMIN12079

  • Error -While create a connection to Microsoft SQL Sever from Oracle SQL Dev

    Dear All,
    While I am trying to create a connection to Microsoft SQL Sever from Oracle SQL Developer. The following error: "Cannot connect to Microsoft SQL Server on localhost" has been occurred.
    Can anyone please guide me to solve this..
    Thanks in advance,
    Rider

    Hi,
    Issue not supported in sharepoint on-premise team.
    In addition, as this issue is related to Powerview, I suggest you create a new thread on for Powerview forum, more experts will assist you.
    https://social.technet.microsoft.com/Forums/en-US/home?forum=powerview
    Best Regards,
    Lisa Chen
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

Maybe you are looking for