TIPS(42) : SCRIPT FOR CREATING ROLES
제품 : SQL*PLUS
작성날짜 : 1997-02-10
TIPS(42) : SCRIPT FOR CREATING ROLES
====================================
REM
REM SCRIPT FOR CREATING ROLES
REM
REM This script must be run by a user with the DBA role.
REM
REM This script is intended to run with Oracle7.
REM
REM Running this script will in turn create a script to build all the roles
REM in the database. This created file, create_roles.sql, can be run
REM by any user with the DBA role or with the 'CREATE ROLE' system privilege.
REM
REM Since it is not possible to create a role under a specific schema, it is
REM essential that the original creator be granted 'ADMIN' option to the role.
REM Therefore, such grants will be made at the end of the create_roles.sql
REM script. Since it is not possible to distinguish the creator from someone
REM who was simply granted 'WITH ADMIN OPTION', all grants will be spooled.
REM In addition, the user who creates the role is automatically granted
REM 'ADMIN' option on the role, therefore, if this script is run a second
REM time, this user will also be granted 'ADMIN' on all the roles. You must
REM explicitly revoke 'ADMIN OPTION' from this user to prevent this from
REM happening.
REM
REM NOTE: This script will not capture the create or grant on the Oracle
REM predefined roles, CONNECT, RESOURCE, DBA, EXP_FULL_DATABASE, or
REM IMP_FULL_DATABASE.
REM
REM Only preliminary testing of this script was performed. Be sure to test
REM it completely before relying on it.
REM
set verify off
set feedback off
set termout off
set echo off
set pagesize 0
set termout on
select 'Creating role build script...' from dual;
set termout off
spool create_roles.sql
select 'CREATE ROLE ' || lower(role) || ' NOT IDENTIFIED;'
from sys.dba_roles
where role not in ('CONNECT','RESOURCE','DBA', 'EXP_FULL_DATABASE',
'IMP_FULL_DATABASE')
and password_required='NO'
select 'CREATE ROLE ' || lower(role) || ' IDENTIFIED BY VALUES ' ||
'''' || password || '''' || ';'
from sys.dba_roles, sys.user$
where role not in ('CONNECT','RESOURCE','DBA', 'EXP_FULL_DATABASE',
'IMP_FULL_DATABASE')
and password_required='YES' and
dba_roles.role=user$.name
and user$.type=0
select 'GRANT ' || lower(granted_role) || ' TO ' || lower(grantee) ||
' WITH ADMIN OPTION;'
from sys.dba_role_privs
where admin_option='YES'
and granted_role not in ('CONNECT','RESOURCE','DBA', 'EXP_FULL_DATABASE',
'IMP_FULL_DATABASE')
order by grantee
spool off
exit
REM ---------------------------------------------------------------------------
One thing that stands out as being undesirable as far as best practices go is that you are placing code on objects (using the on() approach). The proper approach is to assign instance names to your interactive objects and use them to place all of your code on the timeline where it is readily visible. In doing so you may just find that alot of the code you show can be modularized into functions that can be shared by different objects rather than having each one carrying a full load on its back. You may find you can pass arguments to shared functions that make the same functions capable of supporting interactions with different objects
Your on(press) call performs an unnecessary conditional test. If you change the condition to be if (project._currentframe != 25) you can avoid this.
In your on(rollOver) call's set of conditionals, you have some lines that repeat in each condition, so they can be moved to the end outside the conditionals.
Your on(release) call has the same issue as your on(press) call. Also the overrun use of the _parent target is an indication that most of the code in this call would likely serve you better sitting in the _parent timeline, and your button could just call that function
Similar Messages
-
Want to take "CREATE script" for all roles existing in DB.
Hi All,
I want to take "CREATE script" for all roles existing in DB.
Please provide me script to generate if you have or suggest any link or doc.
Oracle 10GUse this-
select 'select dbms_metadata.get_ddl(''ROLE'','''||ROLE||''')||chr(10)||''/'' from dual;'
from dba_roles
Please be aware grants will not come in the definition
If you like the answer then don't forget to give points -
ECATT Scripts for Creating Bussiness Partners
Hi CRM Experts
Can anyone guide me how to create a eCATT Script for Creating Mass Business Partner (Tcode: BP).
While iam trying to create eCATT i was getting the error: Scripting not permitted on this server
I talked to by Basis team, and they couldnt find flaw with eCATT settings.
Thanks for Reading.
Thanks
SrinivasHi
This is to setup CIC users. All the user who would be accessing the CIC are TELESALES AGENTS. For provideing CIC access to Telesale end user we need to perform a series of steps to ensure all the order transactions made by agents are maped to salesareas and profitcenters.
When an Sales Agent is to be created he would need to be linked to salescodes. Functional Team Set's up a sales code and map it profit centers in R/3 and this sales code data would be replicated from R/3 to CRM.
In CRM(CIC) for Setting up a End user i need to perfrom 3 steps. The inputs i have for setting up the user is (User ID,Sales Code, User Job Position)
1. create a user ID using su01 with required roles.
2. In Tcode:BP (business partner) i need to search with the sales code and assign the USER ID to sales code.
3. Using Tcode:PPOMW assign the USER ID to the Job Position (or) Company Hirearchy (or) Org Structure.
I want run eCATT to complete the step 2. The process involved is.
1. Execute BP screen
2. Enter Salescode in feild "BusPartner"
3. Click Start
4. You will find the one bus partner details that i replicated from R/3.
5.Double click on the details shown in the Rectangle below the start button.
6. select "Identification" TAB
7.you will find a blank Feild in Employee data / USER
8. input the user ID.
9.save
These are the process steps i need to recored for step 2.
Thanks you for spending time on this.
Srinivas -
Hello,
does anyone know sample wlst scripts for creating domain for soa suite 11.1.1.4 on top of weblogic 10.3.4?
I try to create a domain having a cluster with two managed servers in two linux machines.
Any help appreciated.
regards, MattiPlease refer -
http://download.oracle.com/docs/cd/E17904_01/web.1111/e13715/domains.htm
http://download.oracle.com/docs/cd/E17904_01/web.1111/e13715/intro.htm#WLSTG112
Regards,
Anuj -
Ran CATT Script for the role assignment to users
Hi All,
I have ran ECATT script for doing role assignment in QAS and completed successfully. I did this through CUA. What is the next step after running catt script? Do I need to doing anything with PFUD in each child system? Because I checked in the child systems many derived single roles are not generated in QAS.(RED). Is it because of running catt script or it might have came like that only from development? Please advise..
Regards,
Masood>
Salman123 wrote:
> Please let me know how should I proceed from here
Hi,
I have told you why the error message is there. What do you not understand about the resolution? Your parent roles are out of sync with the child roles so you need to re-sync them. An example of how do do this is to "adjust derived" from the master role. Only when you have done this will your roles be in sync again. -
Shell script for creating,altering, etc ., a database
hi there,
Please help me to find shell scripts for creating,altering, etc a database..
Thanks & Regards,
Balu.Thanks to all , but dbca generates XML files :
<DatabaseTemplate name="MYDB" description="" version="10.2.0.0.0">
<CommonAttributes>
<option name="ISEARCH" value="false"/>
<option name="OMS" value="false"/>
<option name="JSERVER" value="true"/>
<option name="SPATIAL" value="true"/>
<option name="ODM" value="true">
<tablespace id="SYSAUX"/>
</option>
<option name="IMEDIA" value="true"/>
<option name="XDB_PROTOCOLS" value="true">
<tablespace id="SYSAUX"/>
..................I need a file.sql script to launch in sqlplus. Something like the following :
CREATE DATABASE MYDB
USER SYS IDENTIFIED BY ***
USER SYSTEM IDENTIFIED BY ***
LOGFILE GROUP 1 ('/home/oracle/oracle/instances/oradata/MYDB/redo1/redo01.log') SIZE 15M,
GROUP 2 ('/home/oracle/oracle/instances/oradata/MYDB/redo2/redo02.log') SIZE 15M,
GROUP 3 ('/home/oracle/oracle/instances/oradata/MYDB/redo3/redo03.log') SIZE 15M
...................... -
Possi. for ABAP code instead of JAVA Script for creating searachhelp in BSP
Hi Consultants i have a doubt that is there a possibility to use ABAP coding in BSP object for creating search help
instead of JAVA Script if so please reply me with the procedure or else with some sample coding.Hi Consultants i have a doubt that is there a possibility to use ABAP coding in BSP object for creating search help
instead of JAVA Script if so please reply me with the procedure or else with some sample coding. -
XI 2.0 installation script for creating XI Sandbox Demo System
Does any have a Windows2000 XI 2.0 installation script designed to create minimal XI Sandbox? Brief installing instructions.
Hi Dan
There is no Installation Script for XI-2.0. The document you have to check is the XI 2.0 installation guide.
Regards
Prasad
SAP Netwaver RIG-XI
SAP Labs LLC, USA -
Script for creating grid spreads of photos from the Adobe Bridge
Hi,
Someone once showed me a script for being able to select multiple images while looking at them in the bridge and making grid layouts on pages from them. Does anyone know how to do that? Thanks!The only code that I have seen that does this sort of thing is to be found here. http://forums.adobe.com/message/5713633
-
CATT script for creating Contract Detail lines
In my requirement I have to use the transaction SCAT and record the transaction ME31K for creating the line items. But when adding more than 1 line item the function is not working only the first detailed line item is added, no more. Please help.
Hi shashikant
Use Message type BLAORD .. FM: IDOC_OUTPUT_BLAORD (Process code is ME15 (Not sure) in AFS it is /afs/md15- BLAORD: AFS Contract via EDI)
Thanks
Ramesh
302 290 5677 -
Script for Users, Roles,Grant,Tablespace
Hi,
Please guide me on the following .
I am moving database to new Unix server .
so can I create the script which will check the existing Users, Roles, Grants, Tablespaces from current database and store that data.
And using same soared data I want to create the same " Users, Roles, Grants, Tablespaces" using the script.
Can i do this. Please guide me how to do this so I will help me to move database
Thanks,
AmolYou should run ?\rdbms\admin\utlrp (note the ?, which is shorthand for ORACLE_HOME) from the database server. to make sure you have the correct script. You can call sqlplus from Toad easily.
The script affects PL/SQL only. PL/SQL resides in the SYSTEM tablespace in the SYS schema. You don't have 400G of PL/SQL. It should take a few minutes only.
The SYSTEM schema WILL be imported. SYS will not be imported, but automagically recreated. The only thing you will miss is Grants which have been made by SYS directly to end-users or roles, outside those defined in catalog.sql
Sybrand Bakker
Senior Oracle DBA -
OMB Plus Script for creating a project
Hi,
I am totally new to this OMB Plus.
Ok. My concern over here is we have been working on some new Mappings. However now for the testing purpose these Maps would be deployed on some other schema with pure Deployment process.
So i found that while importing the Maps it encountered me an error, the reason was that it was trying to find a project which doesnot exists as its new Source. Ideally importing the Mpas would have created the project automatically but it gave me error.
Now, to overcome this i thought why not use the OMB Plus script in order to overcome this issue. So i want to creat a .tcl script which will run and will create a project and then once created i may able to import the maps or the complete project without any error.
So could you please help me with some commands, because on the internet nowhere is mentioned how to create a project or to import a non-existing project.
Please Help!!!!Hi Experts,
I tried the above link it is really usefull.
However, when i execute the below statement i m getting an error at the step 2.
Step1:
OMBCONNECT <USER_NAME>/<PASSWORD>@<HOST NAME>:<PORT NO>:<SERVICE NAME>
Step2:
OMBCREATE PROJECT 'CPP_CPEPLUS'
Error: oracle.wh.repos.sdk.exceptions.WBException: OWB_NS_FATAL_ERROR100ORA-01403: no data found
PS: I successfully connected the Step1.
Please Help!!!!
Regards,
BB -
What is the script for creating a word count text box that references a specific text box?
I am working in Adobe LiveCycle Designer.
I am trying to create an auto populated word count box that provides the word count for a given text box. For background, it'll be used on a form for blog posts and the posts needs to be specified word lengths but will probably be edited in form as it is passed around a committee.
I found this script: var wordCnt = new Array();var str = this.rawValue;wordCnt = str.split(" ");xfa.resolveNode("wordcount").rawValue = "There are " + wordCnt.length + " words."; and created a textbox named wordcount but when I use it I get an error stating unfound Array.
Any help would be greatly appreciated!Try the LCD forum.
-
Using Java Script for creating UI in R12
hi,
I read that Java Script can be used to create UI in R12 which is its new feature. Please can any one tell me how that can be done and which UI elements are to be used to do so?
Please Help
thanks & regards
Edited by: user11225154 on Aug 25, 2009 12:50 AMhi,
I read that Java Script can be used to create UI in R12 which is its new feature. Please can any one tell me how that can be done and which UI elements are to be used to do so?
Please Help
thanks & regards
Edited by: user11225154 on Aug 25, 2009 12:50 AM -
Hi
Would someone please kindly tell me the script used to create the views ALL_OLAP2_CUBE_MEASURES and
MRV_OLAP2_AW_CUBE_MEASURES.
Many thanks.
alfchanHi
In which version of the db are you?
Regards
Joslyn Flores
www.atconsuting.com.mx
Maybe you are looking for
-
I am trying to download Photoshop CS6 onto my Mac from the Adobe website, but I do not have a serial number. I made an Adobe ID, but the serial number is not under "My Products" nor have I received an email including a serial number. I do not know ho
-
I updated my OSX 6.8 MacBook pro to iTunes 11 and all systems ended up frozen. I have reinstalled and up graded Snow Leopard but cannot redownload iTunes from the App Store. Can anyone help?
-
Dear, Please tell me how to change plant in VA02 -change sales order , for partially dispatch of material within same material code. Thanks & Regards Amit Karalkar SD consultant Bajaj Steel Ind.Ltd.
-
I have not been able to use itunes in over a month. My son uploaded gift cards and lost the $. WE can no even update our apps. WE have reset password multiple times. But we continue to get the message ID Disabled. I have updated my billing infor
-
Hi, I am looking for tips, help, commands etc on AIX . All the contents should be on RAC or single instance but specific OS will be AIX Regards,