Automatic start of dbconsole during boot
Is there an easy way to automatically start the dbconsole when a cluster node boots (unix) ? I don't mean putting "emctl start dbconsole" in a rc Skript. I would prefer an integration in clusterware.
Sure, there are several steps but it's not impossible.
Step 1 build application VIP
crs_profile -create dbcVIP1 -t application -a /u01/crs1020/bin/usrvip \
-o oi=eth0,public_ip,on=public_ip_netmask
crs_register dbcVIP1
crs_setperm dbcVIP1 -o root
crs_setperm dbcVIP1 -u user:oracle:r-x
crs_start dbcVIP1
Step 2 write start/stop/status shell script
Place in $CRS_HOME/crs/script on all nodes
#!/bin/sh
case $1 in
'start')
/u01/app/oracle/product/10.2.0/db_1/bin/emctl start dbconsole
RET=$?
'stop')
/u01/app/oracle/product/10.2.0/db_1/bin/emctl stop dbconsole
RET=$?
'status')
/u01/app/oracle/product/10.2.0/db_1/bin/emctl status dbconsole
RET=$?
esac
exit $RET
Step 3 assemble pieces
crs_profile -create myDBC -t application -r dbcVIP1 -a script.sh -o ci=5,ra=2
crs_register myDBC
crs_setperm myDBC -o oracle
crs_setperm myDBC -u user:oracle:r-x
crs_start myDBC
Similar Messages
-
How to start radeon script during boot?
My system hangs during startx. I have got input what to do but now, I need to create my own systemd.service file to start the script during boot. I have made following /etc/rc.local:
modprobe -r radeon
modprobe -r drm
modprobe radeon modeset=1
and get 644 permissions.
To start this service have I tried /etc/systemd/system/rc-local.service
[Unit]
Description=/etc/rc.local
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/etc/rc.local
[Install]
WantedBy=multi-user.target
and systemctl enable rc-local.service
When I boot the system I get the error:
Failed to start /etc/rc.local
Any suggestion will be appreciated.I think it would be better to launch startx manually and look at the output! I also have a radeon card and use the oss driver. Nothing has to be done for it to work. Are you sure you haven't messed up something else? Something weird in your grub config? What about your files in /etx/X11/xorg.conf.d? Remove every "improvement" you tried to do, I'm pretty sure startx will work just fine then.
-
[SOLVED] How to get NetworkManager start on background during boot?
NetworkManager has always taken relatively long time to start during boot, presumably waiting for wlan to connect.
$ systemd-analyze blame
7.682s NetworkManager.service
Previously I was able to get it to start on background by removing /etc/systemd/system/multi-user.target.wants/NetworkManager.service
This prevented multi-user.target from waiting for NM to start and it would continue to connect on background while my boot finishes.
However, after upgrade to networkmanager-0.9.10.0-2 that doesn't seem work any more.
If I remove the .service file from multi-user.target.wants/, NetworkManager doesn't start during boot at all.
enabling NetworkManager.service creates these symlinks:
# systemctl enable NetworkManager
Created symlink from /etc/systemd/system/dbus-org.freedesktop.NetworkManager.service to /usr/lib/systemd/system/NetworkManager.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/NetworkManager.service to /usr/lib/systemd/system/NetworkManager.service.
Created symlink from /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service to /usr/lib/systemd/system/NetworkManager-dispatcher.service.
looks like enabling any other basic systemd unit links the .service file to multi-user.target.wants/ as well..
How can I enable NetworkManager.service during boot without multi-user.target.wants/, and get it to start on background again?
any ideas appreciated :)
Last edited by ooo (2014-08-03 12:13:28)Okay, looks like this can be resolved by simply changing the NetworkManager.service type from dbus to forking.
$ systemd-analyze blame
173ms NetworkManager.service
Here's the modified service file if anyone's interested:
place it in /etc/systemd/system/NetworkManager.service
[Unit]
Description=Network Manager
Wants=network.target
Before=network.target
[Service]
Type=forking
PIDFile=/var/run/NetworkManager.pid
BusName=org.freedesktop.NetworkManager
ExecStart=/usr/bin/NetworkManager --pid-file=/var/run/NetworkManager.pid
# NM doesn't want systemd to kill its children for it
KillMode=process
[Install]
WantedBy=multi-user.target
Alias=dbus-org.freedesktop.NetworkManager.service
Also=NetworkManager-dispatcher.service
You need to disable NetworkManager.service before creating the file and enable it after so that systemd links the file from /etc/systemd instead of /usr/lib/systemd,
there may be simpler way but I can't be bothered to go through systemd manuals any more.
Note that this will probably break any systemd .service that actually requires network, although that was the case with my previous workaround as well.
I won't guarantee this will work for you and won't set your machine on fire. If you have issues, simply remove the file and re-enable to go back to default -
Start network connection during boot [KDE4]
I want to able to connect to a network (with key) during boot.
Right now, when my arch is booting, it is trying to connect to a dhcpcd during boot, but fails (after several seconds). Then knetworkmanager and even wicd doesn't seem to work correctly. Knetworkmanager (from KDEmod) seems like doesn't work at all.
What can I do to make it connect during boot? (I usually connect only to one network).I got it working.. however, I am wondering if I have everything right in my rc.config file, in DAEMONS section (maybe I have there something extra, which I can turn off).
#Static IP example
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
#eth0="dhcp"
#INTERFACES=(eth0)
# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
# - prefix an entry in ROUTES with a ! to disable it
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)
# Enable these network profiles at boot-up. These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
# - set to 'menu' to present a menu during boot-up (dialog package required)
# - prefix an entry with a ! to disable it
# Network profiles are found in /etc/network.d
# This now requires the netcfg package
NETWORKS=(wireless-wep)
# DAEMONS
# Daemons to start at boot-up (in this order)
# - prefix a daemon with a ! to disable it
# - prefix a daemon with a @ to start it up in the background
DAEMONS=(syslog-ng network netfs net-profiles hal !networkmanager crond alsa kdm)
Which one do I need? network, netfs? net-profiles?
Last edited by kdar (2009-12-16 02:17:01) -
How to stop Oracle 10g DB automatically start up when Windows boots/reboots
With Oracle 9i, I could set Oracle DB manually start so it would not start when Windows OS was booted/rebooted. This was done through setting Control Panel -> Admin tools -> Services -> Oracle9iMyDB's Startup type to "Manual".
Now I have 10g installed, same setting does not prevent 10g DB start up at Windows boots.
I have Windows 2000 now for 10g and past for 9i.
Could anyone help?
Thanks in advance.
DCDo you have a registry entry that looks like
ORA_<SID>_AUTOSTART that is set to the value 'TRUE'? -
OmniOutliner automatically starts on every re-boot
Would anyone know how to stop OmniOutliner from automatically loading every time my MacBook Pro is re-booted. It's version 3.5 and not something that I specifically downloaded. The license says "Macintosh Software Bundle" so I am assuming that the App it is part of Leopard.
Any suggestions would be appreciated. Thanks.
ChrisCheers Niel. The offending entry was something to do with CameraStrings (??????) and that was the one that was starting OmniOutliner. I'd say it was related to the recent installation of printer drivers for my Epson R390 printer. I thought that it was to do with that but could not find the link. Also managed to get rid of another application that was starting up every time I rebooted but wasn't such a nuisance.
Thanks heaps. -
Automatically starting ColdFusion when server boots up.
We have multi-home ColdFusion running under Jrun4 installed on our 64 bit Solaris 10 boxes working with a 32 bit Apache 2.0 web server.
When ever these boxes boot up (as happend after a recent power failure), we have to manually start all the ColdFusion instances. Neither the script that ships with ColdFusion nor putting the command line "{jrun_root}/bin/jrun start {server_name}" into the boxes start up scripts seem to work.
Can anybody advise us.I can't remember the exact syntax, but you might need a nohup parameter in there so the CF process doesn't get killed as soon as the shell running the start command ends.
Adam -
Hi all,
I'm working with a two nodes RAC with 11.2 Enterprise edition
All is running fine but, when I restart one of my servers, the dbconsole don't start automatically and I've to start it manually with emctl start command.
How can I configure it to start automatically?
Thx in advance
Best regards,
dbajugPlease check:
Automatic start of dbconsole during boot -
Aol automatically start up when my Notebook boot
Why does Aol automatically start up when I boot the computer? I have a Satellite 2065 CDS. It's driving me crazy.
If you do not need it, just remove it.
-
Errors during boot OEL 5.5 starting a 11.2 instance
Hello,
I've installed Oracle 11GR2 on OEL 5.5 and a I created a db instance. How I can see why my db instance is not up? More precisely , how I can get errors messages thrown by procedure that start oracle instance during boot process (I am sure that kind of messages is thrown but I can't see them).
Many thanks,
AurelHi;
I've installed Oracle 11GR2 on OEL 5.5 and a I created a db instance. How I can see why my db instance is not up? More precisely , how I can get errors messages thrown by procedure that start oracle instance during boot process (I am sure that kind of messages is thrown but I can't see them).For can see your db up or not u can run :
ps -ef|grep lg
oracle 6750316 1 0 Feb 28 - 0:03 asm_lgwr_+ASM
oracle 9437238 14418146 0 16:06:56 pts/3 0:00 grep lg
oracle 14745644 1 0 15:50:41 - 0:00 ora_lgwr_orcl
So my asm instance and db instance is up
For alert or error message you need to create one sh which is cheking alert.log,if you hit ORA error than it can send u email
Regard
Helios -
Why endless shutdown during booting? - Macbook Air 10.8.3 update
After updating from 10.8.2 to 10.8.3 my Macbook Air 13" mid 2012 started to shutdown during booting.
I have tried to reset the SMC and PROMs several times with no result - still shutdown during booting.
The same result when starting in "safe" mode - shutdown in the end of booting.
When booting in verbose mode the last lines befor shutdown was:
AppleLMUController::smcReadKey received error 0x84 when reading key 'MSLD'
AppleLMUController::smcReadKey received error 0x84 when reading key 'ALV0'
It's no problem using the macbook air in target mode and use as the startup disk on another macbook.
The other mac start fine and run smoothly on the system 10.8.3 on the disk from the macbook air that shutdown during booting.
Before updating there was no problem with the computor...
What to do?Run the #12 OnyX cache clearing routine, it's a lot of stuff to do and will take awhile, but it's very through on reseting your sub-system items like it was when it came from the factory.
..Step by Step to fix your Mac
After rebooting it should sail like the wind, except bootup apps.
Which this thread there are hacks to disable them from launching when you boot
https://discussions.apple.com/thread/3244852?start=30&tstart=0
Also look at this thread for other clues
Why is my computer slow? -
Windows XP hang up during boot up
i am having a prob that i dont see an answer for. i am on a MacBookPro with OSX 10.5.4
i used boot camp and set up XP with SP2. it worked for a while, then it started hanging up during boot. i would get the windows splash page and then i got the black screen. it just stays black every time i try it.
Please Help?!?Hi and welcome to Discussions,
prior to your problems, did you install any new programms or updates ?
Have a look at the Safe Boot options of XP described here: http://support.microsoft.com/?scid=kb%3Ben-us%3B315222&x=10&y=11
Especially the Safe Boot and/or Boot Logging options might provide some informations, why XP is not booting.
Regards
Stefan -
Oracle 11g XE listener does not start automatically during boot
Hi,
This happened to me recently I just wanted to share it with you.
For development I was running Standard Edition, at some point I decided to run also XE on the same server for another reasons. Everything was working fine, except that after restart of the server, the XE listener is not starting automatically. Debugging the startup script I found that this happens because of a bug in the code, which assumes that XE listener is running if it finds the word LISTENER within the processes list. I didn't found any obligation in the docs for running XE without any other databases on the same host.
In file /etc/init.d/oracle-xe, at line 556 the code is failing:
1 + status='oracle 2889 1 0 May13 ? 00:00:05 /oracle/ora112se/bin/tnslsnr LISTENER -inherit'
2 + '[' 'oracle 2889 1 0 May13 ? 00:00:05 /oracle/ora112se/bin/tnslsnr LISTENER -inherit' == '' ']'
As you can see I have another listener(the one for SE) running and because of the XE startup script found the keyword LISTENER it’s supposing that the XE LISTENER is already running.
To fix this simply change line 556 from:
1 status=`ps -ef | grep tns | grep oracle`
To:
1 status=`ps -ef | grep tns | grep oracle | grep xe`
Now XE listener is started automatically during boot.
Sve
Blog: http://sve.to
Twitter: sgyurovI though the same thing, but XE LISTENER is running on localhost and port 1522. On the other hand XE have local_listener explicitly set to the very same connection descriptor. Even XE installation was second on this server.
I've could change that yes, but the startup script doesn't seemed to have this mind.
Regards,
Sve -
How do I prevent Firefox from automatically starting when I boot-up my Mac in the morning?
Whenever I boot up my Mac in the morning Firefox automatically starts and displays my home page. I would only like to see the desk top with no applications running. I am running OSX 10.4.11 on my laptop.
== Started possibly a few weeks ago.Hmm.. Okay I've done a bit more digging and tried the following two things before the last restart.. Not sure which one actually worked but give these a shot (one at a time) and let us know which is the ''actual'' solution! :)
1. Open Safari -> Preferences -> General
- change "Default Web Browser" to Safari
- Close all applications
- Relaunch Safari and change default browser back to Firefox.
2. Remove the check from "Reopen windows when logging in" in the logout dialog and logout of the computer..
I suspect step 2 is actually the proper solution, but I did both so, hopefully one of them works for everyone else! -
How do I keep Firefox automatically starts when I boot up (OSX 10.6 .8 -- MacBook Pro Intel). It is not in the Startup Items in System Preferences, and automatic startup is not checked in Firefox Options.
Hi fullrun-
Once Firefox is open, you should be able to open the Right click context menu on the icon. From there you select 'Options' and then de-select 'Open at Login'. Hope that helps.
Maybe you are looking for
-
Need help in exporting data in to Excel by integrating XML publisher in OAF
Hi All, I am facing issue while exporting data into Excel by integrating XML publisher in OAF. Everything is working fine except that the report is not uploaded in the Excel sheet. Excel sheet is opening empty. In OC4J server log an getting the below
-
Hello All, when i am dragging a field from data to layout. i am getting the caption and input field. for eg: if drag and drop name field to layout....then it is displaying as 'NAME ..............' (actaully it is showing a box, but i cant show her
-
IMP-00017: following statement failed with ORACLE error 1658
Hi All, Please help me to find the reason of this error while importing the export file using parameters full=Y,ignore=n. IMP-00003: ORACLE error 1658 encountered ORA-01658: unable to create INITIAL extent for segment in tablespace USERS IMP-00017: f
-
What is the use of NoAccess in reports
Hi Gurus 1. what is the use of NoAccess Role in Financial reports? regards Sarilla
-
Average Active Sessions on Performance page
Hi all how do we fetch details for average active sessions in performance page. Specifically which tables do we use to get those details. Thanks