hi,
i've one question.
I'm supposed to create oracle user on click of a button using oracle forms.
I'm calling a procedure which i've written in sql+ which is supposed to create the user.
The problem is that i'm able to create user by writing execute immediate statement in the procedure, but i'm not able to grant connect to the user. Hence i'm getting "admin option not granted for role connect." error.
Is it that the admin_option needs to be yes for a user? The user that i'm using to create a new user has a DBA access.
Isnt this sufficient. Could anyone pls help me on this?
Thanks,
maanasa
6 6713
please try to execute the procedure from sys user.
debasisdas thanks for the valuable suggestion.
But we are trying to create an application (using oracle forms) which has many roles. And we'll give access to one role for this menu option. But is it necessary that this user as the same privileges as SYS?(for the appliation). This could be a problem to us as the user who logs into the application is not a SYS but has previleges as that of a DBA and still he shud be able to create a new oracle user. Is this possible. Any Help on this will be appreciated. Hope you got my question.
thanks,
maanasa
debasisdas thanks for the valuable suggestion.
But we are trying to create an application (using oracle forms) which has many roles. And we'll give access to one role for this menu option. But is it necessary that this user as the same privileges as SYS?(for the appliation). This could be a problem to us as the user who logs into the application is not a SYS but has previleges as that of a DBA and still he shud be able to create a new oracle user. Is this possible. Any Help on this will be appreciated. Hope you got my question.
thanks,
maanasa
u need to grant
CREATE USER system previligers with admin option.
to the user.
Do you mean to say that even the application user should have the system privileges to create the oracle user? Is this really possible via Oracle Forms.
If that is your requirment then u need to implement that logic.
As I see it, you need to grant the permission in a separate query call, if you're using oci8 for the connections it means to write a complete second set of instructions with the grant commands. The problem is, as far as I know you can't use stored procedures for CREATE statements. And if you want to grant permissions you need to grant connect in first place and send the connection with a user made on the dbms and with all permissions before.
I hope being helpful
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: arvee |
last post by:
Hi - I'm updating an Oracle table with an empty string and getting the
error:
An unhandled exception of type 'System.Exception' occurred in
system.data.dll
Additional information: Parameter 'p1': No size set for variable length data
type: String.
The column is nullable and of type varchar2(50). I'm aware that I can store
DBNull.Value instead and Oracle won't complain, but, I was hoping to avoid
|
by: rotarinn |
last post by:
Hi,
I am using VisualStudio.NET 2003 trying to connect to an Oracle Database
(version 8.0.5). I have created the connection using "Microsoft
OleDBProvider for Oracle" and when I click on Test connection, I get a
message showing "Test connection succeeded".
However, when I try to drag a table from the connection into a dataset, I
get the following message: "The connection could not be opened due to the
following error: Unable to load...
|
by: Denzil |
last post by:
Hi,
I am retrieving my DB values and setting them in the
MyRS::DoFieldExchange(CFieldExchange* pFX) function. One of these
records is a Long datatype and could be "Null" in the DB table.
The issue is when the DB value is retrieved it is fine for all
integers but for a "Null" value it returns a junk long value
and not a pre-defined value, say.
|
by: Ying Lu |
last post by:
Hello,
I have a table named "USER" under MySQL database. When I am trying to
move tables from MySQL to PostgreSQL, I found that I could not create a
table namely "USER". I guess "USER" is a key string used by PostgreSQL
system so that we could not create a table named "USER". Is that true?
Thanks a lot,
Emi Lu
|
by: partybob99 |
last post by:
I am trying to call SP_Password from some vb.net code. This should be
very straight forward but no matter what I do, I keep getting errors.
Here is the code
strConnectString = "Data Source=" + strServer + ";Initial
Catalog=master;user id=" + strID + ";password=" + strOldPass + ";"
Conn.ConnectionString = strConnectString
Conn.Open()
| |
by: pat |
last post by:
I know this is a long shot, but is there any way of dumping a bunch of
SQL "create table" statements from an existing Access 2003 database,
to say for example, convert the database to MySQL/Oracle.
-pat.
|
by: Peter Kanurer |
last post by:
Assume I add in VisualCSharp 2005 References to
Oracle.DataAccess
AND
System.Data.OracleClient
to an application. Does this cause problems or can they co-exist in one application ?
|
by: vaibhavsumant |
last post by:
<project name="DBCreate" default="usage" basedir=".">
<property name="user" value="db2admin"/>
<property name="passwd" value="db2admin"/>
<property name="dbprefix" value=""/>
<property name="driver" value="COM.ibm.db2.jdbc.app.DB2Driver"/>
<property name="starturl" value="jdbc:db2:temp"/>
<property name="db2dir" location="${basedir}/../../../../.." />
<target name="CreateTestData" >
<echo message="in mydbs db2dir = ${db2dir}" />
|
by: Jan |
last post by:
Hi:
Here's a problem I've had for a long time. The client is really running
out of patience, and I have no answers.
Access2003, front- and back-end.
Single form with 4 subforms (each representing a related table), 5-10
clerks doing data entry at one time. Tables are quite large but all
work is done with unbound forms and/or local temp tables, and written
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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,...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |