How do I run Oracle sqlldr (SQL Loader) on Mac OS? - oracle

I have a seemingly simple question. How does one run sqlldr on a Mac OS X? I have researched this topic and have copied the sqlldr executable, using scp, from a remote host running the oracle server, and then installed that into the same $ORACLE_HOME/bin directory where I have a working version of the sqlplus utility. How does one go about doing this?

SQL*Loader now comes with the 64-bit version of Oracle Instant Client 12.2 on Mac OS. Mac OS High Sierra (10.13), Sierra (10.12) and El-Capitan (10.11) are supported.
It can be downloaded directly via the Oracle Technology Network (OTN) linked here.

Related

mac osx 10.4.11 with x11 1.1.3 (XFree86 4.4.0) - is this compatible to do X-forwarding from Mac OS 10.13.6?

This is a long story.
I use an old OSX 10.4.11 machine (Power PC) as a web server. Very low use.
It runs X11 at 1.1.3 (XFree86 4.4.0).
For several years I used X-forwarding to show log traffic on a newer Mac Intel machine (Mac mini). At some point after about 2006 this just stopped working. I have never tried to upgrade the 10.4.11 machine as it met and continues to meet my needs for a low cost Web server.
Meantime XQuartz has come and been through several new versions, as has MacOS. Currently I have MacOS 10.13.6 and XQuartz 2.7.11 on the Mac Mini. I am revisiting why the long-defunct X-forwarding sessions to OSX 10.4.11 stopped working.
I find I can do X-forwarding fine from my Linux 18.04 box, which was a surprise. I have spent a lot of time trying various approaches to resolving the issue. It occurs to me that the 10.4.11 setup may just be too old, and therefore incompatible. Hence my question: "mac osx 10.4.11 with x11 1.1.3 (XFree86 4.4.0) - is this compatible to do X-forwarding from Mac OS 10.13.6?".
Any comments will be much appreciated.
I am answering my own question.
I spent several days looking at logs from ssh -v -X user#hostname, with -vv and -vvv for more log info. I also tried the ssh -Y variants of that command.
Reading extensively from stackexchange and elsewhere, I restored and re-edited the ssh_config and sshd_config files on both server and client hosts several times, and coded shell scripts to restart sshd.
The insurmountable problem was that $DISPLAY was not being set up correctly on the client. This is what led to my question.
The only way I could get X-forwarding to work with my OSX 10.4.11 PPC client was:
1) ssh -f user#hostname /usr/X11R6/bin/xterm
then
2) run my local commands on the client from that window (nsu and nsu-go).
I also had to add the correct path to all my commands, including /usr/X11R6/bin for xterm as above, and ~/bin to my commands on the client.
The package I was working with was https://sourceforge.net/projects/nsu/ where detail changes are required.

How to install Universal Oracle Installer on Ubuntu?

I can't run Oracle Universal Installer to get tnsping.
I downloaded ouiosp220160.jar.
This jar cannot be launched using java -jar, so I unpacked it as described on Oracle site, but there description for Solaris and Windows, I unpacked it and there is folder for Solaris which contains executable that I can't launch.
I used this article when did installation:
Installing Oracle 11g R2 Express Edition on Ubuntu 64-bit
it was some manual changes in settings that we had to make, so just go step-by-step through the page
one more page
HOWTO install Oracle 11g on Ubuntu Linux 12.04

db2 setup for Mac

I am trying to install db2 for my mac.
I downloaded the package. When I run the script db2setup I get a blank setup wizard.
It says
/Users/sanjanaagarwal/Downloads/expc/db2/macos/install/db2setup:
line 606: /tmp/db2.tmp.26264/db2/macos/install/../java/jre/bin/java: No such file or directory
When I check the log it shows
Operating system information: Darwin Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~.13.0.0
ERROR: The user name specified is invalid.
HELP.
DB2 Express-C 10.1 for Mac was released in 2012, well before Mavericks. It's doubtful that IBM has done any testing with Express-C on Mavericks. It does not appear that the JRE you can get from Apple for Mavericks works with the installer. I do not know if installing a JRE from Oracle will work better.
In brief testing I find that it appears to work, but you may find it easier to install using the text-based db2_install command rather than the java-based db2setup. This will require some additional steps to manually create a DB2 instance (create user, execute /opt/IBM/db2/V10.1/instance/db2icrt, etc.), but once you've done this you should be OK.

Uninstall postgresql on MacOs Lion Mountain

I'm completely new with MacOS X and I'm not underestanding where my system postgresql 9.1.5 is installed. I want to upgrade to 9.2 but I would like to uninstall this default installation before.
When I type in the terminal
$> psql --version
The result is:
psql (PostgreSQL) 9.1.5
but I can not find this installation.
MacOS X does not come with PostgreSQL installed as a server (unless you have OS X Server Edition).
Only the client-side PostgreSQL commands and the libpq library ship with the system. These include the psql command that resides is /usr/bin along with other commands such as pg_dump, pg_restore, createdb... You don't have to remove them, and if you did, it's not clear anyway what would prevent the next maintenance update of the OS to put them back.
So if you didn't previously install PostgreSQL yourself on this system, going to 9.2 is not an upgrade, it's a fresh install.
There are a number of providers of PostgreSQL packages for Mac OS X: postgres.app, homebrew, fink, macports...
These packages provide both a server and the client tools with the same version than the server, they have distinct installation paths, and they don't overwrite anything in /usr/bin. Once installed, you want to use the commands from the package preferrably to the ones in /usr/bin, which means technically putting them first in your PATH. Each package I've seen comes with a mention on how to do that in its installation instructions.
You don't have to remove the version Apple ships.
I have been using MacPorts to run various custom builds of PostgreSQL on OSX. It takes a little effort to make it "just work" (PATH and PG environment variables) but I never had to remove Apple's copy of Postgres.
I also keep a VM (VirtualBox) of a pretty minimal Debian install with Postgres running. I can do all my testing against the VM with a change of PG variables or JDBC URL. It's not as performant as running on the host but it is really clean for development.

gedit text editor - mac os x

Does anybody know if you can setup remote connections in gedit(on mac os x snow leopard), so I don't have to keep ftp'ing up seperately.
I know it can be done on Ubuntu but can't figure out how to do it on a mac, if even possible.
An application independent solution for this would be sshfs on OSX through MacFUSE. sshfs is also available for Linux.
This sshfs with a GUI is also available via MacPorts.
There is also a possibility of automatic upload after each file save in Transmit and in Cyberduck (FTP programs).

Resources