Help required to run a script as sys user.

Hi
Can some one help in the procedure to run a script to create a view as one of the oracle 10g database user like say scott while connecting as system .
Have no clue of the scott passwd to connect .
just connected as system user ans wants to create a view as scott user i mean the owner of the view should be scott.
thanks in advance

790072 wrote:
Hi
Can some one help in the procedure to run a script to create a view as one of the oracle 10g database user like say scott while connecting as system .
Have no clue of the scott passwd to connect .
just connected as system user ans wants to create a view as scott user i mean the owner of the view should be scott.
thanks in advance
Hi,
just simply run
create or replace view SCOTT.[name] as select bla bla blathis will create the view with scott as the owner
Cheers

Similar Messages

  • Run shell script as sudo user without giving sudo passowrd from normal usr

    Hi ,
    i am running shell script from my account with sudo user what is the problem in my procedure.
    Please if any thing wrong in my procedureprocedure or any permission required please let me know.
    here is the my procedure and sudo permissions.
    [techm@ppsol04 ~]$ sudo su - dadm sudo -u dadm /u01/ora/tools/Dbmon/scripts/export.sh
    Sorry, user techm is not allowed to execute '/u01/ora/tools/Dbmon/scripts/export.sh' as dadm on ppsol04.
    [dchandu@ppsol04 ~]$ sudo -l
    Matching Defaults entries for techm on this host:
    env_keep=SSH_AUTH_SOCK, !authenticate, env_reset, always_set_home, !requiretty
    sudo permissions :
    sudo -l
    Matching Defaults entries for techm on this host:
    env_keep=SSH_AUTH_SOCK, !authenticate, env_reset, always_set_home, !requiretty
    User techm may run the following commands on this host:
    (ALL) NOPASSWD: /local/bin/hardened_profile.sh
    (root) NOPASSWD: /bin/su - dora
    (root) NOPASSWD: /bin/su - doraadm
    (root) NOPASSWD: /bin/su - docenter
    (root) NOPASSWD: /bin/su - tora
    (root) NOPASSWD: /bin/su - toraadm
    (root) NOPASSWD: /bin/su - tocenter
    (root) NOPASSWD: /bin/su - hora
    (root) NOPASSWD: /bin/su - horaadm
    (root) NOPASSWD: /bin/su - hocenter
    (root) NOPASSWD: /bin/su - agcfdwf4
    (root) NOPASSWD: /bin/su - pora
    (root) NOPASSWD: /bin/su - dadm
    (root) NOPASSWD: /bin/su - pocenter
    (root) NOPASSWD: /bin/su - agcfdwp4
    Thanks
    tech

    Can you please explain what you are trying to accomplish?
    To my understanding there is no such thing like a sudo password for a normal user. Sudo allows users to become root based on a sudo list (suoders). The user is then prompted for their own account password to run as super-user or root.

  • Help required for linking Organization Admin Roles to User Profile in R2

    Hi,
    We are using OIM 11.1.2.0 (Without any patch).
    Current Requirement:
    We have requirement to provide search capability to end users to search/see users of other Organizations in OIM.
    For example: I belong to Org1: UK, So OOTB OIM just support searching/viewing profile of UK Organization users. I can not search/view user info of Org2: Italy.
    To overcome this issue,Oracle has suggested us to add both the following roles in order to see user information of other organization.
    • User Viewer
    • Organization Viewer
    After just logged in using xelsysadm, I can able to assign Admin Roles of each organization to end users.
    We want some API info/ how to automate this assignment to Admin Roles(Which are available to Organization) to end users?
    We went through the APIs available for OIM 11.1.2.0, but could not find any API related to Admin Roles of OIM.
    Please suggest.
    Regards,
    J

    Hi,
    Has any one implemented this method?
    addAdminRoleMembership(oracle.iam.platform.authopss.vo.AdminRoleMembership membership) Add a admin role membership.
    Regards,
    J

  • Help required in running SPAU and SPDD transactions for post upgrade

    Hi All,
    We are doing a system upgrade to EHP1.
    We need help in SPAU and SPDD runs and why are they required in upgrade activity.
    Kindly respond.
    Thanks in advance
    Regards
    Rashmi

    Hi Rashmi,
    SPDD and SPAU are modification adjustments that you need to adjust after upgrade. This is a situation where the upgrade has to enhance some structures and elements that was available in previous version (probably 3.x). The system can not determine whether to overwrite the structures or to retain the old version. If the structures are custom structures, the system might overwrite any enhancements that you have done. In this kind of situations, the system puts any such structures and elements that it can not make a decision into these 2 lists. SPDD is for dictionary objects and SPAU is for configurations. You have to fix all the issues that are produced in these transactions. You need to first fix the ones in SPDD list and then the SPAU list. Once you drill down in those lists, it asks you to take actions like "change it", "keep the old version" or "ignore the changes" (I think these are the options). You need to chosse these options based on your analysis and turn all the yellow and red ones into green. Hope this gives you some idea.
    Thanks and Regards
    Subray Hegde

  • Help required in running webdynpro

    Hi All,
    I am basically a java developer but trying to  learn webdynpro on my own. For this purpose, i downloaded some tutorials from internet and installed SAP Netweaver Developer Studio 7.0. I developed one "hello world" kind  application and tried to run but i got an error message like this.  "The Java server name and port number are not configured properly. Please check your settings under Preferences->SAP J2EE Engine"
    After this error, i configured J2EE engine with message server host as localhost and message server port as 3601. Still, i get the error as "Deployment exception : Cannot determine sdm host (is empty). Please configure your engine/sdm correctly !"
    Now i am stuck with this error as dont know if i am required to install some other software or do some change in settings somewhere. Someone in this forum has advised to some other person to run mmc.exe in windows/system32 but when i run mmc.exe, it shows nothing.
    Please suggest what am i supposed to do now. My teammates are completely unaware of webdynpro and i have just started.
    Thanks in advance
    Edited by: h.mohan on May 14, 2010 8:35 AM

    Hi Mohan,
    The Java server name and port number are not configured properly. Please check your settings under Preferences->SAP J2EE Engine---this error meaning is from Your NWDS editor you have to define the Web Application/J2EE servers details, name and message port number to deploy application.
    Deployment exception: Cannot determine sdm host (is empty). Please configure your engine/sdm correctly--SDM mean software deployment manager you have to define this too.
    IN your NWDS go to menu:- Windows>preferences>SAP J2EE Engine-->define SAP J2EE engine details.
    Once you define this in the bottom of your NWDS editor J2EE Engine tab will be there , select this you will be able to see the server node icon with SDM details configured.
    Take help of Basis team for the basic configuration.
    Check the following configuration .
    1. Go to Menu Windows->Preferences. Select SAP J2EE Engine. Than Select the Option "SAP J2EE engine install on local host" and than Click on Browse button and Select Local Engine Installed on Your Machine.
    2. After that Go to SAP Management Console. Start the Local Engine.
    3. To do this all configurations you should be logged as an admin user.
    Refer below links:-
    How to deploy webdynpro on Potal and locally for Testing
    Cannot determine sdm host (is empty). Configure your engine/sdm correctly!
    How to configure "J2EE Engine/SDM" and Deploy new archive and run
    Take help from www.help.sap.com-->sap netweaver and explore the SAP world. You will get lots of solution.
    Hope this may help you.
    Deepak!!!
    Edited by: Deepak Arora on May 14, 2010 9:01 AM

  • Help required: Splitting up complex script logic via *LOGIC_BY

    Hello experts,
    I have a very long and complex logic which I am trying to split up into different sections. I am using *LOGIC_BY within the default logic whereas the ACCOUNT dimension is my trigger. Hence I have created a new property called "LOGIC" for every base level account.
    I am using BPC MS 7.0 (release 7.0.110)
    Simple example to explain:
    ACCOUNT description - LOGIC property
    PRICE1 - LOGIC_DEMAND
    PRICE2 - LOGIC_DEMAND
    AMOUNT1 - LOGIC_DEMAND
    AMOUNT2 - LOGIC_DEMAND
    REVENUE1 - LOGIC_DUMMY (is calculated via LOGIC_DEMAND by =PRICE1 * AMOUNT1)
    REVENUE2 - LOGIC_DUMMY (is calculated via LOGIC_DEMAND by =PRICE2 * AMOUNT2)
    REVENUE_PL - LOGIC_DUMMY (is calculated via LOGIC_DEMAND by =REVENUE1 + REVENUE2)
    Default logic (default.lgf) just contains the following:
    *LOGIC_MODE = 2
    *LOGIC_BY = ACCOUNT
    Data entry:
    PRICE1 = 10
    PRICE2 = 20
    AMOUNT1 = 10
    AMOUNT2 = 20
    REVENUE1 (to be calculated/expected) = 100
    REVENUE2 (to be calculated/expected) = 400
    REVENUE_PL (to be calculated/expected) = 500
    Result:
    As I am sending data, all revenue accounts are calculated to ZERO.
    If I change my default logic manually to
    *INCLUDE LOGIC_DEMAND
    then everything works. REVENUE1 and REVENUE2 are calculated to 100 / 400, and REVENUE_PL is 500.
    What did I do wrong? Can anybody help? If there is someone who can post a short example, I would be very grateful.
    Best regards,
    Stefan

    Hi BI,
    hmm i guess there is no tools to debug line by line is SAP BPC.. guys is there any third party software that can do this??
    Thanks, hope helps

  • URGENT help required : Custom Authentication Plugin for validation of users

    Hi Experts.
    I'm a newbie and am stuck in middle of nowhere.
    I have been asked to develop a custom authentication plug-in which would validate a user using the attributes such as a userid and a shared-userid.
    shared-userid is just a custom id that would be generated on the basis of some logic.
    Currently I'm using OAM 10.1.4.3.0 on WINDOWS server and as everybody, I'm also not able to find any sample files or sample folder structure.
    As per one of the other threads https://forums.oracle.com/forums/thread.jspa?messageID=3838474, sample code and sample folders are removed from this particular version and were present in some previous version.
    So, can anyone please help me out with the following:
    1. How can I proceed to accomplish this task, i.e. to check whether a user-id and a shared-userid both are validated and a user is granted access.
    2. Are all of these files required to create a custom authentication plug-in or can we proceed only with the ".c" file (i.e. make file, authn.c, and a dll file made using the make file and .c file)
    3. Can anybody provide me with a sample file or a sample code written in "C" wherein the plug-in connects to the LDAP and searches for a particular dn for comparison or something. Also a sample make file for windows to convert the .c file to .dll.
    PLEASEEEE help me ASAP.
    Regards
    Edited by: 805912 on Nov 15, 2011 7:18 PM

    Hi,
    Regarding question 2, you also need the header file is supplied in the Access Server installation directory, under ...access\oblix\sdk\authn_api and is called authn_api.h. you need this to build the dll which must then be placed in the Access Server's ...\access\oblix\lib directory.
    Regarding question 3, if you install an earlier version of the Access Server, ie 10.1.4.2 or less, then you will get a \access\oblix\sdk\authentication\samples\authn_api directory that contains a basic sample authentication plugin. However, there is still documented in the 10.1.4.3 Developer Guide another sample plugin, simplapi.c, in the 10.1.4.3 Developer Guide with instructions on how to use it. It does work, but unfortunately requires a couple of edits to get it working after copy&pasting it (no code changes, just fairly obvious case changes eg changing ObanPlugin* to ObAnPlugin*). I used the following commands to get it to compile into a .so file on unix:
    g++44 -c -fPIC -Wno-deprecated -m32 simpleapi.c
    g++44 -shared -nostdlib -lc -m32 simpleapi.o -o simpleapi.so
    but I really would not know if or how these translate into a Windows environment.
    Regards,
    Colin
    Edited by: ColinPurdon on Nov 15, 2011 2:50 PM

  • Help Required With Access Policy Trigger On Enable User In Oim 11gR2

    My scenario is:
    We have a created a access policy for the user.
    Scenario1:
    As soon as the role is added to user, the account is provisioned.  -Working
    Scenario 2:
    As the user is disabled, the account gets revoked-Working
    Scenario 3:
    As the user is enabled, the new instance of the account should get provisioned.(It was earlier working in 11G r1)
    "Evaluate User Policies " is running every ten minutes.Manually also triggered it. but the account doesn't get provisioned after the user is enabled.
    Any inputs?
    Please help

    Your Scenario 2:
    As the user is disabled, the account gets revoked-Working ----> ITS WRONG if you are using OOTB feature of OIM
    -> When the user gets disabled, the accounts should get disabled. The result which u are getting above is not OOTB. Have you made any customization to any logic?
    Just for your info, there is one system property which is used to enable disabled resources when the user is enabled:
    http://docs.oracle.com/cd/E27559_01/admin.1112/e27149/system_props.htm#OMADM884
    Enable disabled resource instances when a user is enabled
    If the value is TRUE, then the disabled resource instances are enabled when a user is enabled.
    XL.EnableDisabledResources
    TRUE

  • Help required on Brodcast messages to logged on users in Portal- Weblogs

    Hi All
    The link to the weblog is
    Brodcast messages to logged on users in Portal(Part1)
    My doubts is
    1) Whenever user refreshes his/her page the popup gets displayed.
    User might get irritated everytime he will referesh the page.
    2) When does the data stored in container destroys?
    Please comment
    Points will be rewarded.
    Regards
    Sonal Mangla

    Hi Sonal,
    Did you find a solution yet ?
    I'm also interested.
    Regards,
    H. Cakir

  • How to run a script on Oracle server from isqlplus

    Hi I am trying to run a script on my workstation from Oracle server through isqlplus workarea. I entered following command and get the following error. i have enabled isqlplus URL by editing web.xml file already. Can please someone help how to run the script?
    @http://myaixserver.com:5560/scripts/Databasestartupstages.sql;
    SP2-0920: HTTP error 'page not found (505)' on attempt to open URL

    So far, you haven't specified your rdbms version and isqlplus behaved differently on a 9iR1, 9iR2 from the one release on 10gR1/R2. on 9i it was a servlet based on a JServ servlet executor machine, meanwhile on 10g it is a J2EE compliant application deployed on an OC4J container, so configuration is different.
    You may want to take a look at these references -->
    * Starting iSQL*Plus from a URL
    * Creating Reports using iSQL*Plus
    ~ Madrid

  • Cannot run this script in matlab

    Hello..
    Can anyone help me in running this script in matlab. It is a code in matlab for finding a R transformation. 
     "letzt_size reduced_2.jpg" is the inlut image we gives. Any image can be used. I tried to put this code in a Mathscript functionnode. Butit is not working. Otherwise this code works in Matlab.
    D = imread('letzt_size reduced_2.jpg');
    imagesc(D)
    imshow(D)
    [R,xp] = radon(D,[0 45]);
    figure; plot(xp,R(:,1)); title('R_{0^o} (x\prime)')
    theta = 0:360;
    [R,xp] = radon(D,theta);
    imagesc(theta,xp,R);
    title('R_{\theta} (X\prime)');
    xlabel('\theta (degrees)');
    ylabel('X\prime');
    set(gca,'XTick',0:20:180);
    colormap(hot);
    colorbar
    save radon R xp -ascii -double -tabs
    Nghtcwrlr
    ********************Kudos are alwayzz Welcome !! ******************

    Hi Nghtcrwir,
    the reason is LabVIEW doesnt have "imread" function in  Mathscript function node.
    You can use LabVIEW help to check which matlab programs are supported by Mathscript function node.
    All the Best!
    Ritesh

  • How to run a script automatically once a day

    Hi everybody
    I need some help: I should run a script in Illustrator once a day, automatically at 23 p.m.
    What is the easiest way to do this?

    What about: Scheduling "open" & "close" Illustrator in the Windows scheduler and then putting the script in the startup folder of illustrator.
    Should be working, right?
    -> Closing Illustrator at 10 p.m.
    -> Opening Illustrator at 11 p.m.
    -> Running Script at Startup of Illustrator

  • [SOLVED] Running a startup script as a user at boot once

    Hello!
    So, as the title suggests, I am trying to start a script as a specific user at boot. To avoid accidentally starting it multiple times, I don't want it to run every time to user logs in. So far I've looked into creating a custom systemd service to call a script as root then using 'sudo -u user script' to run said script.
    This almost worked, the script must have executed but, because it was starting a new task in a screen, it created a dead screen. Although I'm not entirely sure why (I suspect it has something to do with not running screen as the logged in user), I figured I would ask if anyone knew of a better way to do this. My solution so far is pretty convoluted.
    Side notes: This is running on a GUI-less server (hence the possibility of a user logging in multiple times or having multiple sessions open at once)
    Last edited by Lindenk (2013-07-09 15:33:45)

    Sure,
    Here's essentially the unit file -
    [Unit]
    Description=Runs a script to run a script to start a script to start a server
    [Service]
    ExecStart=/absolute/path/to/a/rootScript.sh
    [Install]
    WantedBy=multi-user.target
    And the root script
    #!/bin/bash
    #This script will run another script as the user 'server'
    sudo -u server /path/to/userScript.sh
    And the user script
    #insert possible setup stuff here
    screen -S serv -d -m /path/to/server/start.py
    #insert possible cleanup stuff here
    Also as a side note, I did already allow root to run commands as server without a password.
    EDIT: Another side note, the root script and user script do in fact work as intended when started individually. When running through systemd (at boot or not), the screen created is dead.
    Last edited by Lindenk (2013-07-09 14:36:54)

  • Corruption  SYS user

    Hello experts I am reading SAP Database Admin with Oracle by Michael Hoding, Andre Faustmann, Gunnar Kelein, Ronny Zimmermann. In chapter 9 System Operation and Monitoring section 9.2.1.1 Complete Analysis it states:
    Check at least the objects of the SYS user with this procedure, because when a corruption of an object of SYS remains undetected, an considerably time-consuming full database export and import is required in the worst case. You can use
    brconnect -u / -c -f stats -t oradict_tab -v for a dedicated analysis of the objects of the SYS user.
    I run:
    brconnect -u / -c -f stats -t ALL     on all my oracle servers. How many of you run stats against the SYS user....??? I thought it was a bad practice to do this.
    Thanks

    Hello Sébastien,
    i think your are mixing two things: verify database objects and gathering statistics.
    The option "oradict_tab" is used to verify the oracle ddic objects. If you wan to gather statistics on DDIC objects, you have to call it with the option "oradict_stats".
    Check sapnote #23345 for the option "oradict_tab" and the alternatives.
    http://help.sap.com/saphelp_nwpi71/helpdata/en/46/9f5515bb8e0488e10000000a1553f6/content.htm
    How many of you run stats against the SYS user
    To be honest, i have never done a verify against the DDIC objects. I only collect statistics with "oradict_stats"  on my oracle 10g databases.
    Regards
    Stefan

  • Issue in running eCATT Scripts  - Help required very urgently

    Dear All,
    We are running the eCATT scripts from Solman 7.0 by connecting it to ERP system R/3 4.6C. While running the scripts, we are facing some issue.
    1. If we try to run the scripts then those are getting failed. The same scripts if we run after some time with out changing any code then those are running fine.
    We are frequently facing this probelm.
    Could you please let me know the solution. Your help is really appreciated.
    Thanks,
    Mahendra
    Moderator Message: Urgently word is not allowed in this forum. Open a new thread without the "priority" word.
    Edited by: kishan P on Sep 6, 2010 11:18 AM
    Edited by: kishan P on Sep 6, 2010 11:21 AM

    Dear Ananth,
    Scripting is getting failed at different lines of code at different runs.
    Thanks,
    Mahendra

Maybe you are looking for

  • Complete newbie...

    You are all probably going to laugh at me for posting something for me but I'm just about ready to give up so I figured I would post before I do so. I've been trying to install my Java VM (JDK, JRE..whatever) and I did so but my Linux machine does no

  • Recording (Hiss) with Creative 20GB NOMAD Jukebox

    Hi, I've tested the Recording Possibilites of my Jukebox (i've got the Earplugs with the Remote Control) and when I had transfered them, I saw that they were "WAV IMA ADPCM". Due to the fact that it records using only 4 bit, there's many hiss in the

  • Solaris 10 TX + Mysql

    Hi all, I had a quick question about installing mysql in a global zone user the user root. I essentially downloaded the pkd from mysql.com and went through the pkg add process. On the first run, the installation failed because of not haivng the user

  • N97 Mini - Phone Data Lost when Lock Code is chang...

    Hi, I have changed the 'Lock Code' of my N97 mini under Settings>Phone>Phone Management> Security Settings> Phone and SIM Card> Lock Code. And to my surprise, after I changed the Lock Code, I found that all my contacts, messages and notes are lost. B

  • CS6 After effects Pro Import AAF with R3D files

    It can't find the footage, because it appends an ".mov" to the footage name it searches for. Example: the file name ist "A001_C001_0616GK_001.R3D", but Pro Import searches for "A001_C001_0616GK_001.R3D.mov" How can i fix that. Because replaceing 100