Create user and session privilege
Hi everyone. I connected to database as SYSTEM and created new user (Tom):
CREATE USER Tom IDENTIFIED BY Tom
Then using SQL Developer tried to connect to the database as Tom and got error, that Tom lacks CREATE SESSION privilege. How to give him it?
You need to give a certain quota to that user, or that role. For example,
ALTER USER <username> QUOTA UNLIMITED ON <tablespace_name>;
You can also specifiy a set amount in place of the unlimited keyword.
ALTER USER <username> QUOTA 500M ON <tablespace_name>;
If you create a role, then assign the privileges to that role you can group your privileges together. When you create a new user just assign the role to the user. You can then just add privileges or remove them from the role and this will take affect for all the users that have that role.
Similar Messages
-
Create user with dba privileges
How do I create a user with DBA privileges in Oracle? The user should be able to create, insert, delete, truncate and other functions without any limits. Do I have to issue GRANT statements?
Hi,
I don't believe there's any way to create a user and grant privileges in one command.
First, create the user:
CREATE USER foo IDENTIFIED BY bar;Then grant the privileges. There's a pre-defined role called DBA that has all the privileges you mentioned.
GRANT dba TO foo;It's easy to write a script to do these two commands together, so you could say
@CREATE_USER foo bar dba -
Disable user and session tracking?
Hi there?
We would like to use Application Insights for everything except user and session tracking.
How can i disable these features in AI (we may not use cookies in our site)?
My guess is to change the applicationinsights.config file as below. Is there any documentation about the configuration file, right now im only guessing...
Cheers
/Niclas
<?xml version="1.0" encoding="utf-8"?>
<ApplicationInsights xmlns="http://schemas.microsoft.com/ApplicationInsights/2013/Settings" schemaVersion="2014-05-30">
<!--
Learn more about Application Insights configuration with ApplicationInsights.config here:
http://go.microsoft.com/fwlink/?LinkID=513840
-->
<TelemetryModules>
<Add Type="Microsoft.ApplicationInsights.Extensibility.Implementation.Tracing.DiagnosticsTelemetryModule, Microsoft.ApplicationInsights" />
<Add Type="Microsoft.ApplicationInsights.Extensibility.RuntimeTelemetry.RemoteDependencyModule, Microsoft.ApplicationInsights.Extensibility.RuntimeTelemetry" />
<Add Type="Microsoft.ApplicationInsights.Extensibility.PerfCollector.PerformanceCollectorModule, Microsoft.ApplicationInsights.Extensibility.PerfCollector" />
<Add Type="Microsoft.ApplicationInsights.Extensibility.Web.WebApplicationLifecycleModule, Microsoft.ApplicationInsights.Extensibility.Web" />
<Add Type="Microsoft.ApplicationInsights.Extensibility.Web.RequestTracking.TelemetryModules.WebRequestTrackingTelemetryModule, Microsoft.ApplicationInsights.Extensibility.Web" />
<Add Type="Microsoft.ApplicationInsights.Extensibility.Web.RequestTracking.TelemetryModules.WebExceptionTrackingTelemetryModule, Microsoft.ApplicationInsights.Extensibility.Web" />
<!-- <Add Type="Microsoft.ApplicationInsights.Extensibility.Web.RequestTracking.TelemetryModules.WebSessionTrackingTelemetryModule, Microsoft.ApplicationInsights.Extensibility.Web" />
<Add Type="Microsoft.ApplicationInsights.Extensibility.Web.RequestTracking.TelemetryModules.WebUserTrackingTelemetryModule, Microsoft.ApplicationInsights.Extensibility.Web" /> -->
</TelemetryModules>
<ContextInitializers>
<Add Type="Microsoft.ApplicationInsights.Extensibility.BuildInfoConfigComponentVersionContextInitializer, Microsoft.ApplicationInsights" />
<Add Type="Microsoft.ApplicationInsights.Extensibility.DeviceContextInitializer, Microsoft.ApplicationInsights" />
<Add Type="Microsoft.ApplicationInsights.Extensibility.MachineNameContextInitializer, Microsoft.ApplicationInsights" />
<Add Type="Microsoft.ApplicationInsights.Extensibility.Web.AzureRoleEnvironmentContextInitializer, Microsoft.ApplicationInsights.Extensibility.Web" />
</ContextInitializers>
<TelemetryInitializers>
<Add Type="Microsoft.ApplicationInsights.Extensibility.Web.TelemetryInitializers.WebOperationNameTelemetryInitializer, Microsoft.ApplicationInsights.Extensibility.Web" />
<Add Type="Microsoft.ApplicationInsights.Extensibility.Web.TelemetryInitializers.WebOperationIdTelemetryInitializer, Microsoft.ApplicationInsights.Extensibility.Web" />
<Add Type="Microsoft.ApplicationInsights.Extensibility.Web.TelemetryInitializers.WebUserTelemetryInitializer, Microsoft.ApplicationInsights.Extensibility.Web" />
<Add Type="Microsoft.ApplicationInsights.Extensibility.Web.TelemetryInitializers.WebSessionTelemetryInitializer, Microsoft.ApplicationInsights.Extensibility.Web" />
</TelemetryInitializers>
</ApplicationInsights>I'm not sure if we have a documentation about this somewhere yet. But your guess was right. You can remove 2 modules and AI will not read and set cookies.
Another option is to disable cookie setting but not reading. You would want this if you have JS SDK that sets cookies and you want Web SDK to read it and apply to server telemetry types.
<Add Type="Microsoft.ApplicationInsights.Extensibility.Web.RequestTracking.TelemetryModules.WebSessionTrackingTelemetryModule, Microsoft.ApplicationInsights.Extensibility.Web" >
<SetCookie>false</SetCookie>
</Add>
There are also 2 telemetry initializers for user and session. They take session and user from RequestTelemetry that was created by WebSdk and initialized in that modules and apply same session to other telemetry types like events and exceptions. If you cut
modules you can cut telemetry initializers as well.
Anastasia -
Script to list the users and their privileges in a database
Hi Team,
Can someone provide me a script that list all the users and their privileges in a database?
DB version:11.2.0.2
OS:AIXOsama_mustafa wrote:
Why you create your own script
SELECT * FROM USER_SYS_PRIVS;
SELECT * FROM USER_TAB_PRIVS;
SELECT * FROM USER_ROLE_PRIVS;
That won't tell him what privileges a user has via a role. It will only tell him what privilges were granted directly, and what roles were granted directly. But those roles have privileges, and may have other roles, which have still more roles and privs, etc. It's a recursive issue and a simple select from user__privs won't get it.
Pete Finnigan has a good script for reporting the entire picture. I leave it as an exercise for the student to use google to find it. I have already given all the information needed to complete that exercise. -
Upload file with iframe loos session user and session id in wwv_flow_files
Hello every one, hope someone could help us with this problem.
What we are trying to do is to upload a file from a jquery dialog in a appex page by redirecting the POST action of the wwvFlowForm to the iframe.
*1. In the javascript there is the function call to open my modal window with the input*
function add_fichier_form(numeroProjet,idCat){
$("#div_upload_fichier").dialog(
modal : true ,
autoOpen : false ,
resizable: false ,
width: 700
$('#div_upload_fichier').parent().appendTo('#div_base');
$('#upload_button').unbind('click').click(function(){
if ($('#P4010_FILE_FICHIER').val() != '') {
$('#upload_iframe_v2').unbind('load').load(function () {
$('#upload_status').html(' déplacement du fichier...');
// move the file
$('#upload_status').html('Fichier transféré avec succès');
//file transfer ok
//calling the javascript function to add everything in my own table;
//we see the file in the wwv_flow_file_objects$ without
add_fichier_form_db();
// set the form target to the iframe, submit, then remove the target
$('#wwvFlowForm').attr('target','upload_iframe_v2').submit().removeAttr('target');
$('#upload_status').html(' Téléchargement du fichier...');
}else {
alert('Veuillez sélectionner un fichier');
$("#div_upload_fichier").dialog("option", "title", "Ajout d'un fichier");
$("#div_upload_fichier").dialog("open");
}*2. At this point we see the file in the table but without the user and session credential*
select *
from wwv_flow_file_objects$
The result is that the field security_group_id is assign to 0 AND created_by = APEX_PUBLIC_USER
*3. add_fichier_form_db(); the javascript function making the ajax call to a procedure plsql*
function add_fichier_form_db(){
//alert ('Dasn fichier form db');
vNumeroProjet = document.getElementById('P4010_CAT_NUMERO_PROJET').value;
vIdCat = document.getElementById('P4010_CAT_ID').value;
vFichierNom = document.getElementById('P4010_NOM_FICHIER').value;
vFichierDesc = document.getElementById('P4010_DESC_FICHIER').value;
vFichierFile = document.getElementById('P4010_FILE_FICHIER_NAME').value;
var ajaxRequest = new htmldb_Get(null , 300, 'APPLICATION_PROCESS=ADD_FICHIER_FORM_DB', 4010);
ajaxRequest.add( "P4010_CAT_NUMERO_PROJET", vNumeroProjet);
ajaxRequest.add( "P4010_F_CAT_ID", vIdCat);
ajaxRequest.add( "P4010_FICHIER_NOM", vFichierNom);
ajaxRequest.add( "P4010_FICHIER_DESC", vFichierDesc);
ajaxRequest.add( "P4010_FILE_FICHIER_NAME", vFichierFile);
var gReturn = ajaxRequest.get();
if (gReturn){
$x("getlistfichier").innerHTML = gReturn;
closeForm();
}else{
alert ('Problèmes dans le call Ajax ADD_REPERTOIRE_FORM_DB \n La valeur retournée est: \n' + gReturn);
}*4. PLSQL PROCEDURE *
h1. WHEN the query is executing it's return ORA-01403: no data found. WHY ????
PROCEDURE P_ADD_FICHIER_FORM_DB(
P_NUMERO_PROJET number,
P_CAT_ID number,
P_FICHIER_NOM varchar2,
P_FICHIER_DESC varchar2,
P_FILE_FICHIER_NAME in varchar2)
AS
vNumeroProjet number;
vFichierNom varchar(255);
vFichierDesc varchar(2000);
vCatId number;
vActif number;
vDocSize number;
vNomUsager varchar(10);
vDateCreation date;
vFichierTypeId number;
vNomReel varchar2(1000);
vNomReel2 varchar2(1000);
vCurVal number;
BEGIN
SELECT FILENAME,DOC_SIZE,CREATED_ON
INTO
vNomReel,vDocSize,vDateCreation
FROM WWV_FLOW_FILES
WHERE FILENAME = P_FILE_FICHIER_NAME;
/*GET ERROR sqlerrm:ORA-01403: no data found */
END P_ADD_FICHIER_FORM_DB;h4. hope someone help us soon
Thanks in advance
jocelynFinally we find what was wrong so i give you the solution.
In the javascript on the function add_fichier_form
We need to append the div of the form to the default form of apex wwvFlowForm
so the line*
$('#div_upload_fichier').parent().appendTo('#div_base');
should be change to*
$('#div_upload_fichier').parent().appendTo('#wwvFlowForm');Edited by: jocbed on 2012-01-26 11:08 -
How to create User and Database in different Table spaces
How to create User and Database in different Table spaces using oracle 10g
Regards
dayaI am sorry but your question does not seem to make much sense.
Can you please rephrase your question? -
Need a help to create user and assign BP to it
Hi,
I have requirement to create Users (like SU01) in CRM and for that users need to create BP with role EMPLOYEE and assign BP to that USER.
Can anybody please help on which Function Module I need to use to create user and assign BP to it.
Thanks in advance..
SushantHi,
Many post post are there for your query in SDN search if my below shown link is not helpful.
Hope the below will help you.
Users Created ...
Cheers!!
VEnk@ -
Hi all,
I have about 100 users and many groups.
How can i create users and groups quickly?
Appreciate any helpLike the way you export planning application to file system and use it as a source to migrate it, In the same way take shared services file system export in the file system and migrate it to the new environment.
Cheers..!!!
Rahul S. -
Create users under Administration Server Create user and Refresh users options are disabled
We have installed and configured 11.1.2.2 successfully, Essbase in standalone mode.
When we try to create users under Administration Server Create user and Refresh users options are disabled. Please let me know how to create EAS users?
Thanks,
Satheesh.Please find below response.
1.You can create users from EAS console using maxl, if you have not externalized the users .
When we create using Maxl it will create for 'ESSBASE Servers' users but we want to create additional administrator users under 'Administrator Services' --> 'Users'. At the moment default 'Admin' users is created under 'Administrator Services' --> 'Users'.
2. you have installed your essbase in a stand -alone mode , then the option of creating users will be enabled and you can give appropriate provision to applications.
Yes. But the create users is disable for Admin.
3. Through which url are you accessing EAS console is it http://Servername:19000/workspace/index.jsp ?
http://prod-server:10080/easconsole/console.html
Please suggest. -
Script to Create User and Add profiles
Instead of using the ODI 10g GUI Console to create users and add them to a profile, Can this task be achieved by scripting ? Either by wlst or JMX or Java Packages ? Please advise and guide me.
-Thanks,Is there any other way for adding Bulk users and assigning them to a profile? Any thoughts Please
Versions: 10.1.3.5 and 10.1.3.6 -
How to create users and groups using WLST Offline with Weblogic 8.1.4
How to create users and groups using WLST Offline with Weblogic 8.1.4?
Any ideas?Hi this is how i created a user using WLST Offline?
cd('/Security/' + domainName)
# Delete the default user name weblogic
# incase you want to remove the defualt user weblogic
delete('weblogic','User')
# Creating a new user defined
create(userName, 'User')
# Setting the password of the user you created.
cd ('/Security/' + domainName + '/User/' + userName)
cmo.setPassword(password)
Regards
Makenzo -
How to find all the SM37/36 jobs, created user and step user details
Hi Gurus,
Is there any table or transaction is available to check all the SM37/36 jobs that are running in the system, details of created user and step user in single screen?.
Regards,
SrinivasCheck the below tables
TBTCP Background Job Step Overview
TBTCO Job Status Overview Table
TBTCJSTEP Background Job Step Overview
TBTC_SPOOLID Background Processing Spool IDs Table
TBTCS Background Processing: Time Schedule Table -
Call PL/SQL Package to Create DB User and assign Privileges
Hi All,
I'm sure this has been covered before but I couldn't find anything relevant....
I'm calling a PL/SQL Process from within an Apex (version 2.0) Page, that ultimately Creates a New DB user.
I am receiving an ORA-01031: insufficient privileges error. My Application User and the Package owner both have privileges to Create a DB user.
What am I missing?
Thanks,
MikeNever, ever grant additional privileges to the apex_public_user account. It achieves nothing and makes the account over-privileged. The only privilege it needs is CREATE SESSION.
Mike - Your application's parsing schema (I assume that's the package owner) needs to be granted privileges directly and not through roles. I don't know what you mean by your application user's privileges. Those users are not database accounts (unless you are using a dedicated DAD, etc.).
Scott -
Grant privileges and permission to user, to create user and database in 10g
Hi,
I'm very much new to Oracle 10g database and after all my search, I think this forum will help me to solve my puzzle. Installed Oracle 10g database and during installation created a Global database "TestDB". I created an user "user1" in sqlplusw, by logging in as system.
Now I need to know, what privileges and permissions should be given to this "user1", so that I can create new users and create database by logging as "user1". I don't want to Inherit all the sytem privileges of SYSTEM or SYSDBA or SYS or SYSOPER.
Is there a way where I could achieve this by explicitly granting the required privileges and permissionsYou may need to know all the views to get the privilege information.
SQL> conn /as sysdba
SQL> select table_name from dict where table_name like '%PRIV%';
And also, take a look into below Oracle Documentations.
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_9013.htm#SQLRF01603
Regards,
Sabdar Syed. -
[b]create users and roles in oracle 9.2 db[/b]
Could some one tell which utility is used to create new roles and new users in Oracle 9.2.0.1 db and how.
Thanks.CREATE ROLE
Purpose
Use the CREATE ROLE statement to create a role, which is a set of privileges that can be granted to users or to other roles. You can use roles to administer database privileges. You can add privileges to a role and then grant the role to a user. The user can then enable the role and exercise the privileges granted by the role.
A role contains all privileges granted to the role and all privileges of other roles granted to it. A new role is initially empty. You add privileges to a role with the GRANT statement.
When you create a role that is NOT IDENTIFIED or is IDENTIFIED EXTERNALLY or BY password, Oracle grants you the role with ADMIN OPTION. However, when you create a role IDENTIFIED GLOBALLY, Oracle does not grant you the role.
See Also:
GRANT for information on granting roles
ALTER USER for information on enabling roles
ALTER ROLE for information on modifying a role
DROP ROLE for information on removing a role from the database
SET ROLE for information on enabling and disabling roles for the current session
Oracle9i Heterogeneous Connectivity Administrator's Guide for a detailed description and explanation of using global roles
http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/statements_612a.htm#SQLRF01311
Joel P�rez
Maybe you are looking for
-
Session regeneration at every request
Hi All i know that the getSessionId gives me the current client session, this session is the same for every browser windows i open without closing the application before open a new browser window. i need to have a different session every time a clien
-
My pdf's will not dl either and nothing will open except qt picture viewer.
my pdf's will not dl either and nothing will open except qt picture viewer. quick time is over riding pdf files. is there a check mark to take off somewhere. quick time should not over power pdf files.
-
I downloaded a TV series and all the episodes show "downloaded" and when I go to play them in iTunes on my laptop, the screen is black and it wont play. I made sure I have the latest version of iTunes. I have no problem playing them on my iPad. This
-
Generation of xml with the XSD
Hi, I want to generate an XML file by reading the CSV and XSD files. Please help me in this regard. Thanx kris
-
Can you download a DVD to your laptop and later access on your iPad using iCloud?