Re: How to alter user using variable
I need to reset all Oracle default accounts to a custom password in one of our databases (11.1.0.7). I am using two files:
File 1 called mydb.sh
This file is Solaris shell script to run sql file. Here is the content:
#!/bin/bash
cd $HOME
. ./agsdb
sqlplus "/as sysdba"<<EOF
start /h/bin/mydb.sql
exit
EOF
if [$? !=0 ]; then
echo "Error, mydb.sh did not run"
echo "Exiting."
exit 1
fi
echo "********** mydb.sh is complete **********"And here is file2 mydb.sql
This file has content similar this the following:
>
alter user anonymous identified by password;
alter user oracle_ocm identified by password;
alter user DI identified by password;
alter user system identified by password;
Our problem is we don't want to use the password in plain text. To get arround, we will pass the password as a variable instead of the plain password text.
Maybe something like this:
alter user anonymous identified by variable_name;How can I mitigate this by passing this variable from solaris to sqlplus?
Thanks in advance.
Alex wrote:
01. Create a procedure to get the username and password and then alter that user. For this you can use synamic sql
CREATE OR REPLACE PROCEDURE (username VARCHAR2, password VARCHAR2)
IS
BEGIN
EXECUTE IMMEDIATE 'ALTER USER '||username||' IDENTIFIED BY ||password;
END;
I have already dealt with the above. My problem is how to get the procedure to pass the password in variable as you mentioned below:
02. Then in your shell script call that procedure by passing username and password variables..
Similar Messages
-
How to create User Defined Variables in Procurement Contract 12.1.3
Hi,
We are using Procurement Contract 12.1.3. As per our business requirement while creating contract template we need to use many variables which are not available in 'System Defined' variable list. Please guide us with some samples (step by step) how to create the 'User defined' variables.
Regards,
PrabhuHi Prabhu,
Did you get the setps how to create user defined variables in Procurement contracts? if so please share me the setp by step flow.
Prakash -
Hi,
I have a requirement wher the client wants BizTalk to alert users somehow when a file is not received at specific time. I am using a FILE receive adapter, the requirement is, if the FILE adapter does not receive a file on time then BizTalk should alert the
users somehow. The client wants to use ESB toolkit to do this job.
does anybody have any idea ?
PLEASE HELP
Thanks & Regards
VikramDuplicate Thread.
Follow here:
https://social.msdn.microsoft.com/Forums/en-US/3e314d17-8b0c-451c-921a-65dbab0612a8/how-to-alert-user-using-biztalk-if-a-file-is-not-dropped-in-a-folder-during-a-specified-time-using?forum=biztalkgeneral -
How to alter user defined objects in oracle
Hi all,
Can any one tell me how to alter user defined objects in oracle .
Thanks,
P Prakashprakash wrote:
Hi all,
Can any one tell me how to alter user defined objects in oracle .
DROP
then
CREATE
Handle: prakash
Email: [email protected]
Status Level: Newbie (80)
Registered: Feb 3, 2011
Total Posts: 185
Total Questions: 67 (65 unresolved)
so many questions & so few answers.
How SAD!
Edited by: sb92075 on Sep 22, 2011 9:22 AM -
How to find out how many concurrent users using web application?
Hi all,
I have a web application deployed using 9iAS. I am trying to find out how to find out how many concurrent users are using this application at any one time. According to Oracle there is no way to see this information using the enterprise manager interface.
Does anybody out there know how I can find out this information in real time? Failing that, are there any good analysis tools out there that display usage to the minute (all the tools I have found show usage by hour which is not sufficent for my needs).
Any help would be much appreciated,
CarolineI know I haven't heard of any software to do this, but this also sounds like a really hard problem to try and really analyze well.
The trick is, you might "infer" how long a user is using an application based on when cookies are set and when they're set to expire. If that's a long time, though, that could count far more "concurrent" users than are actually there. A user could simply close the application at any time and stop using the application; you can't really detect that because the server isn't "told" when the user closes their browser or goes somewhere else.
A good perl script might be able to read the Apache access log and tell you how many unique IPs asked for a given directory in which various applications are stored in any 5 minute span of time... that could be something like an indicator of "concurrent" users.
If you don't know Perl, I'd suggest getting the O'Reilly & Associates book on Perl and learning it, because the more I think about this, the more this sounds like a textbook example for applying a Perl script. -
How to create user using ESSCMD
<p>hi</p><p>i am wondering</p><ul><li>How to add users ESSCMD</li><li>how can i provide users with external authentication</li></ul><p>thanks for your time.</p><p> </p>
I would suggest using MaxL, not Esscmd. Here is a sample from the online help.<BR>With MaxL, you can pass in parameters using 1 script instead of creating multiple Esscmd scripts.<BR><BR>create or replace user Fred type external with protocol 'LDAP' identified by 'cn=Engineers, ou=Groups, dc=yahoo, dc=com';<BR><BR>Creates a user called Fred who is externally authenticated with the LDAP protocol.<BR>
-
Interactive form, how to allow user use comment and markup tool?
hi, gurus,
we are using
CALL FUNCTION 'FP_JOB_OPEN'
and
CALL FUNCTION 'FP_JOB_close'
together with the sfp funciton module to generate fillable pdf file, but we found out that the pdf generated does not allow user to use the comment and markup tool, it's required adddition reader right?
could you please how to generate the pdf that can allow user to insert comments ?
best regards.
junHi,
please follow these steps:
- You have to enable ReaderRights (on ADS configuration using VisualAdmin)
- The PDF must be static and NOT dynamic
Then it works.
Take care,
Thomas -
How to create user using Form Builder
How can use Oracle Developer2000 Form6 to create user in database (oracle 8i) from Trigger of Form6. I've try to use statement "create user ..... identified by ...." in PL/SQL editor of When-Button-Pressed trigger and it had complilation error with that statement.
Probably best not to create the user directly from Forms.
Create a DB Package with a procedure to create a user. This proc should take, e.g. username & password as parameters (& maybe other things - default tablespace, etc.):
PROCEDURE cre_user(p_username VARCHAR2, p_password VARCHAR2) IS
BEGIN
EXECUTE IMMEDIATE('CREATE USER '||p_username||' IDENTIFIED BY '||p_password);
END cre_user;
Give the package the correct user creation privileges & DEFINER or INVOKER s rights.
Grant EXECUTE on the package (or its SYNONYM) to the appropriate end-users
Finally, call the packaged procedure from your Form with the appropriate parameters.
If you need to return info. to the Form, use OUT parameters.
Also, consider the security implications of sending the password in an unencrypted form. -
How can multiple users use the same Creative Cloud Individual on one single-machine?
We have one shared graphics workstation, which is infrequently in use by different people - therefore we bought a single-workstation license (which we were referred to "Creative Cloud Individual"). In the FAQs it says it installs locally, but whenever a user different from the installing adminstrator logs in, he is forced to use the trial.
Is there a way to make the local installation usable on that single machine for multiple users?
Thanks in advance for your replySerenatasystems do the other users not have administrator access? What happens if they sign in using the Adobe ID tied to your Creative Cloud subscription? Do your Adobe Creative applications then exit trial mode?
-
How to write - Perform using variable changing tables
hi Gurus,
I am facing an issue while writing a perform statement in my code.
PERFORM get_pricing(zvbeln) USING nast-objky
CHANGING gt_komv
gt_vbap
gt_komp
gt_komk.
in program zvbeln :-
FORM get_pricing USING p_nast_objky TYPE nast-objky
tables p_gt_komv type table komv
p_gt_vbap type table vbapvb
p_gt_komp type table komp
p_gt_komk type table komk.
BREAK-POINT.
DATA: lv_vbeln TYPE vbak-vbeln.
MOVE : p_nast_objky TO lv_vbeln.
CALL FUNCTION '/SAPHT/DRM_ORDER_PRC_READ'
EXPORTING
iv_vbeln = lv_vbeln
TABLES
et_komv = p_gt_komv
et_vbap = p_gt_vbap
et_komp = p_gt_komp
et_komk = p_gt_komk.
ENDFORM. " GET_PRICING
But its giving an error . please let me know how i can solve this .Hi,
Please incorporate these changes and try.
perform get_pricing(zvbeln) TABLES gt_komv gt_vbap gt_komp gt_komk
USING nast-obky.
in program zvblen.
Form get_pricing TABLES p_gt_komv type table komv
p_gt_vbap type table vbapvb
p_gt_komp type table komp
p_gt_komk type table komk
USING p_nast_objky TYPE nast-objky.
REST OF THE CODE SAME.
End form.
Note : Please check lv_vbeln after the move statement.
Hope this will help you.
Regards,
Smart Varghese -
How to create users using SECATT
Hi ,
Can anybody help me, In ECC 6 how to create using tcode SECATT.
thanks & regards
sivaCheck these links:
1) http://www.*********************/tutorials.htm
2) http://www.sap-img.com/bc021.htm
Regards
Chaitu
PS: Please award points, if this answer is useful to you. -
How to export user using date range
Hia , i am using Oracle10g my object to export user (pibs) all tables in pibs have
created_date column
i wan to export user pibs using date range created_date between 01-jan-07 and 05-jan-07
pls help meCheck out the QUERY clause.
http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14215/exp_imp.htm#CEGFIAGE
If you're using Datapump, check out Filtering during export operations.
http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14215/dp_export.htm#g1022624 -
How Know which user use the maximum CPU time
Hi Gurus,
I am looking now a days on our production server CPU utilization usage mostly 90-100%.
How I found which user usages maximum CPU utilization.
I know the which application takes the max Util but how User not identified. (ST06-Top CPU Users)
Pls help.
Thanks
Tapo Vardhan singhIf your production system CPU usage is 100% then you are very likely to face performance problems or in fact you must be facing them now.
SAP recommended CPU usage is about 40% (ofcourse depends on many other factors) but 100% CPU utilization is not a convincing figure.
Get hold of your earlywatch reports and implement suggestions as soon as possible. Possibly you would want to hardware upgrade/move your production system after doing sizing exercise.
Good luck. -
How to force user to use program?
I have designed a java app that starts as soon as you log on to a Windows NT client. The application asks the user for a project number. After the user types in a valid project number, the application hides. When the user logs off, or does a shutdown, the application writes info to a file about about how long this user used the PC, and for which project number he or she did that. When a user does not enter a project number and tries to close the application, the system will automatically shutdown. I can hide the windows taskbar by using a big size for the application frame.
My question is, how can I make sure that the user does not simply ignores the program by using the windows key, or ctrl-Esc to launch the windows start menu? Someone out there who has an idea? Thanks in advance!To disable all Windows keyboard shortcut keys, save the following text in a REGINI script called Disable_wins.ini. Run
the script from the Windows NT command prompt. For example, from the C:\users\default> prompt, type regini
disable_wins.ini. Restart the computer to make the changes take effect.
[REGINI SCRIPT STARTS HERE:]
; This mapping is used to turn both Windows keys off
\Registry\Machine\SYSTEM\CurrentControlSet\Control\Keyboard Layout
Scancode Map = REG_BINARY 24 \
0x00000000 0x00000000 3 \
0xE05B0000 0xE05C0000 \
0x0
; Here is an explanation of all the values:
; 24 Size of the scancode map including header, in bytes
; 0x00000000 Header : Version
; 0x00000000 : Flags
; 3 : Number of entries (includes null terminator)
; 0xE05B0000 left Windows -> nul (0xE0 0x5b -> 0x00)
; 0xE05C0000 right Windows -> nul (0xE0 0x5c -> 0x00)
; 0x00000000 null terminator
[REGINI SCRIPT ENDS HERE] -
How To guide...for Flat File upload for User-Defined variables
Has anyone got link to the guide that describes how to do a flat file upload for populating User-Defined Variables ?
Any assistance will be appreciated.
UcheSAP BW Business Planning and Simulation "How To" Guides
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ab9fd590-0201-0010-2590-be78eb70015c
How to Upload User-Specific Variable Selections in BW-BPS
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/how to upload user-specific variable selections in bw-bps.pdf
this is what you are looking for ?
Message was edited by: Murali
Maybe you are looking for
-
How can i take my music from my ipod touch and put it back on my pc?
I had just recently got my computer cleaned and i had to start over with reinstalling itunes. I can get all my purchased music, but I can't find all my files of music that i have cut and put back onto itunes. I cant even find the files on the compu
-
Problem signing up for sport on my new Infinity pa...
Been disconnected after 1 1/2 hours waiting for my call to be answered and now tried again to do it online but get the message: It looks like you have BT services, please contact one of our advisors on 0800 731 0286 and they will be able to place yo
-
Mozilla became slow to open, so I deleted so as to reload. Now when I try to reload my avira shows ad-aware/ virus being installed and recommends computer be cleaned which when I do this then the Mozilla never DL.'s ( this was on my Desk Top. ) so ne
-
I select images in Lightroom 5 and then select Merge in HDR Pro. The images go to Photoshop (CC), but when the HDR dialog opens, the imaage area is black. I also have PS CS6 and it works correctly there. Is this a bug in CC?
-
(x86) Inline assembler syntax errors for 8bit variables
Hello, I am porting some gcc code to Solaris and have some issues with the inline assembler. It works reasonably well on most of my code but with some instructions I have difficulties. In gcc, when I declare a variable as char/unsigned char and refer