Oracle11GR2 Automating Database Startup and Shutdown on Linux - linux

I have some problems with the automatic Database Startup and Shutdown in CentOS 6.8.
I've followed this guide, I've created "/etc/init.d/dbora" the script changing the
ORA_HOME=/u01/app/oracle/product/9.2.0 in ORA_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
and also I'have changed:
OBMS(the name of the database):/u01/app/oracle/product/11.2.0/dbhome_1:N in Y.
However, when I reboot the OS, I take this message
Message 1070 not found; No message file for product=network, facility=TNSTNS-12545: Message 12545 not found; No message file for product=network, facility=TNS
TNS-12560: Message 12560 not found; No message file for product=network, facility=TNS
TNS-00515: Message 515 not found; No message file for product=network, facility=TNS
Linux Error: 2: No such file or directory
Processing Database instance "OBMS": log file /u01/app/oracle/product/11.2.0/dbhome_1/startup.log
What is the problem?

Solved, follow this guide
I've set the ORACLE_HOME_LISTNER = $ORACLE_HOME in the script dbstart

Related

Oracle Datapump impdp Inappropriate ioctl for device

i had an error while exporting my schema and then import it into a new database.
My Exporting System is an Oracle Linux 7 with 19c Database and the importing system is Oracle Linux 8 with 21c XE. When i import the schema with impdp i receive the error:
impdp system/password#localhost/xepdb1 full=y directory=data_pump_dir dumpfile=test.dmp
ORA-39001: ivalid argument
ORA-39000: incorrect specification of dump file
ORA-31619: invalid dump file "opt/oracle/admin/XE/dpdump/CC96F85...01/test.dmp"
ORA-27072: File-I/O-Error
Linux-x86_64 Error: 25: Inappropriate ioctl for device
Additional information: 4
Additional information: 1
As stated in the comments
When you got the error Inappropriate ioctl for device , Oracle is not responsible, as the error is coming from Linux.
Most of the times due to:
The datapump file is corrupted.
The file is not not a valid datapump file
The datapump file is empty.

I get the following error on the "Confirm Hosts" step in Ambari (creating cluster):

The Registration log contains the following error:
==========================
Running setup agent script...
==========================
Command start time 2017-11-26 12:05:31
(' File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 355, in main
(retries, connected, stopped) = netutil.try_to_connect(server_url, MAX_RETRIES, logger)
UnboundLocalError: local variable \'server_url\' referenced before assignment
INFO 2017-11-26 12:00:19,304 ExitHelper.py:53 - Performing cleanup before exiting...
I tried it a few times from scratch and I get the same result. ANy ideas on how to fix this?

chrome-gnome-shell causing crash?

I am not sure if this has been answered as I am not really sure of the problem. At least once (sometimes more) during the day I get a notice that Ubuntu crashed. The info says it's related to the chrome-gnome-shell(I have reinstalled chrome-gnome-shell). I also can't get my local Gnome extensions to list at: https://extensions.gnome.org/local/. Using the browser console in Firefox, I get the following when I bring up that page:
Unchecked lastError value: Error: Could not establish connection. Receiving end does not exist. ExtensionCommon.jsm:265
stderr output from native app org.gnome.chrome_gnome_shell:
stderr output from native app org.gnome.chrome_gnome_shell: (process:13043): GLib-GIO-CRITICAL **: g_application_release: assertion 'application->priv->use_count > 0' failed
stderr output from native app org.gnome.chrome_gnome_shell: [13043] Uncaught exception of type <class 'gi._glib.GError'> occured
stderr output from native app org.gnome.chrome_gnome_shell: File "/usr/bin/chrome-gnome-shell", line 550, in <module>
stderr output from native app org.gnome.chrome_gnome_shell: app = ChromeGNOMEShell('--gapplication-service' in sys.argv)
stderr output from native app org.gnome.chrome_gnome_shell: File "/usr/bin/chrome-gnome-shell", line 67, in __init__
stderr output from native app org.gnome.chrome_gnome_shell: self.register()
stderr output from native app org.gnome.chrome_gnome_shell: [13043] Exception: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus)
I am running Ubuntu 14.04 Gnome (v3.8.4), Linux kernel 4.4.0-71, Firefox 52.0.2 32-bit.
Any ideas of what is wrong and how to fix it?
You are using old chrome-gnome-shell version.
Just upgrade.

Crossbar Thruway worker crashes

I have a Crossbar.io server with PHP Thruway workers. Recently, I started getting the following error. It happens about once a day now:
2016-04-17T21:08:12+0000 [Router 9572] Unable to format event {'log_logger': <Logger 'crossbar.router.protocol.WampWebSocketServerProtocol'>, 'log_time': 1460927292.17918, 'log_source': None, 'log_format': 'Traceback (most recent call last):\n File "/usr/local/lib/python2.7/site-packages/autobahn/wamp/websocket.py", line 88, in onMessage\n for msg in self._serializer.unserialize(payload, isBinary):\n File "/usr/local/lib/python2.7/site-packages/autobahn/wamp/serializer.py", line 106, in unserialize\n raise ProtocolError("invalid serialization of WAMP message ({0})".format(e))\nProtocolError: invalid serialization of WAMP message (Expected object or value)\n'}: tuple index out of range
2016-04-17T21:08:15+0000 [Guest 9583] The connected has closed with reason: close
2016-04-17T21:08:19+0000 [Guest 9583] PHP Fatal error: Call to a member function call() on null in /var/www/html/pickupServer/vendor/voryx/thruway/src/Thruway/ClientSession.php on line 106
2016-04-17T21:08:19+0000 [Guest 9583] Fatal error: Call to a member function call() on null in /var/www/html/pickupServer/vendor/voryx/thruway/src/Thruway/ClientSession.php on line 106
2016-04-17T21:08:19+0000 [Controller 9565] Guest worker2 exited with error A process has ended with a probable error condition: process ended with exit code 255.
Does anyone know hot to prevent this?
How do I automatically restart the worker if it fails as in this case?
I solved it in linux with MONIT checking crossbar-controler process and adding the following line:
if children < 3 then restart
3 is the number os child processes that crossbar-controler has on my environment. If any of them exits then crossbar restarts itself and notifies me. You have to check the number of child processes you have running using:
sudo service crossbar status.
This solves the error exit worker but with a cost of restarting the crossbar-controler. I am convinced that must be a crossbar/thruway way of solving the problem.
The ideal way is to try catch all possible errors of php to prevent fatal worker exits.
Thanks

Not running RabbitMQ on Linux, can not find the file xmerl.app

I use OpenSUSE 12.3
I installed erlang and erlang-otp (R14B04)
I started RabbitMQ ./rabbitmq-server
is an error:
$:/opt/rabbitmq/rabbitmq_server-3.1.3/sbin # ./rabbitmq-server
BOOT FAILED
===========
Error description:
{error,{"no such file or directory","xmerl.app"}}
Log files (may contain more information):
./../var/log/rabbitmq/rabbit#testTFOMS.log
./../var/log/rabbitmq/rabbit#testTFOMS-sasl.log
Stack trace:
[{app_utils,load_applications,2},
{app_utils,load_applications,1},
{rabbit,'-boot/0-fun-1-',0},
{rabbit,start_it,1},
{init,start_it,1},
{init,start_em,1}]
{"init terminating in do_boot",{rabbit,failure_during_boot,{error,{"no such file or directory","xmerl.app"}}}}
Crash dump was written to: erl_crash.dump
init terminating in do_boot ()
I can find the file
$:find / -name 'xmerl.app'
/usr/lib/erlang/lib/xmerl-1.2.10/ebin/xmerl.app
where you need to specify it to start the program?
Can you start xmerl without rabbitmq? Just:
application:start(xmerl).
Try:
code:add_path("/usr/lib/erlang/lib/xmerl-1.2.10/ebin/").
And than:
./rabbitmq-server
I downloaded the rpm package for CentOS and set it using zypper, then start up rabbitMQ

Resources