I am following the instructions here to install Oracle foreign data wrapper, oracle_fdw, on a PostgreSQL server.
Oracle version: Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production, running on Red Hat Linux 7.2
PostgreSQL version: PostgreSQL 9.4.4 on x86_64-unknown-linux-gnu, compiled by gcc (Debian 4.7.2-5) 4.7.2, 64-bit, running on Debian 7 (wheezy).
I was able to install sqlplus and connect from PostgreSQL server to Oracle server using sqlplus successfully, so connectivity is not a problem.
But when I try to create the extension, I get the following error:
postgres=# create extension oracle_fdw;
server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
The connection to the server was lost. Attempting reset: Failed.
Then I took clues from https://github.com/dalibo/pg_qualstats/issues/1 and added oracle_fdw to shared_preload_libraries in postgresql.conf like this:
shared_preload_libraries = 'oracle_fdw'
but now I can't restart Postgres:
# service postgresql restart
[....] Restarting PostgreSQL 9.4 database server: main[....] The PostgreSQL server failed to start. Please check the log output: t=2016-09-15 11:05:42 PDT d= h= p=23300 a=FATAL: XX000: invalid cache ID[FAILt=2016-09-15 11:05:42 PDT d= h= p=23300 a=LOCATION: SearchSysCacheList, syscache.c:1219 ... failed!
failed!
Looking into /var/log/postgresql/postgresql-9.4-main.log I only see these two lines:
t=2016-09-15 11:05:42 PDT d= h= p=23300 a=FATAL: XX000: invalid cache ID: 41
t=2016-09-15 11:05:42 PDT d= h= p=23300 a=LOCATION: SearchSysCacheList, syscache.c:1219
Removing oracle_fdw from shared_preload_libraries allows postgres to be restarted, so this is the one causing restart to fail. So I removed oracle_fdw from shared_preload_libraries and kept it just like this in postgresql.conf:
shared_preload_libraries = ''
Then I was able to restart Postgres.
Here are the exact steps done:
OS version for PostgreSQL server
# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 7 (wheezy)"
NAME="Debian GNU/Linux"
VERSION_ID="7"
VERSION="7 (wheezy)"
ID=debian
ANSI_COLOR="1;31"
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support/"
BUG_REPORT_URL="http://bugs.debian.org/"
root#app-4:/# cat /etc/debian_version
7.8
root#app-4:/# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 7.8 (wheezy)
Release: 7.8
Codename: wheezy
Installation of Oracle Instant Client
Installed using the instructions given here:
https://help.ubuntu.com/community/Oracle%20Instant%20Client
I downloaded the following rpm files from http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html:
oracle-instantclient-basic-10.2.0.3-1.x86_64.rpm
oracle-instantclient-devel-10.2.0.3-1.x86_64.rpm
oracle-instantclient-sqlplus-10.2.0.3-1.x86_64.rpm
and installed them on the PostgreSQL server using the following commands:
# apt-get install alien
# alien -i oracle-instantclient-basic-10.2.0.3-1.x86_64.rpm
# alien -i oracle-instantclient-devel-10.2.0.3-1.x86_64.rpm
# alien -i oracle-instantclient-sqlplus-10.2.0.3-1.x86_64.rpm
Confirming the installations:
# dpkg --list | grep -i oracle
ii oracle-instantclient-basic 10.2.0.3-2 amd64 Instant Client for Oracle Database 11g
ii oracle-instantclient-devel 10.2.0.3-2 amd64 Development headers for Instant Client.
ii oracle-instantclient-sqlplus 10.2.0.3-2 amd64 SQL*Plus for Instant Client.
Connecting to Oracle server using sqlplus
# su - postgres
postgres#app-4:~$ sqlplus <ORACLE_USER>/<ORACLE_PASS>#//<ORACLE_HOST>:<ORACLE_PORT>/<SID>
SQL*Plus: Release 10.2.0.3.0 - Production on Fri Sep 16 09:55:02 2016
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
SQL> select count(*) from <TEST_TABLE>;
COUNT(*)
----------
937530
SQL>
So this works fine.
Installing oracle_fdw
Downloaded oracle_fdw version 1.4.0 i.e. file oracle_fdw-1.4.0.zip from
http://pgxn.org/dist/oracle_fdw/
Then unzipped it and installed it like this:
root#app-4:/home/arun/oracle_fdw-1.4.0# ls
CHANGELOG LICENSE META.json oracle_fdw--1.1.sql oracle_fdw.control oracle_fdw.o oracle_gis.c oracle_utils.c README.oracle_fdw TODO
expected Makefile oracle_fdw--1.0--1.1.sql oracle_fdw.c oracle_fdw.h oracle_fdw.so oracle_gis.o oracle_utils.o sql
root#app-4:/home/arun/oracle_fdw-1.4.0# make
...
root#app-4:/home/arun/oracle_fdw-1.4.0# make install
/bin/mkdir -p '/usr/lib/postgresql/9.4/lib'
/bin/mkdir -p '/usr/share/postgresql/9.4/extension'
/bin/mkdir -p '/usr/share/postgresql/9.4/extension'
/bin/mkdir -p '/usr/share/doc/postgresql-doc-9.4/extension'
/usr/bin/install -c -m 755 oracle_fdw.so '/usr/lib/postgresql/9.4/lib/oracle_fdw.so'
/usr/bin/install -c -m 644 oracle_fdw.control '/usr/share/postgresql/9.4/extension/'
/usr/bin/install -c -m 644 oracle_fdw--1.1.sql oracle_fdw--1.0--1.1.sql '/usr/share/postgresql/9.4/extension/'
/usr/bin/install -c -m 644 README.oracle_fdw '/usr/share/doc/postgresql-doc-9.4/extension/'
Creating extension in Postgres
root#app-4:/# su - postgres
postgres#app-4:~$ psql
psql (9.4.4)
Type "help" for help.
postgres=# create extension oracle_fdw;
server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
The connection to the server was lost. Attempting reset: Failed.
!> \q
Stack Trace
I installed the GNU debugger (gdb) as recommended by Laurenz Albe in his answer and got the following stack trace (without the debugging symbols for now):
Continuing.
Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
#0 0x0000000000000000 in ?? ()
#1 0x00007ff657dfcc99 in DirectFunctionCall1Coll ()
#2 0x00007ff657de19a9 in ?? ()
#3 0x00007ff657de3037 in SearchCatCacheList ()
#4 0x00007ff4c5fcce7d in _PG_init () at oracle_fdw.c:648
#5 0x00007ff657dfb717 in ?? ()
#6 0x00007ff657dfc051 in load_external_function ()
#7 0x00007ff657b6b486 in fmgr_c_validator ()
#8 0x00007ff657dfdeba in OidFunctionCall1Coll ()
#9 0x00007ff657b6aedc in ProcedureCreate ()
#10 0x00007ff657bcf645 in CreateFunction ()
#11 0x00007ff657d14e73 in ?? ()
#12 0x00007ff657d140c7 in standard_ProcessUtility ()
#13 0x00007ff657bc89ed in ?? ()
#14 0x00007ff657bc98de in CreateExtension ()
#15 0x00007ff657d154c1 in ?? ()
#16 0x00007ff657d140c7 in standard_ProcessUtility ()
#17 0x00007ff657d11243 in ?? ()
#18 0x00007ff657d11e96 in ?? ()
#19 0x00007ff657d12b3d in PortalRun ()
#20 0x00007ff657d0fb1a in PostgresMain ()
#21 0x00007ff657acbdad in ?? ()
#22 0x00007ff657caf351 in PostmasterMain ()
#23 0x00007ff657acccba in main ()
Continuing.
Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
UPDATE: I was able to install the extension on Postgres 9.4.9 running on debian 8 (8.6, jessie). I used Oracle instant client version 12.1.0.2.0-1 and oracle_fdw version 1.5.
You should really open a Github issue for that, that's the correct place to report an error.
The answer to the following questions will help:
Which version of oracle_fdw are you using?
What are the exact steps you used to build it? Did you build it on the system where you are running it?
How does the stack trace of the crash look (with debugging symbols)?
Two general remarks:
You should follow the README for building oracle_fdw and no other web site.
Adding it to shared_preload_libraries is plain wrong.
why do you use an oracle 10.2.0.3 instant against an Oracle 12.1.0.2 database? I'd recommend to use the latest version of instant client.
"SQL*Plus: Release 10.2.0.3.0 - Production on Fri Sep 16 09:55:02 2016"
When you use a debian based system do not use the instant client rpms and convert them to a deb package, use the zip versions and set your environment accordingly.
I'll see if I find some time to test your setup
Cheers,
Daniel
Related
I am trying to connect to a Microsoft SQL server from an ARM mac running macOS 11.0.1.
I have set up a conda environment with a miniconda install, and from within a Jupyter notebook I run:
import pyodbc
conn = pyodbc.connect('Driver={ODBC Driver 17 for SQL Server};Server=xxx;Database=xxx;uid=xxx;pwd=xxx;')
Error: ('IM004', "[IM004] [unixODBC][Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_HENV failed (0) (SQLDriverConnect)")
Running odbcinst -j shows no obvious issue. I think the issue is in my environment somewhere:
$ odbcinst -j
unixODBC 2.3.9
DRIVERS............: /etc/odbcinst.ini
SYSTEM DATA SOURCES: /etc/odbc.ini
FILE DATA SOURCES..: /etc/ODBCDataSources
USER DATA SOURCES..: /Users/johnmorgan/.odbc.ini
SQLULEN Size.......: 8
SQLLEN Size........: 8
SQLSETPOSIROW Size.: 8
$ more /etc/odbcinst.ini
[ODBC Driver 13 for SQL Server]
Description=Microsoft ODBC Driver 13 for SQL Server
Driver=/usr/local/lib/libmsodbcsql.13.dylib
UsageCount=1
[ODBC Driver 17 for SQL Server]
Description=Microsoft ODBC Driver 17 for SQL Server
Driver=/usr/local/lib/libmsodbcsql.17.dylib
UsageCount=1
My $PATH is:
$ tr ':' '\n' <<< "$PATH"
/opt/anaconda3/envs/analysis/bin
/opt/miniconda3/bin
/opt/anaconda3/condabin
/Users/johnmorgan/anaconda3/bin
/Users/johnmorgan/anaconda3/bin
/Users/johnmorgan/anaconda2/bin
/Users/johnmorgan/anaconda/bin
//anaconda/bin
/Users/johnmorgan/anaconda/bin
/opt/local/bin
/opt/local/sbin
/Applications/anaconda/bin
/usr/local/bin
/usr/bin
/bin
/usr/sbin
/sbin
/opt/X11/bin
/Library/Apple/usr/bin
/Applications/Sublime Text.app/Contents/SharedSupport/bin
All help appreciated.
I have resolved this issue.
According to this comment the error is commonly due to a missing resource file:
https://github.com/mkleehammer/pyodbc/issues/738
The required resource file is msodbcsqlr17.rll, according to the documentation:
https://learn.microsoft.com/en-us/sql/connect/odbc/linux-mac/install-microsoft-odbc-driver-sql-server-macos?view=sql-server-ver15
This the documentation indicates the resource file should be located in:
/usr/local/share/msodbcsql17/resources/en_US
(or possibly a different location, relative to the location of the driver file, see the documentation link above)
For some reason my resource file was missing.
I located a copy by inspecting the home-brew formula at:
https://github.com/microsoft/homebrew-mssql-release/blob/master/Formula/msodbcsql17%4017.1.0.1.rb
This contains the download link:
https://download.microsoft.com/download/1/9/A/19AF548A-6DD3-4B48-88DC-724E9ABCEB9A/msodbcsql-17.1.0.1.tar.gz
Within the zipped package there is a copy of msodbcsqlr17.rll
I copied this to /usr/local/share/msodbcsql17/resources/en_US
And the problem is resolved.
I am using some earlier build for Windows 64-bit downloaded form here:
dl.dropboxusercontent.com/u/63393258/osm2pgsql_testRelease.zip
from this website:
awcull.com/2015/09/30/postgis-osm2pgsql-windows.html
but it is crashing when I am importing large pbf with whole Europe downloaded from download.geofabrik.de/
I'm tired of this shit... I tried slim and non-slim mode, I tried modifying cache size, nothing worked so far. Our server has 32 GB of RAM.
Where can I download latest osm2pgsql build for Windows 64-bit? Alternatively which compiler do you suggest to make my own build on Windows Server 2012 64-bit. Thanks.
The command I run osm2pgsql last time it crashed was:
PS C:\OSM\rendering> osm2pgsql -U postgres -m -d osm -p osm -E 3857 -s -C 25000 -S C:\OSM\osm2pgsql\default.style C:\OSM\Data\europe-latest.osm.pbf
It crashed with standard Windows dialog saying "the application stopped blablabla" with details:
Problem signature:
Problem Event Name: APPCRASH
Application Name: osm2pgsql.exe
Application Version: 0.0.0.0
Application Timestamp: 53ea21fd
Fault Module Name: ntdll.dll
Fault Module Version: 6.3.9600.18438
Fault Module Timestamp: 57ae642e
Exception Code: c00000fd
Exception Offset: 0000000000030d02
OS Version: 6.3.9600.2.0.0.272.7
Locale ID: 1033
Additional Information 1: 33ad
Additional Information 2: 33ad00700702b0ab4dc632df7667ec82
Additional Information 3: 2ebb
Additional Information 4: 2ebbf5b91303f76c5b7f75f6255100fa
Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=280262
If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt
Now I'm trying without "-C" option but I bet it will crash again...
PS C:\OSM\rendering> osm2pgsql -U postgres -m -d osm -p osm -E 3857 -s -S C:\OSM\osm2pgsql\default.style C:\OSM\Data\europe-latest.osm.pbf
Necromancing.
The latest build (Continuous Integration) can always be found on AppVeyor.
You need to get the current build (or in history a historic build by the git-commit hash).
https://ci.appveyor.com/project/openstreetmap/osm2pgsql
=> Environment arch x64
=> Artifacts tab
=> Donwload osm2pgsql_Release_x64.zip
The link might break, so if it does, you need to google "appveyor osm2pgsql",
it should usually be the first result.
Download from gis.stackexchange
Here is the Github link
Here is the Hot-Installer reference.
I am experimenting with creating an EC2 instance to host a Perforce server. My instance is configured with the following user data:
#!/bin/bash
# Add a newline to the ec2-user prompt string
echo PS1=\"\\n\$PS1\" >> /home/ec2-user/.bashrc
# Update all packages
yum update –y
# Install Perforce packages
# The RHEL/7 part of the baseurl should be replaced with
# the latest RHEL version that both Amazon and Perforce support
rpm –import https://package.perforce.com/perforce.pubkey
cd /etc/yum.repos.d/
echo [perforce] > perforce.repo
echo name=Perforce >> perforce.repo
echo baseurl=http://package.perforce.com/yum/rhel/7/x86_64 >> perforce.repo
echo enabled=1 >> perforce.repo
echo gpgcheck=1 >> perforce.repo
yum install –y helix-p4d
# Make directories for the server, owned by new “perforce” user
cd /opt/perforce/servers/
mkdir danware
cd danware
mkdir danware-db danware-chkpts journal
chown –R perforce:perforce danware
I have tested each of the above commands, and know that they work when executed manually in this order. However, some aspect of Amazon's base64 encode/decode system seems to be getting in the way. When I go to "Actions > Instance Settings > View/Change User Data" from the EC2 Console after launching (and passing all system checks), I see the following user data. Note how almost every hyphen "-" has been replaced with some strange "a" character.
However, I'm not sure that this is the issue, because the log file at /var/log/cloud-init-output.log gives me the following output (I replaced some repetitive text with [...] to save space). Note the line that says Failed running /var/lib/cloud/instance/scripts/part-001 I have verified that this part-001 file actually does have the correctly displayed hyphen characters.
[...]
Cloud-init v. 0.7.6 running 'modules:final' at Fri, 09 Sep 2016 06:23:39 +0000. Up 86.66 seconds.
Loaded plugins: priorities, update-motd, upgrade-helper
No Match for argument: –y
No packages marked for update
RPM version 4.11.2
Copyright (C) 1998-2002 - Red Hat, Inc.
This program may be freely redistributed under the terms of the GNU GPL
Usage: rpm [-aKfgpqVcdLilsiv?] [-a|--all] [-f|--file] [-g|--group] [...]
Loaded plugins: priorities, update-motd, upgrade-helper
Resolving Dependencies
--> Running transaction check
---> [...]
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
helix-p4d x86_64 2016.1-1429894 perforce 24 k
Installing for dependencies:
helix-cli x86_64 2016.1-1429894 perforce 8.8 k
helix-cli-base x86_64 2016.1-1429894 perforce 1.4 M
helix-p4d-base x86_64 2016.1-1429894 perforce 3.1 k
helix-p4d-base-16.1 x86_64 2016.1-1429894 perforce 2.4 M
helix-p4dctl x86_64 2016.1-1429894 perforce 1.2 M
Transaction Summary
================================================================================
Install 1 Package (+5 Dependent packages)
Total download size: 5.0 M
Installed size: 13 M
Is this ok [y/d/N]: Exiting on user command
Your transaction was saved, rerun it with:
yum load-transaction /tmp/yum_save_tx.2016-09-09.06-23.dRP_r2.yumtx
/var/lib/cloud/instance/scripts/part-001: line 22: cd: /opt/perforce/servers/: No such file or directory
chown: invalid user: ‘–R’
Sep 09 06:23:41 cloud-init[2517]: util.py[WARNING]: Failed running /var/lib/cloud/instance/scripts/part-001 [1]
Sep 09 06:23:41 cloud-init[2517]: cc_scripts_user.py[WARNING]: Failed to run module scripts-user (scripts in /var/lib/cloud/instance/scripts)
Sep 09 06:23:41 cloud-init[2517]: util.py[WARNING]: Running module scripts-user (<module 'cloudinit.config.cc_scripts_user' from '/usr/lib/python2.7/dist-packages/cloudinit/config/cc_scripts_user.pyc'>) failed
Cloud-init v. 0.7.6 finished at Fri, 09 Sep 2016 06:23:41 +0000. Datasource DataSourceEc2. Up 88.53 seconds
Even more annoying, I assumed that the early No Match for argument: –y line from the log file was referring to the yum update -y line from my user data. Sure enough, just running the example user data script from the EC2 documentation page, which also uses yum update -y, gives me this same error/warning! Amazon's own example script doesn't work!? So can anyone answer why A) AWS is not displaying the user data code correctly, and B) why my user data is yielding the errors shown above? The help is much appreciated!
For lines such as
yum update –y
The character you are using is a "EN DASH U+2013"
The usual character for a hyphen is "HYPHEN-MINUS U+002D"
Fix your user data source to use "hyphen minus" and have another go
I checked the character codes by cut n pasting into this online site http://www.fileformat.info/info/unicode/char/search.htm?q=-&preview=entity
Don't know if you can see the difference but this is your hyphen
yum update –y
and this is a "hyphen minus"
yum update -y
How do I check that all services and patches are installed in Oracle?
I have an Oracle 10.2.0.2.0 db version and want to install patches. Also I want to get a list with all services and patches.
Here is an article on how to check and or install new patches :
To find the OPatch tool setup your database enviroment variables and then issue this comand:
cd $ORACLE_HOME/OPatch
> pwd
/oracle/app/product/10.2.0/db_1/OPatch
To list all the patches applies to your database use the lsinventory option:
[oracle#DCG023 8828328]$ opatch lsinventory
Oracle Interim Patch Installer version 11.2.0.3.4
Copyright (c) 2012, Oracle Corporation. All rights reserved.
Oracle Home : /u00/product/11.2.0/dbhome_1
Central Inventory : /u00/oraInventory
from : /u00/product/11.2.0/dbhome_1/oraInst.loc
OPatch version : 11.2.0.3.4
OUI version : 11.2.0.1.0
Log file location : /u00/product/11.2.0/dbhome_1/cfgtoollogs/opatch/opatch2013-11-13_13-55-22PM_1.log
Lsinventory Output file location : /u00/product/11.2.0/dbhome_1/cfgtoollogs/opatch/lsinv/lsinventory2013-11-13_13-55-22PM.txt
Installed Top-level Products (1):
Oracle Database 11g 11.2.0.1.0
There are 1 products installed in this Oracle Home.
Interim patches (1) :
Patch 8405205 : applied on Mon Aug 19 15:18:04 BRT 2013
Unique Patch ID: 11805160
Created on 23 Sep 2009, 02:41:32 hrs PST8PDT
Bugs fixed:
8405205
OPatch succeeded.
To list the patches using sql :
select * from registry$history;
I understand the original post is for Oracle 10 but this is for reference by anyone else who finds it via Google.
Under Oracle 12c, I found that that my registry$history is empty.
This works instead:
select * from registry$sqlpatch;
Maybe you need "sys." before:
select * from sys.registry$history;
I am trying to install Oracle XE 10.2 on my Mac Leopard. However, it doesn't go without a lot of fuzz. Thankfully I have this tutorial at my disposal: http://bit.ly/a4rc4O
The only pain I am left with is the following command that fails (from the cfgtoollogs/configToolAllCommands).
/Users/oracle/oracle/product/10.2.0/db_1/bin/netca /orahome /Users/oracle/oracle/product/10.2.0/db_1 /orahnam OraDb10g_home1 /instype custom /inscomp client,oraclenet,javavm,server,ano /insprtcl tcp /cfg local /authadp NO_VALUE /nodeinfo NO_VALUE /responseFile /Users/oracle/oracle/product/10.2.0/db_1/network/install/netca_typ.rsp
Which generates the following output:
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2-92 mixed mode)
#
/Users/oracle/oracle/product/10.2.0/db_1/jdk/jre/bin/java: line 2: 27805 Segmentation fault /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/bin/java -Xbootclasspath/a:/Users/oracle/oracle/product/10.2.0/db_1/jdk/jre/lib/ext:/Users/oracle/oracle/product/10.2.0/db_1/jdk/lib/ext $*
I want to run Oracle on my Mac, as software I need relies on Oracle database. I fetched the binary from the Oracle website, and is supposed to work.
This box runs on Intel Core 2 Duo, running Leopard 10.5.8 and has Java 1.5.0 available. I more information is needed to analyze this, please comment and I will edit. Also some pointers where to look for would be nice. Thanks a bunch for help or trying to :)
Here is the full output from the log:
Parsing command line arguments:
Parameter "orahome" = /Users/oracle/oracle/product/10.2.0/db_1
Parameter "orahnam" = OraDb10g_home1
Parameter "instype" = custom
Parameter "inscomp" = client,oraclenet,javavm,server,ano
Parameter "insprtcl" = tcp
Parameter "cfg" = local
Parameter "authadp" = NO_VALUE
Parameter "nodeinfo" = NO_VALUE
Parameter "responsefile" = /Users/oracle/oracle/product/10.2.0/db_1/network/install/netca_typ.rsp
Done parsing command line arguments.
Oracle Net Services Configuration:
# This JavaNativeCrash log describes the Java state at a Native Crash in a Java application.
# The corresponding native state can be found in the crash log generated by CrashReporter.
# If this error is reproducible, please report it with the following information:
# 1. Provide the steps to reproduce, a test case, and any relevant information
# 2. This JavaNativeCrash_pid<num>.crash.log (Java state)
# 3. The corresponding <name>.crash.log (native state; generated by CrashReporter)
# File report at: http://bugreport.apple.com/
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : Bus Error occurred at PC=0x9714E22B
Function=[Unknown.]
Library=/usr/lib/libSystem.B.dylib
NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for possible
reason and solutions.
Current Java thread:
at oracle.net.common.NetGetEnv.getDNSDomain(Native Method)
at oracle.net.ca.ConfigureProfile.setDefaultProfileParams(Unknown Source)
at oracle.net.ca.InitialSetup.setupConfigObjects(Unknown Source)
at oracle.net.ca.InitialSetup.<init>(Unknown Source)
at oracle.net.ca.NetCA.main(Unknown Source)
Dynamic libraries and executable:
[0x00002458-0x0000881e] /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/bin/java
[0x0001071c-0x000157b0] /System/Library/Frameworks/JavaVM.framework/Versions/A/JavaVM
[0x91bf2730-0x91cefb56] /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
[0x91ab9780-0x91ac071e] /usr/lib/libgcc_s.1.dylib
[0x971250a0-0x972596d0] /usr/lib/libSystem.B.dylib
[0x957cca60-0x959ae953] /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
[0x91ac27c0-0x91ad7335] /usr/lib/libobjc.A.dylib
[0x911931f0-0x91286765] /usr/lib/libicucore.A.dylib
[0x900f2a74-0x901ba452] /usr/lib/libxml2.2.dylib
[0x93ccb8cc-0x93cd602c] /usr/lib/libz.1.dylib
[0x909c5ea8-0x90a525dd] /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
[0x9552fe4c-0x95562417] /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
[0x943e9e70-0x943e9e92] /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
[0x95da32c0-0x95f08aee] /System/Library/Frameworks/Security.framework/Versions/A/Security
[0x97b7d000-0x97ba66b3] /usr/lib/libauto.dylib
[0x94619fb4-0x94661005] /usr/lib/libstdc++.6.dylib
[0x93bca2b0-0x93bcb1e7] /usr/lib/system/libmathCommon.A.dylib
[0x957442b0-0x957c50d2] /usr/lib/libsqlite3.0.dylib
[0x951e45f8-0x952010c7] /usr/lib/libresolv.9.dylib
[0x90ea0b58-0x90f8cd72] /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
[0x97e26f7c-0x97e64a33] /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
[0x950e0880-0x95187582] /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
[0x946cb370-0x94730dd0] /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
[0x91a8a200-0x91ab70f1] /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
[0x931be318-0x93239030] /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
[0x9117c30c-0x9118ce6c] /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
[0x92d095f0-0x92d83fd1] /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
[0x936cd100-0x936d4899] /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
[0x91a6a00c-0x91a70bdb] /usr/lib/libbsm.dylib
[0x93198cdc-0x931b7ab1] /usr/lib/libxslt.1.dylib
[0x961537b0-0x963a0876] /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries/libhotspot.dylib
[0x00035268-0x0003e8fd] /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries/libverify.dylib
[0x00046760-0x0005bcc5] /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries/libjava.jnilib
[0x0006bea8-0x00075723] /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries/libzip.jnilib
[0x05d65780-0x05e54029] /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries/libawt.jnilib
[0x95f7ce60-0x95f7ce82] /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
[0x96464f7c-0x96464f9e] /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
[0x93bc8fdc-0x93bc8ffe] /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
[0x0558ffb4-0x055922ac] /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries/libfontmanager.jnilib
[0x948e1944-0x94ff3252] /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
[0x95ccb4e0-0x95d5359a] /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
[0x97bd9544-0x97c647cf] /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
[0x93d48ef0-0x943872d0] /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
[0x9036744c-0x903bdae7] /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreText.framework/Versions/A/CoreText
[0x933d95a4-0x934259b1] /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
[0x9600ae08-0x96108ffa] /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
[0x936bc704-0x936cb9fd] /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
[0x90473228-0x904d3a2a] /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
[0x963bd8dc-0x96456050] /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
[0x93d37ae8-0x93d44feb] /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
[0x91396600-0x91430c92] /usr/lib/libcrypto.0.9.7.dylib
[0x97ab4720-0x97b76938] /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
[0x90a6dfdc-0x90a6dffe] /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
[0x919eabf0-0x91a55e9a] /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
[0x95a4b540-0x95a7780d] /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
[0x937b7660-0x93bc3bdd] /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
[0x915a8090-0x91960be7] /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
[0x9369c3dc-0x936b7f7f] /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
[0x9736a254-0x9738b7ee] /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
[0x937091ac-0x9370cd15] /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
[0x978e4374-0x978fd35f] /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
[0x95b81d30-0x95b83dce] /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
[0x95bd424c-0x95bf8a30] /usr/lib/libcups.2.dylib
[0x903c1724-0x9046023d] /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
[0x973aa6c0-0x97475b8c] /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
[0x9144a760-0x9156ef60] /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
[0x957426c0-0x95742fe9] /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
[0x95c40720-0x95cc109a] /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
[0x975680a0-0x97848f82] /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
[0x90a8018c-0x90ce4bbd] /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
[0x9728ce58-0x9729411f] /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
[0x90e66844-0x90e97182] /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI
[0x974e8cac-0x97545e4e] /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
[0x978e2fdc-0x978e2ffe] /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib
[0x97353fa4-0x97353fbd] /System/Library/PrivateFrameworks/InstallServer.framework/Versions/A/InstallServer
[0x9159d3d0-0x915a6b37] /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/CarbonSound
[0x91a7bfa0-0x91a88719] /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
[0x9324c3c0-0x93287d8f] /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
[0x97ab3190-0x97ab3ffd] /usr/lib/libffi.dylib
[0x95fbaefc-0x95fd1b76] /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
[0x932be1e0-0x93311b3b] /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
[0x97ca4ec0-0x97cb0fff] /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
[0x904f4500-0x9098927d] /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgrammability.dylib
[0x16d30c30-0x16f115d4] /System/Library/CoreServices/RawCamera.bundle/Contents/MacOS/RawCamera
[0x90a738f8-0x90a7e334] /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
[0x95bfdb54-0x95c39c35] /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
[0x1608ffd0-0x16093e42] /Library/InputManagers/Edit in ODBEditor/Edit in ODBEditor.bundle/Contents/MacOS/Edit in ODBEditor
[0x90e46fac-0x90e46fce] /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
[0x95febe38-0x95ff03e7] /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels
[0x945a8704-0x945aa8f6] /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
[0x93cdab38-0x93d28a0b] /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering.framework/Versions/A/HTMLRendering
[0x9331f604-0x9332d49d] /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
[0x93335230-0x933b7897] /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
[0x9346017c-0x934a07ad] /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationServices.framework/Versions/A/NavigationServices
[0x95ff2048-0x960049e9] /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
[0x933181f0-0x9331c6ac] /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print
[0x95da02bc-0x95da1a65] /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI
[0x161c9630-0x161ca795] /Library/InputManagers/SIMBL/SIMBL.bundle/Contents/MacOS/SIMBL
[0x973625b4-0x97368633] /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib
[0x90e1dea8-0x90e3fb2b] /System/Library/PrivateFrameworks/Shortcut.framework/Versions/A/Shortcut
[0x901d598c-0x901de6a2] /System/Library/PrivateFrameworks/HelpData.framework/Versions/A/HelpData
[0x160b8014-0x160c3eb6] /Users/oracle/oracle/product/10.2.0/db_1/lib32/libnjni10.jnilib
[0x19c5b100-0x1ae42450] /Users/oracle/oracle/product/10.2.0/db_1/lib32/libclntsh.dylib.10.1
[0x1b0f0524-0x1b21ee9e] /Users/oracle/oracle/product/10.2.0/db_1/lib32/libnnz10.dylib
[0x176ff3d4-0x1770589e] /Users/oracle/oracle/product/10.2.0/db_1/lib32/libldapjclnt10.jnilib
Local Time = Fri Aug 27 17:31:52 2010
Elapsed Time = 794
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2-92 mixed mode)
#
/Users/oracle/oracle/product/10.2.0/db_1/jdk/jre/bin/java: line 2: 27805 Segmentation fault /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/bin/java -Xbootclasspath/a:/Users/oracle/oracle/product/10.2.0/db_1/jdk/jre/lib/ext:/Users/oracle/oracle/product/10.2.0/db_1/jdk/lib/ext $*
Pretty lame: changing the environment variable ORACLE_SID to lowercase, fixed the netca command. Yay!
I would recommend installing oracle on VM. for more instructions, visit https://tech.lds.org/wiki/Oracle_VM
Are you sure it is Oracle XE? I can't find a download for that on Oracle's web site. Did you extract the RPM contents of the Linux RPM in order to do the install? I would love to get XE working, but I can only find instructions for Oracle 10g.