473,657 Members | 2,474 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Use SET ROLE in Oracle Forms Builder

MEG
Hi,

I am trying to do some authentificatio n in a form and have run into a
problem. The user types the usename/password into a couple of fields and
presses the login button.

The button trigger PL/SQL looks like this :

DECLARE
uservar VARCHAR2(15) := '';
passvar VARCHAR2(15) := '';
BEGIN
/* grab the data */
uservar := :BLOCK10.USERNA ME_BOX;
passvar := :BLOCK10.PASSWO RD_BOX;

set role uservar identified by passvar;

/* if OK change context, etc... */

When I try compile I get the message :

Error 103 at line 9, column 6
Encountered the symbol "ROLE" when expecting one of the following:

transaction <a SQL statement>
Anyone know what the problem is? All hints greatly appreciated.

Thanks,

Mike.

--
_______________ _______________ ___
There are only 10 types of people in the world -
those who understand binary, and those who don't.
Jul 19 '05 #1
1 8022
MEG <bu******@DROPT HIS.hotmail.com > wrote in message news:<Xn******* *************** *******@198.164 .200.20>...
Hi,

I am trying to do some authentificatio n in a form and have run into a
problem. The user types the usename/password into a couple of fields and
presses the login button.

The button trigger PL/SQL looks like this :

DECLARE
uservar VARCHAR2(15) := '';
passvar VARCHAR2(15) := '';
BEGIN
/* grab the data */
uservar := :BLOCK10.USERNA ME_BOX;
passvar := :BLOCK10.PASSWO RD_BOX;

set role uservar identified by passvar;

/* if OK change context, etc... */

When I try compile I get the message :

Error 103 at line 9, column 6
Encountered the symbol "ROLE" when expecting one of the following:

transaction <a SQL statement>
Anyone know what the problem is? All hints greatly appreciated.

Thanks,

Mike.

If I remember correctly, you can not issue a set role directly in
Oracle Forms as you have coded it. For Forms, Oracle has provided a
function to do this. If I recall correctly, it is 'set_role'. Try
checking out the help on this.

HTH,
Pete's

The opinions I may have stated here are mine and not that of my
employer. Use any advice given at your own risk.
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
5956
by: FuzzyBear | last post by:
Hi, How do dependencies work with Oracle reports? I have a set of developers creating reports in Report Builder 6 w/ Oracle 8i and every time the stored packages change that the report uses, I am asked to recompile the reports. I guess what I am trying to understand is when you run the report (from the .rep file) why does it fail if the stored package has been changed (assuming the stored package is once again valid).
0
2839
by: Rohit Dhawan | last post by:
I have Oracle 9.2 installed in my computer and want to use Oracle reports builder 6i. Is it possible to use both of them. When I tried to install Oracle report an Forms 6i the Oracel Installer reported the error " cannot intall oracle reports 'nt' on Oracle beta 82". 1)If i use Oracle 9.0.2 would I be able to use Oracle 6i. 2)If not which version of Oracle Database and Oracle Report builder
3
10975
by: Nathan Sokalski | last post by:
When I attempt to run a form created with Oracle9i Forms Builder I receive a dialog box asking for the following info: User Name: Password: Database: I obviously know my User Name and Password, and I assume that the value I use for Database is the value found in the tnsnames.ora file (in my case, ORCL). However, when I do this I receive the following error:
4
7167
by: Corrado Valiente | last post by:
Hi all, I am thinking about becoming an Oracle developer. I have experience with Centura Team Developer AKA SQLWindows, this is a front-end developer environment for a variety of of database servers: Oracle, MS SqlServer, Informix etc. What is it like to work with the Oracle developer environment? Is it nice or rather ok or so-so, or do you love it? For instance, does it have a nice debugger, is it intuitive, logical, effective,...
0
1369
by: Jozsef Fabian | last post by:
For a while I use Forms Version 10.1.2.0.2 to build up an application for web environment. When I use debugger, and watch variables it is customary (about 2-3 times a day) that moving a watch window forms builder exits, leaving behind only message: "40734 FRM: Inner error: PL/SQL error occured". As my application is being debugged from step to step, and running not in builder but on application server, it will hang, as cannot further...
1
4204
by: 3xxx | last post by:
I start to learn the form now with oracle 9i environment (this URL appear after running menu in Oracle forms builder ==>>> program-> run form) http://fujitsuandrew:8888/forms90/f90servlet?form=C:\c\CustomerDemo.fmx&userid=SYSTEM/PASS@&buffer_records=NO&debug_messages=NO&array=YES&query_only=NO&quiet=NO&RENDER=YES got this error in the pop up IE Forms ORA-12560: TNS protocal adapter error
5
4658
by: paulnamroud | last post by:
Hi all, We have an application written with Oracle Forms 5.0 and report builder 3.05. We are using Oracle 8i as a database. We have around 50 forms and 10 reports. I'm in a process of analysing and evaluating to upgrade/migrate or rewrite this application with a new tool in order to convert it on a web application. I have made few search and i found these 2 choices: - Migrate this application to Oracle Forms 9i or 10g Or,
0
1269
by: greenMark | last post by:
Hi All I need to develope a data warehouse in oracle. I was able to develope a small one using oracle enterprise manager. But my main idea is to develope the necessary GUIs using Oracle Forms 6i. Can I implement the warehouse in Oracle warehouse builder and create GUIs with Oracle Forms? Can anybody suggest any other way to implement a Data warehouse in Oracle. Thank you
1
259
by: MEG | last post by:
Hi, I am trying to do some authentification in a form and have run into a problem. The user types the usename/password into a couple of fields and presses the login button. The button trigger PL/SQL looks like this : DECLARE uservar VARCHAR2(15) := '';
0
8324
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8513
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8617
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7352
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6176
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5642
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2742
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1970
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.