Switch branches/tags
devicetokens gh-pages master release/CalendarServer-5.4-dev release/CalendarServer-9.0 release/CalendarServer-9.1 release/CalendarServer-9.2-dev release/CalendarServer-9.3-dev release/CalendarServer-9.3 stable trac users/cdaboo/CalendarServer-5.0-podfix users/cdaboo/better-next-job users/cdaboo/cfod users/cdaboo/fix-directory users/cdaboo/newlog users/cdaboo/patch users/cdaboo/pod2pod-migration users/cdaboo/rscale users/cdaboo/update-packages users/cdaboo/vinstance users/gaya/directorybacker users/gaya/vcardexp users/gaya/xmldirectorybacker users/glyph/always-abort-txn-on-error users/glyph/case-insensitive-uid users/glyph/conn-limit users/glyph/contacts-server-merge users/glyph/dalify users/glyph/db-reconnect users/glyph/deploybuild users/glyph/deployment-plus-sendfd users/glyph/digest-auth-redux users/glyph/disable-quota users/glyph/dont-start-postgres users/glyph/enforce-max-requests users/glyph/hang-fix users/glyph/imip-and-admin-html users/glyph/ipv6-client users/glyph/launchd-wrapper-bis users/glyph/linux-tests users/glyph/log-cleanups users/glyph/migrate-merge users/glyph/misc-portability-fixes users/glyph/more-deferreds-5 users/glyph/more-deferreds-6 users/glyph/more-deferreds-7 users/glyph/multiget-delete users/glyph/new-export users/glyph/one-home-list-api users/glyph/oracle-nulls users/glyph/oracle users/glyph/other-html users/glyph/parallel-upgrade_to_1 users/glyph/parallel-upgrade users/glyph/q-delete-no-concurrency users/glyph/q-no-master users/glyph/q users/glyph/queue-locking-and-timing users/glyph/quota users/glyph/sendfdport users/glyph/shared-pool-fixes users/glyph/shared-pool-take2 users/glyph/sharedgroups-2 users/glyph/sharedpool users/glyph/sharing-api users/glyph/skip-lonely-vtimezones users/glyph/sql-store users/glyph/start-service-start-loop users/glyph/subtransactions users/glyph/table-alias users/glyph/uidexport users/glyph/unshare-when-access-revoked users/glyph/uuid-normalize users/glyph/warning-cleanups users/glyph/whenNotProposed users/glyph/xattrs-from-files users/sagen/bypass-dps users/sagen/clientsim users/sagen/delegatecachefix users/sagen/dependencyupdates users/sagen/groupcacher users/sagen/move2who-2 users/sagen/move2who-3 users/sagen/move2who-4 users/sagen/move2who-5 users/sagen/move2who-cdt users/sagen/move2who users/sagen/newcua-1 users/sagen/newcua users/sagen/recordtypes-2 users/sagen/recordtypes users/sagen/request-socket users/sagen/trashcan-1 users/sagen/trashcan-2 users/sagen/trashcan-3 users/sagen/trashcan-4 users/sagen/trashcan-5 users/sagen/trashcan-6 users/sagen/trashcan users/sredmond/clientsim users/vramachandran/disableWorkProcessing
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
ReadMe.md
rebuild.sql

ReadMe.md

Local Oracle Development

Setup

Oracle instantclient

Download instantclient locally from "http://www.oracle.com/technetwork/topics/intel-macsoft-096467.html"

  • instantclient-basic-macos.x64-11.2.0.4.0.zip
  • instantclient-sdk-macos.x64-11.2.0.4.0.zip

Then run:

mkdir .oracle
cd .oracle
<<copy instantclient zips here>>
unzip instantclient-basic-macos.x64-11.2.0.4.0.zip
unzip instantclient-sdk-macos.x64-11.2.0.4.0.zip
ln -sf . lib
ln -sf libclntsh.dylib.11.1 libclntsh.dylib
cd ~
cat >> .bash_profile
function oracle_11 () {
    export ORACLE_HOME="$HOME/.oracle/instantclient_11_2";

    # make sure we can find the client libraries
    export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$ORACLE_HOME";
    export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:$ORACLE_HOME";
}
^D

Local Oracle Database

If you want to run your own Oracle database rather than use an existing one:

  • Get VirtualBox
  • Install OTN_Developer_Day_VM_12c.otn

Run

VM

  • Run VirtualBox
  • Add the rebuild.sql script to the VM shell
  • Copy the current_oracle.sql to the VM shell
  • Run sqlplus (user: hr pswd:oracle)
  • In sqlplus: @rebuild;

CS

  • Run the oracle_11 alias to make sure paths are setup.

  • Rebuild the server with bin/develop to ensure the cx_Oracle module is built

  • Configure the DB in caldav-dev.plist:

    endpoint: tcp:192.168.56.101:1521 database: orcl user: hr password: oracle

  • Run server