Oracle_home & oracle_base difference
Can anyone explain the difference between $ORACLE_HOME and $ORACLE_BASE ?
Just wanted to show u a very pratical setup
This is my oracle_base contents. Usually it stores diff oracle admins files/documentation/java/inventory etc.
antariksh.ups.com:(oracle):p920 +> echo $ORACLE_BASE
/u001/app/oracle
antariksh.ups.com:(oracle):p920 +> pwd
/u001/app/oracle
antariksh.ups.com:(oracle):p920 +> ll
total 76
drwxr-xr-x 7 oracle dba 4096 Aug 16 01:22 admin/
drwxrwxr-x 6 oracle dba 4096 Jul 27 20:57 doc/
drwxrwxr-x 4 oracle dba 4096 Jul 27 20:57 jre/
drwxr-xr-x 2 root root 49152 Feb 23 2005 lost+found/
drwxrwxr-x 13 oracle dba 4096 Aug 14 20:24 oraInventory/
drwxrwxr-x 6 oracle dba 4096 Jul 27 23:22 oui/
drwxr-xr-x 3 oracle dba 4096 Jul 27 20:57 patch/
drwxr-xr-x 7 oracle dba 4096 Aug 14 18:56 product/
Under product dir we generally store diff oracle softwares like db s/w,grid control s/w etc.
antariksh.ups.com:(oracle):p920 +> pwd
/u001/app/oracle/product
antariksh.ups.com:(oracle):p920 +> ll
total 20
drwxr-xr-x 56 oracle dba 4096 Aug 14 18:47 10.1.0.3.0/
drwxr-x--- 54 oracle dba 4096 Aug 13 00:58 10.2.0.1.0/
drwxr-xr-x 51 oracle dba 4096 Aug 11 12:50 9.2.0.4.0/
drwxr-xr-x 54 oracle dba 4096 Jul 29 11:42 9.2.0.6.0/
drwxr-xr-x 36 oracle dba 4096 Aug 14 19:00 agent/
Once you enter any of these version specific dir its nothing but the oracle home. So i would say orahome is the place where you install ur oracle s/w binaries.
antariksh.ups.com:(oracle):p920 +> echo $ORACLE_HOME
/u001/app/oracle/product/9.2.0.4.0
antariksh.ups.com:(oracle):p920 +> pwd
/u001/app/oracle/product/9.2.0.4.0
antariksh.ups.com:(oracle):p920 +> ls
Apache/ ctx/ doc/ jar/ JRE@ mgw/ oem_webstage/ owm/ root.sh* syndication/ xdk/
assistants/ cwmlite/ ds/ javavm/ jsp/ network/ olap/ plsql/ slax/ sysman/
BC4J/ dbs/ hs/ jdbc/ ldap/ oci/ oracore/ precomp/ soap/ ultrasearch/
bin/ demo/ install/ jdk/ lib/ ocommon/ ord/ rdbms/ sqlj/ weboamlib/
classes/ dm/ inventory/ jlib/ md/ ocs4j/ otrace/ relnotes/ sqlplus/ wwg/
This is OFA recommended setup.
Regards,
http://askyogesh.com
Similar Messages
-
I am installing oracle 8.1.6 on Red Hat linux 7.2
I made following entries in .bashrc file of oracle
export ORACLE_BASE="/oracle"
export ORACLE_HOME="$ORACLE_BASE/product/9i"
export LD_LIBRARY_PATH="$ORACLE_HOME/lib:/lib:/usr/lib:/usr/openwin/lib"
export ORA_NLS33="$ORACLE_HOME/ocommon/nls/admin/data"
export ORACLE_SID="ORCL"
export
CLASSPATH="$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:$ORACLE_HOME/network/jlib"
export
PATH="/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/u01/app/oracle/product/8.1.6/bin:/oracle/jdk/bin:.:/opt/gnome/bin:/opt/www/htdig/bin:/opt/kde/bin:/usr/share/texmf/bin:/usr/openwin/bin
I am geting following error while installation
"Error in invoking target install of makefile $ORACLE_HOME/sqlplus/lib/ins_sqlplus.mk"
Please help me. I have set necessary file permissions also.
HemantHi
Having just done this myself on Suse 8, are you sure that the make package is installed? Also make sure that the cc/gcc packages are installed. HTH
Dave -
ORACLE_HOME disappeared, SQLPLUS - bash: sqlplus: command not found
OK, I am a newbie but am having real difficulty with my 10G DB which I had set up on Unix Solaris box but someone was messing around with it and now I can't see ORACLE_HOME, ORACLE_BASE and ORACLE_SID, they all return blank when I try to "echo" each.
I realise I should have originally set it in Bash_profile, but is now too late.
So how do I set them back up, I cannot get SQLPLUS / AS SYSDBA.........bash: sqlplus: command not found
I have tried to reset and export but still doesn't work.
I got the ORACLE_BASE as:
training:/export/home/training/product/10.2.0/Db_1:N
but can't seem to set the three variables to run SQLPLUS, any ideas what I am doing wrong?
Tried messing around to reset but nothing works, this is the present state of affairs:
env
SSH_TTY=/dev/pts/3
USER=training
ORACLE_SID=training
ORACLE_BASE=/oracle/app
PATH=/usr/sbin:/usr/bin
PWD=/export/home/training/product/10.2.0/Db_1/bin
TZ=Eire
PS1=\e[33m\h\e[31m-\u-\e[33m\W/\e[31m-$\e[32m
SHLVL=3
HOME=/export/home/training
LOGNAME=training
ORACLE_HOME=/oracle/app/product/10.2.0
Can someone help me, really need a step by step guide to set these back up properly.
Thanksjust retyped the last one correctly:
find / -name sqlplus -ls
find: cannot read dir /var/lib/gdm: Permission denied
find: cannot read dir /var/lib/log/gdm: Permission denied
find: cannot read dir /var/mysql: Permission denied
find: cannot read dir /var/dt/sdtlogin: Permission denied
find: cannot read dir /var/core: Permission denied
find: cannot read dir /var/run/smc898: Permission denied
find: cannot read dir /var/spool/clientmqueue: Permission denied
find: cannot read dir /var/spool/mqueue: Permission denied
find: cannot read dir /var/fm/fmd/rsrc: Permission denied
find: cannot read dir /var/fm/fmd/ckpt: Permission denied
find: cannot read dir /var/fm/fmd/xprt: Permission denied
find: cannot read dir /var/postgres/8.2/data: Permission denied
find: cannot read dir /var/postgres/8.2/backups: Permission denied
find: cannot read dir /var/sma_snmp: Permission denied
find: cannot read dir /var/tmp/gconfd-root: Permission denied
find: cannot read dir /var/tmp/orbit-root: Permission denied
find: cannot read dir /var/krb5/rcache/root: Permission denied
find: cannot read dir /var/opt/SUNWjass/run/20091012152456: Permission denied
find: cannot read dir /.gconf: Permission denied
find: cannot read dir /opt/SUNWlwact/misc/: Permission denied
find: cannot read dir /opt/SUNWlwact/sdk/: Permission denied
find: cannot read dir /opt/SUNWlwact/xsl/: Permission denied
find: cannot read dir /opt/SUNWlwact/svc/: Permission denied
find: cannot read dir /opt/SUNWlwact/man/: Permission denied
find: cannot read dir /.sunw: Permission denied
199411 1 -rw-r--r-- 1 training other 0 Jan 14 23:12 /export/home/training/sqlplus
172460 2 drwxr-x--- 9 training other 9 Oct 27 17:58 /export/home/training/product/10.2.0/Db_1/sqlplus
188055 10 -rwxr-x--x 1 training other 8776 Oct 27 18:00 /export/home/training/product/10.2.0/Db_1/bin/sqlplus
184787 2 drwxr-x--- 3 training other 3 Oct 27 17:58 /export/home/training/product/10.2.0/Db_1/inventory/Templates/sqlplus
184842 2 drwxr-x--- 3 training other 3 Oct 27 17:58 /export/home/training/product/10.2.0/Db_1/oc4j/j2ee/oc4j_applications/applications/isqlplus/isqlplus/WEB-INF/classes/oracle/sqlplus
find: cannot read dir /root: Permission denied
find: cannot read dir /proc/227: Permission denied
find: cannot read dir /proc/832: Permission denied
find: cannot read dir /proc/835: Permission denied
find: cannot read dir /proc/458: Permission denied
find: cannot read dir /proc/381: Permission denied
find: cannot read dir /proc/624: Permission denied
find: cannot read dir /proc/818: Permission denied
find: cannot read dir /proc/2221: Permission denied
find: cannot read dir /proc/290: Permission denied
find: cannot read dir /proc/1166: Permission denied
find: cannot read dir /proc/273: Permission denied
find: cannot read dir /proc/229: Permission denied
find: cannot read dir /proc/225: Permission denied
find: cannot read dir /proc/478: Permission denied
find: cannot read dir /proc/445: Permission denied
find: cannot read dir /proc/815: Permission denied
find: cannot read dir /proc/410: Permission denied
find: cannot read dir /proc/432: Permission denied
find: cannot read dir /proc/440: Permission denied
find: cannot read dir /proc/427: Permission denied
find: cannot read dir /proc/352: Permission denied
find: cannot read dir /proc/443: Permission denied
find: cannot read dir /proc/1352: Permission denied
find: cannot read dir /proc/406: Permission denied
find: cannot read dir /proc/2353: Permission denied
find: cannot read dir /proc/670: Permission denied
find: cannot read dir /proc/667: Permission denied
find: cannot read dir /proc/405: Permission denied
find: cannot read dir /proc/213: Permission denied
find: cannot read dir /proc/16953: Permission denied
find: cannot read dir /proc/1146: Permission denied
find: cannot read dir /proc/2580: Permission denied
find: cannot read dir /proc/27831: Permission denied
find: cannot read dir /proc/444: Permission denied
find: cannot read dir /proc/1338: Permission denied
find: cannot read dir /proc/1350: Permission denied
find: cannot read dir /usr/lib/cc-cfw: Permission denied
find: cannot read dir /usr/aset: Permission denied
find: cannot read dir /.gconfd: Permission denied
find: cannot read dir /etc/flash/precreation: Permission denied
find: cannot read dir /etc/flash/preexit: Permission denied
find: cannot read dir /etc/flash/postcreation: Permission denied
find: cannot read dir /etc/inet/secret: Permission denied
find: cannot read dir /etc/apache/ssl.key: Permission denied
find: cannot read dir /etc/sfw/openssl/private: Permission denied
find: cannot read dir /etc/sfw/private: Permission denied
find: cannot read dir /etc/webmin: Permission denied
Looks a bit better:
199411 1 -rw-r--r-- 1 training other 0 Jan 14 23:12 /export/home/training/sqlplus
172460 2 drwxr-x--- 9 training other 9 Oct 27 17:58 /export/home/training/product/10.2.0/Db_1/sqlplus
188055 10 -rwxr-x--x 1 training other 8776 Oct 27 18:00 /export/home/training/product/10.2.0/Db_1/bin/sqlplus
184787 2 drwxr-x--- 3 training other 3 Oct 27 17:58 /export/home/training/product/10.2.0/Db_1/inventory/Templates/sqlplus
184842 2 drwxr-x--- 3 training other 3 Oct 27 17:58 /export/home/training/product/10.2.0/Db_1/oc4j/j2ee/oc4j_applications/applications/isqlplus
How to I run the sqlplus? -
How to set ORACLE_HOME for database and apps server in same server
Hi, I have problem here to set ORACLE_HOME in .bash_profile for database and apps server. please help me to set this Oracle Home.
Thanks
-jebatcoIf you mean to have both simultaneosly set on the same OS session, of course that's not possible. But you can configure them on your profile, and choose them when needed. The following is an excerpt from my .bash_profile
export EDITOR=vi
umask 022
alias O='cd ${ORACLE_HOME}'
o10()
{ export ORACLE_SID=db102
export ORACLE_BASE=/home/oracle/base
export ORACLE_HOME=$ORACLE_BASE/OraHome10
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin
export TNS_ADMIN=$ORACLE_BASE/OraHome11/network/admin
export PS1='[\u@\h_10 \W]\$ '
o11()
{ export ORACLE_SID=db11
export ORACLE_BASE=/home/oracle/base
export ORACLE_HOME=$ORACLE_BASE/OraHome11
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin
export PS1='[\u@\h_11 \W]\$ '
xe()
{ export ORACLE_SID=XE
export ORACLE_BASE=/usr/lib/oracle/xe/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/server
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin
export TNS_ADMIN=/home/oracle/base/OraHome11/network/admin
export PS1='[\u@\h_XE \W]\$ '
}If I want to set Oracle 10g environment I type "o10" at OS prompt, "o11" for 11g, and so on. -
Oracle_Home destination
Hello,
I am using ORACLE 10g on a windows server and i want to know my ORACLE home on a client PC
I used the below command
C:\>echo ORACLE_HOME = %ORACLE_HOME%
and i get the below
ORACLE_HOME = %ORACLE_HOME%
I need to know the destination for ex: C:\oracle\product\10.2.0\db_1
Thanks in advanceuser3489571 wrote:
OK, I am a newbie but am having real difficulty with my DB 10G which I had set up on Unix Solaris box but someone was messing around with it and now I can't see ORACLE_HOME, ORACLE_BASE and ORACLE_SID.
Realise I should have originally set it in Bash_profile, too late.
So how do I set them back up, I cannot get SQLPLUS / AS SYSDBA.........bash: sqlplus: command not found
I have tried to reset but still doesn't work.
I got the ORACLE_BASE as:
training:/export/home/training/product/10.2.0/Db_1:N
but can't seem to set the three variables to run SQLPLUS, any ideas what I am doing wrong?What you are doing wrong is letting other people mess with your setup.
You have to get those variables set into your profile by one of several possible means.
You can probably find ORACLE_HOME for the server by looking at some entries in the 'oratab' file. If I remember, on solaris that should be in /var/opt/oratab. That will also show the value for ORACLE_SID. If you see a line in oratab that looks something like this:
ORCL:/oracle/app/product/10.2.0:YIn the above, the value for ORACLE_SID is 'ORCL' and the value for ORACLE_HOME is '/oracle/app/product/10.2.0'. In addition to setting those two environment variables, you need to add $ORACLE_HOME/bin to your PATH. -
Echo $ORACLE_HOME not returning anything
Hello,
We are an Oracle On Demand customer , when i try to login to host using putty and try to find the Oracle Home using the command
# echo $ORACLE_HOME ,
it doesnt return anything. Is there any configuration that is missing, any help will be appreciated.
I tried modifying the .bash_profile file by adding
ORACLE_HOME=$ORACLE_BASE/product/10.2.0
export ORACLE_HOME
but still no luck.Poking about on the intertubes, I found an Oracle On Demand Technology reference guide (but probably from a different version). Anyways, it has an appendix where all the conventions about setting ORACLE_BASE, ORACLE_HOME and SID are found. You should find that guide for your circumstance, there appears to be a lot of conventions based on things you haven't mentioned.
Remember, filenames beginning with a dot are hidden (I don't use filezilla so I don't know how it handles that), and some systems are set up with more general environment settings set elsewhere than your .bashrc. You may simply need to dot some other file or use oraenv to condition your settings, or need to create a .bashrc or some other shell specific file. -
ORA-27102: out of memory (while creation of drsite problem)
Hi all,
I am trying to create DRSITE at remote location, but whilw using the pfile of primary server i am getting the error ORA-27102: out of memory we are using Oracle 9.2 and RHEL and another is that in the primary server we are haing oracle 9.2.0.8 and at the drsite we are using oracle 9.2.0.6,actually aour patch got corrupted that's why we are using oracle 9.2.0.6, because of the differences os the patch creating a problem.....but i dno't think so..pls correct me if i am wrong
SQL> conn sys/pwd as sysdba
Connected to an idle instance.
SQL> startup nomount pfile='/u01/initicai.ora';
ORA-27102: out of memory
SQL>we are haing total 8gb memory out of which we using 6gb for oracle i.e
[oracle@icdb u01]$ cat /proc/meminfo
MemTotal: 8175080 kB
MemFree: 39912 kB
Buffers: 33116 kB
Cached: 7780188 kB
SwapCached: 32 kB
Active: 78716 kB
Inactive: 7761396 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 8175080 kB
LowFree: 39912 kB
SwapTotal: 16779884 kB
SwapFree: 16779660 kB
Dirty: 28 kB
Writeback: 0 kB
Mapped: 48356 kB
Slab: 265028 kB
CommitLimit: 20867424 kB
Committed_AS: 61372 kB
PageTables: 2300 kB
VmallocTotal: 536870911 kB
VmallocUsed: 271252 kB
VmallocChunk: 536599163 kB
HugePages_Total: 0
HugePages_Free: 0
Hugepagesize: 2048 kB
and
[oracle@icdb u01]$ cat /etc/sysctl.conf
# Kernel sysctl configuration file for Red Hat Linux
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and
# sysctl.conf(5) for more details.
# Controls IP packet forwarding
net.ipv4.ip_forward = 0
# Controls source route verification
net.ipv4.conf.default.rp_filter = 1
# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0
# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0
# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1
kernel.shmall=2097152
kernel.shmmax=6187593113
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max =65536
net.ipv4.ip_local_port_range = 1024 65000
[oracle@icdb u01]$and bash profile is
PATH=$PATH:$HOME/bin
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=$ORACLE_BASE/product/9.2.0
ORACLE_SID=ic
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/lib32
PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH PATH
export PATH
unset USERNAME
~
~please suggest me...init file
[oracle@icdb u01]$ cat initicai.ora
*.aq_tm_processes=1
*.background_dump_dest='/u01/app/oracle/admin/ic/bdump'
*.compatible='9.2.0.0.0'
*.control_files='/bkp/data/ctl/control03.ctl'
*.core_dump_dest='/u01/app/oracle/admin/ic/cdump'
*.db_block_size=8192
*.db_cache_size=4294967296
*.db_domain=''
*.db_file_multiblock_read_count=16
*.db_name='icai'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=icaiXDB)'
*.fast_start_mttr_target=300
*.hash_join_enabled=TRUE
*.instance_name='icai'
*.java_pool_size=157286400
*.job_queue_processes=20
*.large_pool_size=104857600
*.open_cursors=300
*.pga_aggregate_target=938860800
*.processes=1000
*.query_rewrite_enabled='FALSE'
*.remote_login_passwordfile='EXCLUSIVE'
*.shared_pool_size=818103808
*.sort_area_size=524288
*.star_transformation_enabled='FALSE'
*.timed_statistics=TRUE
*.undo_management='AUTO'
*.undo_retention=10800
*.undo_tablespace='UNDOTBS1'
*.user_dump_dest='/u01/app/oracle/admin/ic/udump'
#log_archive_dest='/bkp/arch/ic_'
Log_archive_start=True
sga_max_size=6444442450944
log_archive_dest_1='location=/bkp/arch/ mandatory'
log_archive_dest_2='service=prim optional reopen=15'
log_archive_dest_state_1=enable
remote_archive_enable=true
standby_archive_dest='/arch/ic/ic_'
standby_file_management=auto
[oracle@icdb u01]$Edited by: user00726 on Nov 11, 2009 10:27 PM -
Dragons ! RH61 and Oracle 8.1.5 db creation
Oh dear. It seems we have found the dragons lair ...
OK, I managed to get through the install section,
in short, run the linux/install/runIns.sh script and do it with KDE.
Now what does the window manager have to do with this ?
Well, there is an explanation, but I was quite surprised that the wm could be an issue ...
The NEXT problem: Create a database.
There is a very good description at http://homepages.tig.com.au/~jmsalvo/linux/oracle8i-3.html
Well what is the source of the problem here ?
All of my efforts (so far) have resulted in the well-known "Not logged on" message.
There is a very "funny" addition to this:
Startup is done manually WITH success - but then the Not logged on appears.
But then I can't shut it down again or anything (Not logged on).
Applying the patches didn't change a thing.
WHAT IS THE SOURCE OF THIS NOT-LOGGED-ON MESSAGE AND HOW TO FIX IT ?
PLEASE STATE THE HIGHLIGHTS OF THE PROCESS.
IS IT RELATED TO DIFFERENCES BETWEEN REDHAT 6.0 AND 6.1 ?
Red Hat Linux release 6.1 (Cartman)
Kernel 2.2.12-20 on an i586
login: oracle
Last login: Wed Feb 2 20:32:34 from main
Happy Oracle environvent variables set.
[oracle@lbox oracle]$ svrmgrl
Oracle Server Manager Release 3.1.5.0.0 - Production
(c) Copyright 1997, Oracle Corporation. All Rights Reserved.
Oracle8i Enterprise Edition Release 8.1.5.0.2 - Production
With the Partitioning and Java options
PL/SQL Release 8.1.5.0.0 - Production
SVRMGR> connect internal
Connected.
SVRMGR> startup nomount
ORACLE instance started.
ORA-01012: not logged on
SVRMGR>
Server Manager complete.
[oracle@lbox oracle]$ sqlplus system/manager
SQL*Plus: Release 8.1.5.0.0 - Production on Wed Feb 2 20:41:57 2000
(c) Copyright 1999 Oracle Corporation. All rights reserved.
ERROR:
ORA-01033: ORACLE initialization or shutdown in progress
nullThe below text is cut-n-paste from a telnet session on a freshly booted machine.
The oracle environment variables are set by /usr/local/bin/env4ora.sh
The network is local and not connected to anything. The domain name is lnx.
I want to create a database called db1
I assume the global name will be db1.lnx, and the sid db1
I have tried with dbassist to select 'custom' and 'dedicated',
I have also checked that all mts_* entries were commented out # mts_*.
The $ORACLE_HOME/rdbms/install/create directory contains a skeleton.
I have used this to try to create the db1 database,
and here is the information you requested.
I have put it in one big posting for everyone to see.
You get everything up to point 8 in the famous "3.7" paragraph.
This is really a good guide, I highly appreciate your help
Red Hat Linux release 6.1 (Cartman)
Kernel 2.2.12-20 on an i586
login: oracle
Last login: Thu Feb 3 00:46:01 from main
Happy Oracle environvent variables set.
[oracle@lbox oracle]$ hostname
lbox.lnx
[oracle@lbox oracle]$ cat /usr/local/bin/env4ora.sh
#/bin/sh
# - create group oinstall
# - create group dba
# - create user oracle default group oinstall
# - group dba contains oracle and root
# - user oracle is a member of oinstall and dba, there is no oracle group
# Very very ultra-short quick install guide:
# - As usual install must be done by the "oracle" user.
# - Have at least 128 megs of RAM, or it doesn't work.
# - The "runInstaller" script doesn't work ...
# instead go to the install/linux dir and run runIns.sh
# - Some problems with GNOME and Enlightenment.
# Use KDE or a newer version of Enlightenment.
# - Patches should be applied after installation and before creating databases.
export LD_LIBRARY_PATH=/big/ora/app/oracle/product/8.1.5/lib
export ORACLE_BASE=/big/ora/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/8.1.5
export NLS_LANG=WE8ISO8859P1
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
export ORACLE_SID=test
export PATH="$PATH:$ORACLE_HOME/bin"
echo Happy Oracle environvent variables set.
[oracle@lbox oracle]$
[oracle@lbox oracle]$ cd $ORACLE_HOME
[oracle@lbox 8.1.5]$ cd rdbms/install/create/
[oracle@lbox create]$
[oracle@lbox create]$ vi initdb1.ora
1 db_name = db1
2 instance_name = db1
3 service_names = db1.lnx
4
5 control_files = ("/big/ora/app/oracle/oradata/db1/control01.ctl", "/big/ora/app/oracle/oradata/db1/control02.ctl")
6
7 db_block_buffers = 8192
8
9 shared_pool_size = 15728640
10
11 java_pool_size = 20971520
12
13 log_checkpoint_interval = 10000
14 log_checkpoint_timeout = 1800
15
16 processes = 50
17
18 log_buffer = 163840
19
20 # audit_trail = false # if you want auditing
21 # timed_statistics = false # if you want timed statistics
22 # max_dump_file_size = 10000 # limit trace file size to 5M each
23
24 #log_archive_start = true
25 #log_archive_dest_1 = "location=?/dbs/arch"
26 #log_archive_format = %t_%s.dbf
27 # If using private rollback segments, place lines of the following
28 # form in each of your instance-specific init.ora files:
29 rollback_segments = (r01, r02, r03, r04)
30
31 # Global Naming -- enforce that a dblink has same name as the db it connects to
32 # global_names = false
33
34 # Uncomment the following line if you wish to enable the Oracle Trace product
35 # to trace server activity. This enables scheduling of server collections
36 # from the Oracle Enterprise Manager Console.
37 # Also, if the oracle_trace_collection_name parameter is non-null,
38 # every session will write to the named collection, as well as enabling you
39 # to schedule future collections from the console.
40 # oracle_trace_enable = true
41
42 # define directories to store trace and alert files
43 background_dump_dest = /big/ora/app/oracle/oradata/db1/bdump
44 core_dump_dest = /big/ora/app/oracle/oradata/db1/cdump
45 user_dump_dest =/big/ora/app/oracle/oradata/db1/udump
46
47 db_block_size = 4096
48
49 remote_login_passwordfile = exclusive
50
51 os_authent_prefix = ""
52
53 # The following parameters are needed for the Advanced Replication Option
54 #job_queue_processes = 0
55 #job_queue_interval = 60
56 #distributed_transactions = 10
57 #open_links = 4
58
59 # mts_dispatchers = "(PROTOCOL=TCP)(PRE=oracle.aurora.server.SGiopServer)"
60 # Uncomment the following line when your listener is configured for SSL
61 # (listener.ora and sqlnet.ora)
62 # mts_dispatchers = "(PROTOCOL=TCPS)(PRE=oracle.aurora.server.SGiopServer)"
63
64 # mts_servers = 1
65 compatible = "8.1.5"
~
:q
[oracle@lbox create]$ vi db1.sh
1 DB_NAME=db1
2 DB_DIR=/big/ora/app/oracle/oradata/$DB_NAME
3 echo "Creating dirs"
4 mkdir $DB_DIR
5 mkdir $DB_DIR/pfile
6 mkdir $DB_DIR/bdump
7 mkdir $DB_DIR/cdump
8 mkdir $DB_DIR/udump
9 mkdir $DB_DIR/create
10 mkdir $DB_DIR/exp
11 mkdir $DB_DIR/adhoc
12 mkdir $DB_DIR/arch
13
14 mkdir $ORACLE_HOME/install/w_$DB_NAME
15 echo "Copy creation skeleton files. Remember to modify"
16 cp crdb1.sh $ORACLE_HOME/install/w_$DB_NAME/$DB_NAMEcrdbr1.sh
17 cp crdb2.sh $ORACLE_HOME/install/w_$DB_NAME/$DB_NAMEcrdbr2.sh
18 cp crdb3.sh $ORACLE_HOME/install/w_$DB_NAME/$DB_NAMEcrdbr3.sh
19
20 echo "Copying init$DB_NAME.ora file"
21 cp init$DB_NAME.ora $DB_DIR/pfile
22
23 echo "Creating symlink"
24 ln -s $DB_DIR/pfile/init$DB_NAME.ora $ORACLE_HOME/dbs/init$DB_NAME.ora
25
~
:q
[oracle@lbox create]$ ./db1.sh
Creating dirs
Copy creation skeleton files. Remember to modify
Copying initdb1.ora file
Creating symlink
[oracle@lbox create]$ ls /big/ora/app/oracle/oradata/db1/
adhoc arch bdump cdump create exp pfile udump
[oracle@lbox create]$ ls $ORACLE_HOME/dbs
init.ora initdb1.ora initdw.ora
[oracle@lbox create]$ cd $ORACLE_HOME/install/w_db1
[oracle@lbox w_db1]$ vi db1crdbr1.sh
1 #!/bin/sh
2 ORACLE_SID=db1
3 export ORACLE_SID
4
5 $ORACLE_HOME/bin/orapwd file=$ORACLE_HOME/dbs/orapw$ORACLE_SID password=change_on_install
6 $ORACLE_HOME/bin/svrmgrl << EOF
7 spool $ORACLE_HOME/install/crdb1.log
8 connect internal
9 startup nomount pfile = $ORACLE_HOME/dbs/initdb1.ora
10 CREATE DATABASE "db1"
11 maxdatafiles 254
12 maxinstances 8
13 maxlogfiles 32
14 character set US7ASCII
15 national character set US7ASCII
16 DATAFILE '$ORACLE_HOME/dbs/system01.dbf' SIZE 175M
17 logfile '$ORACLE_HOME/dbs/redo01.log' SIZE 4096K,
18 '$ORACLE_HOME/dbs/redo02.log' SIZE 4096K;
19 disconnect
20 spool off
21 exit
22
23
24 EOF
~
[oracle@lbox w_db1]$ pwd
/big/ora/app/oracle/product/8.1.5/install/w_db1
[oracle@lbox w_db1]$ echo $ORACLE_HOME
/big/ora/app/oracle/product/8.1.5
[oracle@lbox w_db1]$ cp db1crdbr1.sh ..
[oracle@lbox w_db1]$ cd ..
[oracle@lbox install]$
[oracle@lbox install]$
[oracle@lbox install]$ ./db1crdbr1.sh
Oracle Server Manager Release 3.1.5.0.0 - Production
(c) Copyright 1997, Oracle Corporation. All Rights Reserved.
Oracle8i Enterprise Edition Release 8.1.5.0.2 - Production
With the Partitioning and Java options
PL/SQL Release 8.1.5.0.0 - Production
SVRMGR> SVRMGR> Connected.
SVRMGR> ORACLE instance started.
ORA-01012: not logged on
SVRMGR> 2> 3> 4> 5> 6> 7> 8> 9> CREATE DATABASE "db1"
ORA-01012: not logged on
SVRMGR> Disconnected.
SVRMGR> SVRMGR> Server Manager complete.
[oracle@lbox install]$
[oracle@lbox install]$ make sense
make: *** No rule to make target `sense'. Stop.
[oracle@lbox install]$
[oracle@lbox install]$ cd ../rdbms/log
[oracle@lbox log]$
[oracle@lbox log]$ cat alert_db1.log
Thu Feb 3 01:14:39 2000
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
LICENSE_MAX_USERS = 0
Starting up ORACLE RDBMS Version: 8.1.5.0.2.
System parameters with non-default values:
processes = 50
shared_pool_size = 15728640
java_pool_size = 20971520
control_files = ?/dbs/control01.ctl, ?/ dbs/control02.ctl
db_block_buffers = 8192
db_block_size = 2048
compatible = 8.1.0
log_buffer = 163840
log_checkpoint_interval = 10000
log_checkpoint_timeout = 1800
rollback_segments = r01, r02, r03, r04
remote_login_passwordfile= EXCLUSIVE
db_domain = lnx
distributed_transactions = 10
service_names = db1.lnx
instance_name = db1
open_links = 4
db_name = db1
os_authent_prefix =
job_queue_processes = 0
job_queue_interval = 60
PMON started with pid=2
Load Indicator not supported by OS !
DBW0 started with pid=3
LGWR started with pid=4
CKPT started with pid=5
SMON started with pid=6
RECO started with pid=7
[oracle@lbox log]$
[oracle@lbox log]$ cd /big/ora/app/oracle/oradata/
[oracle@lbox oradata]$ ls -lR db1
db1:
total 32
drwxr-xr-x 2 oracle dba 4096 Feb 4 01:14 adhoc
drwxr-xr-x 2 oracle dba 4096 Feb 4 01:14 arch
drwxr-xr-x 2 oracle dba 4096 Feb 4 01:27 bdump
drwxr-xr-x 2 oracle dba 4096 Feb 4 01:14 cdump
drwxr-xr-x 2 oracle dba 4096 Feb 4 01:14 create
drwxr-xr-x 2 oracle dba 4096 Feb 4 01:14 exp
drwxr-xr-x 2 oracle dba 4096 Feb 4 01:14 pfile
drwxr-xr-x 2 oracle dba 4096 Feb 4 01:14 udump
db1/adhoc:
total 0
db1/arch:
total 0
db1/bdump:
total 8
-rw-r--r-- 1 oracle oinstall 1262 Feb 4 01:27 alert_db1.log
-rw-r----- 1 oracle oinstall 587 Feb 4 01:27 pmon_7907.trc
db1/cdump:
total 0
db1/create:
total 0
db1/exp:
total 0
db1/pfile:
total 4
-rw-r--r-- 1 oracle dba 2097 Feb 4 01:14 initdb1.ora
db1/udump:
total 0
[oracle@lbox oradata]$
null -
Illegal combination when importing xml file into xmltype column
I have the following control file.
LOAD DATA
CHARACTERSET UTF8
INFILE *
INTO TABLE IMPORTRAWXML TRUNCATE
SITEID constant 0
,VENDORID constant 17
,SITEFORMATID constant 2
,"\\plutonium\outcomes\AHA GWTG-Outpatient\Programs\DataTransfer\LoadTest\V17_standard_test.xml" filler char(1000)
,RAWDATA LOBFILE ("\\plutonium\outcomes\AHA GWTG-Outpatient\Programs\DataTransfer\LoadTest\V17_standard_test.xml")
TERMINATED BY EOF
)When I run it using sqlldr command line I get the following error:
SQL*Loader-350: Syntax error at line 1.
Illegal combination of non-alphanumeric characters
<?xml version="1.0" encoding="ISO-8859-1"?>Does anyone have any idea what I am doing wrong here? If I remove the fully resolved path (both the control file and xml file are in the same folder) it tells me it can't find the file to load.
HELP!!!!
Thanks,
Evaevaleah wrote:
I have made sure all my home settings are correct in my registry editor and they are. Another thing to note is the control file I am using works 100% perfectly, beautifully when called from Toad for Oracle. It is when called from the command line utility that it fails. Is there anyway to determine what the difference could be?
So we know that I can work (toad works), but it doesn't yet work in a "cmd" environment.
Just as any other program Toad is also a client and uses NLS and other environment settings. Maybe these are stored in the registry, maybe the are being set by Toad by reading a configuration file while it is started or while running.
As said, on Windows its tricky...
Setting properties in the registry will not mean that they are the same a "cmd" window or maybe not even been set.
If you execute / run "cmd" then the "set" statement/command will output the environment settings that will be used during the livetime of that "cmd" session.
C:/> setIn my laptop environment (windows 7 64 bit) it will show the following
C:\>set
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\marco\AppData\Roaming
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=00-00-000
ComSpec=C:\Windows\system32\cmd.exe
DEFLOGDIR=C:\ProgramData\McAfee\DesktopProtection
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Users\marco
LOCALAPPDATA=C:\Users\marco\AppData\Local
LOGONSERVER=\\AMISNT
MpConfig_ProductAppDataPath=C:\ProgramData\Microsoft\Windows Defender
MpConfig_ProductCodeName=AntiSpyware
MpConfig_ProductPath=C:\Program Files\Windows Defender
MpConfig_ProductUserAppDataPath=C:\Users\marco\AppData\Local\Microsoft\Windows
Defender
MpConfig_ReportingGUID=CA08B82B-EF0A-4107-89D8-ED5BB37E7515
NUMBER_OF_PROCESSORS=2
OS=Windows_NT
Path=C:\oracle\product\11.2.0\dbhome_1\bin;C:\Windows\system32;C:\Windows;C:\Win
dows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PERL5LIB=c:\oracle\product\10.2.0\db_1\perl\5.8.3\lib\MSWin32-x64;c:\oracle\prod
uct\10.2.0\db_1\perl\5.8.3\lib;c:\oracle\product\10.2.0\db_1\perl\site\5.8.3;c:\
oracle\product\10.2.0\db_1\perl\site\5.8.3\lib;c:\oracle\product\10.2.0\db_1\sys
man\admin\scripts;
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 23 Stepping 10, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=170a
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC=C:\Users\Public
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\marco\AppData\Local\Temp
TMP=C:\Users\marco\AppData\Local\Temp
USERDNSDOMAIN=AMIS
USERDOMAIN=AMIS
USERNAME=marco
USERPROFILE=C:\Users\marco
VBOX_INSTALL_PATH=C:\Program Files\Sun\VirtualBox\
VSEDEFLOGDIR=C:\ProgramData\McAfee\DesktopProtection
windir=C:\Windows
C:\>The only thing that identifies that I have Oracle installed is set in the %PATH% variable and %PERL5LIB%. From the path setting you can also deduct that I have Oracle 11 and Oracle 10 software installed. So when I execute "sqlldr" what NLS settings will it use and which tnsnames.ora alias for example to connect to the database...?
You can you do it and see what happens...
C:\>sqlldr
SQL*Loader: Release 11.2.0.1.0 - Production on Wed May 12 20:36:25 2010
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Usage: SQLLDR keyword=value [,keyword=value,...]
Valid Keywords:
...So it will pick the first "sqlldr" in the %PATH% environment setting. But what about NLS...? As said to be absolute sure you will have to set it in your environment.
C:/> set ORACLE_HOME="C:\oracle\product\10.2.0\db_1"
C:\> set
Path=C:\oracle\product\11.2.0\dbhome_1\bin;C:\Windows\system32;C:\Windows;C:\Win
dows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PERL5LIB=c:\oracle\product\10.2.0\db_1\perl\5.8.3\lib\MSWin32-x64;c:\oracle\prod
uct\10.2.0\db_1\perl\5.8.3\lib;c:\oracle\product\10.2.0\db_1\perl\site\5.8.3;c:\
oracle\product\10.2.0\db_1\perl\site\5.8.3\lib;c:\oracle\product\10.2.0\db_1\sys
man\admin\scripts;
ORACLE_HOME="C:\oracle\product\10.2.0\db_1"
C:\> echo %ORACLE_HOME%
"C:\oracle\product\10.2.0\db_1"Because if I enter "sqlldr" it will pick the executable from the 11.2 install, but the ORACLE_HOME is set to the wrong environment
Executing sqlldr now will give me an error
C:\>sqlldr
Message 2100 not found; No message file for product=RDBMS, facility=ULMessage 21
00 not found; No message file for product=RDBMS, facility=UL
C:\>Another thing you can notice now is that from that output alone, you can't deduct the Oracle "sqlldr" version anymore. Setting the ORACLE_HOME environment to either 10.2 or 11.2 will cause "sqlldr" to execute normally (at least thats how it looks) BUT in the case of the oracle 10.2 setting it will use the wrong message files etc. At least not the correct software versions / files "sqlldr" is shipped with. So you can (and most of the time) will get strange errors.
C:\> set ORACLE_HOME=C:\oracle\product\10.2.0\db_1
C:\>sqlldr
SQL*Loader: Release 11.2.0.1.0 - Production on Wed May 12 20:45:00 2010
C:\>set ORACLE_HOME=C:\oracle\product\11.2.0\dbhome_1
C:\>sqlldr
SQL*Loader: Release 11.2.0.1.0 - Production on Wed May 12 20:49:50 2010
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Usage: SQLLDR keyword=value [,keyword=value,...]
...In the registry you can find a lot of those variables are set for ORACLE_HOME, ORACLE_BASE, SQLPATH, maybe TNS_ADMIN, ORACLE_SID, NLS_LANG. You can find the variables IN the registry on two places. The most common one is the SYSTEM wide environment settings under //HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE and in my case for 11.2 under //HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE/KEY_OraDb11g_Home1.
You could overrule this for to be active on "my user session", my login session as account "marco" under //HKEY_CURRENT_USER/Software/Oracle, but no one using Windows is doing this.
Besides the "cmd" and registry environment, there is a different place as well were you can set these parameters. In windows go to "start", click "control panel", click "system", click tab "Advanced" and then click on the button on the bottum with "Environment Variables". Here you can see the distinction between user and system wide variables as well. Here you can also set NLS_LANG, ORACLE_HOME etc. If I am not mistaken than these will be the default values used in a fresh "cmd" window session. But they can and will interfere with programs you start via clicking them. For example something a Java program like SQL Developer (and/or Toad). If those values are not overrulled by the program by for example using his own variables from a config file or else, those sessings from the "system" / control panel item will be used. If it is the wrong mix, you will encounter strange issues.
Setting ORACLE_HOME and ORACLE_BASE will be used by a lot of derived other settings for example the default place SQL*Net drivers and tnsnames aliases etc will be checked. For example setting the ORACLE_HOME to
C:\> set ORACLE_HOME=C:\oracle\product\10.2.0\db_1will result in that the tnsnames aliases from
C:\> set ORACLE_HOME=C:\oracle\product\10.2.0\db_1\NETWORK\adminwill be used and NOT the ones maybe needed from
C:\oracle\product\11.2.0\dbhome_1\NETWORK\adminYou can overrule this behavior by setting the TNS_ADMIN variable. By default, most explicit form for example on linux and Unix, the following rule will be used by Oracle
1) .tnsnames.ora in the home directory of the user
2) standard default: $ORACLE_HOME/network/admin
3) behavior can be overruled via setting $TNS_ADMINThe fact that you are able via Toad to execute it correctly proves you that it can be done. But Toad uses in your session "SQL*Net" or JDBC or ODBC or ADO or ? via its own configuration environment settings that are being set on which values...?
Both Oracle and Toad use the OSI model (http://en.wikipedia.org/wiki/OSI_model), both have to follow the same rules. There hasn't been changed that much over the years, character set conversions are done in the "two task common" layer of the data transport on either side (client/server) when data travels between a client and server. And don't forget a database can be also be a client when for instance database links are being used. One of the reasons to read old manuals because there the basics are still perfectly explained: http://download.oracle.com/docs/cd/A57673_01/DOC/net/doc/NWUS233/ch2.htm#twotask (Oracle 7.3.4 Networking Manual).
This long long story is just to show you that you have more control if you set variables explicitly in a "cmd" window (and or in a linux/unix shell (as long as the session isn't "forked")) BUT you will have to be precise. Check the environment a set those environment variables that control / that are being used by "sqlldr" (and that are probably more then you realised, for example that SQL_PATH variable is the default directory where SQL*Plus is looking and saving its "SQL" and spool "LIS" files).
HTH -
Hi,
I am getting the above mentioned error whenever running the scripts through a scheduler (MAESTRO). If I try to runt th script manually then there is no problem.
Oracle Version: 10.2.0.1.0
Server: HP UNIX
My user is added in the dba group.
In my script I have mentioned ORACLE_HOME, ORACLE_BASE, ORACLE_SID, LD_LIBRABY_PATH,SHLIB_PATH accordingly. But still I have the same error.
I have already checked the existance of the file under $ORACLE_HOME/lib and $ORACLE_HOME/lib32 folder and in both the places it have executable permission for all the users.
I saw a lot of post with the same issue, but nothing worked for me. The difference in my problem is, I can run the script manually without any error, but whenever it is running via a scheduler generates the problem.
Any help will be greatly appriciated.
Thanks,
UdayHi,
This is the .profile file for my user:
# @(#)B.11.11_LR
# Default user .profile file (/usr/bin/sh initialization).
# Set up the terminal:
if [ "$TERM" = "" ]
then
eval ` tset -s -Q -m ':?hp' `
else
eval ` tset -s -Q `
fi
stty erase "^H" kill "^U" intr "^C" eof "^D"
stty hupcl ixon ixoff
tabs
# Set up the search paths:
PATH=$PATH:
# Set up the shell environment:
set -u
trap "echo 'logout'" 0
# Set up the shell variables:
EDITOR=vi
export EDITOR
export ORACLE_BASE=/prd/cosm/u01
export ORACLE_HOME=/prd/cosm/u01/product/10.2.0
export PATH=$ORACLE_HOME/bin:$PATH
export SHLIB_PATH=$ORACLE_HOME/lib32
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
This is the .profile file of the user under which oracle is installed:
# @(#)B.11.11_LR
# Default user .profile file (/usr/bin/sh initialization).
# Set up the terminal:
if [ "$TERM" = "" ]
then
eval ` tset -s -Q -m ':?hp' `
else
eval ` tset -s -Q `
fi
stty erase "^H" kill "^U" intr "^C" eof "^D"
stty hupcl ixon ixoff
tabs
# Set up the search paths:
PATH=$PATH:.
# Set up the shell environment:
set -u
trap "echo 'logout'" 0
# Set up the shell variables:
EDITOR=vi
export EDITOR
#export DISPLAY=`who -uR am i | awk '{print $8}'`":0"
export DISPLAY=`who -uR am i`
export HOST=`uname -n`
export PS1=`echo '${HOST}: '`
export ORACLE_SID=COSMPRP3
export ORACLE_BASE=/prd/cosm/u01
export ORACLE_HOME=/prd/cosm/u01/product/10.2.0
export PATH=$ORACLE_HOME/bin:$PATH
#export TNS_ADMIN=$ORACLE_HOME/network/admin
#export SHLIB_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/lib64
export SHLIB_PATH=$ORACLE_HOME/lib
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
This the environment variables I am using:
export ORACLE_HOME=/prd/cosm/u01/product/10.2.0
export ORACLE_SID=ERIPRP1
export ORACLE_BASE=/prd/cosm/u01
export SHLIB_PATH=$ORACLE_HOME/lib32
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export PATH=$PATH:$ORACLE_HOME/bin
And this is the code I am using:
export ORACLE_HOME=/prd/cosm/u01/product/10.2.0
export ORACLE_SID=ERIPRP1
export ORACLE_BASE=/prd/cosm/u01
export SHLIB_PATH=$ORACLE_HOME/lib32
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export PATH=$PATH:$ORACLE_HOME/bin
$ORACLE_HOME/bin/sqlplus -l my_schema/password@my_db <<!
@/path_to_sql/my_sql.sql
exit
elm -s "My Subject" [email protected] < /path_to_my_log/output.log
Desired outputs:
$ cd $ORACLE_HOME/lib
$ ls -lrt libsqlplus.sl
-rwxr-xr-x 1 appora dba 916968 Aug 14 2005 libsqlplus.sl [appora is the user under which Oracle is installed]
$ cd $ORACLE_HOME/lib32
$ ls -lrt libsqlplus.sl
-r-xr-xr-x 1 appora dba 3198976 Aug 14 2005 libsqlplus.sl
Note: If I try to run the script manually it is working fine perfectly. Only from MAESTRO scheduler it is not running. -
HELP! Can not install Oracle 8.1.5 w/ RedHat 6.1!
I can not get Oracle 8.1.5 to install onto Linux RedHat 6.1. The
Oracle installation script generates several errors. I have
tried several attempts, using different options, but they all
generate errors.
Please help. The Oracle Installation scripts appear to be very
buggy... or perhaps they are incompatible with the standard
RedHat 6.1 release. Either way, it is very frustrating.
I have documented one of my (failed) installation attempts below.
Does anyone have any words of wisdom?
I am installing Oracle onto a Dell Latitude CPi PC w/ 128MB RAM,
a 366MHz Pentium II, and RedHat 6.1 (using the standard Linux
2.2.12-2 kernel). RedHat was installed using the standard "Gnome
Workstation" configuration.
The Oralce CD is labeled:
"Oralce 8i Enterprise Edition
Release 8.1.5
for Linux
(c) Oracle Corporation 1999"
I got this CD about one week ago at Oracle OpenWorld '99 in Los
Angeles... it should be their "latest & greatest" version so far.
1. Pre-Installation and ./runInstall
I created an "oracle" Unix account w/ groups "oinstall" (the
primary group) and "dba" (a secondary group).
I created directories /u01 through /u04, belonging to oracle.
I setup .cshrc and sourced it, containing:
umask 022
setenv DISPLAY `hostname`:0
xhost +
setenv ORACLE_BASE /u01/app/oracle
setenv ORACLE_HOME ${ORACLE_BASE}/product/8.1.5
setenv ORACLE_SID cprtest
setenv PATH ${ORACLE_HOME}/bin:${PATH}
setenv LD_LIBRARY_PATH ${ORACLE_HOME}/lib
setenv NLS_LANG US7ASCII
I downloaded jre116_v5 and installed to /usr/local/jre.
Finally, I executed (from the "oracle" Unix account):
cd /mnt/cdrom
./runInstall
Problem: I got the error (from ./runInstall):
Initializing Java Virtual Machine from /usr/local/jre/bin/jre.
Please wait...
Error in CreateOUIProcess(): -1
: Bad address
Workaround: Executed the following commands instead:
cd /mnt/cdrom/install/linux
./runIns.sh
3. runIns.sh and root.sh
I selected the following options (from ./runIns.sh):
Source: /mnt/cdrom/stage/products.jar
Destination: /u01/app/oracle/product/8.1.5
Oracle 8i Enterprise Edition 8.1.5.0.0
Typical (585MB)
Installable Components: Oralce Intelligent Agent 8.1.5.0.0
Global Database Name: cprtest.parkrussell.com
SID: cprtest
Directory for Database Files: /u02
Then (when instructed by ./runIns.sh), I attempted to execute
(from the
"root" Unix account):
cd /u01/app/oracle/product/8.1.5
./root.sh
Problem: I got the error:
"bash: ./root.sh: Permission denied"
The execute bit was not set.
Workaround: I executed:
chmod a+x root.sh
./root.sh
5. Configuration Tools
The Oracle Installer (./runIns.sh) attempted to execute:
A. Net8 Configuration Agent
B. Oracle Database Configuration Agent
Problem: The "Oracle Database Configuration Agent" failed with
the following error message:
"One or more tools have failed. It is recommended but not
required that these tools succeed for this installation.
You can now select these tools, read its details to examine
why they have failed, fix those problems, and retry them.
Or, you can click "Next" to continue."
When I selected the "Oracle Database Configuration Agent" for
more info, I got the following additional details (as the cause
of the error):
"A required command line argument is missing."
The log file
"/u01/app/oracle/oraInventory/logs/installActions.log" recorded:
"Command which is being spawned is /usr/local/jre/bin/jre
-Duser.dir=/u01/app/oracle/product/8.1.5/assistants/dbca/jlib
-classpath
/usr/local/jre/lib/rt.jar:/u01/app/oracle/product/8.1.5/jlib/ewt-3_1_10.jar:/u01/app/oracle/produc
/8.1.5/jlib/share-1_0_6.jar:/u01/app/oracle/product/8.1.5/assistants/dbca/jlib/DBAssist.jar:/u01/a
p/oracle/product/8.1.5/assistants/jlib/jnls.jar:/u01/app/oracle/product/8.1.5/assistants/jlib/ACC.
AR:/u01/app/oracle/product/8.1.5/jlib/help-3_0_7.jar:/u01/app/oracle/product/8.1.5/jlib/oracle_ice
4_03_3.jar:/u01/app/oracle/product/8.1.5/jlib/HotJavaBean.jar:/u01/app/oracle/product/8.1.5/jlib/n
tcfg.jar:/usr/local/jre/lib/i18n.jar
DBCreateWizard /createtype seed /numusers NO_VALUE /apptype
NO_VALUE /cartridges NO_VALUE /options NO_VALUE /demos NO_VALUE
/seedloc NO_VALUE /sid cprtest /orahome
/u01/app/oracle/product/8.1.5 /orabase /u01/app/oracle /dbloc
/u02 /clususer NO_VALUE /cluspswd NO_VALUE /nodeinfo NO_VALUE
/gdbName cprtest.parkrussell.com
Invalid Exit Code. The following result code will be used for
configuration tool: 1
Configuration tool Oracle Database Configuration Assistant
failed"
Workaround: There is obviously nothing I can do to fix this
problem. It appears to be an internal bug in ./runIns.sh.
Therefore, I selected "Next" and executed "dbassist" directly.
6. dbassist
I executed:
dbassist
Problem: I got the following error:
"JNLS Execution:oracle.ntpg.jnls.JNLSException
Unable to find any National Character Sets. Please
check your Oracle installation."
Workaround: Press "OK" and ignore the error.
7. dbassist (cont.)
I selected the following options:
Create database
Typical
Copy existing database files from the CD
Global Database Name: cprtest.parkrussell.com
SID: cprtest
Problem: I got the following error:
"CD-ROM drive not detected on this system.
Database not created."
(Note: I've been running the installation scripts from the
CDROM drive this entire time. "df" shows the CDROM drive
mounted on /mnt/cdrom. "ls /mnt/cdrom" works too.)
Workaround: Abort (which generated the additional error: "Unable
to create database. DBCA-00003: No CD-ROM drive detected.") and
run dbassist again, this time using different parameters.
8. dbassist, again
I executed "dbassist" again and selected the following options:
Create database
Typical
Create new database files
Hybrid
Concurrently connected users: 5
Options: Oralce interMedia, Oralce JServer, and iM demos
Global Database Name: cprtest2.parkrussell.com
SID: cprtest2
Create database now
Problem: I got the following error:
"ORA-01012: not logged on"
Workaround: Try, try again.
9. dbassist, one last time
Executed "dbassist" once more and selected the following options:
Create database
Typical
Create new database files
Hybrid
Concurrently connected users: 5
Options: Oralce interMedia, Oralce JServer, and interMedia
demos
Global Database Name: cprtest3.parkrussell.com
SID: cprtest3
Output creation script
Then, I executed (from the "oracle" Unix account):
cd /u01/app/oracle/product/8.1.5/install
setenv ORACLE_SID cprtest3
./sqlcprtest3.sh
Problem: I got the following output:
"Oracle Server Manager Release 3.1.5.0.0 - Production
(c) Copyright 1997, Oracle Corporation. All Rights Reserved.
Oracle8i Enterprise Edition Release 8.1.5.0.0 - Production
With the Partitioning and Java options
PL/SQL Release 8.1.5.0.0 - Production
SVRMGR> SVRMGR> Connected.
SVRMGR> ORACLE instance started.
ORA-01012: not logged on
SVRMGR> 2> 3> 4> 5> 6> 7>
8> 9> CREATE DATABASE "cprtest3"
ORA-01012: not logged on
SVRMGR> Disconnected."
Workaround: Beats me.
10. sqlplus
I attempted to execute sqlplus, but got the following error
message:
"/u01/app/oracle/product/8.1.5/bin/sqlplus: Permission denied."
The execute bit was not set.
Workaround: I executed:
chmod a+x /u01/app/oracle/product/8.1.5/bin/sqlplus
sqlplus
I gave up for now... there were just too many things wrong with
this installation, starting with the very first command I was
supposed to execute (./runInstaller).
I can't fathom why Oracle's installation script has so many bugs.
Am I just doing something terribly wrong?
Please help.
nullI'm using enlightenment version 0.15.5-41, which is more recent
than the 0.15.5-37 version (containing the Oracle installer
patch) that you recommended. Unfortunately, it fails when using
this version.
I also tried installing Oracle using twm, with enlightenment
disabled. This didn't help either.
Furthermore, the errors that I'm encountering in the OUI are
not just toward the end of the installation. They happen from
the very beginning, right after I enter "./runInstall", and
continue every step of the way.
Calvin Mitchell (guest) wrote:
: Check out my thread: "Assistants Failure Toward end of Oracle
: Install" to see where i've gone with this.
: if your running Enlightenment as your window manager you need
to
: upgrade to 0.15.5-37, that will solve the OUI error.
: Let me know if you solve any of your problems.
: Chris Russell (guest) wrote:
: : I can not get Oracle 8.1.5 to install onto Linux RedHat 6.1.
: The
: : Oracle installation script generates several errors. I have
: : tried several attempts, using different options, but they all
: : generate errors.
: : Please help. The Oracle Installation scripts appear to be
very
: : buggy... or perhaps they are incompatible with the standard
: : RedHat 6.1 release. Either way, it is very frustrating.
: : I have documented one of my (failed) installation attempts
: below.
: : Does anyone have any words of wisdom?
: : I am installing Oracle onto a Dell Latitude CPi PC w/ 128MB
: RAM,
: : a 366MHz Pentium II, and RedHat 6.1 (using the standard Linux
: : 2.2.12-2 kernel). RedHat was installed using the standard
: "Gnome
: : Workstation" configuration.
: : The Oralce CD is labeled:
: : "Oralce 8i Enterprise Edition
: : Release 8.1.5
: : for Linux
: : (c) Oracle Corporation 1999"
: : I got this CD about one week ago at Oracle OpenWorld '99 in
Los
: : Angeles... it should be their "latest & greatest" version so
: far.
: : 1. Pre-Installation and ./runInstall
: : I created an "oracle" Unix account w/ groups "oinstall" (the
: : primary group) and "dba" (a secondary group).
: : I created directories /u01 through /u04, belonging to oracle.
: : I setup .cshrc and sourced it, containing:
: : umask 022
: : setenv DISPLAY `hostname`:0
: : xhost +
: : setenv ORACLE_BASE /u01/app/oracle
: : setenv ORACLE_HOME ${ORACLE_BASE}/product/8.1.5
: : setenv ORACLE_SID cprtest
: : setenv PATH ${ORACLE_HOME}/bin:${PATH}
: : setenv LD_LIBRARY_PATH ${ORACLE_HOME}/lib
: : setenv NLS_LANG US7ASCII
: : I downloaded jre116_v5 and installed to /usr/local/jre.
: : Finally, I executed (from the "oracle" Unix account):
: : cd /mnt/cdrom
: : ./runInstall
: : Problem: I got the error (from ./runInstall):
: : Initializing Java Virtual Machine from
: /usr/local/jre/bin/jre.
: : Please wait...
: : Error in CreateOUIProcess(): -1
: : : Bad address
: : Workaround: Executed the following commands instead:
: : cd /mnt/cdrom/install/linux
: : ./runIns.sh
: : 3. runIns.sh and root.sh
: : I selected the following options (from ./runIns.sh):
: : Source: /mnt/cdrom/stage/products.jar
: : Destination: /u01/app/oracle/product/8.1.5
: : Oracle 8i Enterprise Edition 8.1.5.0.0
: : Typical (585MB)
: : Installable Components: Oralce Intelligent Agent 8.1.5.0.0
: : Global Database Name: cprtest.parkrussell.com
: : SID: cprtest
: : Directory for Database Files: /u02
: : Then (when instructed by ./runIns.sh), I attempted to execute
: : (from the
: : "root" Unix account):
: : cd /u01/app/oracle/product/8.1.5
: : ./root.sh
: : Problem: I got the error:
: : "bash: ./root.sh: Permission denied"
: : The execute bit was not set.
: : Workaround: I executed:
: : chmod a+x root.sh
: : ./root.sh
: : 5. Configuration Tools
: : The Oracle Installer (./runIns.sh) attempted to execute:
: : A. Net8 Configuration Agent
: : B. Oracle Database Configuration Agent
: : Problem: The "Oracle Database Configuration Agent" failed
with
: : the following error message:
: : "One or more tools have failed. It is recommended but not
: : required that these tools succeed for this installation.
: : You can now select these tools, read its details to
examine
: : why they have failed, fix those problems, and retry them.
: : Or, you can click "Next" to continue."
: : When I selected the "Oracle Database Configuration Agent" for
: : more info, I got the following additional details (as the
cause
: : of the error):
: : "A required command line argument is missing."
: : The log file
: : "/u01/app/oracle/oraInventory/logs/installActions.log"
: recorded:
: : "Command which is being spawned is /usr/local/jre/bin/jre
: : -Duser.dir=/u01/app/oracle/product/8.1.5/assistants/dbca/jlib
: : -classpath
/usr/local/jre/lib/rt.jar:/u01/app/oracle/product/8.1.5/jlib/ewt-
: 3_1_10.jar:/u01/app/oracle/product/8.1.5/jlib/share-
1_0_6.jar:/u01/app/oracle/product/8.1.5/assistants/dbca/jlib/DBAs
sist.jar:/u01/app/oracle/product/8.1.5/assistants/jlib/jnls.jar:/
u01/app/oracle/product/8.1.5/assistants/jlib/ACC.JAR:/u01/app/ora
: cle/product/8.1.5/jlib/help-
: 3_0_7.jar:/u01/app/oracle/product/8.1.5/jlib/oracle_ice-
4_03_3.jar:/u01/app/oracle/product/8.1.5/jlib/HotJavaBean.jar:/u0
1/app/oracle/product/8.1.5/jlib/netcfg.jar:/usr/local/jre/lib/i18
: n.jar
: : DBCreateWizard /createtype seed /numusers NO_VALUE /apptype
: : NO_VALUE /cartridges NO_VALUE /options NO_VALUE /demos
NO_VALUE
: : /seedloc NO_VALUE /sid cprtest /orahome
: : /u01/app/oracle/product/8.1.5 /orabase /u01/app/oracle /dbloc
: : /u02 /clususer NO_VALUE /cluspswd NO_VALUE /nodeinfo NO_VALUE
: : /gdbName cprtest.parkrussell.com
: : Invalid Exit Code. The following result code will be used
for
: : configuration tool: 1
: : Configuration tool Oracle Database Configuration Assistant
: : failed"
: : Workaround: There is obviously nothing I can do to fix this
: : problem. It appears to be an internal bug in ./runIns.sh.
: : Therefore, I selected "Next" and executed "dbassist"
directly.
: : 6. dbassist
: : I executed:
: : dbassist
: : Problem: I got the following error:
: : "JNLS Execution:oracle.ntpg.jnls.JNLSException
: : Unable to find any National Character Sets. Please
: : check your Oracle installation."
: : Workaround: Press "OK" and ignore the error.
: : 7. dbassist (cont.)
: : I selected the following options:
: : Create database
: : Typical
: : Copy existing database files from the CD
: : Global Database Name: cprtest.parkrussell.com
: : SID: cprtest
: : Problem: I got the following error:
: : "CD-ROM drive not detected on this system.
: : Database not created."
: : (Note: I've been running the installation scripts from the
: : CDROM drive this entire time. "df" shows the CDROM drive
: : mounted on /mnt/cdrom. "ls /mnt/cdrom" works too.)
: : Workaround: Abort (which generated the additional error:
: "Unable
: : to create database. DBCA-00003: No CD-ROM drive detected.")
: and
: : run dbassist again, this time using different parameters.
: : 8. dbassist, again
: : I executed "dbassist" again and selected the following
options:
: : Create database
: : Typical
: : Create new database files
: : Hybrid
: : Concurrently connected users: 5
: : Options: Oralce interMedia, Oralce JServer, and iM demos
: : Global Database Name: cprtest2.parkrussell.com
: : SID: cprtest2
: : Create database now
: : Problem: I got the following error:
: : "ORA-01012: not logged on"
: : Workaround: Try, try again.
: : 9. dbassist, one last time
: : Executed "dbassist" once more and selected the following
: options:
: : Create database
: : Typical
: : Create new database files
: : Hybrid
: : Concurrently connected users: 5
: : Options: Oralce interMedia, Oralce JServer, and interMedia
: : demos
: : Global Database Name: cprtest3.parkrussell.com
: : SID: cprtest3
: : Output creation script
: : Then, I executed (from the "oracle" Unix account):
: : cd /u01/app/oracle/product/8.1.5/install
: : setenv ORACLE_SID cprtest3
: : ./sqlcprtest3.sh
: : Problem: I got the following output:
: : "Oracle Server Manager Release 3.1.5.0.0 - Production
: : (c) Copyright 1997, Oracle Corporation. All Rights
Reserved.
: : Oracle8i Enterprise Edition Release 8.1.5.0.0 - Production
: : With the Partitioning and Java options
: : PL/SQL Release 8.1.5.0.0 - Production
: : SVRMGR> SVRMGR> Connected.
: : SVRMGR> ORACLE instance started.
: : ORA-01012: not logged on
: : SVRMGR> 2> 3> 4> 5> 6> 7>
: : 8> 9> CREATE DATABASE "cprtest3"
: : ORA-01012: not logged on
: : SVRMGR> Disconnected."
: : Workaround: Beats me.
: : 10. sqlplus
: : I attempted to execute sqlplus, but got the following error
: : message:
: : "/u01/app/oracle/product/8.1.5/bin/sqlplus: Permission
: denied."
: : The execute bit was not set.
: : Workaround: I executed:
: : chmod a+x /u01/app/oracle/product/8.1.5/bin/sqlplus
: : sqlplus
: : I gave up for now... there were just too many things wrong
with
: : this installation, starting with the very first command I was
: : supposed to execute (./runInstaller).
: : I can't fathom why Oracle's installation script has so many
: bugs.
: : Am I just doing something terribly wrong?
: : Please help.
null -
Need help:server client in the same machine
hello all,
i want to install oracle client and server on the same machine(cause i only have got one)
to do that,
for server installation i did the following:
# mkdir /u01
; /u01
# cd /u01
# mkdir -p app/oracle/oradata
# groupadd dba
# groupadd oinstall
# groupadd oracle
# useradd -g dba -G oinstall,oracle -m oracle -d /u01/app/oracle
; risumi des caractiristiques du compte Linux oracle
; user : oracle
; groupe principal: dba
; groupe secondaire: oinstall, oracle
; ripertoire par difaut: /u01/app/oracle
# cd /u01
# chown -R oracle.dba /u01
; virification des droits
# ls -l /u01/app/oracle
# ls -l /u01/oradata
# passwd oracle
# more /etc/passwd
# more /etc/group
; sortie de votre session root
# exit
$ su - oracle
in .bash_profile(file) i wrote the follwing parameters :
export DISPLAY=localhost:0.0
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/8.1.6
export PATH=$PATH:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export ORACLE_SID=TEST
export ORACLE_TERM=vt100
export NLS_LANG=french_france.WE8DEC
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
the oracle server works fine!
So, the server installation directory is /u01/app/oracle/product/8.1.6
what i have to do for client installation in the same machine:
do i have to create a new groups(dba,oinstall...)?
do i have a new directory to install oracle client?
can somebody give me any information?
Thank's a lot in advance
nullYou can install your client parts in the same ORACLE_HOME as the server as long as they are of the same version. In fact, a lot of the client has already been installed, since it is part of the server installation.
If your client is of a different version than your server you will have to install it in a different ORACLE_HOME. You can do this using the same oracle user. -
Couldn't log in into 8i by another user
Hello all,
I have done all the magic with Oracle 8.1.5 EE installation on my
rh6.0 linux box. I also applied linux_81501patch_ee succesfully
(with some problems within compilation apache 1.3.9 with php
3.12+oracle support after patching).
When I log into system as user 'vojtech' and start oracle using:
$svrmgrl
connect internal
startup
exit
everything seems to be ok.
Next, I login as user 'test' and run sqlplus and type correctly
username/password and I got message:
'ORA-01034: ORACLE not avaiable'
I examined, that nobody can log on the db except the one who
started oracle (it is the same if I log in linux as user 'test'
firstly).
I have properly set the environment for both users.
In file /etc/db_profile, which I run from /etc/profile:
# db_profile
echo "Setting up Oracle environment"
ORACLE_BASE=/usr/local/oracle
ORACLE_HOME=$ORACLE_BASE/product/8.1.5
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
CLASSPATH=/usr/local/jre:$ORACLE_HOME/jlib:$ORACLE_HOME/product/j
lib
PATH=$PATH:$ORACLE_HOME/bin
ORACLE_SID=ORCL
#cestina
#NLS_LANG=EE8ISO8859P2
NLS_LANG=
#ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
export ORACLE_BASE ORACLE_HOME LD_LIBRARY_PATH CLASSPATH PATH
ORACLE_SID NLS_LANG ORA_NLS33
The main problem is, I want to start oracle in rh initscripts
when reboot as user oracle instead. But when I access db thru
apache/php(-> user 'nobody'), the same error appears(ORA-01034).
Thank you for any advice
Vojtech Novacek
PS: I remember, I installed/configured Sybase ASE for linux and
wrote first functional php script in 2 hours ...
nullWhen you log in as the test user have you set the appropriate
ORACLE_HOME and ORACLE_SID environment variables before
attempting the connection.
The other things is what are the permissions on the oracle
executable in the ORACLE_HOME/bin directory. It should be along
the lines of rwsr-s--x. These permissions should be set by
running the root.sh script after the installation is complete on
other variants of UNIX.
Vojtech Novacek (guest) wrote:
: Hello all,
: I have done all the magic with Oracle 8.1.5 EE installation on
my
: rh6.0 linux box. I also applied linux_81501patch_ee
succesfully
: (with some problems within compilation apache 1.3.9 with php
: 3.12+oracle support after patching).
: When I log into system as user 'vojtech' and start oracle
using:
: $svrmgrl
: connect internal
: startup
: exit
: everything seems to be ok.
: Next, I login as user 'test' and run sqlplus and type
correctly
: username/password and I got message:
: 'ORA-01034: ORACLE not avaiable'
: I examined, that nobody can log on the db except the one who
: started oracle (it is the same if I log in linux as user
'test'
: firstly).
: I have properly set the environment for both users.
: In file /etc/db_profile, which I run from /etc/profile:
: # db_profile
: echo "Setting up Oracle environment"
: ORACLE_BASE=/usr/local/oracle
: ORACLE_HOME=$ORACLE_BASE/product/8.1.5
: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
: CLASSPATH=/usr/local/jre:$ORACLE_HOME/jlib:
$ORACLE_HOME/product/j
: lib
: PATH=$PATH:$ORACLE_HOME/bin
: ORACLE_SID=ORCL
: #cestina
: #NLS_LANG=EE8ISO8859P2
: NLS_LANG=
: #ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
: export ORACLE_BASE ORACLE_HOME LD_LIBRARY_PATH CLASSPATH PATH
: ORACLE_SID NLS_LANG ORA_NLS33
: The main problem is, I want to start oracle in rh initscripts
: when reboot as user oracle instead. But when I access db thru
: apache/php(-> user 'nobody'), the same error appears(ORA-
01034).
: Thank you for any advice
: Vojtech Novacek
: PS: I remember, I installed/configured Sybase ASE for linux
and
: wrote first functional php script in 2 hours ...
null -
Cant find libjava.so at time of installation 11r1 on HP-UX B.11.23 U ia64
Temp space: must be greater than 240 MB. Actual 1601 MB Passed
Checking swap space: must be greater than 150 MB. Actual 20192 MB Passed
Checking monitor: must be configured to display at least 256 colors. Actual 16777216 Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2010-10-13_11-52-25AM. Please wait ...
*Error: could not find libjava.so
Error: could not find Java 2 Runtime Environment.*
Any body know what to do next ?
i have set below env before running Installer.
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_BASE=/xxx/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.1.0/db_1; export ORACLE_HOME
ORACLE_SID=ABC; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=$ORACLE_HOME/bin:$PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
JAVA_HOME=/opt/java1.5Did you get this resolved? In your $ORACLE_HOME/lib directory are all the libraries .sl files or .so files. I've got Oracle client for Itanium installed on my HP-UX B.11.23 U ia64 server and my application can't find libclntsh.sl. I am curious if both our problems have to do with the install of Oracle for PA-RISC vs Oracle for Itanium? Does the PA-RISC only create .sl libraries and the Itanium version only create .so libraries?
-
New Install: dbca problem on ubuntu 10.04
Hello List,
I want to install Oracle 11gR2 on my Ubuntu box which is running 10.04 Lucid:
oracle@z2:~/oh$ cat /etc/issue
Ubuntu 10.04.1 LTS
oracle@z2:~/oh$ uname -a
Linux z2 2.6.32-24-generic #39-Ubuntu SMP Wed Jul 28 06:07:29 UTC 2010 i686 GNU/Linux
The above command suggests to me that I am running 32bit Linux.
I downloaded the 32bit Oracle cdroms.
I read this link:
- http://www.pythian.com/news/13291/installing-oracle-11gr2-enterprise-edition-on-ubuntu-10-04-lucid-lynx/
I carefully followed the instructions there.
The instructions there are for 64 bit Linux. Like I said, my box is 32bit.
Here are the results of my libstdc++5 shoehorn-install:
oracle@z2:/usr/lib$ ll libstd*
lrwxrwxrwx 1 root root 18 2010-08-10 21:59 libstdc++.so.5 -> libstdc++.so.5.0.7
-rw-r--r-- 1 root root 737192 2010-08-10 21:58 libstdc++.so.5.0.7
lrwxrwxrwx 1 root root 19 2010-08-09 13:54 libstdc++.so.6 -> libstdc++.so.6.0.13
-rw-r--r-- 1 root root 975088 2010-03-26 15:43 libstdc++.so.6.0.13
oracle@z2:/usr/lib$
oracle@z2:/usr/lib$
oracle@z2:/usr/lib$ file libstdc++.so.5.0.7
libstdc++.so.5.0.7: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped
oracle@z2:/usr/lib$
oracle@z2:/usr/lib$ file libstdc++.so.6.0.13
libstdc++.so.6.0.13: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped
oracle@z2:/usr/lib$
oracle@z2:/usr/lib$
The instructions suggest that I install some debian packages.
Here are my results for that task:
root@z2:/oracle/downloads/database# apt-get install unzip build-essential x11-utils rpm ksh lsb-rpm libaio1
Reading package lists... Done
Building dependency tree
Reading state information... Done
unzip is already the newest version.
build-essential is already the newest version.
x11-utils is already the newest version.
rpm is already the newest version.
ksh is already the newest version.
lsb-rpm is already the newest version.
libaio1 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
The instructions described a software-only install so I did that.
I bumped into no problems.
After the install,
I added env vars to my .bashrc and got a new bash:
export ORACLE_BASE=/oracle/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export ORACLE_SID=orcl
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export PATH=$ORACLE_HOME/bin:$PATH
Then:
oracle@z2:~$ sqlplus /nolog
SQL*Plus: Release 11.2.0.1.0 Production on Sat Aug 14 18:03:00 2010
Copyright (c) 1982, 2009, Oracle. All rights reserved.
SQL> exit
oracle@z2:~$ ln -s $ORACLE_HOME oh
oracle@z2:~$ ln -s $ORACLE_HOME 11gr2oh
oracle@z2:~$ cd oh
oracle@z2:~/oh$ OPatch/opatch lsinventory
Invoking OPatch 11.1.0.6.6
Oracle Interim Patch Installer version 11.1.0.6.6
Copyright (c) 2009, Oracle Corporation. All rights reserved.
Oracle Home : /oracle/app/oracle/product/11.2.0/dbhome_1
Central Inventory : /oracle/app/oraInventory
from : /etc/oraInst.loc
OPatch version : 11.1.0.6.6
OUI version : 11.2.0.1.0
OUI location : /oracle/app/oracle/product/11.2.0/dbhome_1/oui
Log file location : /oracle/app/oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/opatch2010-08-14_18-06-29PM.log
Patch history file: /oracle/app/oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/opatch_history.txt
Lsinventory Output file location : /oracle/app/oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/lsinv/lsinventory2010-08-14_18-06-29PM.txt
Installed Top-level Products (1):
Oracle Database 11g 11.2.0.1.0
There are 1 products installed in this Oracle Home.
There are no Interim patches installed in this Oracle Home.
OPatch succeeded.
oracle@z2:~/oh$
So far so good.
oracle@z2:~/oh$
oracle@z2:~/oh$ which dbca
/oracle/app/oracle/product/11.2.0/dbhome_1/bin/dbca
Then I tried dbca and it bombed:
oracle@z2:~/oh$
oracle@z2:~/oh$ dbca
# An unexpected error has been detected by HotSpot Virtual Machine:
# SIGSEGV (0xb) at pc=0xb78476f3, pid=5883, tid=3077301952
# Java VM: Java HotSpot(TM) Server VM (1.5.0_17-b02 mixed mode)
# Problematic frame:
# C [ld-linux.so.2+0xd6f3]
# An error report file with more information is saved as hs_err_pid5883.log
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
Aborted
oracle@z2:~/oh$
oracle@z2:~/oh$
oracle@z2:~/oh$ env|sort
DISPLAY=localhost:10.0
HOME=/oracle
JAVA_HOME=/java/jdk16
LANG=en_US.UTF-8
LD_LIBRARY_PATH=/oracle/app/oracle/product/11.2.0/dbhome_1/lib:/lib:/usr/lib
ORACLE_BASE=/oracle/app/oracle
ORACLE_HOME=/oracle/app/oracle/product/11.2.0/dbhome_1
ORACLE_SID=orcl
PATH=/oracle/app/oracle/product/11.2.0/dbhome_1/bin:/java/jdk16/bin:/pt/jruby151/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/dan/bin:/pt/bin:.
SHELL=/bin/bash
TERM=dumb
USER=oracle
_=/usr/bin/env
oracle@z2:~/oh$
oracle@z2:~/oh$
oracle@z2:~/oh$ unset JAVA_HOME
oracle@z2:~/oh$
oracle@z2:~/oh$ export LD_LIBRARY_PATH=${ORACLE_HOME}/lib
oracle@z2:~/oh$
oracle@z2:~/oh$ export PATH=${ORACLE_HOME}/bin:/usr/bin:/bin:/usr/sbin:/sbin
oracle@z2:~/oh$
oracle@z2:~/oh$ which java
/usr/bin/java
oracle@z2:~/oh$
oracle@z2:~/oh$ java -version
java version "1.6.0_18"
OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8-4ubuntu3)
OpenJDK Server VM (build 16.0-b13, mixed mode)
oracle@z2:~/oh$
oracle@z2:~/oh$
oracle@z2:~/oh$ su
Password:
root@z2:/oracle/oh# mv /usr/bin/java /usr/bin/java16
root@z2:/oracle/oh#
root@z2:/oracle/oh# exit
oracle@z2:~/oh$ which java
oracle@z2:~/oh$
oracle@z2:~/oh$
oracle@z2:~/oh$ dbca
# An unexpected error has been detected by HotSpot Virtual Machine:
# SIGSEGV (0xb) at pc=0xb785a6f3, pid=5953, tid=3077314240
# Java VM: Java HotSpot(TM) Server VM (1.5.0_17-b02 mixed mode)
# Problematic frame:
# C [ld-linux.so.2+0xd6f3]
# An error report file with more information is saved as hs_err_pid5953.log
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
Aborted
oracle@z2:~/oh$
oracle@z2:~/oh$
I used these google keywords to search for clues:
google:
oracle ubuntu 10.04 dbca SIGSEGV ld-linux.so.2
I found no clues in Google.
So, I look for clues here.
Does anyone have any ideas on how do debug this error from dbca:
oracle@z2:~/oh$ dbca
# An unexpected error has been detected by HotSpot Virtual Machine:
# SIGSEGV (0xb) at pc=0xb785a6f3, pid=5953, tid=3077314240
# Java VM: Java HotSpot(TM) Server VM (1.5.0_17-b02 mixed mode)
# Problematic frame:
# C [ld-linux.so.2+0xd6f3]
??I am running V11.2 on 64-bit Ubuntu
Below are some log files on my system.
You may be able to find similar ones on yours & they might contain additional clues.
/u01/app/oracle/product/11.2.0/dbhome_1/assistants/dbca/logs
/u01/app/oracle/cfgtoollogs/dbca
/u01/app/oracle/cfgtoollogs/dbca/v112
/u01/app/oracle/cfgtoollogs/dbca/v112/mkplug_v3_v112.log
/u01/app/oracle/cfgtoollogs/dbca/v112/tts_example_imp.log
/u01/app/oracle/cfgtoollogs/dbca/v112/postDBCreation.log
/u01/app/oracle/cfgtoollogs/dbca/v112/rmanRestoreDatafiles.sql
/u01/app/oracle/cfgtoollogs/dbca/v112/trace.log
/u01/app/oracle/cfgtoollogs/dbca/v112/postScripts.log
/u01/app/oracle/cfgtoollogs/dbca/v112/OraDb11g_home1_v112_creation_checkpoint.xml
/u01/app/oracle/cfgtoollogs/dbca/v112/cloneDBCreation.log
/u01/app/oracle/cfgtoollogs/dbca/v112/CloneRmanRestore.log
/u01/app/oracle/cfgtoollogs/dbca/v112/lockAccount.log
/u01/app/oracle/cfgtoollogs/dbca/v112/emConfig.log
/u01/app/oracle/cfgtoollogs/dbca/trace.log_OraDb11g_home1
bcm@bcm-laptop:~$ uname -a
Linux bcm-laptop 2.6.32-24-generic #39-Ubuntu SMP Wed Jul 28 05:14:15 UTC 2010 x86_64 GNU/Linux
Maybe you are looking for
-
Transferred mail doesn't display "most recent" messages in iOS3
I just setup a brand new Mac OS X Snow Leopard Server and began transferring mail from offline mailboxes to the IMAP structure on the server. This works fine in Apple Mail, as it displays the entire message list and keeps a local cache. However, this
-
Chromium passwords missing ONLY when logging in via lxdm
Crazy I know but it's true. If I log in via lxdm and from with in chromium: preferences>personal stuff>manage saved passwords both "saved passwords" and "never saved" are blank. If I switch /etc/inittab to use lightdm, telinit 3 && telinit 5 and lo
-
Aperture 2.1 is out today, with new open plugin architecture
See press below. Sounds really great. 08:30 28Mar08 PRN-Apple Releases Aperture 2.1 with Powerful Image Editing Plug-In Architecture CUPERTINO, Calif., March 28 /PRNewswire-FirstCall/ -- Apple(R) today released Aperture(TM) 2.1, which introduces an o
-
HELP Ipod wont stop on any song. Randomly shuffles all songs w/o playing
The screen comes up 1 of 320 songs then starts to go through all songs w/o playing them...shows all info. even shows time line @ bottom with how long song is but the song timer never starts. It plays the only two instrumental/classical songs I have b
-
Spend Performance Management Fatal error.
I installed Spend Performence Management 2.1 in BI 7.01 server When I starting the Spend analysis, I am getting the following error. APPL_TYPE FATAL SPEND_ANALYTICS_STARTUP_FAILED] Details [SPEND_ANALYTICS_STARTUP_FAILED] Can anyone help me to sol