Scripting to gather oracle info on a Linux box Finding rac/normal instance?
Hello all,
I've been tasked by the disaster recovery team to get a little quick script for them to run, to see what oracle instances are on a box, if it is up, listener is running, etc.
So far, with normal, one node instances I've had success. I grab data from the /etc/oratab file, and parse it out with awk to get a ORACLE_SID and and ORACLE_HOME.
This script is run as the oracle user or a user in the dba group, so, that with each instance, I attempt a logon through SQL*Plus as connect / as sysdba and does a query to gather some instance information that I echo to the screen to establish that the instance is up and connectable.
The problem I have run into, is if there is an instance listed for a node of a RAC cluster....it doesn't see that entries to /etc/oratab are quite the same using dbca for RAC nodes as normal nodes.
For instance, say I have a cluster RAC which has nodes rac1 rac2 and rac3.
From what I'm seeing...on the individual nodes, in the /etc/oratab entries only seem to be put in for the cluster RAC, rather that say rac1. My script which tries to set the oracle sid and home and connect / as sysdba fails. If the entry were put in there as rac1, it should work, I'd think.
Can someone make suggestions for me to use with this script, so that I can find out what node instance is running, if RAC is on the computer...and automatically find and connect similar to how I'm doing with the single databases using /etc/oratab
Is there a similar file to /etc/oratab that is used by the clusterware on the system?
Thanks in advance,
cayenne
Edited by: cayenne on Apr 15, 2009 12:57 PM
S2K wrote:
please post your script here so we can see what exactly is going on...and help you point out stuff...Certainly...that might help indeed.
Here is the listing:
#! /bin/bash
#grab original path so as to reuse on each loop interation to ensure ONLY
# the oracle binaries from the proper oracle home are used.
old_path=$PATH
#set oracle_home/bin path for listener
#to guess best fit, hit first home that is bootable
#and not listed as ASM
#start as empty
listener_path=
if [ -e "/etc/oratab" ]
then
#grab and clean the entries for oracle instances and their respective oracle homes
oracle_instances=`cat /etc/oratab | sed '/#/d' | sed '/\*/d' | sed '/^$/d'`
echo 'Testing connections to Oracle intances as listed in /etc/oratab'
echo 'and testing connectivity, start times and status'
echo '----------------------------------------------------------------------------------------------------'
for oinstance in $oracle_instances;
do
oracle_sid=`echo $oinstance | awk -F":" '{print $1}'`
oracle_home=`echo $oinstance | awk -F":" '{print $2}'`
oracle_bootable=`echo $oinstance | awk -F":" '{print $3}'`
echo
echo 'Using ORACLE_HOME='$oracle_home
echo
export ORACLE_HOME=$oracle_home #set oracle home
echo 'Setting ORACLE_SID='$oracle_sid
echo
export ORACLE_SID=$oracle_sid #set oracle sid
echo 'Adding Oracle bin to path'
echo
echo '----------------------------------------------------------------------------------------------------'
echo
export PATH=$ORACLE_HOME/bin:$old_path #reset to old path plus new oracle home /bin
#Test and set listener path
# do I need this? to exclude asm for listener? && `expr match "$oracle_sid" \+ASM.*` = 0
if [[ -z "$listener_path" && $oracle_bootable != "N" ]] #Test to see if listener path set yet, if not, is instance set bootable
then
listener_path=$oracle_home/bin:$old_path
fi
#Next, connect through sqlplus and query v$instance table to prove connectivity
output= #Reset output for each iteration
output=`sqlplus -s "/ as sysdba" <<EOF
set heading off feedback off verify off
select 'Instance Name='||instance_name||' Host='||host_name||' Start Time='||to_char (startup_time, 'HH:MI AM MON DD,YYYY')||' Status='||status from v\\$instance;
exit
EOF`
echo 'Connection to Database returns message:'
# If sqlplus fails, print error message
echo
if [[ -z "$output" || `expr match "$output" .*ORA-.*` > 0 ]]
then
echo 'Unable to conect and query database instance = '$oracle_sid
else
echo $output
echo
echo '----------------------------------------------------------------------------------------------------'
echo
echo 'Schemas on this Database Instance: '$oracle_sid
echo
if [[ `expr match "$oracle_sid" \+ASM.*` = 0 ]] #Test to see if an ASM instance
then
#Hit sqlplus again, this time to grab and display a list of schema/usernames on this instance.
sqlplus -s "/ as sysdba" <<EOF
set heading off feedback off verify off pagesize 0
select username from dba_users order by username;
exit
EOF
else
echo 'Instance '$oracle_sid' is an Auto Storage Management instance, no user schemas to report'
fi #end test for ASM
fi
echo
echo '----------------------------------------------------------------------------------------------------'
done
echo
###Look into what path is used here for the listener!!
output=''
echo 'Checking output for querying the Oracle Listener'
echo
if [[ -n "$listener_path" ]]
then
lsnrctl status
else
echo
echo 'Oracle Home Not set to bootable path, cannot find path for listener'
fi
echo
echo '----------------------------------------------------------------------------------------------------'
else
echo '----------------------------------------------------------------------------------------------------'
echo 'Unable to test connectivity to oracle database instances due to '
echo 'the file /etc/oratab NOT being found on this system'
echo '----------------------------------------------------------------------------------------------------'
fi #End if statement testing if /etc/oratab present
echo
echo 'Listing Oracle processes currently running on this box'
echo
ps -ef | grep oracle
echo
echo '----------------------------------------------------------------------------------------------------'
As I mentioned before, the problem comes when a RAC instance is in the /etc/oratab...apparently dbca puts in the RAC sid, not the node sid....and when my script tries to connect...it can't and throws the not started error.
See other email for details of the problem.
This is the script I'm working on....any suggestions greatly appreciated!!
cayenne
Similar Messages
-
High Availability Oracle DB with Win+Linux Box
Hi ,
I have two servers available ,one windows 2003 and another Redhat 4.
I want to use RH4 for my Oracle 10g Database. Is there a method using which I can use my windows server in case Red hat system fails and continue to use my Oracle Database with minimum down time?
Regards,
KumarVMWARE can be too slow oracle in production environment.You will not be using it for production, rather only as backup and in case you would need to use it because of a disaster, then you should be able to recover main server ASAP. If you think it is this much critical, then your management should invest more for a new redundant server.
Streams
http://it.toolbox.com/blogs/oracle-guide/oracle-streams-step-by-step-17095
Salman -
How to find out the version of oracle in a linux box
HI All,
Can anyone tell me how to find the version oracle 10g on a linux box.
ThanksSQL> set line 1000;
SQL> select banner from V$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
SQL> define
DEFINE _DATE = "12-NOV-09" (CHAR)
DEFINE CONNECTIDENTIFIER = "loghost" (CHAR)
DEFINE _USER = "SYSTEM" (CHAR)
DEFINE _PRIVILEGE = "" (CHAR)
DEFINE SQLPLUSRELEASE = "1002000100" (CHAR)
DEFINE _EDITOR = "Notepad" (CHAR)
DEFINE OVERSION = "Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Producti
With the Partitioning, OLAP and Data Mining options" (CHAR)
DEFINE ORELEASE = "1002000100" (CHAR)
SQL>
Regards
Asif Kabir -
Oracle App R11 on Linux (client)
I'm trying to run Oracle Applications on a Linux box but I don't know what I have to do cause Jinitiator is only for Window. Does anybody runs Oracle App. with Netscape (gozila) on Linux ?
ThanksI'm trying to run Oracle Applications on a Linux box but I don't know what I have to do cause Jinitiator is only for Window. Does anybody runs Oracle App. with Netscape (gozila) on Linux ?
Thanks -
How to create a .exe script to start and stop Oracle EBS R12 in Linux
Hello,
I have installed Oracle EBS R12 in Linux enterprise through Virtual box on windows 7 professional. It takes a long time to start and stop EBS as I have to start and stop the scripts manually - can someone please help me with the following (I have tried searching the web and Oracle for help but have had no joy);
Q1. I want to create a executable file in Linux so I can double click the file in Linux to start EBS automatically instead of going through each script manually
Q2. I want to create a executable file in Linux so I can double click the file in Linux to stop EBS automatically instead of going through each script manually
you help will be appreciated.
AliI have installed Oracle EBS R12 in Linux enterprise through Virtual box on windows 7 professional. It takes a long time to start and stop EBS as I have to start and stop the scripts manually - can someone please help me with the following (I have tried searching the web and Oracle for help but have had no joy);
Q1. I want to create a executable file in Linux so I can double click the file in Linux to start EBS automatically instead of going through each script manually
Q2. I want to create a executable file in Linux so I can double click the file in Linux to stop EBS automatically instead of going through each script manually
you help will be appreciated.Please see these links.
https://forums.oracle.com/forums/search.jspa?threadID=&q=Autostart+AND+Services&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
https://forums.oracle.com/forums/search.jspa?threadID=&q=Auto+AND+Start+AND+Services&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
Managing Server Processes
http://docs.oracle.com/cd/E18727_01/doc.121/e13675/T530130T530133.htm#5274555
Thanks,
Hussein -
Hi
I'm going to make a program that should run on all OS (Window, Solaris, Linux, HP-UX and AIX) and gather system-info like type of OS and HW-info (CPU, memory, disk etc). The program should be self-started and no requirements when it comes to if java is installed or not. I was thinking of bundle it with Java VM. I know about the System.getProperty("os.name"), but how do I gather HW-info? Do I have to make different scripts for the different OS, or can Java gather the info I need? How can I run one program that fit to all OS?
Hope someone can help me...You'll have to write a JNI solution for every single OS.
Kind regards,
Levi -
MAP 6.0 with oracle 11.2 client installed on Map server. SSH finds the Linux oracle servers and obtains Linux info but nothing about oracle is captured. MAP documentation says the required credential for Oracle is 'Administrator' credentials.
Would 'Administrator' be the linux user owning the oracle install or root or a database login?
Any other info on how MAP collects oracle info would be helpful.
ThanksMAP should be able to discover SID/instance information at a minimum. Have you tried using root? There are multiple rounds of data collection that occur, the first
is when MAP attempts to collect hardware and service information from every machine (Oracle SID/instance information is part of this). Then, based on what information gets returned, it will queue up machines for additional scans, such as directly connecting
to the Oracle database engine to gather more info, like schema info for Oracle. This additional scan requires the Oracle client to be installed on the MAP machine.
To answer your question on credentials, the scan of Linux is done with SSH and therefore need admin or root credentials for Linux. For the in depth Oracle scan, you
will need admin credentials for the database engine so that queries can be run for schema info.
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. -
Error while Oracle 10g Installation suse linux
Hi,
All i am facing issue while installing Oracle 10g release 2 on open suse.
All test are getting passed but getting a error reltated to ip address as follows.
INFO: Checking DetectIfDHCPAssignedIP
This is a prerequisite condition to test whether the primary IP address of the system is DHCP-assiged or static.
INFO: Detecting the IP.....:10.31.215.64
INFO: Checking the network interface display name.... :eth0
INFO: Checking the network reference name..... :eth0
INFO: Checking the platform .......46
INFO: Checking the LINUX vendor .... :SuSE
INFO: Check complete. The overall result of this check is: Not executed <<<<
Also while installing getting error as,
Checking Network Configuration requirements ...
Check complete. The overall result of this check is: Not executed <<<<
Recommendation: Oracle supports installations on systems with DHCP-assigned public
IP addresses. However, the primary network interface on the system should be
configured with a static IP address in order for the Oracle Software to function
properly. See the Installation Guide for more details on installing the software
on systems configured with DHCP.
Please help me to resolve issue.
BR,
Rajesh
Edited by: Rajesh.Rathod on Dec 20, 2010 12:52 AMHi,
I tried to follow each step of oracle documentation but network configuration requirement is failing.
please find following log.
Checking operating system requirements ...
Expected result: One of redhat-3,redhat-4,SuSE-9
Actual Result: SuSE-9
Check complete. The overall result of this check is: Passed
=======================================================================
Checking operating system package requirements ...
Checking for make-3.79; found make-3.81-128.14. Passed
Checking for binutils-2.14; found binutils-2.19.51-10.26.4. Passed
Checking for gcc-3.2; found gcc-4.4-4.2. Passed
Checking for libaio-0.3.96; found libaio-0.3.104-144.2. Passed
Check complete. The overall result of this check is: Passed
=======================================================================
Checking kernel parameters
Checking for semmsl=250; found semmsl=1250. Passed
Checking for semmns=32000; found semmns=32000. Passed
Checking for semopm=100; found semopm=100. Passed
Checking for semmni=128; found semmni=256. Passed
Checking for shmmax=536870912; found shmmax=3294967296. Passed
Checking for shmmni=4096; found shmmni=4096. Passed
Checking for shmall=2097152; found shmall=2097152. Passed
Checking for file-max=65536; found file-max=131072. Passed
Checking for VERSION=2.6.5-7.201; found VERSION=2.6.31.5-0.1-desktop. Passed
Checking for ip_local_port_range=1024 - 65000; found ip_local_port_range=1024 - 65000. Passed
Checking for rmem_default=262144; found rmem_default=4194304. Passed
Checking for rmem_max=262144; found rmem_max=4194304. Passed
Checking for wmem_default=262144; found wmem_default=262144. Passed
Checking for wmem_max=262144; found wmem_max=262144. Passed
Check complete. The overall result of this check is: Passed
=======================================================================
Checking Recommended glibc version
Expected result: ATLEAST=2.3.3-98.28
Actual Result: 2.10.1-10.4
Check complete. The overall result of this check is: Passed
=======================================================================
Checking physical memory requirements ...
Expected result: 922MB
Actual Result: 5460MB
Check complete. The overall result of this check is: Passed
=======================================================================
Checking available swap space requirements ...
Expected result: 5460MB
Actual Result: 10244MB
Check complete. The overall result of this check is: Passed
=======================================================================
Checking Network Configuration requirements ...
Actual Result: :java.lang.NullPointerException:Exception/Error Occurred
Check complete. The overall result of this check is: Not executed <<<<
Recommendation: Oracle supports installations on systems with DHCP-assigned public IP addresses. However, the primary network interface on the system should be configured with a static IP address in order for the Oracle Software to function properly. See the Installation Guide for more details on installing the software on systems configured with DHCP.
=======================================================================
Validating ORACLE_BASE location (if set) ...
Check complete. The overall result of this check is: Passed
=======================================================================
Checking Oracle Home path for spaces...
Check complete. The overall result of this check is: Passed
=======================================================================
Checking for proper system clean-up....
Check complete. The overall result of this check is: Passed
=======================================================================
Checking for Oracle Home incompatibilities ....
Actual Result: NEW_HOME
Check complete. The overall result of this check is: Passed
=======================================================================
Checking Network Configuration requirements ...
Actual Result: :java.lang.NullPointerException:Exception/Error Occurred
Check complete. The overall result of this check is: Not executed <<<<
Recommendation: Oracle supports installations on systems with DHCP-assigned public IP addresses. However, the primary network interface on the system should be configured with a static IP address in order for the Oracle Software to function properly. See the Installation Guide for more details on installing the software on systems configured with DHCP.
=======================================================================
Please suggest how to resolve. -
How to start Oracle Report Builder in Linux
Hi all
Can someone please help by telling how can i start Oracle Report Builder in Linux????
Thank you and best regards to allHello,
there should be a script rwbuilder.sh
in ORACLE_HOME/bin for 10.1.2.
in ORACLE_INSTANCE/config/reports/bin for 11g
Of course, you need to have a "X Display Server " up and running and the variable DISPLAY must be set to this "X Display Server "
Example :
export DISPLAY=123.456.789.12:0
$ORACLE_HOME/bin/rwbuilder.sh
Regards -
Error While Installing ORACLE 10g in Redhat Linux 5.0
Hi all,
Anybody please guide me regarding the posted error.
I'm trying to install ORACLE 10g in Redhat Linux 5.0 and finding error as "Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/OraInstall2009-10-15_09-20-56PM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at sun.security.action.LoadLibraryAction.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
at sun.awt.DebugHelper.<clinit>(Unknown Source)
at java.awt.Component.<clinit>(Unknown Source)
I tired a lot to sort it out but unable to resolve.So please tell me the possible ways.
I appreciate all types of clarifications...
Thanks in Advance
Sajeev GeorgeSajeevcmc wrote:
Hi,
Thanks for the reply.
Could you please tell me the rpm full name and where i can download the same?
Thanks in Advance
SAJEEV GEORGEYou need to have the following packages installed already before starting Oracle installation
http://download.oracle.com/docs/cd/B19306_01/install.102/b15669/pre_install.htm#sthref80
binutils-2.15.92.0.2-10.EL4
compat-db-4.1.25-9
control-center-2.8.0-12
gcc-3.4.3-9.EL4
gcc-c++-3.4.3-9.EL4
glibc-2.3.4-2
glibc-common-2.3.4-2
gnome-libs-1.4.1.2.90-44.1
libstdc++-3.4.3-9.EL4
libstdc++-devel-3.4.3-9.EL4
make-3.80-5
pdksh-5.2.14-30
sysstat-5.0.5-1
xscreensaver-4.18-5.rhel4.2
And from the following link, you can get the same list:
http://www.puschitz.com/InstallingOracle10g.shtml (Go to Checking Software Packages (RPMs))
And from my installation guide you can easily install Oracle on Linux by following step by step instruction
[Step by Step Installing Oracle Database 10g Release 2 on Linux (CentOS) and AUTOMATE the installation using Linux Shell Script|http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/] -
Error in installation of Oracle BRM setup on a Linux Box
Hi All ,
I am trying to install an Oracle BRM setup on a Linux Box but during installation
I am facing a major error , please can anybody help me out in figuring out the cause . Any sort of help
would be appreciable .......
cat ./var/dm_oracle/dm_oracle.pinlog
E Fri Feb 1 11:46:21 2008 178.65.112.65, dm:908 dm_main.c(44):2641 1:<machine>:<program>:0:0:0:0:0
DM master dm_die: "bad mutexattr_setpshared of accept token: 38", errno 0
Error while running pin_setup script
PATH variable IS O.K...
LD_LIBRARY_PATH variable IS O.K...\n
You are the pin user
You are in the pin group\n
Starting setup.\n
#===========================================================
# Installation started at Fri Feb 1 10:08:25 2008.
#===========================================================
cm: Generating pin.conf file
pin.conf is generated under /home/pin/opt/portal/7.3/sys/cm/pin.conf
pin.conf is generated under /home/pin/opt/portal/7.3/apps/pin_remit/pin.conf
dm_oracle: Generating pin.conf file
pin.conf is generated under /home/pin/opt/portal/7.3/setup/scripts/pin.conf
pin.conf is generated under /home/pin/opt/portal/7.3/sys/dm_oracle/pin.conf
dm_oracle: Configuring database
Creating Portal tablespaces ... this may take a few minutes
Creating main tablespace 'pin00' (already exists)
Creating index tablespace 'pinx00' (already exists)
Creating temporary tablespace 'PINTEMP' (already exists)
Creating 'pin' user
Granting 'pin' correct permissions
Altering 'pin' user default tablespace
Altering 'pin' user temporary tablespace
Finished creating the Portal tablespaces
Continuing to Configure the database
Dropping table from file
Execute SQL statement from file /home/pin/opt/portal/7.3/sys/dm_oracle/data/drop_snapshots.source
Execute SQL statement from file /home/pin/opt/portal/7.3/sys/dm_oracle/data/drop_tables.source
Execute SQL statement from file /home/pin/opt/portal/7.3/sys/dm_oracle/data/create_dd_UTF8.source
Loading objects from file
pcmdd: bad connect for 178.65.112.65, errno 111
Re-reading the pin.conf file "./pin.conf" since it has changed. Previous file mod time was 1201791202, now it is 1201878509
errno=<PIN_ERR_DM_CONNECT_FAILED:26> location=<Unknown pin location:0> class=<UNKNOWN:0> field num=<0:0,0> recid=<0> reserved=<111>
pcmdd: bad connect for brm1.iaglab.com, errno 111
errno=<PIN_ERR_DM_CONNECT_FAILED:26> location=<Unknown pin location:0> class=<UNKNOWN:0> field num=<0:0,0> recid=<0> reserved=<111>
Linux lib Version
glib version :
bash-3.00$ ls /lib/libc-*
/lib/libc-2.3.4.so
Oracle Version
Oracle Version :
SQL*Plus: Release 10.2.0.1.0I am having the same issue with installation of brm on AIX.
My research tells me it has to do with dm_oracle start up and below :
#========================================================================
# dm_shmsize
# (UNIX only) Specifies the size of shared memory segment, in bytes, that
# is shared between the front ends and back ends for this DM.
#========================================================================
# dm_bigsize
# (UNIX only) Specifies the size of shared memory for "big" shared memory structures,
# such as those used for large searches (those with more than 128 results)
# or for PIN_FLDT_BUF fields larger than 4 KB.
Any other clues leads to resolve the issue helps.
Thanks! -
Fast installation for oracle db under redhat linux 4 update 3
dear sirs...
i know little about linux, however, i create a simple script that will preform pre-installation operations for linux 4 update 3. it will update the files, create oracle user, and so on. you will find its source. if possible i hope someone can upgrade this script such that there it will check the OS packages, and stop the changes if any of the packages is missing.
thanks for any help and best regards.
notes:
1- to use this script, type the text in linux gedit. save it in a file and put the file in a safe place so that every time you want to install the db, you can find it ready.
2- do not use notepad to create the file, it will not work.
3- before you run the script, be sure that all packages needed by the db exists.
4- the script assumes that you have just installed linux for running the database only.
5- to run the script in linux , login as root user, and type . scriptfilename
6- the script should be executed only once.
/usr/sbin/groupadd oinstall
/usr/sbin/groupadd dba
/usr/sbin/useradd -m -g oinstall -G dba oracle
passwd oracle
mkdir -p /home/oracle
chown -R oracle:oinstall /home/oracle
chmod -R 775 /home/oracle
cat >> /etc/sysctl.conf <<EOF
# the following lines are added by a script
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.wmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_max = 262144
EOF
/sbin/sysctl -p
cat >> /etc/security/limits.conf <<EOF
# the following lines are added by a script
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
EOF
cat >> /etc/pam.d/login <<EOF
# the following lines are added by a script
session required /lib/security/pam_limits.so
EOF
cat >> /etc/profile <<EOF
# the following lines are added by a script
if [ \$USER = "oracle" ]; then
if [ \$SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
umask 022
fi
EOF
cat >> /etc/csh.login <<EOF
# the following lines are added by a script
if ( \$USER == "oracle" ) then
limit maxproc 16384
limit descriptors 65536
umask 022
endif
EOFNice.
A fair chunk of additional work would go into this to ensure that existing settings are not clobbered, but it should be OK on a new install of Linux.
Why not require that they use the DVD (so you have all RPMs on one media), cd to the RPMS directory and simply 'rpm -i' all the prereq packages? Then you don't need to 'rpm -q' and inspect the status. -
Oracle 8i enterprise client linux installation problems
Hi,
I have a problem installing oracle 8i client on linux machine. It gives an error message when I tried to run runInstaller.
this is the error message:
Initializing JAva Virtual Machine from /usr/local/jre/bin/jre. Please Wait...
Error in CreateOUIProcess():-1
:Bad address
The machine is PII 450 with 128 mb of ram
Thanks,
Gurhan Gunduz
850-6447018Gurhan,
I think it has nothing to do setting the JRE enviroment .from what I could remember is you have to install a JRE enviroment patch..
If you check you insallation documentation..
it tell you where to get the patch from..and I also think that you have to create symbolic link...
If you need more info on this..I could send you the URL..where you could get the patch..
send me an email..if you need futher assistance..I could then send you the url to get the patches from...
good luck.
shah -
Running shell scripts from within oracle. A big task is forgotten
Dear List,
I have some shell shell scripts which do some tasks on the linux OS level.
I am calling the Korn scripts using a java class, which in turn is being called from a PLSQL function.
All but one of the 10 script works fine. This is the script which does the most work, and takes on average 40 minutes usually.
Why does Oracle forget the running of the shell script? I wait in my PLSQL function for the return code, but it never comes. The scripts I have not written myself !
I look forward to your reply on this matter.
regards
BenHi
If you are using the Oracle database 10g, the new dbms_scheduler package allows you to run shell scripts. The dbms_scheduler.create_job procedure have one parameter called the job_action in which you specify the full path of the shell script.
I hope this will help -
Errors while Installing Oracle Xpress XE on Linux (Suse 11.2)
Hi everyone,
i tried to install Oracle XE on a Linux System. But i got several Errros during the Installation :
Paket "oracle-xe-10.2.0.1-1.0.i386"
Executing the Package got following Errors :
Start with : rpm - ivh oracle-xe-10.2.0.1-1.0.i386.rpm
Last steps :
Executing Post Install steps
insserv : warning : script 'oracle-xe' missing LSB tags and overrides
insserv : Default-Start undefined, assuming default start runlevel(s) for script 'oracle-xe'
oracle-xe 0:off 1:off 2:off 3:on 4:off 5:on 6:off
I tried to configure :
(oracle-xe configure)
The Listener startet correctly.
After that 3 Error-Messages :
Configuring Database : /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/config/log/*.log no such file or directory
/bin/chmod: cannot access '/usr/lib/oracle/xe/oradata/XE' no such file or directory
and again :
/bin/chmod: cannot access '/usr/lib/oracle/xe/oradata/XE' no such file or directory
PS : the Folder doesn´t exist after Installing
At the end :
Intsallation completet Successfully (!!!!)
The Database Files are missing ....
The script "createdatase.sh" even got only errors (NOT Connected).
Did i do anything wrong ? Any help is welcome !
MfG
Stephan
Edited by: user1418491 on 12.09.2010 12:59
Add :
If I try to conenct via SQL the following Error occures :
Enter user-name: system
Enter password:
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory
Edited by: user1418491 on 12.09.2010 13:52Hi all,
the Problem ist still allive ^^
By Installing the RPM Package i get some errors concerning the folder /var/tmp/. I think this is the problem why the initial database is not installed. So I´ve done the steps again with the comman ./createdb.sh.
The naked DB is installed (without APEX i think). So i installed the APEX 4.0 again an i found on my external Linux Server (V-Server !) the folowing Index :
Name
Last modified
Size
i/ Tue, 14 Sep 2010 20:26:24 GMT
public/ Tue, 14 Sep 2010 17:31:36 GMT
sys/ Tue, 14 Sep 2010 17:31:43 GMT
A folder /i/ written by the Apex, but still no Apex !
The DB works correctly by Using Putty an start SQL+ on the V-Server but external connect is still not pssible.
HTTP Access in the DB ist set to LOCALACCESS=false
HTTP Port = 8080
Listener = 1521
TNSPING external DB is ok, but connecting via SQL or something still got erros written above (ORA-12514 )
by connecting with IE8 i have to connect with sys/pw . But there happened nothing after that exept showing the folders.
A firewall isn´t running on my V-Server because there is even teamspeak running with 6 servers.
I´ll try with the ORARUN.RPM and hope ist will work ^^
Add :
I tried ORARUN.RPM but the same Errors coming as installing the ORACLE-UNIV.RPM
Updating etc/sysconfig/oracle...
insserv: warning: script 'S09vzquota' missing LSB tags and overrides
insserv: warning: script 'S01oracle-xe' missing LSB tags and overrides
insserv: warning: script 'K01psa-firewall' missing LSB tags and overrides
insserv: warning: script 'S01psa-vpn' missing LSB tags and overrides
insserv: warning: script is corrupt or invalid: /etc/init.d/rc6.d/S00vzreboot
insserv: warning: script 'oracle-xe' missing LSB tags and overrides
insserv: warning: script 'psa-vpn' missing LSB tags and overrides
insserv: warning: script 'psa-firewall-forward' missing LSB tags and overrides
insserv: Default-Start undefined, assuming default start runlevel(s) for script `psa-firewall-forward'
insserv: warning: script 'psa-firewall' missing LSB tags and overrides
insserv: warning: script 'vzquota' missing LSB tags and overrides
MfG
Stephan
Edited by: Stephan on 15.09.2010 12:34
Maybe you are looking for
-
Can I make payments on a computer?
If i buy a macbook pro can i make like a down payment and make payments on it every month?
-
I have id'd 3 email contacts who do not receive my emails, ( they do show up in my sent mail), but I do not get a reject message. They are on different networks (optonline, mindspring and me.com) using both PCs and macs. If I send them an email fro
-
Networked printer does not work under bonjour
I run a 50-computer network with 10 printers, all running bonjour. Servers and clients all 10.3 and 10.4. I just installed 10.5 on my computer to test. It appears that none of the network printers (mostly Lexmarks) no longer work with bonjour, only d
-
I deleted a text conversation by mistake can I retrieve it?
I accidentally deleted a SMS conversation instead of the one below it. Is there anyway I can retrieve it?
-
Threadinar10 - Page Separator, Page Fragment Box , Tab Set & Tab Components
Hi All, This is the tenth in the Threadinar series. See the Components Threadinar Index at http://forum.sun.com/jive/thread.jspa?threadID=103424 for the complete list to date. This Threadinar will discuss 4 components in the "Components Palette: Layo