Startup Terminal commands - FROM OTHER USER

Excuse my informality and my lack of english:
I have installed successfully Oracle 10g on my iMac G5, it works all-ok but it just wont start automatically when i boot up, i have to type this commands in terminal each time i boot up:
($ORACLE_HOME = /users/oracle/10gEAR2/orahome/)
"login oracle"
ask for password, and i enter it, then:
"$ORACLE_HOME/bin/lsnrctl start"
and then
"dbstart"
(would also work has $ORACLE_HOME/bin/dbstart"
Is there any way to create a startup item that does those commands using oracle user? I tried with this (chmod 755):
/Library/StartupItems/AddRoutes/Addroutes:
#!/bin/sh
. /etc/rc.common
StartService ()
ConsoleMessage "Starting ORACLE DB"
/Users/oracle/10gEAR2/orahome/bin/dbstart
/Users/oracle/10gEAR2/orahome/bin/lsnrctl start
/Users/oracle/10gEAR2/orahome/bin/tnslsnr0
StopService ()
return 0
RestartService ()
return 0
-END OF CODE-
but it just wont work.
Message was edited by: Meoiswa

If you want to manually start and stop Oracle, then use the sudo command. The -u option will help you.
Type *man sudo* for more information.
Note: If you create a startup item, do not forget to create StopService as Oracle does not like shutting down abnormally.
Mihalis.

Similar Messages

  • How to find out histotry command from other session

    Hi gurus,
    I use RHEL 5.4
    Some user log onto server with root and make change at some files. How can I find out history command from other session with the same user.
    history command is just give me history commands of my own session.
    Thanks
    Ch

    The file which holds the commandline history is .bash_history in the home directory of the user.
    So in the case of root, /root/.bash_history
    Please mind that if you log in as root, or become root your session will add to that file as well.
    Another issue with the history file is that when multiple sessions are logged in, every session writes in its own version of the same file. So the last one "wins", which means that version is the one which is truly stored.
    If files are changed, a find command with the 'mtime' parameter should be helpful.

  • How to backup files from other user logged in as administrator

    RE: How to backup files from other user logged in as administrator AND/OR how to repair drive with "Invalid catalog PEOF"
    Hello,
    My MacBook Pro computer’s hard drive is not booting.
    I booted with the base operating system and ran Disk utilities and I got the following messages:
        Invalid catalog PEOF
        The volume could not be verified completely.
        This disk needs to be repaired.
        Disk utility can’t repair this disk. Backup as many files as possible, reformat the disk,
        and restore your backed-up files.
    The problem is that I have a couple of USERS set up on this computer, and it won’t let me backup the files of the second user.  The folders are locked and I can’t access them, even though I am logged in as the administrator.
    I made a boot disk on my other computer ( a MacPro Early 2008 ) desktop computer with the DiskWarrior 4.4 updater,
    but it won’t boot on my MacBook Pro.
    How can I backup these user files so that I can copy them back once I fix the drive?
    or better yet,  How can I repair the Invalid catalog PEOF on this drive?
    Thank you in advance for your time! 
    Bill
    THIS IS THE COMPUTER
    ================
    17” MacBook Pro 2.8GHZ 4GB Ram (purchased in 2009).
    Model: A1297
    Running Mac OSX 10.9.5

    Try using Disk Utility/Restore to copy the backup to a new location. Please note that this will reformat the destination partition which will erase all data.
    Do a backup. Boot to the Recovery Volume (command - R on a restart or hold down the option/alt key during a restart and select Recovery Volume). Run Disk Utility Verify/Repair and Repair Permissions until you get no errors.  Reformat the drive using Disk Utility/Erase Mac OS Extended (Journaled), then click the Option button and select GUID. Then re-install the OS.
    OS X Recovery
    OS X Recovery (2)
    When you reboot, use Setup Assistant to restore your data.

  • Sound output from other user accounts

    It used to be that I would hear sounds from other logged-in user accounts; I'd hear my wife's new mail arrival sound, I'd hear her Skype ringing when calls were coming in, etc. I also used to be able to play iTunes in one account, fast-user-switch to another, and the music would still play.
    This has all gone away recently. I'm not exactly sure but I think it coincided with the 10.4.4 update.
    This is a big concern because my wife was used to hearing her incoming Skype calls ringing when I was using the Mac, but now she misses all her calls if someone else is logged in!
    I haven't found any other mention of this in any forum. Is this just me having this problem? Any way I can fix it?

    Okay, I just got off the phone with Apple support and they say that sound outputting from other user accounts was a "bug" that has now been "fixed." They said that this was patched sometime between the 10.4.3 and 10.4.4 updates. I'm surprised to hear that you are having this problem in 10.4.2 because I'm sure it worked for me under 10.4.3 at some point. None of the security updates released under either 10.4.3 or 10.4.4 make any mention of this patch.
    Apple support says that there's no preference for this setting and we've just got to live with it now.
    This is so irritating! I've got my Skype ring tone, she's got hers, and we'd hear it ringing and know who it was for no matter who was logged in. Now that functionality is busted, and when one of us is logged in the other misses all the calls, and if one of my kids is logged in then both of us miss our calls! I can't believe Apple considers this "bug" to be "fixed".
    There's got to be a way around this; maybe by using the "defaults write" command or something? That command sets a lot of preferences that Apple claims are not user-settable.
    eMac   Mac OS X (10.4.4)  

  • Hide Site's profile from other users

    Hello Everyone,
    First, I know this is an odd question for a social feature in SP.  However I need to ask.
    Is there a way to hid a Site profile from other users in SP 2013?  Just like I can hide someone from the GAL in Outlook I want to be able to hide someone's Site profile.  For example, I have a user that created a Site profile but
    does not want anyone in the organization to see his profile.
    Thanks for any feedback....

    Hi  ,
    According to your description, my understanding is that you want to hide a user’s user profile property from other users in SharePoint 2013.
    For achieving your demand, you can modify the “ShowHide” Boolean field of the user profile using PowerShell script as below:
    $context =Get-SPServiceContext -Site http://mysite
    $upm =New-Object Microsoft.Office.Server.UserProfiles.UserProfileManager($context)
    $up =$upm.GetUserProfile("Domain\UserName")
    $up["ShowHide"].Value
    This returns True if its checked and False for uninitialized and unchecked.
    Update the value in PowerShell with:
    $up["ShowHide"].Value= $true
    $up.Commit()
    Reference:
    http://sharepoint.stackexchange.com/questions/77091/show-hide-and-change-user-profile-properties
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
    contact [email protected]
    Eric Tao
    TechNet Community Support

  • How do I hide my mailbox and mail contents from other users, leaving other functions of my iMac accessible?

    How do I hide my mailbox and mail contents from other users, leaving other functions of my iMac accessible?

    You don't have to shut down the computer to switch accounts. All you do is click the Apple symbol in the upper left and choose Log Out and that's it. You can also set up Faster User Switching by:
    1. Open System Preferences - Accounts
    2. Click Login Options
    3. Check the box called "Show fast user switching menu as" then choose from either icon, short name or name.
    Then when someone wants to switch users they can. The advantage of this method is if you are have a document open and don't want to close it the document will remain open. If the other user attempts to shut down the computer they can't until you have logged out thereby saving all your data.
    A very simple and elegant solution.

  • Using the Import utility from other users and going to a different schema

    I has a user today with rights
    Insert into XXXX.TABLE values(); Works just fine for another schema's table which has select,insert,update,delete.
    We tried to utiile the import utility from OTHER USERS
    Insert failed ORA-00942
    Do you want ot ignore all errors
    Even though we have rights to the schema under OTHER USERS.
    When connected as the owner it works fine.

    I've be trying to find a work-around to this issue & found this old post -- I'm having the same problem.
    I'm using Oracle 11g and SD 2.1.1.64.
    I have user A with a table that grants select,insert,update, and delete privs to user B. Logging into user B I, of course, can do inserts, deletes, etc. on the the table in user A's schema.
    When I use the import data feature to load data from a CSV file I can't get it to work while logged into user B. It does work fine if logged into user A. It looks like the issue may be that it doesn't put the schema prefix of "A." on the insert statements.
    Has anyone found a way to get around this issue yet?

  • Is it possible to copy security Groups from other user in CMC

    Hi,
    Usually in SAP security we can create user ids with the option of copy the roles from other user. means we can create user id Y same as like X. then Y will get all roles and security same as X.
    it is possible the same in BO also, is there any way for this.
    Regards,
    Sri

    Not that easily - I agree. However, normally permissions are granted to groups - not users. So as long as User Y has the same group memberships as User X it should be the same.
    There are also 3rd party tools available that can make this work and of course if you like coding - using the SDK you can build a tool yourself .

  • Sleep processes from other users?

    Hi,
    I have noticed that processes from other users is still consuming ressources when I use my profile on my mac.
    If my girlfriend is logged in, and have used Firefox, and I switch to my user, Firefox is using cpu and large amount of memory.
    Is there a way to sleep other users processes?
    Regards
    Ronni

    No, you can't "sleep" other processes.  Well behaved processes from other users should be using little to no CPU, though they will use a fair bit of memory.  If you're paging out, then it's an issue.
    You could "kill" the other processes via Activity Monitor if you're an administrator, though you may have an angry girlfriend to answer to if you go that route
    Maybe better would be to enable "re-open applications that were running when I logged out" in system preferences and then just log her out.

  • I am logged on to a wifi and can see files from other users on this network.  Can they see my files as well?

    I am logged on to a wifi and can see files from other users on this network.  Can they see my files as well?

    Yes and no. It depends on your settings.
    Go into "System Preference" and click on "Sharing"
    If you have services checked such as "File Sharing" then others can see your computer on the network. But you really don't need to worry because others would need your username and password to have access to your files.
    What you see are just computers annousing themselfs on the network. To have access to said computers, Username and Passwords are required.
    Hope this helps

  • How to secure our program working folder from other users  and prog

    i want to secure my programme from other user and admin

    Yes that is always a good idea... Although you shouldn't do anything to upset your admin.

  • How do I run a terminal command from a dashboard icon

    Hello
    I run the following terminal command repetitively and would like to simplify by running from an icon on the dashboard.
    sudo killall coreaudiod
    Thanks
    John

    Look at creating a simple AppleScript app using the "do shell script with administrator privileges".  Google can help if you use that search string.
    <http://www.maclife.com/article/howtos/how_authenticate_applescripts_administrato r_privileges>
    Applications -> Utilities -> AppleScript Editor
    do shell script "killall coreaudiod" with administrator privileges
    Save as an AppleScript Application and put the application in your Dock.  That should be just as easy to launch as using a dashboard widget.

  • How do I copy text from other users' replies?

    I have seen people post text from other replies in a discussion. Basically, it shows a screenshot of their reply and under it is your own. How do you do this? Is it something that unlocks at a future level?
    Thanks,
    Ethan7988

    Howdy Roger...
    I said:
    ... if you know how to set "Size" while in Simple Editor, ALL my problems ...
    I knew about the Advanced Editor... I just wonder why that very cool feature would not be considered "Simple"? It's not like there is not enough space for it
    Also C O L O R would be nice...
    Again plenty of room - for that matter, there is "almost enough room for ALL the tools on a single row. I'll let you switch to the Advanced Editor to compare
    They could get rid of a couple of tools, IMHO. I'll speak to both Editors and once you see my point, you will see that all would definitely fit on one row.
    Insert Video - I have NEVER seen even one video posted here
    Table tool is NOT WYSIWYG when you post the reply (I tried but once and was so disappointed I gave up after that one attempt)
    Spelling is pointless - all browsers worth using have their own built in spell active checker
    Insert LINK is not nearly robust enough to warrant using it - except if one knows about the search capabilities in the pane's TABs
    'Style' can all be done with Command + "a number key"
    I have used "Font Family" (only see the title of the menu as it is loading) only once that I can think of
    Why would a font appear different between Ppt for mac and mail? specifically the lower case "v"... spelled in a sequence
    Justify = I have used TWICEto show that I could actually do it when pasting an Arabic GoogleTranslate reply = pasted translated composition of the the character order to begin with and got worse when right justified
    HTML = I can never imagine needing to toggle this on and off but some one may
    OR -- the Reply button could just invoke the Advanced Editor to begin with!!
    best as always
    ÇÇÇ

  • File Manager Pro.....Advice from other users please

    I uploaded much of my music collection to Skydrive in anticipation of iPad ownership.
    I planned to hold a small selection on the device and refresh/replace albums from Skydrive whilst on my travels using Hotel WiFi.
    I have discovered that even using the "Skydrive App" one can only stream such media content, not download it.
    Enter "File Manager Pro".
    ...This promised to be the answer to a maiden's prayer.
    ...alas, no.
    Though I can now download music using the App, it remains imprisoned within the application, only being playable on the "One Shot" rudimentary in-built player.
    Does anyone know of a way to transfer these music files to the iPad library where I could then access them from the iPad player?
    Alternatively, is there some other way of downloading music from Skydrive directly to the iPad music library?

    > Any other user please advice how do you transfer files
    to your Server
    > through
    > FTP from dreamweaver?
    All I've ever used is DW.
    > i am doing, like Save to Remote Server, just saves the
    page, not image.
    > what do you do , if you can advice, instead of not
    telling to to visit a
    > link
    > or help file or such, Just a Quick tip, shall help.
    If you are seeing Save to Remote Server, then your site is
    not properly
    defined. It should be defined as an FTP site, NOT as an FTP
    and RDS Server
    site (unless you REALLY know what you are doing).
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "owaisrauf" <[email protected]> wrote in
    message
    news:ekg1ff$lql$[email protected]..
    > Any other user please advice how do you transfer files
    to your Server
    > through
    > FTP from dreamweaver?
    > i am doing, like Save to Remote Server, just saves the
    page, not image.
    > what do you do , if you can advice, instead of not
    telling to to visit a
    > link
    > or help file or such, Just a Quick tip, shall help.
    >

  • Bookmarks bar from other user randomly copied to my bar.

    Suddenly, the bookmark bar from my husband's side (other user) randomly appeared on my side in addition to the bookmarks already on my bar. How did this happen and what is the fix?  I did upgrade to Lion last week and purchased an iPhone 4s, synched with iCloud, but have not had any other problems so far. I only use Safari for browsing.

    Lynn...
    If you and your husband are using the same Apple ID and password for iCloud even though you have your own user account on the Mac, that could be why the bookmarks are trying to merge.
    Try this ...
    On the Mac open System Preferences > iCloud. Deselect Bookmarks then reselect then restart the Mac,
    On the iPhone, tap Settings > iCloud
    Switch Bookmarks off then back on then reset the iPhone.
    Hold the On/Off Sleep/Wake button and the Home button down at the same time for at least ten seconds, until the Apple logo appears.

Maybe you are looking for

  • Final Cut Pro to iDVD

    I am using Final Cut Pro to edit video which I am then burning to disk using iDVD. What is the best compression format to use in my settings H.264, DV/PRO NTSC, or some other? I have been using DV?pro NTSC but it seems to take a long time to encode a

  • How can I check out the computers my Apple ID is activated on?

    Hi there! I hope there is a simple solution for this issue: I want to see not only how many, but which computers are connected to my Apple ID. In iTunes I can see that 5 computers are activated, but the only option is to deactivate all of them (which

  • JTextField and JApplet

    How can I have the JTextField as defined below to get the cursor (Focus), when the Applet starts (the requestFocus method is not working)? import javax.swing.*; import java.awt.*; public class MyFocusJApplet extends JApplet {      JTextField     myTe

  • Are HDV tapes really necessary? (Last question for now, I promise)

    Do you really need to use them to shoot HD footage? Is there an obvious benefit to them or is this another marketing thing?

  • No Photos in Saved Book

    When I create a saved book in Lightroom 5 Book Module, the number of photos is listed to the right of the saved name in the Collections list, but there are no photos displayed in the Book itself.  If I leave the Book Module and return, there is no ch