How to start Oracle 11g automatically using script on Fedora 23? - linux

I have installed Oracle 11g on my Fedora 23 Virtualbox ,each time I want to start Oracle I have to start
sqlplus '/as sysdba' then type startup and then exit and then type
lsnrctl start and then again type emctl start dbconsole ...how to automate this using a script or any alternative way but I prefer script once my server start ...I'm also not able to connect to my server from outside the virtual machine.
thanks in advance

The best way is to create a systemd .service unit file. I don't think there is an official one, but this oracle forum post contains an example for Fedora 25 Server. You can find more information about writing .service files here: https://unix.stackexchange.com/questions/15348/writing-basic-systemd-service-files

Related

Equivalent command for 'cllsnode' in RHEL server

I am migrating server from AIX to RHEL. As cllsnode is not working in RHEL. Please someone help me with equivalent command for 'cllsnode'
About the command:
It is used to list a node centric overview of the hacmp configuration.

How can I make a program to run as service in Linux

Thanks for looking into my question.
I am running tomcat as windows service in windows machine. how can I achieve the same on linux machines.
it should start automatically after reboot.
Thanks,
R Dama.
If you install Tomcat from a Linux distribution package, it will usually include an init script which will start it as a daemon via a start stop script. You can create a script for it manually otherwise. See https://www.linux.com/learn/managing-linux-daemons-init-scripts

Run a program as a service on Debian/Linux

I have an older jetty server I want to turn into as a service on a Debian OS. It should start automatic each time I restart the computer.
Manually I start the server with the two following commands:
root#myserver:/# cd /opt/jdk/jetty
root#myserver:/opt/jdk/jetty# java jetty
Anyone know how to do this ?
If you want to start any program on booting you can add that entry in rc.local.
java /opt/jdk/jetty/jetty
It will start on reboot

How to run Shiny Server on linux using remote acces?

I'm trying to put in production my shiny app. I can run my shiny app locally on my Windows machine, from R. However, since we need to use Linux to deploy the app over the web, we decided to use a Linux server for that. We access this Linux server remotely, from our local machines (running Windows).
I followed the instruction at the RStudio website, and successful installed Shine Server on the Linux server. Its's running on it. I don't know what to do next. So, my question is: what should I do next? Please, remember that I access the Linux server remotely (using puty). Also, I have almost no knowledge of Linux.
Any guidance on what to do next is very welcome.
Some info that may be useful:
I use a Ubuntu 12.04.3
I ran as root (I think, but I can use sudo, for sure).
Another person has access to this server besides me.
We use R 3.0.2
you can follow the instructions here:
https://groups.google.com/forum/#!msg/shiny-discuss/NuZp0ziVXvw/BXHcIoXThnoJ
Short answer:
# this is all one line
sudo wget\
https://raw.github.com/rstudio/shiny-server/master/config/upstart/shiny-server.conf\
-O /etc/init/shiny-server.conf
# Start the server
sudo start shiny-server
Then just open a browser and point to it

Remote client for oracle on linux

I need to drop remote oracle db with *.sql script from linux env. How i can do that? Before I tried install sqlplus, but I could not install it...
There may be some other linux console client for oracle?
You cannot install sqlplus alone.
You need to install an Oracle client.
Choose you system here, click on See All, and the client is the second link.
After that you sould add an entry in your tnsnames.ora file (located in $ORACLE_HOME/network/admin) and if you have connection to your remote server, sqlplus will work.
PS: Drop a oracle db is a strange operation to do. You need a dba to administration stuff.

Resources